@meetkai/mka1 0.48.38 → 0.48.40

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 (340) hide show
  1. package/bin/mcp-server.js +1027 -746
  2. package/bin/mcp-server.js.map +53 -55
  3. package/dist/commonjs/funcs/budgetsApiKeyEvents.d.ts +1 -1
  4. package/dist/commonjs/funcs/budgetsApiKeyEvents.js +1 -1
  5. package/dist/commonjs/funcs/budgetsDeleteApiKey.d.ts +1 -1
  6. package/dist/commonjs/funcs/budgetsDeleteApiKey.js +1 -1
  7. package/dist/commonjs/funcs/budgetsGetApiKey.d.ts +1 -1
  8. package/dist/commonjs/funcs/budgetsGetApiKey.js +1 -1
  9. package/dist/commonjs/funcs/budgetsList.d.ts +1 -1
  10. package/dist/commonjs/funcs/budgetsList.js +1 -1
  11. package/dist/commonjs/funcs/budgetsSetApiKey.d.ts +1 -1
  12. package/dist/commonjs/funcs/budgetsSetApiKey.js +1 -1
  13. package/dist/commonjs/funcs/llmConversationsCreateItems.d.ts +1 -2
  14. package/dist/commonjs/funcs/llmConversationsCreateItems.d.ts.map +1 -1
  15. package/dist/commonjs/funcs/llmConversationsCreateItems.js +1 -2
  16. package/dist/commonjs/funcs/llmConversationsCreateItems.js.map +1 -1
  17. package/dist/commonjs/funcs/llmConversationsListItems.d.ts +1 -2
  18. package/dist/commonjs/funcs/llmConversationsListItems.d.ts.map +1 -1
  19. package/dist/commonjs/funcs/llmConversationsListItems.js +1 -2
  20. package/dist/commonjs/funcs/llmConversationsListItems.js.map +1 -1
  21. package/dist/commonjs/funcs/llmPromptsDelete.js +1 -2
  22. package/dist/commonjs/funcs/llmPromptsDelete.js.map +1 -1
  23. package/dist/commonjs/lib/config.d.ts +2 -2
  24. package/dist/commonjs/lib/config.js +2 -2
  25. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  26. package/dist/commonjs/mcp-server/server.js +1 -1
  27. package/dist/commonjs/mcp-server/tools/budgetsApiKeyEvents.js +1 -1
  28. package/dist/commonjs/mcp-server/tools/budgetsApiKeyEvents.js.map +1 -1
  29. package/dist/commonjs/mcp-server/tools/budgetsDeleteApiKey.js +1 -1
  30. package/dist/commonjs/mcp-server/tools/budgetsDeleteApiKey.js.map +1 -1
  31. package/dist/commonjs/mcp-server/tools/budgetsGetApiKey.js +1 -1
  32. package/dist/commonjs/mcp-server/tools/budgetsGetApiKey.js.map +1 -1
  33. package/dist/commonjs/mcp-server/tools/budgetsList.js +1 -1
  34. package/dist/commonjs/mcp-server/tools/budgetsList.js.map +1 -1
  35. package/dist/commonjs/mcp-server/tools/budgetsSetApiKey.js +1 -1
  36. package/dist/commonjs/mcp-server/tools/budgetsSetApiKey.js.map +1 -1
  37. package/dist/commonjs/models/components/conversationobject.d.ts +3 -0
  38. package/dist/commonjs/models/components/conversationobject.d.ts.map +1 -1
  39. package/dist/commonjs/models/components/conversationobject.js.map +1 -1
  40. package/dist/commonjs/models/components/createconversationrequest.d.ts +3 -0
  41. package/dist/commonjs/models/components/createconversationrequest.d.ts.map +1 -1
  42. package/dist/commonjs/models/components/createconversationrequest.js.map +1 -1
  43. package/dist/commonjs/models/components/evalfewshotconfig.d.ts +4 -3
  44. package/dist/commonjs/models/components/evalfewshotconfig.d.ts.map +1 -1
  45. package/dist/commonjs/models/components/evalfewshotconfig.js +3 -2
  46. package/dist/commonjs/models/components/evalfewshotconfig.js.map +1 -1
  47. package/dist/commonjs/models/components/evalmetric.d.ts +37 -0
  48. package/dist/commonjs/models/components/evalmetric.d.ts.map +1 -0
  49. package/dist/commonjs/models/components/{itemlistobject.js → evalmetric.js} +37 -26
  50. package/dist/commonjs/models/components/evalmetric.js.map +1 -0
  51. package/dist/commonjs/models/components/evaltask.d.ts +3 -2
  52. package/dist/commonjs/models/components/evaltask.d.ts.map +1 -1
  53. package/dist/commonjs/models/components/evaltask.js +3 -2
  54. package/dist/commonjs/models/components/evaltask.js.map +1 -1
  55. package/dist/commonjs/models/components/index.d.ts +1 -3
  56. package/dist/commonjs/models/components/index.d.ts.map +1 -1
  57. package/dist/commonjs/models/components/index.js +1 -3
  58. package/dist/commonjs/models/components/index.js.map +1 -1
  59. package/dist/commonjs/models/components/livekittokenrequest.d.ts +3 -0
  60. package/dist/commonjs/models/components/livekittokenrequest.d.ts.map +1 -1
  61. package/dist/commonjs/models/components/livekittokenrequest.js.map +1 -1
  62. package/dist/commonjs/models/components/responseobject.d.ts +2 -11
  63. package/dist/commonjs/models/components/responseobject.d.ts.map +1 -1
  64. package/dist/commonjs/models/components/responseobject.js +3 -15
  65. package/dist/commonjs/models/components/responseobject.js.map +1 -1
  66. package/dist/commonjs/models/components/responsescreaterequest.d.ts +3 -0
  67. package/dist/commonjs/models/components/responsescreaterequest.d.ts.map +1 -1
  68. package/dist/commonjs/models/components/responsescreaterequest.js.map +1 -1
  69. package/dist/commonjs/models/components/update.d.ts +3 -0
  70. package/dist/commonjs/models/components/update.d.ts.map +1 -1
  71. package/dist/commonjs/models/components/update.js.map +1 -1
  72. package/dist/commonjs/models/components/updateresponserequest.d.ts +3 -0
  73. package/dist/commonjs/models/components/updateresponserequest.d.ts.map +1 -1
  74. package/dist/commonjs/models/components/updateresponserequest.js.map +1 -1
  75. package/dist/commonjs/models/operations/conversationsitemscreate.d.ts +123 -0
  76. package/dist/commonjs/models/operations/conversationsitemscreate.d.ts.map +1 -1
  77. package/dist/commonjs/models/operations/conversationsitemscreate.js +219 -1
  78. package/dist/commonjs/models/operations/conversationsitemscreate.js.map +1 -1
  79. package/dist/commonjs/models/operations/conversationsitemslist.d.ts +123 -0
  80. package/dist/commonjs/models/operations/conversationsitemslist.d.ts.map +1 -1
  81. package/dist/commonjs/models/operations/conversationsitemslist.js +220 -1
  82. package/dist/commonjs/models/operations/conversationsitemslist.js.map +1 -1
  83. package/dist/commonjs/models/operations/conversationsitemsretrieve.d.ts +85 -2
  84. package/dist/commonjs/models/operations/conversationsitemsretrieve.d.ts.map +1 -1
  85. package/dist/commonjs/models/operations/conversationsitemsretrieve.js +73 -3
  86. package/dist/commonjs/models/operations/conversationsitemsretrieve.js.map +1 -1
  87. package/dist/commonjs/models/operations/deleteprompt.d.ts +0 -11
  88. package/dist/commonjs/models/operations/deleteprompt.d.ts.map +1 -1
  89. package/dist/commonjs/models/operations/deleteprompt.js +1 -17
  90. package/dist/commonjs/models/operations/deleteprompt.js.map +1 -1
  91. package/dist/commonjs/models/operations/getapikeybudgets.d.ts +2 -0
  92. package/dist/commonjs/models/operations/getapikeybudgets.d.ts.map +1 -1
  93. package/dist/commonjs/models/operations/getapikeybudgets.js +4 -0
  94. package/dist/commonjs/models/operations/getapikeybudgets.js.map +1 -1
  95. package/dist/commonjs/models/operations/getorgbudgets.d.ts +2 -0
  96. package/dist/commonjs/models/operations/getorgbudgets.d.ts.map +1 -1
  97. package/dist/commonjs/models/operations/getorgbudgets.js +4 -0
  98. package/dist/commonjs/models/operations/getorgbudgets.js.map +1 -1
  99. package/dist/commonjs/models/operations/listbudgets.d.ts +2 -0
  100. package/dist/commonjs/models/operations/listbudgets.d.ts.map +1 -1
  101. package/dist/commonjs/models/operations/listbudgets.js +4 -0
  102. package/dist/commonjs/models/operations/listbudgets.js.map +1 -1
  103. package/dist/commonjs/models/operations/listevalsuiteversions.d.ts +8 -8
  104. package/dist/commonjs/models/operations/listevalsuiteversions.d.ts.map +1 -1
  105. package/dist/commonjs/models/operations/listevalsuiteversions.js +11 -12
  106. package/dist/commonjs/models/operations/listevalsuiteversions.js.map +1 -1
  107. package/dist/commonjs/models/operations/setapikeybudget.d.ts +2 -0
  108. package/dist/commonjs/models/operations/setapikeybudget.d.ts.map +1 -1
  109. package/dist/commonjs/models/operations/setapikeybudget.js +4 -0
  110. package/dist/commonjs/models/operations/setapikeybudget.js.map +1 -1
  111. package/dist/commonjs/models/operations/setorgbudget.d.ts +2 -0
  112. package/dist/commonjs/models/operations/setorgbudget.d.ts.map +1 -1
  113. package/dist/commonjs/models/operations/setorgbudget.js +4 -0
  114. package/dist/commonjs/models/operations/setorgbudget.js.map +1 -1
  115. package/dist/commonjs/react-query/budgetsApiKeyEvents.d.ts +2 -2
  116. package/dist/commonjs/react-query/budgetsApiKeyEvents.js +2 -2
  117. package/dist/commonjs/react-query/budgetsDeleteApiKey.d.ts +1 -1
  118. package/dist/commonjs/react-query/budgetsDeleteApiKey.js +1 -1
  119. package/dist/commonjs/react-query/budgetsGetApiKey.d.ts +2 -2
  120. package/dist/commonjs/react-query/budgetsGetApiKey.js +2 -2
  121. package/dist/commonjs/react-query/budgetsList.d.ts +2 -2
  122. package/dist/commonjs/react-query/budgetsList.js +2 -2
  123. package/dist/commonjs/react-query/budgetsSetApiKey.d.ts +1 -1
  124. package/dist/commonjs/react-query/budgetsSetApiKey.js +1 -1
  125. package/dist/commonjs/react-query/llmConversationsCreateItems.d.ts +1 -2
  126. package/dist/commonjs/react-query/llmConversationsCreateItems.d.ts.map +1 -1
  127. package/dist/commonjs/react-query/llmConversationsCreateItems.js.map +1 -1
  128. package/dist/commonjs/react-query/llmConversationsListItems.core.d.ts +1 -2
  129. package/dist/commonjs/react-query/llmConversationsListItems.core.d.ts.map +1 -1
  130. package/dist/commonjs/react-query/llmConversationsListItems.core.js.map +1 -1
  131. package/dist/commonjs/sdk/budgets.d.ts +5 -5
  132. package/dist/commonjs/sdk/budgets.js +5 -5
  133. package/dist/commonjs/sdk/conversations.d.ts +2 -2
  134. package/dist/commonjs/sdk/conversations.d.ts.map +1 -1
  135. package/dist/esm/funcs/budgetsApiKeyEvents.d.ts +1 -1
  136. package/dist/esm/funcs/budgetsApiKeyEvents.js +1 -1
  137. package/dist/esm/funcs/budgetsDeleteApiKey.d.ts +1 -1
  138. package/dist/esm/funcs/budgetsDeleteApiKey.js +1 -1
  139. package/dist/esm/funcs/budgetsGetApiKey.d.ts +1 -1
  140. package/dist/esm/funcs/budgetsGetApiKey.js +1 -1
  141. package/dist/esm/funcs/budgetsList.d.ts +1 -1
  142. package/dist/esm/funcs/budgetsList.js +1 -1
  143. package/dist/esm/funcs/budgetsSetApiKey.d.ts +1 -1
  144. package/dist/esm/funcs/budgetsSetApiKey.js +1 -1
  145. package/dist/esm/funcs/llmConversationsCreateItems.d.ts +1 -2
  146. package/dist/esm/funcs/llmConversationsCreateItems.d.ts.map +1 -1
  147. package/dist/esm/funcs/llmConversationsCreateItems.js +1 -2
  148. package/dist/esm/funcs/llmConversationsCreateItems.js.map +1 -1
  149. package/dist/esm/funcs/llmConversationsListItems.d.ts +1 -2
  150. package/dist/esm/funcs/llmConversationsListItems.d.ts.map +1 -1
  151. package/dist/esm/funcs/llmConversationsListItems.js +1 -2
  152. package/dist/esm/funcs/llmConversationsListItems.js.map +1 -1
  153. package/dist/esm/funcs/llmPromptsDelete.js +2 -3
  154. package/dist/esm/funcs/llmPromptsDelete.js.map +1 -1
  155. package/dist/esm/lib/config.d.ts +2 -2
  156. package/dist/esm/lib/config.js +2 -2
  157. package/dist/esm/mcp-server/mcp-server.js +1 -1
  158. package/dist/esm/mcp-server/server.js +1 -1
  159. package/dist/esm/mcp-server/tools/budgetsApiKeyEvents.js +1 -1
  160. package/dist/esm/mcp-server/tools/budgetsApiKeyEvents.js.map +1 -1
  161. package/dist/esm/mcp-server/tools/budgetsDeleteApiKey.js +1 -1
  162. package/dist/esm/mcp-server/tools/budgetsDeleteApiKey.js.map +1 -1
  163. package/dist/esm/mcp-server/tools/budgetsGetApiKey.js +1 -1
  164. package/dist/esm/mcp-server/tools/budgetsGetApiKey.js.map +1 -1
  165. package/dist/esm/mcp-server/tools/budgetsList.js +1 -1
  166. package/dist/esm/mcp-server/tools/budgetsList.js.map +1 -1
  167. package/dist/esm/mcp-server/tools/budgetsSetApiKey.js +1 -1
  168. package/dist/esm/mcp-server/tools/budgetsSetApiKey.js.map +1 -1
  169. package/dist/esm/models/components/conversationobject.d.ts +3 -0
  170. package/dist/esm/models/components/conversationobject.d.ts.map +1 -1
  171. package/dist/esm/models/components/conversationobject.js.map +1 -1
  172. package/dist/esm/models/components/createconversationrequest.d.ts +3 -0
  173. package/dist/esm/models/components/createconversationrequest.d.ts.map +1 -1
  174. package/dist/esm/models/components/createconversationrequest.js.map +1 -1
  175. package/dist/esm/models/components/evalfewshotconfig.d.ts +4 -3
  176. package/dist/esm/models/components/evalfewshotconfig.d.ts.map +1 -1
  177. package/dist/esm/models/components/evalfewshotconfig.js +3 -2
  178. package/dist/esm/models/components/evalfewshotconfig.js.map +1 -1
  179. package/dist/esm/models/components/evalmetric.d.ts +37 -0
  180. package/dist/esm/models/components/evalmetric.d.ts.map +1 -0
  181. package/dist/esm/models/components/evalmetric.js +49 -0
  182. package/dist/esm/models/components/evalmetric.js.map +1 -0
  183. package/dist/esm/models/components/evaltask.d.ts +3 -2
  184. package/dist/esm/models/components/evaltask.d.ts.map +1 -1
  185. package/dist/esm/models/components/evaltask.js +3 -2
  186. package/dist/esm/models/components/evaltask.js.map +1 -1
  187. package/dist/esm/models/components/index.d.ts +1 -3
  188. package/dist/esm/models/components/index.d.ts.map +1 -1
  189. package/dist/esm/models/components/index.js +1 -3
  190. package/dist/esm/models/components/index.js.map +1 -1
  191. package/dist/esm/models/components/livekittokenrequest.d.ts +3 -0
  192. package/dist/esm/models/components/livekittokenrequest.d.ts.map +1 -1
  193. package/dist/esm/models/components/livekittokenrequest.js.map +1 -1
  194. package/dist/esm/models/components/responseobject.d.ts +2 -11
  195. package/dist/esm/models/components/responseobject.d.ts.map +1 -1
  196. package/dist/esm/models/components/responseobject.js +2 -12
  197. package/dist/esm/models/components/responseobject.js.map +1 -1
  198. package/dist/esm/models/components/responsescreaterequest.d.ts +3 -0
  199. package/dist/esm/models/components/responsescreaterequest.d.ts.map +1 -1
  200. package/dist/esm/models/components/responsescreaterequest.js.map +1 -1
  201. package/dist/esm/models/components/update.d.ts +3 -0
  202. package/dist/esm/models/components/update.d.ts.map +1 -1
  203. package/dist/esm/models/components/update.js.map +1 -1
  204. package/dist/esm/models/components/updateresponserequest.d.ts +3 -0
  205. package/dist/esm/models/components/updateresponserequest.d.ts.map +1 -1
  206. package/dist/esm/models/components/updateresponserequest.js.map +1 -1
  207. package/dist/esm/models/operations/conversationsitemscreate.d.ts +123 -0
  208. package/dist/esm/models/operations/conversationsitemscreate.d.ts.map +1 -1
  209. package/dist/esm/models/operations/conversationsitemscreate.js +210 -0
  210. package/dist/esm/models/operations/conversationsitemscreate.js.map +1 -1
  211. package/dist/esm/models/operations/conversationsitemslist.d.ts +123 -0
  212. package/dist/esm/models/operations/conversationsitemslist.d.ts.map +1 -1
  213. package/dist/esm/models/operations/conversationsitemslist.js +211 -0
  214. package/dist/esm/models/operations/conversationsitemslist.js.map +1 -1
  215. package/dist/esm/models/operations/conversationsitemsretrieve.d.ts +85 -2
  216. package/dist/esm/models/operations/conversationsitemsretrieve.d.ts.map +1 -1
  217. package/dist/esm/models/operations/conversationsitemsretrieve.js +68 -2
  218. package/dist/esm/models/operations/conversationsitemsretrieve.js.map +1 -1
  219. package/dist/esm/models/operations/deleteprompt.d.ts +0 -11
  220. package/dist/esm/models/operations/deleteprompt.d.ts.map +1 -1
  221. package/dist/esm/models/operations/deleteprompt.js +0 -14
  222. package/dist/esm/models/operations/deleteprompt.js.map +1 -1
  223. package/dist/esm/models/operations/getapikeybudgets.d.ts +2 -0
  224. package/dist/esm/models/operations/getapikeybudgets.d.ts.map +1 -1
  225. package/dist/esm/models/operations/getapikeybudgets.js +4 -0
  226. package/dist/esm/models/operations/getapikeybudgets.js.map +1 -1
  227. package/dist/esm/models/operations/getorgbudgets.d.ts +2 -0
  228. package/dist/esm/models/operations/getorgbudgets.d.ts.map +1 -1
  229. package/dist/esm/models/operations/getorgbudgets.js +4 -0
  230. package/dist/esm/models/operations/getorgbudgets.js.map +1 -1
  231. package/dist/esm/models/operations/listbudgets.d.ts +2 -0
  232. package/dist/esm/models/operations/listbudgets.d.ts.map +1 -1
  233. package/dist/esm/models/operations/listbudgets.js +4 -0
  234. package/dist/esm/models/operations/listbudgets.js.map +1 -1
  235. package/dist/esm/models/operations/listevalsuiteversions.d.ts +8 -8
  236. package/dist/esm/models/operations/listevalsuiteversions.d.ts.map +1 -1
  237. package/dist/esm/models/operations/listevalsuiteversions.js +8 -9
  238. package/dist/esm/models/operations/listevalsuiteversions.js.map +1 -1
  239. package/dist/esm/models/operations/setapikeybudget.d.ts +2 -0
  240. package/dist/esm/models/operations/setapikeybudget.d.ts.map +1 -1
  241. package/dist/esm/models/operations/setapikeybudget.js +4 -0
  242. package/dist/esm/models/operations/setapikeybudget.js.map +1 -1
  243. package/dist/esm/models/operations/setorgbudget.d.ts +2 -0
  244. package/dist/esm/models/operations/setorgbudget.d.ts.map +1 -1
  245. package/dist/esm/models/operations/setorgbudget.js +4 -0
  246. package/dist/esm/models/operations/setorgbudget.js.map +1 -1
  247. package/dist/esm/react-query/budgetsApiKeyEvents.d.ts +2 -2
  248. package/dist/esm/react-query/budgetsApiKeyEvents.js +2 -2
  249. package/dist/esm/react-query/budgetsDeleteApiKey.d.ts +1 -1
  250. package/dist/esm/react-query/budgetsDeleteApiKey.js +1 -1
  251. package/dist/esm/react-query/budgetsGetApiKey.d.ts +2 -2
  252. package/dist/esm/react-query/budgetsGetApiKey.js +2 -2
  253. package/dist/esm/react-query/budgetsList.d.ts +2 -2
  254. package/dist/esm/react-query/budgetsList.js +2 -2
  255. package/dist/esm/react-query/budgetsSetApiKey.d.ts +1 -1
  256. package/dist/esm/react-query/budgetsSetApiKey.js +1 -1
  257. package/dist/esm/react-query/llmConversationsCreateItems.d.ts +1 -2
  258. package/dist/esm/react-query/llmConversationsCreateItems.d.ts.map +1 -1
  259. package/dist/esm/react-query/llmConversationsCreateItems.js.map +1 -1
  260. package/dist/esm/react-query/llmConversationsListItems.core.d.ts +1 -2
  261. package/dist/esm/react-query/llmConversationsListItems.core.d.ts.map +1 -1
  262. package/dist/esm/react-query/llmConversationsListItems.core.js.map +1 -1
  263. package/dist/esm/sdk/budgets.d.ts +5 -5
  264. package/dist/esm/sdk/budgets.js +5 -5
  265. package/dist/esm/sdk/conversations.d.ts +2 -2
  266. package/dist/esm/sdk/conversations.d.ts.map +1 -1
  267. package/jsr.json +1 -1
  268. package/package.json +1 -1
  269. package/src/funcs/budgetsApiKeyEvents.ts +1 -1
  270. package/src/funcs/budgetsDeleteApiKey.ts +1 -1
  271. package/src/funcs/budgetsGetApiKey.ts +1 -1
  272. package/src/funcs/budgetsList.ts +1 -1
  273. package/src/funcs/budgetsSetApiKey.ts +1 -1
  274. package/src/funcs/llmConversationsCreateItems.ts +4 -5
  275. package/src/funcs/llmConversationsListItems.ts +4 -5
  276. package/src/funcs/llmPromptsDelete.ts +2 -3
  277. package/src/lib/config.ts +2 -2
  278. package/src/mcp-server/mcp-server.ts +1 -1
  279. package/src/mcp-server/server.ts +1 -1
  280. package/src/mcp-server/tools/budgetsApiKeyEvents.ts +1 -1
  281. package/src/mcp-server/tools/budgetsDeleteApiKey.ts +1 -1
  282. package/src/mcp-server/tools/budgetsGetApiKey.ts +1 -1
  283. package/src/mcp-server/tools/budgetsList.ts +1 -1
  284. package/src/mcp-server/tools/budgetsSetApiKey.ts +1 -1
  285. package/src/models/components/conversationobject.ts +3 -0
  286. package/src/models/components/createconversationrequest.ts +3 -0
  287. package/src/models/components/evalfewshotconfig.ts +11 -5
  288. package/src/models/components/evalmetric.ts +96 -0
  289. package/src/models/components/evaltask.ts +10 -4
  290. package/src/models/components/index.ts +1 -3
  291. package/src/models/components/livekittokenrequest.ts +3 -0
  292. package/src/models/components/responseobject.ts +4 -47
  293. package/src/models/components/responsescreaterequest.ts +3 -0
  294. package/src/models/components/update.ts +3 -0
  295. package/src/models/components/updateresponserequest.ts +3 -0
  296. package/src/models/operations/conversationsitemscreate.ts +488 -0
  297. package/src/models/operations/conversationsitemslist.ts +496 -0
  298. package/src/models/operations/conversationsitemsretrieve.ts +168 -4
  299. package/src/models/operations/deleteprompt.ts +0 -41
  300. package/src/models/operations/getapikeybudgets.ts +6 -0
  301. package/src/models/operations/getorgbudgets.ts +6 -0
  302. package/src/models/operations/listbudgets.ts +6 -0
  303. package/src/models/operations/listevalsuiteversions.ts +54 -44
  304. package/src/models/operations/setapikeybudget.ts +6 -0
  305. package/src/models/operations/setorgbudget.ts +6 -0
  306. package/src/react-query/budgetsApiKeyEvents.ts +2 -2
  307. package/src/react-query/budgetsDeleteApiKey.ts +1 -1
  308. package/src/react-query/budgetsGetApiKey.ts +2 -2
  309. package/src/react-query/budgetsList.ts +2 -2
  310. package/src/react-query/budgetsSetApiKey.ts +1 -1
  311. package/src/react-query/llmConversationsCreateItems.ts +2 -2
  312. package/src/react-query/llmConversationsListItems.core.ts +2 -2
  313. package/src/sdk/budgets.ts +5 -5
  314. package/src/sdk/conversations.ts +2 -2
  315. package/dist/commonjs/models/components/inputmessagewithid.d.ts +0 -89
  316. package/dist/commonjs/models/components/inputmessagewithid.d.ts.map +0 -1
  317. package/dist/commonjs/models/components/inputmessagewithid.js +0 -106
  318. package/dist/commonjs/models/components/inputmessagewithid.js.map +0 -1
  319. package/dist/commonjs/models/components/itemlistobject.d.ts +0 -33
  320. package/dist/commonjs/models/components/itemlistobject.d.ts.map +0 -1
  321. package/dist/commonjs/models/components/itemlistobject.js.map +0 -1
  322. package/dist/commonjs/models/components/itemwithid.d.ts +0 -37
  323. package/dist/commonjs/models/components/itemwithid.d.ts.map +0 -1
  324. package/dist/commonjs/models/components/itemwithid.js +0 -128
  325. package/dist/commonjs/models/components/itemwithid.js.map +0 -1
  326. package/dist/esm/models/components/inputmessagewithid.d.ts +0 -89
  327. package/dist/esm/models/components/inputmessagewithid.d.ts.map +0 -1
  328. package/dist/esm/models/components/inputmessagewithid.js +0 -66
  329. package/dist/esm/models/components/inputmessagewithid.js.map +0 -1
  330. package/dist/esm/models/components/itemlistobject.d.ts +0 -33
  331. package/dist/esm/models/components/itemlistobject.d.ts.map +0 -1
  332. package/dist/esm/models/components/itemlistobject.js +0 -38
  333. package/dist/esm/models/components/itemlistobject.js.map +0 -1
  334. package/dist/esm/models/components/itemwithid.d.ts +0 -37
  335. package/dist/esm/models/components/itemwithid.d.ts.map +0 -1
  336. package/dist/esm/models/components/itemwithid.js +0 -90
  337. package/dist/esm/models/components/itemwithid.js.map +0 -1
  338. package/src/models/components/inputmessagewithid.ts +0 -183
  339. package/src/models/components/itemlistobject.ts +0 -85
  340. package/src/models/components/itemwithid.ts +0 -281
@@ -1,89 +0,0 @@
1
- import * as z from "zod/v3";
2
- import { ClosedEnum } from "../../types/enums.js";
3
- import { Result as SafeParseResult } from "../../types/fp.js";
4
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
5
- import { InputMessageContent, InputMessageContent$Outbound } from "./inputmessagecontent.js";
6
- import { Status } from "./status.js";
7
- /**
8
- * The role of the message sender (user, assistant, system, or developer).
9
- */
10
- export declare const InputMessageWithIdRole: {
11
- readonly User: "user";
12
- readonly Assistant: "assistant";
13
- readonly System: "system";
14
- readonly Developer: "developer";
15
- };
16
- /**
17
- * The role of the message sender (user, assistant, system, or developer).
18
- */
19
- export type InputMessageWithIdRole = ClosedEnum<typeof InputMessageWithIdRole>;
20
- /**
21
- * The message content. Can be a simple text string or an array of multimodal content items (text, images, files, audio).
22
- */
23
- export type InputMessageWithIdContent = string | Array<InputMessageContent>;
24
- /**
25
- * Input message item: A message with role and content. Use this for user, assistant, system, or developer turns in structured inputs.
26
- */
27
- export type InputMessageWithId = {
28
- /**
29
- * The item type identifier. Always 'message' for message items.
30
- */
31
- type?: "message" | undefined;
32
- /**
33
- * The role of the message sender (user, assistant, system, or developer).
34
- */
35
- role: InputMessageWithIdRole;
36
- /**
37
- * The message content. Can be a simple text string or an array of multimodal content items (text, images, files, audio).
38
- */
39
- content: string | Array<InputMessageContent>;
40
- /**
41
- * The processing status of an individual item. 'in_progress' means currently processing, 'completed' means finished successfully, 'incomplete' means processing stopped before completion.
42
- */
43
- status?: Status | undefined;
44
- /**
45
- * The unique ID of the message.
46
- */
47
- id: string;
48
- /**
49
- * The ID of the response that created this item, if any.
50
- */
51
- responseId?: string | null | undefined;
52
- /**
53
- * Metadata from the response that created this item, if any.
54
- */
55
- metadata?: {
56
- [k: string]: string;
57
- } | null | undefined;
58
- };
59
- /** @internal */
60
- export declare const InputMessageWithIdRole$inboundSchema: z.ZodNativeEnum<typeof InputMessageWithIdRole>;
61
- /** @internal */
62
- export declare const InputMessageWithIdRole$outboundSchema: z.ZodNativeEnum<typeof InputMessageWithIdRole>;
63
- /** @internal */
64
- export declare const InputMessageWithIdContent$inboundSchema: z.ZodType<InputMessageWithIdContent, z.ZodTypeDef, unknown>;
65
- /** @internal */
66
- export type InputMessageWithIdContent$Outbound = string | Array<InputMessageContent$Outbound>;
67
- /** @internal */
68
- export declare const InputMessageWithIdContent$outboundSchema: z.ZodType<InputMessageWithIdContent$Outbound, z.ZodTypeDef, InputMessageWithIdContent>;
69
- export declare function inputMessageWithIdContentToJSON(inputMessageWithIdContent: InputMessageWithIdContent): string;
70
- export declare function inputMessageWithIdContentFromJSON(jsonString: string): SafeParseResult<InputMessageWithIdContent, SDKValidationError>;
71
- /** @internal */
72
- export declare const InputMessageWithId$inboundSchema: z.ZodType<InputMessageWithId, z.ZodTypeDef, unknown>;
73
- /** @internal */
74
- export type InputMessageWithId$Outbound = {
75
- type?: "message" | undefined;
76
- role: string;
77
- content: string | Array<InputMessageContent$Outbound>;
78
- status?: string | undefined;
79
- id: string;
80
- response_id?: string | null | undefined;
81
- metadata?: {
82
- [k: string]: string;
83
- } | null | undefined;
84
- };
85
- /** @internal */
86
- export declare const InputMessageWithId$outboundSchema: z.ZodType<InputMessageWithId$Outbound, z.ZodTypeDef, InputMessageWithId>;
87
- export declare function inputMessageWithIdToJSON(inputMessageWithId: InputMessageWithId): string;
88
- export declare function inputMessageWithIdFromJSON(jsonString: string): SafeParseResult<InputMessageWithId, SDKValidationError>;
89
- //# sourceMappingURL=inputmessagewithid.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"inputmessagewithid.d.ts","sourceRoot":"","sources":["../../../../src/models/components/inputmessagewithid.ts"],"names":[],"mappings":"AA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EAC3B,CAAC,CAAC,UAAU,EACZ,kBAAkB,CAalB,CAAC;AAEH,wBAAgB,wBAAwB,CACtC,kBAAkB,EAAE,kBAAkB,GACrC,MAAM,CAIR;AACD,wBAAgB,0BAA0B,CACxC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,kBAAkB,EAAE,kBAAkB,CAAC,CAMzD"}
@@ -1,66 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
- import * as z from "zod/v3";
5
- import { remap as remap$ } from "../../lib/primitives.js";
6
- import { safeParse } from "../../lib/schemas.js";
7
- import { InputMessageContent$inboundSchema, InputMessageContent$outboundSchema, } from "./inputmessagecontent.js";
8
- import { Status$inboundSchema, Status$outboundSchema, } from "./status.js";
9
- /**
10
- * The role of the message sender (user, assistant, system, or developer).
11
- */
12
- export const InputMessageWithIdRole = {
13
- User: "user",
14
- Assistant: "assistant",
15
- System: "system",
16
- Developer: "developer",
17
- };
18
- /** @internal */
19
- export const InputMessageWithIdRole$inboundSchema = z.nativeEnum(InputMessageWithIdRole);
20
- /** @internal */
21
- export const InputMessageWithIdRole$outboundSchema = InputMessageWithIdRole$inboundSchema;
22
- /** @internal */
23
- export const InputMessageWithIdContent$inboundSchema = z.union([z.string(), z.array(InputMessageContent$inboundSchema)]);
24
- /** @internal */
25
- export const InputMessageWithIdContent$outboundSchema = z.union([z.string(), z.array(InputMessageContent$outboundSchema)]);
26
- export function inputMessageWithIdContentToJSON(inputMessageWithIdContent) {
27
- return JSON.stringify(InputMessageWithIdContent$outboundSchema.parse(inputMessageWithIdContent));
28
- }
29
- export function inputMessageWithIdContentFromJSON(jsonString) {
30
- return safeParse(jsonString, (x) => InputMessageWithIdContent$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'InputMessageWithIdContent' from JSON`);
31
- }
32
- /** @internal */
33
- export const InputMessageWithId$inboundSchema = z.object({
34
- type: z.literal("message").optional(),
35
- role: InputMessageWithIdRole$inboundSchema,
36
- content: z.union([z.string(), z.array(InputMessageContent$inboundSchema)]),
37
- status: Status$inboundSchema.optional(),
38
- id: z.string(),
39
- response_id: z.nullable(z.string()).optional(),
40
- metadata: z.nullable(z.record(z.string())).optional(),
41
- }).transform((v) => {
42
- return remap$(v, {
43
- "response_id": "responseId",
44
- });
45
- });
46
- /** @internal */
47
- export const InputMessageWithId$outboundSchema = z.object({
48
- type: z.literal("message").optional(),
49
- role: InputMessageWithIdRole$outboundSchema,
50
- content: z.union([z.string(), z.array(InputMessageContent$outboundSchema)]),
51
- status: Status$outboundSchema.optional(),
52
- id: z.string(),
53
- responseId: z.nullable(z.string()).optional(),
54
- metadata: z.nullable(z.record(z.string())).optional(),
55
- }).transform((v) => {
56
- return remap$(v, {
57
- responseId: "response_id",
58
- });
59
- });
60
- export function inputMessageWithIdToJSON(inputMessageWithId) {
61
- return JSON.stringify(InputMessageWithId$outboundSchema.parse(inputMessageWithId));
62
- }
63
- export function inputMessageWithIdFromJSON(jsonString) {
64
- return safeParse(jsonString, (x) => InputMessageWithId$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'InputMessageWithId' from JSON`);
65
- }
66
- //# sourceMappingURL=inputmessagewithid.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"inputmessagewithid.js","sourceRoot":"","sources":["../../../../src/models/components/inputmessagewithid.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAIjD,OAAO,EAEL,iCAAiC,EAEjC,kCAAkC,GACnC,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAEL,oBAAoB,EACpB,qBAAqB,GACtB,MAAM,aAAa,CAAC;AAErB;;GAEG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG;IACpC,IAAI,EAAE,MAAM;IACZ,SA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AC,CAAC,CAAC;AAEH,MAAM,UAAU,wBAAwB,CACtC,kBAAsC;IAEtC,OAAO,IAAI,CAAC,SAAS,CACnB,iCAAiC,CAAC,KAAK,CAAC,kBAAkB,CAAC,CAC5D,CAAC;AACJ,CAAC;AACD,MAAM,UAAU,0BAA0B,CACxC,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,gCAAgC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC5D,gDAAgD,CACjD,CAAC;AACJ,CAAC"}
@@ -1,33 +0,0 @@
1
- import * as z from "zod/v3";
2
- import { Result as SafeParseResult } from "../../types/fp.js";
3
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
4
- import { ItemWithId, ItemWithId$Outbound } from "./itemwithid.js";
5
- export type ItemListObject = {
6
- object?: "list" | undefined;
7
- /**
8
- * A list of conversation items.
9
- */
10
- data: Array<ItemWithId>;
11
- /**
12
- * Whether there are more items
13
- */
14
- hasMore: boolean;
15
- /**
16
- * ID of the last item in the current page
17
- */
18
- lastId: string;
19
- };
20
- /** @internal */
21
- export declare const ItemListObject$inboundSchema: z.ZodType<ItemListObject, z.ZodTypeDef, unknown>;
22
- /** @internal */
23
- export type ItemListObject$Outbound = {
24
- object?: "list" | undefined;
25
- data: Array<ItemWithId$Outbound>;
26
- has_more: boolean;
27
- last_id: string;
28
- };
29
- /** @internal */
30
- export declare const ItemListObject$outboundSchema: z.ZodType<ItemListObject$Outbound, z.ZodTypeDef, ItemListObject>;
31
- export declare function itemListObjectToJSON(itemListObject: ItemListObject): string;
32
- export declare function itemListObjectFromJSON(jsonString: string): SafeParseResult<ItemListObject, SDKValidationError>;
33
- //# sourceMappingURL=itemlistobject.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"itemlistobject.d.ts","sourceRoot":"","sources":["../../../../src/models/components/itemlistobject.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,UAAU,EAEV,mBAAmB,EAEpB,MAAM,iBAAiB,CAAC;AAEzB,MAAM,MAAM,cAAc,GAAG;IAC3B,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B;;OAEG;IACH,IAAI,EAAE,KAAK,CAAC,UAAU,CAAC,CAAC;IACxB;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;IACjB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,4BAA4B,EAAE,CAAC,CAAC,OAAO,CAClD,cAAc,EACd,CAAC,CAAC,UAAU,EACZ,OAAO,CAWP,CAAC;AACH,gBAAgB;AAChB,MAAM,MAAM,uBAAuB,GAAG;IACpC,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,IAAI,EAAE,KAAK,CAAC,mBAAmB,CAAC,CAAC;IACjC,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,6BAA6B,EAAE,CAAC,CAAC,OAAO,CACnD,uBAAuB,EACvB,CAAC,CAAC,UAAU,EACZ,cAAc,CAWd,CAAC;AAEH,wBAAgB,oBAAoB,CAAC,cAAc,EAAE,cAAc,GAAG,MAAM,CAE3E;AACD,wBAAgB,sBAAsB,CACpC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,cAAc,EAAE,kBAAkB,CAAC,CAMrD"}
@@ -1,38 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
- import * as z from "zod/v3";
5
- import { remap as remap$ } from "../../lib/primitives.js";
6
- import { safeParse } from "../../lib/schemas.js";
7
- import { ItemWithId$inboundSchema, ItemWithId$outboundSchema, } from "./itemwithid.js";
8
- /** @internal */
9
- export const ItemListObject$inboundSchema = z.object({
10
- object: z.literal("list").optional(),
11
- data: z.array(ItemWithId$inboundSchema),
12
- has_more: z.boolean(),
13
- last_id: z.string(),
14
- }).transform((v) => {
15
- return remap$(v, {
16
- "has_more": "hasMore",
17
- "last_id": "lastId",
18
- });
19
- });
20
- /** @internal */
21
- export const ItemListObject$outboundSchema = z.object({
22
- object: z.literal("list").optional(),
23
- data: z.array(ItemWithId$outboundSchema),
24
- hasMore: z.boolean(),
25
- lastId: z.string(),
26
- }).transform((v) => {
27
- return remap$(v, {
28
- hasMore: "has_more",
29
- lastId: "last_id",
30
- });
31
- });
32
- export function itemListObjectToJSON(itemListObject) {
33
- return JSON.stringify(ItemListObject$outboundSchema.parse(itemListObject));
34
- }
35
- export function itemListObjectFromJSON(jsonString) {
36
- return safeParse(jsonString, (x) => ItemListObject$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ItemListObject' from JSON`);
37
- }
38
- //# sourceMappingURL=itemlistobject.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"itemlistobject.js","sourceRoot":"","sources":["../../../../src/models/components/itemlistobject.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAGjD,OAAO,EAEL,wBAAwB,EAExB,yBAAyB,GAC1B,MAAM,iBAAiB,CAAC;AAkBzB,gBAAgB;AAChB,MAAM,CAAC,MAAM,4BAA4B,GAIrC,CAAC,CAAC,MAAM,CAAC;IACX,MAAM,EAAE,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,QAAQ,EAAE;IACpC,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,wBAAwB,CAAC;IACvC,QAAQ,EAAE,CAAC,CAAC,OAAO,EAAE;IACrB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;CACpB,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,UAAU,EAAE,SAAS;QACrB,SAAS,EAAE,QAAQ;KACpB,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AASH,gBAAgB;AAChB,MAAM,CAAC,MAAM,6BAA6B,GAItC,CAAC,CAAC,MAAM,CAAC;IACX,MAAM,EAAE,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,QAAQ,EAAE;IACpC,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,yBAAyB,CAAC;IACxC,OAAO,EAAE,CAAC,CAAC,OAAO,EAAE;IACpB,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;CACnB,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,OAAO,EAAE,UAAU;QACnB,MAAM,EAAE,SAAS;KAClB,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,MAAM,UAAU,oBAAoB,CAAC,cAA8B;IACjE,OAAO,IAAI,CAAC,SAAS,CAAC,6BAA6B,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC;AAC7E,CAAC;AACD,MAAM,UAAU,sBAAsB,CACpC,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,4BAA4B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACxD,4CAA4C,CAC7C,CAAC;AACJ,CAAC"}
@@ -1,37 +0,0 @@
1
- import * as z from "zod/v3";
2
- import { Result as SafeParseResult } from "../../types/fp.js";
3
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
4
- import { CodeInterpreterToolCallWithId, CodeInterpreterToolCallWithId$Outbound } from "./codeinterpretertoolcallwithid.js";
5
- import { ComputerToolCallOutputWithId, ComputerToolCallOutputWithId$Outbound } from "./computertoolcalloutputwithid.js";
6
- import { ComputerToolCallWithId, ComputerToolCallWithId$Outbound } from "./computertoolcallwithid.js";
7
- import { CustomToolCallOutputWithId, CustomToolCallOutputWithId$Outbound } from "./customtoolcalloutputwithid.js";
8
- import { CustomToolCallWithId, CustomToolCallWithId$Outbound } from "./customtoolcallwithid.js";
9
- import { FileSearchToolCallWithId, FileSearchToolCallWithId$Outbound } from "./filesearchtoolcallwithid.js";
10
- import { FunctionToolCallOutputWithId, FunctionToolCallOutputWithId$Outbound } from "./functiontoolcalloutputwithid.js";
11
- import { FunctionToolCallWithId, FunctionToolCallWithId$Outbound } from "./functiontoolcallwithid.js";
12
- import { ImageGenerationCallWithId, ImageGenerationCallWithId$Outbound } from "./imagegenerationcallwithid.js";
13
- import { InputMessageWithId, InputMessageWithId$Outbound } from "./inputmessagewithid.js";
14
- import { ItemReferenceWithId, ItemReferenceWithId$Outbound } from "./itemreferencewithid.js";
15
- import { LocalShellCallOutputWithId, LocalShellCallOutputWithId$Outbound } from "./localshellcalloutputwithid.js";
16
- import { LocalShellCallWithId, LocalShellCallWithId$Outbound } from "./localshellcallwithid.js";
17
- import { MCPApprovalRequestWithId, MCPApprovalRequestWithId$Outbound } from "./mcpapprovalrequestwithid.js";
18
- import { MCPApprovalResponseWithId, MCPApprovalResponseWithId$Outbound } from "./mcpapprovalresponsewithid.js";
19
- import { MCPListToolsWithId, MCPListToolsWithId$Outbound } from "./mcplisttoolswithid.js";
20
- import { MCPToolCallWithId, MCPToolCallWithId$Outbound } from "./mcptoolcallwithid.js";
21
- import { OutputAudioItemWithId, OutputAudioItemWithId$Outbound } from "./outputaudioitemwithid.js";
22
- import { OutputMessageWithId, OutputMessageWithId$Outbound } from "./outputmessagewithid.js";
23
- import { ReasoningWithId, ReasoningWithId$Outbound } from "./reasoningwithid.js";
24
- import { ResponseCompactionItemWithId, ResponseCompactionItemWithId$Outbound } from "./responsecompactionitemwithid.js";
25
- import { ShellCallOutputWithId, ShellCallOutputWithId$Outbound } from "./shellcalloutputwithid.js";
26
- import { ShellCallWithId, ShellCallWithId$Outbound } from "./shellcallwithid.js";
27
- import { WebSearchToolCallWithId, WebSearchToolCallWithId$Outbound } from "./websearchtoolcallwithid.js";
28
- export type ItemWithId = ComputerToolCallWithId | CodeInterpreterToolCallWithId | OutputMessageWithId | OutputAudioItemWithId | FunctionToolCallWithId | LocalShellCallWithId | ShellCallWithId | MCPApprovalRequestWithId | MCPToolCallWithId | CustomToolCallWithId | FileSearchToolCallWithId | ComputerToolCallOutputWithId | WebSearchToolCallWithId | FunctionToolCallOutputWithId | ImageGenerationCallWithId | ShellCallOutputWithId | MCPListToolsWithId | MCPApprovalResponseWithId | CustomToolCallOutputWithId | InputMessageWithId | ReasoningWithId | LocalShellCallOutputWithId | ResponseCompactionItemWithId | ItemReferenceWithId;
29
- /** @internal */
30
- export declare const ItemWithId$inboundSchema: z.ZodType<ItemWithId, z.ZodTypeDef, unknown>;
31
- /** @internal */
32
- export type ItemWithId$Outbound = ComputerToolCallWithId$Outbound | CodeInterpreterToolCallWithId$Outbound | OutputMessageWithId$Outbound | OutputAudioItemWithId$Outbound | FunctionToolCallWithId$Outbound | LocalShellCallWithId$Outbound | ShellCallWithId$Outbound | MCPApprovalRequestWithId$Outbound | MCPToolCallWithId$Outbound | CustomToolCallWithId$Outbound | FileSearchToolCallWithId$Outbound | ComputerToolCallOutputWithId$Outbound | WebSearchToolCallWithId$Outbound | FunctionToolCallOutputWithId$Outbound | ImageGenerationCallWithId$Outbound | ShellCallOutputWithId$Outbound | MCPListToolsWithId$Outbound | MCPApprovalResponseWithId$Outbound | CustomToolCallOutputWithId$Outbound | InputMessageWithId$Outbound | ReasoningWithId$Outbound | LocalShellCallOutputWithId$Outbound | ResponseCompactionItemWithId$Outbound | ItemReferenceWithId$Outbound;
33
- /** @internal */
34
- export declare const ItemWithId$outboundSchema: z.ZodType<ItemWithId$Outbound, z.ZodTypeDef, ItemWithId>;
35
- export declare function itemWithIdToJSON(itemWithId: ItemWithId): string;
36
- export declare function itemWithIdFromJSON(jsonString: string): SafeParseResult<ItemWithId, SDKValidationError>;
37
- //# sourceMappingURL=itemwithid.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"itemwithid.d.ts","sourceRoot":"","sources":["../../../../src/models/components/itemwithid.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,6BAA6B,EAE7B,sCAAsC,EAEvC,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EACL,4BAA4B,EAE5B,qCAAqC,EAEtC,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EACL,sBAAsB,EAEtB,+BAA+B,EAEhC,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACL,0BAA0B,EAE1B,mCAAmC,EAEpC,MAAM,iCAAiC,CAAC;AACzC,OAAO,EACL,oBAAoB,EAEpB,6BAA6B,EAE9B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,wBAAwB,EAExB,iCAAiC,EAElC,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACL,4BAA4B,EAE5B,qCAAqC,EAEtC,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EACL,sBAAsB,EAEtB,+BAA+B,EAEhC,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACL,yBAAyB,EAEzB,kCAAkC,EAEnC,MAAM,gCAAgC,CAAC;AACxC,OAAO,EACL,kBAAkB,EAElB,2BAA2B,EAE5B,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,mBAAmB,EAEnB,4BAA4B,EAE7B,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,0BA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,CAAC;AAExB,gBAAgB;AAChB,eAAO,MAAM,wBAAwB,EAAE,CAAC,CAAC,OAAO,CAC9C,UAAU,EACV,CAAC,CAAC,UAAU,EACZ,OAAO,CA0BP,CAAC;AACH,gBAAgB;AAChB,MAAM,MAAM,mBAAmB,GAC3B,+BAA+B,GAC/B,sCAAsC,GACtC,4BAA4B,GAC5B,8BAA8B,GAC9B,+BAA+B,GAC/B,6BAA6B,GAC7B,wBAAwB,GACxB,iCAAiC,GACjC,0BAA0B,GAC1B,6BAA6B,GAC7B,iCAAiC,GACjC,qCAAqC,GACrC,gCAAgC,GAChC,qCAAqC,GACrC,kCAAkC,GAClC,8BAA8B,GAC9B,2BAA2B,GAC3B,kCAAkC,GAClC,mCAAmC,GACnC,2BAA2B,GAC3B,wBAAwB,GACxB,mCAAmC,GACnC,qCAAqC,GACrC,4BAA4B,CAAC;AAEjC,gBAAgB;AAChB,eAAO,MAAM,yBAAyB,EAAE,CAAC,CAAC,OAAO,CAC/C,mBAAmB,EACnB,CAAC,CAAC,UAAU,EACZ,UAAU,CA0BV,CAAC;AAEH,wBAAgB,gBAAgB,CAAC,UAAU,EAAE,UAAU,GAAG,MAAM,CAE/D;AACD,wBAAgB,kBAAkB,CAChC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,UAAU,EAAE,kBAAkB,CAAC,CAMjD"}
@@ -1,90 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
- import * as z from "zod/v3";
5
- import { safeParse } from "../../lib/schemas.js";
6
- import { CodeInterpreterToolCallWithId$inboundSchema, CodeInterpreterToolCallWithId$outboundSchema, } from "./codeinterpretertoolcallwithid.js";
7
- import { ComputerToolCallOutputWithId$inboundSchema, ComputerToolCallOutputWithId$outboundSchema, } from "./computertoolcalloutputwithid.js";
8
- import { ComputerToolCallWithId$inboundSchema, ComputerToolCallWithId$outboundSchema, } from "./computertoolcallwithid.js";
9
- import { CustomToolCallOutputWithId$inboundSchema, CustomToolCallOutputWithId$outboundSchema, } from "./customtoolcalloutputwithid.js";
10
- import { CustomToolCallWithId$inboundSchema, CustomToolCallWithId$outboundSchema, } from "./customtoolcallwithid.js";
11
- import { FileSearchToolCallWithId$inboundSchema, FileSearchToolCallWithId$outboundSchema, } from "./filesearchtoolcallwithid.js";
12
- import { FunctionToolCallOutputWithId$inboundSchema, FunctionToolCallOutputWithId$outboundSchema, } from "./functiontoolcalloutputwithid.js";
13
- import { FunctionToolCallWithId$inboundSchema, FunctionToolCallWithId$outboundSchema, } from "./functiontoolcallwithid.js";
14
- import { ImageGenerationCallWithId$inboundSchema, ImageGenerationCallWithId$outboundSchema, } from "./imagegenerationcallwithid.js";
15
- import { InputMessageWithId$inboundSchema, InputMessageWithId$outboundSchema, } from "./inputmessagewithid.js";
16
- import { ItemReferenceWithId$inboundSchema, ItemReferenceWithId$outboundSchema, } from "./itemreferencewithid.js";
17
- import { LocalShellCallOutputWithId$inboundSchema, LocalShellCallOutputWithId$outboundSchema, } from "./localshellcalloutputwithid.js";
18
- import { LocalShellCallWithId$inboundSchema, LocalShellCallWithId$outboundSchema, } from "./localshellcallwithid.js";
19
- import { MCPApprovalRequestWithId$inboundSchema, MCPApprovalRequestWithId$outboundSchema, } from "./mcpapprovalrequestwithid.js";
20
- import { MCPApprovalResponseWithId$inboundSchema, MCPApprovalResponseWithId$outboundSchema, } from "./mcpapprovalresponsewithid.js";
21
- import { MCPListToolsWithId$inboundSchema, MCPListToolsWithId$outboundSchema, } from "./mcplisttoolswithid.js";
22
- import { MCPToolCallWithId$inboundSchema, MCPToolCallWithId$outboundSchema, } from "./mcptoolcallwithid.js";
23
- import { OutputAudioItemWithId$inboundSchema, OutputAudioItemWithId$outboundSchema, } from "./outputaudioitemwithid.js";
24
- import { OutputMessageWithId$inboundSchema, OutputMessageWithId$outboundSchema, } from "./outputmessagewithid.js";
25
- import { ReasoningWithId$inboundSchema, ReasoningWithId$outboundSchema, } from "./reasoningwithid.js";
26
- import { ResponseCompactionItemWithId$inboundSchema, ResponseCompactionItemWithId$outboundSchema, } from "./responsecompactionitemwithid.js";
27
- import { ShellCallOutputWithId$inboundSchema, ShellCallOutputWithId$outboundSchema, } from "./shellcalloutputwithid.js";
28
- import { ShellCallWithId$inboundSchema, ShellCallWithId$outboundSchema, } from "./shellcallwithid.js";
29
- import { WebSearchToolCallWithId$inboundSchema, WebSearchToolCallWithId$outboundSchema, } from "./websearchtoolcallwithid.js";
30
- /** @internal */
31
- export const ItemWithId$inboundSchema = z.union([
32
- ComputerToolCallWithId$inboundSchema,
33
- CodeInterpreterToolCallWithId$inboundSchema,
34
- OutputMessageWithId$inboundSchema,
35
- OutputAudioItemWithId$inboundSchema,
36
- FunctionToolCallWithId$inboundSchema,
37
- LocalShellCallWithId$inboundSchema,
38
- ShellCallWithId$inboundSchema,
39
- MCPApprovalRequestWithId$inboundSchema,
40
- MCPToolCallWithId$inboundSchema,
41
- CustomToolCallWithId$inboundSchema,
42
- FileSearchToolCallWithId$inboundSchema,
43
- ComputerToolCallOutputWithId$inboundSchema,
44
- WebSearchToolCallWithId$inboundSchema,
45
- FunctionToolCallOutputWithId$inboundSchema,
46
- ImageGenerationCallWithId$inboundSchema,
47
- ShellCallOutputWithId$inboundSchema,
48
- MCPListToolsWithId$inboundSchema,
49
- MCPApprovalResponseWithId$inboundSchema,
50
- CustomToolCallOutputWithId$inboundSchema,
51
- InputMessageWithId$inboundSchema,
52
- ReasoningWithId$inboundSchema,
53
- LocalShellCallOutputWithId$inboundSchema,
54
- ResponseCompactionItemWithId$inboundSchema,
55
- ItemReferenceWithId$inboundSchema,
56
- ]);
57
- /** @internal */
58
- export const ItemWithId$outboundSchema = z.union([
59
- ComputerToolCallWithId$outboundSchema,
60
- CodeInterpreterToolCallWithId$outboundSchema,
61
- OutputMessageWithId$outboundSchema,
62
- OutputAudioItemWithId$outboundSchema,
63
- FunctionToolCallWithId$outboundSchema,
64
- LocalShellCallWithId$outboundSchema,
65
- ShellCallWithId$outboundSchema,
66
- MCPApprovalRequestWithId$outboundSchema,
67
- MCPToolCallWithId$outboundSchema,
68
- CustomToolCallWithId$outboundSchema,
69
- FileSearchToolCallWithId$outboundSchema,
70
- ComputerToolCallOutputWithId$outboundSchema,
71
- WebSearchToolCallWithId$outboundSchema,
72
- FunctionToolCallOutputWithId$outboundSchema,
73
- ImageGenerationCallWithId$outboundSchema,
74
- ShellCallOutputWithId$outboundSchema,
75
- MCPListToolsWithId$outboundSchema,
76
- MCPApprovalResponseWithId$outboundSchema,
77
- CustomToolCallOutputWithId$outboundSchema,
78
- InputMessageWithId$outboundSchema,
79
- ReasoningWithId$outboundSchema,
80
- LocalShellCallOutputWithId$outboundSchema,
81
- ResponseCompactionItemWithId$outboundSchema,
82
- ItemReferenceWithId$outboundSchema,
83
- ]);
84
- export function itemWithIdToJSON(itemWithId) {
85
- return JSON.stringify(ItemWithId$outboundSchema.parse(itemWithId));
86
- }
87
- export function itemWithIdFromJSON(jsonString) {
88
- return safeParse(jsonString, (x) => ItemWithId$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ItemWithId' from JSON`);
89
- }
90
- //# sourceMappingURL=itemwithid.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"itemwithid.js","sourceRoot":"","sources":["../../../../src/models/components/itemwithid.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAGjD,OAAO,EAEL,2CAA2C,EAE3C,4CAA4C,GAC7C,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAEL,0CAA0C,EAE1C,2CAA2C,GAC5C,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAEL,oCAAoC,EAEpC,qCAAqC,GACtC,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAEL,wCAAwC,EAExC,yCAAyC,GAC1C,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAEL,kCAAkC,EA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AC,CAAC,EAAE,EAAE,CAAC,wBAAwB,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACpD,wCAAwC,CACzC,CAAC;AACJ,CAAC"}
@@ -1,183 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import * as z from "zod/v3";
6
- import { remap as remap$ } from "../../lib/primitives.js";
7
- import { safeParse } from "../../lib/schemas.js";
8
- import { ClosedEnum } from "../../types/enums.js";
9
- import { Result as SafeParseResult } from "../../types/fp.js";
10
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
- import {
12
- InputMessageContent,
13
- InputMessageContent$inboundSchema,
14
- InputMessageContent$Outbound,
15
- InputMessageContent$outboundSchema,
16
- } from "./inputmessagecontent.js";
17
- import {
18
- Status,
19
- Status$inboundSchema,
20
- Status$outboundSchema,
21
- } from "./status.js";
22
-
23
- /**
24
- * The role of the message sender (user, assistant, system, or developer).
25
- */
26
- export const InputMessageWithIdRole = {
27
- User: "user",
28
- Assistant: "assistant",
29
- System: "system",
30
- Developer: "developer",
31
- } as const;
32
- /**
33
- * The role of the message sender (user, assistant, system, or developer).
34
- */
35
- export type InputMessageWithIdRole = ClosedEnum<typeof InputMessageWithIdRole>;
36
-
37
- /**
38
- * The message content. Can be a simple text string or an array of multimodal content items (text, images, files, audio).
39
- */
40
- export type InputMessageWithIdContent = string | Array<InputMessageContent>;
41
-
42
- /**
43
- * Input message item: A message with role and content. Use this for user, assistant, system, or developer turns in structured inputs.
44
- */
45
- export type InputMessageWithId = {
46
- /**
47
- * The item type identifier. Always 'message' for message items.
48
- */
49
- type?: "message" | undefined;
50
- /**
51
- * The role of the message sender (user, assistant, system, or developer).
52
- */
53
- role: InputMessageWithIdRole;
54
- /**
55
- * The message content. Can be a simple text string or an array of multimodal content items (text, images, files, audio).
56
- */
57
- content: string | Array<InputMessageContent>;
58
- /**
59
- * The processing status of an individual item. 'in_progress' means currently processing, 'completed' means finished successfully, 'incomplete' means processing stopped before completion.
60
- */
61
- status?: Status | undefined;
62
- /**
63
- * The unique ID of the message.
64
- */
65
- id: string;
66
- /**
67
- * The ID of the response that created this item, if any.
68
- */
69
- responseId?: string | null | undefined;
70
- /**
71
- * Metadata from the response that created this item, if any.
72
- */
73
- metadata?: { [k: string]: string } | null | undefined;
74
- };
75
-
76
- /** @internal */
77
- export const InputMessageWithIdRole$inboundSchema: z.ZodNativeEnum<
78
- typeof InputMessageWithIdRole
79
- > = z.nativeEnum(InputMessageWithIdRole);
80
- /** @internal */
81
- export const InputMessageWithIdRole$outboundSchema: z.ZodNativeEnum<
82
- typeof InputMessageWithIdRole
83
- > = InputMessageWithIdRole$inboundSchema;
84
-
85
- /** @internal */
86
- export const InputMessageWithIdContent$inboundSchema: z.ZodType<
87
- InputMessageWithIdContent,
88
- z.ZodTypeDef,
89
- unknown
90
- > = z.union([z.string(), z.array(InputMessageContent$inboundSchema)]);
91
- /** @internal */
92
- export type InputMessageWithIdContent$Outbound =
93
- | string
94
- | Array<InputMessageContent$Outbound>;
95
-
96
- /** @internal */
97
- export const InputMessageWithIdContent$outboundSchema: z.ZodType<
98
- InputMessageWithIdContent$Outbound,
99
- z.ZodTypeDef,
100
- InputMessageWithIdContent
101
- > = z.union([z.string(), z.array(InputMessageContent$outboundSchema)]);
102
-
103
- export function inputMessageWithIdContentToJSON(
104
- inputMessageWithIdContent: InputMessageWithIdContent,
105
- ): string {
106
- return JSON.stringify(
107
- InputMessageWithIdContent$outboundSchema.parse(inputMessageWithIdContent),
108
- );
109
- }
110
- export function inputMessageWithIdContentFromJSON(
111
- jsonString: string,
112
- ): SafeParseResult<InputMessageWithIdContent, SDKValidationError> {
113
- return safeParse(
114
- jsonString,
115
- (x) => InputMessageWithIdContent$inboundSchema.parse(JSON.parse(x)),
116
- `Failed to parse 'InputMessageWithIdContent' from JSON`,
117
- );
118
- }
119
-
120
- /** @internal */
121
- export const InputMessageWithId$inboundSchema: z.ZodType<
122
- InputMessageWithId,
123
- z.ZodTypeDef,
124
- unknown
125
- > = z.object({
126
- type: z.literal("message").optional(),
127
- role: InputMessageWithIdRole$inboundSchema,
128
- content: z.union([z.string(), z.array(InputMessageContent$inboundSchema)]),
129
- status: Status$inboundSchema.optional(),
130
- id: z.string(),
131
- response_id: z.nullable(z.string()).optional(),
132
- metadata: z.nullable(z.record(z.string())).optional(),
133
- }).transform((v) => {
134
- return remap$(v, {
135
- "response_id": "responseId",
136
- });
137
- });
138
- /** @internal */
139
- export type InputMessageWithId$Outbound = {
140
- type?: "message" | undefined;
141
- role: string;
142
- content: string | Array<InputMessageContent$Outbound>;
143
- status?: string | undefined;
144
- id: string;
145
- response_id?: string | null | undefined;
146
- metadata?: { [k: string]: string } | null | undefined;
147
- };
148
-
149
- /** @internal */
150
- export const InputMessageWithId$outboundSchema: z.ZodType<
151
- InputMessageWithId$Outbound,
152
- z.ZodTypeDef,
153
- InputMessageWithId
154
- > = z.object({
155
- type: z.literal("message").optional(),
156
- role: InputMessageWithIdRole$outboundSchema,
157
- content: z.union([z.string(), z.array(InputMessageContent$outboundSchema)]),
158
- status: Status$outboundSchema.optional(),
159
- id: z.string(),
160
- responseId: z.nullable(z.string()).optional(),
161
- metadata: z.nullable(z.record(z.string())).optional(),
162
- }).transform((v) => {
163
- return remap$(v, {
164
- responseId: "response_id",
165
- });
166
- });
167
-
168
- export function inputMessageWithIdToJSON(
169
- inputMessageWithId: InputMessageWithId,
170
- ): string {
171
- return JSON.stringify(
172
- InputMessageWithId$outboundSchema.parse(inputMessageWithId),
173
- );
174
- }
175
- export function inputMessageWithIdFromJSON(
176
- jsonString: string,
177
- ): SafeParseResult<InputMessageWithId, SDKValidationError> {
178
- return safeParse(
179
- jsonString,
180
- (x) => InputMessageWithId$inboundSchema.parse(JSON.parse(x)),
181
- `Failed to parse 'InputMessageWithId' from JSON`,
182
- );
183
- }