@keystrokehq/openai 0.1.4 → 0.1.6

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 (1021) hide show
  1. package/dist/action.cjs.map +1 -1
  2. package/dist/action.mjs.map +1 -1
  3. package/dist/actions/add-upload-part.cjs +1 -0
  4. package/dist/actions/add-upload-part.cjs.map +1 -1
  5. package/dist/actions/add-upload-part.d.cts +3 -11
  6. package/dist/actions/add-upload-part.d.cts.map +1 -1
  7. package/dist/actions/add-upload-part.d.mts +3 -11
  8. package/dist/actions/add-upload-part.d.mts.map +1 -1
  9. package/dist/actions/add-upload-part.mjs +1 -0
  10. package/dist/actions/add-upload-part.mjs.map +1 -1
  11. package/dist/actions/cancel-batch.cjs +1 -0
  12. package/dist/actions/cancel-batch.cjs.map +1 -1
  13. package/dist/actions/cancel-batch.d.cts +3 -3
  14. package/dist/actions/cancel-batch.d.cts.map +1 -1
  15. package/dist/actions/cancel-batch.d.mts +3 -3
  16. package/dist/actions/cancel-batch.d.mts.map +1 -1
  17. package/dist/actions/cancel-batch.mjs +1 -0
  18. package/dist/actions/cancel-batch.mjs.map +1 -1
  19. package/dist/actions/cancel-eval-run.cjs +1 -0
  20. package/dist/actions/cancel-eval-run.cjs.map +1 -1
  21. package/dist/actions/cancel-eval-run.d.cts +3 -4
  22. package/dist/actions/cancel-eval-run.d.cts.map +1 -1
  23. package/dist/actions/cancel-eval-run.d.mts +3 -4
  24. package/dist/actions/cancel-eval-run.d.mts.map +1 -1
  25. package/dist/actions/cancel-eval-run.mjs +1 -0
  26. package/dist/actions/cancel-eval-run.mjs.map +1 -1
  27. package/dist/actions/cancel-response.cjs +1 -0
  28. package/dist/actions/cancel-response.cjs.map +1 -1
  29. package/dist/actions/cancel-response.d.cts +3 -3
  30. package/dist/actions/cancel-response.d.cts.map +1 -1
  31. package/dist/actions/cancel-response.d.mts +3 -3
  32. package/dist/actions/cancel-response.d.mts.map +1 -1
  33. package/dist/actions/cancel-response.mjs +1 -0
  34. package/dist/actions/cancel-response.mjs.map +1 -1
  35. package/dist/actions/cancel-run.cjs +1 -0
  36. package/dist/actions/cancel-run.cjs.map +1 -1
  37. package/dist/actions/cancel-run.d.cts +3 -4
  38. package/dist/actions/cancel-run.d.cts.map +1 -1
  39. package/dist/actions/cancel-run.d.mts +3 -4
  40. package/dist/actions/cancel-run.d.mts.map +1 -1
  41. package/dist/actions/cancel-run.mjs +1 -0
  42. package/dist/actions/cancel-run.mjs.map +1 -1
  43. package/dist/actions/cancel-upload.cjs +1 -0
  44. package/dist/actions/cancel-upload.cjs.map +1 -1
  45. package/dist/actions/cancel-upload.d.cts +3 -3
  46. package/dist/actions/cancel-upload.d.cts.map +1 -1
  47. package/dist/actions/cancel-upload.d.mts +3 -3
  48. package/dist/actions/cancel-upload.d.mts.map +1 -1
  49. package/dist/actions/cancel-upload.mjs +1 -0
  50. package/dist/actions/cancel-upload.mjs.map +1 -1
  51. package/dist/actions/compact-response.cjs +1 -0
  52. package/dist/actions/compact-response.cjs.map +1 -1
  53. package/dist/actions/compact-response.d.cts +3 -15
  54. package/dist/actions/compact-response.d.cts.map +1 -1
  55. package/dist/actions/compact-response.d.mts +3 -15
  56. package/dist/actions/compact-response.d.mts.map +1 -1
  57. package/dist/actions/compact-response.mjs +1 -0
  58. package/dist/actions/compact-response.mjs.map +1 -1
  59. package/dist/actions/create-audio-transcription.cjs +1 -0
  60. package/dist/actions/create-audio-transcription.cjs.map +1 -1
  61. package/dist/actions/create-audio-transcription.d.cts +3 -16
  62. package/dist/actions/create-audio-transcription.d.cts.map +1 -1
  63. package/dist/actions/create-audio-transcription.d.mts +3 -16
  64. package/dist/actions/create-audio-transcription.d.mts.map +1 -1
  65. package/dist/actions/create-audio-transcription.mjs +1 -0
  66. package/dist/actions/create-audio-transcription.mjs.map +1 -1
  67. package/dist/actions/create-audio-translation.cjs +1 -0
  68. package/dist/actions/create-audio-translation.cjs.map +1 -1
  69. package/dist/actions/create-audio-translation.d.cts +3 -14
  70. package/dist/actions/create-audio-translation.d.cts.map +1 -1
  71. package/dist/actions/create-audio-translation.d.mts +3 -14
  72. package/dist/actions/create-audio-translation.d.mts.map +1 -1
  73. package/dist/actions/create-audio-translation.mjs +1 -0
  74. package/dist/actions/create-audio-translation.mjs.map +1 -1
  75. package/dist/actions/create-batch.cjs +1 -0
  76. package/dist/actions/create-batch.cjs.map +1 -1
  77. package/dist/actions/create-batch.d.cts +3 -10
  78. package/dist/actions/create-batch.d.cts.map +1 -1
  79. package/dist/actions/create-batch.d.mts +3 -10
  80. package/dist/actions/create-batch.d.mts.map +1 -1
  81. package/dist/actions/create-batch.mjs +1 -0
  82. package/dist/actions/create-batch.mjs.map +1 -1
  83. package/dist/actions/create-chat-completion.cjs +1 -0
  84. package/dist/actions/create-chat-completion.cjs.map +1 -1
  85. package/dist/actions/create-chat-completion.d.cts +3 -60
  86. package/dist/actions/create-chat-completion.d.cts.map +1 -1
  87. package/dist/actions/create-chat-completion.d.mts +3 -60
  88. package/dist/actions/create-chat-completion.d.mts.map +1 -1
  89. package/dist/actions/create-chat-completion.mjs +1 -0
  90. package/dist/actions/create-chat-completion.mjs.map +1 -1
  91. package/dist/actions/create-completion.cjs +1 -0
  92. package/dist/actions/create-completion.cjs.map +1 -1
  93. package/dist/actions/create-completion.d.cts +3 -20
  94. package/dist/actions/create-completion.d.cts.map +1 -1
  95. package/dist/actions/create-completion.d.mts +3 -20
  96. package/dist/actions/create-completion.d.mts.map +1 -1
  97. package/dist/actions/create-completion.mjs +1 -0
  98. package/dist/actions/create-completion.mjs.map +1 -1
  99. package/dist/actions/create-container-file.cjs +1 -0
  100. package/dist/actions/create-container-file.cjs.map +1 -1
  101. package/dist/actions/create-container-file.d.cts +3 -5
  102. package/dist/actions/create-container-file.d.cts.map +1 -1
  103. package/dist/actions/create-container-file.d.mts +3 -5
  104. package/dist/actions/create-container-file.d.mts.map +1 -1
  105. package/dist/actions/create-container-file.mjs +1 -0
  106. package/dist/actions/create-container-file.mjs.map +1 -1
  107. package/dist/actions/create-container.cjs +1 -0
  108. package/dist/actions/create-container.cjs.map +1 -1
  109. package/dist/actions/create-container.d.cts +3 -30
  110. package/dist/actions/create-container.d.cts.map +1 -1
  111. package/dist/actions/create-container.d.mts +3 -30
  112. package/dist/actions/create-container.d.mts.map +1 -1
  113. package/dist/actions/create-container.mjs +1 -0
  114. package/dist/actions/create-container.mjs.map +1 -1
  115. package/dist/actions/create-conversation-items.cjs +1 -0
  116. package/dist/actions/create-conversation-items.cjs.map +1 -1
  117. package/dist/actions/create-conversation-items.d.cts +3 -14
  118. package/dist/actions/create-conversation-items.d.cts.map +1 -1
  119. package/dist/actions/create-conversation-items.d.mts +3 -14
  120. package/dist/actions/create-conversation-items.d.mts.map +1 -1
  121. package/dist/actions/create-conversation-items.mjs +1 -0
  122. package/dist/actions/create-conversation-items.mjs.map +1 -1
  123. package/dist/actions/create-conversation.cjs +1 -0
  124. package/dist/actions/create-conversation.cjs.map +1 -1
  125. package/dist/actions/create-conversation.d.cts +3 -9
  126. package/dist/actions/create-conversation.d.cts.map +1 -1
  127. package/dist/actions/create-conversation.d.mts +3 -9
  128. package/dist/actions/create-conversation.d.mts.map +1 -1
  129. package/dist/actions/create-conversation.mjs +1 -0
  130. package/dist/actions/create-conversation.mjs.map +1 -1
  131. package/dist/actions/create-embeddings.cjs +1 -0
  132. package/dist/actions/create-embeddings.cjs.map +1 -1
  133. package/dist/actions/create-embeddings.d.cts +3 -7
  134. package/dist/actions/create-embeddings.d.cts.map +1 -1
  135. package/dist/actions/create-embeddings.d.mts +3 -7
  136. package/dist/actions/create-embeddings.d.mts.map +1 -1
  137. package/dist/actions/create-embeddings.mjs +1 -0
  138. package/dist/actions/create-embeddings.mjs.map +1 -1
  139. package/dist/actions/create-eval-run.cjs +1 -0
  140. package/dist/actions/create-eval-run.cjs.map +1 -1
  141. package/dist/actions/create-eval-run.d.cts +3 -48
  142. package/dist/actions/create-eval-run.d.cts.map +1 -1
  143. package/dist/actions/create-eval-run.d.mts +3 -48
  144. package/dist/actions/create-eval-run.d.mts.map +1 -1
  145. package/dist/actions/create-eval-run.mjs +1 -0
  146. package/dist/actions/create-eval-run.mjs.map +1 -1
  147. package/dist/actions/create-eval.cjs +1 -0
  148. package/dist/actions/create-eval.cjs.map +1 -1
  149. package/dist/actions/create-eval.d.cts +3 -47
  150. package/dist/actions/create-eval.d.cts.map +1 -1
  151. package/dist/actions/create-eval.d.mts +3 -47
  152. package/dist/actions/create-eval.d.mts.map +1 -1
  153. package/dist/actions/create-eval.mjs +1 -0
  154. package/dist/actions/create-eval.mjs.map +1 -1
  155. package/dist/actions/create-fine-tuning-job.cjs +1 -0
  156. package/dist/actions/create-fine-tuning-job.cjs.map +1 -1
  157. package/dist/actions/create-fine-tuning-job.d.cts +3 -11
  158. package/dist/actions/create-fine-tuning-job.d.cts.map +1 -1
  159. package/dist/actions/create-fine-tuning-job.d.mts +3 -11
  160. package/dist/actions/create-fine-tuning-job.d.mts.map +1 -1
  161. package/dist/actions/create-fine-tuning-job.mjs +1 -0
  162. package/dist/actions/create-fine-tuning-job.mjs.map +1 -1
  163. package/dist/actions/create-image-edit.cjs +1 -0
  164. package/dist/actions/create-image-edit.cjs.map +1 -1
  165. package/dist/actions/create-image-edit.d.cts +4 -23
  166. package/dist/actions/create-image-edit.d.cts.map +1 -1
  167. package/dist/actions/create-image-edit.d.mts +4 -23
  168. package/dist/actions/create-image-edit.d.mts.map +1 -1
  169. package/dist/actions/create-image-edit.mjs +1 -0
  170. package/dist/actions/create-image-edit.mjs.map +1 -1
  171. package/dist/actions/create-image-variation.cjs +1 -0
  172. package/dist/actions/create-image-variation.cjs.map +1 -1
  173. package/dist/actions/create-image-variation.d.cts +3 -12
  174. package/dist/actions/create-image-variation.d.cts.map +1 -1
  175. package/dist/actions/create-image-variation.d.mts +3 -12
  176. package/dist/actions/create-image-variation.d.mts.map +1 -1
  177. package/dist/actions/create-image-variation.mjs +1 -0
  178. package/dist/actions/create-image-variation.mjs.map +1 -1
  179. package/dist/actions/create-image.cjs +1 -0
  180. package/dist/actions/create-image.cjs.map +1 -1
  181. package/dist/actions/create-image.d.cts +4 -14
  182. package/dist/actions/create-image.d.cts.map +1 -1
  183. package/dist/actions/create-image.d.mts +4 -14
  184. package/dist/actions/create-image.d.mts.map +1 -1
  185. package/dist/actions/create-image.mjs +1 -0
  186. package/dist/actions/create-image.mjs.map +1 -1
  187. package/dist/actions/create-message.cjs +1 -0
  188. package/dist/actions/create-message.cjs.map +1 -1
  189. package/dist/actions/create-message.d.cts +3 -21
  190. package/dist/actions/create-message.d.cts.map +1 -1
  191. package/dist/actions/create-message.d.mts +3 -21
  192. package/dist/actions/create-message.d.mts.map +1 -1
  193. package/dist/actions/create-message.mjs +1 -0
  194. package/dist/actions/create-message.mjs.map +1 -1
  195. package/dist/actions/create-moderation.cjs +1 -0
  196. package/dist/actions/create-moderation.cjs.map +1 -1
  197. package/dist/actions/create-moderation.d.cts +3 -9
  198. package/dist/actions/create-moderation.d.cts.map +1 -1
  199. package/dist/actions/create-moderation.d.mts +3 -9
  200. package/dist/actions/create-moderation.d.mts.map +1 -1
  201. package/dist/actions/create-moderation.mjs +1 -0
  202. package/dist/actions/create-moderation.mjs.map +1 -1
  203. package/dist/actions/create-realtime-call.cjs +1 -0
  204. package/dist/actions/create-realtime-call.cjs.map +1 -1
  205. package/dist/actions/create-realtime-call.d.cts +3 -4
  206. package/dist/actions/create-realtime-call.d.cts.map +1 -1
  207. package/dist/actions/create-realtime-call.d.mts +3 -4
  208. package/dist/actions/create-realtime-call.d.mts.map +1 -1
  209. package/dist/actions/create-realtime-call.mjs +1 -0
  210. package/dist/actions/create-realtime-call.mjs.map +1 -1
  211. package/dist/actions/create-realtime-client-secret.cjs +1 -0
  212. package/dist/actions/create-realtime-client-secret.cjs.map +1 -1
  213. package/dist/actions/create-realtime-client-secret.d.cts +3 -26
  214. package/dist/actions/create-realtime-client-secret.d.cts.map +1 -1
  215. package/dist/actions/create-realtime-client-secret.d.mts +3 -26
  216. package/dist/actions/create-realtime-client-secret.d.mts.map +1 -1
  217. package/dist/actions/create-realtime-client-secret.mjs +1 -0
  218. package/dist/actions/create-realtime-client-secret.mjs.map +1 -1
  219. package/dist/actions/create-realtime-session.cjs +1 -0
  220. package/dist/actions/create-realtime-session.cjs.map +1 -1
  221. package/dist/actions/create-realtime-session.d.cts +3 -48
  222. package/dist/actions/create-realtime-session.d.cts.map +1 -1
  223. package/dist/actions/create-realtime-session.d.mts +3 -48
  224. package/dist/actions/create-realtime-session.d.mts.map +1 -1
  225. package/dist/actions/create-realtime-session.mjs +1 -0
  226. package/dist/actions/create-realtime-session.mjs.map +1 -1
  227. package/dist/actions/create-realtime-transcription-session.cjs +1 -0
  228. package/dist/actions/create-realtime-transcription-session.cjs.map +1 -1
  229. package/dist/actions/create-realtime-transcription-session.d.cts +3 -18
  230. package/dist/actions/create-realtime-transcription-session.d.cts.map +1 -1
  231. package/dist/actions/create-realtime-transcription-session.d.mts +3 -18
  232. package/dist/actions/create-realtime-transcription-session.d.mts.map +1 -1
  233. package/dist/actions/create-realtime-transcription-session.mjs +1 -0
  234. package/dist/actions/create-realtime-transcription-session.mjs.map +1 -1
  235. package/dist/actions/create-response.cjs +1 -0
  236. package/dist/actions/create-response.cjs.map +1 -1
  237. package/dist/actions/create-response.d.cts +3 -63
  238. package/dist/actions/create-response.d.cts.map +1 -1
  239. package/dist/actions/create-response.d.mts +3 -63
  240. package/dist/actions/create-response.d.mts.map +1 -1
  241. package/dist/actions/create-response.mjs +1 -0
  242. package/dist/actions/create-response.mjs.map +1 -1
  243. package/dist/actions/create-run.cjs +1 -0
  244. package/dist/actions/create-run.cjs.map +1 -1
  245. package/dist/actions/create-run.d.cts +3 -52
  246. package/dist/actions/create-run.d.cts.map +1 -1
  247. package/dist/actions/create-run.d.mts +3 -52
  248. package/dist/actions/create-run.d.mts.map +1 -1
  249. package/dist/actions/create-run.mjs +1 -0
  250. package/dist/actions/create-run.mjs.map +1 -1
  251. package/dist/actions/create-skill.cjs +1 -0
  252. package/dist/actions/create-skill.cjs.map +1 -1
  253. package/dist/actions/create-skill.d.cts +3 -13
  254. package/dist/actions/create-skill.d.cts.map +1 -1
  255. package/dist/actions/create-skill.d.mts +3 -13
  256. package/dist/actions/create-skill.d.mts.map +1 -1
  257. package/dist/actions/create-skill.mjs +1 -0
  258. package/dist/actions/create-skill.mjs.map +1 -1
  259. package/dist/actions/create-speech.cjs +1 -0
  260. package/dist/actions/create-speech.cjs.map +1 -1
  261. package/dist/actions/create-speech.d.cts +3 -7
  262. package/dist/actions/create-speech.d.cts.map +1 -1
  263. package/dist/actions/create-speech.d.mts +3 -7
  264. package/dist/actions/create-speech.d.mts.map +1 -1
  265. package/dist/actions/create-speech.mjs +1 -0
  266. package/dist/actions/create-speech.mjs.map +1 -1
  267. package/dist/actions/create-thread-and-run.cjs +1 -0
  268. package/dist/actions/create-thread-and-run.cjs.map +1 -1
  269. package/dist/actions/create-thread-and-run.d.cts +3 -78
  270. package/dist/actions/create-thread-and-run.d.cts.map +1 -1
  271. package/dist/actions/create-thread-and-run.d.mts +3 -78
  272. package/dist/actions/create-thread-and-run.d.mts.map +1 -1
  273. package/dist/actions/create-thread-and-run.mjs +1 -0
  274. package/dist/actions/create-thread-and-run.mjs.map +1 -1
  275. package/dist/actions/create-thread.cjs +1 -0
  276. package/dist/actions/create-thread.cjs.map +1 -1
  277. package/dist/actions/create-thread.d.cts +3 -8
  278. package/dist/actions/create-thread.d.cts.map +1 -1
  279. package/dist/actions/create-thread.d.mts +3 -8
  280. package/dist/actions/create-thread.d.mts.map +1 -1
  281. package/dist/actions/create-thread.mjs +1 -0
  282. package/dist/actions/create-thread.mjs.map +1 -1
  283. package/dist/actions/create-upload.cjs +1 -0
  284. package/dist/actions/create-upload.cjs.map +1 -1
  285. package/dist/actions/create-upload.d.cts +3 -10
  286. package/dist/actions/create-upload.d.cts.map +1 -1
  287. package/dist/actions/create-upload.d.mts +3 -10
  288. package/dist/actions/create-upload.d.mts.map +1 -1
  289. package/dist/actions/create-upload.mjs +1 -0
  290. package/dist/actions/create-upload.mjs.map +1 -1
  291. package/dist/actions/create-vector-store-file-batch.cjs +1 -0
  292. package/dist/actions/create-vector-store-file-batch.cjs.map +1 -1
  293. package/dist/actions/create-vector-store-file-batch.d.cts +3 -34
  294. package/dist/actions/create-vector-store-file-batch.d.cts.map +1 -1
  295. package/dist/actions/create-vector-store-file-batch.d.mts +3 -34
  296. package/dist/actions/create-vector-store-file-batch.d.mts.map +1 -1
  297. package/dist/actions/create-vector-store-file-batch.mjs +1 -0
  298. package/dist/actions/create-vector-store-file-batch.mjs.map +1 -1
  299. package/dist/actions/create-vector-store-file.cjs +1 -0
  300. package/dist/actions/create-vector-store-file.cjs.map +1 -1
  301. package/dist/actions/create-vector-store-file.d.cts +3 -16
  302. package/dist/actions/create-vector-store-file.d.cts.map +1 -1
  303. package/dist/actions/create-vector-store-file.d.mts +3 -16
  304. package/dist/actions/create-vector-store-file.d.mts.map +1 -1
  305. package/dist/actions/create-vector-store-file.mjs +1 -0
  306. package/dist/actions/create-vector-store-file.mjs.map +1 -1
  307. package/dist/actions/create-vector-store.cjs +1 -0
  308. package/dist/actions/create-vector-store.cjs.map +1 -1
  309. package/dist/actions/create-vector-store.d.cts +3 -21
  310. package/dist/actions/create-vector-store.d.cts.map +1 -1
  311. package/dist/actions/create-vector-store.d.mts +3 -21
  312. package/dist/actions/create-vector-store.d.mts.map +1 -1
  313. package/dist/actions/create-vector-store.mjs +1 -0
  314. package/dist/actions/create-vector-store.mjs.map +1 -1
  315. package/dist/actions/create-video-remix.cjs +1 -0
  316. package/dist/actions/create-video-remix.cjs.map +1 -1
  317. package/dist/actions/create-video-remix.d.cts +3 -4
  318. package/dist/actions/create-video-remix.d.cts.map +1 -1
  319. package/dist/actions/create-video-remix.d.mts +3 -4
  320. package/dist/actions/create-video-remix.d.mts.map +1 -1
  321. package/dist/actions/create-video-remix.mjs +1 -0
  322. package/dist/actions/create-video-remix.mjs.map +1 -1
  323. package/dist/actions/create-video.cjs +1 -0
  324. package/dist/actions/create-video.cjs.map +1 -1
  325. package/dist/actions/create-video.d.cts +3 -6
  326. package/dist/actions/create-video.d.cts.map +1 -1
  327. package/dist/actions/create-video.d.mts +3 -6
  328. package/dist/actions/create-video.d.mts.map +1 -1
  329. package/dist/actions/create-video.mjs +1 -0
  330. package/dist/actions/create-video.mjs.map +1 -1
  331. package/dist/actions/delete-assistant.cjs +1 -0
  332. package/dist/actions/delete-assistant.cjs.map +1 -1
  333. package/dist/actions/delete-assistant.d.cts +3 -3
  334. package/dist/actions/delete-assistant.d.cts.map +1 -1
  335. package/dist/actions/delete-assistant.d.mts +3 -3
  336. package/dist/actions/delete-assistant.d.mts.map +1 -1
  337. package/dist/actions/delete-assistant.mjs +1 -0
  338. package/dist/actions/delete-assistant.mjs.map +1 -1
  339. package/dist/actions/delete-chat-completion.cjs +1 -0
  340. package/dist/actions/delete-chat-completion.cjs.map +1 -1
  341. package/dist/actions/delete-chat-completion.d.cts +3 -3
  342. package/dist/actions/delete-chat-completion.d.cts.map +1 -1
  343. package/dist/actions/delete-chat-completion.d.mts +3 -3
  344. package/dist/actions/delete-chat-completion.d.mts.map +1 -1
  345. package/dist/actions/delete-chat-completion.mjs +1 -0
  346. package/dist/actions/delete-chat-completion.mjs.map +1 -1
  347. package/dist/actions/delete-container-file.cjs +1 -0
  348. package/dist/actions/delete-container-file.cjs.map +1 -1
  349. package/dist/actions/delete-container-file.d.cts +3 -4
  350. package/dist/actions/delete-container-file.d.cts.map +1 -1
  351. package/dist/actions/delete-container-file.d.mts +3 -4
  352. package/dist/actions/delete-container-file.d.mts.map +1 -1
  353. package/dist/actions/delete-container-file.mjs +1 -0
  354. package/dist/actions/delete-container-file.mjs.map +1 -1
  355. package/dist/actions/delete-container.cjs +1 -0
  356. package/dist/actions/delete-container.cjs.map +1 -1
  357. package/dist/actions/delete-container.d.cts +3 -3
  358. package/dist/actions/delete-container.d.cts.map +1 -1
  359. package/dist/actions/delete-container.d.mts +3 -3
  360. package/dist/actions/delete-container.d.mts.map +1 -1
  361. package/dist/actions/delete-container.mjs +1 -0
  362. package/dist/actions/delete-container.mjs.map +1 -1
  363. package/dist/actions/delete-conversation-item.cjs +1 -0
  364. package/dist/actions/delete-conversation-item.cjs.map +1 -1
  365. package/dist/actions/delete-conversation-item.d.cts +3 -4
  366. package/dist/actions/delete-conversation-item.d.cts.map +1 -1
  367. package/dist/actions/delete-conversation-item.d.mts +3 -4
  368. package/dist/actions/delete-conversation-item.d.mts.map +1 -1
  369. package/dist/actions/delete-conversation-item.mjs +1 -0
  370. package/dist/actions/delete-conversation-item.mjs.map +1 -1
  371. package/dist/actions/delete-conversation.cjs +1 -0
  372. package/dist/actions/delete-conversation.cjs.map +1 -1
  373. package/dist/actions/delete-conversation.d.cts +3 -3
  374. package/dist/actions/delete-conversation.d.cts.map +1 -1
  375. package/dist/actions/delete-conversation.d.mts +3 -3
  376. package/dist/actions/delete-conversation.d.mts.map +1 -1
  377. package/dist/actions/delete-conversation.mjs +1 -0
  378. package/dist/actions/delete-conversation.mjs.map +1 -1
  379. package/dist/actions/delete-eval-run.cjs +1 -0
  380. package/dist/actions/delete-eval-run.cjs.map +1 -1
  381. package/dist/actions/delete-eval-run.d.cts +3 -4
  382. package/dist/actions/delete-eval-run.d.cts.map +1 -1
  383. package/dist/actions/delete-eval-run.d.mts +3 -4
  384. package/dist/actions/delete-eval-run.d.mts.map +1 -1
  385. package/dist/actions/delete-eval-run.mjs +1 -0
  386. package/dist/actions/delete-eval-run.mjs.map +1 -1
  387. package/dist/actions/delete-eval.cjs +1 -0
  388. package/dist/actions/delete-eval.cjs.map +1 -1
  389. package/dist/actions/delete-eval.d.cts +3 -3
  390. package/dist/actions/delete-eval.d.cts.map +1 -1
  391. package/dist/actions/delete-eval.d.mts +3 -3
  392. package/dist/actions/delete-eval.d.mts.map +1 -1
  393. package/dist/actions/delete-eval.mjs +1 -0
  394. package/dist/actions/delete-eval.mjs.map +1 -1
  395. package/dist/actions/delete-file.cjs +1 -0
  396. package/dist/actions/delete-file.cjs.map +1 -1
  397. package/dist/actions/delete-file.d.cts +3 -3
  398. package/dist/actions/delete-file.d.cts.map +1 -1
  399. package/dist/actions/delete-file.d.mts +3 -3
  400. package/dist/actions/delete-file.d.mts.map +1 -1
  401. package/dist/actions/delete-file.mjs +1 -0
  402. package/dist/actions/delete-file.mjs.map +1 -1
  403. package/dist/actions/delete-message.cjs +1 -0
  404. package/dist/actions/delete-message.cjs.map +1 -1
  405. package/dist/actions/delete-message.d.cts +3 -4
  406. package/dist/actions/delete-message.d.cts.map +1 -1
  407. package/dist/actions/delete-message.d.mts +3 -4
  408. package/dist/actions/delete-message.d.mts.map +1 -1
  409. package/dist/actions/delete-message.mjs +1 -0
  410. package/dist/actions/delete-message.mjs.map +1 -1
  411. package/dist/actions/delete-response.cjs +1 -0
  412. package/dist/actions/delete-response.cjs.map +1 -1
  413. package/dist/actions/delete-response.d.cts +3 -3
  414. package/dist/actions/delete-response.d.cts.map +1 -1
  415. package/dist/actions/delete-response.d.mts +3 -3
  416. package/dist/actions/delete-response.d.mts.map +1 -1
  417. package/dist/actions/delete-response.mjs +1 -0
  418. package/dist/actions/delete-response.mjs.map +1 -1
  419. package/dist/actions/delete-skill.cjs +1 -0
  420. package/dist/actions/delete-skill.cjs.map +1 -1
  421. package/dist/actions/delete-skill.d.cts +3 -3
  422. package/dist/actions/delete-skill.d.cts.map +1 -1
  423. package/dist/actions/delete-skill.d.mts +3 -3
  424. package/dist/actions/delete-skill.d.mts.map +1 -1
  425. package/dist/actions/delete-skill.mjs +1 -0
  426. package/dist/actions/delete-skill.mjs.map +1 -1
  427. package/dist/actions/delete-thread.cjs +1 -0
  428. package/dist/actions/delete-thread.cjs.map +1 -1
  429. package/dist/actions/delete-thread.d.cts +3 -3
  430. package/dist/actions/delete-thread.d.cts.map +1 -1
  431. package/dist/actions/delete-thread.d.mts +3 -3
  432. package/dist/actions/delete-thread.d.mts.map +1 -1
  433. package/dist/actions/delete-thread.mjs +1 -0
  434. package/dist/actions/delete-thread.mjs.map +1 -1
  435. package/dist/actions/delete-vector-store-file.cjs +1 -0
  436. package/dist/actions/delete-vector-store-file.cjs.map +1 -1
  437. package/dist/actions/delete-vector-store-file.d.cts +3 -4
  438. package/dist/actions/delete-vector-store-file.d.cts.map +1 -1
  439. package/dist/actions/delete-vector-store-file.d.mts +3 -4
  440. package/dist/actions/delete-vector-store-file.d.mts.map +1 -1
  441. package/dist/actions/delete-vector-store-file.mjs +1 -0
  442. package/dist/actions/delete-vector-store-file.mjs.map +1 -1
  443. package/dist/actions/delete-vector-store.cjs +1 -0
  444. package/dist/actions/delete-vector-store.cjs.map +1 -1
  445. package/dist/actions/delete-vector-store.d.cts +3 -3
  446. package/dist/actions/delete-vector-store.d.cts.map +1 -1
  447. package/dist/actions/delete-vector-store.d.mts +3 -3
  448. package/dist/actions/delete-vector-store.d.mts.map +1 -1
  449. package/dist/actions/delete-vector-store.mjs +1 -0
  450. package/dist/actions/delete-vector-store.mjs.map +1 -1
  451. package/dist/actions/delete-video.cjs +1 -0
  452. package/dist/actions/delete-video.cjs.map +1 -1
  453. package/dist/actions/delete-video.d.cts +3 -3
  454. package/dist/actions/delete-video.d.cts.map +1 -1
  455. package/dist/actions/delete-video.d.mts +3 -3
  456. package/dist/actions/delete-video.d.mts.map +1 -1
  457. package/dist/actions/delete-video.mjs +1 -0
  458. package/dist/actions/delete-video.mjs.map +1 -1
  459. package/dist/actions/download-file.cjs +1 -0
  460. package/dist/actions/download-file.cjs.map +1 -1
  461. package/dist/actions/download-file.d.cts +3 -3
  462. package/dist/actions/download-file.d.cts.map +1 -1
  463. package/dist/actions/download-file.d.mts +3 -3
  464. package/dist/actions/download-file.d.mts.map +1 -1
  465. package/dist/actions/download-file.mjs +1 -0
  466. package/dist/actions/download-file.mjs.map +1 -1
  467. package/dist/actions/download-video.cjs +1 -0
  468. package/dist/actions/download-video.cjs.map +1 -1
  469. package/dist/actions/download-video.d.cts +3 -4
  470. package/dist/actions/download-video.d.cts.map +1 -1
  471. package/dist/actions/download-video.d.mts +3 -4
  472. package/dist/actions/download-video.d.mts.map +1 -1
  473. package/dist/actions/download-video.mjs +1 -0
  474. package/dist/actions/download-video.mjs.map +1 -1
  475. package/dist/actions/get-chat-completion-messages.cjs +1 -0
  476. package/dist/actions/get-chat-completion-messages.cjs.map +1 -1
  477. package/dist/actions/get-chat-completion-messages.d.cts +3 -6
  478. package/dist/actions/get-chat-completion-messages.d.cts.map +1 -1
  479. package/dist/actions/get-chat-completion-messages.d.mts +3 -6
  480. package/dist/actions/get-chat-completion-messages.d.mts.map +1 -1
  481. package/dist/actions/get-chat-completion-messages.mjs +1 -0
  482. package/dist/actions/get-chat-completion-messages.mjs.map +1 -1
  483. package/dist/actions/get-chat-completion.cjs +1 -0
  484. package/dist/actions/get-chat-completion.cjs.map +1 -1
  485. package/dist/actions/get-chat-completion.d.cts +3 -3
  486. package/dist/actions/get-chat-completion.d.cts.map +1 -1
  487. package/dist/actions/get-chat-completion.d.mts +3 -3
  488. package/dist/actions/get-chat-completion.d.mts.map +1 -1
  489. package/dist/actions/get-chat-completion.mjs +1 -0
  490. package/dist/actions/get-chat-completion.mjs.map +1 -1
  491. package/dist/actions/get-chatkit-thread.cjs +1 -0
  492. package/dist/actions/get-chatkit-thread.cjs.map +1 -1
  493. package/dist/actions/get-chatkit-thread.d.cts +3 -3
  494. package/dist/actions/get-chatkit-thread.d.cts.map +1 -1
  495. package/dist/actions/get-chatkit-thread.d.mts +3 -3
  496. package/dist/actions/get-chatkit-thread.d.mts.map +1 -1
  497. package/dist/actions/get-chatkit-thread.mjs +1 -0
  498. package/dist/actions/get-chatkit-thread.mjs.map +1 -1
  499. package/dist/actions/get-conversation-item.cjs +1 -0
  500. package/dist/actions/get-conversation-item.cjs.map +1 -1
  501. package/dist/actions/get-conversation-item.d.cts +3 -5
  502. package/dist/actions/get-conversation-item.d.cts.map +1 -1
  503. package/dist/actions/get-conversation-item.d.mts +3 -5
  504. package/dist/actions/get-conversation-item.d.mts.map +1 -1
  505. package/dist/actions/get-conversation-item.mjs +1 -0
  506. package/dist/actions/get-conversation-item.mjs.map +1 -1
  507. package/dist/actions/get-eval-run-output-item.cjs +1 -0
  508. package/dist/actions/get-eval-run-output-item.cjs.map +1 -1
  509. package/dist/actions/get-eval-run-output-item.d.cts +3 -5
  510. package/dist/actions/get-eval-run-output-item.d.cts.map +1 -1
  511. package/dist/actions/get-eval-run-output-item.d.mts +3 -5
  512. package/dist/actions/get-eval-run-output-item.d.mts.map +1 -1
  513. package/dist/actions/get-eval-run-output-item.mjs +1 -0
  514. package/dist/actions/get-eval-run-output-item.mjs.map +1 -1
  515. package/dist/actions/get-eval-run-output-items.cjs +1 -0
  516. package/dist/actions/get-eval-run-output-items.cjs.map +1 -1
  517. package/dist/actions/get-eval-run-output-items.d.cts +3 -8
  518. package/dist/actions/get-eval-run-output-items.d.cts.map +1 -1
  519. package/dist/actions/get-eval-run-output-items.d.mts +3 -8
  520. package/dist/actions/get-eval-run-output-items.d.mts.map +1 -1
  521. package/dist/actions/get-eval-run-output-items.mjs +1 -0
  522. package/dist/actions/get-eval-run-output-items.mjs.map +1 -1
  523. package/dist/actions/get-eval-run.cjs +1 -0
  524. package/dist/actions/get-eval-run.cjs.map +1 -1
  525. package/dist/actions/get-eval-run.d.cts +3 -4
  526. package/dist/actions/get-eval-run.d.cts.map +1 -1
  527. package/dist/actions/get-eval-run.d.mts +3 -4
  528. package/dist/actions/get-eval-run.d.mts.map +1 -1
  529. package/dist/actions/get-eval-run.mjs +1 -0
  530. package/dist/actions/get-eval-run.mjs.map +1 -1
  531. package/dist/actions/get-eval-runs.cjs +1 -0
  532. package/dist/actions/get-eval-runs.cjs.map +1 -1
  533. package/dist/actions/get-eval-runs.d.cts +3 -7
  534. package/dist/actions/get-eval-runs.d.cts.map +1 -1
  535. package/dist/actions/get-eval-runs.d.mts +3 -7
  536. package/dist/actions/get-eval-runs.d.mts.map +1 -1
  537. package/dist/actions/get-eval-runs.mjs +1 -0
  538. package/dist/actions/get-eval-runs.mjs.map +1 -1
  539. package/dist/actions/get-eval.cjs +1 -0
  540. package/dist/actions/get-eval.cjs.map +1 -1
  541. package/dist/actions/get-eval.d.cts +3 -3
  542. package/dist/actions/get-eval.d.cts.map +1 -1
  543. package/dist/actions/get-eval.d.mts +3 -3
  544. package/dist/actions/get-eval.d.mts.map +1 -1
  545. package/dist/actions/get-eval.mjs +1 -0
  546. package/dist/actions/get-eval.mjs.map +1 -1
  547. package/dist/actions/get-input-token-counts.cjs +1 -0
  548. package/dist/actions/get-input-token-counts.cjs.map +1 -1
  549. package/dist/actions/get-input-token-counts.d.cts +4 -21
  550. package/dist/actions/get-input-token-counts.d.cts.map +1 -1
  551. package/dist/actions/get-input-token-counts.d.mts +4 -21
  552. package/dist/actions/get-input-token-counts.d.mts.map +1 -1
  553. package/dist/actions/get-input-token-counts.mjs +1 -0
  554. package/dist/actions/get-input-token-counts.mjs.map +1 -1
  555. package/dist/actions/get-message.cjs +1 -0
  556. package/dist/actions/get-message.cjs.map +1 -1
  557. package/dist/actions/get-message.d.cts +3 -4
  558. package/dist/actions/get-message.d.cts.map +1 -1
  559. package/dist/actions/get-message.d.mts +3 -4
  560. package/dist/actions/get-message.d.mts.map +1 -1
  561. package/dist/actions/get-message.mjs +1 -0
  562. package/dist/actions/get-message.mjs.map +1 -1
  563. package/dist/actions/get-response.cjs +1 -0
  564. package/dist/actions/get-response.cjs.map +1 -1
  565. package/dist/actions/get-response.d.cts +3 -7
  566. package/dist/actions/get-response.d.cts.map +1 -1
  567. package/dist/actions/get-response.d.mts +3 -7
  568. package/dist/actions/get-response.d.mts.map +1 -1
  569. package/dist/actions/get-response.mjs +1 -0
  570. package/dist/actions/get-response.mjs.map +1 -1
  571. package/dist/actions/get-run-step.cjs +1 -0
  572. package/dist/actions/get-run-step.cjs.map +1 -1
  573. package/dist/actions/get-run-step.d.cts +3 -6
  574. package/dist/actions/get-run-step.d.cts.map +1 -1
  575. package/dist/actions/get-run-step.d.mts +3 -6
  576. package/dist/actions/get-run-step.d.mts.map +1 -1
  577. package/dist/actions/get-run-step.mjs +1 -0
  578. package/dist/actions/get-run-step.mjs.map +1 -1
  579. package/dist/actions/get-vector-store-file-batch.cjs +1 -0
  580. package/dist/actions/get-vector-store-file-batch.cjs.map +1 -1
  581. package/dist/actions/get-vector-store-file-batch.d.cts +3 -4
  582. package/dist/actions/get-vector-store-file-batch.d.cts.map +1 -1
  583. package/dist/actions/get-vector-store-file-batch.d.mts +3 -4
  584. package/dist/actions/get-vector-store-file-batch.d.mts.map +1 -1
  585. package/dist/actions/get-vector-store-file-batch.mjs +1 -0
  586. package/dist/actions/get-vector-store-file-batch.mjs.map +1 -1
  587. package/dist/actions/get-vector-store-file.cjs +1 -0
  588. package/dist/actions/get-vector-store-file.cjs.map +1 -1
  589. package/dist/actions/get-vector-store-file.d.cts +3 -4
  590. package/dist/actions/get-vector-store-file.d.cts.map +1 -1
  591. package/dist/actions/get-vector-store-file.d.mts +3 -4
  592. package/dist/actions/get-vector-store-file.d.mts.map +1 -1
  593. package/dist/actions/get-vector-store-file.mjs +1 -0
  594. package/dist/actions/get-vector-store-file.mjs.map +1 -1
  595. package/dist/actions/get-vector-store.cjs +1 -0
  596. package/dist/actions/get-vector-store.cjs.map +1 -1
  597. package/dist/actions/get-vector-store.d.cts +3 -3
  598. package/dist/actions/get-vector-store.d.cts.map +1 -1
  599. package/dist/actions/get-vector-store.d.mts +3 -3
  600. package/dist/actions/get-vector-store.d.mts.map +1 -1
  601. package/dist/actions/get-vector-store.mjs +1 -0
  602. package/dist/actions/get-vector-store.mjs.map +1 -1
  603. package/dist/actions/get-video.cjs +1 -0
  604. package/dist/actions/get-video.cjs.map +1 -1
  605. package/dist/actions/get-video.d.cts +3 -3
  606. package/dist/actions/get-video.d.cts.map +1 -1
  607. package/dist/actions/get-video.d.mts +3 -3
  608. package/dist/actions/get-video.d.mts.map +1 -1
  609. package/dist/actions/get-video.mjs +1 -0
  610. package/dist/actions/get-video.mjs.map +1 -1
  611. package/dist/actions/list-assistants.cjs +1 -0
  612. package/dist/actions/list-assistants.cjs.map +1 -1
  613. package/dist/actions/list-assistants.d.cts +3 -6
  614. package/dist/actions/list-assistants.d.cts.map +1 -1
  615. package/dist/actions/list-assistants.d.mts +3 -6
  616. package/dist/actions/list-assistants.d.mts.map +1 -1
  617. package/dist/actions/list-assistants.mjs +1 -0
  618. package/dist/actions/list-assistants.mjs.map +1 -1
  619. package/dist/actions/list-batches.cjs +1 -0
  620. package/dist/actions/list-batches.cjs.map +1 -1
  621. package/dist/actions/list-batches.d.cts +3 -4
  622. package/dist/actions/list-batches.d.cts.map +1 -1
  623. package/dist/actions/list-batches.d.mts +3 -4
  624. package/dist/actions/list-batches.d.mts.map +1 -1
  625. package/dist/actions/list-batches.mjs +1 -0
  626. package/dist/actions/list-batches.mjs.map +1 -1
  627. package/dist/actions/list-chat-completions.cjs +1 -0
  628. package/dist/actions/list-chat-completions.cjs.map +1 -1
  629. package/dist/actions/list-chat-completions.d.cts +3 -7
  630. package/dist/actions/list-chat-completions.d.cts.map +1 -1
  631. package/dist/actions/list-chat-completions.d.mts +3 -7
  632. package/dist/actions/list-chat-completions.d.mts.map +1 -1
  633. package/dist/actions/list-chat-completions.mjs +1 -0
  634. package/dist/actions/list-chat-completions.mjs.map +1 -1
  635. package/dist/actions/list-chatkit-thread-items.cjs +1 -0
  636. package/dist/actions/list-chatkit-thread-items.cjs.map +1 -1
  637. package/dist/actions/list-chatkit-thread-items.d.cts +3 -7
  638. package/dist/actions/list-chatkit-thread-items.d.cts.map +1 -1
  639. package/dist/actions/list-chatkit-thread-items.d.mts +3 -7
  640. package/dist/actions/list-chatkit-thread-items.d.mts.map +1 -1
  641. package/dist/actions/list-chatkit-thread-items.mjs +1 -0
  642. package/dist/actions/list-chatkit-thread-items.mjs.map +1 -1
  643. package/dist/actions/list-container-files.cjs +1 -0
  644. package/dist/actions/list-container-files.cjs.map +1 -1
  645. package/dist/actions/list-container-files.d.cts +3 -6
  646. package/dist/actions/list-container-files.d.cts.map +1 -1
  647. package/dist/actions/list-container-files.d.mts +3 -6
  648. package/dist/actions/list-container-files.d.mts.map +1 -1
  649. package/dist/actions/list-container-files.mjs +1 -0
  650. package/dist/actions/list-container-files.mjs.map +1 -1
  651. package/dist/actions/list-containers.cjs +1 -0
  652. package/dist/actions/list-containers.cjs.map +1 -1
  653. package/dist/actions/list-containers.d.cts +3 -6
  654. package/dist/actions/list-containers.d.cts.map +1 -1
  655. package/dist/actions/list-containers.d.mts +3 -6
  656. package/dist/actions/list-containers.d.mts.map +1 -1
  657. package/dist/actions/list-containers.mjs +1 -0
  658. package/dist/actions/list-containers.mjs.map +1 -1
  659. package/dist/actions/list-conversation-items.cjs +1 -0
  660. package/dist/actions/list-conversation-items.cjs.map +1 -1
  661. package/dist/actions/list-conversation-items.d.cts +3 -7
  662. package/dist/actions/list-conversation-items.d.cts.map +1 -1
  663. package/dist/actions/list-conversation-items.d.mts +3 -7
  664. package/dist/actions/list-conversation-items.d.mts.map +1 -1
  665. package/dist/actions/list-conversation-items.mjs +1 -0
  666. package/dist/actions/list-conversation-items.mjs.map +1 -1
  667. package/dist/actions/list-engines.cjs +1 -0
  668. package/dist/actions/list-engines.cjs.map +1 -1
  669. package/dist/actions/list-engines.d.cts +3 -1
  670. package/dist/actions/list-engines.d.cts.map +1 -1
  671. package/dist/actions/list-engines.d.mts +3 -1
  672. package/dist/actions/list-engines.d.mts.map +1 -1
  673. package/dist/actions/list-engines.mjs +1 -0
  674. package/dist/actions/list-engines.mjs.map +1 -1
  675. package/dist/actions/list-evals.cjs +1 -0
  676. package/dist/actions/list-evals.cjs.map +1 -1
  677. package/dist/actions/list-evals.d.cts +3 -6
  678. package/dist/actions/list-evals.d.cts.map +1 -1
  679. package/dist/actions/list-evals.d.mts +3 -6
  680. package/dist/actions/list-evals.d.mts.map +1 -1
  681. package/dist/actions/list-evals.mjs +1 -0
  682. package/dist/actions/list-evals.mjs.map +1 -1
  683. package/dist/actions/list-files-in-vector-store-batch.cjs +1 -0
  684. package/dist/actions/list-files-in-vector-store-batch.cjs.map +1 -1
  685. package/dist/actions/list-files-in-vector-store-batch.d.cts +3 -9
  686. package/dist/actions/list-files-in-vector-store-batch.d.cts.map +1 -1
  687. package/dist/actions/list-files-in-vector-store-batch.d.mts +3 -9
  688. package/dist/actions/list-files-in-vector-store-batch.d.mts.map +1 -1
  689. package/dist/actions/list-files-in-vector-store-batch.mjs +1 -0
  690. package/dist/actions/list-files-in-vector-store-batch.mjs.map +1 -1
  691. package/dist/actions/list-files.cjs +1 -0
  692. package/dist/actions/list-files.cjs.map +1 -1
  693. package/dist/actions/list-files.d.cts +3 -5
  694. package/dist/actions/list-files.d.cts.map +1 -1
  695. package/dist/actions/list-files.d.mts +3 -5
  696. package/dist/actions/list-files.d.mts.map +1 -1
  697. package/dist/actions/list-files.mjs +1 -0
  698. package/dist/actions/list-files.mjs.map +1 -1
  699. package/dist/actions/list-fine-tunes.cjs +1 -0
  700. package/dist/actions/list-fine-tunes.cjs.map +1 -1
  701. package/dist/actions/list-fine-tunes.d.cts +3 -4
  702. package/dist/actions/list-fine-tunes.d.cts.map +1 -1
  703. package/dist/actions/list-fine-tunes.d.mts +3 -4
  704. package/dist/actions/list-fine-tunes.d.mts.map +1 -1
  705. package/dist/actions/list-fine-tunes.mjs +1 -0
  706. package/dist/actions/list-fine-tunes.mjs.map +1 -1
  707. package/dist/actions/list-fine-tuning-events.cjs +1 -0
  708. package/dist/actions/list-fine-tuning-events.cjs.map +1 -1
  709. package/dist/actions/list-fine-tuning-events.d.cts +3 -5
  710. package/dist/actions/list-fine-tuning-events.d.cts.map +1 -1
  711. package/dist/actions/list-fine-tuning-events.d.mts +3 -5
  712. package/dist/actions/list-fine-tuning-events.d.mts.map +1 -1
  713. package/dist/actions/list-fine-tuning-events.mjs +1 -0
  714. package/dist/actions/list-fine-tuning-events.mjs.map +1 -1
  715. package/dist/actions/list-fine-tuning-job-checkpoints.cjs +1 -0
  716. package/dist/actions/list-fine-tuning-job-checkpoints.cjs.map +1 -1
  717. package/dist/actions/list-fine-tuning-job-checkpoints.d.cts +3 -5
  718. package/dist/actions/list-fine-tuning-job-checkpoints.d.cts.map +1 -1
  719. package/dist/actions/list-fine-tuning-job-checkpoints.d.mts +3 -5
  720. package/dist/actions/list-fine-tuning-job-checkpoints.d.mts.map +1 -1
  721. package/dist/actions/list-fine-tuning-job-checkpoints.mjs +1 -0
  722. package/dist/actions/list-fine-tuning-job-checkpoints.mjs.map +1 -1
  723. package/dist/actions/list-input-items.cjs +1 -0
  724. package/dist/actions/list-input-items.cjs.map +1 -1
  725. package/dist/actions/list-input-items.d.cts +3 -7
  726. package/dist/actions/list-input-items.d.cts.map +1 -1
  727. package/dist/actions/list-input-items.d.mts +3 -7
  728. package/dist/actions/list-input-items.d.mts.map +1 -1
  729. package/dist/actions/list-input-items.mjs +1 -0
  730. package/dist/actions/list-input-items.mjs.map +1 -1
  731. package/dist/actions/list-messages.cjs +1 -0
  732. package/dist/actions/list-messages.cjs.map +1 -1
  733. package/dist/actions/list-messages.d.cts +3 -8
  734. package/dist/actions/list-messages.d.cts.map +1 -1
  735. package/dist/actions/list-messages.d.mts +3 -8
  736. package/dist/actions/list-messages.d.mts.map +1 -1
  737. package/dist/actions/list-messages.mjs +1 -0
  738. package/dist/actions/list-messages.mjs.map +1 -1
  739. package/dist/actions/list-models.cjs +1 -0
  740. package/dist/actions/list-models.cjs.map +1 -1
  741. package/dist/actions/list-models.d.cts +3 -1
  742. package/dist/actions/list-models.d.cts.map +1 -1
  743. package/dist/actions/list-models.d.mts +3 -1
  744. package/dist/actions/list-models.d.mts.map +1 -1
  745. package/dist/actions/list-models.mjs +1 -0
  746. package/dist/actions/list-models.mjs.map +1 -1
  747. package/dist/actions/list-run-steps.cjs +1 -0
  748. package/dist/actions/list-run-steps.cjs.map +1 -1
  749. package/dist/actions/list-run-steps.d.cts +3 -9
  750. package/dist/actions/list-run-steps.d.cts.map +1 -1
  751. package/dist/actions/list-run-steps.d.mts +3 -9
  752. package/dist/actions/list-run-steps.d.mts.map +1 -1
  753. package/dist/actions/list-run-steps.mjs +1 -0
  754. package/dist/actions/list-run-steps.mjs.map +1 -1
  755. package/dist/actions/list-runs.cjs +1 -0
  756. package/dist/actions/list-runs.cjs.map +1 -1
  757. package/dist/actions/list-runs.d.cts +3 -7
  758. package/dist/actions/list-runs.d.cts.map +1 -1
  759. package/dist/actions/list-runs.d.mts +3 -7
  760. package/dist/actions/list-runs.d.mts.map +1 -1
  761. package/dist/actions/list-runs.mjs +1 -0
  762. package/dist/actions/list-runs.mjs.map +1 -1
  763. package/dist/actions/list-skills.cjs +1 -0
  764. package/dist/actions/list-skills.cjs.map +1 -1
  765. package/dist/actions/list-skills.d.cts +3 -5
  766. package/dist/actions/list-skills.d.cts.map +1 -1
  767. package/dist/actions/list-skills.d.mts +3 -5
  768. package/dist/actions/list-skills.d.mts.map +1 -1
  769. package/dist/actions/list-skills.mjs +1 -0
  770. package/dist/actions/list-skills.mjs.map +1 -1
  771. package/dist/actions/list-threads.cjs +1 -0
  772. package/dist/actions/list-threads.cjs.map +1 -1
  773. package/dist/actions/list-threads.d.cts +3 -7
  774. package/dist/actions/list-threads.d.cts.map +1 -1
  775. package/dist/actions/list-threads.d.mts +3 -7
  776. package/dist/actions/list-threads.d.mts.map +1 -1
  777. package/dist/actions/list-threads.mjs +1 -0
  778. package/dist/actions/list-threads.mjs.map +1 -1
  779. package/dist/actions/list-vector-store-files.cjs +1 -0
  780. package/dist/actions/list-vector-store-files.cjs.map +1 -1
  781. package/dist/actions/list-vector-store-files.d.cts +3 -8
  782. package/dist/actions/list-vector-store-files.d.cts.map +1 -1
  783. package/dist/actions/list-vector-store-files.d.mts +3 -8
  784. package/dist/actions/list-vector-store-files.d.mts.map +1 -1
  785. package/dist/actions/list-vector-store-files.mjs +1 -0
  786. package/dist/actions/list-vector-store-files.mjs.map +1 -1
  787. package/dist/actions/list-vector-stores.cjs +1 -0
  788. package/dist/actions/list-vector-stores.cjs.map +1 -1
  789. package/dist/actions/list-vector-stores.d.cts +3 -6
  790. package/dist/actions/list-vector-stores.d.cts.map +1 -1
  791. package/dist/actions/list-vector-stores.d.mts +3 -6
  792. package/dist/actions/list-vector-stores.d.mts.map +1 -1
  793. package/dist/actions/list-vector-stores.mjs +1 -0
  794. package/dist/actions/list-vector-stores.mjs.map +1 -1
  795. package/dist/actions/list-videos.cjs +1 -0
  796. package/dist/actions/list-videos.cjs.map +1 -1
  797. package/dist/actions/list-videos.d.cts +3 -5
  798. package/dist/actions/list-videos.d.cts.map +1 -1
  799. package/dist/actions/list-videos.d.mts +3 -5
  800. package/dist/actions/list-videos.d.mts.map +1 -1
  801. package/dist/actions/list-videos.mjs +1 -0
  802. package/dist/actions/list-videos.mjs.map +1 -1
  803. package/dist/actions/modify-assistant.cjs +1 -0
  804. package/dist/actions/modify-assistant.cjs.map +1 -1
  805. package/dist/actions/modify-assistant.d.cts +3 -20
  806. package/dist/actions/modify-assistant.d.cts.map +1 -1
  807. package/dist/actions/modify-assistant.d.mts +3 -20
  808. package/dist/actions/modify-assistant.d.mts.map +1 -1
  809. package/dist/actions/modify-assistant.mjs +1 -0
  810. package/dist/actions/modify-assistant.mjs.map +1 -1
  811. package/dist/actions/modify-message.cjs +1 -0
  812. package/dist/actions/modify-message.cjs.map +1 -1
  813. package/dist/actions/modify-message.d.cts +3 -5
  814. package/dist/actions/modify-message.d.cts.map +1 -1
  815. package/dist/actions/modify-message.d.mts +3 -5
  816. package/dist/actions/modify-message.d.mts.map +1 -1
  817. package/dist/actions/modify-message.mjs +1 -0
  818. package/dist/actions/modify-message.mjs.map +1 -1
  819. package/dist/actions/modify-run.cjs +1 -0
  820. package/dist/actions/modify-run.cjs.map +1 -1
  821. package/dist/actions/modify-run.d.cts +3 -5
  822. package/dist/actions/modify-run.d.cts.map +1 -1
  823. package/dist/actions/modify-run.d.mts +3 -5
  824. package/dist/actions/modify-run.d.mts.map +1 -1
  825. package/dist/actions/modify-run.mjs +1 -0
  826. package/dist/actions/modify-run.mjs.map +1 -1
  827. package/dist/actions/modify-thread.cjs +1 -0
  828. package/dist/actions/modify-thread.cjs.map +1 -1
  829. package/dist/actions/modify-thread.d.cts +3 -4
  830. package/dist/actions/modify-thread.d.cts.map +1 -1
  831. package/dist/actions/modify-thread.d.mts +3 -4
  832. package/dist/actions/modify-thread.d.mts.map +1 -1
  833. package/dist/actions/modify-thread.mjs +1 -0
  834. package/dist/actions/modify-thread.mjs.map +1 -1
  835. package/dist/actions/modify-vector-store.cjs +1 -0
  836. package/dist/actions/modify-vector-store.cjs.map +1 -1
  837. package/dist/actions/modify-vector-store.d.cts +3 -9
  838. package/dist/actions/modify-vector-store.d.cts.map +1 -1
  839. package/dist/actions/modify-vector-store.d.mts +3 -9
  840. package/dist/actions/modify-vector-store.d.mts.map +1 -1
  841. package/dist/actions/modify-vector-store.mjs +1 -0
  842. package/dist/actions/modify-vector-store.mjs.map +1 -1
  843. package/dist/actions/retrieve-assistant.cjs +1 -0
  844. package/dist/actions/retrieve-assistant.cjs.map +1 -1
  845. package/dist/actions/retrieve-assistant.d.cts +3 -3
  846. package/dist/actions/retrieve-assistant.d.cts.map +1 -1
  847. package/dist/actions/retrieve-assistant.d.mts +3 -3
  848. package/dist/actions/retrieve-assistant.d.mts.map +1 -1
  849. package/dist/actions/retrieve-assistant.mjs +1 -0
  850. package/dist/actions/retrieve-assistant.mjs.map +1 -1
  851. package/dist/actions/retrieve-batch.cjs +1 -0
  852. package/dist/actions/retrieve-batch.cjs.map +1 -1
  853. package/dist/actions/retrieve-batch.d.cts +3 -3
  854. package/dist/actions/retrieve-batch.d.cts.map +1 -1
  855. package/dist/actions/retrieve-batch.d.mts +3 -3
  856. package/dist/actions/retrieve-batch.d.mts.map +1 -1
  857. package/dist/actions/retrieve-batch.mjs +1 -0
  858. package/dist/actions/retrieve-batch.mjs.map +1 -1
  859. package/dist/actions/retrieve-container-file-content.cjs +1 -0
  860. package/dist/actions/retrieve-container-file-content.cjs.map +1 -1
  861. package/dist/actions/retrieve-container-file-content.d.cts +3 -4
  862. package/dist/actions/retrieve-container-file-content.d.cts.map +1 -1
  863. package/dist/actions/retrieve-container-file-content.d.mts +3 -4
  864. package/dist/actions/retrieve-container-file-content.d.mts.map +1 -1
  865. package/dist/actions/retrieve-container-file-content.mjs +1 -0
  866. package/dist/actions/retrieve-container-file-content.mjs.map +1 -1
  867. package/dist/actions/retrieve-container-file.cjs +1 -0
  868. package/dist/actions/retrieve-container-file.cjs.map +1 -1
  869. package/dist/actions/retrieve-container-file.d.cts +3 -4
  870. package/dist/actions/retrieve-container-file.d.cts.map +1 -1
  871. package/dist/actions/retrieve-container-file.d.mts +3 -4
  872. package/dist/actions/retrieve-container-file.d.mts.map +1 -1
  873. package/dist/actions/retrieve-container-file.mjs +1 -0
  874. package/dist/actions/retrieve-container-file.mjs.map +1 -1
  875. package/dist/actions/retrieve-container.cjs +1 -0
  876. package/dist/actions/retrieve-container.cjs.map +1 -1
  877. package/dist/actions/retrieve-container.d.cts +3 -3
  878. package/dist/actions/retrieve-container.d.cts.map +1 -1
  879. package/dist/actions/retrieve-container.d.mts +3 -3
  880. package/dist/actions/retrieve-container.d.mts.map +1 -1
  881. package/dist/actions/retrieve-container.mjs +1 -0
  882. package/dist/actions/retrieve-container.mjs.map +1 -1
  883. package/dist/actions/retrieve-engine.cjs +1 -0
  884. package/dist/actions/retrieve-engine.cjs.map +1 -1
  885. package/dist/actions/retrieve-engine.d.cts +3 -3
  886. package/dist/actions/retrieve-engine.d.cts.map +1 -1
  887. package/dist/actions/retrieve-engine.d.mts +3 -3
  888. package/dist/actions/retrieve-engine.d.mts.map +1 -1
  889. package/dist/actions/retrieve-engine.mjs +1 -0
  890. package/dist/actions/retrieve-engine.mjs.map +1 -1
  891. package/dist/actions/retrieve-file.cjs +1 -0
  892. package/dist/actions/retrieve-file.cjs.map +1 -1
  893. package/dist/actions/retrieve-file.d.cts +3 -3
  894. package/dist/actions/retrieve-file.d.cts.map +1 -1
  895. package/dist/actions/retrieve-file.d.mts +3 -3
  896. package/dist/actions/retrieve-file.d.mts.map +1 -1
  897. package/dist/actions/retrieve-file.mjs +1 -0
  898. package/dist/actions/retrieve-file.mjs.map +1 -1
  899. package/dist/actions/retrieve-fine-tuning-job.cjs +1 -0
  900. package/dist/actions/retrieve-fine-tuning-job.cjs.map +1 -1
  901. package/dist/actions/retrieve-fine-tuning-job.d.cts +3 -3
  902. package/dist/actions/retrieve-fine-tuning-job.d.cts.map +1 -1
  903. package/dist/actions/retrieve-fine-tuning-job.d.mts +3 -3
  904. package/dist/actions/retrieve-fine-tuning-job.d.mts.map +1 -1
  905. package/dist/actions/retrieve-fine-tuning-job.mjs +1 -0
  906. package/dist/actions/retrieve-fine-tuning-job.mjs.map +1 -1
  907. package/dist/actions/retrieve-model.cjs +1 -0
  908. package/dist/actions/retrieve-model.cjs.map +1 -1
  909. package/dist/actions/retrieve-model.d.cts +3 -3
  910. package/dist/actions/retrieve-model.d.cts.map +1 -1
  911. package/dist/actions/retrieve-model.d.mts +3 -3
  912. package/dist/actions/retrieve-model.d.mts.map +1 -1
  913. package/dist/actions/retrieve-model.mjs +1 -0
  914. package/dist/actions/retrieve-model.mjs.map +1 -1
  915. package/dist/actions/retrieve-run.cjs +1 -0
  916. package/dist/actions/retrieve-run.cjs.map +1 -1
  917. package/dist/actions/retrieve-run.d.cts +3 -4
  918. package/dist/actions/retrieve-run.d.cts.map +1 -1
  919. package/dist/actions/retrieve-run.d.mts +3 -4
  920. package/dist/actions/retrieve-run.d.mts.map +1 -1
  921. package/dist/actions/retrieve-run.mjs +1 -0
  922. package/dist/actions/retrieve-run.mjs.map +1 -1
  923. package/dist/actions/retrieve-thread.cjs +1 -0
  924. package/dist/actions/retrieve-thread.cjs.map +1 -1
  925. package/dist/actions/retrieve-thread.d.cts +3 -3
  926. package/dist/actions/retrieve-thread.d.cts.map +1 -1
  927. package/dist/actions/retrieve-thread.d.mts +3 -3
  928. package/dist/actions/retrieve-thread.d.mts.map +1 -1
  929. package/dist/actions/retrieve-thread.mjs +1 -0
  930. package/dist/actions/retrieve-thread.mjs.map +1 -1
  931. package/dist/actions/retrieve-vector-store-file-content.cjs +1 -0
  932. package/dist/actions/retrieve-vector-store-file-content.cjs.map +1 -1
  933. package/dist/actions/retrieve-vector-store-file-content.d.cts +3 -4
  934. package/dist/actions/retrieve-vector-store-file-content.d.cts.map +1 -1
  935. package/dist/actions/retrieve-vector-store-file-content.d.mts +3 -4
  936. package/dist/actions/retrieve-vector-store-file-content.d.mts.map +1 -1
  937. package/dist/actions/retrieve-vector-store-file-content.mjs +1 -0
  938. package/dist/actions/retrieve-vector-store-file-content.mjs.map +1 -1
  939. package/dist/actions/run-grader.cjs +1 -0
  940. package/dist/actions/run-grader.cjs.map +1 -1
  941. package/dist/actions/run-grader.d.cts +3 -39
  942. package/dist/actions/run-grader.d.cts.map +1 -1
  943. package/dist/actions/run-grader.d.mts +3 -39
  944. package/dist/actions/run-grader.d.mts.map +1 -1
  945. package/dist/actions/run-grader.mjs +1 -0
  946. package/dist/actions/run-grader.mjs.map +1 -1
  947. package/dist/actions/search-vector-store.cjs +1 -0
  948. package/dist/actions/search-vector-store.cjs.map +1 -1
  949. package/dist/actions/search-vector-store.d.cts +3 -11
  950. package/dist/actions/search-vector-store.d.cts.map +1 -1
  951. package/dist/actions/search-vector-store.d.mts +3 -11
  952. package/dist/actions/search-vector-store.d.mts.map +1 -1
  953. package/dist/actions/search-vector-store.mjs +1 -0
  954. package/dist/actions/search-vector-store.mjs.map +1 -1
  955. package/dist/actions/submit-tool-outputs-to-run.cjs +1 -0
  956. package/dist/actions/submit-tool-outputs-to-run.cjs.map +1 -1
  957. package/dist/actions/submit-tool-outputs-to-run.d.cts +3 -10
  958. package/dist/actions/submit-tool-outputs-to-run.d.cts.map +1 -1
  959. package/dist/actions/submit-tool-outputs-to-run.d.mts +3 -10
  960. package/dist/actions/submit-tool-outputs-to-run.d.mts.map +1 -1
  961. package/dist/actions/submit-tool-outputs-to-run.mjs +1 -0
  962. package/dist/actions/submit-tool-outputs-to-run.mjs.map +1 -1
  963. package/dist/actions/update-chat-completion.cjs +1 -0
  964. package/dist/actions/update-chat-completion.cjs.map +1 -1
  965. package/dist/actions/update-chat-completion.d.cts +3 -4
  966. package/dist/actions/update-chat-completion.d.cts.map +1 -1
  967. package/dist/actions/update-chat-completion.d.mts +3 -4
  968. package/dist/actions/update-chat-completion.d.mts.map +1 -1
  969. package/dist/actions/update-chat-completion.mjs +1 -0
  970. package/dist/actions/update-chat-completion.mjs.map +1 -1
  971. package/dist/actions/update-conversation.cjs +1 -0
  972. package/dist/actions/update-conversation.cjs.map +1 -1
  973. package/dist/actions/update-conversation.d.cts +3 -4
  974. package/dist/actions/update-conversation.d.cts.map +1 -1
  975. package/dist/actions/update-conversation.d.mts +3 -4
  976. package/dist/actions/update-conversation.d.mts.map +1 -1
  977. package/dist/actions/update-conversation.mjs +1 -0
  978. package/dist/actions/update-conversation.mjs.map +1 -1
  979. package/dist/actions/update-eval.cjs +1 -0
  980. package/dist/actions/update-eval.cjs.map +1 -1
  981. package/dist/actions/update-eval.d.cts +3 -5
  982. package/dist/actions/update-eval.d.cts.map +1 -1
  983. package/dist/actions/update-eval.d.mts +3 -5
  984. package/dist/actions/update-eval.d.mts.map +1 -1
  985. package/dist/actions/update-eval.mjs +1 -0
  986. package/dist/actions/update-eval.mjs.map +1 -1
  987. package/dist/actions/update-vector-store-file-attributes.cjs +1 -0
  988. package/dist/actions/update-vector-store-file-attributes.cjs.map +1 -1
  989. package/dist/actions/update-vector-store-file-attributes.d.cts +3 -5
  990. package/dist/actions/update-vector-store-file-attributes.d.cts.map +1 -1
  991. package/dist/actions/update-vector-store-file-attributes.d.mts +3 -5
  992. package/dist/actions/update-vector-store-file-attributes.d.mts.map +1 -1
  993. package/dist/actions/update-vector-store-file-attributes.mjs +1 -0
  994. package/dist/actions/update-vector-store-file-attributes.mjs.map +1 -1
  995. package/dist/actions/upload-file.cjs +1 -0
  996. package/dist/actions/upload-file.cjs.map +1 -1
  997. package/dist/actions/upload-file.d.cts +3 -4
  998. package/dist/actions/upload-file.d.cts.map +1 -1
  999. package/dist/actions/upload-file.d.mts +3 -4
  1000. package/dist/actions/upload-file.d.mts.map +1 -1
  1001. package/dist/actions/upload-file.mjs +1 -0
  1002. package/dist/actions/upload-file.mjs.map +1 -1
  1003. package/dist/actions/validate-grader.cjs +1 -0
  1004. package/dist/actions/validate-grader.cjs.map +1 -1
  1005. package/dist/actions/validate-grader.d.cts +3 -37
  1006. package/dist/actions/validate-grader.d.cts.map +1 -1
  1007. package/dist/actions/validate-grader.d.mts +3 -37
  1008. package/dist/actions/validate-grader.d.mts.map +1 -1
  1009. package/dist/actions/validate-grader.mjs +1 -0
  1010. package/dist/actions/validate-grader.mjs.map +1 -1
  1011. package/dist/app.cjs +9 -2
  1012. package/dist/app.cjs.map +1 -1
  1013. package/dist/app.d.cts +8 -1
  1014. package/dist/app.d.cts.map +1 -1
  1015. package/dist/app.d.mts +8 -1
  1016. package/dist/app.d.mts.map +1 -1
  1017. package/dist/app.mjs +6 -2
  1018. package/dist/app.mjs.map +1 -1
  1019. package/dist/index.d.cts +1 -1
  1020. package/dist/index.d.mts +1 -1
  1021. package/package.json +2 -2
@@ -1,3 +1,5 @@
1
+ import { openai } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/create-chat-completion.d.ts
@@ -127,66 +129,7 @@ declare const OpenaiCreateChatCompletionOutput: z.ZodObject<{
127
129
  service_tier: z.ZodOptional<z.ZodNullable<z.ZodString>>;
128
130
  system_fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
129
131
  }, z.core.$loose>;
130
- declare const openaiCreateChatCompletion: import("@keystrokehq/action").WorkflowActionDefinition<{
131
- model: string;
132
- messages: {
133
- [x: string]: unknown;
134
- role: "function" | "user" | "assistant" | "system" | "tool";
135
- name?: string | undefined;
136
- content?: string | Record<string, unknown>[] | undefined;
137
- tool_calls?: Record<string, unknown>[] | undefined;
138
- tool_call_id?: string | undefined;
139
- function_call?: Record<string, unknown> | undefined;
140
- }[];
141
- n?: number | undefined;
142
- seed?: number | undefined;
143
- stop?: string | string[] | undefined;
144
- user?: string | undefined;
145
- audio?: Record<string, unknown> | undefined;
146
- store?: boolean | undefined;
147
- tools?: {
148
- [x: string]: unknown;
149
- type: "function" | "code_interpreter" | "file_search";
150
- function?: {
151
- name: string;
152
- strict?: boolean | undefined;
153
- parameters?: Record<string, unknown> | undefined;
154
- description?: string | undefined;
155
- } | undefined;
156
- }[] | undefined;
157
- top_p?: number | undefined;
158
- stream?: boolean | undefined;
159
- logprobs?: boolean | undefined;
160
- metadata?: Record<string, unknown> | undefined;
161
- functions?: {
162
- [x: string]: unknown;
163
- name: string;
164
- strict?: boolean | undefined;
165
- parameters?: Record<string, unknown> | undefined;
166
- description?: string | undefined;
167
- }[] | undefined;
168
- logit_bias?: Record<string, unknown> | undefined;
169
- max_tokens?: number | undefined;
170
- modalities?: ("text" | "audio")[] | undefined;
171
- prediction?: Record<string, unknown> | undefined;
172
- temperature?: number | undefined;
173
- tool_choice?: Record<string, unknown> | "none" | "auto" | "required" | undefined;
174
- service_tier?: "default" | "auto" | undefined;
175
- top_logprobs?: number | undefined;
176
- function_call?: Record<string, unknown> | "none" | "auto" | undefined;
177
- stream_options?: {
178
- include_usage?: boolean | undefined;
179
- } | undefined;
180
- response_format?: {
181
- type: "text" | "json_object" | "json_schema";
182
- json_schema?: Record<string, unknown> | undefined;
183
- } | undefined;
184
- presence_penalty?: number | undefined;
185
- reasoning_effort?: "low" | "medium" | "high" | undefined;
186
- frequency_penalty?: number | undefined;
187
- parallel_tool_calls?: boolean | undefined;
188
- max_completion_tokens?: number | undefined;
189
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
132
+ declare const openaiCreateChatCompletion: AppAction<typeof OpenaiCreateChatCompletionInput, typeof OpenaiCreateChatCompletionOutput, typeof openai.credential>;
190
133
  //#endregion
191
134
  export { openaiCreateChatCompletion };
192
135
  //# sourceMappingURL=create-chat-completion.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-chat-completion.d.cts","names":[],"sources":["../../src/actions/create-chat-completion.ts"],"mappings":";;;cAIa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA2F/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAWhC,0BAAA,gCAA0B,wBAAA"}
1
+ {"version":3,"file":"create-chat-completion.d.cts","names":[],"sources":["../../src/actions/create-chat-completion.ts"],"mappings":";;;;;cAMa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA2F/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAWhC,0BAAA,EAA4B,SAAA,QAChC,+BAAA,SACA,gCAAA,SACA,MAAA,CAAO,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { openai } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/create-chat-completion.d.ts
@@ -127,66 +129,7 @@ declare const OpenaiCreateChatCompletionOutput: z.ZodObject<{
127
129
  service_tier: z.ZodOptional<z.ZodNullable<z.ZodString>>;
128
130
  system_fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
129
131
  }, z.core.$loose>;
130
- declare const openaiCreateChatCompletion: import("@keystrokehq/action").WorkflowActionDefinition<{
131
- model: string;
132
- messages: {
133
- [x: string]: unknown;
134
- role: "function" | "user" | "assistant" | "system" | "tool";
135
- name?: string | undefined;
136
- content?: string | Record<string, unknown>[] | undefined;
137
- tool_calls?: Record<string, unknown>[] | undefined;
138
- tool_call_id?: string | undefined;
139
- function_call?: Record<string, unknown> | undefined;
140
- }[];
141
- n?: number | undefined;
142
- seed?: number | undefined;
143
- stop?: string | string[] | undefined;
144
- user?: string | undefined;
145
- audio?: Record<string, unknown> | undefined;
146
- store?: boolean | undefined;
147
- tools?: {
148
- [x: string]: unknown;
149
- type: "function" | "code_interpreter" | "file_search";
150
- function?: {
151
- name: string;
152
- strict?: boolean | undefined;
153
- parameters?: Record<string, unknown> | undefined;
154
- description?: string | undefined;
155
- } | undefined;
156
- }[] | undefined;
157
- top_p?: number | undefined;
158
- stream?: boolean | undefined;
159
- logprobs?: boolean | undefined;
160
- metadata?: Record<string, unknown> | undefined;
161
- functions?: {
162
- [x: string]: unknown;
163
- name: string;
164
- strict?: boolean | undefined;
165
- parameters?: Record<string, unknown> | undefined;
166
- description?: string | undefined;
167
- }[] | undefined;
168
- logit_bias?: Record<string, unknown> | undefined;
169
- max_tokens?: number | undefined;
170
- modalities?: ("text" | "audio")[] | undefined;
171
- prediction?: Record<string, unknown> | undefined;
172
- temperature?: number | undefined;
173
- tool_choice?: Record<string, unknown> | "none" | "auto" | "required" | undefined;
174
- service_tier?: "default" | "auto" | undefined;
175
- top_logprobs?: number | undefined;
176
- function_call?: Record<string, unknown> | "none" | "auto" | undefined;
177
- stream_options?: {
178
- include_usage?: boolean | undefined;
179
- } | undefined;
180
- response_format?: {
181
- type: "text" | "json_object" | "json_schema";
182
- json_schema?: Record<string, unknown> | undefined;
183
- } | undefined;
184
- presence_penalty?: number | undefined;
185
- reasoning_effort?: "low" | "medium" | "high" | undefined;
186
- frequency_penalty?: number | undefined;
187
- parallel_tool_calls?: boolean | undefined;
188
- max_completion_tokens?: number | undefined;
189
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
132
+ declare const openaiCreateChatCompletion: AppAction<typeof OpenaiCreateChatCompletionInput, typeof OpenaiCreateChatCompletionOutput, typeof openai.credential>;
190
133
  //#endregion
191
134
  export { openaiCreateChatCompletion };
192
135
  //# sourceMappingURL=create-chat-completion.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-chat-completion.d.mts","names":[],"sources":["../../src/actions/create-chat-completion.ts"],"mappings":";;;cAIa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA2F/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAWhC,0BAAA,gCAA0B,wBAAA"}
1
+ {"version":3,"file":"create-chat-completion.d.mts","names":[],"sources":["../../src/actions/create-chat-completion.ts"],"mappings":";;;;;cAMa,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cA2F/B,gCAAA,EAAgC,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAWhC,0BAAA,EAA4B,SAAA,QAChC,+BAAA,SACA,gCAAA,SACA,MAAA,CAAO,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/create-chat-completion.ts
@@ -1 +1 @@
1
- {"version":3,"file":"create-chat-completion.mjs","names":[],"sources":["../../src/actions/create-chat-completion.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenaiCreateChatCompletionInput = z.object({\n n: z.number().int().describe(\"How many chat completion choices to generate for each input message. Default is 1\").optional(),\n seed: z.number().int().describe(\"If specified, the system will make a best effort to sample deterministically. Determinism is not guaranteed, check system_fingerprint in response\").optional(),\n stop: z.union([z.string(), z.array(z.string())]).optional(),\n user: z.string().describe(\"A unique identifier representing your end-user. Helps OpenAI monitor and detect abuse\").optional(),\n audio: z.record(z.string(), z.unknown()).describe(\"Parameters for audio output. Supported by audio-capable models\").optional(),\n model: z.string().describe(\"ID of the model to use. Supported models include gpt-4o, gpt-4o-mini, gpt-4-turbo, gpt-3.5-turbo, o1, o1-mini, o3-mini, and others\"),\n store: z.boolean().describe(\"Whether to store the output of this chat completion request for use in model distillation or evaluations. Default is true for eligible models\").optional(),\n tools: z.array(z.object({\n type: z.enum([\"function\", \"code_interpreter\", \"file_search\"]).describe(\"The type of tool. 'function' for custom functions, 'code_interpreter' for code execution, 'file_search' for file retrieval\"),\n \"function\": z.object({\n name: z.string().describe(\"The name of the function to be called. Must be a-z, A-Z, 0-9, underscores and dashes, with a maximum length of 64 characters\"),\n strict: z.boolean().describe(\"Whether to enable strict schema adherence when generating the function call. If true, the model will follow the exact schema\").optional(),\n parameters: z.record(z.string(), z.unknown()).describe(\"The parameters the function accepts, described as a JSON Schema object. Omit to indicate the function accepts no parameters\").optional(),\n description: z.string().describe(\"A description of what the function does. Used by the model to choose when to call the function\").optional(),\n}).describe(\"Function definition for function calling.\").optional(),\n}).passthrough().describe(\"Tool definition for tool calling.\")).describe(\"A list of tools the model may call. Use this for function calling. The model can choose to call one or more functions\").optional(),\n top_p: z.number().describe(\"Nucleus sampling parameter. The model considers tokens with top_p probability mass. 0.1 means only tokens comprising the top 10% probability mass are considered. Mutually exclusive with temperature\").optional(),\n stream: z.boolean().describe(\"If set to true, partial message deltas will be sent as server-sent events (SSE) as they become available\").optional(),\n logprobs: z.boolean().describe(\"Whether to return log probabilities of the output tokens. If true, returns the log probabilities of each output token in the content\").optional(),\n messages: z.array(z.object({\n name: z.string().describe(\"An optional name for the participant. Used in multi-party conversations to differentiate users or for tool/function call results\").optional(),\n role: z.enum([\"system\", \"user\", \"assistant\", \"tool\", \"function\"]).describe(\"The role of the message author. 'system' for instructions, 'user' for user input, 'assistant' for model responses, 'tool' for tool call results, 'function' for function call results (deprecated)\"),\n content: z.union([z.string(), z.array(z.record(z.string(), z.unknown()))]).optional(),\n tool_calls: z.array(z.record(z.string(), z.unknown())).describe(\"Tool calls generated by the model. Only present in assistant messages when the model decides to call functions\").optional(),\n tool_call_id: z.string().describe(\"Tool call ID that this message is responding to. Required when role is 'tool'\").optional(),\n function_call: z.record(z.string(), z.unknown()).describe(\"Deprecated. Function call generated by the model. Use tool_calls instead\").optional(),\n}).passthrough().describe(\"A message in the chat conversation.\")).describe(\"A list of messages comprising the conversation so far. Each message has a role and content\"),\n metadata: z.record(z.string(), z.unknown()).describe(\"Developer-defined tags and values for filtering completions in the dashboard. All values must be strings\").optional(),\n functions: z.array(z.object({\n name: z.string().describe(\"The name of the function to be called. Must be a-z, A-Z, 0-9, underscores and dashes, with a maximum length of 64 characters\"),\n strict: z.boolean().describe(\"Whether to enable strict schema adherence when generating the function call. If true, the model will follow the exact schema\").optional(),\n parameters: z.record(z.string(), z.unknown()).describe(\"The parameters the function accepts, described as a JSON Schema object. Omit to indicate the function accepts no parameters\").optional(),\n description: z.string().describe(\"A description of what the function does. Used by the model to choose when to call the function\").optional(),\n}).passthrough().describe(\"Function definition for function calling.\")).describe(\"Deprecated. A list of functions the model may generate JSON inputs for. Use tools instead\").optional(),\n logit_bias: z.record(z.string(), z.unknown()).describe(\"Modify the likelihood of specified tokens appearing in the completion. Maps token IDs to bias values from -100 to 100. Use tokenizer to find token IDs\").optional(),\n max_tokens: z.number().int().describe(\"The maximum number of tokens to generate in the chat completion. The total length of input tokens and generated tokens is limited by the model's context length\").optional(),\n modalities: z.array(z.enum([\"text\", \"audio\"])).describe(\"Output modalities for the response. Include 'audio' for audio output. Defaults to ['text']\").optional(),\n prediction: z.record(z.string(), z.unknown()).describe(\"Configuration for predicted outputs. Used for latency optimization with certain models\").optional(),\n temperature: z.number().describe(\"Sampling temperature between 0 and 2. Higher values like 0.8 make output more random, lower values like 0.2 make it more focused and deterministic. Mutually exclusive with top_p\").optional(),\n tool_choice: z.union([z.enum([\"none\", \"auto\", \"required\"]), z.record(z.string(), z.unknown())]).optional(),\n service_tier: z.enum([\"auto\", \"default\"]).describe(\"Specifies the latency tier to use for processing the request. 'auto' lets the system infer the best tier, 'default' uses standard processing\").optional(),\n top_logprobs: z.number().int().describe(\"An integer between 0 and 20 specifying the number of most likely tokens to return at each token position, each with an associated log probability. Requires logprobs=true\").optional(),\n function_call: z.union([z.enum([\"none\", \"auto\"]), z.record(z.string(), z.unknown())]).optional(),\n stream_options: z.object({\n include_usage: z.boolean().describe(\"If set, an additional chunk will be streamed at the end with usage statistics. Only applicable when stream=true\").optional(),\n}).describe(\"Streaming options configuration.\").optional(),\n response_format: z.object({\n type: z.enum([\"text\", \"json_object\", \"json_schema\"]).describe(\"The type of response format. 'text' for plain text, 'json_object' for JSON mode, 'json_schema' for strict structured outputs with a schema\"),\n json_schema: z.record(z.string(), z.unknown()).describe(\"The JSON schema definition. Required when type is 'json_schema'\").optional(),\n}).describe(\"Response format specification for structured outputs.\").optional(),\n presence_penalty: z.number().describe(\"Number between -2.0 and 2.0. Positive values penalize new tokens based on whether they appear in the text so far, increasing the model's likelihood to talk about new topics\").optional(),\n reasoning_effort: z.enum([\"low\", \"medium\", \"high\"]).describe(\"Reasoning effort level for reasoning models like o1. 'low' for faster responses, 'high' for more thorough reasoning. Only applicable to reasoning models\").optional(),\n frequency_penalty: z.number().describe(\"Number between -2.0 and 2.0. Positive values penalize new tokens based on their existing frequency in the text so far, decreasing the model's likelihood to repeat the same line verbatim\").optional(),\n parallel_tool_calls: z.boolean().describe(\"Whether to enable parallel function calling during tool use. Default is true\").optional(),\n max_completion_tokens: z.number().int().describe(\"An upper bound for the number of tokens that can be generated for a completion, including visible output tokens and reasoning tokens. Preferred over max_tokens for newer models\").optional(),\n}).describe(\"Request model for creating a chat completion.\");\nconst OpenaiCreateChatCompletion_PromptTokensDetailsSchema = z.object({\n audio_tokens: z.number().int().describe(\"Number of audio tokens in the prompt\").nullable().optional(),\n cached_tokens: z.number().int().describe(\"Number of tokens that were cached and reused\").nullable().optional(),\n}).passthrough().describe(\"Breakdown of tokens used in the prompt.\");\nconst OpenaiCreateChatCompletion_CompletionTokensDetailsSchema = z.object({\n audio_tokens: z.number().int().describe(\"Number of audio tokens generated\").nullable().optional(),\n reasoning_tokens: z.number().int().describe(\"Number of reasoning tokens generated by the model\").nullable().optional(),\n accepted_prediction_tokens: z.number().int().describe(\"Number of tokens from predictions that were accepted\").nullable().optional(),\n rejected_prediction_tokens: z.number().int().describe(\"Number of tokens from predictions that were rejected\").nullable().optional(),\n}).passthrough().describe(\"Breakdown of tokens used in a completion.\");\nconst OpenaiCreateChatCompletion_CompletionUsageSchema = z.object({\n total_tokens: z.number().int().describe(\"Total number of tokens used in the request (prompt + completion)\").nullable(),\n prompt_tokens: z.number().int().describe(\"Number of tokens in the prompt\").nullable(),\n completion_tokens: z.number().int().describe(\"Number of tokens in the generated completion\").nullable(),\n prompt_tokens_details: OpenaiCreateChatCompletion_PromptTokensDetailsSchema.nullable().optional(),\n completion_tokens_details: OpenaiCreateChatCompletion_CompletionTokensDetailsSchema.nullable().optional(),\n}).passthrough().describe(\"Usage statistics for the completion request.\");\nconst OpenaiCreateChatCompletion_ChoiceMessageSchema = z.object({\n role: z.string().describe(\"The role of the author of this message\").nullable(),\n content: z.string().describe(\"The content of the message. May be null for tool calls\").nullable().optional(),\n refusal: z.string().describe(\"The refusal message if the model refused to fulfill the request\").nullable().optional(),\n tool_calls: z.array(z.record(z.string(), z.unknown())).describe(\"The tool calls generated by the model\").nullable().optional(),\n function_call: z.record(z.string(), z.unknown()).describe(\"Deprecated. The function call generated by the model\").nullable().optional(),\n}).passthrough().describe(\"The message in a chat completion choice.\");\nconst OpenaiCreateChatCompletion_ChoiceLogprobsSchema = z.object({\n content: z.array(z.record(z.string(), z.unknown())).describe(\"A list of message content tokens with log probability information\").nullable().optional(),\n refusal: z.array(z.record(z.string(), z.unknown())).describe(\"A list of refusal tokens with log probability information\").nullable().optional(),\n}).passthrough().describe(\"Log probability information for a choice.\");\nconst OpenaiCreateChatCompletion_ChatCompletionChoiceSchema = z.object({\n index: z.number().int().describe(\"The index of this choice in the list of choices\").nullable(),\n message: OpenaiCreateChatCompletion_ChoiceMessageSchema.nullable(),\n logprobs: OpenaiCreateChatCompletion_ChoiceLogprobsSchema.nullable().optional(),\n finish_reason: z.string().describe(\"The reason the model stopped generating tokens. 'stop' for natural stop point or stop sequence, 'length' for max_tokens limit, 'content_filter' for content filter, 'tool_calls' for tool use, 'function_call' for function call\").nullable().optional(),\n}).passthrough().describe(\"A chat completion choice.\");\nexport const OpenaiCreateChatCompletionOutput = z.object({\n id: z.string().describe(\"A unique identifier for the chat completion\").nullable(),\n model: z.string().describe(\"The model used for the chat completion\").nullable(),\n usage: OpenaiCreateChatCompletion_CompletionUsageSchema.nullable().optional(),\n object: z.string().describe(\"The object type, which is always 'chat.completion'\").nullable(),\n choices: z.array(OpenaiCreateChatCompletion_ChatCompletionChoiceSchema).describe(\"A list of chat completion choices. Can be more than one if n is greater than 1\"),\n created: z.number().int().describe(\"The Unix timestamp (in seconds) of when the chat completion was created\").nullable(),\n service_tier: z.string().describe(\"The service tier used for processing the request\").nullable().optional(),\n system_fingerprint: z.string().describe(\"This fingerprint represents the backend configuration that the model runs with. Can be used with the seed parameter to understand when backend changes have been made that might impact determinism\").nullable().optional(),\n}).passthrough().describe(\"Response schema for chat completion creation.\");\n\nexport const openaiCreateChatCompletion = action(\"OPENAI_CREATE_CHAT_COMPLETION\", {\n slug: \"openai-create-chat-completion\",\n name: \"Create Chat Completion\",\n description: \"Tool to create a chat completion response from OpenAI models. Use for conversational AI, text generation, function calling, multimodal tasks with vision/audio, and structured JSON outputs. Supports advanced features like reasoning models, tool use, and streaming responses.\",\n input: OpenaiCreateChatCompletionInput,\n output: OpenaiCreateChatCompletionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,kCAAkC,EAAE,OAAO;CACtD,GAAG,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mFAAmF,CAAC,CAAC,SAAS;CAC3H,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mJAAmJ,CAAC,CAAC,SAAS;CAC9L,MAAM,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS;CAC1D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,uFAAuF,CAAC,CAAC,SAAS;CAC5H,OAAO,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,gEAAgE,CAAC,CAAC,SAAS;CAC7H,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,oIAAoI;CAC/J,OAAO,EAAE,QAAQ,CAAC,CAAC,SAAS,+IAA+I,CAAC,CAAC,SAAS;CACtL,OAAO,EAAE,MAAM,EAAE,OAAO;EACxB,MAAM,EAAE,KAAK;GAAC;GAAY;GAAoB;EAAa,CAAC,CAAC,CAAC,SAAS,4HAA4H;EACnM,YAAY,EAAE,OAAO;GACrB,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,8HAA8H;GACxJ,QAAQ,EAAE,QAAQ,CAAC,CAAC,SAAS,8HAA8H,CAAC,CAAC,SAAS;GACtK,YAAY,EAAE,OAAO,EAAE,OAAO,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,6HAA6H,CAAC,CAAC,SAAS;GAC/L,aAAa,EAAE,OAAO,CAAC,CAAC,SAAS,gGAAgG,CAAC,CAAC,SAAS;EAC9I,CAAC,CAAC,CAAC,SAAS,2C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AAE,OAAO;EACvD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,6CAA6C,CAAC,CAAC,SAAS;EAChF,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,wCAAwC,CAAC,CAAC,SAAS;EAC9E,OAAO,iDAAiD,SAAS,CAAC,CAAC,SAAS;EAC5E,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,oDAAoD,CAAC,CAAC,SAAS;EAC3F,SAAS,EAAE,MAAM,qDAAqD,CAAC,CAAC,SAAS,gFAAgF;EACjK,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS;EACvH,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1G,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS,qMAAqM,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrQ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+CAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"create-chat-completion.mjs","names":[],"sources":["../../src/actions/create-chat-completion.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { openai } from \"../app\";\n\nexport const OpenaiCreateChatCompletionInput = z.object({\n n: z.number().int().describe(\"How many chat completion choices to generate for each input message. Default is 1\").optional(),\n seed: z.number().int().describe(\"If specified, the system will make a best effort to sample deterministically. Determinism is not guaranteed, check system_fingerprint in response\").optional(),\n stop: z.union([z.string(), z.array(z.string())]).optional(),\n user: z.string().describe(\"A unique identifier representing your end-user. Helps OpenAI monitor and detect abuse\").optional(),\n audio: z.record(z.string(), z.unknown()).describe(\"Parameters for audio output. Supported by audio-capable models\").optional(),\n model: z.string().describe(\"ID of the model to use. Supported models include gpt-4o, gpt-4o-mini, gpt-4-turbo, gpt-3.5-turbo, o1, o1-mini, o3-mini, and others\"),\n store: z.boolean().describe(\"Whether to store the output of this chat completion request for use in model distillation or evaluations. Default is true for eligible models\").optional(),\n tools: z.array(z.object({\n type: z.enum([\"function\", \"code_interpreter\", \"file_search\"]).describe(\"The type of tool. 'function' for custom functions, 'code_interpreter' for code execution, 'file_search' for file retrieval\"),\n \"function\": z.object({\n name: z.string().describe(\"The name of the function to be called. Must be a-z, A-Z, 0-9, underscores and dashes, with a maximum length of 64 characters\"),\n strict: z.boolean().describe(\"Whether to enable strict schema adherence when generating the function call. If true, the model will follow the exact schema\").optional(),\n parameters: z.record(z.string(), z.unknown()).describe(\"The parameters the function accepts, described as a JSON Schema object. Omit to indicate the function accepts no parameters\").optional(),\n description: z.string().describe(\"A description of what the function does. Used by the model to choose when to call the function\").optional(),\n}).describe(\"Function definition for function calling.\").optional(),\n}).passthrough().describe(\"Tool definition for tool calling.\")).describe(\"A list of tools the model may call. Use this for function calling. The model can choose to call one or more functions\").optional(),\n top_p: z.number().describe(\"Nucleus sampling parameter. The model considers tokens with top_p probability mass. 0.1 means only tokens comprising the top 10% probability mass are considered. Mutually exclusive with temperature\").optional(),\n stream: z.boolean().describe(\"If set to true, partial message deltas will be sent as server-sent events (SSE) as they become available\").optional(),\n logprobs: z.boolean().describe(\"Whether to return log probabilities of the output tokens. If true, returns the log probabilities of each output token in the content\").optional(),\n messages: z.array(z.object({\n name: z.string().describe(\"An optional name for the participant. Used in multi-party conversations to differentiate users or for tool/function call results\").optional(),\n role: z.enum([\"system\", \"user\", \"assistant\", \"tool\", \"function\"]).describe(\"The role of the message author. 'system' for instructions, 'user' for user input, 'assistant' for model responses, 'tool' for tool call results, 'function' for function call results (deprecated)\"),\n content: z.union([z.string(), z.array(z.record(z.string(), z.unknown()))]).optional(),\n tool_calls: z.array(z.record(z.string(), z.unknown())).describe(\"Tool calls generated by the model. Only present in assistant messages when the model decides to call functions\").optional(),\n tool_call_id: z.string().describe(\"Tool call ID that this message is responding to. Required when role is 'tool'\").optional(),\n function_call: z.record(z.string(), z.unknown()).describe(\"Deprecated. Function call generated by the model. Use tool_calls instead\").optional(),\n}).passthrough().describe(\"A message in the chat conversation.\")).describe(\"A list of messages comprising the conversation so far. Each message has a role and content\"),\n metadata: z.record(z.string(), z.unknown()).describe(\"Developer-defined tags and values for filtering completions in the dashboard. All values must be strings\").optional(),\n functions: z.array(z.object({\n name: z.string().describe(\"The name of the function to be called. Must be a-z, A-Z, 0-9, underscores and dashes, with a maximum length of 64 characters\"),\n strict: z.boolean().describe(\"Whether to enable strict schema adherence when generating the function call. If true, the model will follow the exact schema\").optional(),\n parameters: z.record(z.string(), z.unknown()).describe(\"The parameters the function accepts, described as a JSON Schema object. Omit to indicate the function accepts no parameters\").optional(),\n description: z.string().describe(\"A description of what the function does. Used by the model to choose when to call the function\").optional(),\n}).passthrough().describe(\"Function definition for function calling.\")).describe(\"Deprecated. A list of functions the model may generate JSON inputs for. Use tools instead\").optional(),\n logit_bias: z.record(z.string(), z.unknown()).describe(\"Modify the likelihood of specified tokens appearing in the completion. Maps token IDs to bias values from -100 to 100. Use tokenizer to find token IDs\").optional(),\n max_tokens: z.number().int().describe(\"The maximum number of tokens to generate in the chat completion. The total length of input tokens and generated tokens is limited by the model's context length\").optional(),\n modalities: z.array(z.enum([\"text\", \"audio\"])).describe(\"Output modalities for the response. Include 'audio' for audio output. Defaults to ['text']\").optional(),\n prediction: z.record(z.string(), z.unknown()).describe(\"Configuration for predicted outputs. Used for latency optimization with certain models\").optional(),\n temperature: z.number().describe(\"Sampling temperature between 0 and 2. Higher values like 0.8 make output more random, lower values like 0.2 make it more focused and deterministic. Mutually exclusive with top_p\").optional(),\n tool_choice: z.union([z.enum([\"none\", \"auto\", \"required\"]), z.record(z.string(), z.unknown())]).optional(),\n service_tier: z.enum([\"auto\", \"default\"]).describe(\"Specifies the latency tier to use for processing the request. 'auto' lets the system infer the best tier, 'default' uses standard processing\").optional(),\n top_logprobs: z.number().int().describe(\"An integer between 0 and 20 specifying the number of most likely tokens to return at each token position, each with an associated log probability. Requires logprobs=true\").optional(),\n function_call: z.union([z.enum([\"none\", \"auto\"]), z.record(z.string(), z.unknown())]).optional(),\n stream_options: z.object({\n include_usage: z.boolean().describe(\"If set, an additional chunk will be streamed at the end with usage statistics. Only applicable when stream=true\").optional(),\n}).describe(\"Streaming options configuration.\").optional(),\n response_format: z.object({\n type: z.enum([\"text\", \"json_object\", \"json_schema\"]).describe(\"The type of response format. 'text' for plain text, 'json_object' for JSON mode, 'json_schema' for strict structured outputs with a schema\"),\n json_schema: z.record(z.string(), z.unknown()).describe(\"The JSON schema definition. Required when type is 'json_schema'\").optional(),\n}).describe(\"Response format specification for structured outputs.\").optional(),\n presence_penalty: z.number().describe(\"Number between -2.0 and 2.0. Positive values penalize new tokens based on whether they appear in the text so far, increasing the model's likelihood to talk about new topics\").optional(),\n reasoning_effort: z.enum([\"low\", \"medium\", \"high\"]).describe(\"Reasoning effort level for reasoning models like o1. 'low' for faster responses, 'high' for more thorough reasoning. Only applicable to reasoning models\").optional(),\n frequency_penalty: z.number().describe(\"Number between -2.0 and 2.0. Positive values penalize new tokens based on their existing frequency in the text so far, decreasing the model's likelihood to repeat the same line verbatim\").optional(),\n parallel_tool_calls: z.boolean().describe(\"Whether to enable parallel function calling during tool use. Default is true\").optional(),\n max_completion_tokens: z.number().int().describe(\"An upper bound for the number of tokens that can be generated for a completion, including visible output tokens and reasoning tokens. Preferred over max_tokens for newer models\").optional(),\n}).describe(\"Request model for creating a chat completion.\");\nconst OpenaiCreateChatCompletion_PromptTokensDetailsSchema = z.object({\n audio_tokens: z.number().int().describe(\"Number of audio tokens in the prompt\").nullable().optional(),\n cached_tokens: z.number().int().describe(\"Number of tokens that were cached and reused\").nullable().optional(),\n}).passthrough().describe(\"Breakdown of tokens used in the prompt.\");\nconst OpenaiCreateChatCompletion_CompletionTokensDetailsSchema = z.object({\n audio_tokens: z.number().int().describe(\"Number of audio tokens generated\").nullable().optional(),\n reasoning_tokens: z.number().int().describe(\"Number of reasoning tokens generated by the model\").nullable().optional(),\n accepted_prediction_tokens: z.number().int().describe(\"Number of tokens from predictions that were accepted\").nullable().optional(),\n rejected_prediction_tokens: z.number().int().describe(\"Number of tokens from predictions that were rejected\").nullable().optional(),\n}).passthrough().describe(\"Breakdown of tokens used in a completion.\");\nconst OpenaiCreateChatCompletion_CompletionUsageSchema = z.object({\n total_tokens: z.number().int().describe(\"Total number of tokens used in the request (prompt + completion)\").nullable(),\n prompt_tokens: z.number().int().describe(\"Number of tokens in the prompt\").nullable(),\n completion_tokens: z.number().int().describe(\"Number of tokens in the generated completion\").nullable(),\n prompt_tokens_details: OpenaiCreateChatCompletion_PromptTokensDetailsSchema.nullable().optional(),\n completion_tokens_details: OpenaiCreateChatCompletion_CompletionTokensDetailsSchema.nullable().optional(),\n}).passthrough().describe(\"Usage statistics for the completion request.\");\nconst OpenaiCreateChatCompletion_ChoiceMessageSchema = z.object({\n role: z.string().describe(\"The role of the author of this message\").nullable(),\n content: z.string().describe(\"The content of the message. May be null for tool calls\").nullable().optional(),\n refusal: z.string().describe(\"The refusal message if the model refused to fulfill the request\").nullable().optional(),\n tool_calls: z.array(z.record(z.string(), z.unknown())).describe(\"The tool calls generated by the model\").nullable().optional(),\n function_call: z.record(z.string(), z.unknown()).describe(\"Deprecated. The function call generated by the model\").nullable().optional(),\n}).passthrough().describe(\"The message in a chat completion choice.\");\nconst OpenaiCreateChatCompletion_ChoiceLogprobsSchema = z.object({\n content: z.array(z.record(z.string(), z.unknown())).describe(\"A list of message content tokens with log probability information\").nullable().optional(),\n refusal: z.array(z.record(z.string(), z.unknown())).describe(\"A list of refusal tokens with log probability information\").nullable().optional(),\n}).passthrough().describe(\"Log probability information for a choice.\");\nconst OpenaiCreateChatCompletion_ChatCompletionChoiceSchema = z.object({\n index: z.number().int().describe(\"The index of this choice in the list of choices\").nullable(),\n message: OpenaiCreateChatCompletion_ChoiceMessageSchema.nullable(),\n logprobs: OpenaiCreateChatCompletion_ChoiceLogprobsSchema.nullable().optional(),\n finish_reason: z.string().describe(\"The reason the model stopped generating tokens. 'stop' for natural stop point or stop sequence, 'length' for max_tokens limit, 'content_filter' for content filter, 'tool_calls' for tool use, 'function_call' for function call\").nullable().optional(),\n}).passthrough().describe(\"A chat completion choice.\");\nexport const OpenaiCreateChatCompletionOutput = z.object({\n id: z.string().describe(\"A unique identifier for the chat completion\").nullable(),\n model: z.string().describe(\"The model used for the chat completion\").nullable(),\n usage: OpenaiCreateChatCompletion_CompletionUsageSchema.nullable().optional(),\n object: z.string().describe(\"The object type, which is always 'chat.completion'\").nullable(),\n choices: z.array(OpenaiCreateChatCompletion_ChatCompletionChoiceSchema).describe(\"A list of chat completion choices. Can be more than one if n is greater than 1\"),\n created: z.number().int().describe(\"The Unix timestamp (in seconds) of when the chat completion was created\").nullable(),\n service_tier: z.string().describe(\"The service tier used for processing the request\").nullable().optional(),\n system_fingerprint: z.string().describe(\"This fingerprint represents the backend configuration that the model runs with. Can be used with the seed parameter to understand when backend changes have been made that might impact determinism\").nullable().optional(),\n}).passthrough().describe(\"Response schema for chat completion creation.\");\n\nexport const openaiCreateChatCompletion: AppAction<\n typeof OpenaiCreateChatCompletionInput,\n typeof OpenaiCreateChatCompletionOutput,\n typeof openai.credential\n> = action(\"OPENAI_CREATE_CHAT_COMPLETION\", {\n slug: \"openai-create-chat-completion\",\n name: \"Create Chat Completion\",\n description: \"Tool to create a chat completion response from OpenAI models. Use for conversational AI, text generation, function calling, multimodal tasks with vision/audio, and structured JSON outputs. Supports advanced features like reasoning models, tool use, and streaming responses.\",\n input: OpenaiCreateChatCompletionInput,\n output: OpenaiCreateChatCompletionOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,kCAAkC,EAAE,OAAO;CACtD,GAAG,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mFAAmF,CAAC,CAAC,SAAS;CAC3H,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,mJAAmJ,CAAC,CAAC,SAAS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CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,yEAAyE,CAAC,CAAC,SAAS;EACvH,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;EAC1G,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS,qMAAqM,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CACrQ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+CAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/create-completion.ts
@@ -1 +1 @@
1
- {"version":3,"file":"create-completion.cjs","names":["z","action"],"sources":["../../src/actions/create-completion.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenaiCreateCompletionInput = z.object({\n n: z.number().int().describe(\"How many completions to generate for each prompt. Note: Because this parameter generates many completions, it can quickly consume your token quota. Use carefully and ensure that you have reasonable settings for max_tokens and stop. Default is 1.\").optional(),\n echo: z.boolean().describe(\"Echo back the prompt in addition to the completion. Default is false.\").optional(),\n seed: z.number().int().describe(\"If specified, our system will make a best effort to sample deterministically, such that repeated requests with the same seed and parameters should return the same result. Determinism is not guaranteed, and you should refer to the system_fingerprint response parameter to monitor changes in the backend.\").optional(),\n stop: z.union([z.string(), z.array(z.string())]).optional(),\n user: z.string().describe(\"A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse.\").optional(),\n model: z.string().describe(\"ID of the model to use. You can use the List models API to see all of your available models, or see the Model overview for descriptions of them. Examples: 'gpt-3.5-turbo-instruct', 'davinci-002', 'babbage-002'.\"),\n top_p: z.number().describe(\"An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass. So 0.1 means only the tokens comprising the top 10% probability mass are considered. We generally recommend altering this or temperature but not both. Default is 1.\").optional(),\n prompt: z.union([z.string(), z.array(z.string()), z.array(z.number().int()), z.array(z.array(z.number().int()))]),\n stream: z.boolean().describe(\"Whether to stream back partial progress. If set, tokens will be sent as data-only server-sent events as they become available, with the stream terminated by a data: [DONE] message. Default is false.\").optional(),\n suffix: z.string().describe(\"The suffix that comes after a completion of inserted text. This parameter is only supported for gpt-3.5-turbo-instruct.\").optional(),\n best_of: z.number().int().describe(\"Generates best_of completions server-side and returns the \\\"best\\\" (the one with the highest log probability per token). Results cannot be streamed. When used with n, best_of controls the number of candidate completions and n specifies how many to return. best_of must be greater than n. Note: Because this parameter generates many completions, it can quickly consume your token quota. Use carefully and ensure that you have reasonable settings for max_tokens and stop.\").optional(),\n logprobs: z.number().int().describe(\"Include the log probabilities on the logprobs most likely output tokens, as well the chosen tokens. For example, if logprobs is 5, the API will return a list of the 5 most likely tokens. The API will always return the logprob of the sampled token, so there may be up to logprobs+1 elements in the response. The maximum value for logprobs is 5.\").optional(),\n logit_bias: z.record(z.string(), z.unknown()).describe(\"Modify the likelihood of specified tokens appearing in the completion. Accepts a JSON object that maps tokens (specified by their token ID in the GPT tokenizer) to an associated bias value from -100 to 100. You can use this tokenizer tool to convert text to token IDs. Mathematically, the bias is added to the logits generated by the model prior to sampling. The exact effect will vary per model, but values between -1 and 1 should decrease or increase likelihood of selection; values like -100 or 100 should result in a ban or exclusive selection of the relevant token.\").optional(),\n max_tokens: z.number().int().describe(\"The maximum number of tokens that can be generated in the completion. The token count of your prompt plus max_tokens cannot exceed the model's context length. Default is 16.\").optional(),\n temperature: z.number().describe(\"What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic. We generally recommend altering this or top_p but not both. Default is 1.\").optional(),\n stream_options: z.record(z.string(), z.unknown()).describe(\"Options for streaming responses. Can include 'include_usage' and 'include_obfuscation' fields.\").optional(),\n presence_penalty: z.number().describe(\"Number between -2.0 and 2.0. Positive values penalize new tokens based on whether they appear in the text so far, increasing the model's likelihood to talk about new topics. Default is 0.\").optional(),\n frequency_penalty: z.number().describe(\"Number between -2.0 and 2.0. Positive values penalize new tokens based on their existing frequency in the text so far, decreasing the model's likelihood to repeat the same line verbatim. Default is 0.\").optional(),\n}).describe(\"Request model for creating text completions via the legacy Completions API.\");\nconst OpenaiCreateCompletion_PromptTokensDetailsSchema = z.object({\n audio_tokens: z.number().int().describe(\"Number of audio tokens in the prompt.\").nullable().optional(),\n cached_tokens: z.number().int().describe(\"Number of cached tokens in the prompt.\").nullable().optional(),\n}).passthrough().describe(\"Breakdown of tokens used in the prompt.\");\nconst OpenaiCreateCompletion_CompletionTokensDetailsSchema = z.object({\n audio_tokens: z.number().int().describe(\"Number of audio tokens used.\").nullable().optional(),\n reasoning_tokens: z.number().int().describe(\"Number of reasoning tokens used.\").nullable().optional(),\n accepted_prediction_tokens: z.number().int().describe(\"Number of accepted prediction tokens.\").nullable().optional(),\n rejected_prediction_tokens: z.number().int().describe(\"Number of rejected prediction tokens.\").nullable().optional(),\n}).passthrough().describe(\"Breakdown of tokens used in a completion.\");\nconst OpenaiCreateCompletion_CompletionUsageSchema = z.object({\n total_tokens: z.number().int().describe(\"Total number of tokens used in the request (prompt + completion).\").nullable(),\n prompt_tokens: z.number().int().describe(\"Number of tokens in the prompt.\").nullable(),\n completion_tokens: z.number().int().describe(\"Number of tokens in the generated completion.\").nullable().optional(),\n prompt_tokens_details: OpenaiCreateCompletion_PromptTokensDetailsSchema.nullable().optional(),\n completion_tokens_details: OpenaiCreateCompletion_CompletionTokensDetailsSchema.nullable().optional(),\n}).passthrough().describe(\"Usage statistics for the completion request.\");\nconst OpenaiCreateCompletion_CompletionLogprobsSchema = z.object({\n tokens: z.array(z.string()).describe(\"The list of tokens generated.\").nullable().optional(),\n text_offset: z.array(z.number().int()).describe(\"The character offsets of each token in the completion.\").nullable().optional(),\n top_logprobs: z.array(z.record(z.string(), z.unknown()).nullable()).describe(\"For each token, a dictionary of the top alternative tokens and their log probabilities.\").nullable().optional(),\n token_logprobs: z.array(z.number().nullable()).describe(\"The log probabilities of each token.\").nullable().optional(),\n}).passthrough().describe(\"Log probability information for a completion.\");\nconst OpenaiCreateCompletion_CompletionChoiceSchema = z.object({\n text: z.string().describe(\"The generated completion text.\").nullable(),\n index: z.number().int().describe(\"The index of this completion choice.\").nullable(),\n logprobs: OpenaiCreateCompletion_CompletionLogprobsSchema.nullable().optional(),\n finish_reason: z.string().describe(\"The reason the completion finished. Possible values: 'stop' (API returned complete message), 'length' (incomplete due to max_tokens limit), 'content_filter' (content was filtered by content filters).\").nullable().optional(),\n}).passthrough().describe(\"A single completion choice returned by the API.\");\nexport const OpenaiCreateCompletionOutput = z.object({\n id: z.string().describe(\"A unique identifier for the completion.\").nullable(),\n model: z.string().describe(\"The model used for completion.\").nullable(),\n usage: OpenaiCreateCompletion_CompletionUsageSchema.nullable().optional(),\n object: z.string().describe(\"The object type, which is always 'text_completion'.\").nullable(),\n choices: z.array(OpenaiCreateCompletion_CompletionChoiceSchema).describe(\"The list of completion choices the model generated for the input prompt.\"),\n created: z.number().int().describe(\"The Unix timestamp (in seconds) of when the completion was created.\").nullable(),\n system_fingerprint: z.string().describe(\"This fingerprint represents the backend configuration that the model runs with. Can be used in conjunction with the seed request parameter to understand when backend changes have been made that might impact determinism.\").nullable().optional(),\n}).passthrough().describe(\"Response schema for text completion creation.\");\n\nexport const openaiCreateCompletion = action(\"OPENAI_CREATE_COMPLETION\", {\n slug: \"openai-create-completion\",\n name: \"Create Completion (Legacy)\",\n description: \"Tool to generate text completions using OpenAI's legacy Completions API. Use for single-turn text generation with models like gpt-3.5-turbo-instruct. Note: This endpoint is legacy; prefer Chat Completions for newer models.\",\n input: OpenaiCreateCompletionInput,\n output: OpenaiCreateCompletionOutput,\n});\n"],"mappings":";;;AAIA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uPAAuP,CAAC,CAAC,SAAS;CAC/R,MAAMA,IAAAA,EAAE,Q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AyBC,eAAAA,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"create-completion.cjs","names":["z","action"],"sources":["../../src/actions/create-completion.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { openai } from \"../app\";\n\nexport const OpenaiCreateCompletionInput = z.object({\n n: z.number().int().describe(\"How many completions to generate for each prompt. Note: Because this parameter generates many completions, it can quickly consume your token quota. Use carefully and ensure that you have reasonable settings for max_tokens and stop. Default is 1.\").optional(),\n echo: z.boolean().describe(\"Echo back the prompt in addition to the completion. Default is false.\").optional(),\n seed: z.number().int().describe(\"If specified, our system will make a best effort to sample deterministically, such that repeated requests with the same seed and parameters should return the same result. Determinism is not guaranteed, and you should refer to the system_fingerprint response parameter to monitor changes in the backend.\").optional(),\n stop: z.union([z.string(), z.array(z.string())]).optional(),\n user: z.string().describe(\"A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse.\").optional(),\n model: z.string().describe(\"ID of the model to use. You can use the List models API to see all of your available models, or see the Model overview for descriptions of them. Examples: 'gpt-3.5-turbo-instruct', 'davinci-002', 'babbage-002'.\"),\n top_p: z.number().describe(\"An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass. So 0.1 means only the tokens comprising the top 10% probability mass are considered. We generally recommend altering this or temperature but not both. Default is 1.\").optional(),\n prompt: z.union([z.string(), z.array(z.string()), z.array(z.number().int()), z.array(z.array(z.number().int()))]),\n stream: z.boolean().describe(\"Whether to stream back partial progress. If set, tokens will be sent as data-only server-sent events as they become available, with the stream terminated by a data: [DONE] message. Default is false.\").optional(),\n suffix: z.string().describe(\"The suffix that comes after a completion of inserted text. This parameter is only supported for gpt-3.5-turbo-instruct.\").optional(),\n best_of: z.number().int().describe(\"Generates best_of completions server-side and returns the \\\"best\\\" (the one with the highest log probability per token). Results cannot be streamed. When used with n, best_of controls the number of candidate completions and n specifies how many to return. best_of must be greater than n. Note: Because this parameter generates many completions, it can quickly consume your token quota. Use carefully and ensure that you have reasonable settings for max_tokens and stop.\").optional(),\n logprobs: z.number().int().describe(\"Include the log probabilities on the logprobs most likely output tokens, as well the chosen tokens. For example, if logprobs is 5, the API will return a list of the 5 most likely tokens. The API will always return the logprob of the sampled token, so there may be up to logprobs+1 elements in the response. The maximum value for logprobs is 5.\").optional(),\n logit_bias: z.record(z.string(), z.unknown()).describe(\"Modify the likelihood of specified tokens appearing in the completion. Accepts a JSON object that maps tokens (specified by their token ID in the GPT tokenizer) to an associated bias value from -100 to 100. You can use this tokenizer tool to convert text to token IDs. Mathematically, the bias is added to the logits generated by the model prior to sampling. The exact effect will vary per model, but values between -1 and 1 should decrease or increase likelihood of selection; values like -100 or 100 should result in a ban or exclusive selection of the relevant token.\").optional(),\n max_tokens: z.number().int().describe(\"The maximum number of tokens that can be generated in the completion. The token count of your prompt plus max_tokens cannot exceed the model's context length. Default is 16.\").optional(),\n temperature: z.number().describe(\"What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic. We generally recommend altering this or top_p but not both. Default is 1.\").optional(),\n stream_options: z.record(z.string(), z.unknown()).describe(\"Options for streaming responses. Can include 'include_usage' and 'include_obfuscation' fields.\").optional(),\n presence_penalty: z.number().describe(\"Number between -2.0 and 2.0. Positive values penalize new tokens based on whether they appear in the text so far, increasing the model's likelihood to talk about new topics. Default is 0.\").optional(),\n frequency_penalty: z.number().describe(\"Number between -2.0 and 2.0. Positive values penalize new tokens based on their existing frequency in the text so far, decreasing the model's likelihood to repeat the same line verbatim. Default is 0.\").optional(),\n}).describe(\"Request model for creating text completions via the legacy Completions API.\");\nconst OpenaiCreateCompletion_PromptTokensDetailsSchema = z.object({\n audio_tokens: z.number().int().describe(\"Number of audio tokens in the prompt.\").nullable().optional(),\n cached_tokens: z.number().int().describe(\"Number of cached tokens in the prompt.\").nullable().optional(),\n}).passthrough().describe(\"Breakdown of tokens used in the prompt.\");\nconst OpenaiCreateCompletion_CompletionTokensDetailsSchema = z.object({\n audio_tokens: z.number().int().describe(\"Number of audio tokens used.\").nullable().optional(),\n reasoning_tokens: z.number().int().describe(\"Number of reasoning tokens used.\").nullable().optional(),\n accepted_prediction_tokens: z.number().int().describe(\"Number of accepted prediction tokens.\").nullable().optional(),\n rejected_prediction_tokens: z.number().int().describe(\"Number of rejected prediction tokens.\").nullable().optional(),\n}).passthrough().describe(\"Breakdown of tokens used in a completion.\");\nconst OpenaiCreateCompletion_CompletionUsageSchema = z.object({\n total_tokens: z.number().int().describe(\"Total number of tokens used in the request (prompt + completion).\").nullable(),\n prompt_tokens: z.number().int().describe(\"Number of tokens in the prompt.\").nullable(),\n completion_tokens: z.number().int().describe(\"Number of tokens in the generated completion.\").nullable().optional(),\n prompt_tokens_details: OpenaiCreateCompletion_PromptTokensDetailsSchema.nullable().optional(),\n completion_tokens_details: OpenaiCreateCompletion_CompletionTokensDetailsSchema.nullable().optional(),\n}).passthrough().describe(\"Usage statistics for the completion request.\");\nconst OpenaiCreateCompletion_CompletionLogprobsSchema = z.object({\n tokens: z.array(z.string()).describe(\"The list of tokens generated.\").nullable().optional(),\n text_offset: z.array(z.number().int()).describe(\"The character offsets of each token in the completion.\").nullable().optional(),\n top_logprobs: z.array(z.record(z.string(), z.unknown()).nullable()).describe(\"For each token, a dictionary of the top alternative tokens and their log probabilities.\").nullable().optional(),\n token_logprobs: z.array(z.number().nullable()).describe(\"The log probabilities of each token.\").nullable().optional(),\n}).passthrough().describe(\"Log probability information for a completion.\");\nconst OpenaiCreateCompletion_CompletionChoiceSchema = z.object({\n text: z.string().describe(\"The generated completion text.\").nullable(),\n index: z.number().int().describe(\"The index of this completion choice.\").nullable(),\n logprobs: OpenaiCreateCompletion_CompletionLogprobsSchema.nullable().optional(),\n finish_reason: z.string().describe(\"The reason the completion finished. Possible values: 'stop' (API returned complete message), 'length' (incomplete due to max_tokens limit), 'content_filter' (content was filtered by content filters).\").nullable().optional(),\n}).passthrough().describe(\"A single completion choice returned by the API.\");\nexport const OpenaiCreateCompletionOutput = z.object({\n id: z.string().describe(\"A unique identifier for the completion.\").nullable(),\n model: z.string().describe(\"The model used for completion.\").nullable(),\n usage: OpenaiCreateCompletion_CompletionUsageSchema.nullable().optional(),\n object: z.string().describe(\"The object type, which is always 'text_completion'.\").nullable(),\n choices: z.array(OpenaiCreateCompletion_CompletionChoiceSchema).describe(\"The list of completion choices the model generated for the input prompt.\"),\n created: z.number().int().describe(\"The Unix timestamp (in seconds) of when the completion was created.\").nullable(),\n system_fingerprint: z.string().describe(\"This fingerprint represents the backend configuration that the model runs with. Can be used in conjunction with the seed request parameter to understand when backend changes have been made that might impact determinism.\").nullable().optional(),\n}).passthrough().describe(\"Response schema for text completion creation.\");\n\nexport const openaiCreateCompletion: AppAction<\n typeof OpenaiCreateCompletionInput,\n typeof OpenaiCreateCompletionOutput,\n typeof openai.credential\n> = action(\"OPENAI_CREATE_COMPLETION\", {\n slug: \"openai-create-completion\",\n name: \"Create Completion (Legacy)\",\n description: \"Tool to generate text completions using OpenAI's legacy Completions API. Use for single-turn text generation with models like gpt-3.5-turbo-instruct. Note: This endpoint is legacy; prefer Chat Completions for newer models.\",\n input: OpenaiCreateCompletionInput,\n output: OpenaiCreateCompletionOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,8BAA8BA,IAAAA,EAAE,OAAO;CAClD,GAAGA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uPAAuP,CAAC,CAAC,SAAS;CAC/R,MAAMA,IAAAA,EAAE,QAAQ,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS;CAC7G,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gTAAgT,CAAC,CAAC,SAAS;CAC3V,MAAMA,IAAAA,EAAE,MAAM,CAACA,IAAAA,EAAE,OA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  //#region src/actions/create-completion.d.ts
@@ -54,26 +56,7 @@ declare const OpenaiCreateCompletionOutput: z.ZodObject<{
54
56
  created: z.ZodNullable<z.ZodNumber>;
55
57
  system_fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
56
58
  }, z.core.$loose>;
57
- declare const openaiCreateCompletion: import("@keystrokehq/action").WorkflowActionDefinition<{
58
- model: string;
59
- prompt: string | string[] | number[] | number[][];
60
- n?: number | undefined;
61
- echo?: boolean | undefined;
62
- seed?: number | undefined;
63
- stop?: string | string[] | undefined;
64
- user?: string | undefined;
65
- top_p?: number | undefined;
66
- stream?: boolean | undefined;
67
- suffix?: string | undefined;
68
- best_of?: number | undefined;
69
- logprobs?: number | undefined;
70
- logit_bias?: Record<string, unknown> | undefined;
71
- max_tokens?: number | undefined;
72
- temperature?: number | undefined;
73
- stream_options?: Record<string, unknown> | undefined;
74
- presence_penalty?: number | undefined;
75
- frequency_penalty?: number | undefined;
76
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
59
+ declare const openaiCreateCompletion: AppAction<typeof OpenaiCreateCompletionInput, typeof OpenaiCreateCompletionOutput, typeof openai.credential>;
77
60
  //#endregion
78
61
  export { openaiCreateCompletion };
79
62
  //# sourceMappingURL=create-completion.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-completion.d.cts","names":[],"sources":["../../src/actions/create-completion.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAiD3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAU5B,sBAAA,gCAAsB,wBAAA;;;;;;;;;;;;;eAMjC,MAAA;;;mBAAA,MAAA"}
1
+ {"version":3,"file":"create-completion.d.cts","names":[],"sources":["../../src/actions/create-completion.ts"],"mappings":";;;;;cAMa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAiD3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAU5B,sBAAA,EAAwB,SAAA,QAC5B,2BAAA,SACA,4BAAA,SACA,MAAA,CAAO,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { openai } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/create-completion.d.ts
@@ -54,26 +56,7 @@ declare const OpenaiCreateCompletionOutput: z.ZodObject<{
54
56
  created: z.ZodNullable<z.ZodNumber>;
55
57
  system_fingerprint: z.ZodOptional<z.ZodNullable<z.ZodString>>;
56
58
  }, z.core.$loose>;
57
- declare const openaiCreateCompletion: import("@keystrokehq/action").WorkflowActionDefinition<{
58
- model: string;
59
- prompt: string | string[] | number[] | number[][];
60
- n?: number | undefined;
61
- echo?: boolean | undefined;
62
- seed?: number | undefined;
63
- stop?: string | string[] | undefined;
64
- user?: string | undefined;
65
- top_p?: number | undefined;
66
- stream?: boolean | undefined;
67
- suffix?: string | undefined;
68
- best_of?: number | undefined;
69
- logprobs?: number | undefined;
70
- logit_bias?: Record<string, unknown> | undefined;
71
- max_tokens?: number | undefined;
72
- temperature?: number | undefined;
73
- stream_options?: Record<string, unknown> | undefined;
74
- presence_penalty?: number | undefined;
75
- frequency_penalty?: number | undefined;
76
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
59
+ declare const openaiCreateCompletion: AppAction<typeof OpenaiCreateCompletionInput, typeof OpenaiCreateCompletionOutput, typeof openai.credential>;
77
60
  //#endregion
78
61
  export { openaiCreateCompletion };
79
62
  //# sourceMappingURL=create-completion.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-completion.d.mts","names":[],"sources":["../../src/actions/create-completion.ts"],"mappings":";;;cAIa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAiD3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAU5B,sBAAA,gCAAsB,wBAAA;;;;;;;;;;;;;eAMjC,MAAA;;;mBAAA,MAAA"}
1
+ {"version":3,"file":"create-completion.d.mts","names":[],"sources":["../../src/actions/create-completion.ts"],"mappings":";;;;;cAMa,2BAAA,EAA2B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;cAiD3B,4BAAA,EAA4B,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAU5B,sBAAA,EAAwB,SAAA,QAC5B,2BAAA,SACA,4BAAA,SACA,MAAA,CAAO,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  //#region src/actions/create-completion.ts
@@ -1 +1 @@
1
- {"version":3,"file":"create-completion.mjs","names":[],"sources":["../../src/actions/create-completion.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenaiCreateCompletionInput = z.object({\n n: z.number().int().describe(\"How many completions to generate for each prompt. Note: Because this parameter generates many completions, it can quickly consume your token quota. Use carefully and ensure that you have reasonable settings for max_tokens and stop. Default is 1.\").optional(),\n echo: z.boolean().describe(\"Echo back the prompt in addition to the completion. Default is false.\").optional(),\n seed: z.number().int().describe(\"If specified, our system will make a best effort to sample deterministically, such that repeated requests with the same seed and parameters should return the same result. Determinism is not guaranteed, and you should refer to the system_fingerprint response parameter to monitor changes in the backend.\").optional(),\n stop: z.union([z.string(), z.array(z.string())]).optional(),\n user: z.string().describe(\"A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse.\").optional(),\n model: z.string().describe(\"ID of the model to use. You can use the List models API to see all of your available models, or see the Model overview for descriptions of them. Examples: 'gpt-3.5-turbo-instruct', 'davinci-002', 'babbage-002'.\"),\n top_p: z.number().describe(\"An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass. So 0.1 means only the tokens comprising the top 10% probability mass are considered. We generally recommend altering this or temperature but not both. Default is 1.\").optional(),\n prompt: z.union([z.string(), z.array(z.string()), z.array(z.number().int()), z.array(z.array(z.number().int()))]),\n stream: z.boolean().describe(\"Whether to stream back partial progress. If set, tokens will be sent as data-only server-sent events as they become available, with the stream terminated by a data: [DONE] message. Default is false.\").optional(),\n suffix: z.string().describe(\"The suffix that comes after a completion of inserted text. This parameter is only supported for gpt-3.5-turbo-instruct.\").optional(),\n best_of: z.number().int().describe(\"Generates best_of completions server-side and returns the \\\"best\\\" (the one with the highest log probability per token). Results cannot be streamed. When used with n, best_of controls the number of candidate completions and n specifies how many to return. best_of must be greater than n. Note: Because this parameter generates many completions, it can quickly consume your token quota. Use carefully and ensure that you have reasonable settings for max_tokens and stop.\").optional(),\n logprobs: z.number().int().describe(\"Include the log probabilities on the logprobs most likely output tokens, as well the chosen tokens. For example, if logprobs is 5, the API will return a list of the 5 most likely tokens. The API will always return the logprob of the sampled token, so there may be up to logprobs+1 elements in the response. The maximum value for logprobs is 5.\").optional(),\n logit_bias: z.record(z.string(), z.unknown()).describe(\"Modify the likelihood of specified tokens appearing in the completion. Accepts a JSON object that maps tokens (specified by their token ID in the GPT tokenizer) to an associated bias value from -100 to 100. You can use this tokenizer tool to convert text to token IDs. Mathematically, the bias is added to the logits generated by the model prior to sampling. The exact effect will vary per model, but values between -1 and 1 should decrease or increase likelihood of selection; values like -100 or 100 should result in a ban or exclusive selection of the relevant token.\").optional(),\n max_tokens: z.number().int().describe(\"The maximum number of tokens that can be generated in the completion. The token count of your prompt plus max_tokens cannot exceed the model's context length. Default is 16.\").optional(),\n temperature: z.number().describe(\"What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic. We generally recommend altering this or top_p but not both. Default is 1.\").optional(),\n stream_options: z.record(z.string(), z.unknown()).describe(\"Options for streaming responses. Can include 'include_usage' and 'include_obfuscation' fields.\").optional(),\n presence_penalty: z.number().describe(\"Number between -2.0 and 2.0. Positive values penalize new tokens based on whether they appear in the text so far, increasing the model's likelihood to talk about new topics. Default is 0.\").optional(),\n frequency_penalty: z.number().describe(\"Number between -2.0 and 2.0. Positive values penalize new tokens based on their existing frequency in the text so far, decreasing the model's likelihood to repeat the same line verbatim. Default is 0.\").optional(),\n}).describe(\"Request model for creating text completions via the legacy Completions API.\");\nconst OpenaiCreateCompletion_PromptTokensDetailsSchema = z.object({\n audio_tokens: z.number().int().describe(\"Number of audio tokens in the prompt.\").nullable().optional(),\n cached_tokens: z.number().int().describe(\"Number of cached tokens in the prompt.\").nullable().optional(),\n}).passthrough().describe(\"Breakdown of tokens used in the prompt.\");\nconst OpenaiCreateCompletion_CompletionTokensDetailsSchema = z.object({\n audio_tokens: z.number().int().describe(\"Number of audio tokens used.\").nullable().optional(),\n reasoning_tokens: z.number().int().describe(\"Number of reasoning tokens used.\").nullable().optional(),\n accepted_prediction_tokens: z.number().int().describe(\"Number of accepted prediction tokens.\").nullable().optional(),\n rejected_prediction_tokens: z.number().int().describe(\"Number of rejected prediction tokens.\").nullable().optional(),\n}).passthrough().describe(\"Breakdown of tokens used in a completion.\");\nconst OpenaiCreateCompletion_CompletionUsageSchema = z.object({\n total_tokens: z.number().int().describe(\"Total number of tokens used in the request (prompt + completion).\").nullable(),\n prompt_tokens: z.number().int().describe(\"Number of tokens in the prompt.\").nullable(),\n completion_tokens: z.number().int().describe(\"Number of tokens in the generated completion.\").nullable().optional(),\n prompt_tokens_details: OpenaiCreateCompletion_PromptTokensDetailsSchema.nullable().optional(),\n completion_tokens_details: OpenaiCreateCompletion_CompletionTokensDetailsSchema.nullable().optional(),\n}).passthrough().describe(\"Usage statistics for the completion request.\");\nconst OpenaiCreateCompletion_CompletionLogprobsSchema = z.object({\n tokens: z.array(z.string()).describe(\"The list of tokens generated.\").nullable().optional(),\n text_offset: z.array(z.number().int()).describe(\"The character offsets of each token in the completion.\").nullable().optional(),\n top_logprobs: z.array(z.record(z.string(), z.unknown()).nullable()).describe(\"For each token, a dictionary of the top alternative tokens and their log probabilities.\").nullable().optional(),\n token_logprobs: z.array(z.number().nullable()).describe(\"The log probabilities of each token.\").nullable().optional(),\n}).passthrough().describe(\"Log probability information for a completion.\");\nconst OpenaiCreateCompletion_CompletionChoiceSchema = z.object({\n text: z.string().describe(\"The generated completion text.\").nullable(),\n index: z.number().int().describe(\"The index of this completion choice.\").nullable(),\n logprobs: OpenaiCreateCompletion_CompletionLogprobsSchema.nullable().optional(),\n finish_reason: z.string().describe(\"The reason the completion finished. Possible values: 'stop' (API returned complete message), 'length' (incomplete due to max_tokens limit), 'content_filter' (content was filtered by content filters).\").nullable().optional(),\n}).passthrough().describe(\"A single completion choice returned by the API.\");\nexport const OpenaiCreateCompletionOutput = z.object({\n id: z.string().describe(\"A unique identifier for the completion.\").nullable(),\n model: z.string().describe(\"The model used for completion.\").nullable(),\n usage: OpenaiCreateCompletion_CompletionUsageSchema.nullable().optional(),\n object: z.string().describe(\"The object type, which is always 'text_completion'.\").nullable(),\n choices: z.array(OpenaiCreateCompletion_CompletionChoiceSchema).describe(\"The list of completion choices the model generated for the input prompt.\"),\n created: z.number().int().describe(\"The Unix timestamp (in seconds) of when the completion was created.\").nullable(),\n system_fingerprint: z.string().describe(\"This fingerprint represents the backend configuration that the model runs with. Can be used in conjunction with the seed request parameter to understand when backend changes have been made that might impact determinism.\").nullable().optional(),\n}).passthrough().describe(\"Response schema for text completion creation.\");\n\nexport const openaiCreateCompletion = action(\"OPENAI_CREATE_COMPLETION\", {\n slug: \"openai-create-completion\",\n name: \"Create Completion (Legacy)\",\n description: \"Tool to generate text completions using OpenAI's legacy Completions API. Use for single-turn text generation with models like gpt-3.5-turbo-instruct. Note: This endpoint is legacy; prefer Chat Completions for newer models.\",\n input: OpenaiCreateCompletionInput,\n output: OpenaiCreateCompletion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E,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,sCAAsC,CAAC,CAAC,SAAS;CAClF,UAAU,gDAAgD,SAAS,CAAC,CAAC,SAAS;CAC9E,eAAe,EAAE,OAAO,CAAC,CAAC,SAAS,yMAAyM,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;AACpQ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,iDAAiD;AAW3E,MAAa,yBAAyB,OAAO,4BAA4B;CACvE,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAf0C,EAAE,OAAO;EACnD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,yCAAyC,CAAC,CAAC,SAAS;EAC5E,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;EACtE,OAAO,6CAA6C,SAAS,CAAC,CAAC,SAAS;EACxE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,qDAAqD,CAAC,CAAC,SAAS;EAC5F,SAAS,EAAE,MAAM,6CAA6C,CAAC,CAAC,SAAS,0EAA0E;EACnJ,SAAS,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,qEAAqE,CAAC,CAAC,SAAS;EACnH,oBAAoB,EAAE,OAAO,CAAC,CAAC,SAAS,6NAA6N,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7R,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+CAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"create-completion.mjs","names":[],"sources":["../../src/actions/create-completion.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { openai } from \"../app\";\n\nexport const OpenaiCreateCompletionInput = z.object({\n n: z.number().int().describe(\"How many completions to generate for each prompt. Note: Because this parameter generates many completions, it can quickly consume your token quota. Use carefully and ensure that you have reasonable settings for max_tokens and stop. Default is 1.\").optional(),\n echo: z.boolean().describe(\"Echo back the prompt in addition to the completion. Default is false.\").optional(),\n seed: z.number().int().describe(\"If specified, our system will make a best effort to sample deterministically, such that repeated requests with the same seed and parameters should return the same result. Determinism is not guaranteed, and you should refer to the system_fingerprint response parameter to monitor changes in the backend.\").optional(),\n stop: z.union([z.string(), z.array(z.string())]).optional(),\n user: z.string().describe(\"A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse.\").optional(),\n model: z.string().describe(\"ID of the model to use. You can use the List models API to see all of your available models, or see the Model overview for descriptions of them. Examples: 'gpt-3.5-turbo-instruct', 'davinci-002', 'babbage-002'.\"),\n top_p: z.number().describe(\"An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass. So 0.1 means only the tokens comprising the top 10% probability mass are considered. We generally recommend altering this or temperature but not both. Default is 1.\").optional(),\n prompt: z.union([z.string(), z.array(z.string()), z.array(z.number().int()), z.array(z.array(z.number().int()))]),\n stream: z.boolean().describe(\"Whether to stream back partial progress. If set, tokens will be sent as data-only server-sent events as they become available, with the stream terminated by a data: [DONE] message. Default is false.\").optional(),\n suffix: z.string().describe(\"The suffix that comes after a completion of inserted text. This parameter is only supported for gpt-3.5-turbo-instruct.\").optional(),\n best_of: z.number().int().describe(\"Generates best_of completions server-side and returns the \\\"best\\\" (the one with the highest log probability per token). Results cannot be streamed. When used with n, best_of controls the number of candidate completions and n specifies how many to return. best_of must be greater than n. Note: Because this parameter generates many completions, it can quickly consume your token quota. Use carefully and ensure that you have reasonable settings for max_tokens and stop.\").optional(),\n logprobs: z.number().int().describe(\"Include the log probabilities on the logprobs most likely output tokens, as well the chosen tokens. For example, if logprobs is 5, the API will return a list of the 5 most likely tokens. The API will always return the logprob of the sampled token, so there may be up to logprobs+1 elements in the response. The maximum value for logprobs is 5.\").optional(),\n logit_bias: z.record(z.string(), z.unknown()).describe(\"Modify the likelihood of specified tokens appearing in the completion. Accepts a JSON object that maps tokens (specified by their token ID in the GPT tokenizer) to an associated bias value from -100 to 100. You can use this tokenizer tool to convert text to token IDs. Mathematically, the bias is added to the logits generated by the model prior to sampling. The exact effect will vary per model, but values between -1 and 1 should decrease or increase likelihood of selection; values like -100 or 100 should result in a ban or exclusive selection of the relevant token.\").optional(),\n max_tokens: z.number().int().describe(\"The maximum number of tokens that can be generated in the completion. The token count of your prompt plus max_tokens cannot exceed the model's context length. Default is 16.\").optional(),\n temperature: z.number().describe(\"What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic. We generally recommend altering this or top_p but not both. Default is 1.\").optional(),\n stream_options: z.record(z.string(), z.unknown()).describe(\"Options for streaming responses. Can include 'include_usage' and 'include_obfuscation' fields.\").optional(),\n presence_penalty: z.number().describe(\"Number between -2.0 and 2.0. Positive values penalize new tokens based on whether they appear in the text so far, increasing the model's likelihood to talk about new topics. Default is 0.\").optional(),\n frequency_penalty: z.number().describe(\"Number between -2.0 and 2.0. Positive values penalize new tokens based on their existing frequency in the text so far, decreasing the model's likelihood to repeat the same line verbatim. Default is 0.\").optional(),\n}).describe(\"Request model for creating text completions via the legacy Completions API.\");\nconst OpenaiCreateCompletion_PromptTokensDetailsSchema = z.object({\n audio_tokens: z.number().int().describe(\"Number of audio tokens in the prompt.\").nullable().optional(),\n cached_tokens: z.number().int().describe(\"Number of cached tokens in the prompt.\").nullable().optional(),\n}).passthrough().describe(\"Breakdown of tokens used in the prompt.\");\nconst OpenaiCreateCompletion_CompletionTokensDetailsSchema = z.object({\n audio_tokens: z.number().int().describe(\"Number of audio tokens used.\").nullable().optional(),\n reasoning_tokens: z.number().int().describe(\"Number of reasoning tokens used.\").nullable().optional(),\n accepted_prediction_tokens: z.number().int().describe(\"Number of accepted prediction tokens.\").nullable().optional(),\n rejected_prediction_tokens: z.number().int().describe(\"Number of rejected prediction tokens.\").nullable().optional(),\n}).passthrough().describe(\"Breakdown of tokens used in a completion.\");\nconst OpenaiCreateCompletion_CompletionUsageSchema = z.object({\n total_tokens: z.number().int().describe(\"Total number of tokens used in the request (prompt + completion).\").nullable(),\n prompt_tokens: z.number().int().describe(\"Number of tokens in the prompt.\").nullable(),\n completion_tokens: z.number().int().describe(\"Number of tokens in the generated completion.\").nullable().optional(),\n prompt_tokens_details: OpenaiCreateCompletion_PromptTokensDetailsSchema.nullable().optional(),\n completion_tokens_details: OpenaiCreateCompletion_CompletionTokensDetailsSchema.nullable().optional(),\n}).passthrough().describe(\"Usage statistics for the completion request.\");\nconst OpenaiCreateCompletion_CompletionLogprobsSchema = z.object({\n tokens: z.array(z.string()).describe(\"The list of tokens generated.\").nullable().optional(),\n text_offset: z.array(z.number().int()).describe(\"The character offsets of each token in the completion.\").nullable().optional(),\n top_logprobs: z.array(z.record(z.string(), z.unknown()).nullable()).describe(\"For each token, a dictionary of the top alternative tokens and their log probabilities.\").nullable().optional(),\n token_logprobs: z.array(z.number().nullable()).describe(\"The log probabilities of each token.\").nullable().optional(),\n}).passthrough().describe(\"Log probability information for a completion.\");\nconst OpenaiCreateCompletion_CompletionChoiceSchema = z.object({\n text: z.string().describe(\"The generated completion text.\").nullable(),\n index: z.number().int().describe(\"The index of this completion choice.\").nullable(),\n logprobs: OpenaiCreateCompletion_CompletionLogprobsSchema.nullable().optional(),\n finish_reason: z.string().describe(\"The reason the completion finished. Possible values: 'stop' (API returned complete message), 'length' (incomplete due to max_tokens limit), 'content_filter' (content was filtered by content filters).\").nullable().optional(),\n}).passthrough().describe(\"A single completion choice returned by the API.\");\nexport const OpenaiCreateCompletionOutput = z.object({\n id: z.string().describe(\"A unique identifier for the completion.\").nullable(),\n model: z.string().describe(\"The model used for completion.\").nullable(),\n usage: OpenaiCreateCompletion_CompletionUsageSchema.nullable().optional(),\n object: z.string().describe(\"The object type, which is always 'text_completion'.\").nullable(),\n choices: z.array(OpenaiCreateCompletion_CompletionChoiceSchema).describe(\"The list of completion choices the model generated for the input prompt.\"),\n created: z.number().int().describe(\"The Unix timestamp (in seconds) of when the completion was created.\").nullable(),\n system_fingerprint: z.string().describe(\"This fingerprint represents the backend configuration that the model runs with. Can be used in conjunction with the seed request parameter to understand when backend changes have been made that might impact determinism.\").nullable().optional(),\n}).passthrough().describe(\"Response schema for text completion creation.\");\n\nexport const openaiCreateCompletion: AppAction<\n typeof OpenaiCreateCompletionInput,\n typeof OpenaiCreateCompletionOutput,\n typeof openai.credential\n> = action(\"OPENAI_CREATE_COMPLETION\", {\n slug: \"openai-create-completion\",\n name: \"Create Completion (Legacy)\",\n description: \"Tool to generate text completions using OpenAI's legacy Completions API. Use for single-turn text generation with models like gpt-3.5-turbo-instruct. Note: This endpoint is legacy; prefer Chat Completions for newer models.\",\n input: OpenaiCreateCompletionInput,\n output: OpenaiCreateCompletionOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,8BAA8B,EAAE,OAAO;CAClD,GAAG,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uPAAuP,CAAC,CAAC,SAAS;CAC/R,MAAM,EAAE,QAAQ,CAAC,CAAC,SAAS,uEAAuE,CAAC,CAAC,SAAS;CAC7G,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,gTAAgT,CAAC,CAAC,SAAS;CAC3V,MAAM,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS;CAC1D,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,oGAAoG,CAAC,CAAC,SAAS;CACzI,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,oNAAoN;CAC/O,OAAO,EAAE,OAAO,CAAC,CAAC,SAAS,6TAA6T,CAAC,CAAC,SAAS;CACnW,QAAQ,EAAE,MAAM;EAAC,EAAE,OAAO;EAAG,EAAE,MAAM,EAAE,OAAO,CAAC;EAAG,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC;EAAG,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,IAAI,CAA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,CAAC,SAAS,6NAA6N,CAAC,CAAC,SAAS,CAAC,CAAC,SAAS;CAC7R,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,+CAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/create-container-file.ts
@@ -1 +1 @@
1
- {"version":3,"file":"create-container-file.cjs","names":["z","action"],"sources":["../../src/actions/create-container-file.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenaiCreateContainerFileInput = z.object({\n file: z.string().describe(\"Binary content of the file to upload directly. Use this for multipart/form-data requests.\").optional(),\n file_id: z.string().describe(\"ID of an existing file to add to the container. Use this for JSON requests.\").optional(),\n container_id: z.string().describe(\"The ID of the container to create the file in\"),\n}).describe(\"Request model for creating a container file.\");\nexport const OpenaiCreateContainerFileOutput = z.object({\n id: z.string().describe(\"Unique identifier for the file\").nullable(),\n path: z.string().describe(\"Path of the file in the container\").nullable(),\n bytes: z.number().int().describe(\"Size of the file in bytes\").nullable(),\n object: z.string().describe(\"The type of this object, always 'container.file'\").nullable(),\n source: z.string().describe(\"Source of the file (e.g., 'user', 'assistant')\").nullable(),\n created_at: z.number().int().describe(\"Unix timestamp (in seconds) when the file was created\").nullable(),\n container_id: z.string().describe(\"The container this file belongs to\").nullable(),\n}).passthrough().describe(\"Response model for created container file.\");\n\nexport const openaiCreateContainerFile = action(\"OPENAI_CREATE_CONTAINER_FILE\", {\n slug: \"openai-create-container-file\",\n name: \"Create Container File\",\n description: \"Tool to create a file in a container. Use when adding files to an existing container either by referencing an uploaded file ID or by uploading raw file content directly.\",\n input: OpenaiCreateContainerFileInput,\n output: OpenaiCreateContainerFileOutput,\n});\n"],"mappings":";;;AAIA,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2FAA2F,CAAC,CAAC,SAAS;CAChI,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;CACrH,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;AACnF,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAC1D,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACnE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACxE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CACvE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CACzF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CACvF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CACxG,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;AACnF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAA4C;AAEtE,MAAa,4BAA4BC,eAAAA,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
1
+ {"version":3,"file":"create-container-file.cjs","names":["z","action"],"sources":["../../src/actions/create-container-file.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { openai } from \"../app\";\n\nexport const OpenaiCreateContainerFileInput = z.object({\n file: z.string().describe(\"Binary content of the file to upload directly. Use this for multipart/form-data requests.\").optional(),\n file_id: z.string().describe(\"ID of an existing file to add to the container. Use this for JSON requests.\").optional(),\n container_id: z.string().describe(\"The ID of the container to create the file in\"),\n}).describe(\"Request model for creating a container file.\");\nexport const OpenaiCreateContainerFileOutput = z.object({\n id: z.string().describe(\"Unique identifier for the file\").nullable(),\n path: z.string().describe(\"Path of the file in the container\").nullable(),\n bytes: z.number().int().describe(\"Size of the file in bytes\").nullable(),\n object: z.string().describe(\"The type of this object, always 'container.file'\").nullable(),\n source: z.string().describe(\"Source of the file (e.g., 'user', 'assistant')\").nullable(),\n created_at: z.number().int().describe(\"Unix timestamp (in seconds) when the file was created\").nullable(),\n container_id: z.string().describe(\"The container this file belongs to\").nullable(),\n}).passthrough().describe(\"Response model for created container file.\");\n\nexport const openaiCreateContainerFile: AppAction<\n typeof OpenaiCreateContainerFileInput,\n typeof OpenaiCreateContainerFileOutput,\n typeof openai.credential\n> = action(\"OPENAI_CREATE_CONTAINER_FILE\", {\n slug: \"openai-create-container-file\",\n name: \"Create Container File\",\n description: \"Tool to create a file in a container. Use when adding files to an existing container either by referencing an uploaded file ID or by uploading raw file content directly.\",\n input: OpenaiCreateContainerFileInput,\n output: OpenaiCreateContainerFileOutput,\n});\n"],"mappings":";;;;AAMA,MAAa,iCAAiCA,IAAAA,EAAE,OAAO;CACrD,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,2FAA2F,CAAC,CAAC,SAAS;CAChI,SAASA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;CACrH,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;AACnF,CAAC,CAAC,CAAC,SAAS,8CAA8C;AAC1D,MAAa,kCAAkCA,IAAAA,EAAE,OAAO;CACtD,IAAIA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;CACnE,MAAMA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;CACxE,OAAOA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;CACvE,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;CACzF,QAAQA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;CACvF,YAAYA,IAAAA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;CACxG,cAAcA,IAAAA,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;AACnF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAA4C;AAEtE,MAAa,4BAITC,eAAAA,OAAO,gCAAgC;CACzC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAAO;CACP,QAAQ;AACV,CAAC"}
@@ -1,3 +1,5 @@
1
+ import { openai } from "../app.cjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/create-container-file.d.ts
@@ -15,11 +17,7 @@ declare const OpenaiCreateContainerFileOutput: z.ZodObject<{
15
17
  created_at: z.ZodNullable<z.ZodNumber>;
16
18
  container_id: z.ZodNullable<z.ZodString>;
17
19
  }, z.core.$loose>;
18
- declare const openaiCreateContainerFile: import("@keystrokehq/action").WorkflowActionDefinition<{
19
- container_id: string;
20
- file?: string | undefined;
21
- file_id?: string | undefined;
22
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
20
+ declare const openaiCreateContainerFile: AppAction<typeof OpenaiCreateContainerFileInput, typeof OpenaiCreateContainerFileOutput, typeof openai.credential>;
23
21
  //#endregion
24
22
  export { openaiCreateContainerFile };
25
23
  //# sourceMappingURL=create-container-file.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-container-file.d.cts","names":[],"sources":["../../src/actions/create-container-file.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;cAK9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;cAU/B,yBAAA,gCAAyB,wBAAA"}
1
+ {"version":3,"file":"create-container-file.d.cts","names":[],"sources":["../../src/actions/create-container-file.ts"],"mappings":";;;;;cAMa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;cAK9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;cAU/B,yBAAA,EAA2B,SAAA,QAC/B,8BAAA,SACA,+BAAA,SACA,MAAA,CAAO,UAAA"}
@@ -1,3 +1,5 @@
1
+ import { openai } from "../app.mjs";
2
+ import { AppAction } from "@keystrokehq/keystroke/app";
1
3
  import { z } from "zod";
2
4
 
3
5
  //#region src/actions/create-container-file.d.ts
@@ -15,11 +17,7 @@ declare const OpenaiCreateContainerFileOutput: z.ZodObject<{
15
17
  created_at: z.ZodNullable<z.ZodNumber>;
16
18
  container_id: z.ZodNullable<z.ZodString>;
17
19
  }, z.core.$loose>;
18
- declare const openaiCreateContainerFile: import("@keystrokehq/action").WorkflowActionDefinition<{
19
- container_id: string;
20
- file?: string | undefined;
21
- file_id?: string | undefined;
22
- }, unknown, import("@keystrokehq/shared").ResolvedCredentials<readonly [import("@keystrokehq/shared").Credential]>, readonly [import("@keystrokehq/shared").Credential]>;
20
+ declare const openaiCreateContainerFile: AppAction<typeof OpenaiCreateContainerFileInput, typeof OpenaiCreateContainerFileOutput, typeof openai.credential>;
23
21
  //#endregion
24
22
  export { openaiCreateContainerFile };
25
23
  //# sourceMappingURL=create-container-file.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"create-container-file.d.mts","names":[],"sources":["../../src/actions/create-container-file.ts"],"mappings":";;;cAIa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;cAK9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;cAU/B,yBAAA,gCAAyB,wBAAA"}
1
+ {"version":3,"file":"create-container-file.d.mts","names":[],"sources":["../../src/actions/create-container-file.ts"],"mappings":";;;;;cAMa,8BAAA,EAA8B,CAAA,CAAA,SAAA;;;;;cAK9B,+BAAA,EAA+B,CAAA,CAAA,SAAA;;;;;;;;;cAU/B,yBAAA,EAA2B,SAAA,QAC/B,8BAAA,SACA,+BAAA,SACA,MAAA,CAAO,UAAA"}
@@ -1,3 +1,4 @@
1
+ import "../app.mjs";
1
2
  import { action } from "../action.mjs";
2
3
  import { z } from "zod";
3
4
  const openaiCreateContainerFile = action("OPENAI_CREATE_CONTAINER_FILE", {
@@ -1 +1 @@
1
- {"version":3,"file":"create-container-file.mjs","names":[],"sources":["../../src/actions/create-container-file.ts"],"sourcesContent":["import { z } from \"zod\";\n\nimport { action } from \"../action\";\n\nexport const OpenaiCreateContainerFileInput = z.object({\n file: z.string().describe(\"Binary content of the file to upload directly. Use this for multipart/form-data requests.\").optional(),\n file_id: z.string().describe(\"ID of an existing file to add to the container. Use this for JSON requests.\").optional(),\n container_id: z.string().describe(\"The ID of the container to create the file in\"),\n}).describe(\"Request model for creating a container file.\");\nexport const OpenaiCreateContainerFileOutput = z.object({\n id: z.string().describe(\"Unique identifier for the file\").nullable(),\n path: z.string().describe(\"Path of the file in the container\").nullable(),\n bytes: z.number().int().describe(\"Size of the file in bytes\").nullable(),\n object: z.string().describe(\"The type of this object, always 'container.file'\").nullable(),\n source: z.string().describe(\"Source of the file (e.g., 'user', 'assistant')\").nullable(),\n created_at: z.number().int().describe(\"Unix timestamp (in seconds) when the file was created\").nullable(),\n container_id: z.string().describe(\"The container this file belongs to\").nullable(),\n}).passthrough().describe(\"Response model for created container file.\");\n\nexport const openaiCreateContainerFile = action(\"OPENAI_CREATE_CONTAINER_FILE\", {\n slug: \"openai-create-container-file\",\n name: \"Create Container File\",\n description: \"Tool to create a file in a container. Use when adding files to an existing container either by referencing an uploaded file ID or by uploading raw file content directly.\",\n input: OpenaiCreateContainerFileInput,\n output: OpenaiCreateContainerFileOutput,\n});\n"],"mappings":";;AAmBA,MAAa,4BAA4B,OAAO,gCAAgC;CAC9E,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAnB4C,EAAE,OAAO;EACrD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2FAA2F,CAAC,CAAC,SAAS;EAChI,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;EACrH,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;CACnF,CAAC,CAAC,CAAC,SAAS,8CAeH;CACP,QAf6C,EAAE,OAAO;EACtD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;EACnE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;EACxE,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;EACvE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;EACzF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;EACvF,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;EACxG,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CACnF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAOhB;AACV,CAAC"}
1
+ {"version":3,"file":"create-container-file.mjs","names":[],"sources":["../../src/actions/create-container-file.ts"],"sourcesContent":["import type { AppAction } from \"@keystrokehq/keystroke/app\";\nimport { z } from \"zod\";\n\nimport { action } from \"../action\";\nimport { openai } from \"../app\";\n\nexport const OpenaiCreateContainerFileInput = z.object({\n file: z.string().describe(\"Binary content of the file to upload directly. Use this for multipart/form-data requests.\").optional(),\n file_id: z.string().describe(\"ID of an existing file to add to the container. Use this for JSON requests.\").optional(),\n container_id: z.string().describe(\"The ID of the container to create the file in\"),\n}).describe(\"Request model for creating a container file.\");\nexport const OpenaiCreateContainerFileOutput = z.object({\n id: z.string().describe(\"Unique identifier for the file\").nullable(),\n path: z.string().describe(\"Path of the file in the container\").nullable(),\n bytes: z.number().int().describe(\"Size of the file in bytes\").nullable(),\n object: z.string().describe(\"The type of this object, always 'container.file'\").nullable(),\n source: z.string().describe(\"Source of the file (e.g., 'user', 'assistant')\").nullable(),\n created_at: z.number().int().describe(\"Unix timestamp (in seconds) when the file was created\").nullable(),\n container_id: z.string().describe(\"The container this file belongs to\").nullable(),\n}).passthrough().describe(\"Response model for created container file.\");\n\nexport const openaiCreateContainerFile: AppAction<\n typeof OpenaiCreateContainerFileInput,\n typeof OpenaiCreateContainerFileOutput,\n typeof openai.credential\n> = action(\"OPENAI_CREATE_CONTAINER_FILE\", {\n slug: \"openai-create-container-file\",\n name: \"Create Container File\",\n description: \"Tool to create a file in a container. Use when adding files to an existing container either by referencing an uploaded file ID or by uploading raw file content directly.\",\n input: OpenaiCreateContainerFileInput,\n output: OpenaiCreateContainerFileOutput,\n});\n"],"mappings":";;;AAqBA,MAAa,4BAIT,OAAO,gCAAgC;CACzC,MAAM;CACN,MAAM;CACN,aAAa;CACb,OAvB4C,EAAE,OAAO;EACrD,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,2FAA2F,CAAC,CAAC,SAAS;EAChI,SAAS,EAAE,OAAO,CAAC,CAAC,SAAS,6EAA6E,CAAC,CAAC,SAAS;EACrH,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,+CAA+C;CACnF,CAAC,CAAC,CAAC,SAAS,8CAmBH;CACP,QAnB6C,EAAE,OAAO;EACtD,IAAI,EAAE,OAAO,CAAC,CAAC,SAAS,gCAAgC,CAAC,CAAC,SAAS;EACnE,MAAM,EAAE,OAAO,CAAC,CAAC,SAAS,mCAAmC,CAAC,CAAC,SAAS;EACxE,OAAO,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,2BAA2B,CAAC,CAAC,SAAS;EACvE,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,kDAAkD,CAAC,CAAC,SAAS;EACzF,QAAQ,EAAE,OAAO,CAAC,CAAC,SAAS,gDAAgD,CAAC,CAAC,SAAS;EACvF,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,uDAAuD,CAAC,CAAC,SAAS;EACxG,cAAc,EAAE,OAAO,CAAC,CAAC,SAAS,oCAAoC,CAAC,CAAC,SAAS;CACnF,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,SAAS,4CAWhB;AACV,CAAC"}
@@ -1,3 +1,4 @@
1
+ require("../app.cjs");
1
2
  const require_action = require("../action.cjs");
2
3
  let zod = require("zod");
3
4
  //#region src/actions/create-container.ts