@coro-ai/runner 0.1.33 → 0.1.34

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 (550) hide show
  1. package/dist/src/clients/tracker/jira.js +6 -0
  2. package/dist/src/clients/tracker/jira.js.map +1 -1
  3. package/dist/src/clients/tracker/linear.js +6 -2
  4. package/dist/src/clients/tracker/linear.js.map +1 -1
  5. package/dist/src/clients/tracker/types.d.ts +11 -0
  6. package/dist/src/mcp-handlers.d.ts +1 -0
  7. package/dist/src/mcp-handlers.js +6 -2
  8. package/dist/src/mcp-handlers.js.map +1 -1
  9. package/dist/src/mcp-server.js +6 -1
  10. package/dist/src/mcp-server.js.map +1 -1
  11. package/dist/src/plugins/builtin/github-tracker/intelligence/snippets/github-issues-keys.md +4 -1
  12. package/dist/src/plugins/builtin/jira/index.js +12 -0
  13. package/dist/src/plugins/builtin/jira/index.js.map +1 -1
  14. package/dist/src/plugins/builtin/jira/intelligence/snippets/jira-transitions.md +6 -1
  15. package/dist/src/plugins/builtin/linear/index.js +12 -0
  16. package/dist/src/plugins/builtin/linear/index.js.map +1 -1
  17. package/dist/src/plugins/builtin/linear/intelligence/snippets/linear-keys.md +6 -2
  18. package/dist/src/plugins/types.d.ts +12 -0
  19. package/node_modules/@coro-ai/cloud-protocol/package.json +1 -1
  20. package/node_modules/@coro-ai/intelligence-base/package.json +1 -1
  21. package/node_modules/@coro-ai/llm-anthropic/dist/executor.d.ts.map +1 -1
  22. package/node_modules/@coro-ai/llm-anthropic/dist/executor.js +19 -3
  23. package/node_modules/@coro-ai/llm-anthropic/dist/executor.js.map +1 -1
  24. package/node_modules/@coro-ai/llm-anthropic/package.json +1 -1
  25. package/node_modules/@coro-ai/llm-openai/README.md +3 -3
  26. package/node_modules/@coro-ai/llm-openai/dist/executor.js +4 -4
  27. package/node_modules/@coro-ai/llm-openai/dist/executor.js.map +1 -1
  28. package/node_modules/@coro-ai/llm-openai/dist/models.d.ts.map +1 -1
  29. package/node_modules/@coro-ai/llm-openai/dist/models.js +24 -0
  30. package/node_modules/@coro-ai/llm-openai/dist/models.js.map +1 -1
  31. package/node_modules/@coro-ai/llm-openai/package.json +1 -1
  32. package/node_modules/@coro-ai/plugin-sdk/dist/types.d.ts +14 -0
  33. package/node_modules/@coro-ai/plugin-sdk/dist/types.d.ts.map +1 -1
  34. package/node_modules/@coro-ai/plugin-sdk/package.json +1 -1
  35. package/node_modules/@modelcontextprotocol/sdk/node_modules/iconv-lite/encodings/sbcs-data.js +2 -0
  36. package/node_modules/@modelcontextprotocol/sdk/node_modules/iconv-lite/encodings/utf32.js +10 -3
  37. package/node_modules/@modelcontextprotocol/sdk/node_modules/iconv-lite/package.json +2 -2
  38. package/node_modules/@modelcontextprotocol/sdk/node_modules/iconv-lite/types/encodings.d.ts +2 -0
  39. package/node_modules/body-parser/HISTORY.md +7 -1
  40. package/node_modules/body-parser/lib/types/json.js +7 -3
  41. package/node_modules/body-parser/lib/types/raw.js +7 -3
  42. package/node_modules/body-parser/lib/types/text.js +7 -3
  43. package/node_modules/body-parser/lib/types/urlencoded.js +7 -3
  44. package/node_modules/body-parser/package.json +1 -1
  45. package/node_modules/express-rate-limit/dist/index.cjs +69 -5
  46. package/node_modules/express-rate-limit/dist/index.d.cts +18 -0
  47. package/node_modules/express-rate-limit/dist/index.d.mts +18 -0
  48. package/node_modules/express-rate-limit/dist/index.d.ts +18 -0
  49. package/node_modules/express-rate-limit/dist/index.mjs +55 -5
  50. package/node_modules/express-rate-limit/node_modules/debug/LICENSE +20 -0
  51. package/node_modules/express-rate-limit/node_modules/debug/README.md +481 -0
  52. package/node_modules/express-rate-limit/node_modules/debug/package.json +64 -0
  53. package/node_modules/express-rate-limit/node_modules/debug/src/browser.js +272 -0
  54. package/node_modules/express-rate-limit/node_modules/debug/src/common.js +292 -0
  55. package/node_modules/express-rate-limit/node_modules/debug/src/index.js +10 -0
  56. package/node_modules/express-rate-limit/node_modules/debug/src/node.js +263 -0
  57. package/node_modules/express-rate-limit/node_modules/ms/index.js +162 -0
  58. package/node_modules/express-rate-limit/node_modules/ms/license.md +21 -0
  59. package/node_modules/express-rate-limit/node_modules/ms/package.json +38 -0
  60. package/node_modules/express-rate-limit/node_modules/ms/readme.md +59 -0
  61. package/node_modules/express-rate-limit/package.json +11 -8
  62. package/node_modules/express-rate-limit/readme.md +2 -2
  63. package/node_modules/fast-copy/README.md +46 -46
  64. package/node_modules/fast-copy/dist/cjs/index.cjs +13 -19
  65. package/node_modules/fast-copy/dist/cjs/index.cjs.map +1 -1
  66. package/node_modules/fast-copy/dist/cjs/index.d.cts +40 -6
  67. package/node_modules/fast-copy/dist/es/index.d.mts +40 -6
  68. package/node_modules/fast-copy/dist/es/index.mjs +13 -19
  69. package/node_modules/fast-copy/dist/es/index.mjs.map +1 -1
  70. package/node_modules/fast-copy/dist/umd/index.d.ts +40 -6
  71. package/node_modules/fast-copy/dist/umd/index.js +13 -19
  72. package/node_modules/fast-copy/dist/umd/index.js.map +1 -1
  73. package/node_modules/fast-copy/index.d.ts +22 -22
  74. package/node_modules/fast-copy/package.json +30 -23
  75. package/node_modules/fast-uri/index.js +1 -1
  76. package/node_modules/fast-uri/package.json +1 -1
  77. package/node_modules/fast-uri/test/security.test.js +28 -0
  78. package/node_modules/hono/dist/adapter/aws-lambda/handler.js +2 -5
  79. package/node_modules/hono/dist/adapter/bun/websocket.js +3 -1
  80. package/node_modules/hono/dist/adapter/lambda-edge/handler.js +12 -2
  81. package/node_modules/hono/dist/cjs/adapter/aws-lambda/handler.js +2 -5
  82. package/node_modules/hono/dist/cjs/adapter/bun/websocket.js +3 -1
  83. package/node_modules/hono/dist/cjs/adapter/lambda-edge/handler.js +12 -2
  84. package/node_modules/hono/dist/cjs/client/client.js +10 -1
  85. package/node_modules/hono/dist/cjs/client/utils.js +1 -1
  86. package/node_modules/hono/dist/cjs/middleware/cache/index.js +1 -1
  87. package/node_modules/hono/dist/cjs/middleware/compress/index.js +2 -1
  88. package/node_modules/hono/dist/cjs/middleware/etag/index.js +2 -1
  89. package/node_modules/hono/dist/cjs/middleware/method-override/index.js +5 -3
  90. package/node_modules/hono/dist/cjs/middleware/serve-static/index.js +1 -1
  91. package/node_modules/hono/dist/cjs/router/trie-router/node.js +9 -0
  92. package/node_modules/hono/dist/cjs/utils/body.js +12 -4
  93. package/node_modules/hono/dist/cjs/utils/buffer.js +2 -1
  94. package/node_modules/hono/dist/cjs/validator/validator.js +3 -3
  95. package/node_modules/hono/dist/client/client.js +10 -1
  96. package/node_modules/hono/dist/client/utils.js +1 -1
  97. package/node_modules/hono/dist/middleware/cache/index.js +1 -1
  98. package/node_modules/hono/dist/middleware/compress/index.js +2 -1
  99. package/node_modules/hono/dist/middleware/etag/index.js +2 -1
  100. package/node_modules/hono/dist/middleware/method-override/index.js +5 -3
  101. package/node_modules/hono/dist/middleware/serve-static/index.js +1 -1
  102. package/node_modules/hono/dist/router/trie-router/node.js +9 -0
  103. package/node_modules/hono/dist/types/adapter/lambda-edge/handler.d.ts +1 -1
  104. package/node_modules/hono/dist/types/helper/websocket/index.d.ts +1 -1
  105. package/node_modules/hono/dist/types/middleware/context-storage/index.d.ts +2 -2
  106. package/node_modules/hono/dist/types/middleware/language/language.d.ts +18 -0
  107. package/node_modules/hono/dist/types/utils/body.d.ts +1 -1
  108. package/node_modules/hono/dist/types/utils/types.d.ts +1 -1
  109. package/node_modules/hono/dist/utils/body.js +12 -4
  110. package/node_modules/hono/dist/utils/buffer.js +2 -1
  111. package/node_modules/hono/dist/validator/validator.js +3 -3
  112. package/node_modules/hono/package.json +11 -10
  113. package/node_modules/js-yaml/README.md +5 -3
  114. package/node_modules/js-yaml/dist/js-yaml.js +3009 -2402
  115. package/node_modules/js-yaml/dist/js-yaml.js.map +1 -1
  116. package/node_modules/js-yaml/dist/js-yaml.min.js +2 -33
  117. package/node_modules/js-yaml/dist/js-yaml.min.js.map +1 -1
  118. package/node_modules/js-yaml/dist/js-yaml.mjs +3073 -2381
  119. package/node_modules/js-yaml/dist/js-yaml.mjs.map +1 -1
  120. package/node_modules/js-yaml/lib/loader.js +7 -11
  121. package/node_modules/js-yaml/lib/type/float.js +1 -1
  122. package/node_modules/js-yaml/lib/type/int.js +4 -4
  123. package/node_modules/js-yaml/package.json +10 -4
  124. package/node_modules/node-abi/abi_registry.json +8 -1
  125. package/node_modules/node-abi/package.json +1 -1
  126. package/node_modules/openai/CHANGELOG.md +69 -0
  127. package/node_modules/openai/README.md +9 -2
  128. package/node_modules/openai/client.d.mts +1 -0
  129. package/node_modules/openai/client.d.mts.map +1 -1
  130. package/node_modules/openai/client.d.ts +1 -0
  131. package/node_modules/openai/client.d.ts.map +1 -1
  132. package/node_modules/openai/client.js +11 -5
  133. package/node_modules/openai/client.js.map +1 -1
  134. package/node_modules/openai/client.mjs +11 -5
  135. package/node_modules/openai/client.mjs.map +1 -1
  136. package/node_modules/openai/core/streaming.d.mts.map +1 -1
  137. package/node_modules/openai/core/streaming.d.ts.map +1 -1
  138. package/node_modules/openai/core/streaming.js +38 -6
  139. package/node_modules/openai/core/streaming.js.map +1 -1
  140. package/node_modules/openai/core/streaming.mjs +38 -6
  141. package/node_modules/openai/core/streaming.mjs.map +1 -1
  142. package/node_modules/openai/core/uploads.d.mts +1 -1
  143. package/node_modules/openai/core/uploads.d.mts.map +1 -1
  144. package/node_modules/openai/core/uploads.d.ts +1 -1
  145. package/node_modules/openai/core/uploads.d.ts.map +1 -1
  146. package/node_modules/openai/core/uploads.js +3 -1
  147. package/node_modules/openai/core/uploads.js.map +1 -1
  148. package/node_modules/openai/core/uploads.mjs +1 -0
  149. package/node_modules/openai/core/uploads.mjs.map +1 -1
  150. package/node_modules/openai/helpers/audio.d.mts.map +1 -1
  151. package/node_modules/openai/helpers/audio.d.ts.map +1 -1
  152. package/node_modules/openai/helpers/audio.js +16 -3
  153. package/node_modules/openai/helpers/audio.js.map +1 -1
  154. package/node_modules/openai/helpers/audio.mjs +17 -4
  155. package/node_modules/openai/helpers/audio.mjs.map +1 -1
  156. package/node_modules/openai/helpers/zod.d.mts +20 -7
  157. package/node_modules/openai/helpers/zod.d.mts.map +1 -1
  158. package/node_modules/openai/helpers/zod.d.ts +20 -7
  159. package/node_modules/openai/helpers/zod.d.ts.map +1 -1
  160. package/node_modules/openai/helpers/zod.js +24 -12
  161. package/node_modules/openai/helpers/zod.js.map +1 -1
  162. package/node_modules/openai/helpers/zod.mjs +24 -12
  163. package/node_modules/openai/helpers/zod.mjs.map +1 -1
  164. package/node_modules/openai/index.d.mts +1 -1
  165. package/node_modules/openai/index.d.mts.map +1 -1
  166. package/node_modules/openai/index.d.ts +1 -1
  167. package/node_modules/openai/index.d.ts.map +1 -1
  168. package/node_modules/openai/index.js +2 -1
  169. package/node_modules/openai/index.js.map +1 -1
  170. package/node_modules/openai/index.mjs +1 -1
  171. package/node_modules/openai/index.mjs.map +1 -1
  172. package/node_modules/openai/internal/headers.d.mts.map +1 -1
  173. package/node_modules/openai/internal/headers.d.ts.map +1 -1
  174. package/node_modules/openai/internal/headers.js +7 -3
  175. package/node_modules/openai/internal/headers.js.map +1 -1
  176. package/node_modules/openai/internal/headers.mjs +7 -3
  177. package/node_modules/openai/internal/headers.mjs.map +1 -1
  178. package/node_modules/openai/internal/uploads.d.mts +26 -1
  179. package/node_modules/openai/internal/uploads.d.mts.map +1 -1
  180. package/node_modules/openai/internal/uploads.d.ts +26 -1
  181. package/node_modules/openai/internal/uploads.d.ts.map +1 -1
  182. package/node_modules/openai/internal/uploads.js +169 -1
  183. package/node_modules/openai/internal/uploads.js.map +1 -1
  184. package/node_modules/openai/internal/uploads.mjs +169 -2
  185. package/node_modules/openai/internal/uploads.mjs.map +1 -1
  186. package/node_modules/openai/lib/AbstractChatCompletionRunner.d.mts +3 -3
  187. package/node_modules/openai/lib/AbstractChatCompletionRunner.d.mts.map +1 -1
  188. package/node_modules/openai/lib/AbstractChatCompletionRunner.d.ts +3 -3
  189. package/node_modules/openai/lib/AbstractChatCompletionRunner.d.ts.map +1 -1
  190. package/node_modules/openai/lib/AbstractChatCompletionRunner.js +18 -3
  191. package/node_modules/openai/lib/AbstractChatCompletionRunner.js.map +1 -1
  192. package/node_modules/openai/lib/AbstractChatCompletionRunner.mjs +18 -3
  193. package/node_modules/openai/lib/AbstractChatCompletionRunner.mjs.map +1 -1
  194. package/node_modules/openai/lib/AssistantStream.d.mts.map +1 -1
  195. package/node_modules/openai/lib/AssistantStream.d.ts.map +1 -1
  196. package/node_modules/openai/lib/AssistantStream.js +4 -3
  197. package/node_modules/openai/lib/AssistantStream.js.map +1 -1
  198. package/node_modules/openai/lib/AssistantStream.mjs +4 -3
  199. package/node_modules/openai/lib/AssistantStream.mjs.map +1 -1
  200. package/node_modules/openai/lib/ChatCompletionRunner.d.mts +26 -2
  201. package/node_modules/openai/lib/ChatCompletionRunner.d.mts.map +1 -1
  202. package/node_modules/openai/lib/ChatCompletionRunner.d.ts +26 -2
  203. package/node_modules/openai/lib/ChatCompletionRunner.d.ts.map +1 -1
  204. package/node_modules/openai/lib/ChatCompletionRunner.js.map +1 -1
  205. package/node_modules/openai/lib/ChatCompletionRunner.mjs.map +1 -1
  206. package/node_modules/openai/lib/ChatCompletionStream.d.mts +14 -1
  207. package/node_modules/openai/lib/ChatCompletionStream.d.mts.map +1 -1
  208. package/node_modules/openai/lib/ChatCompletionStream.d.ts +14 -1
  209. package/node_modules/openai/lib/ChatCompletionStream.d.ts.map +1 -1
  210. package/node_modules/openai/lib/ChatCompletionStream.js +75 -16
  211. package/node_modules/openai/lib/ChatCompletionStream.js.map +1 -1
  212. package/node_modules/openai/lib/ChatCompletionStream.mjs +74 -16
  213. package/node_modules/openai/lib/ChatCompletionStream.mjs.map +1 -1
  214. package/node_modules/openai/lib/ChatCompletionStreamingRunner.d.mts +25 -2
  215. package/node_modules/openai/lib/ChatCompletionStreamingRunner.d.mts.map +1 -1
  216. package/node_modules/openai/lib/ChatCompletionStreamingRunner.d.ts +25 -2
  217. package/node_modules/openai/lib/ChatCompletionStreamingRunner.d.ts.map +1 -1
  218. package/node_modules/openai/lib/ChatCompletionStreamingRunner.js +77 -0
  219. package/node_modules/openai/lib/ChatCompletionStreamingRunner.js.map +1 -1
  220. package/node_modules/openai/lib/ChatCompletionStreamingRunner.mjs +78 -1
  221. package/node_modules/openai/lib/ChatCompletionStreamingRunner.mjs.map +1 -1
  222. package/node_modules/openai/lib/EventStream.d.mts +13 -0
  223. package/node_modules/openai/lib/EventStream.d.mts.map +1 -1
  224. package/node_modules/openai/lib/EventStream.d.ts +13 -0
  225. package/node_modules/openai/lib/EventStream.d.ts.map +1 -1
  226. package/node_modules/openai/lib/EventStream.js +107 -2
  227. package/node_modules/openai/lib/EventStream.js.map +1 -1
  228. package/node_modules/openai/lib/EventStream.mjs +107 -2
  229. package/node_modules/openai/lib/EventStream.mjs.map +1 -1
  230. package/node_modules/openai/lib/RunnableFunction.d.mts +38 -21
  231. package/node_modules/openai/lib/RunnableFunction.d.mts.map +1 -1
  232. package/node_modules/openai/lib/RunnableFunction.d.ts +38 -21
  233. package/node_modules/openai/lib/RunnableFunction.d.ts.map +1 -1
  234. package/node_modules/openai/lib/RunnableFunction.js.map +1 -1
  235. package/node_modules/openai/lib/RunnableFunction.mjs.map +1 -1
  236. package/node_modules/openai/lib/parser.d.mts +2 -2
  237. package/node_modules/openai/lib/parser.d.mts.map +1 -1
  238. package/node_modules/openai/lib/parser.d.ts +2 -2
  239. package/node_modules/openai/lib/parser.d.ts.map +1 -1
  240. package/node_modules/openai/lib/parser.js.map +1 -1
  241. package/node_modules/openai/lib/parser.mjs.map +1 -1
  242. package/node_modules/openai/lib/responses/ResponseAccumulator.d.mts +6 -1
  243. package/node_modules/openai/lib/responses/ResponseAccumulator.d.mts.map +1 -1
  244. package/node_modules/openai/lib/responses/ResponseAccumulator.d.ts +6 -1
  245. package/node_modules/openai/lib/responses/ResponseAccumulator.d.ts.map +1 -1
  246. package/node_modules/openai/lib/responses/ResponseAccumulator.js +1 -0
  247. package/node_modules/openai/lib/responses/ResponseAccumulator.js.map +1 -1
  248. package/node_modules/openai/lib/responses/ResponseAccumulator.mjs +1 -0
  249. package/node_modules/openai/lib/responses/ResponseAccumulator.mjs.map +1 -1
  250. package/node_modules/openai/lib/responses/ResponseInputItems.d.mts.map +1 -1
  251. package/node_modules/openai/lib/responses/ResponseInputItems.d.ts.map +1 -1
  252. package/node_modules/openai/lib/responses/ResponseInputItems.js +2 -0
  253. package/node_modules/openai/lib/responses/ResponseInputItems.js.map +1 -1
  254. package/node_modules/openai/lib/responses/ResponseInputItems.mjs +2 -0
  255. package/node_modules/openai/lib/responses/ResponseInputItems.mjs.map +1 -1
  256. package/node_modules/openai/lib/responses/ResponseStream.d.mts +6 -1
  257. package/node_modules/openai/lib/responses/ResponseStream.d.mts.map +1 -1
  258. package/node_modules/openai/lib/responses/ResponseStream.d.ts +6 -1
  259. package/node_modules/openai/lib/responses/ResponseStream.d.ts.map +1 -1
  260. package/node_modules/openai/lib/responses/ResponseStream.js +21 -0
  261. package/node_modules/openai/lib/responses/ResponseStream.js.map +1 -1
  262. package/node_modules/openai/lib/responses/ResponseStream.mjs +21 -0
  263. package/node_modules/openai/lib/responses/ResponseStream.mjs.map +1 -1
  264. package/node_modules/openai/package.json +1 -1
  265. package/node_modules/openai/resources/admin/organization/audit-logs.d.mts +2 -2
  266. package/node_modules/openai/resources/admin/organization/audit-logs.d.mts.map +1 -1
  267. package/node_modules/openai/resources/admin/organization/audit-logs.d.ts +2 -2
  268. package/node_modules/openai/resources/admin/organization/audit-logs.d.ts.map +1 -1
  269. package/node_modules/openai/resources/admin/organization/projects/api-keys.d.mts +12 -0
  270. package/node_modules/openai/resources/admin/organization/projects/api-keys.d.mts.map +1 -1
  271. package/node_modules/openai/resources/admin/organization/projects/api-keys.d.ts +12 -0
  272. package/node_modules/openai/resources/admin/organization/projects/api-keys.d.ts.map +1 -1
  273. package/node_modules/openai/resources/admin/organization/projects/index.d.mts +1 -1
  274. package/node_modules/openai/resources/admin/organization/projects/index.d.mts.map +1 -1
  275. package/node_modules/openai/resources/admin/organization/projects/index.d.ts +1 -1
  276. package/node_modules/openai/resources/admin/organization/projects/index.d.ts.map +1 -1
  277. package/node_modules/openai/resources/admin/organization/projects/index.js +4 -4
  278. package/node_modules/openai/resources/admin/organization/projects/index.js.map +1 -1
  279. package/node_modules/openai/resources/admin/organization/projects/index.mjs +1 -1
  280. package/node_modules/openai/resources/admin/organization/projects/index.mjs.map +1 -1
  281. package/node_modules/openai/resources/admin/organization/projects/projects.d.mts +2 -2
  282. package/node_modules/openai/resources/admin/organization/projects/projects.d.mts.map +1 -1
  283. package/node_modules/openai/resources/admin/organization/projects/projects.d.ts +2 -2
  284. package/node_modules/openai/resources/admin/organization/projects/projects.d.ts.map +1 -1
  285. package/node_modules/openai/resources/admin/organization/projects/projects.js +2 -2
  286. package/node_modules/openai/resources/admin/organization/projects/projects.js.map +1 -1
  287. package/node_modules/openai/resources/admin/organization/projects/projects.mjs +2 -2
  288. package/node_modules/openai/resources/admin/organization/projects/projects.mjs.map +1 -1
  289. package/node_modules/openai/resources/admin/organization/projects/service-accounts/api-keys.d.mts +58 -0
  290. package/node_modules/openai/resources/admin/organization/projects/service-accounts/api-keys.d.mts.map +1 -0
  291. package/node_modules/openai/resources/admin/organization/projects/service-accounts/api-keys.d.ts +58 -0
  292. package/node_modules/openai/resources/admin/organization/projects/service-accounts/api-keys.d.ts.map +1 -0
  293. package/node_modules/openai/resources/admin/organization/projects/service-accounts/api-keys.js +26 -0
  294. package/node_modules/openai/resources/admin/organization/projects/service-accounts/api-keys.js.map +1 -0
  295. package/node_modules/openai/resources/admin/organization/projects/service-accounts/api-keys.mjs +22 -0
  296. package/node_modules/openai/resources/admin/organization/projects/service-accounts/api-keys.mjs.map +1 -0
  297. package/node_modules/openai/resources/admin/organization/projects/service-accounts/index.d.mts +3 -0
  298. package/node_modules/openai/resources/admin/organization/projects/service-accounts/index.d.mts.map +1 -0
  299. package/node_modules/openai/resources/admin/organization/projects/service-accounts/index.d.ts +3 -0
  300. package/node_modules/openai/resources/admin/organization/projects/service-accounts/index.d.ts.map +1 -0
  301. package/node_modules/openai/resources/admin/organization/projects/service-accounts/index.js +9 -0
  302. package/node_modules/openai/resources/admin/organization/projects/service-accounts/index.js.map +1 -0
  303. package/node_modules/openai/resources/admin/organization/projects/service-accounts/index.mjs +4 -0
  304. package/node_modules/openai/resources/admin/organization/projects/service-accounts/index.mjs.map +1 -0
  305. package/node_modules/openai/resources/admin/organization/projects/service-accounts/service-accounts.d.mts +177 -0
  306. package/node_modules/openai/resources/admin/organization/projects/service-accounts/service-accounts.d.mts.map +1 -0
  307. package/node_modules/openai/resources/admin/organization/projects/service-accounts/service-accounts.d.ts +177 -0
  308. package/node_modules/openai/resources/admin/organization/projects/service-accounts/service-accounts.d.ts.map +1 -0
  309. package/node_modules/openai/resources/admin/organization/projects/service-accounts/service-accounts.js +109 -0
  310. package/node_modules/openai/resources/admin/organization/projects/service-accounts/service-accounts.js.map +1 -0
  311. package/node_modules/openai/resources/admin/organization/projects/service-accounts/service-accounts.mjs +104 -0
  312. package/node_modules/openai/resources/admin/organization/projects/service-accounts/service-accounts.mjs.map +1 -0
  313. package/node_modules/openai/resources/admin/organization/projects/service-accounts.d.mts +1 -167
  314. package/node_modules/openai/resources/admin/organization/projects/service-accounts.d.mts.map +1 -1
  315. package/node_modules/openai/resources/admin/organization/projects/service-accounts.d.ts +1 -167
  316. package/node_modules/openai/resources/admin/organization/projects/service-accounts.d.ts.map +1 -1
  317. package/node_modules/openai/resources/admin/organization/projects/service-accounts.js +2 -97
  318. package/node_modules/openai/resources/admin/organization/projects/service-accounts.js.map +1 -1
  319. package/node_modules/openai/resources/admin/organization/projects/service-accounts.mjs +1 -95
  320. package/node_modules/openai/resources/admin/organization/projects/service-accounts.mjs.map +1 -1
  321. package/node_modules/openai/resources/admin/organization/usage.d.mts +517 -88
  322. package/node_modules/openai/resources/admin/organization/usage.d.mts.map +1 -1
  323. package/node_modules/openai/resources/admin/organization/usage.d.ts +517 -88
  324. package/node_modules/openai/resources/admin/organization/usage.d.ts.map +1 -1
  325. package/node_modules/openai/resources/beta/assistants.d.mts +12 -26
  326. package/node_modules/openai/resources/beta/assistants.d.mts.map +1 -1
  327. package/node_modules/openai/resources/beta/assistants.d.ts +12 -26
  328. package/node_modules/openai/resources/beta/assistants.d.ts.map +1 -1
  329. package/node_modules/openai/resources/beta/beta.d.mts +6 -1
  330. package/node_modules/openai/resources/beta/beta.d.mts.map +1 -1
  331. package/node_modules/openai/resources/beta/beta.d.ts +6 -1
  332. package/node_modules/openai/resources/beta/beta.d.ts.map +1 -1
  333. package/node_modules/openai/resources/beta/beta.js +4 -0
  334. package/node_modules/openai/resources/beta/beta.js.map +1 -1
  335. package/node_modules/openai/resources/beta/beta.mjs +4 -0
  336. package/node_modules/openai/resources/beta/beta.mjs.map +1 -1
  337. package/node_modules/openai/resources/beta/index.d.mts +1 -0
  338. package/node_modules/openai/resources/beta/index.d.mts.map +1 -1
  339. package/node_modules/openai/resources/beta/index.d.ts +1 -0
  340. package/node_modules/openai/resources/beta/index.d.ts.map +1 -1
  341. package/node_modules/openai/resources/beta/index.js +5 -3
  342. package/node_modules/openai/resources/beta/index.js.map +1 -1
  343. package/node_modules/openai/resources/beta/index.mjs +1 -0
  344. package/node_modules/openai/resources/beta/index.mjs.map +1 -1
  345. package/node_modules/openai/resources/beta/responses/index.d.mts +6 -0
  346. package/node_modules/openai/resources/beta/responses/index.d.mts.map +1 -0
  347. package/node_modules/openai/resources/beta/responses/index.d.ts +6 -0
  348. package/node_modules/openai/resources/beta/responses/index.d.ts.map +1 -0
  349. package/node_modules/openai/resources/beta/responses/index.js +11 -0
  350. package/node_modules/openai/resources/beta/responses/index.js.map +1 -0
  351. package/node_modules/openai/resources/beta/responses/index.mjs +5 -0
  352. package/node_modules/openai/resources/beta/responses/index.mjs.map +1 -0
  353. package/node_modules/openai/resources/beta/responses/input-items.d.mts +69 -0
  354. package/node_modules/openai/resources/beta/responses/input-items.d.mts.map +1 -0
  355. package/node_modules/openai/resources/beta/responses/input-items.d.ts +69 -0
  356. package/node_modules/openai/resources/beta/responses/input-items.d.ts.map +1 -0
  357. package/node_modules/openai/resources/beta/responses/input-items.js +37 -0
  358. package/node_modules/openai/resources/beta/responses/input-items.js.map +1 -0
  359. package/node_modules/openai/resources/beta/responses/input-items.mjs +33 -0
  360. package/node_modules/openai/resources/beta/responses/input-items.mjs.map +1 -0
  361. package/node_modules/openai/resources/beta/responses/input-tokens.d.mts +191 -0
  362. package/node_modules/openai/resources/beta/responses/input-tokens.d.mts.map +1 -0
  363. package/node_modules/openai/resources/beta/responses/input-tokens.d.ts +191 -0
  364. package/node_modules/openai/resources/beta/responses/input-tokens.d.ts.map +1 -0
  365. package/node_modules/openai/resources/beta/responses/input-tokens.js +34 -0
  366. package/node_modules/openai/resources/beta/responses/input-tokens.js.map +1 -0
  367. package/node_modules/openai/resources/beta/responses/input-tokens.mjs +30 -0
  368. package/node_modules/openai/resources/beta/responses/input-tokens.mjs.map +1 -0
  369. package/node_modules/openai/resources/beta/responses/internal-base.d.mts +71 -0
  370. package/node_modules/openai/resources/beta/responses/internal-base.d.mts.map +1 -0
  371. package/node_modules/openai/resources/beta/responses/internal-base.d.ts +71 -0
  372. package/node_modules/openai/resources/beta/responses/internal-base.d.ts.map +1 -0
  373. package/node_modules/openai/resources/beta/responses/internal-base.js +48 -0
  374. package/node_modules/openai/resources/beta/responses/internal-base.js.map +1 -0
  375. package/node_modules/openai/resources/beta/responses/internal-base.mjs +42 -0
  376. package/node_modules/openai/resources/beta/responses/internal-base.mjs.map +1 -0
  377. package/node_modules/openai/resources/beta/responses/responses.d.mts +9986 -0
  378. package/node_modules/openai/resources/beta/responses/responses.d.mts.map +1 -0
  379. package/node_modules/openai/resources/beta/responses/responses.d.ts +9986 -0
  380. package/node_modules/openai/resources/beta/responses/responses.d.ts.map +1 -0
  381. package/node_modules/openai/resources/beta/responses/responses.js +121 -0
  382. package/node_modules/openai/resources/beta/responses/responses.js.map +1 -0
  383. package/node_modules/openai/resources/beta/responses/responses.mjs +116 -0
  384. package/node_modules/openai/resources/beta/responses/responses.mjs.map +1 -0
  385. package/node_modules/openai/resources/beta/responses/ws-base.d.mts +106 -0
  386. package/node_modules/openai/resources/beta/responses/ws-base.d.mts.map +1 -0
  387. package/node_modules/openai/resources/beta/responses/ws-base.d.ts +106 -0
  388. package/node_modules/openai/resources/beta/responses/ws-base.d.ts.map +1 -0
  389. package/node_modules/openai/resources/beta/responses/ws-base.js +476 -0
  390. package/node_modules/openai/resources/beta/responses/ws-base.js.map +1 -0
  391. package/node_modules/openai/resources/beta/responses/ws-base.mjs +472 -0
  392. package/node_modules/openai/resources/beta/responses/ws-base.mjs.map +1 -0
  393. package/node_modules/openai/resources/beta/responses/ws.d.mts +13 -0
  394. package/node_modules/openai/resources/beta/responses/ws.d.mts.map +1 -0
  395. package/node_modules/openai/resources/beta/responses/ws.d.ts +13 -0
  396. package/node_modules/openai/resources/beta/responses/ws.d.ts.map +1 -0
  397. package/node_modules/openai/resources/beta/responses/ws.js +31 -0
  398. package/node_modules/openai/resources/beta/responses/ws.js.map +1 -0
  399. package/node_modules/openai/resources/beta/responses/ws.mjs +26 -0
  400. package/node_modules/openai/resources/beta/responses/ws.mjs.map +1 -0
  401. package/node_modules/openai/resources/beta/responses.d.mts +2 -0
  402. package/node_modules/openai/resources/beta/responses.d.mts.map +1 -0
  403. package/node_modules/openai/resources/beta/responses.d.ts +2 -0
  404. package/node_modules/openai/resources/beta/responses.d.ts.map +1 -0
  405. package/node_modules/openai/resources/beta/responses.js +6 -0
  406. package/node_modules/openai/resources/beta/responses.js.map +1 -0
  407. package/node_modules/openai/resources/beta/responses.mjs +3 -0
  408. package/node_modules/openai/resources/beta/responses.mjs.map +1 -0
  409. package/node_modules/openai/resources/beta/threads/runs/runs.d.mts +6 -13
  410. package/node_modules/openai/resources/beta/threads/runs/runs.d.mts.map +1 -1
  411. package/node_modules/openai/resources/beta/threads/runs/runs.d.ts +6 -13
  412. package/node_modules/openai/resources/beta/threads/runs/runs.d.ts.map +1 -1
  413. package/node_modules/openai/resources/beta/threads/runs/runs.js.map +1 -1
  414. package/node_modules/openai/resources/beta/threads/runs/runs.mjs.map +1 -1
  415. package/node_modules/openai/resources/chat/completions/completions.d.mts +170 -20
  416. package/node_modules/openai/resources/chat/completions/completions.d.mts.map +1 -1
  417. package/node_modules/openai/resources/chat/completions/completions.d.ts +170 -20
  418. package/node_modules/openai/resources/chat/completions/completions.d.ts.map +1 -1
  419. package/node_modules/openai/resources/chat/completions/completions.js.map +1 -1
  420. package/node_modules/openai/resources/chat/completions/completions.mjs.map +1 -1
  421. package/node_modules/openai/resources/completions.d.mts +4 -0
  422. package/node_modules/openai/resources/completions.d.mts.map +1 -1
  423. package/node_modules/openai/resources/completions.d.ts +4 -0
  424. package/node_modules/openai/resources/completions.d.ts.map +1 -1
  425. package/node_modules/openai/resources/conversations/conversations.d.mts +19 -0
  426. package/node_modules/openai/resources/conversations/conversations.d.mts.map +1 -1
  427. package/node_modules/openai/resources/conversations/conversations.d.ts +19 -0
  428. package/node_modules/openai/resources/conversations/conversations.d.ts.map +1 -1
  429. package/node_modules/openai/resources/conversations/conversations.js.map +1 -1
  430. package/node_modules/openai/resources/conversations/conversations.mjs.map +1 -1
  431. package/node_modules/openai/resources/conversations/items.d.mts +45 -1
  432. package/node_modules/openai/resources/conversations/items.d.mts.map +1 -1
  433. package/node_modules/openai/resources/conversations/items.d.ts +45 -1
  434. package/node_modules/openai/resources/conversations/items.d.ts.map +1 -1
  435. package/node_modules/openai/resources/evals/runs/runs.d.mts +66 -143
  436. package/node_modules/openai/resources/evals/runs/runs.d.mts.map +1 -1
  437. package/node_modules/openai/resources/evals/runs/runs.d.ts +66 -143
  438. package/node_modules/openai/resources/evals/runs/runs.d.ts.map +1 -1
  439. package/node_modules/openai/resources/evals/runs/runs.js.map +1 -1
  440. package/node_modules/openai/resources/evals/runs/runs.mjs.map +1 -1
  441. package/node_modules/openai/resources/graders/grader-models.d.mts +6 -13
  442. package/node_modules/openai/resources/graders/grader-models.d.mts.map +1 -1
  443. package/node_modules/openai/resources/graders/grader-models.d.ts +6 -13
  444. package/node_modules/openai/resources/graders/grader-models.d.ts.map +1 -1
  445. package/node_modules/openai/resources/realtime/calls.d.mts +1 -1
  446. package/node_modules/openai/resources/realtime/calls.d.mts.map +1 -1
  447. package/node_modules/openai/resources/realtime/calls.d.ts +1 -1
  448. package/node_modules/openai/resources/realtime/calls.d.ts.map +1 -1
  449. package/node_modules/openai/resources/realtime/client-secrets.d.mts +5 -1
  450. package/node_modules/openai/resources/realtime/client-secrets.d.mts.map +1 -1
  451. package/node_modules/openai/resources/realtime/client-secrets.d.ts +5 -1
  452. package/node_modules/openai/resources/realtime/client-secrets.d.ts.map +1 -1
  453. package/node_modules/openai/resources/realtime/realtime.d.mts +9 -1
  454. package/node_modules/openai/resources/realtime/realtime.d.mts.map +1 -1
  455. package/node_modules/openai/resources/realtime/realtime.d.ts +9 -1
  456. package/node_modules/openai/resources/realtime/realtime.d.ts.map +1 -1
  457. package/node_modules/openai/resources/realtime/realtime.js.map +1 -1
  458. package/node_modules/openai/resources/realtime/realtime.mjs.map +1 -1
  459. package/node_modules/openai/resources/responses/input-tokens.d.mts +7 -1
  460. package/node_modules/openai/resources/responses/input-tokens.d.mts.map +1 -1
  461. package/node_modules/openai/resources/responses/input-tokens.d.ts +7 -1
  462. package/node_modules/openai/resources/responses/input-tokens.d.ts.map +1 -1
  463. package/node_modules/openai/resources/responses/responses.d.mts +819 -26
  464. package/node_modules/openai/resources/responses/responses.d.mts.map +1 -1
  465. package/node_modules/openai/resources/responses/responses.d.ts +819 -26
  466. package/node_modules/openai/resources/responses/responses.d.ts.map +1 -1
  467. package/node_modules/openai/resources/responses/responses.js +1 -1
  468. package/node_modules/openai/resources/responses/responses.js.map +1 -1
  469. package/node_modules/openai/resources/responses/responses.mjs +1 -1
  470. package/node_modules/openai/resources/responses/responses.mjs.map +1 -1
  471. package/node_modules/openai/resources/shared.d.mts +20 -28
  472. package/node_modules/openai/resources/shared.d.mts.map +1 -1
  473. package/node_modules/openai/resources/shared.d.ts +20 -28
  474. package/node_modules/openai/resources/shared.d.ts.map +1 -1
  475. package/node_modules/openai/src/client.ts +13 -5
  476. package/node_modules/openai/src/core/streaming.ts +36 -8
  477. package/node_modules/openai/src/core/uploads.ts +6 -1
  478. package/node_modules/openai/src/helpers/audio.ts +18 -4
  479. package/node_modules/openai/src/helpers/zod.ts +62 -23
  480. package/node_modules/openai/src/index.ts +1 -1
  481. package/node_modules/openai/src/internal/headers.ts +7 -3
  482. package/node_modules/openai/src/internal/uploads.ts +214 -4
  483. package/node_modules/openai/src/lib/AbstractChatCompletionRunner.ts +32 -9
  484. package/node_modules/openai/src/lib/AssistantStream.ts +4 -3
  485. package/node_modules/openai/src/lib/ChatCompletionRunner.ts +46 -6
  486. package/node_modules/openai/src/lib/ChatCompletionStream.ts +115 -17
  487. package/node_modules/openai/src/lib/ChatCompletionStreamingRunner.ts +144 -7
  488. package/node_modules/openai/src/lib/EventStream.ts +114 -4
  489. package/node_modules/openai/src/lib/RunnableFunction.ts +60 -31
  490. package/node_modules/openai/src/lib/parser.ts +4 -0
  491. package/node_modules/openai/src/lib/responses/ResponseAccumulator.ts +10 -1
  492. package/node_modules/openai/src/lib/responses/ResponseInputItems.ts +2 -0
  493. package/node_modules/openai/src/lib/responses/ResponseStream.ts +29 -1
  494. package/node_modules/openai/src/resources/admin/organization/audit-logs.ts +169 -1
  495. package/node_modules/openai/src/resources/admin/organization/projects/api-keys.ts +15 -1
  496. package/node_modules/openai/src/resources/admin/organization/projects/index.ts +1 -1
  497. package/node_modules/openai/src/resources/admin/organization/projects/projects.ts +13 -13
  498. package/node_modules/openai/src/resources/admin/organization/projects/service-accounts/api-keys.ts +80 -0
  499. package/node_modules/openai/src/resources/admin/organization/projects/service-accounts/index.ts +15 -0
  500. package/node_modules/openai/src/resources/admin/organization/projects/service-accounts/service-accounts.ts +284 -0
  501. package/node_modules/openai/src/resources/admin/organization/projects/service-accounts.ts +1 -264
  502. package/node_modules/openai/src/resources/admin/organization/usage.ts +616 -88
  503. package/node_modules/openai/src/resources/beta/assistants.ts +12 -26
  504. package/node_modules/openai/src/resources/beta/beta.ts +330 -2
  505. package/node_modules/openai/src/resources/beta/index.ts +163 -0
  506. package/node_modules/openai/src/resources/beta/responses/index.ts +169 -0
  507. package/node_modules/openai/src/resources/beta/responses/input-items.ts +105 -0
  508. package/node_modules/openai/src/resources/beta/responses/input-tokens.ts +245 -0
  509. package/node_modules/openai/src/resources/beta/responses/internal-base.ts +117 -0
  510. package/node_modules/openai/src/resources/beta/responses/responses.ts +12633 -0
  511. package/node_modules/openai/src/resources/beta/responses/ws-base.ts +615 -0
  512. package/node_modules/openai/src/resources/beta/responses/ws.ts +38 -0
  513. package/node_modules/openai/src/resources/beta/responses.ts +3 -0
  514. package/node_modules/openai/src/resources/beta/threads/runs/runs.ts +6 -13
  515. package/node_modules/openai/src/resources/chat/completions/completions.ts +237 -23
  516. package/node_modules/openai/src/resources/completions.ts +5 -0
  517. package/node_modules/openai/src/resources/conversations/conversations.ts +21 -0
  518. package/node_modules/openai/src/resources/conversations/items.ts +56 -0
  519. package/node_modules/openai/src/resources/evals/runs/runs.ts +66 -143
  520. package/node_modules/openai/src/resources/graders/grader-models.ts +6 -13
  521. package/node_modules/openai/src/resources/realtime/calls.ts +2 -0
  522. package/node_modules/openai/src/resources/realtime/client-secrets.ts +7 -0
  523. package/node_modules/openai/src/resources/realtime/realtime.ts +12 -0
  524. package/node_modules/openai/src/resources/responses/input-tokens.ts +8 -0
  525. package/node_modules/openai/src/resources/responses/responses.ts +953 -17
  526. package/node_modules/openai/src/resources/shared.ts +23 -27
  527. package/node_modules/openai/src/version.ts +1 -1
  528. package/node_modules/openai/version.d.mts +1 -1
  529. package/node_modules/openai/version.d.ts +1 -1
  530. package/node_modules/openai/version.js +1 -1
  531. package/node_modules/openai/version.mjs +1 -1
  532. package/node_modules/tar-fs/index.js +39 -10
  533. package/node_modules/tar-fs/package.json +6 -1
  534. package/node_modules/tar-fs/test/index.js +111 -0
  535. package/node_modules/ws/lib/receiver.js +15 -32
  536. package/node_modules/ws/lib/websocket-server.js +4 -4
  537. package/node_modules/ws/lib/websocket.js +4 -4
  538. package/node_modules/ws/package.json +5 -1
  539. package/package.json +6 -6
  540. package/node_modules/fast-copy/CHANGELOG.md +0 -176
  541. package/node_modules/fast-copy/dist/cjs/copier.d.cts +0 -75
  542. package/node_modules/fast-copy/dist/cjs/options.d.cts +0 -69
  543. package/node_modules/fast-copy/dist/cjs/utils.d.cts +0 -13
  544. package/node_modules/fast-copy/dist/es/copier.d.mts +0 -75
  545. package/node_modules/fast-copy/dist/es/options.d.mts +0 -69
  546. package/node_modules/fast-copy/dist/es/utils.d.mts +0 -13
  547. package/node_modules/fast-copy/dist/umd/copier.d.ts +0 -72
  548. package/node_modules/fast-copy/dist/umd/options.d.ts +0 -65
  549. package/node_modules/fast-copy/dist/umd/utils.d.ts +0 -13
  550. package/node_modules/hono/dist/tsconfig.build.tsbuildinfo +0 -1
@@ -0,0 +1,109 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.ServiceAccounts = void 0;
5
+ const tslib_1 = require("../../../../../internal/tslib.js");
6
+ const resource_1 = require("../../../../../core/resource.js");
7
+ const APIKeysAPI = tslib_1.__importStar(require("./api-keys.js"));
8
+ const api_keys_1 = require("./api-keys.js");
9
+ const pagination_1 = require("../../../../../core/pagination.js");
10
+ const path_1 = require("../../../../../internal/utils/path.js");
11
+ class ServiceAccounts extends resource_1.APIResource {
12
+ constructor() {
13
+ super(...arguments);
14
+ this.apiKeys = new APIKeysAPI.APIKeys(this._client);
15
+ }
16
+ /**
17
+ * Creates a new service account in the project. By default, this also returns an
18
+ * unredacted API key for the service account.
19
+ *
20
+ * @example
21
+ * ```ts
22
+ * const serviceAccount =
23
+ * await client.admin.organization.projects.serviceAccounts.create(
24
+ * 'project_id',
25
+ * { name: 'name' },
26
+ * );
27
+ * ```
28
+ */
29
+ create(projectID, body, options) {
30
+ return this._client.post((0, path_1.path) `/organization/projects/${projectID}/service_accounts`, {
31
+ body,
32
+ ...options,
33
+ __security: { adminAPIKeyAuth: true },
34
+ });
35
+ }
36
+ /**
37
+ * Retrieves a service account in the project.
38
+ *
39
+ * @example
40
+ * ```ts
41
+ * const projectServiceAccount =
42
+ * await client.admin.organization.projects.serviceAccounts.retrieve(
43
+ * 'service_account_id',
44
+ * { project_id: 'project_id' },
45
+ * );
46
+ * ```
47
+ */
48
+ retrieve(serviceAccountID, params, options) {
49
+ const { project_id } = params;
50
+ return this._client.get((0, path_1.path) `/organization/projects/${project_id}/service_accounts/${serviceAccountID}`, {
51
+ ...options,
52
+ __security: { adminAPIKeyAuth: true },
53
+ });
54
+ }
55
+ /**
56
+ * Updates a service account in the project.
57
+ *
58
+ * @example
59
+ * ```ts
60
+ * const projectServiceAccount =
61
+ * await client.admin.organization.projects.serviceAccounts.update(
62
+ * 'service_account_id',
63
+ * { project_id: 'project_id' },
64
+ * );
65
+ * ```
66
+ */
67
+ update(serviceAccountID, params, options) {
68
+ const { project_id, ...body } = params;
69
+ return this._client.post((0, path_1.path) `/organization/projects/${project_id}/service_accounts/${serviceAccountID}`, { body, ...options, __security: { adminAPIKeyAuth: true } });
70
+ }
71
+ /**
72
+ * Returns a list of service accounts in the project.
73
+ *
74
+ * @example
75
+ * ```ts
76
+ * // Automatically fetches more pages as needed.
77
+ * for await (const projectServiceAccount of client.admin.organization.projects.serviceAccounts.list(
78
+ * 'project_id',
79
+ * )) {
80
+ * // ...
81
+ * }
82
+ * ```
83
+ */
84
+ list(projectID, query = {}, options) {
85
+ return this._client.getAPIList((0, path_1.path) `/organization/projects/${projectID}/service_accounts`, (pagination_1.ConversationCursorPage), { query, ...options, __security: { adminAPIKeyAuth: true } });
86
+ }
87
+ /**
88
+ * Deletes a service account from the project.
89
+ *
90
+ * Returns confirmation of service account deletion, or an error if the project is
91
+ * archived (archived projects have no service accounts).
92
+ *
93
+ * @example
94
+ * ```ts
95
+ * const serviceAccount =
96
+ * await client.admin.organization.projects.serviceAccounts.delete(
97
+ * 'service_account_id',
98
+ * { project_id: 'project_id' },
99
+ * );
100
+ * ```
101
+ */
102
+ delete(serviceAccountID, params, options) {
103
+ const { project_id } = params;
104
+ return this._client.delete((0, path_1.path) `/organization/projects/${project_id}/service_accounts/${serviceAccountID}`, { ...options, __security: { adminAPIKeyAuth: true } });
105
+ }
106
+ }
107
+ exports.ServiceAccounts = ServiceAccounts;
108
+ ServiceAccounts.APIKeys = api_keys_1.APIKeys;
109
+ //# sourceMappingURL=service-accounts.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"service-accounts.js","sourceRoot":"","sources":["../../../../../src/resources/admin/organization/projects/service-accounts/service-accounts.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,8DAA2D;AAC3D,kEAAyC;AACzC,4CAA+E;AAE/E,kEAIwC;AAExC,gEAA0D;AAE1D,MAAa,eAAgB,SAAQ,sBAAW;IAAhD;;QACE,YAAO,GAAuB,IAAI,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IA8HrE,CAAC;IA5HC;;;;;;;;;;;;OAYG;IACH,MAAM,CACJ,SAAiB,EACjB,IAAgC,EAChC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,0BAA0B,SAAS,mBAAmB,EAAE;YACnF,IAAI;YACJ,GAAG,OAAO;YACV,UAAU,EAAE,EAAE,eAAe,EAAE,IAAI,EAAE;SACtC,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;OAWG;IACH,QAAQ,CACN,gBAAwB,EACxB,MAAoC,EACpC,OAAwB;QAExB,MAAM,EAAE,UAAU,EAAE,GAAG,MAAM,CAAC;QAC9B,OAAO,IAAI,CAAC,OAA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AAG,kBAAO,CAAC"}
@@ -0,0 +1,104 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../../../../../core/resource.mjs";
3
+ import * as APIKeysAPI from "./api-keys.mjs";
4
+ import { APIKeys } from "./api-keys.mjs";
5
+ import { ConversationCursorPage, } from "../../../../../core/pagination.mjs";
6
+ import { path } from "../../../../../internal/utils/path.mjs";
7
+ export class ServiceAccounts extends APIResource {
8
+ constructor() {
9
+ super(...arguments);
10
+ this.apiKeys = new APIKeysAPI.APIKeys(this._client);
11
+ }
12
+ /**
13
+ * Creates a new service account in the project. By default, this also returns an
14
+ * unredacted API key for the service account.
15
+ *
16
+ * @example
17
+ * ```ts
18
+ * const serviceAccount =
19
+ * await client.admin.organization.projects.serviceAccounts.create(
20
+ * 'project_id',
21
+ * { name: 'name' },
22
+ * );
23
+ * ```
24
+ */
25
+ create(projectID, body, options) {
26
+ return this._client.post(path `/organization/projects/${projectID}/service_accounts`, {
27
+ body,
28
+ ...options,
29
+ __security: { adminAPIKeyAuth: true },
30
+ });
31
+ }
32
+ /**
33
+ * Retrieves a service account in the project.
34
+ *
35
+ * @example
36
+ * ```ts
37
+ * const projectServiceAccount =
38
+ * await client.admin.organization.projects.serviceAccounts.retrieve(
39
+ * 'service_account_id',
40
+ * { project_id: 'project_id' },
41
+ * );
42
+ * ```
43
+ */
44
+ retrieve(serviceAccountID, params, options) {
45
+ const { project_id } = params;
46
+ return this._client.get(path `/organization/projects/${project_id}/service_accounts/${serviceAccountID}`, {
47
+ ...options,
48
+ __security: { adminAPIKeyAuth: true },
49
+ });
50
+ }
51
+ /**
52
+ * Updates a service account in the project.
53
+ *
54
+ * @example
55
+ * ```ts
56
+ * const projectServiceAccount =
57
+ * await client.admin.organization.projects.serviceAccounts.update(
58
+ * 'service_account_id',
59
+ * { project_id: 'project_id' },
60
+ * );
61
+ * ```
62
+ */
63
+ update(serviceAccountID, params, options) {
64
+ const { project_id, ...body } = params;
65
+ return this._client.post(path `/organization/projects/${project_id}/service_accounts/${serviceAccountID}`, { body, ...options, __security: { adminAPIKeyAuth: true } });
66
+ }
67
+ /**
68
+ * Returns a list of service accounts in the project.
69
+ *
70
+ * @example
71
+ * ```ts
72
+ * // Automatically fetches more pages as needed.
73
+ * for await (const projectServiceAccount of client.admin.organization.projects.serviceAccounts.list(
74
+ * 'project_id',
75
+ * )) {
76
+ * // ...
77
+ * }
78
+ * ```
79
+ */
80
+ list(projectID, query = {}, options) {
81
+ return this._client.getAPIList(path `/organization/projects/${projectID}/service_accounts`, (ConversationCursorPage), { query, ...options, __security: { adminAPIKeyAuth: true } });
82
+ }
83
+ /**
84
+ * Deletes a service account from the project.
85
+ *
86
+ * Returns confirmation of service account deletion, or an error if the project is
87
+ * archived (archived projects have no service accounts).
88
+ *
89
+ * @example
90
+ * ```ts
91
+ * const serviceAccount =
92
+ * await client.admin.organization.projects.serviceAccounts.delete(
93
+ * 'service_account_id',
94
+ * { project_id: 'project_id' },
95
+ * );
96
+ * ```
97
+ */
98
+ delete(serviceAccountID, params, options) {
99
+ const { project_id } = params;
100
+ return this._client.delete(path `/organization/projects/${project_id}/service_accounts/${serviceAccountID}`, { ...options, __security: { adminAPIKeyAuth: true } });
101
+ }
102
+ }
103
+ ServiceAccounts.APIKeys = APIKeys;
104
+ //# sourceMappingURL=service-accounts.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"service-accounts.mjs","sourceRoot":"","sources":["../../../../../src/resources/admin/organization/projects/service-accounts/service-accounts.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,yCAAqC;AAC3D,OAAO,KAAK,UAAU,uBAAmB;AACzC,OAAO,EAA4C,OAAO,EAAE,uBAAmB;AAE/E,OAAO,EACL,sBAAsB,GAGvB,2CAAuC;AAExC,OAAO,EAAE,IAAI,EAAE,+CAA2C;AAE1D,MAAM,OAAO,eAAgB,SAAQ,WAAW;IAAhD;;QACE,YAAO,GAA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AAK,EAAE,GAAG,OAAO,EAAE,UAAU,EAAE,EAAE,eAAe,EAAE,IAAI,EAAE,EAAE,CAC7D,CAAC;IACJ,CAAC;IAED;;;;;;;;;;;;;;OAcG;IACH,MAAM,CACJ,gBAAwB,EACxB,MAAkC,EAClC,OAAwB;QAExB,MAAM,EAAE,UAAU,EAAE,GAAG,MAAM,CAAC;QAC9B,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CACxB,IAAI,CAAA,0BAA0B,UAAU,qBAAqB,gBAAgB,EAAE,EAC/E,EAAE,GAAG,OAAO,EAAE,UAAU,EAAE,EAAE,eAAe,EAAE,IAAI,EAAE,EAAE,CACtD,CAAC;IACJ,CAAC;CACF;AA0HD,eAAe,CAAC,OAAO,GAAG,OAAO,CAAC"}
@@ -1,168 +1,2 @@
1
- import { APIResource } from "../../../../core/resource.mjs";
2
- import { APIPromise } from "../../../../core/api-promise.mjs";
3
- import { ConversationCursorPage, type ConversationCursorPageParams, PagePromise } from "../../../../core/pagination.mjs";
4
- import { RequestOptions } from "../../../../internal/request-options.mjs";
5
- export declare class ServiceAccounts extends APIResource {
6
- /**
7
- * Creates a new service account in the project. This also returns an unredacted
8
- * API key for the service account.
9
- *
10
- * @example
11
- * ```ts
12
- * const serviceAccount =
13
- * await client.admin.organization.projects.serviceAccounts.create(
14
- * 'project_id',
15
- * { name: 'name' },
16
- * );
17
- * ```
18
- */
19
- create(projectID: string, body: ServiceAccountCreateParams, options?: RequestOptions): APIPromise<ServiceAccountCreateResponse>;
20
- /**
21
- * Retrieves a service account in the project.
22
- *
23
- * @example
24
- * ```ts
25
- * const projectServiceAccount =
26
- * await client.admin.organization.projects.serviceAccounts.retrieve(
27
- * 'service_account_id',
28
- * { project_id: 'project_id' },
29
- * );
30
- * ```
31
- */
32
- retrieve(serviceAccountID: string, params: ServiceAccountRetrieveParams, options?: RequestOptions): APIPromise<ProjectServiceAccount>;
33
- /**
34
- * Updates a service account in the project.
35
- *
36
- * @example
37
- * ```ts
38
- * const projectServiceAccount =
39
- * await client.admin.organization.projects.serviceAccounts.update(
40
- * 'service_account_id',
41
- * { project_id: 'project_id' },
42
- * );
43
- * ```
44
- */
45
- update(serviceAccountID: string, params: ServiceAccountUpdateParams, options?: RequestOptions): APIPromise<ProjectServiceAccount>;
46
- /**
47
- * Returns a list of service accounts in the project.
48
- *
49
- * @example
50
- * ```ts
51
- * // Automatically fetches more pages as needed.
52
- * for await (const projectServiceAccount of client.admin.organization.projects.serviceAccounts.list(
53
- * 'project_id',
54
- * )) {
55
- * // ...
56
- * }
57
- * ```
58
- */
59
- list(projectID: string, query?: ServiceAccountListParams | null | undefined, options?: RequestOptions): PagePromise<ProjectServiceAccountsPage, ProjectServiceAccount>;
60
- /**
61
- * Deletes a service account from the project.
62
- *
63
- * Returns confirmation of service account deletion, or an error if the project is
64
- * archived (archived projects have no service accounts).
65
- *
66
- * @example
67
- * ```ts
68
- * const serviceAccount =
69
- * await client.admin.organization.projects.serviceAccounts.delete(
70
- * 'service_account_id',
71
- * { project_id: 'project_id' },
72
- * );
73
- * ```
74
- */
75
- delete(serviceAccountID: string, params: ServiceAccountDeleteParams, options?: RequestOptions): APIPromise<ServiceAccountDeleteResponse>;
76
- }
77
- export type ProjectServiceAccountsPage = ConversationCursorPage<ProjectServiceAccount>;
78
- /**
79
- * Represents an individual service account in a project.
80
- */
81
- export interface ProjectServiceAccount {
82
- /**
83
- * The identifier, which can be referenced in API endpoints
84
- */
85
- id: string;
86
- /**
87
- * The Unix timestamp (in seconds) of when the service account was created
88
- */
89
- created_at: number;
90
- /**
91
- * The name of the service account
92
- */
93
- name: string;
94
- /**
95
- * The object type, which is always `organization.project.service_account`
96
- */
97
- object: 'organization.project.service_account';
98
- /**
99
- * `owner` or `member`
100
- */
101
- role: 'owner' | 'member';
102
- }
103
- export interface ServiceAccountCreateResponse {
104
- id: string;
105
- api_key: ServiceAccountCreateResponse.APIKey | null;
106
- created_at: number;
107
- name: string;
108
- object: 'organization.project.service_account';
109
- /**
110
- * Service accounts can only have one role of type `member`
111
- */
112
- role: 'member';
113
- }
114
- export declare namespace ServiceAccountCreateResponse {
115
- interface APIKey {
116
- id: string;
117
- created_at: number;
118
- name: string;
119
- /**
120
- * The object type, which is always `organization.project.service_account.api_key`
121
- */
122
- object: 'organization.project.service_account.api_key';
123
- value: string;
124
- }
125
- }
126
- export interface ServiceAccountDeleteResponse {
127
- id: string;
128
- deleted: boolean;
129
- object: 'organization.project.service_account.deleted';
130
- }
131
- export interface ServiceAccountCreateParams {
132
- /**
133
- * The name of the service account being created.
134
- */
135
- name: string;
136
- }
137
- export interface ServiceAccountRetrieveParams {
138
- /**
139
- * The ID of the project.
140
- */
141
- project_id: string;
142
- }
143
- export interface ServiceAccountUpdateParams {
144
- /**
145
- * Path param: The ID of the project.
146
- */
147
- project_id: string;
148
- /**
149
- * Body param: The updated service account name.
150
- */
151
- name?: string;
152
- /**
153
- * Body param: The updated service account role.
154
- */
155
- role?: 'member' | 'owner';
156
- }
157
- export interface ServiceAccountListParams extends ConversationCursorPageParams {
158
- }
159
- export interface ServiceAccountDeleteParams {
160
- /**
161
- * The ID of the project.
162
- */
163
- project_id: string;
164
- }
165
- export declare namespace ServiceAccounts {
166
- export { type ProjectServiceAccount as ProjectServiceAccount, type ServiceAccountCreateResponse as ServiceAccountCreateResponse, type ServiceAccountDeleteResponse as ServiceAccountDeleteResponse, type ProjectServiceAccountsPage as ProjectServiceAccountsPage, type ServiceAccountCreateParams as ServiceAccountCreateParams, type ServiceAccountRetrieveParams as ServiceAccountRetrieveParams, type ServiceAccountUpdateParams as ServiceAccountUpdateParams, type ServiceAccountListParams as ServiceAccountListParams, type ServiceAccountDeleteParams as ServiceAccountDeleteParams, };
167
- }
1
+ export * from "./service-accounts/index.mjs";
168
2
  //# sourceMappingURL=service-accounts.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"service-accounts.d.mts","sourceRoot":"","sources":["../../../../src/resources/admin/organization/projects/service-accounts.ts"],"names":[],"mappings":"AA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Ae,CAAC;IACvC,OAAO,EACL,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;CACH"}
1
+ {"version":3,"file":"service-accounts.d.mts","sourceRoot":"","sources":["../../../../src/resources/admin/organization/projects/service-accounts.ts"],"names":[],"mappings":"AAEA,6CAAyC"}
@@ -1,168 +1,2 @@
1
- import { APIResource } from "../../../../core/resource.js";
2
- import { APIPromise } from "../../../../core/api-promise.js";
3
- import { ConversationCursorPage, type ConversationCursorPageParams, PagePromise } from "../../../../core/pagination.js";
4
- import { RequestOptions } from "../../../../internal/request-options.js";
5
- export declare class ServiceAccounts extends APIResource {
6
- /**
7
- * Creates a new service account in the project. This also returns an unredacted
8
- * API key for the service account.
9
- *
10
- * @example
11
- * ```ts
12
- * const serviceAccount =
13
- * await client.admin.organization.projects.serviceAccounts.create(
14
- * 'project_id',
15
- * { name: 'name' },
16
- * );
17
- * ```
18
- */
19
- create(projectID: string, body: ServiceAccountCreateParams, options?: RequestOptions): APIPromise<ServiceAccountCreateResponse>;
20
- /**
21
- * Retrieves a service account in the project.
22
- *
23
- * @example
24
- * ```ts
25
- * const projectServiceAccount =
26
- * await client.admin.organization.projects.serviceAccounts.retrieve(
27
- * 'service_account_id',
28
- * { project_id: 'project_id' },
29
- * );
30
- * ```
31
- */
32
- retrieve(serviceAccountID: string, params: ServiceAccountRetrieveParams, options?: RequestOptions): APIPromise<ProjectServiceAccount>;
33
- /**
34
- * Updates a service account in the project.
35
- *
36
- * @example
37
- * ```ts
38
- * const projectServiceAccount =
39
- * await client.admin.organization.projects.serviceAccounts.update(
40
- * 'service_account_id',
41
- * { project_id: 'project_id' },
42
- * );
43
- * ```
44
- */
45
- update(serviceAccountID: string, params: ServiceAccountUpdateParams, options?: RequestOptions): APIPromise<ProjectServiceAccount>;
46
- /**
47
- * Returns a list of service accounts in the project.
48
- *
49
- * @example
50
- * ```ts
51
- * // Automatically fetches more pages as needed.
52
- * for await (const projectServiceAccount of client.admin.organization.projects.serviceAccounts.list(
53
- * 'project_id',
54
- * )) {
55
- * // ...
56
- * }
57
- * ```
58
- */
59
- list(projectID: string, query?: ServiceAccountListParams | null | undefined, options?: RequestOptions): PagePromise<ProjectServiceAccountsPage, ProjectServiceAccount>;
60
- /**
61
- * Deletes a service account from the project.
62
- *
63
- * Returns confirmation of service account deletion, or an error if the project is
64
- * archived (archived projects have no service accounts).
65
- *
66
- * @example
67
- * ```ts
68
- * const serviceAccount =
69
- * await client.admin.organization.projects.serviceAccounts.delete(
70
- * 'service_account_id',
71
- * { project_id: 'project_id' },
72
- * );
73
- * ```
74
- */
75
- delete(serviceAccountID: string, params: ServiceAccountDeleteParams, options?: RequestOptions): APIPromise<ServiceAccountDeleteResponse>;
76
- }
77
- export type ProjectServiceAccountsPage = ConversationCursorPage<ProjectServiceAccount>;
78
- /**
79
- * Represents an individual service account in a project.
80
- */
81
- export interface ProjectServiceAccount {
82
- /**
83
- * The identifier, which can be referenced in API endpoints
84
- */
85
- id: string;
86
- /**
87
- * The Unix timestamp (in seconds) of when the service account was created
88
- */
89
- created_at: number;
90
- /**
91
- * The name of the service account
92
- */
93
- name: string;
94
- /**
95
- * The object type, which is always `organization.project.service_account`
96
- */
97
- object: 'organization.project.service_account';
98
- /**
99
- * `owner` or `member`
100
- */
101
- role: 'owner' | 'member';
102
- }
103
- export interface ServiceAccountCreateResponse {
104
- id: string;
105
- api_key: ServiceAccountCreateResponse.APIKey | null;
106
- created_at: number;
107
- name: string;
108
- object: 'organization.project.service_account';
109
- /**
110
- * Service accounts can only have one role of type `member`
111
- */
112
- role: 'member';
113
- }
114
- export declare namespace ServiceAccountCreateResponse {
115
- interface APIKey {
116
- id: string;
117
- created_at: number;
118
- name: string;
119
- /**
120
- * The object type, which is always `organization.project.service_account.api_key`
121
- */
122
- object: 'organization.project.service_account.api_key';
123
- value: string;
124
- }
125
- }
126
- export interface ServiceAccountDeleteResponse {
127
- id: string;
128
- deleted: boolean;
129
- object: 'organization.project.service_account.deleted';
130
- }
131
- export interface ServiceAccountCreateParams {
132
- /**
133
- * The name of the service account being created.
134
- */
135
- name: string;
136
- }
137
- export interface ServiceAccountRetrieveParams {
138
- /**
139
- * The ID of the project.
140
- */
141
- project_id: string;
142
- }
143
- export interface ServiceAccountUpdateParams {
144
- /**
145
- * Path param: The ID of the project.
146
- */
147
- project_id: string;
148
- /**
149
- * Body param: The updated service account name.
150
- */
151
- name?: string;
152
- /**
153
- * Body param: The updated service account role.
154
- */
155
- role?: 'member' | 'owner';
156
- }
157
- export interface ServiceAccountListParams extends ConversationCursorPageParams {
158
- }
159
- export interface ServiceAccountDeleteParams {
160
- /**
161
- * The ID of the project.
162
- */
163
- project_id: string;
164
- }
165
- export declare namespace ServiceAccounts {
166
- export { type ProjectServiceAccount as ProjectServiceAccount, type ServiceAccountCreateResponse as ServiceAccountCreateResponse, type ServiceAccountDeleteResponse as ServiceAccountDeleteResponse, type ProjectServiceAccountsPage as ProjectServiceAccountsPage, type ServiceAccountCreateParams as ServiceAccountCreateParams, type ServiceAccountRetrieveParams as ServiceAccountRetrieveParams, type ServiceAccountUpdateParams as ServiceAccountUpdateParams, type ServiceAccountListParams as ServiceAccountListParams, type ServiceAccountDeleteParams as ServiceAccountDeleteParams, };
167
- }
1
+ export * from "./service-accounts/index.js";
168
2
  //# sourceMappingURL=service-accounts.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"service-accounts.d.ts","sourceRoot":"","sources":["../../../../src/resources/admin/organization/projects/service-accounts.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAA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,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;CACH"}
1
+ {"version":3,"file":"service-accounts.d.ts","sourceRoot":"","sources":["../../../../src/resources/admin/organization/projects/service-accounts.ts"],"names":[],"mappings":"AAEA,4CAAyC"}