@coro-ai/runner 0.1.33 → 0.1.36

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 (1013) hide show
  1. package/dashboard-dist/assets/{index-C7l2FOsX.js → index-DVdRvXW2.js} +1 -1
  2. package/dashboard-dist/index.html +1 -1
  3. package/dist/src/clients/github.d.ts +21 -10
  4. package/dist/src/clients/github.js +48 -40
  5. package/dist/src/clients/github.js.map +1 -1
  6. package/dist/src/clients/tracker/jira.js +6 -0
  7. package/dist/src/clients/tracker/jira.js.map +1 -1
  8. package/dist/src/clients/tracker/linear.js +6 -2
  9. package/dist/src/clients/tracker/linear.js.map +1 -1
  10. package/dist/src/clients/tracker/types.d.ts +11 -0
  11. package/dist/src/cloud/db/postgres-backend.js +21 -13
  12. package/dist/src/cloud/db/postgres-backend.js.map +1 -1
  13. package/dist/src/cloud/db/schema.d.ts +1 -1
  14. package/dist/src/intake/system-prompt.js +3 -0
  15. package/dist/src/intake/system-prompt.js.map +1 -1
  16. package/dist/src/jobs/phase-assignment.d.ts +42 -0
  17. package/dist/src/jobs/phase-assignment.js +46 -43
  18. package/dist/src/jobs/phase-assignment.js.map +1 -1
  19. package/dist/src/jobs/runner.js +63 -34
  20. package/dist/src/jobs/runner.js.map +1 -1
  21. package/dist/src/mcp-handlers.d.ts +1 -0
  22. package/dist/src/mcp-handlers.js +6 -2
  23. package/dist/src/mcp-handlers.js.map +1 -1
  24. package/dist/src/mcp-server.js +6 -1
  25. package/dist/src/mcp-server.js.map +1 -1
  26. package/dist/src/plugins/builtin/github-tracker/intelligence/snippets/github-issues-keys.md +4 -1
  27. package/dist/src/plugins/builtin/jira/index.js +12 -0
  28. package/dist/src/plugins/builtin/jira/index.js.map +1 -1
  29. package/dist/src/plugins/builtin/jira/intelligence/snippets/jira-transitions.md +6 -1
  30. package/dist/src/plugins/builtin/linear/index.js +12 -0
  31. package/dist/src/plugins/builtin/linear/index.js.map +1 -1
  32. package/dist/src/plugins/builtin/linear/intelligence/snippets/linear-keys.md +6 -2
  33. package/dist/src/plugins/refs.d.ts +50 -1
  34. package/dist/src/plugins/refs.js +97 -1
  35. package/dist/src/plugins/refs.js.map +1 -1
  36. package/dist/src/plugins/registry.d.ts +6 -0
  37. package/dist/src/plugins/registry.js +11 -2
  38. package/dist/src/plugins/registry.js.map +1 -1
  39. package/dist/src/plugins/types.d.ts +13 -1
  40. package/dist/src/prompt/builder.d.ts +2 -1
  41. package/dist/src/prompt/builder.js +42 -1
  42. package/dist/src/prompt/builder.js.map +1 -1
  43. package/dist/src/runner/build-settings.js +16 -4
  44. package/dist/src/runner/build-settings.js.map +1 -1
  45. package/dist/src/state/polling-transport.d.ts +41 -12
  46. package/dist/src/state/polling-transport.js +95 -56
  47. package/dist/src/state/polling-transport.js.map +1 -1
  48. package/dist/src/state/sqlite-backend.js +19 -13
  49. package/dist/src/state/sqlite-backend.js.map +1 -1
  50. package/dist/src/tools/run-subagent.js +10 -5
  51. package/dist/src/tools/run-subagent.js.map +1 -1
  52. package/node_modules/@coro-ai/cloud-protocol/package.json +1 -1
  53. package/node_modules/@coro-ai/intelligence-base/layer/agents/coder.md +1 -1
  54. package/node_modules/@coro-ai/intelligence-base/layer/agents/planner.md +1 -1
  55. package/node_modules/@coro-ai/intelligence-base/package.json +1 -1
  56. package/node_modules/@coro-ai/llm-anthropic/dist/credential-store.d.ts +58 -0
  57. package/node_modules/@coro-ai/llm-anthropic/dist/credential-store.d.ts.map +1 -0
  58. package/node_modules/@coro-ai/llm-anthropic/dist/credential-store.js +278 -0
  59. package/node_modules/@coro-ai/llm-anthropic/dist/credential-store.js.map +1 -0
  60. package/node_modules/@coro-ai/llm-anthropic/dist/executor.d.ts +12 -1
  61. package/node_modules/@coro-ai/llm-anthropic/dist/executor.d.ts.map +1 -1
  62. package/node_modules/@coro-ai/llm-anthropic/dist/executor.js +85 -46
  63. package/node_modules/@coro-ai/llm-anthropic/dist/executor.js.map +1 -1
  64. package/node_modules/@coro-ai/llm-anthropic/dist/http-routes.d.ts.map +1 -1
  65. package/node_modules/@coro-ai/llm-anthropic/dist/http-routes.js +4 -0
  66. package/node_modules/@coro-ai/llm-anthropic/dist/http-routes.js.map +1 -1
  67. package/node_modules/@coro-ai/llm-anthropic/dist/index.d.ts +2 -1
  68. package/node_modules/@coro-ai/llm-anthropic/dist/index.d.ts.map +1 -1
  69. package/node_modules/@coro-ai/llm-anthropic/dist/index.js +6 -2
  70. package/node_modules/@coro-ai/llm-anthropic/dist/index.js.map +1 -1
  71. package/node_modules/@coro-ai/llm-anthropic/dist/sandbox-probe.d.ts +11 -0
  72. package/node_modules/@coro-ai/llm-anthropic/dist/sandbox-probe.d.ts.map +1 -0
  73. package/node_modules/@coro-ai/llm-anthropic/dist/sandbox-probe.js +112 -0
  74. package/node_modules/@coro-ai/llm-anthropic/dist/sandbox-probe.js.map +1 -0
  75. package/node_modules/@coro-ai/llm-anthropic/dist/test-connection.d.ts +0 -26
  76. package/node_modules/@coro-ai/llm-anthropic/dist/test-connection.d.ts.map +1 -1
  77. package/node_modules/@coro-ai/llm-anthropic/dist/test-connection.js +40 -106
  78. package/node_modules/@coro-ai/llm-anthropic/dist/test-connection.js.map +1 -1
  79. package/node_modules/@coro-ai/llm-anthropic/package.json +1 -1
  80. package/node_modules/@coro-ai/llm-openai/README.md +3 -3
  81. package/node_modules/@coro-ai/llm-openai/dist/executor.d.ts.map +1 -1
  82. package/node_modules/@coro-ai/llm-openai/dist/executor.js +13 -10
  83. package/node_modules/@coro-ai/llm-openai/dist/executor.js.map +1 -1
  84. package/node_modules/@coro-ai/llm-openai/dist/models.d.ts.map +1 -1
  85. package/node_modules/@coro-ai/llm-openai/dist/models.js +27 -0
  86. package/node_modules/@coro-ai/llm-openai/dist/models.js.map +1 -1
  87. package/node_modules/@coro-ai/llm-openai/package.json +1 -1
  88. package/node_modules/@coro-ai/plugin-sdk/dist/chat-mcp.d.ts +10 -1
  89. package/node_modules/@coro-ai/plugin-sdk/dist/chat-mcp.d.ts.map +1 -1
  90. package/node_modules/@coro-ai/plugin-sdk/dist/chat-mcp.js +16 -2
  91. package/node_modules/@coro-ai/plugin-sdk/dist/chat-mcp.js.map +1 -1
  92. package/node_modules/@coro-ai/plugin-sdk/dist/helpers.d.ts +27 -1
  93. package/node_modules/@coro-ai/plugin-sdk/dist/helpers.d.ts.map +1 -1
  94. package/node_modules/@coro-ai/plugin-sdk/dist/helpers.js +47 -0
  95. package/node_modules/@coro-ai/plugin-sdk/dist/helpers.js.map +1 -1
  96. package/node_modules/@coro-ai/plugin-sdk/dist/types.d.ts +79 -4
  97. package/node_modules/@coro-ai/plugin-sdk/dist/types.d.ts.map +1 -1
  98. package/node_modules/@coro-ai/plugin-sdk/package.json +1 -1
  99. package/node_modules/@hono/node-server/README.md +104 -25
  100. package/node_modules/@hono/node-server/dist/conninfo.cjs +22 -0
  101. package/node_modules/@hono/node-server/dist/{conninfo.d.ts → conninfo.d.cts} +4 -3
  102. package/node_modules/@hono/node-server/dist/conninfo.d.mts +4 -3
  103. package/node_modules/@hono/node-server/dist/conninfo.mjs +19 -16
  104. package/node_modules/@hono/node-server/dist/constants-BLSFu_RU.mjs +5 -0
  105. package/node_modules/@hono/node-server/dist/constants-BXAKTxRC.cjs +11 -0
  106. package/node_modules/@hono/node-server/dist/early-hints.cjs +35 -0
  107. package/node_modules/@hono/node-server/dist/early-hints.d.cts +16 -0
  108. package/node_modules/@hono/node-server/dist/early-hints.d.mts +16 -0
  109. package/node_modules/@hono/node-server/dist/early-hints.mjs +33 -0
  110. package/node_modules/@hono/node-server/dist/index.cjs +1176 -0
  111. package/node_modules/@hono/node-server/dist/index.d.cts +101 -0
  112. package/node_modules/@hono/node-server/dist/index.d.mts +101 -8
  113. package/node_modules/@hono/node-server/dist/index.mjs +1146 -637
  114. package/node_modules/@hono/node-server/dist/serve-static.cjs +151 -0
  115. package/node_modules/@hono/node-server/dist/serve-static.d.cts +18 -0
  116. package/node_modules/@hono/node-server/dist/serve-static.d.mts +14 -13
  117. package/node_modules/@hono/node-server/dist/serve-static.mjs +143 -145
  118. package/node_modules/@hono/node-server/dist/utils/response.cjs +8 -0
  119. package/node_modules/@hono/node-server/dist/utils/response.d.cts +4 -0
  120. package/node_modules/@hono/node-server/dist/utils/response.d.mts +3 -2
  121. package/node_modules/@hono/node-server/dist/utils/response.mjs +6 -9
  122. package/node_modules/@hono/node-server/dist/utils/stream.cjs +65 -0
  123. package/node_modules/@hono/node-server/dist/utils/stream.d.cts +6 -0
  124. package/node_modules/@hono/node-server/dist/utils/stream.d.mts +6 -0
  125. package/node_modules/@hono/node-server/dist/utils/stream.mjs +64 -0
  126. package/node_modules/@hono/node-server/package.json +78 -54
  127. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/index.d.ts.map +1 -1
  128. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/index.js +1 -12
  129. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/index.js.map +1 -1
  130. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/stdio.d.ts +7 -0
  131. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/stdio.d.ts.map +1 -1
  132. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/stdio.js +9 -3
  133. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/stdio.js.map +1 -1
  134. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/streamableHttp.d.ts.map +1 -1
  135. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/streamableHttp.js +5 -3
  136. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/client/streamableHttp.js.map +1 -1
  137. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/index.d.ts.map +1 -1
  138. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/index.js +1 -12
  139. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/index.js.map +1 -1
  140. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/sseKeepAlive.d.ts +5 -0
  141. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/sseKeepAlive.d.ts.map +1 -0
  142. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/sseKeepAlive.js +17 -0
  143. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/sseKeepAlive.js.map +1 -0
  144. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/stdio.d.ts +9 -1
  145. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/stdio.d.ts.map +1 -1
  146. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/stdio.js +10 -4
  147. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/stdio.js.map +1 -1
  148. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/webStandardStreamableHttp.d.ts +21 -0
  149. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/webStandardStreamableHttp.d.ts.map +1 -1
  150. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/webStandardStreamableHttp.js +239 -41
  151. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/webStandardStreamableHttp.js.map +1 -1
  152. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/zod-compat.d.ts.map +1 -1
  153. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/zod-compat.js +25 -6
  154. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/server/zod-compat.js.map +1 -1
  155. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/mediaType.d.ts +32 -0
  156. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/mediaType.d.ts.map +1 -0
  157. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/mediaType.js +64 -0
  158. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/mediaType.js.map +1 -0
  159. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/stdio.d.ts +5 -0
  160. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/stdio.d.ts.map +1 -1
  161. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/stdio.js +10 -1
  162. package/node_modules/@modelcontextprotocol/sdk/dist/cjs/shared/stdio.js.map +1 -1
  163. package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/index.d.ts.map +1 -1
  164. package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/index.js +2 -13
  165. package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/index.js.map +1 -1
  166. package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/stdio.d.ts +7 -0
  167. package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/stdio.d.ts.map +1 -1
  168. package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/stdio.js +9 -3
  169. package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/stdio.js.map +1 -1
  170. package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/streamableHttp.d.ts.map +1 -1
  171. package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/streamableHttp.js +5 -3
  172. package/node_modules/@modelcontextprotocol/sdk/dist/esm/client/streamableHttp.js.map +1 -1
  173. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/index.d.ts.map +1 -1
  174. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/index.js +2 -13
  175. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/index.js.map +1 -1
  176. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/sseKeepAlive.d.ts +5 -0
  177. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/sseKeepAlive.d.ts.map +1 -0
  178. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/sseKeepAlive.js +13 -0
  179. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/sseKeepAlive.js.map +1 -0
  180. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/stdio.d.ts +9 -1
  181. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/stdio.d.ts.map +1 -1
  182. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/stdio.js +10 -4
  183. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/stdio.js.map +1 -1
  184. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/webStandardStreamableHttp.d.ts +21 -0
  185. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/webStandardStreamableHttp.d.ts.map +1 -1
  186. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/webStandardStreamableHttp.js +239 -41
  187. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/webStandardStreamableHttp.js.map +1 -1
  188. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-compat.d.ts.map +1 -1
  189. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-compat.js +25 -6
  190. package/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-compat.js.map +1 -1
  191. package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/mediaType.d.ts +32 -0
  192. package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/mediaType.d.ts.map +1 -0
  193. package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/mediaType.js +57 -0
  194. package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/mediaType.js.map +1 -0
  195. package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/stdio.d.ts +5 -0
  196. package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/stdio.d.ts.map +1 -1
  197. package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/stdio.js +9 -0
  198. package/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/stdio.js.map +1 -1
  199. package/node_modules/@modelcontextprotocol/sdk/node_modules/iconv-lite/encodings/sbcs-data.js +2 -0
  200. package/node_modules/@modelcontextprotocol/sdk/node_modules/iconv-lite/encodings/utf32.js +10 -3
  201. package/node_modules/@modelcontextprotocol/sdk/node_modules/iconv-lite/package.json +2 -2
  202. package/node_modules/@modelcontextprotocol/sdk/node_modules/iconv-lite/types/encodings.d.ts +2 -0
  203. package/node_modules/@modelcontextprotocol/sdk/node_modules/media-typer/README.md +15 -14
  204. package/node_modules/@modelcontextprotocol/sdk/node_modules/media-typer/index.js +0 -8
  205. package/node_modules/@modelcontextprotocol/sdk/node_modules/media-typer/package.json +16 -12
  206. package/node_modules/@modelcontextprotocol/sdk/package.json +4 -3
  207. package/node_modules/body-parser/HISTORY.md +7 -1
  208. package/node_modules/body-parser/lib/types/json.js +7 -3
  209. package/node_modules/body-parser/lib/types/raw.js +7 -3
  210. package/node_modules/body-parser/lib/types/text.js +7 -3
  211. package/node_modules/body-parser/lib/types/urlencoded.js +7 -3
  212. package/node_modules/body-parser/package.json +1 -1
  213. package/node_modules/express-rate-limit/dist/index.cjs +75 -6
  214. package/node_modules/express-rate-limit/dist/index.d.cts +16 -0
  215. package/node_modules/express-rate-limit/dist/index.d.mts +16 -0
  216. package/node_modules/express-rate-limit/dist/index.d.ts +16 -0
  217. package/node_modules/express-rate-limit/dist/index.mjs +61 -6
  218. package/node_modules/express-rate-limit/node_modules/debug/LICENSE +20 -0
  219. package/node_modules/express-rate-limit/node_modules/debug/README.md +481 -0
  220. package/node_modules/express-rate-limit/node_modules/debug/package.json +64 -0
  221. package/node_modules/express-rate-limit/node_modules/debug/src/browser.js +272 -0
  222. package/node_modules/express-rate-limit/node_modules/debug/src/common.js +292 -0
  223. package/node_modules/express-rate-limit/node_modules/debug/src/index.js +10 -0
  224. package/node_modules/express-rate-limit/node_modules/debug/src/node.js +263 -0
  225. package/node_modules/express-rate-limit/node_modules/ms/index.js +162 -0
  226. package/node_modules/express-rate-limit/node_modules/ms/license.md +21 -0
  227. package/node_modules/express-rate-limit/node_modules/ms/package.json +38 -0
  228. package/node_modules/express-rate-limit/node_modules/ms/readme.md +59 -0
  229. package/node_modules/express-rate-limit/package.json +12 -9
  230. package/node_modules/fast-copy/README.md +46 -46
  231. package/node_modules/fast-copy/dist/cjs/index.cjs +13 -19
  232. package/node_modules/fast-copy/dist/cjs/index.cjs.map +1 -1
  233. package/node_modules/fast-copy/dist/cjs/index.d.cts +40 -6
  234. package/node_modules/fast-copy/dist/es/index.d.mts +40 -6
  235. package/node_modules/fast-copy/dist/es/index.mjs +13 -19
  236. package/node_modules/fast-copy/dist/es/index.mjs.map +1 -1
  237. package/node_modules/fast-copy/dist/umd/index.d.ts +40 -6
  238. package/node_modules/fast-copy/dist/umd/index.js +13 -19
  239. package/node_modules/fast-copy/dist/umd/index.js.map +1 -1
  240. package/node_modules/fast-copy/index.d.ts +22 -22
  241. package/node_modules/fast-copy/package.json +30 -23
  242. package/node_modules/fast-uri/index.js +55 -2
  243. package/node_modules/fast-uri/package.json +1 -1
  244. package/node_modules/fast-uri/test/security.test.js +226 -0
  245. package/node_modules/hono/dist/adapter/aws-lambda/handler.js +2 -5
  246. package/node_modules/hono/dist/adapter/bun/websocket.js +3 -1
  247. package/node_modules/hono/dist/adapter/lambda-edge/handler.js +12 -2
  248. package/node_modules/hono/dist/cjs/adapter/aws-lambda/handler.js +2 -5
  249. package/node_modules/hono/dist/cjs/adapter/bun/websocket.js +3 -1
  250. package/node_modules/hono/dist/cjs/adapter/lambda-edge/handler.js +12 -2
  251. package/node_modules/hono/dist/cjs/client/client.js +10 -1
  252. package/node_modules/hono/dist/cjs/client/utils.js +1 -1
  253. package/node_modules/hono/dist/cjs/context.js +28 -13
  254. package/node_modules/hono/dist/cjs/helper/proxy/index.js +4 -0
  255. package/node_modules/hono/dist/cjs/helper/streaming/sse.js +5 -4
  256. package/node_modules/hono/dist/cjs/hono-base.js +3 -2
  257. package/node_modules/hono/dist/cjs/jsx/base.js +27 -23
  258. package/node_modules/hono/dist/cjs/jsx/hooks/index.js +16 -13
  259. package/node_modules/hono/dist/cjs/middleware/cache/index.js +104 -9
  260. package/node_modules/hono/dist/cjs/middleware/compress/index.js +7 -1
  261. package/node_modules/hono/dist/cjs/middleware/cors/index.js +2 -2
  262. package/node_modules/hono/dist/cjs/middleware/etag/index.js +5 -1
  263. package/node_modules/hono/dist/cjs/middleware/jwk/jwk.js +9 -4
  264. package/node_modules/hono/dist/cjs/middleware/jwt/jwt.js +9 -4
  265. package/node_modules/hono/dist/cjs/middleware/language/language.js +10 -6
  266. package/node_modules/hono/dist/cjs/middleware/method-not-allowed/index.js +90 -0
  267. package/node_modules/hono/dist/cjs/middleware/method-override/index.js +5 -3
  268. package/node_modules/hono/dist/cjs/middleware/secure-headers/secure-headers.js +10 -4
  269. package/node_modules/hono/dist/cjs/middleware/serve-static/index.js +1 -1
  270. package/node_modules/hono/dist/cjs/request.js +14 -11
  271. package/node_modules/hono/dist/cjs/router/reg-exp-router/node.js +55 -56
  272. package/node_modules/hono/dist/cjs/router/reg-exp-router/router.js +64 -85
  273. package/node_modules/hono/dist/cjs/router/reg-exp-router/trie.js +13 -5
  274. package/node_modules/hono/dist/cjs/router/trie-router/node.js +10 -1
  275. package/node_modules/hono/dist/cjs/router.js +1 -1
  276. package/node_modules/hono/dist/cjs/utils/accept.js +1 -1
  277. package/node_modules/hono/dist/cjs/utils/body.js +18 -4
  278. package/node_modules/hono/dist/cjs/utils/buffer.js +2 -1
  279. package/node_modules/hono/dist/cjs/utils/cookie.js +3 -2
  280. package/node_modules/hono/dist/cjs/utils/stream.js +5 -2
  281. package/node_modules/hono/dist/cjs/utils/url.js +8 -8
  282. package/node_modules/hono/dist/cjs/validator/validator.js +3 -3
  283. package/node_modules/hono/dist/client/client.js +10 -1
  284. package/node_modules/hono/dist/client/utils.js +1 -1
  285. package/node_modules/hono/dist/context.js +28 -13
  286. package/node_modules/hono/dist/helper/proxy/index.js +4 -0
  287. package/node_modules/hono/dist/helper/streaming/sse.js +5 -4
  288. package/node_modules/hono/dist/hono-base.js +3 -2
  289. package/node_modules/hono/dist/jsx/base.js +27 -23
  290. package/node_modules/hono/dist/jsx/hooks/index.js +16 -13
  291. package/node_modules/hono/dist/middleware/cache/index.js +104 -9
  292. package/node_modules/hono/dist/middleware/compress/index.js +7 -1
  293. package/node_modules/hono/dist/middleware/cors/index.js +2 -2
  294. package/node_modules/hono/dist/middleware/etag/index.js +5 -1
  295. package/node_modules/hono/dist/middleware/jwk/jwk.js +9 -4
  296. package/node_modules/hono/dist/middleware/jwt/jwt.js +9 -4
  297. package/node_modules/hono/dist/middleware/language/language.js +10 -6
  298. package/node_modules/hono/dist/middleware/method-not-allowed/index.js +68 -0
  299. package/node_modules/hono/dist/middleware/method-override/index.js +5 -3
  300. package/node_modules/hono/dist/middleware/secure-headers/secure-headers.js +10 -4
  301. package/node_modules/hono/dist/middleware/serve-static/index.js +1 -1
  302. package/node_modules/hono/dist/request.js +15 -12
  303. package/node_modules/hono/dist/router/reg-exp-router/node.js +55 -56
  304. package/node_modules/hono/dist/router/reg-exp-router/router.js +64 -85
  305. package/node_modules/hono/dist/router/reg-exp-router/trie.js +13 -5
  306. package/node_modules/hono/dist/router/trie-router/node.js +10 -1
  307. package/node_modules/hono/dist/router.js +1 -1
  308. package/node_modules/hono/dist/types/adapter/aws-lambda/types.d.ts +9 -0
  309. package/node_modules/hono/dist/types/adapter/lambda-edge/handler.d.ts +1 -1
  310. package/node_modules/hono/dist/types/client/types.d.ts +1 -1
  311. package/node_modules/hono/dist/types/helper/websocket/index.d.ts +1 -1
  312. package/node_modules/hono/dist/types/hono-base.d.ts +4 -3
  313. package/node_modules/hono/dist/types/jsx/base.d.ts +4 -2
  314. package/node_modules/hono/dist/types/jsx/dom/index.d.ts +5 -5
  315. package/node_modules/hono/dist/types/jsx/dom/intrinsic-element/components.d.ts +2 -2
  316. package/node_modules/hono/dist/types/jsx/dom/server.d.ts +5 -5
  317. package/node_modules/hono/dist/types/jsx/hooks/index.d.ts +8 -6
  318. package/node_modules/hono/dist/types/jsx/index.d.ts +5 -5
  319. package/node_modules/hono/dist/types/middleware/cache/index.d.ts +6 -4
  320. package/node_modules/hono/dist/types/middleware/combine/index.d.ts +1 -1
  321. package/node_modules/hono/dist/types/middleware/context-storage/index.d.ts +2 -2
  322. package/node_modules/hono/dist/types/middleware/cors/index.d.ts +1 -1
  323. package/node_modules/hono/dist/types/middleware/jsx-renderer/index.d.ts +2 -2
  324. package/node_modules/hono/dist/types/middleware/jwk/jwk.d.ts +2 -0
  325. package/node_modules/hono/dist/types/middleware/jwt/jwt.d.ts +2 -0
  326. package/node_modules/hono/dist/types/middleware/language/language.d.ts +18 -0
  327. package/node_modules/hono/dist/types/middleware/method-not-allowed/index.d.ts +49 -0
  328. package/node_modules/hono/dist/types/router/reg-exp-router/node.d.ts +1 -1
  329. package/node_modules/hono/dist/types/router/reg-exp-router/trie.d.ts +2 -1
  330. package/node_modules/hono/dist/types/router.d.ts +1 -1
  331. package/node_modules/hono/dist/types/utils/body.d.ts +1 -1
  332. package/node_modules/hono/dist/types/utils/headers.d.ts +2 -2
  333. package/node_modules/hono/dist/types/utils/types.d.ts +1 -1
  334. package/node_modules/hono/dist/types/utils/url.d.ts +1 -0
  335. package/node_modules/hono/dist/utils/accept.js +1 -1
  336. package/node_modules/hono/dist/utils/body.js +18 -4
  337. package/node_modules/hono/dist/utils/buffer.js +2 -1
  338. package/node_modules/hono/dist/utils/cookie.js +4 -3
  339. package/node_modules/hono/dist/utils/stream.js +5 -2
  340. package/node_modules/hono/dist/utils/url.js +6 -7
  341. package/node_modules/hono/dist/validator/validator.js +3 -3
  342. package/node_modules/hono/package.json +19 -11
  343. package/node_modules/ip-address/README.md +146 -126
  344. package/node_modules/ip-address/dist/common.d.ts +29 -0
  345. package/node_modules/ip-address/dist/common.js +44 -5
  346. package/node_modules/ip-address/dist/common.js.map +1 -1
  347. package/node_modules/ip-address/dist/ipv4.d.ts +8 -1
  348. package/node_modules/ip-address/dist/ipv4.js +24 -20
  349. package/node_modules/ip-address/dist/ipv4.js.map +1 -1
  350. package/node_modules/ip-address/dist/ipv6.d.ts +68 -3
  351. package/node_modules/ip-address/dist/ipv6.js +180 -53
  352. package/node_modules/ip-address/dist/ipv6.js.map +1 -1
  353. package/node_modules/ip-address/dist/v4/constants.js +5 -1
  354. package/node_modules/ip-address/dist/v4/constants.js.map +1 -1
  355. package/node_modules/ip-address/dist/v6/constants.js +3 -2
  356. package/node_modules/ip-address/dist/v6/constants.js.map +1 -1
  357. package/node_modules/ip-address/package.json +6 -4
  358. package/node_modules/jose/README.md +13 -16
  359. package/node_modules/jose/dist/types/index.d.ts +6 -5
  360. package/node_modules/jose/dist/types/jwe/compact/decrypt.d.ts +17 -11
  361. package/node_modules/jose/dist/types/jwe/compact/encrypt.d.ts +7 -19
  362. package/node_modules/jose/dist/types/jwe/flattened/decrypt.d.ts +17 -11
  363. package/node_modules/jose/dist/types/jwe/flattened/encrypt.d.ts +7 -19
  364. package/node_modules/jose/dist/types/jwe/general/decrypt.d.ts +18 -13
  365. package/node_modules/jose/dist/types/jwe/general/encrypt.d.ts +20 -21
  366. package/node_modules/jose/dist/types/jwk/embedded.d.ts +8 -12
  367. package/node_modules/jose/dist/types/jwk/thumbprint.d.ts +0 -15
  368. package/node_modules/jose/dist/types/jwks/local.d.ts +12 -21
  369. package/node_modules/jose/dist/types/jwks/remote.d.ts +34 -165
  370. package/node_modules/jose/dist/types/jws/compact/sign.d.ts +2 -13
  371. package/node_modules/jose/dist/types/jws/compact/verify.d.ts +17 -13
  372. package/node_modules/jose/dist/types/jws/flattened/sign.d.ts +2 -13
  373. package/node_modules/jose/dist/types/jws/flattened/verify.d.ts +17 -13
  374. package/node_modules/jose/dist/types/jws/general/sign.d.ts +16 -17
  375. package/node_modules/jose/dist/types/jws/general/verify.d.ts +18 -15
  376. package/node_modules/jose/dist/types/jwt/decrypt.d.ts +17 -11
  377. package/node_modules/jose/dist/types/jwt/encrypt.d.ts +10 -34
  378. package/node_modules/jose/dist/types/jwt/sign.d.ts +2 -13
  379. package/node_modules/jose/dist/types/jwt/unsecured.d.ts +4 -13
  380. package/node_modules/jose/dist/types/jwt/verify.d.ts +14 -13
  381. package/node_modules/jose/dist/types/key/export.d.ts +0 -14
  382. package/node_modules/jose/dist/types/key/generate_key_pair.d.ts +7 -14
  383. package/node_modules/jose/dist/types/key/generate_secret.d.ts +16 -14
  384. package/node_modules/jose/dist/types/key/import.d.ts +18 -28
  385. package/node_modules/jose/dist/types/types.d.ts +239 -222
  386. package/node_modules/jose/dist/types/util/base64url.d.ts +11 -4
  387. package/node_modules/jose/dist/types/util/decode_jwt.d.ts +1 -9
  388. package/node_modules/jose/dist/types/util/decode_protected_header.d.ts +0 -8
  389. package/node_modules/jose/dist/types/util/errors.d.ts +128 -121
  390. package/node_modules/jose/dist/webapi/jwe/compact/decrypt.js +4 -22
  391. package/node_modules/jose/dist/webapi/jwe/flattened/decrypt.js +5 -153
  392. package/node_modules/jose/dist/webapi/jwe/flattened/encrypt.js +16 -111
  393. package/node_modules/jose/dist/webapi/jwe/general/decrypt.js +23 -3
  394. package/node_modules/jose/dist/webapi/jwe/general/encrypt.js +66 -82
  395. package/node_modules/jose/dist/webapi/jwk/embedded.js +5 -3
  396. package/node_modules/jose/dist/webapi/jwks/local.js +32 -73
  397. package/node_modules/jose/dist/webapi/jwks/remote.js +19 -28
  398. package/node_modules/jose/dist/webapi/jws/compact/sign.js +5 -2
  399. package/node_modules/jose/dist/webapi/jws/compact/verify.js +4 -16
  400. package/node_modules/jose/dist/webapi/jws/flattened/sign.js +7 -65
  401. package/node_modules/jose/dist/webapi/jws/flattened/verify.js +3 -89
  402. package/node_modules/jose/dist/webapi/jws/general/sign.js +19 -15
  403. package/node_modules/jose/dist/webapi/jws/general/verify.js +29 -9
  404. package/node_modules/jose/dist/webapi/jwt/decrypt.js +5 -5
  405. package/node_modules/jose/dist/webapi/jwt/sign.js +2 -3
  406. package/node_modules/jose/dist/webapi/jwt/unsecured.js +4 -3
  407. package/node_modules/jose/dist/webapi/jwt/verify.js +6 -6
  408. package/node_modules/jose/dist/webapi/key/export.js +37 -4
  409. package/node_modules/jose/dist/webapi/key/generate_key_pair.js +33 -82
  410. package/node_modules/jose/dist/webapi/key/generate_secret.js +2 -2
  411. package/node_modules/jose/dist/webapi/key/import.js +8 -8
  412. package/node_modules/jose/dist/webapi/lib/asn1.js +53 -122
  413. package/node_modules/jose/dist/webapi/lib/buffer_utils.js +1 -0
  414. package/node_modules/jose/dist/webapi/lib/content_encryption.js +34 -109
  415. package/node_modules/jose/dist/webapi/lib/crypto_key.js +18 -126
  416. package/node_modules/jose/dist/webapi/lib/helpers.js +23 -0
  417. package/node_modules/jose/dist/webapi/lib/invalid_key_input.js +0 -1
  418. package/node_modules/jose/dist/webapi/lib/jwe_algorithms.js +107 -0
  419. package/node_modules/jose/dist/webapi/lib/jwe_decrypt.js +186 -0
  420. package/node_modules/jose/dist/webapi/lib/jwe_encrypt.js +110 -0
  421. package/node_modules/jose/dist/webapi/lib/jwk_to_key.js +8 -98
  422. package/node_modules/jose/dist/webapi/lib/jws_algorithms.js +73 -0
  423. package/node_modules/jose/dist/webapi/lib/jws_sign.js +74 -0
  424. package/node_modules/jose/dist/webapi/lib/jws_verify.js +107 -0
  425. package/node_modules/jose/dist/webapi/lib/jwt_claims_set.js +68 -109
  426. package/node_modules/jose/dist/webapi/lib/key.js +132 -0
  427. package/node_modules/jose/dist/webapi/lib/key_algorithm.js +10 -0
  428. package/node_modules/jose/dist/webapi/lib/key_descriptor.js +7 -0
  429. package/node_modules/jose/dist/webapi/lib/key_management.js +162 -92
  430. package/node_modules/jose/dist/webapi/lib/options.js +48 -0
  431. package/node_modules/jose/dist/webapi/lib/signing.js +14 -56
  432. package/node_modules/jose/dist/webapi/lib/type_checks.js +13 -18
  433. package/node_modules/jose/dist/webapi/util/base64url.js +13 -4
  434. package/node_modules/jose/dist/webapi/util/decode_jwt.js +2 -2
  435. package/node_modules/jose/dist/webapi/util/decode_protected_header.js +5 -15
  436. package/node_modules/jose/dist/webapi/util/errors.js +1 -1
  437. package/node_modules/jose/package.json +2 -4
  438. package/node_modules/js-yaml/README.md +5 -3
  439. package/node_modules/js-yaml/dist/js-yaml.js +3012 -2402
  440. package/node_modules/js-yaml/dist/js-yaml.js.map +1 -1
  441. package/node_modules/js-yaml/dist/js-yaml.min.js +2 -33
  442. package/node_modules/js-yaml/dist/js-yaml.min.js.map +1 -1
  443. package/node_modules/js-yaml/dist/js-yaml.mjs +3073 -2381
  444. package/node_modules/js-yaml/dist/js-yaml.mjs.map +1 -1
  445. package/node_modules/js-yaml/lib/loader.js +7 -11
  446. package/node_modules/js-yaml/lib/type/float.js +1 -1
  447. package/node_modules/js-yaml/lib/type/int.js +4 -4
  448. package/node_modules/js-yaml/lib/type/omap.js +3 -3
  449. package/node_modules/js-yaml/package.json +10 -4
  450. package/node_modules/node-abi/abi_registry.json +8 -1
  451. package/node_modules/node-abi/package.json +1 -1
  452. package/node_modules/openai/CHANGELOG.md +101 -0
  453. package/node_modules/openai/README.md +9 -2
  454. package/node_modules/openai/azure.d.mts.map +1 -1
  455. package/node_modules/openai/azure.d.ts.map +1 -1
  456. package/node_modules/openai/azure.js +5 -1
  457. package/node_modules/openai/azure.js.map +1 -1
  458. package/node_modules/openai/azure.mjs +5 -1
  459. package/node_modules/openai/azure.mjs.map +1 -1
  460. package/node_modules/openai/client.d.mts +1 -0
  461. package/node_modules/openai/client.d.mts.map +1 -1
  462. package/node_modules/openai/client.d.ts +1 -0
  463. package/node_modules/openai/client.d.ts.map +1 -1
  464. package/node_modules/openai/client.js +11 -5
  465. package/node_modules/openai/client.js.map +1 -1
  466. package/node_modules/openai/client.mjs +11 -5
  467. package/node_modules/openai/client.mjs.map +1 -1
  468. package/node_modules/openai/core/streaming.d.mts.map +1 -1
  469. package/node_modules/openai/core/streaming.d.ts.map +1 -1
  470. package/node_modules/openai/core/streaming.js +38 -6
  471. package/node_modules/openai/core/streaming.js.map +1 -1
  472. package/node_modules/openai/core/streaming.mjs +38 -6
  473. package/node_modules/openai/core/streaming.mjs.map +1 -1
  474. package/node_modules/openai/core/uploads.d.mts +1 -1
  475. package/node_modules/openai/core/uploads.d.mts.map +1 -1
  476. package/node_modules/openai/core/uploads.d.ts +1 -1
  477. package/node_modules/openai/core/uploads.d.ts.map +1 -1
  478. package/node_modules/openai/core/uploads.js +3 -1
  479. package/node_modules/openai/core/uploads.js.map +1 -1
  480. package/node_modules/openai/core/uploads.mjs +1 -0
  481. package/node_modules/openai/core/uploads.mjs.map +1 -1
  482. package/node_modules/openai/helpers/audio.d.mts.map +1 -1
  483. package/node_modules/openai/helpers/audio.d.ts.map +1 -1
  484. package/node_modules/openai/helpers/audio.js +16 -3
  485. package/node_modules/openai/helpers/audio.js.map +1 -1
  486. package/node_modules/openai/helpers/audio.mjs +17 -4
  487. package/node_modules/openai/helpers/audio.mjs.map +1 -1
  488. package/node_modules/openai/helpers/standard-schema.d.mts +104 -0
  489. package/node_modules/openai/helpers/standard-schema.d.mts.map +1 -0
  490. package/node_modules/openai/helpers/standard-schema.d.ts +104 -0
  491. package/node_modules/openai/helpers/standard-schema.d.ts.map +1 -0
  492. package/node_modules/openai/helpers/standard-schema.js +320 -0
  493. package/node_modules/openai/helpers/standard-schema.js.map +1 -0
  494. package/node_modules/openai/helpers/standard-schema.mjs +314 -0
  495. package/node_modules/openai/helpers/standard-schema.mjs.map +1 -0
  496. package/node_modules/openai/helpers/zod.d.mts +45 -9
  497. package/node_modules/openai/helpers/zod.d.mts.map +1 -1
  498. package/node_modules/openai/helpers/zod.d.ts +45 -9
  499. package/node_modules/openai/helpers/zod.d.ts.map +1 -1
  500. package/node_modules/openai/helpers/zod.js +120 -18
  501. package/node_modules/openai/helpers/zod.js.map +1 -1
  502. package/node_modules/openai/helpers/zod.mjs +119 -18
  503. package/node_modules/openai/helpers/zod.mjs.map +1 -1
  504. package/node_modules/openai/index.d.mts +1 -1
  505. package/node_modules/openai/index.d.mts.map +1 -1
  506. package/node_modules/openai/index.d.ts +1 -1
  507. package/node_modules/openai/index.d.ts.map +1 -1
  508. package/node_modules/openai/index.js +2 -1
  509. package/node_modules/openai/index.js.map +1 -1
  510. package/node_modules/openai/index.mjs +1 -1
  511. package/node_modules/openai/index.mjs.map +1 -1
  512. package/node_modules/openai/internal/headers.d.mts.map +1 -1
  513. package/node_modules/openai/internal/headers.d.ts.map +1 -1
  514. package/node_modules/openai/internal/headers.js +7 -3
  515. package/node_modules/openai/internal/headers.js.map +1 -1
  516. package/node_modules/openai/internal/headers.mjs +7 -3
  517. package/node_modules/openai/internal/headers.mjs.map +1 -1
  518. package/node_modules/openai/internal/uploads.d.mts +26 -1
  519. package/node_modules/openai/internal/uploads.d.mts.map +1 -1
  520. package/node_modules/openai/internal/uploads.d.ts +26 -1
  521. package/node_modules/openai/internal/uploads.d.ts.map +1 -1
  522. package/node_modules/openai/internal/uploads.js +169 -1
  523. package/node_modules/openai/internal/uploads.js.map +1 -1
  524. package/node_modules/openai/internal/uploads.mjs +169 -2
  525. package/node_modules/openai/internal/uploads.mjs.map +1 -1
  526. package/node_modules/openai/lib/AbstractChatCompletionRunner.d.mts +3 -3
  527. package/node_modules/openai/lib/AbstractChatCompletionRunner.d.mts.map +1 -1
  528. package/node_modules/openai/lib/AbstractChatCompletionRunner.d.ts +3 -3
  529. package/node_modules/openai/lib/AbstractChatCompletionRunner.d.ts.map +1 -1
  530. package/node_modules/openai/lib/AbstractChatCompletionRunner.js +61 -4
  531. package/node_modules/openai/lib/AbstractChatCompletionRunner.js.map +1 -1
  532. package/node_modules/openai/lib/AbstractChatCompletionRunner.mjs +61 -4
  533. package/node_modules/openai/lib/AbstractChatCompletionRunner.mjs.map +1 -1
  534. package/node_modules/openai/lib/AssistantStream.d.mts.map +1 -1
  535. package/node_modules/openai/lib/AssistantStream.d.ts.map +1 -1
  536. package/node_modules/openai/lib/AssistantStream.js +4 -3
  537. package/node_modules/openai/lib/AssistantStream.js.map +1 -1
  538. package/node_modules/openai/lib/AssistantStream.mjs +4 -3
  539. package/node_modules/openai/lib/AssistantStream.mjs.map +1 -1
  540. package/node_modules/openai/lib/ChatCompletionRunner.d.mts +26 -2
  541. package/node_modules/openai/lib/ChatCompletionRunner.d.mts.map +1 -1
  542. package/node_modules/openai/lib/ChatCompletionRunner.d.ts +26 -2
  543. package/node_modules/openai/lib/ChatCompletionRunner.d.ts.map +1 -1
  544. package/node_modules/openai/lib/ChatCompletionRunner.js.map +1 -1
  545. package/node_modules/openai/lib/ChatCompletionRunner.mjs.map +1 -1
  546. package/node_modules/openai/lib/ChatCompletionStream.d.mts +15 -1
  547. package/node_modules/openai/lib/ChatCompletionStream.d.mts.map +1 -1
  548. package/node_modules/openai/lib/ChatCompletionStream.d.ts +15 -1
  549. package/node_modules/openai/lib/ChatCompletionStream.d.ts.map +1 -1
  550. package/node_modules/openai/lib/ChatCompletionStream.js +128 -30
  551. package/node_modules/openai/lib/ChatCompletionStream.js.map +1 -1
  552. package/node_modules/openai/lib/ChatCompletionStream.mjs +127 -30
  553. package/node_modules/openai/lib/ChatCompletionStream.mjs.map +1 -1
  554. package/node_modules/openai/lib/ChatCompletionStreamingRunner.d.mts +25 -2
  555. package/node_modules/openai/lib/ChatCompletionStreamingRunner.d.mts.map +1 -1
  556. package/node_modules/openai/lib/ChatCompletionStreamingRunner.d.ts +25 -2
  557. package/node_modules/openai/lib/ChatCompletionStreamingRunner.d.ts.map +1 -1
  558. package/node_modules/openai/lib/ChatCompletionStreamingRunner.js +77 -0
  559. package/node_modules/openai/lib/ChatCompletionStreamingRunner.js.map +1 -1
  560. package/node_modules/openai/lib/ChatCompletionStreamingRunner.mjs +78 -1
  561. package/node_modules/openai/lib/ChatCompletionStreamingRunner.mjs.map +1 -1
  562. package/node_modules/openai/lib/EventStream.d.mts +13 -0
  563. package/node_modules/openai/lib/EventStream.d.mts.map +1 -1
  564. package/node_modules/openai/lib/EventStream.d.ts +13 -0
  565. package/node_modules/openai/lib/EventStream.d.ts.map +1 -1
  566. package/node_modules/openai/lib/EventStream.js +107 -2
  567. package/node_modules/openai/lib/EventStream.js.map +1 -1
  568. package/node_modules/openai/lib/EventStream.mjs +107 -2
  569. package/node_modules/openai/lib/EventStream.mjs.map +1 -1
  570. package/node_modules/openai/lib/ResponsesParser.d.mts.map +1 -1
  571. package/node_modules/openai/lib/ResponsesParser.d.ts.map +1 -1
  572. package/node_modules/openai/lib/ResponsesParser.js +3 -5
  573. package/node_modules/openai/lib/ResponsesParser.js.map +1 -1
  574. package/node_modules/openai/lib/ResponsesParser.mjs +3 -5
  575. package/node_modules/openai/lib/ResponsesParser.mjs.map +1 -1
  576. package/node_modules/openai/lib/RunnableFunction.d.mts +38 -21
  577. package/node_modules/openai/lib/RunnableFunction.d.mts.map +1 -1
  578. package/node_modules/openai/lib/RunnableFunction.d.ts +38 -21
  579. package/node_modules/openai/lib/RunnableFunction.d.ts.map +1 -1
  580. package/node_modules/openai/lib/RunnableFunction.js.map +1 -1
  581. package/node_modules/openai/lib/RunnableFunction.mjs.map +1 -1
  582. package/node_modules/openai/lib/jsonschema.d.mts +3 -0
  583. package/node_modules/openai/lib/jsonschema.d.mts.map +1 -1
  584. package/node_modules/openai/lib/jsonschema.d.ts +3 -0
  585. package/node_modules/openai/lib/jsonschema.d.ts.map +1 -1
  586. package/node_modules/openai/lib/parser.d.mts +2 -2
  587. package/node_modules/openai/lib/parser.d.mts.map +1 -1
  588. package/node_modules/openai/lib/parser.d.ts +2 -2
  589. package/node_modules/openai/lib/parser.d.ts.map +1 -1
  590. package/node_modules/openai/lib/parser.js.map +1 -1
  591. package/node_modules/openai/lib/parser.mjs.map +1 -1
  592. package/node_modules/openai/lib/responses/ResponseAccumulator.d.mts +6 -1
  593. package/node_modules/openai/lib/responses/ResponseAccumulator.d.mts.map +1 -1
  594. package/node_modules/openai/lib/responses/ResponseAccumulator.d.ts +6 -1
  595. package/node_modules/openai/lib/responses/ResponseAccumulator.d.ts.map +1 -1
  596. package/node_modules/openai/lib/responses/ResponseAccumulator.js +1 -0
  597. package/node_modules/openai/lib/responses/ResponseAccumulator.js.map +1 -1
  598. package/node_modules/openai/lib/responses/ResponseAccumulator.mjs +1 -0
  599. package/node_modules/openai/lib/responses/ResponseAccumulator.mjs.map +1 -1
  600. package/node_modules/openai/lib/responses/ResponseInputItems.d.mts.map +1 -1
  601. package/node_modules/openai/lib/responses/ResponseInputItems.d.ts.map +1 -1
  602. package/node_modules/openai/lib/responses/ResponseInputItems.js +2 -0
  603. package/node_modules/openai/lib/responses/ResponseInputItems.js.map +1 -1
  604. package/node_modules/openai/lib/responses/ResponseInputItems.mjs +2 -0
  605. package/node_modules/openai/lib/responses/ResponseInputItems.mjs.map +1 -1
  606. package/node_modules/openai/lib/responses/ResponseStream.d.mts +6 -1
  607. package/node_modules/openai/lib/responses/ResponseStream.d.mts.map +1 -1
  608. package/node_modules/openai/lib/responses/ResponseStream.d.ts +6 -1
  609. package/node_modules/openai/lib/responses/ResponseStream.d.ts.map +1 -1
  610. package/node_modules/openai/lib/responses/ResponseStream.js +21 -0
  611. package/node_modules/openai/lib/responses/ResponseStream.js.map +1 -1
  612. package/node_modules/openai/lib/responses/ResponseStream.mjs +21 -0
  613. package/node_modules/openai/lib/responses/ResponseStream.mjs.map +1 -1
  614. package/node_modules/openai/lib/transform.d.mts +25 -1
  615. package/node_modules/openai/lib/transform.d.mts.map +1 -1
  616. package/node_modules/openai/lib/transform.d.ts +25 -1
  617. package/node_modules/openai/lib/transform.d.ts.map +1 -1
  618. package/node_modules/openai/lib/transform.js +1521 -82
  619. package/node_modules/openai/lib/transform.js.map +1 -1
  620. package/node_modules/openai/lib/transform.mjs +1515 -82
  621. package/node_modules/openai/lib/transform.mjs.map +1 -1
  622. package/node_modules/openai/package.json +1 -1
  623. package/node_modules/openai/resources/admin/organization/audit-logs.d.mts +2 -2
  624. package/node_modules/openai/resources/admin/organization/audit-logs.d.mts.map +1 -1
  625. package/node_modules/openai/resources/admin/organization/audit-logs.d.ts +2 -2
  626. package/node_modules/openai/resources/admin/organization/audit-logs.d.ts.map +1 -1
  627. package/node_modules/openai/resources/admin/organization/index.d.mts +1 -0
  628. package/node_modules/openai/resources/admin/organization/index.d.mts.map +1 -1
  629. package/node_modules/openai/resources/admin/organization/index.d.ts +1 -0
  630. package/node_modules/openai/resources/admin/organization/index.d.ts.map +1 -1
  631. package/node_modules/openai/resources/admin/organization/index.js +3 -1
  632. package/node_modules/openai/resources/admin/organization/index.js.map +1 -1
  633. package/node_modules/openai/resources/admin/organization/index.mjs +1 -0
  634. package/node_modules/openai/resources/admin/organization/index.mjs.map +1 -1
  635. package/node_modules/openai/resources/admin/organization/organization.d.mts +4 -0
  636. package/node_modules/openai/resources/admin/organization/organization.d.mts.map +1 -1
  637. package/node_modules/openai/resources/admin/organization/organization.d.ts +4 -0
  638. package/node_modules/openai/resources/admin/organization/organization.d.ts.map +1 -1
  639. package/node_modules/openai/resources/admin/organization/organization.js +4 -0
  640. package/node_modules/openai/resources/admin/organization/organization.js.map +1 -1
  641. package/node_modules/openai/resources/admin/organization/organization.mjs +4 -0
  642. package/node_modules/openai/resources/admin/organization/organization.mjs.map +1 -1
  643. package/node_modules/openai/resources/admin/organization/projects/api-keys.d.mts +12 -0
  644. package/node_modules/openai/resources/admin/organization/projects/api-keys.d.mts.map +1 -1
  645. package/node_modules/openai/resources/admin/organization/projects/api-keys.d.ts +12 -0
  646. package/node_modules/openai/resources/admin/organization/projects/api-keys.d.ts.map +1 -1
  647. package/node_modules/openai/resources/admin/organization/projects/index.d.mts +2 -1
  648. package/node_modules/openai/resources/admin/organization/projects/index.d.mts.map +1 -1
  649. package/node_modules/openai/resources/admin/organization/projects/index.d.ts +2 -1
  650. package/node_modules/openai/resources/admin/organization/projects/index.d.ts.map +1 -1
  651. package/node_modules/openai/resources/admin/organization/projects/index.js +7 -5
  652. package/node_modules/openai/resources/admin/organization/projects/index.js.map +1 -1
  653. package/node_modules/openai/resources/admin/organization/projects/index.mjs +2 -1
  654. package/node_modules/openai/resources/admin/organization/projects/index.mjs.map +1 -1
  655. package/node_modules/openai/resources/admin/organization/projects/projects.d.mts +6 -2
  656. package/node_modules/openai/resources/admin/organization/projects/projects.d.mts.map +1 -1
  657. package/node_modules/openai/resources/admin/organization/projects/projects.d.ts +6 -2
  658. package/node_modules/openai/resources/admin/organization/projects/projects.d.ts.map +1 -1
  659. package/node_modules/openai/resources/admin/organization/projects/projects.js +6 -2
  660. package/node_modules/openai/resources/admin/organization/projects/projects.js.map +1 -1
  661. package/node_modules/openai/resources/admin/organization/projects/projects.mjs +6 -2
  662. package/node_modules/openai/resources/admin/organization/projects/projects.mjs.map +1 -1
  663. package/node_modules/openai/resources/admin/organization/projects/service-accounts/api-keys.d.mts +58 -0
  664. package/node_modules/openai/resources/admin/organization/projects/service-accounts/api-keys.d.mts.map +1 -0
  665. package/node_modules/openai/resources/admin/organization/projects/service-accounts/api-keys.d.ts +58 -0
  666. package/node_modules/openai/resources/admin/organization/projects/service-accounts/api-keys.d.ts.map +1 -0
  667. package/node_modules/openai/resources/admin/organization/projects/service-accounts/api-keys.js +26 -0
  668. package/node_modules/openai/resources/admin/organization/projects/service-accounts/api-keys.js.map +1 -0
  669. package/node_modules/openai/resources/admin/organization/projects/service-accounts/api-keys.mjs +22 -0
  670. package/node_modules/openai/resources/admin/organization/projects/service-accounts/api-keys.mjs.map +1 -0
  671. package/node_modules/openai/resources/admin/organization/projects/service-accounts/index.d.mts +3 -0
  672. package/node_modules/openai/resources/admin/organization/projects/service-accounts/index.d.mts.map +1 -0
  673. package/node_modules/openai/resources/admin/organization/projects/service-accounts/index.d.ts +3 -0
  674. package/node_modules/openai/resources/admin/organization/projects/service-accounts/index.d.ts.map +1 -0
  675. package/node_modules/openai/resources/admin/organization/projects/service-accounts/index.js +9 -0
  676. package/node_modules/openai/resources/admin/organization/projects/service-accounts/index.js.map +1 -0
  677. package/node_modules/openai/resources/admin/organization/projects/service-accounts/index.mjs +4 -0
  678. package/node_modules/openai/resources/admin/organization/projects/service-accounts/index.mjs.map +1 -0
  679. package/node_modules/openai/resources/admin/organization/projects/service-accounts/service-accounts.d.mts +177 -0
  680. package/node_modules/openai/resources/admin/organization/projects/service-accounts/service-accounts.d.mts.map +1 -0
  681. package/node_modules/openai/resources/admin/organization/projects/service-accounts/service-accounts.d.ts +177 -0
  682. package/node_modules/openai/resources/admin/organization/projects/service-accounts/service-accounts.d.ts.map +1 -0
  683. package/node_modules/openai/resources/admin/organization/projects/service-accounts/service-accounts.js +109 -0
  684. package/node_modules/openai/resources/admin/organization/projects/service-accounts/service-accounts.js.map +1 -0
  685. package/node_modules/openai/resources/admin/organization/projects/service-accounts/service-accounts.mjs +104 -0
  686. package/node_modules/openai/resources/admin/organization/projects/service-accounts/service-accounts.mjs.map +1 -0
  687. package/node_modules/openai/resources/admin/organization/projects/service-accounts.d.mts +1 -167
  688. package/node_modules/openai/resources/admin/organization/projects/service-accounts.d.mts.map +1 -1
  689. package/node_modules/openai/resources/admin/organization/projects/service-accounts.d.ts +1 -167
  690. package/node_modules/openai/resources/admin/organization/projects/service-accounts.d.ts.map +1 -1
  691. package/node_modules/openai/resources/admin/organization/projects/service-accounts.js +2 -97
  692. package/node_modules/openai/resources/admin/organization/projects/service-accounts.js.map +1 -1
  693. package/node_modules/openai/resources/admin/organization/projects/service-accounts.mjs +1 -95
  694. package/node_modules/openai/resources/admin/organization/projects/service-accounts.mjs.map +1 -1
  695. package/node_modules/openai/resources/admin/organization/projects/spend-limit.d.mts +115 -0
  696. package/node_modules/openai/resources/admin/organization/projects/spend-limit.d.mts.map +1 -0
  697. package/node_modules/openai/resources/admin/organization/projects/spend-limit.d.ts +115 -0
  698. package/node_modules/openai/resources/admin/organization/projects/spend-limit.d.ts.map +1 -0
  699. package/node_modules/openai/resources/admin/organization/projects/spend-limit.js +67 -0
  700. package/node_modules/openai/resources/admin/organization/projects/spend-limit.js.map +1 -0
  701. package/node_modules/openai/resources/admin/organization/projects/spend-limit.mjs +63 -0
  702. package/node_modules/openai/resources/admin/organization/projects/spend-limit.mjs.map +1 -0
  703. package/node_modules/openai/resources/admin/organization/spend-limit.d.mts +108 -0
  704. package/node_modules/openai/resources/admin/organization/spend-limit.d.mts.map +1 -0
  705. package/node_modules/openai/resources/admin/organization/spend-limit.d.ts +108 -0
  706. package/node_modules/openai/resources/admin/organization/spend-limit.d.ts.map +1 -0
  707. package/node_modules/openai/resources/admin/organization/spend-limit.js +59 -0
  708. package/node_modules/openai/resources/admin/organization/spend-limit.js.map +1 -0
  709. package/node_modules/openai/resources/admin/organization/spend-limit.mjs +55 -0
  710. package/node_modules/openai/resources/admin/organization/spend-limit.mjs.map +1 -0
  711. package/node_modules/openai/resources/admin/organization/usage.d.mts +517 -88
  712. package/node_modules/openai/resources/admin/organization/usage.d.mts.map +1 -1
  713. package/node_modules/openai/resources/admin/organization/usage.d.ts +517 -88
  714. package/node_modules/openai/resources/admin/organization/usage.d.ts.map +1 -1
  715. package/node_modules/openai/resources/beta/assistants.d.mts +12 -26
  716. package/node_modules/openai/resources/beta/assistants.d.mts.map +1 -1
  717. package/node_modules/openai/resources/beta/assistants.d.ts +12 -26
  718. package/node_modules/openai/resources/beta/assistants.d.ts.map +1 -1
  719. package/node_modules/openai/resources/beta/beta.d.mts +6 -1
  720. package/node_modules/openai/resources/beta/beta.d.mts.map +1 -1
  721. package/node_modules/openai/resources/beta/beta.d.ts +6 -1
  722. package/node_modules/openai/resources/beta/beta.d.ts.map +1 -1
  723. package/node_modules/openai/resources/beta/beta.js +4 -0
  724. package/node_modules/openai/resources/beta/beta.js.map +1 -1
  725. package/node_modules/openai/resources/beta/beta.mjs +4 -0
  726. package/node_modules/openai/resources/beta/beta.mjs.map +1 -1
  727. package/node_modules/openai/resources/beta/index.d.mts +1 -0
  728. package/node_modules/openai/resources/beta/index.d.mts.map +1 -1
  729. package/node_modules/openai/resources/beta/index.d.ts +1 -0
  730. package/node_modules/openai/resources/beta/index.d.ts.map +1 -1
  731. package/node_modules/openai/resources/beta/index.js +5 -3
  732. package/node_modules/openai/resources/beta/index.js.map +1 -1
  733. package/node_modules/openai/resources/beta/index.mjs +1 -0
  734. package/node_modules/openai/resources/beta/index.mjs.map +1 -1
  735. package/node_modules/openai/resources/beta/responses/index.d.mts +6 -0
  736. package/node_modules/openai/resources/beta/responses/index.d.mts.map +1 -0
  737. package/node_modules/openai/resources/beta/responses/index.d.ts +6 -0
  738. package/node_modules/openai/resources/beta/responses/index.d.ts.map +1 -0
  739. package/node_modules/openai/resources/beta/responses/index.js +11 -0
  740. package/node_modules/openai/resources/beta/responses/index.js.map +1 -0
  741. package/node_modules/openai/resources/beta/responses/index.mjs +5 -0
  742. package/node_modules/openai/resources/beta/responses/index.mjs.map +1 -0
  743. package/node_modules/openai/resources/beta/responses/input-items.d.mts +69 -0
  744. package/node_modules/openai/resources/beta/responses/input-items.d.mts.map +1 -0
  745. package/node_modules/openai/resources/beta/responses/input-items.d.ts +69 -0
  746. package/node_modules/openai/resources/beta/responses/input-items.d.ts.map +1 -0
  747. package/node_modules/openai/resources/beta/responses/input-items.js +37 -0
  748. package/node_modules/openai/resources/beta/responses/input-items.js.map +1 -0
  749. package/node_modules/openai/resources/beta/responses/input-items.mjs +33 -0
  750. package/node_modules/openai/resources/beta/responses/input-items.mjs.map +1 -0
  751. package/node_modules/openai/resources/beta/responses/input-tokens.d.mts +195 -0
  752. package/node_modules/openai/resources/beta/responses/input-tokens.d.mts.map +1 -0
  753. package/node_modules/openai/resources/beta/responses/input-tokens.d.ts +195 -0
  754. package/node_modules/openai/resources/beta/responses/input-tokens.d.ts.map +1 -0
  755. package/node_modules/openai/resources/beta/responses/input-tokens.js +34 -0
  756. package/node_modules/openai/resources/beta/responses/input-tokens.js.map +1 -0
  757. package/node_modules/openai/resources/beta/responses/input-tokens.mjs +30 -0
  758. package/node_modules/openai/resources/beta/responses/input-tokens.mjs.map +1 -0
  759. package/node_modules/openai/resources/beta/responses/internal-base.d.mts +71 -0
  760. package/node_modules/openai/resources/beta/responses/internal-base.d.mts.map +1 -0
  761. package/node_modules/openai/resources/beta/responses/internal-base.d.ts +71 -0
  762. package/node_modules/openai/resources/beta/responses/internal-base.d.ts.map +1 -0
  763. package/node_modules/openai/resources/beta/responses/internal-base.js +48 -0
  764. package/node_modules/openai/resources/beta/responses/internal-base.js.map +1 -0
  765. package/node_modules/openai/resources/beta/responses/internal-base.mjs +42 -0
  766. package/node_modules/openai/resources/beta/responses/internal-base.mjs.map +1 -0
  767. package/node_modules/openai/resources/beta/responses/responses.d.mts +9996 -0
  768. package/node_modules/openai/resources/beta/responses/responses.d.mts.map +1 -0
  769. package/node_modules/openai/resources/beta/responses/responses.d.ts +9996 -0
  770. package/node_modules/openai/resources/beta/responses/responses.d.ts.map +1 -0
  771. package/node_modules/openai/resources/beta/responses/responses.js +121 -0
  772. package/node_modules/openai/resources/beta/responses/responses.js.map +1 -0
  773. package/node_modules/openai/resources/beta/responses/responses.mjs +116 -0
  774. package/node_modules/openai/resources/beta/responses/responses.mjs.map +1 -0
  775. package/node_modules/openai/resources/beta/responses/ws-base.d.mts +106 -0
  776. package/node_modules/openai/resources/beta/responses/ws-base.d.mts.map +1 -0
  777. package/node_modules/openai/resources/beta/responses/ws-base.d.ts +106 -0
  778. package/node_modules/openai/resources/beta/responses/ws-base.d.ts.map +1 -0
  779. package/node_modules/openai/resources/beta/responses/ws-base.js +476 -0
  780. package/node_modules/openai/resources/beta/responses/ws-base.js.map +1 -0
  781. package/node_modules/openai/resources/beta/responses/ws-base.mjs +472 -0
  782. package/node_modules/openai/resources/beta/responses/ws-base.mjs.map +1 -0
  783. package/node_modules/openai/resources/beta/responses/ws.d.mts +13 -0
  784. package/node_modules/openai/resources/beta/responses/ws.d.mts.map +1 -0
  785. package/node_modules/openai/resources/beta/responses/ws.d.ts +13 -0
  786. package/node_modules/openai/resources/beta/responses/ws.d.ts.map +1 -0
  787. package/node_modules/openai/resources/beta/responses/ws.js +31 -0
  788. package/node_modules/openai/resources/beta/responses/ws.js.map +1 -0
  789. package/node_modules/openai/resources/beta/responses/ws.mjs +26 -0
  790. package/node_modules/openai/resources/beta/responses/ws.mjs.map +1 -0
  791. package/node_modules/openai/resources/beta/responses.d.mts +2 -0
  792. package/node_modules/openai/resources/beta/responses.d.mts.map +1 -0
  793. package/node_modules/openai/resources/beta/responses.d.ts +2 -0
  794. package/node_modules/openai/resources/beta/responses.d.ts.map +1 -0
  795. package/node_modules/openai/resources/beta/responses.js +6 -0
  796. package/node_modules/openai/resources/beta/responses.js.map +1 -0
  797. package/node_modules/openai/resources/beta/responses.mjs +3 -0
  798. package/node_modules/openai/resources/beta/responses.mjs.map +1 -0
  799. package/node_modules/openai/resources/beta/threads/runs/runs.d.mts +6 -13
  800. package/node_modules/openai/resources/beta/threads/runs/runs.d.mts.map +1 -1
  801. package/node_modules/openai/resources/beta/threads/runs/runs.d.ts +6 -13
  802. package/node_modules/openai/resources/beta/threads/runs/runs.d.ts.map +1 -1
  803. package/node_modules/openai/resources/beta/threads/runs/runs.js.map +1 -1
  804. package/node_modules/openai/resources/beta/threads/runs/runs.mjs.map +1 -1
  805. package/node_modules/openai/resources/chat/completions/completions.d.mts +174 -23
  806. package/node_modules/openai/resources/chat/completions/completions.d.mts.map +1 -1
  807. package/node_modules/openai/resources/chat/completions/completions.d.ts +174 -23
  808. package/node_modules/openai/resources/chat/completions/completions.d.ts.map +1 -1
  809. package/node_modules/openai/resources/chat/completions/completions.js.map +1 -1
  810. package/node_modules/openai/resources/chat/completions/completions.mjs.map +1 -1
  811. package/node_modules/openai/resources/completions.d.mts +4 -0
  812. package/node_modules/openai/resources/completions.d.mts.map +1 -1
  813. package/node_modules/openai/resources/completions.d.ts +4 -0
  814. package/node_modules/openai/resources/completions.d.ts.map +1 -1
  815. package/node_modules/openai/resources/conversations/conversations.d.mts +19 -0
  816. package/node_modules/openai/resources/conversations/conversations.d.mts.map +1 -1
  817. package/node_modules/openai/resources/conversations/conversations.d.ts +19 -0
  818. package/node_modules/openai/resources/conversations/conversations.d.ts.map +1 -1
  819. package/node_modules/openai/resources/conversations/conversations.js.map +1 -1
  820. package/node_modules/openai/resources/conversations/conversations.mjs.map +1 -1
  821. package/node_modules/openai/resources/conversations/items.d.mts +45 -1
  822. package/node_modules/openai/resources/conversations/items.d.mts.map +1 -1
  823. package/node_modules/openai/resources/conversations/items.d.ts +45 -1
  824. package/node_modules/openai/resources/conversations/items.d.ts.map +1 -1
  825. package/node_modules/openai/resources/evals/runs/runs.d.mts +66 -143
  826. package/node_modules/openai/resources/evals/runs/runs.d.mts.map +1 -1
  827. package/node_modules/openai/resources/evals/runs/runs.d.ts +66 -143
  828. package/node_modules/openai/resources/evals/runs/runs.d.ts.map +1 -1
  829. package/node_modules/openai/resources/evals/runs/runs.js.map +1 -1
  830. package/node_modules/openai/resources/evals/runs/runs.mjs.map +1 -1
  831. package/node_modules/openai/resources/graders/grader-models.d.mts +6 -13
  832. package/node_modules/openai/resources/graders/grader-models.d.mts.map +1 -1
  833. package/node_modules/openai/resources/graders/grader-models.d.ts +6 -13
  834. package/node_modules/openai/resources/graders/grader-models.d.ts.map +1 -1
  835. package/node_modules/openai/resources/realtime/calls.d.mts +1 -1
  836. package/node_modules/openai/resources/realtime/calls.d.mts.map +1 -1
  837. package/node_modules/openai/resources/realtime/calls.d.ts +1 -1
  838. package/node_modules/openai/resources/realtime/calls.d.ts.map +1 -1
  839. package/node_modules/openai/resources/realtime/client-secrets.d.mts +5 -1
  840. package/node_modules/openai/resources/realtime/client-secrets.d.mts.map +1 -1
  841. package/node_modules/openai/resources/realtime/client-secrets.d.ts +5 -1
  842. package/node_modules/openai/resources/realtime/client-secrets.d.ts.map +1 -1
  843. package/node_modules/openai/resources/realtime/realtime.d.mts +9 -1
  844. package/node_modules/openai/resources/realtime/realtime.d.mts.map +1 -1
  845. package/node_modules/openai/resources/realtime/realtime.d.ts +9 -1
  846. package/node_modules/openai/resources/realtime/realtime.d.ts.map +1 -1
  847. package/node_modules/openai/resources/realtime/realtime.js.map +1 -1
  848. package/node_modules/openai/resources/realtime/realtime.mjs.map +1 -1
  849. package/node_modules/openai/resources/responses/input-tokens.d.mts +9 -2
  850. package/node_modules/openai/resources/responses/input-tokens.d.mts.map +1 -1
  851. package/node_modules/openai/resources/responses/input-tokens.d.ts +9 -2
  852. package/node_modules/openai/resources/responses/input-tokens.d.ts.map +1 -1
  853. package/node_modules/openai/resources/responses/responses.d.mts +827 -33
  854. package/node_modules/openai/resources/responses/responses.d.mts.map +1 -1
  855. package/node_modules/openai/resources/responses/responses.d.ts +827 -33
  856. package/node_modules/openai/resources/responses/responses.d.ts.map +1 -1
  857. package/node_modules/openai/resources/responses/responses.js +1 -1
  858. package/node_modules/openai/resources/responses/responses.js.map +1 -1
  859. package/node_modules/openai/resources/responses/responses.mjs +1 -1
  860. package/node_modules/openai/resources/responses/responses.mjs.map +1 -1
  861. package/node_modules/openai/resources/shared.d.mts +24 -29
  862. package/node_modules/openai/resources/shared.d.mts.map +1 -1
  863. package/node_modules/openai/resources/shared.d.ts +24 -29
  864. package/node_modules/openai/resources/shared.d.ts.map +1 -1
  865. package/node_modules/openai/src/azure.ts +5 -1
  866. package/node_modules/openai/src/client.ts +13 -5
  867. package/node_modules/openai/src/core/streaming.ts +36 -8
  868. package/node_modules/openai/src/core/uploads.ts +6 -1
  869. package/node_modules/openai/src/helpers/audio.ts +18 -4
  870. package/node_modules/openai/src/helpers/standard-schema.ts +570 -0
  871. package/node_modules/openai/src/helpers/zod.ts +218 -50
  872. package/node_modules/openai/src/index.ts +1 -1
  873. package/node_modules/openai/src/internal/headers.ts +7 -3
  874. package/node_modules/openai/src/internal/uploads.ts +214 -4
  875. package/node_modules/openai/src/lib/AbstractChatCompletionRunner.ts +75 -10
  876. package/node_modules/openai/src/lib/AssistantStream.ts +4 -3
  877. package/node_modules/openai/src/lib/ChatCompletionRunner.ts +46 -6
  878. package/node_modules/openai/src/lib/ChatCompletionStream.ts +171 -25
  879. package/node_modules/openai/src/lib/ChatCompletionStreamingRunner.ts +144 -7
  880. package/node_modules/openai/src/lib/EventStream.ts +114 -4
  881. package/node_modules/openai/src/lib/ResponsesParser.ts +7 -5
  882. package/node_modules/openai/src/lib/RunnableFunction.ts +60 -31
  883. package/node_modules/openai/src/lib/jsonschema.ts +3 -0
  884. package/node_modules/openai/src/lib/parser.ts +4 -0
  885. package/node_modules/openai/src/lib/responses/ResponseAccumulator.ts +10 -1
  886. package/node_modules/openai/src/lib/responses/ResponseInputItems.ts +2 -0
  887. package/node_modules/openai/src/lib/responses/ResponseStream.ts +29 -1
  888. package/node_modules/openai/src/lib/transform.ts +1930 -103
  889. package/node_modules/openai/src/resources/admin/organization/audit-logs.ts +169 -1
  890. package/node_modules/openai/src/resources/admin/organization/index.ts +6 -0
  891. package/node_modules/openai/src/resources/admin/organization/organization.ts +16 -0
  892. package/node_modules/openai/src/resources/admin/organization/projects/api-keys.ts +15 -1
  893. package/node_modules/openai/src/resources/admin/organization/projects/index.ts +7 -1
  894. package/node_modules/openai/src/resources/admin/organization/projects/projects.ts +29 -13
  895. package/node_modules/openai/src/resources/admin/organization/projects/service-accounts/api-keys.ts +80 -0
  896. package/node_modules/openai/src/resources/admin/organization/projects/service-accounts/index.ts +15 -0
  897. package/node_modules/openai/src/resources/admin/organization/projects/service-accounts/service-accounts.ts +284 -0
  898. package/node_modules/openai/src/resources/admin/organization/projects/service-accounts.ts +1 -264
  899. package/node_modules/openai/src/resources/admin/organization/projects/spend-limit.ts +156 -0
  900. package/node_modules/openai/src/resources/admin/organization/spend-limit.ts +144 -0
  901. package/node_modules/openai/src/resources/admin/organization/usage.ts +616 -88
  902. package/node_modules/openai/src/resources/beta/assistants.ts +12 -26
  903. package/node_modules/openai/src/resources/beta/beta.ts +330 -2
  904. package/node_modules/openai/src/resources/beta/index.ts +163 -0
  905. package/node_modules/openai/src/resources/beta/responses/index.ts +169 -0
  906. package/node_modules/openai/src/resources/beta/responses/input-items.ts +105 -0
  907. package/node_modules/openai/src/resources/beta/responses/input-tokens.ts +249 -0
  908. package/node_modules/openai/src/resources/beta/responses/internal-base.ts +117 -0
  909. package/node_modules/openai/src/resources/beta/responses/responses.ts +12644 -0
  910. package/node_modules/openai/src/resources/beta/responses/ws-base.ts +615 -0
  911. package/node_modules/openai/src/resources/beta/responses/ws.ts +38 -0
  912. package/node_modules/openai/src/resources/beta/responses.ts +3 -0
  913. package/node_modules/openai/src/resources/beta/threads/runs/runs.ts +6 -13
  914. package/node_modules/openai/src/resources/chat/completions/completions.ts +241 -26
  915. package/node_modules/openai/src/resources/completions.ts +5 -0
  916. package/node_modules/openai/src/resources/conversations/conversations.ts +21 -0
  917. package/node_modules/openai/src/resources/conversations/items.ts +56 -0
  918. package/node_modules/openai/src/resources/evals/runs/runs.ts +66 -143
  919. package/node_modules/openai/src/resources/graders/grader-models.ts +6 -13
  920. package/node_modules/openai/src/resources/realtime/calls.ts +2 -0
  921. package/node_modules/openai/src/resources/realtime/client-secrets.ts +7 -0
  922. package/node_modules/openai/src/resources/realtime/realtime.ts +12 -0
  923. package/node_modules/openai/src/resources/responses/input-tokens.ts +10 -1
  924. package/node_modules/openai/src/resources/responses/responses.ts +962 -24
  925. package/node_modules/openai/src/resources/shared.ts +27 -28
  926. package/node_modules/openai/src/version.ts +1 -1
  927. package/node_modules/openai/version.d.mts +1 -1
  928. package/node_modules/openai/version.d.ts +1 -1
  929. package/node_modules/openai/version.js +1 -1
  930. package/node_modules/openai/version.mjs +1 -1
  931. package/node_modules/process-warning/LICENSE +1 -1
  932. package/node_modules/process-warning/README.md +41 -2
  933. package/node_modules/process-warning/index.js +85 -17
  934. package/node_modules/process-warning/package.json +6 -7
  935. package/node_modules/process-warning/test/emit-once-only.test.js +3 -3
  936. package/node_modules/process-warning/test/emit-reset.test.js +4 -4
  937. package/node_modules/process-warning/test/emit-unlimited.test.js +2 -2
  938. package/node_modules/process-warning/test/spy-warning.test.js +143 -0
  939. package/node_modules/process-warning/types/index.d.ts +15 -1
  940. package/node_modules/process-warning/types/index.tst.ts +48 -0
  941. package/node_modules/tar-fs/index.js +39 -10
  942. package/node_modules/tar-fs/package.json +6 -1
  943. package/node_modules/tar-fs/test/index.js +111 -0
  944. package/node_modules/ws/lib/receiver.js +15 -32
  945. package/node_modules/ws/lib/websocket-server.js +4 -4
  946. package/node_modules/ws/lib/websocket.js +4 -4
  947. package/node_modules/ws/package.json +5 -1
  948. package/package.json +6 -6
  949. package/node_modules/@hono/node-server/dist/conninfo.js +0 -42
  950. package/node_modules/@hono/node-server/dist/globals.d.mts +0 -2
  951. package/node_modules/@hono/node-server/dist/globals.d.ts +0 -2
  952. package/node_modules/@hono/node-server/dist/globals.js +0 -29
  953. package/node_modules/@hono/node-server/dist/globals.mjs +0 -5
  954. package/node_modules/@hono/node-server/dist/index.d.ts +0 -8
  955. package/node_modules/@hono/node-server/dist/index.js +0 -702
  956. package/node_modules/@hono/node-server/dist/listener.d.mts +0 -13
  957. package/node_modules/@hono/node-server/dist/listener.d.ts +0 -13
  958. package/node_modules/@hono/node-server/dist/listener.js +0 -670
  959. package/node_modules/@hono/node-server/dist/listener.mjs +0 -635
  960. package/node_modules/@hono/node-server/dist/request.d.mts +0 -25
  961. package/node_modules/@hono/node-server/dist/request.d.ts +0 -25
  962. package/node_modules/@hono/node-server/dist/request.js +0 -238
  963. package/node_modules/@hono/node-server/dist/request.mjs +0 -206
  964. package/node_modules/@hono/node-server/dist/response.d.mts +0 -26
  965. package/node_modules/@hono/node-server/dist/response.d.ts +0 -26
  966. package/node_modules/@hono/node-server/dist/response.js +0 -112
  967. package/node_modules/@hono/node-server/dist/response.mjs +0 -85
  968. package/node_modules/@hono/node-server/dist/serve-static.d.ts +0 -17
  969. package/node_modules/@hono/node-server/dist/serve-static.js +0 -177
  970. package/node_modules/@hono/node-server/dist/server.d.mts +0 -10
  971. package/node_modules/@hono/node-server/dist/server.d.ts +0 -10
  972. package/node_modules/@hono/node-server/dist/server.js +0 -696
  973. package/node_modules/@hono/node-server/dist/server.mjs +0 -660
  974. package/node_modules/@hono/node-server/dist/types.d.mts +0 -44
  975. package/node_modules/@hono/node-server/dist/types.d.ts +0 -44
  976. package/node_modules/@hono/node-server/dist/types.js +0 -18
  977. package/node_modules/@hono/node-server/dist/types.mjs +0 -0
  978. package/node_modules/@hono/node-server/dist/utils/response/constants.d.mts +0 -3
  979. package/node_modules/@hono/node-server/dist/utils/response/constants.d.ts +0 -3
  980. package/node_modules/@hono/node-server/dist/utils/response/constants.js +0 -30
  981. package/node_modules/@hono/node-server/dist/utils/response/constants.mjs +0 -5
  982. package/node_modules/@hono/node-server/dist/utils/response.d.ts +0 -3
  983. package/node_modules/@hono/node-server/dist/utils/response.js +0 -37
  984. package/node_modules/@hono/node-server/dist/utils.d.mts +0 -9
  985. package/node_modules/@hono/node-server/dist/utils.d.ts +0 -9
  986. package/node_modules/@hono/node-server/dist/utils.js +0 -99
  987. package/node_modules/@hono/node-server/dist/utils.mjs +0 -71
  988. package/node_modules/@hono/node-server/dist/vercel.d.mts +0 -7
  989. package/node_modules/@hono/node-server/dist/vercel.d.ts +0 -7
  990. package/node_modules/@hono/node-server/dist/vercel.js +0 -677
  991. package/node_modules/@hono/node-server/dist/vercel.mjs +0 -640
  992. package/node_modules/fast-copy/CHANGELOG.md +0 -176
  993. package/node_modules/fast-copy/dist/cjs/copier.d.cts +0 -75
  994. package/node_modules/fast-copy/dist/cjs/options.d.cts +0 -69
  995. package/node_modules/fast-copy/dist/cjs/utils.d.cts +0 -13
  996. package/node_modules/fast-copy/dist/es/copier.d.mts +0 -75
  997. package/node_modules/fast-copy/dist/es/options.d.mts +0 -69
  998. package/node_modules/fast-copy/dist/es/utils.d.mts +0 -13
  999. package/node_modules/fast-copy/dist/umd/copier.d.ts +0 -72
  1000. package/node_modules/fast-copy/dist/umd/options.d.ts +0 -65
  1001. package/node_modules/fast-copy/dist/umd/utils.d.ts +0 -13
  1002. package/node_modules/hono/dist/tsconfig.build.tsbuildinfo +0 -1
  1003. package/node_modules/jose/dist/webapi/lib/aesgcmkw.js +0 -15
  1004. package/node_modules/jose/dist/webapi/lib/aeskw.js +0 -25
  1005. package/node_modules/jose/dist/webapi/lib/check_key_type.js +0 -122
  1006. package/node_modules/jose/dist/webapi/lib/ecdhes.js +0 -52
  1007. package/node_modules/jose/dist/webapi/lib/key_to_jwk.js +0 -31
  1008. package/node_modules/jose/dist/webapi/lib/normalize_key.js +0 -166
  1009. package/node_modules/jose/dist/webapi/lib/pbes2kw.js +0 -42
  1010. package/node_modules/jose/dist/webapi/lib/rsaes.js +0 -24
  1011. package/node_modules/jose/dist/webapi/lib/validate_algorithms.js +0 -10
  1012. package/node_modules/jose/dist/webapi/lib/validate_crit.js +0 -33
  1013. package/node_modules/process-warning/types/index.test-d.ts +0 -36
@@ -1,31 +1,37 @@
1
- /**
2
- * Decrypting JSON Web Encryption (JWE) in Compact Serialization
3
- *
4
- * @module
5
- */
6
1
  import type * as types from '../../types.d.ts';
7
2
  /**
8
3
  * Interface for Compact JWE Decryption dynamic key resolution. No token components have been
9
4
  * verified at the time of this function call.
10
5
  */
11
- export interface CompactDecryptGetKey extends types.GetKeyFunction<types.CompactJWEHeaderParameters, types.FlattenedJWE> {
6
+ export interface CompactDecryptGetKey<KeyType extends types.CryptoKey | Uint8Array = types.CryptoKey | Uint8Array> extends types.GetKeyFunction<types.CompactJWEHeaderParameters, types.FlattenedJWE, KeyType | types.KeyObject | types.JWK> {
12
7
  }
13
8
  /**
14
9
  * Decrypts a Compact JWE.
15
10
  *
16
- * This function is exported (as a named export) from the main `'jose'` module entry point as well
17
- * as from its subpath export `'jose/jwe/compact/decrypt'`.
18
- *
19
11
  * @param jwe Compact JWE.
20
12
  * @param key Private Key or Secret to decrypt the JWE with. See
21
13
  * {@link https://github.com/panva/jose/issues/210#jwe-alg Algorithm Key Requirements}.
22
14
  * @param options JWE Decryption options.
23
15
  */
24
- export declare function compactDecrypt(jwe: string | Uint8Array, key: types.CryptoKey | types.KeyObject | types.JWK | Uint8Array, options?: types.DecryptOptions): Promise<types.CompactDecryptResult>;
16
+ export declare function compactDecrypt(jwe: string | Uint8Array, key: types.KeyInput, options?: types.DecryptOptions): Promise<types.CompactDecryptResult>;
25
17
  /**
18
+ * Decrypts a Compact JWE, resolving the key dynamically. The result additionally carries the
19
+ * {@link types.ResolvedKey.key resolved key}.
20
+ *
26
21
  * @param jwe Compact JWE.
27
22
  * @param getKey Function resolving Private Key or Secret to decrypt the JWE with. See
28
23
  * {@link https://github.com/panva/jose/issues/210#jwe-alg Algorithm Key Requirements}.
29
24
  * @param options JWE Decryption options.
30
25
  */
31
- export declare function compactDecrypt(jwe: string | Uint8Array, getKey: CompactDecryptGetKey, options?: types.DecryptOptions): Promise<types.CompactDecryptResult & types.ResolvedKey>;
26
+ export declare function compactDecrypt<KeyType extends types.CryptoKey | Uint8Array = types.CryptoKey | Uint8Array>(jwe: string | Uint8Array, getKey: CompactDecryptGetKey<KeyType>, options?: types.DecryptOptions): Promise<types.CompactDecryptResult & types.ResolvedKey<KeyType>>;
27
+ /**
28
+ * Accepts either form of the `key` argument. Use this overload when forwarding a value that may be
29
+ * either a key or a key resolution function; `key` is present on the result only when a resolution
30
+ * function was used.
31
+ *
32
+ * @param jwe Compact JWE.
33
+ * @param key Private Key or Secret, or a function resolving one, to decrypt the JWE with. See
34
+ * {@link https://github.com/panva/jose/issues/210#jwe-alg Algorithm Key Requirements}.
35
+ * @param options JWE Decryption options.
36
+ */
37
+ export declare function compactDecrypt(jwe: string | Uint8Array, key: types.KeyInput | CompactDecryptGetKey, options?: types.DecryptOptions): Promise<types.CompactDecryptResult & Partial<types.ResolvedKey>>;
@@ -1,16 +1,5 @@
1
- /**
2
- * Encrypting JSON Web Encryption (JWE) in Compact Serialization
3
- *
4
- * @module
5
- */
6
1
  import type * as types from '../../types.d.ts';
7
- /**
8
- * The CompactEncrypt class is used to build and encrypt Compact JWE strings.
9
- *
10
- * This class is exported (as a named export) from the main `'jose'` module entry point as well as
11
- * from its subpath export `'jose/jwe/compact/encrypt'`.
12
- *
13
- */
2
+ /** The CompactEncrypt class is used to build and encrypt Compact JWE strings. */
14
3
  export declare class CompactEncrypt {
15
4
  #private;
16
5
  /**
@@ -21,7 +10,7 @@ export declare class CompactEncrypt {
21
10
  constructor(plaintext: Uint8Array);
22
11
  /**
23
12
  * Sets a content encryption key to use, by default a random suitable one is generated for the JWE
24
- * enc" (Encryption Algorithm) Header Parameter.
13
+ * "enc" (Encryption Algorithm) Header Parameter.
25
14
  *
26
15
  * @deprecated You should not use this method. It is only really intended for test and vector
27
16
  * validation purposes.
@@ -31,7 +20,7 @@ export declare class CompactEncrypt {
31
20
  setContentEncryptionKey(cek: Uint8Array): this;
32
21
  /**
33
22
  * Sets the JWE Initialization Vector to use for content encryption, by default a random suitable
34
- * one is generated for the JWE enc" (Encryption Algorithm) Header Parameter.
23
+ * one is generated for the JWE "enc" (Encryption Algorithm) Header Parameter.
35
24
  *
36
25
  * @deprecated You should not use this method. It is only really intended for test and vector
37
26
  * validation purposes.
@@ -46,10 +35,9 @@ export declare class CompactEncrypt {
46
35
  */
47
36
  setProtectedHeader(protectedHeader: types.CompactJWEHeaderParameters): this;
48
37
  /**
49
- * Sets the JWE Key Management parameters to be used when encrypting.
50
- *
51
- * (ECDH-ES) Use of this method is needed for ECDH based algorithms to set the "apu" (Agreement
52
- * PartyUInfo) or "apv" (Agreement PartyVInfo) parameters.
38
+ * Sets the JWE Key Management parameters to be used when encrypting. For ECDH based algorithms,
39
+ * use this method to set the "apu" (Agreement PartyUInfo) or "apv" (Agreement PartyVInfo)
40
+ * parameters.
53
41
  *
54
42
  * @param parameters JWE Key Management parameters.
55
43
  */
@@ -61,5 +49,5 @@ export declare class CompactEncrypt {
61
49
  * {@link https://github.com/panva/jose/issues/210#jwe-alg Algorithm Key Requirements}.
62
50
  * @param options JWE Encryption options.
63
51
  */
64
- encrypt(key: types.CryptoKey | types.KeyObject | types.JWK | Uint8Array, options?: types.EncryptOptions): Promise<string>;
52
+ encrypt(key: types.KeyInput, options?: types.EncryptOptions): Promise<string>;
65
53
  }
@@ -1,31 +1,37 @@
1
- /**
2
- * Decrypting JSON Web Encryption (JWE) in Flattened JSON Serialization
3
- *
4
- * @module
5
- */
6
1
  import type * as types from '../../types.d.ts';
7
2
  /**
8
3
  * Interface for Flattened JWE Decryption dynamic key resolution. No token components have been
9
4
  * verified at the time of this function call.
10
5
  */
11
- export interface FlattenedDecryptGetKey extends types.GetKeyFunction<types.JWEHeaderParameters | undefined, types.FlattenedJWE> {
6
+ export interface FlattenedDecryptGetKey<KeyType extends types.CryptoKey | Uint8Array = types.CryptoKey | Uint8Array> extends types.GetKeyFunction<types.JWEHeaderParameters | undefined, types.FlattenedJWE, KeyType | types.KeyObject | types.JWK> {
12
7
  }
13
8
  /**
14
9
  * Decrypts a Flattened JWE.
15
10
  *
16
- * This function is exported (as a named export) from the main `'jose'` module entry point as well
17
- * as from its subpath export `'jose/jwe/flattened/decrypt'`.
18
- *
19
11
  * @param jwe Flattened JWE.
20
12
  * @param key Private Key or Secret to decrypt the JWE with. See
21
13
  * {@link https://github.com/panva/jose/issues/210#jwe-alg Algorithm Key Requirements}.
22
14
  * @param options JWE Decryption options.
23
15
  */
24
- export declare function flattenedDecrypt(jwe: types.FlattenedJWE, key: types.CryptoKey | types.KeyObject | types.JWK | Uint8Array, options?: types.DecryptOptions): Promise<types.FlattenedDecryptResult>;
16
+ export declare function flattenedDecrypt(jwe: types.FlattenedJWE, key: types.KeyInput, options?: types.DecryptOptions): Promise<types.FlattenedDecryptResult>;
25
17
  /**
18
+ * Decrypts a Flattened JWE, resolving the key dynamically. The result additionally carries the
19
+ * {@link types.ResolvedKey.key resolved key}.
20
+ *
26
21
  * @param jwe Flattened JWE.
27
22
  * @param getKey Function resolving Private Key or Secret to decrypt the JWE with. See
28
23
  * {@link https://github.com/panva/jose/issues/210#jwe-alg Algorithm Key Requirements}.
29
24
  * @param options JWE Decryption options.
30
25
  */
31
- export declare function flattenedDecrypt(jwe: types.FlattenedJWE, getKey: FlattenedDecryptGetKey, options?: types.DecryptOptions): Promise<types.FlattenedDecryptResult & types.ResolvedKey>;
26
+ export declare function flattenedDecrypt<KeyType extends types.CryptoKey | Uint8Array = types.CryptoKey | Uint8Array>(jwe: types.FlattenedJWE, getKey: FlattenedDecryptGetKey<KeyType>, options?: types.DecryptOptions): Promise<types.FlattenedDecryptResult & types.ResolvedKey<KeyType>>;
27
+ /**
28
+ * Accepts either form of the `key` argument. Use this overload when forwarding a value that may be
29
+ * either a key or a key resolution function; `key` is present on the result only when a resolution
30
+ * function was used.
31
+ *
32
+ * @param jwe Flattened JWE.
33
+ * @param key Private Key or Secret, or a function resolving one, to decrypt the JWE with. See
34
+ * {@link https://github.com/panva/jose/issues/210#jwe-alg Algorithm Key Requirements}.
35
+ * @param options JWE Decryption options.
36
+ */
37
+ export declare function flattenedDecrypt(jwe: types.FlattenedJWE, key: types.KeyInput | FlattenedDecryptGetKey, options?: types.DecryptOptions): Promise<types.FlattenedDecryptResult & Partial<types.ResolvedKey>>;
@@ -1,16 +1,5 @@
1
- /**
2
- * Encrypting JSON Web Encryption (JWE) in Flattened JSON Serialization
3
- *
4
- * @module
5
- */
6
1
  import type * as types from '../../types.d.ts';
7
- /**
8
- * The FlattenedEncrypt class is used to build and encrypt Flattened JWE objects.
9
- *
10
- * This class is exported (as a named export) from the main `'jose'` module entry point as well as
11
- * from its subpath export `'jose/jwe/flattened/encrypt'`.
12
- *
13
- */
2
+ /** The FlattenedEncrypt class is used to build and encrypt Flattened JWE objects. */
14
3
  export declare class FlattenedEncrypt {
15
4
  #private;
16
5
  /**
@@ -20,10 +9,9 @@ export declare class FlattenedEncrypt {
20
9
  */
21
10
  constructor(plaintext: Uint8Array);
22
11
  /**
23
- * Sets the JWE Key Management parameters to be used when encrypting.
24
- *
25
- * (ECDH-ES) Use of this method is needed for ECDH based algorithms to set the "apu" (Agreement
26
- * PartyUInfo) or "apv" (Agreement PartyVInfo) parameters.
12
+ * Sets the JWE Key Management parameters to be used when encrypting. For ECDH based algorithms,
13
+ * use this method to set the "apu" (Agreement PartyUInfo) or "apv" (Agreement PartyVInfo)
14
+ * parameters.
27
15
  *
28
16
  * @param parameters JWE Key Management parameters.
29
17
  */
@@ -54,7 +42,7 @@ export declare class FlattenedEncrypt {
54
42
  setAdditionalAuthenticatedData(aad: Uint8Array): this;
55
43
  /**
56
44
  * Sets a content encryption key to use, by default a random suitable one is generated for the JWE
57
- * enc" (Encryption Algorithm) Header Parameter.
45
+ * "enc" (Encryption Algorithm) Header Parameter.
58
46
  *
59
47
  * @deprecated You should not use this method. It is only really intended for test and vector
60
48
  * validation purposes.
@@ -64,7 +52,7 @@ export declare class FlattenedEncrypt {
64
52
  setContentEncryptionKey(cek: Uint8Array): this;
65
53
  /**
66
54
  * Sets the JWE Initialization Vector to use for content encryption, by default a random suitable
67
- * one is generated for the JWE enc" (Encryption Algorithm) Header Parameter.
55
+ * one is generated for the JWE "enc" (Encryption Algorithm) Header Parameter.
68
56
  *
69
57
  * @deprecated You should not use this method. It is only really intended for test and vector
70
58
  * validation purposes.
@@ -79,5 +67,5 @@ export declare class FlattenedEncrypt {
79
67
  * {@link https://github.com/panva/jose/issues/210#jwe-alg Algorithm Key Requirements}.
80
68
  * @param options JWE Encryption options.
81
69
  */
82
- encrypt(key: types.CryptoKey | types.KeyObject | types.JWK | Uint8Array, options?: types.EncryptOptions): Promise<types.FlattenedJWE>;
70
+ encrypt(key: types.KeyInput, options?: types.EncryptOptions): Promise<types.FlattenedJWE>;
83
71
  }
@@ -1,23 +1,14 @@
1
- /**
2
- * Decrypting JSON Web Encryption (JWE) in General JSON Serialization
3
- *
4
- * @module
5
- */
6
1
  import type * as types from '../../types.d.ts';
7
2
  /**
8
3
  * Interface for General JWE Decryption dynamic key resolution. No token components have been
9
4
  * verified at the time of this function call.
10
5
  */
11
- export interface GeneralDecryptGetKey extends types.GetKeyFunction<types.JWEHeaderParameters, types.FlattenedJWE> {
6
+ export interface GeneralDecryptGetKey<KeyType extends types.CryptoKey | Uint8Array = types.CryptoKey | Uint8Array> extends types.GetKeyFunction<types.JWEHeaderParameters | undefined, types.FlattenedJWE, KeyType | types.KeyObject | types.JWK> {
12
7
  }
13
8
  /**
14
9
  * Decrypts a General JWE.
15
10
  *
16
- * This function is exported (as a named export) from the main `'jose'` module entry point as well
17
- * as from its subpath export `'jose/jwe/general/decrypt'`.
18
- *
19
- * > [!NOTE]\
20
- * > The function iterates over the `recipients` array in the General JWE and returns the decryption
11
+ * > Note: The function iterates over the `recipients` array in the General JWE and returns the decryption
21
12
  * > result of the first recipient entry that can be successfully decrypted. The result only contains
22
13
  * > the plaintext and headers of that successfully decrypted recipient entry. Other recipient entries
23
14
  * > in the General JWE are not validated, and their headers are not included in the returned result.
@@ -28,11 +19,25 @@ export interface GeneralDecryptGetKey extends types.GetKeyFunction<types.JWEHead
28
19
  * {@link https://github.com/panva/jose/issues/210#jwe-alg Algorithm Key Requirements}.
29
20
  * @param options JWE Decryption options.
30
21
  */
31
- export declare function generalDecrypt(jwe: types.GeneralJWE, key: types.CryptoKey | types.KeyObject | types.JWK | Uint8Array, options?: types.DecryptOptions): Promise<types.GeneralDecryptResult>;
22
+ export declare function generalDecrypt(jwe: types.GeneralJWE, key: types.KeyInput, options?: types.DecryptOptions): Promise<types.GeneralDecryptResult>;
32
23
  /**
24
+ * Decrypts a General JWE, resolving the key dynamically. The result additionally carries the
25
+ * {@link types.ResolvedKey.key resolved key}.
26
+ *
33
27
  * @param jwe General JWE.
34
28
  * @param getKey Function resolving Private Key or Secret to decrypt the JWE with. See
35
29
  * {@link https://github.com/panva/jose/issues/210#jwe-alg Algorithm Key Requirements}.
36
30
  * @param options JWE Decryption options.
37
31
  */
38
- export declare function generalDecrypt(jwe: types.GeneralJWE, getKey: GeneralDecryptGetKey, options?: types.DecryptOptions): Promise<types.GeneralDecryptResult & types.ResolvedKey>;
32
+ export declare function generalDecrypt<KeyType extends types.CryptoKey | Uint8Array = types.CryptoKey | Uint8Array>(jwe: types.GeneralJWE, getKey: GeneralDecryptGetKey<KeyType>, options?: types.DecryptOptions): Promise<types.GeneralDecryptResult & types.ResolvedKey<KeyType>>;
33
+ /**
34
+ * Accepts either form of the `key` argument. Use this overload when forwarding a value that may be
35
+ * either a key or a key resolution function; `key` is present on the result only when a resolution
36
+ * function was used.
37
+ *
38
+ * @param jwe General JWE.
39
+ * @param key Private Key or Secret, or a function resolving one, to decrypt the JWE with. See
40
+ * {@link https://github.com/panva/jose/issues/210#jwe-alg Algorithm Key Requirements}.
41
+ * @param options JWE Decryption options.
42
+ */
43
+ export declare function generalDecrypt(jwe: types.GeneralJWE, key: types.KeyInput | GeneralDecryptGetKey, options?: types.DecryptOptions): Promise<types.GeneralDecryptResult & Partial<types.ResolvedKey>>;
@@ -1,8 +1,3 @@
1
- /**
2
- * Encrypting JSON Web Encryption (JWE) in General JSON Serialization
3
- *
4
- * @module
5
- */
6
1
  import type * as types from '../../types.d.ts';
7
2
  /** Used to build General JWE object's individual recipients. */
8
3
  export interface Recipient {
@@ -13,28 +8,32 @@ export interface Recipient {
13
8
  */
14
9
  setUnprotectedHeader(unprotectedHeader: types.JWEHeaderParameters): Recipient;
15
10
  /**
16
- * Sets the JWE Key Management parameters to be used when encrypting.
17
- *
18
- * (ECDH-ES) Use of this method is needed for ECDH based algorithms to set the "apu" (Agreement
19
- * PartyUInfo) or "apv" (Agreement PartyVInfo) parameters.
11
+ * Sets the JWE Key Management parameters to be used when encrypting. For ECDH based algorithms,
12
+ * use this method to set the "apu" (Agreement PartyUInfo) or "apv" (Agreement PartyVInfo)
13
+ * parameters.
20
14
  *
21
15
  * @param parameters JWE Key Management parameters.
22
16
  */
23
17
  setKeyManagementParameters(parameters: types.JWEKeyManagementHeaderParameters): Recipient;
24
- /** A shorthand for calling addRecipient() on the enclosing {@link GeneralEncrypt} instance */
25
- addRecipient(...args: Parameters<GeneralEncrypt['addRecipient']>): Recipient;
26
- /** A shorthand for calling encrypt() on the enclosing {@link GeneralEncrypt} instance */
27
- encrypt(...args: Parameters<GeneralEncrypt['encrypt']>): Promise<types.GeneralJWE>;
18
+ /**
19
+ * A shorthand for calling {@link GeneralEncrypt.addRecipient addRecipient()} on the enclosing
20
+ * {@link GeneralEncrypt} instance.
21
+ *
22
+ * @param key Public Key or Secret to encrypt the Content Encryption Key for the recipient with.
23
+ * See {@link https://github.com/panva/jose/issues/210#jwe-alg Algorithm Key Requirements}.
24
+ * @param options JWE Encryption options.
25
+ */
26
+ addRecipient(key: types.KeyInput, options?: types.CritOption): Recipient;
27
+ /**
28
+ * A shorthand for calling {@link GeneralEncrypt.encrypt encrypt()} on the enclosing
29
+ * {@link GeneralEncrypt} instance. Takes no arguments — each recipient's key is supplied to
30
+ * {@link addRecipient}.
31
+ */
32
+ encrypt(): Promise<types.GeneralJWE>;
28
33
  /** Returns the enclosing {@link GeneralEncrypt} instance */
29
34
  done(): GeneralEncrypt;
30
35
  }
31
- /**
32
- * The GeneralEncrypt class is used to build and encrypt General JWE objects.
33
- *
34
- * This class is exported (as a named export) from the main `'jose'` module entry point as well as
35
- * from its subpath export `'jose/jwe/general/encrypt'`.
36
- *
37
- */
36
+ /** The GeneralEncrypt class is used to build and encrypt General JWE objects. */
38
37
  export declare class GeneralEncrypt {
39
38
  #private;
40
39
  /**
@@ -50,7 +49,7 @@ export declare class GeneralEncrypt {
50
49
  * See {@link https://github.com/panva/jose/issues/210#jwe-alg Algorithm Key Requirements}.
51
50
  * @param options JWE Encryption options.
52
51
  */
53
- addRecipient(key: types.CryptoKey | types.KeyObject | types.JWK | Uint8Array, options?: types.CritOption): Recipient;
52
+ addRecipient(key: types.KeyInput, options?: types.CritOption): Recipient;
54
53
  /**
55
54
  * Sets the JWE Protected Header on the GeneralEncrypt object.
56
55
  *
@@ -1,17 +1,13 @@
1
- /**
2
- * Verification using a JWK Embedded in a JWS Header
3
- *
4
- * @module
5
- */
6
1
  import type * as types from '../types.d.ts';
7
2
  /**
8
- * EmbeddedJWK is an implementation of a GetKeyFunction intended to be used with the JWS/JWT verify
9
- * operations whenever you need to opt-in to verify signatures with a public key embedded in the
10
- * token's "jwk" (JSON Web Key) Header Parameter. It is recommended to combine this with the verify
11
- * function's `algorithms` option to define accepted JWS "alg" (Algorithm) Header Parameter values.
12
- *
13
- * This function is exported (as a named export) from the main `'jose'` module entry point as well
14
- * as from its subpath export `'jose/jwk/embedded'`.
3
+ * EmbeddedJWK is an implementation of a {@link types.GetKeyFunction GetKeyFunction} intended to be
4
+ * used with the JWS/JWT verify operations whenever you need to opt-in to verify signatures with a
5
+ * public key embedded in the token's "jwk" (JSON Web Key) Header Parameter. It is recommended to
6
+ * combine this with the verify function's `algorithms` option to define accepted JWS "alg"
7
+ * (Algorithm) Header Parameter values.
15
8
  *
9
+ * @param protectedHeader JWS Protected Header.
10
+ * @param token The consumed JWS token.
11
+ * @returns The public key from the JWS "jwk" (JSON Web Key) Header Parameter.
16
12
  */
17
13
  export declare function EmbeddedJWK(protectedHeader?: types.JWSHeaderParameters, token?: types.FlattenedJWSInput): Promise<types.CryptoKey>;
@@ -1,32 +1,17 @@
1
- /**
2
- * JSON Web Key Thumbprint and JSON Web Key Thumbprint URI
3
- *
4
- * @module
5
- */
6
1
  import type * as types from '../types.d.ts';
7
2
  /**
8
3
  * Calculates a base64url-encoded JSON Web Key (JWK) Thumbprint
9
4
  *
10
- * This function is exported (as a named export) from the main `'jose'` module entry point as well
11
- * as from its subpath export `'jose/jwk/thumbprint'`.
12
- *
13
5
  * @param key Key to calculate the thumbprint for.
14
6
  * @param digestAlgorithm Digest Algorithm to use for calculating the thumbprint. Default is
15
7
  * "sha256".
16
- *
17
- * @see {@link https://www.rfc-editor.org/rfc/rfc7638 RFC7638}
18
8
  */
19
9
  export declare function calculateJwkThumbprint(key: types.JWK | types.CryptoKey | types.KeyObject, digestAlgorithm?: 'sha256' | 'sha384' | 'sha512'): Promise<string>;
20
10
  /**
21
11
  * Calculates a JSON Web Key (JWK) Thumbprint URI
22
12
  *
23
- * This function is exported (as a named export) from the main `'jose'` module entry point as well
24
- * as from its subpath export `'jose/jwk/thumbprint'`.
25
- *
26
13
  * @param key Key to calculate the thumbprint for.
27
14
  * @param digestAlgorithm Digest Algorithm to use for calculating the thumbprint. Default is
28
15
  * "sha256".
29
- *
30
- * @see {@link https://www.rfc-editor.org/rfc/rfc9278 RFC9278}
31
16
  */
32
17
  export declare function calculateJwkThumbprintUri(key: types.CryptoKey | types.KeyObject | types.JWK, digestAlgorithm?: 'sha256' | 'sha384' | 'sha512'): Promise<string>;
@@ -1,29 +1,20 @@
1
- /**
2
- * Verification using a JSON Web Key Set (JWKS) available locally
3
- *
4
- * @module
5
- */
6
1
  import type * as types from '../types.d.ts';
2
+ /** The key resolution function returned by {@link createLocalJWKSet}. */
3
+ export interface LocalJWKSet {
4
+ (protectedHeader?: types.JWSHeaderParameters, token?: types.FlattenedJWSInput): Promise<types.CryptoKey>;
5
+ /** Returns a structured clone of the JSON Web Key Set this resolver was created with. */
6
+ jwks: () => types.JSONWebKeySet;
7
+ }
7
8
  /**
8
9
  * Returns a function that resolves a JWS JOSE Header to a public key object from a locally stored,
9
- * or otherwise available, JSON Web Key Set.
10
+ * or otherwise available, JSON Web Key Set. Selection respects the header's "alg" (Algorithm) and
11
+ * "kid" (Key ID) as well as the JWK's "use" (Public Key Use) and "key_ops" (Key Operations).
12
+ * Exactly one key must match; if multiple keys match, the thrown `JWKSMultipleMatchingKeys` can be
13
+ * iterated.
10
14
  *
11
- * It uses the "alg" (JWS Algorithm) Header Parameter to determine the right JWK "kty" (Key Type),
12
- * then proceeds to match the JWK "kid" (Key ID) with one found in the JWS Header Parameters (if
13
- * there is one) while also respecting the JWK "use" (Public Key Use) and JWK "key_ops" (Key
14
- * Operations) Parameters (if they are present on the JWK).
15
- *
16
- * Only a single public key must match the selection process. As shown in the example below when
17
- * multiple keys get matched it is possible to opt-in to iterate over the matched keys and attempt
18
- * verification in an iterative manner.
19
- *
20
- * > [!NOTE]\
21
- * > The function's purpose is to resolve public keys used for verifying signatures and will not work
15
+ * > Note: The function's purpose is to resolve public keys used for verifying signatures and will not work
22
16
  * > for public encryption keys.
23
17
  *
24
- * This function is exported (as a named export) from the main `'jose'` module entry point as well
25
- * as from its subpath export `'jose/jwks/local'`.
26
- *
27
18
  * @param jwks JSON Web Key Set formatted object.
28
19
  */
29
- export declare function createLocalJWKSet(jwks: types.JSONWebKeySet): (protectedHeader?: types.JWSHeaderParameters, token?: types.FlattenedJWSInput) => Promise<types.CryptoKey>;
20
+ export declare function createLocalJWKSet(jwks: types.JSONWebKeySet): LocalJWKSet;