@meetkai/mka1 0.48.38 → 0.48.39

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 (215) hide show
  1. package/bin/mcp-server.js +1002 -741
  2. package/bin/mcp-server.js.map +38 -40
  3. package/dist/commonjs/funcs/llmConversationsCreateItems.d.ts +1 -2
  4. package/dist/commonjs/funcs/llmConversationsCreateItems.d.ts.map +1 -1
  5. package/dist/commonjs/funcs/llmConversationsCreateItems.js +1 -2
  6. package/dist/commonjs/funcs/llmConversationsCreateItems.js.map +1 -1
  7. package/dist/commonjs/funcs/llmConversationsListItems.d.ts +1 -2
  8. package/dist/commonjs/funcs/llmConversationsListItems.d.ts.map +1 -1
  9. package/dist/commonjs/funcs/llmConversationsListItems.js +1 -2
  10. package/dist/commonjs/funcs/llmConversationsListItems.js.map +1 -1
  11. package/dist/commonjs/funcs/llmPromptsDelete.js +1 -2
  12. package/dist/commonjs/funcs/llmPromptsDelete.js.map +1 -1
  13. package/dist/commonjs/lib/config.d.ts +2 -2
  14. package/dist/commonjs/lib/config.js +2 -2
  15. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  16. package/dist/commonjs/mcp-server/server.js +1 -1
  17. package/dist/commonjs/models/components/conversationobject.d.ts +3 -0
  18. package/dist/commonjs/models/components/conversationobject.d.ts.map +1 -1
  19. package/dist/commonjs/models/components/conversationobject.js.map +1 -1
  20. package/dist/commonjs/models/components/createconversationrequest.d.ts +3 -0
  21. package/dist/commonjs/models/components/createconversationrequest.d.ts.map +1 -1
  22. package/dist/commonjs/models/components/createconversationrequest.js.map +1 -1
  23. package/dist/commonjs/models/components/evalfewshotconfig.d.ts +4 -3
  24. package/dist/commonjs/models/components/evalfewshotconfig.d.ts.map +1 -1
  25. package/dist/commonjs/models/components/evalfewshotconfig.js +3 -2
  26. package/dist/commonjs/models/components/evalfewshotconfig.js.map +1 -1
  27. package/dist/commonjs/models/components/evalmetric.d.ts +37 -0
  28. package/dist/commonjs/models/components/evalmetric.d.ts.map +1 -0
  29. package/dist/commonjs/models/components/{itemlistobject.js → evalmetric.js} +37 -26
  30. package/dist/commonjs/models/components/evalmetric.js.map +1 -0
  31. package/dist/commonjs/models/components/evaltask.d.ts +3 -2
  32. package/dist/commonjs/models/components/evaltask.d.ts.map +1 -1
  33. package/dist/commonjs/models/components/evaltask.js +3 -2
  34. package/dist/commonjs/models/components/evaltask.js.map +1 -1
  35. package/dist/commonjs/models/components/index.d.ts +1 -3
  36. package/dist/commonjs/models/components/index.d.ts.map +1 -1
  37. package/dist/commonjs/models/components/index.js +1 -3
  38. package/dist/commonjs/models/components/index.js.map +1 -1
  39. package/dist/commonjs/models/components/livekittokenrequest.d.ts +3 -0
  40. package/dist/commonjs/models/components/livekittokenrequest.d.ts.map +1 -1
  41. package/dist/commonjs/models/components/livekittokenrequest.js.map +1 -1
  42. package/dist/commonjs/models/components/responseobject.d.ts +2 -11
  43. package/dist/commonjs/models/components/responseobject.d.ts.map +1 -1
  44. package/dist/commonjs/models/components/responseobject.js +3 -15
  45. package/dist/commonjs/models/components/responseobject.js.map +1 -1
  46. package/dist/commonjs/models/components/responsescreaterequest.d.ts +3 -0
  47. package/dist/commonjs/models/components/responsescreaterequest.d.ts.map +1 -1
  48. package/dist/commonjs/models/components/responsescreaterequest.js.map +1 -1
  49. package/dist/commonjs/models/components/update.d.ts +3 -0
  50. package/dist/commonjs/models/components/update.d.ts.map +1 -1
  51. package/dist/commonjs/models/components/update.js.map +1 -1
  52. package/dist/commonjs/models/components/updateresponserequest.d.ts +3 -0
  53. package/dist/commonjs/models/components/updateresponserequest.d.ts.map +1 -1
  54. package/dist/commonjs/models/components/updateresponserequest.js.map +1 -1
  55. package/dist/commonjs/models/operations/conversationsitemscreate.d.ts +123 -0
  56. package/dist/commonjs/models/operations/conversationsitemscreate.d.ts.map +1 -1
  57. package/dist/commonjs/models/operations/conversationsitemscreate.js +219 -1
  58. package/dist/commonjs/models/operations/conversationsitemscreate.js.map +1 -1
  59. package/dist/commonjs/models/operations/conversationsitemslist.d.ts +123 -0
  60. package/dist/commonjs/models/operations/conversationsitemslist.d.ts.map +1 -1
  61. package/dist/commonjs/models/operations/conversationsitemslist.js +220 -1
  62. package/dist/commonjs/models/operations/conversationsitemslist.js.map +1 -1
  63. package/dist/commonjs/models/operations/conversationsitemsretrieve.d.ts +85 -2
  64. package/dist/commonjs/models/operations/conversationsitemsretrieve.d.ts.map +1 -1
  65. package/dist/commonjs/models/operations/conversationsitemsretrieve.js +73 -3
  66. package/dist/commonjs/models/operations/conversationsitemsretrieve.js.map +1 -1
  67. package/dist/commonjs/models/operations/deleteprompt.d.ts +0 -11
  68. package/dist/commonjs/models/operations/deleteprompt.d.ts.map +1 -1
  69. package/dist/commonjs/models/operations/deleteprompt.js +1 -17
  70. package/dist/commonjs/models/operations/deleteprompt.js.map +1 -1
  71. package/dist/commonjs/models/operations/listevalsuiteversions.d.ts +8 -8
  72. package/dist/commonjs/models/operations/listevalsuiteversions.d.ts.map +1 -1
  73. package/dist/commonjs/models/operations/listevalsuiteversions.js +11 -12
  74. package/dist/commonjs/models/operations/listevalsuiteversions.js.map +1 -1
  75. package/dist/commonjs/react-query/llmConversationsCreateItems.d.ts +1 -2
  76. package/dist/commonjs/react-query/llmConversationsCreateItems.d.ts.map +1 -1
  77. package/dist/commonjs/react-query/llmConversationsCreateItems.js.map +1 -1
  78. package/dist/commonjs/react-query/llmConversationsListItems.core.d.ts +1 -2
  79. package/dist/commonjs/react-query/llmConversationsListItems.core.d.ts.map +1 -1
  80. package/dist/commonjs/react-query/llmConversationsListItems.core.js.map +1 -1
  81. package/dist/commonjs/sdk/conversations.d.ts +2 -2
  82. package/dist/commonjs/sdk/conversations.d.ts.map +1 -1
  83. package/dist/esm/funcs/llmConversationsCreateItems.d.ts +1 -2
  84. package/dist/esm/funcs/llmConversationsCreateItems.d.ts.map +1 -1
  85. package/dist/esm/funcs/llmConversationsCreateItems.js +1 -2
  86. package/dist/esm/funcs/llmConversationsCreateItems.js.map +1 -1
  87. package/dist/esm/funcs/llmConversationsListItems.d.ts +1 -2
  88. package/dist/esm/funcs/llmConversationsListItems.d.ts.map +1 -1
  89. package/dist/esm/funcs/llmConversationsListItems.js +1 -2
  90. package/dist/esm/funcs/llmConversationsListItems.js.map +1 -1
  91. package/dist/esm/funcs/llmPromptsDelete.js +2 -3
  92. package/dist/esm/funcs/llmPromptsDelete.js.map +1 -1
  93. package/dist/esm/lib/config.d.ts +2 -2
  94. package/dist/esm/lib/config.js +2 -2
  95. package/dist/esm/mcp-server/mcp-server.js +1 -1
  96. package/dist/esm/mcp-server/server.js +1 -1
  97. package/dist/esm/models/components/conversationobject.d.ts +3 -0
  98. package/dist/esm/models/components/conversationobject.d.ts.map +1 -1
  99. package/dist/esm/models/components/conversationobject.js.map +1 -1
  100. package/dist/esm/models/components/createconversationrequest.d.ts +3 -0
  101. package/dist/esm/models/components/createconversationrequest.d.ts.map +1 -1
  102. package/dist/esm/models/components/createconversationrequest.js.map +1 -1
  103. package/dist/esm/models/components/evalfewshotconfig.d.ts +4 -3
  104. package/dist/esm/models/components/evalfewshotconfig.d.ts.map +1 -1
  105. package/dist/esm/models/components/evalfewshotconfig.js +3 -2
  106. package/dist/esm/models/components/evalfewshotconfig.js.map +1 -1
  107. package/dist/esm/models/components/evalmetric.d.ts +37 -0
  108. package/dist/esm/models/components/evalmetric.d.ts.map +1 -0
  109. package/dist/esm/models/components/evalmetric.js +49 -0
  110. package/dist/esm/models/components/evalmetric.js.map +1 -0
  111. package/dist/esm/models/components/evaltask.d.ts +3 -2
  112. package/dist/esm/models/components/evaltask.d.ts.map +1 -1
  113. package/dist/esm/models/components/evaltask.js +3 -2
  114. package/dist/esm/models/components/evaltask.js.map +1 -1
  115. package/dist/esm/models/components/index.d.ts +1 -3
  116. package/dist/esm/models/components/index.d.ts.map +1 -1
  117. package/dist/esm/models/components/index.js +1 -3
  118. package/dist/esm/models/components/index.js.map +1 -1
  119. package/dist/esm/models/components/livekittokenrequest.d.ts +3 -0
  120. package/dist/esm/models/components/livekittokenrequest.d.ts.map +1 -1
  121. package/dist/esm/models/components/livekittokenrequest.js.map +1 -1
  122. package/dist/esm/models/components/responseobject.d.ts +2 -11
  123. package/dist/esm/models/components/responseobject.d.ts.map +1 -1
  124. package/dist/esm/models/components/responseobject.js +2 -12
  125. package/dist/esm/models/components/responseobject.js.map +1 -1
  126. package/dist/esm/models/components/responsescreaterequest.d.ts +3 -0
  127. package/dist/esm/models/components/responsescreaterequest.d.ts.map +1 -1
  128. package/dist/esm/models/components/responsescreaterequest.js.map +1 -1
  129. package/dist/esm/models/components/update.d.ts +3 -0
  130. package/dist/esm/models/components/update.d.ts.map +1 -1
  131. package/dist/esm/models/components/update.js.map +1 -1
  132. package/dist/esm/models/components/updateresponserequest.d.ts +3 -0
  133. package/dist/esm/models/components/updateresponserequest.d.ts.map +1 -1
  134. package/dist/esm/models/components/updateresponserequest.js.map +1 -1
  135. package/dist/esm/models/operations/conversationsitemscreate.d.ts +123 -0
  136. package/dist/esm/models/operations/conversationsitemscreate.d.ts.map +1 -1
  137. package/dist/esm/models/operations/conversationsitemscreate.js +210 -0
  138. package/dist/esm/models/operations/conversationsitemscreate.js.map +1 -1
  139. package/dist/esm/models/operations/conversationsitemslist.d.ts +123 -0
  140. package/dist/esm/models/operations/conversationsitemslist.d.ts.map +1 -1
  141. package/dist/esm/models/operations/conversationsitemslist.js +211 -0
  142. package/dist/esm/models/operations/conversationsitemslist.js.map +1 -1
  143. package/dist/esm/models/operations/conversationsitemsretrieve.d.ts +85 -2
  144. package/dist/esm/models/operations/conversationsitemsretrieve.d.ts.map +1 -1
  145. package/dist/esm/models/operations/conversationsitemsretrieve.js +68 -2
  146. package/dist/esm/models/operations/conversationsitemsretrieve.js.map +1 -1
  147. package/dist/esm/models/operations/deleteprompt.d.ts +0 -11
  148. package/dist/esm/models/operations/deleteprompt.d.ts.map +1 -1
  149. package/dist/esm/models/operations/deleteprompt.js +0 -14
  150. package/dist/esm/models/operations/deleteprompt.js.map +1 -1
  151. package/dist/esm/models/operations/listevalsuiteversions.d.ts +8 -8
  152. package/dist/esm/models/operations/listevalsuiteversions.d.ts.map +1 -1
  153. package/dist/esm/models/operations/listevalsuiteversions.js +8 -9
  154. package/dist/esm/models/operations/listevalsuiteversions.js.map +1 -1
  155. package/dist/esm/react-query/llmConversationsCreateItems.d.ts +1 -2
  156. package/dist/esm/react-query/llmConversationsCreateItems.d.ts.map +1 -1
  157. package/dist/esm/react-query/llmConversationsCreateItems.js.map +1 -1
  158. package/dist/esm/react-query/llmConversationsListItems.core.d.ts +1 -2
  159. package/dist/esm/react-query/llmConversationsListItems.core.d.ts.map +1 -1
  160. package/dist/esm/react-query/llmConversationsListItems.core.js.map +1 -1
  161. package/dist/esm/sdk/conversations.d.ts +2 -2
  162. package/dist/esm/sdk/conversations.d.ts.map +1 -1
  163. package/jsr.json +1 -1
  164. package/package.json +1 -1
  165. package/src/funcs/llmConversationsCreateItems.ts +4 -5
  166. package/src/funcs/llmConversationsListItems.ts +4 -5
  167. package/src/funcs/llmPromptsDelete.ts +2 -3
  168. package/src/lib/config.ts +2 -2
  169. package/src/mcp-server/mcp-server.ts +1 -1
  170. package/src/mcp-server/server.ts +1 -1
  171. package/src/models/components/conversationobject.ts +3 -0
  172. package/src/models/components/createconversationrequest.ts +3 -0
  173. package/src/models/components/evalfewshotconfig.ts +11 -5
  174. package/src/models/components/evalmetric.ts +96 -0
  175. package/src/models/components/evaltask.ts +10 -4
  176. package/src/models/components/index.ts +1 -3
  177. package/src/models/components/livekittokenrequest.ts +3 -0
  178. package/src/models/components/responseobject.ts +4 -47
  179. package/src/models/components/responsescreaterequest.ts +3 -0
  180. package/src/models/components/update.ts +3 -0
  181. package/src/models/components/updateresponserequest.ts +3 -0
  182. package/src/models/operations/conversationsitemscreate.ts +488 -0
  183. package/src/models/operations/conversationsitemslist.ts +496 -0
  184. package/src/models/operations/conversationsitemsretrieve.ts +168 -4
  185. package/src/models/operations/deleteprompt.ts +0 -41
  186. package/src/models/operations/listevalsuiteversions.ts +54 -44
  187. package/src/react-query/llmConversationsCreateItems.ts +2 -2
  188. package/src/react-query/llmConversationsListItems.core.ts +2 -2
  189. package/src/sdk/conversations.ts +2 -2
  190. package/dist/commonjs/models/components/inputmessagewithid.d.ts +0 -89
  191. package/dist/commonjs/models/components/inputmessagewithid.d.ts.map +0 -1
  192. package/dist/commonjs/models/components/inputmessagewithid.js +0 -106
  193. package/dist/commonjs/models/components/inputmessagewithid.js.map +0 -1
  194. package/dist/commonjs/models/components/itemlistobject.d.ts +0 -33
  195. package/dist/commonjs/models/components/itemlistobject.d.ts.map +0 -1
  196. package/dist/commonjs/models/components/itemlistobject.js.map +0 -1
  197. package/dist/commonjs/models/components/itemwithid.d.ts +0 -37
  198. package/dist/commonjs/models/components/itemwithid.d.ts.map +0 -1
  199. package/dist/commonjs/models/components/itemwithid.js +0 -128
  200. package/dist/commonjs/models/components/itemwithid.js.map +0 -1
  201. package/dist/esm/models/components/inputmessagewithid.d.ts +0 -89
  202. package/dist/esm/models/components/inputmessagewithid.d.ts.map +0 -1
  203. package/dist/esm/models/components/inputmessagewithid.js +0 -66
  204. package/dist/esm/models/components/inputmessagewithid.js.map +0 -1
  205. package/dist/esm/models/components/itemlistobject.d.ts +0 -33
  206. package/dist/esm/models/components/itemlistobject.d.ts.map +0 -1
  207. package/dist/esm/models/components/itemlistobject.js +0 -38
  208. package/dist/esm/models/components/itemlistobject.js.map +0 -1
  209. package/dist/esm/models/components/itemwithid.d.ts +0 -37
  210. package/dist/esm/models/components/itemwithid.d.ts.map +0 -1
  211. package/dist/esm/models/components/itemwithid.js +0 -90
  212. package/dist/esm/models/components/itemwithid.js.map +0 -1
  213. package/src/models/components/inputmessagewithid.ts +0 -183
  214. package/src/models/components/itemlistobject.ts +0 -85
  215. package/src/models/components/itemwithid.ts +0 -281
@@ -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,m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GAC1B,kBAAkB,GAClB,eAAe,GACf,0BAA0B,GAC1B,4BAA4B,GAC5B,mBAAmB,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,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,MAAM,UAAU,kBAAkB,CAChC,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,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
- }
@@ -1,85 +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 { Result as SafeParseResult } from "../../types/fp.js";
9
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
- import {
11
- ItemWithId,
12
- ItemWithId$inboundSchema,
13
- ItemWithId$Outbound,
14
- ItemWithId$outboundSchema,
15
- } from "./itemwithid.js";
16
-
17
- export type ItemListObject = {
18
- object?: "list" | undefined;
19
- /**
20
- * A list of conversation items.
21
- */
22
- data: Array<ItemWithId>;
23
- /**
24
- * Whether there are more items
25
- */
26
- hasMore: boolean;
27
- /**
28
- * ID of the last item in the current page
29
- */
30
- lastId: string;
31
- };
32
-
33
- /** @internal */
34
- export const ItemListObject$inboundSchema: z.ZodType<
35
- ItemListObject,
36
- z.ZodTypeDef,
37
- unknown
38
- > = z.object({
39
- object: z.literal("list").optional(),
40
- data: z.array(ItemWithId$inboundSchema),
41
- has_more: z.boolean(),
42
- last_id: z.string(),
43
- }).transform((v) => {
44
- return remap$(v, {
45
- "has_more": "hasMore",
46
- "last_id": "lastId",
47
- });
48
- });
49
- /** @internal */
50
- export type ItemListObject$Outbound = {
51
- object?: "list" | undefined;
52
- data: Array<ItemWithId$Outbound>;
53
- has_more: boolean;
54
- last_id: string;
55
- };
56
-
57
- /** @internal */
58
- export const ItemListObject$outboundSchema: z.ZodType<
59
- ItemListObject$Outbound,
60
- z.ZodTypeDef,
61
- ItemListObject
62
- > = z.object({
63
- object: z.literal("list").optional(),
64
- data: z.array(ItemWithId$outboundSchema),
65
- hasMore: z.boolean(),
66
- lastId: z.string(),
67
- }).transform((v) => {
68
- return remap$(v, {
69
- hasMore: "has_more",
70
- lastId: "last_id",
71
- });
72
- });
73
-
74
- export function itemListObjectToJSON(itemListObject: ItemListObject): string {
75
- return JSON.stringify(ItemListObject$outboundSchema.parse(itemListObject));
76
- }
77
- export function itemListObjectFromJSON(
78
- jsonString: string,
79
- ): SafeParseResult<ItemListObject, SDKValidationError> {
80
- return safeParse(
81
- jsonString,
82
- (x) => ItemListObject$inboundSchema.parse(JSON.parse(x)),
83
- `Failed to parse 'ItemListObject' from JSON`,
84
- );
85
- }