tekimax-ts 0.1.6 → 1.0.0-beta.1

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 (353) hide show
  1. package/README.md +160 -97
  2. package/dist/adapter-BtbeHotF.d.cts +81 -0
  3. package/dist/adapter-BtbeHotF.d.ts +81 -0
  4. package/dist/adapter-CMu9Gvvm.d.cts +81 -0
  5. package/dist/adapter-CMu9Gvvm.d.ts +81 -0
  6. package/dist/adapter-DeUJcFAn.d.cts +43 -0
  7. package/dist/adapter-DeUJcFAn.d.ts +43 -0
  8. package/dist/adapter-K9NFtBg8.d.cts +81 -0
  9. package/dist/adapter-K9NFtBg8.d.ts +81 -0
  10. package/dist/adapter-TuDzMu0Y.d.cts +43 -0
  11. package/dist/adapter-TuDzMu0Y.d.ts +43 -0
  12. package/dist/adapter-YcdKK3By.d.cts +63 -0
  13. package/dist/adapter-YcdKK3By.d.ts +63 -0
  14. package/dist/adapter-zXqUGXCx.d.cts +81 -0
  15. package/dist/adapter-zXqUGXCx.d.ts +81 -0
  16. package/dist/chunk-MLKGABMK.js +9 -0
  17. package/dist/gen/index.js +1572 -378
  18. package/dist/gen/types.js +290 -201
  19. package/dist/gen/zod/allowedToolChoiceSchema.js +17 -13
  20. package/dist/gen/zod/allowedToolsParamSchema.js +28 -13
  21. package/dist/gen/zod/annotationSchema.js +16 -11
  22. package/dist/gen/zod/assistantMessageItemParamSchema.js +52 -19
  23. package/dist/gen/zod/createResponseBodySchema.js +142 -44
  24. package/dist/gen/zod/createresponseSchema.js +23 -12
  25. package/dist/gen/zod/detailEnumSchema.js +8 -8
  26. package/dist/gen/zod/developerMessageItemParamSchema.js +35 -16
  27. package/dist/gen/zod/emptyModelParamSchema.js +8 -8
  28. package/dist/gen/zod/errorPayloadSchema.js +27 -14
  29. package/dist/gen/zod/errorSchema.js +17 -11
  30. package/dist/gen/zod/errorStreamingEventSchema.js +23 -13
  31. package/dist/gen/zod/functionCallItemParamSchema.js +38 -15
  32. package/dist/gen/zod/functionCallItemStatusSchema.js +12 -8
  33. package/dist/gen/zod/functionCallOutputItemParamSchema.js +90 -27
  34. package/dist/gen/zod/functionCallOutputSchema.js +67 -24
  35. package/dist/gen/zod/functionCallOutputStatusEnumSchema.js +12 -8
  36. package/dist/gen/zod/functionCallSchema.js +29 -16
  37. package/dist/gen/zod/functionCallStatusSchema.js +12 -8
  38. package/dist/gen/zod/functionToolChoiceSchema.js +10 -10
  39. package/dist/gen/zod/functionToolParamSchema.js +25 -14
  40. package/dist/gen/zod/functionToolSchema.js +24 -14
  41. package/dist/gen/zod/imageDetailSchema.js +8 -8
  42. package/dist/gen/zod/includeEnumSchema.js +11 -8
  43. package/dist/gen/zod/incompleteDetailsSchema.js +14 -10
  44. package/dist/gen/zod/index.js +871 -213
  45. package/dist/gen/zod/inputFileContentParamSchema.js +24 -13
  46. package/dist/gen/zod/inputFileContentSchema.js +23 -12
  47. package/dist/gen/zod/inputImageContentParamAutoParamSchema.js +29 -13
  48. package/dist/gen/zod/inputImageContentSchema.js +22 -13
  49. package/dist/gen/zod/inputTextContentParamSchema.js +19 -11
  50. package/dist/gen/zod/inputTextContentSchema.js +16 -11
  51. package/dist/gen/zod/inputTokensDetailsSchema.js +15 -10
  52. package/dist/gen/zod/inputVideoContentSchema.js +17 -11
  53. package/dist/gen/zod/itemFieldSchema.js +45 -20
  54. package/dist/gen/zod/itemParamSchema.js +55 -23
  55. package/dist/gen/zod/itemReferenceParamSchema.js +15 -11
  56. package/dist/gen/zod/jsonObjectResponseFormatSchema.js +9 -9
  57. package/dist/gen/zod/jsonSchemaResponseFormatParamSchema.js +38 -13
  58. package/dist/gen/zod/jsonSchemaResponseFormatSchema.js +13 -13
  59. package/dist/gen/zod/logProbSchema.js +20 -14
  60. package/dist/gen/zod/messageRoleSchema.js +13 -8
  61. package/dist/gen/zod/messageSchema.js +109 -43
  62. package/dist/gen/zod/messageStatusSchema.js +12 -8
  63. package/dist/gen/zod/metadataParamSchema.js +13 -8
  64. package/dist/gen/zod/outputTextContentParamSchema.js +21 -12
  65. package/dist/gen/zod/outputTextContentSchema.js +30 -15
  66. package/dist/gen/zod/outputTokensDetailsSchema.js +17 -10
  67. package/dist/gen/zod/reasoningBodySchema.js +173 -54
  68. package/dist/gen/zod/reasoningEffortEnumSchema.js +14 -8
  69. package/dist/gen/zod/reasoningItemParamSchema.js +26 -14
  70. package/dist/gen/zod/reasoningParamSchema.js +33 -13
  71. package/dist/gen/zod/reasoningSchema.js +27 -13
  72. package/dist/gen/zod/reasoningSummaryContentParamSchema.js +13 -10
  73. package/dist/gen/zod/reasoningSummaryEnumSchema.js +12 -8
  74. package/dist/gen/zod/reasoningTextContentSchema.js +16 -11
  75. package/dist/gen/zod/refusalContentParamSchema.js +13 -10
  76. package/dist/gen/zod/refusalContentSchema.js +18 -11
  77. package/dist/gen/zod/responseCompletedStreamingEventSchema.js +23 -13
  78. package/dist/gen/zod/responseContentPartAddedStreamingEventSchema.js +98 -39
  79. package/dist/gen/zod/responseContentPartDoneStreamingEventSchema.js +98 -39
  80. package/dist/gen/zod/responseCreatedStreamingEventSchema.js +23 -13
  81. package/dist/gen/zod/responseFailedStreamingEventSchema.js +23 -13
  82. package/dist/gen/zod/responseFunctionCallArgumentsDeltaStreamingEventSchema.js +38 -15
  83. package/dist/gen/zod/responseFunctionCallArgumentsDoneStreamingEventSchema.js +33 -14
  84. package/dist/gen/zod/responseInProgressStreamingEventSchema.js +23 -13
  85. package/dist/gen/zod/responseIncompleteStreamingEventSchema.js +23 -13
  86. package/dist/gen/zod/responseOutputItemAddedStreamingEventSchema.js +32 -14
  87. package/dist/gen/zod/responseOutputItemDoneStreamingEventSchema.js +30 -14
  88. package/dist/gen/zod/responseOutputTextAnnotationAddedStreamingEventSchema.js +43 -17
  89. package/dist/gen/zod/responseOutputTextDeltaStreamingEventSchema.js +48 -18
  90. package/dist/gen/zod/responseOutputTextDoneStreamingEventSchema.js +39 -17
  91. package/dist/gen/zod/responseQueuedStreamingEventSchema.js +23 -13
  92. package/dist/gen/zod/responseReasoningDeltaStreamingEventSchema.js +40 -16
  93. package/dist/gen/zod/responseReasoningDoneStreamingEventSchema.js +31 -15
  94. package/dist/gen/zod/responseReasoningSummaryDeltaStreamingEventSchema.js +42 -16
  95. package/dist/gen/zod/responseReasoningSummaryDoneStreamingEventSchema.js +33 -15
  96. package/dist/gen/zod/responseReasoningSummaryPartAddedStreamingEventSchema.js +102 -39
  97. package/dist/gen/zod/responseReasoningSummaryPartDoneStreamingEventSchema.js +102 -39
  98. package/dist/gen/zod/responseRefusalDeltaStreamingEventSchema.js +33 -15
  99. package/dist/gen/zod/responseRefusalDoneStreamingEventSchema.js +31 -15
  100. package/dist/gen/zod/responseResourceSchema.js +146 -51
  101. package/dist/gen/zod/responsesToolParamSchema.js +15 -11
  102. package/dist/gen/zod/serviceTierEnumSchema.js +13 -8
  103. package/dist/gen/zod/specificFunctionParamSchema.js +13 -10
  104. package/dist/gen/zod/specificToolChoiceParamSchema.js +11 -9
  105. package/dist/gen/zod/streamOptionsParamSchema.js +18 -10
  106. package/dist/gen/zod/summaryTextContentSchema.js +18 -11
  107. package/dist/gen/zod/systemMessageItemParamSchema.js +35 -16
  108. package/dist/gen/zod/textContentSchema.js +13 -11
  109. package/dist/gen/zod/textFieldSchema.js +24 -14
  110. package/dist/gen/zod/textFormatParamSchema.js +16 -10
  111. package/dist/gen/zod/textParamSchema.js +23 -12
  112. package/dist/gen/zod/textResponseFormatSchema.js +9 -9
  113. package/dist/gen/zod/toolChoiceParamSchema.js +21 -11
  114. package/dist/gen/zod/toolChoiceValueEnumSchema.js +8 -8
  115. package/dist/gen/zod/toolSchema.js +16 -11
  116. package/dist/gen/zod/topLogProbSchema.js +14 -12
  117. package/dist/gen/zod/truncationEnumSchema.js +8 -8
  118. package/dist/gen/zod/urlCitationBodySchema.js +29 -14
  119. package/dist/gen/zod/urlCitationParamSchema.js +28 -13
  120. package/dist/gen/zod/usageSchema.js +35 -16
  121. package/dist/gen/zod/userMessageItemParamSchema.js +64 -22
  122. package/dist/gen/zod/verbosityEnumSchema.js +8 -8
  123. package/dist/index.cjs +740 -0
  124. package/dist/index.d.cts +2742 -0
  125. package/dist/index.d.mts +51000 -31111
  126. package/dist/index.d.ts +962 -29932
  127. package/dist/index.js +347 -1431
  128. package/dist/index.mjs +2441 -1010
  129. package/dist/react/index.cjs +119 -0
  130. package/dist/react/index.d.cts +21 -0
  131. package/dist/react/index.d.ts +21 -0
  132. package/dist/react/index.js +94 -0
  133. package/package.json +40 -8
  134. package/.dockerignore +0 -5
  135. package/Dockerfile +0 -25
  136. package/kubb.config.js +0 -30
  137. package/kubb.config.ts +0 -35
  138. package/public/logos/tekimax-logo-ScreenRGB-2.png +0 -0
  139. package/spec/openapi.json +0 -3876
  140. package/src/client.ts +0 -129
  141. package/src/gen/.kubb/config.ts +0 -43
  142. package/src/gen/client/createresponse.ts +0 -27
  143. package/src/gen/client/index.ts +0 -1
  144. package/src/gen/index.ts +0 -187
  145. package/src/gen/schemas/allowedToolChoice.json +0 -1
  146. package/src/gen/schemas/allowedToolsParam.json +0 -1
  147. package/src/gen/schemas/annotation.json +0 -1
  148. package/src/gen/schemas/assistantMessageItemParam.json +0 -1
  149. package/src/gen/schemas/createResponseBody.json +0 -1
  150. package/src/gen/schemas/detailEnum.json +0 -1
  151. package/src/gen/schemas/developerMessageItemParam.json +0 -1
  152. package/src/gen/schemas/emptyModelParam.json +0 -1
  153. package/src/gen/schemas/error.json +0 -1
  154. package/src/gen/schemas/errorPayload.json +0 -1
  155. package/src/gen/schemas/errorStreamingEvent.json +0 -1
  156. package/src/gen/schemas/functionCall.json +0 -1
  157. package/src/gen/schemas/functionCallItemParam.json +0 -1
  158. package/src/gen/schemas/functionCallItemStatus.json +0 -1
  159. package/src/gen/schemas/functionCallOutput.json +0 -1
  160. package/src/gen/schemas/functionCallOutputItemParam.json +0 -1
  161. package/src/gen/schemas/functionCallOutputStatusEnum.json +0 -1
  162. package/src/gen/schemas/functionCallStatus.json +0 -1
  163. package/src/gen/schemas/functionTool.json +0 -1
  164. package/src/gen/schemas/functionToolChoice.json +0 -1
  165. package/src/gen/schemas/functionToolParam.json +0 -1
  166. package/src/gen/schemas/imageDetail.json +0 -1
  167. package/src/gen/schemas/includeEnum.json +0 -1
  168. package/src/gen/schemas/incompleteDetails.json +0 -1
  169. package/src/gen/schemas/inputFileContent.json +0 -1
  170. package/src/gen/schemas/inputFileContentParam.json +0 -1
  171. package/src/gen/schemas/inputImageContent.json +0 -1
  172. package/src/gen/schemas/inputImageContentParamAutoParam.json +0 -1
  173. package/src/gen/schemas/inputTextContent.json +0 -1
  174. package/src/gen/schemas/inputTextContentParam.json +0 -1
  175. package/src/gen/schemas/inputTokensDetails.json +0 -1
  176. package/src/gen/schemas/inputVideoContent.json +0 -1
  177. package/src/gen/schemas/itemField.json +0 -1
  178. package/src/gen/schemas/itemParam.json +0 -1
  179. package/src/gen/schemas/itemReferenceParam.json +0 -1
  180. package/src/gen/schemas/jsonObjectResponseFormat.json +0 -1
  181. package/src/gen/schemas/jsonSchemaResponseFormat.json +0 -1
  182. package/src/gen/schemas/jsonSchemaResponseFormatParam.json +0 -1
  183. package/src/gen/schemas/logProb.json +0 -1
  184. package/src/gen/schemas/message.json +0 -1
  185. package/src/gen/schemas/messageRole.json +0 -1
  186. package/src/gen/schemas/messageStatus.json +0 -1
  187. package/src/gen/schemas/metadataParam.json +0 -1
  188. package/src/gen/schemas/outputTextContent.json +0 -1
  189. package/src/gen/schemas/outputTextContentParam.json +0 -1
  190. package/src/gen/schemas/outputTokensDetails.json +0 -1
  191. package/src/gen/schemas/reasoning.json +0 -1
  192. package/src/gen/schemas/reasoningBody.json +0 -1
  193. package/src/gen/schemas/reasoningEffortEnum.json +0 -1
  194. package/src/gen/schemas/reasoningItemParam.json +0 -1
  195. package/src/gen/schemas/reasoningParam.json +0 -1
  196. package/src/gen/schemas/reasoningSummaryContentParam.json +0 -1
  197. package/src/gen/schemas/reasoningSummaryEnum.json +0 -1
  198. package/src/gen/schemas/reasoningTextContent.json +0 -1
  199. package/src/gen/schemas/refusalContent.json +0 -1
  200. package/src/gen/schemas/refusalContentParam.json +0 -1
  201. package/src/gen/schemas/responseCompletedStreamingEvent.json +0 -1
  202. package/src/gen/schemas/responseContentPartAddedStreamingEvent.json +0 -1
  203. package/src/gen/schemas/responseContentPartDoneStreamingEvent.json +0 -1
  204. package/src/gen/schemas/responseCreatedStreamingEvent.json +0 -1
  205. package/src/gen/schemas/responseFailedStreamingEvent.json +0 -1
  206. package/src/gen/schemas/responseFunctionCallArgumentsDeltaStreamingEvent.json +0 -1
  207. package/src/gen/schemas/responseFunctionCallArgumentsDoneStreamingEvent.json +0 -1
  208. package/src/gen/schemas/responseInProgressStreamingEvent.json +0 -1
  209. package/src/gen/schemas/responseIncompleteStreamingEvent.json +0 -1
  210. package/src/gen/schemas/responseOutputItemAddedStreamingEvent.json +0 -1
  211. package/src/gen/schemas/responseOutputItemDoneStreamingEvent.json +0 -1
  212. package/src/gen/schemas/responseOutputTextAnnotationAddedStreamingEvent.json +0 -1
  213. package/src/gen/schemas/responseOutputTextDeltaStreamingEvent.json +0 -1
  214. package/src/gen/schemas/responseOutputTextDoneStreamingEvent.json +0 -1
  215. package/src/gen/schemas/responseQueuedStreamingEvent.json +0 -1
  216. package/src/gen/schemas/responseReasoningDeltaStreamingEvent.json +0 -1
  217. package/src/gen/schemas/responseReasoningDoneStreamingEvent.json +0 -1
  218. package/src/gen/schemas/responseReasoningSummaryDeltaStreamingEvent.json +0 -1
  219. package/src/gen/schemas/responseReasoningSummaryDoneStreamingEvent.json +0 -1
  220. package/src/gen/schemas/responseReasoningSummaryPartAddedStreamingEvent.json +0 -1
  221. package/src/gen/schemas/responseReasoningSummaryPartDoneStreamingEvent.json +0 -1
  222. package/src/gen/schemas/responseRefusalDeltaStreamingEvent.json +0 -1
  223. package/src/gen/schemas/responseRefusalDoneStreamingEvent.json +0 -1
  224. package/src/gen/schemas/responseResource.json +0 -1
  225. package/src/gen/schemas/responsesToolParam.json +0 -1
  226. package/src/gen/schemas/serviceTierEnum.json +0 -1
  227. package/src/gen/schemas/specificFunctionParam.json +0 -1
  228. package/src/gen/schemas/specificToolChoiceParam.json +0 -1
  229. package/src/gen/schemas/streamOptionsParam.json +0 -1
  230. package/src/gen/schemas/summaryTextContent.json +0 -1
  231. package/src/gen/schemas/systemMessageItemParam.json +0 -1
  232. package/src/gen/schemas/textContent.json +0 -1
  233. package/src/gen/schemas/textField.json +0 -1
  234. package/src/gen/schemas/textFormatParam.json +0 -1
  235. package/src/gen/schemas/textParam.json +0 -1
  236. package/src/gen/schemas/textResponseFormat.json +0 -1
  237. package/src/gen/schemas/tool.json +0 -1
  238. package/src/gen/schemas/toolChoiceParam.json +0 -1
  239. package/src/gen/schemas/toolChoiceValueEnum.json +0 -1
  240. package/src/gen/schemas/topLogProb.json +0 -1
  241. package/src/gen/schemas/truncationEnum.json +0 -1
  242. package/src/gen/schemas/urlCitationBody.json +0 -1
  243. package/src/gen/schemas/urlCitationParam.json +0 -1
  244. package/src/gen/schemas/usage.json +0 -1
  245. package/src/gen/schemas/userMessageItemParam.json +0 -1
  246. package/src/gen/schemas/verbosityEnum.json +0 -1
  247. package/src/gen/types.ts +0 -2613
  248. package/src/gen/zod/allowedToolChoiceSchema.ts +0 -14
  249. package/src/gen/zod/allowedToolsParamSchema.ts +0 -14
  250. package/src/gen/zod/annotationSchema.ts +0 -14
  251. package/src/gen/zod/assistantMessageItemParamSchema.ts +0 -20
  252. package/src/gen/zod/createResponseBodySchema.ts +0 -45
  253. package/src/gen/zod/createresponseSchema.ts +0 -17
  254. package/src/gen/zod/detailEnumSchema.ts +0 -8
  255. package/src/gen/zod/developerMessageItemParamSchema.ts +0 -17
  256. package/src/gen/zod/emptyModelParamSchema.ts +0 -10
  257. package/src/gen/zod/errorPayloadSchema.ts +0 -19
  258. package/src/gen/zod/errorSchema.ts +0 -14
  259. package/src/gen/zod/errorStreamingEventSchema.ts +0 -16
  260. package/src/gen/zod/functionCallItemParamSchema.ts +0 -16
  261. package/src/gen/zod/functionCallItemStatusSchema.ts +0 -8
  262. package/src/gen/zod/functionCallOutputItemParamSchema.ts +0 -30
  263. package/src/gen/zod/functionCallOutputSchema.ts +0 -27
  264. package/src/gen/zod/functionCallOutputStatusEnumSchema.ts +0 -11
  265. package/src/gen/zod/functionCallSchema.ts +0 -19
  266. package/src/gen/zod/functionCallStatusSchema.ts +0 -8
  267. package/src/gen/zod/functionToolChoiceSchema.ts +0 -11
  268. package/src/gen/zod/functionToolParamSchema.ts +0 -15
  269. package/src/gen/zod/functionToolSchema.ts +0 -19
  270. package/src/gen/zod/imageDetailSchema.ts +0 -8
  271. package/src/gen/zod/includeEnumSchema.ts +0 -8
  272. package/src/gen/zod/incompleteDetailsSchema.ts +0 -13
  273. package/src/gen/zod/index.ts +0 -103
  274. package/src/gen/zod/inputFileContentParamSchema.ts +0 -16
  275. package/src/gen/zod/inputFileContentSchema.ts +0 -15
  276. package/src/gen/zod/inputImageContentParamAutoParamSchema.ts +0 -16
  277. package/src/gen/zod/inputImageContentSchema.ts +0 -16
  278. package/src/gen/zod/inputTextContentParamSchema.ts +0 -14
  279. package/src/gen/zod/inputTextContentSchema.ts +0 -14
  280. package/src/gen/zod/inputTokensDetailsSchema.ts +0 -13
  281. package/src/gen/zod/inputVideoContentSchema.ts +0 -14
  282. package/src/gen/zod/itemFieldSchema.ts +0 -23
  283. package/src/gen/zod/itemParamSchema.ts +0 -23
  284. package/src/gen/zod/itemReferenceParamSchema.ts +0 -14
  285. package/src/gen/zod/jsonObjectResponseFormatSchema.ts +0 -10
  286. package/src/gen/zod/jsonSchemaResponseFormatParamSchema.ts +0 -16
  287. package/src/gen/zod/jsonSchemaResponseFormatSchema.ts +0 -14
  288. package/src/gen/zod/logProbSchema.ts +0 -17
  289. package/src/gen/zod/messageRoleSchema.ts +0 -8
  290. package/src/gen/zod/messageSchema.ts +0 -46
  291. package/src/gen/zod/messageStatusSchema.ts +0 -8
  292. package/src/gen/zod/metadataParamSchema.ts +0 -13
  293. package/src/gen/zod/outputTextContentParamSchema.ts +0 -13
  294. package/src/gen/zod/outputTextContentSchema.ts +0 -18
  295. package/src/gen/zod/outputTokensDetailsSchema.ts +0 -13
  296. package/src/gen/zod/reasoningBodySchema.ts +0 -57
  297. package/src/gen/zod/reasoningEffortEnumSchema.ts +0 -8
  298. package/src/gen/zod/reasoningItemParamSchema.ts +0 -15
  299. package/src/gen/zod/reasoningParamSchema.ts +0 -16
  300. package/src/gen/zod/reasoningSchema.ts +0 -16
  301. package/src/gen/zod/reasoningSummaryContentParamSchema.ts +0 -11
  302. package/src/gen/zod/reasoningSummaryEnumSchema.ts +0 -8
  303. package/src/gen/zod/reasoningTextContentSchema.ts +0 -14
  304. package/src/gen/zod/refusalContentParamSchema.ts +0 -11
  305. package/src/gen/zod/refusalContentSchema.ts +0 -14
  306. package/src/gen/zod/responseCompletedStreamingEventSchema.ts +0 -16
  307. package/src/gen/zod/responseContentPartAddedStreamingEventSchema.ts +0 -42
  308. package/src/gen/zod/responseContentPartDoneStreamingEventSchema.ts +0 -42
  309. package/src/gen/zod/responseCreatedStreamingEventSchema.ts +0 -16
  310. package/src/gen/zod/responseFailedStreamingEventSchema.ts +0 -16
  311. package/src/gen/zod/responseFunctionCallArgumentsDeltaStreamingEventSchema.ts +0 -18
  312. package/src/gen/zod/responseFunctionCallArgumentsDoneStreamingEventSchema.ts +0 -17
  313. package/src/gen/zod/responseInProgressStreamingEventSchema.ts +0 -16
  314. package/src/gen/zod/responseIncompleteStreamingEventSchema.ts +0 -16
  315. package/src/gen/zod/responseOutputItemAddedStreamingEventSchema.ts +0 -17
  316. package/src/gen/zod/responseOutputItemDoneStreamingEventSchema.ts +0 -17
  317. package/src/gen/zod/responseOutputTextAnnotationAddedStreamingEventSchema.ts +0 -20
  318. package/src/gen/zod/responseOutputTextDeltaStreamingEventSchema.ts +0 -21
  319. package/src/gen/zod/responseOutputTextDoneStreamingEventSchema.ts +0 -20
  320. package/src/gen/zod/responseQueuedStreamingEventSchema.ts +0 -16
  321. package/src/gen/zod/responseReasoningDeltaStreamingEventSchema.ts +0 -19
  322. package/src/gen/zod/responseReasoningDoneStreamingEventSchema.ts +0 -18
  323. package/src/gen/zod/responseReasoningSummaryDeltaStreamingEventSchema.ts +0 -19
  324. package/src/gen/zod/responseReasoningSummaryDoneStreamingEventSchema.ts +0 -18
  325. package/src/gen/zod/responseReasoningSummaryPartAddedStreamingEventSchema.ts +0 -42
  326. package/src/gen/zod/responseReasoningSummaryPartDoneStreamingEventSchema.ts +0 -42
  327. package/src/gen/zod/responseRefusalDeltaStreamingEventSchema.ts +0 -18
  328. package/src/gen/zod/responseRefusalDoneStreamingEventSchema.ts +0 -18
  329. package/src/gen/zod/responseResourceSchema.ts +0 -54
  330. package/src/gen/zod/responsesToolParamSchema.ts +0 -11
  331. package/src/gen/zod/serviceTierEnumSchema.ts +0 -8
  332. package/src/gen/zod/specificFunctionParamSchema.ts +0 -11
  333. package/src/gen/zod/specificToolChoiceParamSchema.ts +0 -9
  334. package/src/gen/zod/streamOptionsParamSchema.ts +0 -13
  335. package/src/gen/zod/summaryTextContentSchema.ts +0 -14
  336. package/src/gen/zod/systemMessageItemParamSchema.ts +0 -17
  337. package/src/gen/zod/textContentSchema.ts +0 -14
  338. package/src/gen/zod/textFieldSchema.ts +0 -15
  339. package/src/gen/zod/textFormatParamSchema.ts +0 -10
  340. package/src/gen/zod/textParamSchema.ts +0 -13
  341. package/src/gen/zod/textResponseFormatSchema.ts +0 -10
  342. package/src/gen/zod/toolChoiceParamSchema.ts +0 -14
  343. package/src/gen/zod/toolChoiceValueEnumSchema.ts +0 -8
  344. package/src/gen/zod/toolSchema.ts +0 -14
  345. package/src/gen/zod/topLogProbSchema.ts +0 -15
  346. package/src/gen/zod/truncationEnumSchema.ts +0 -8
  347. package/src/gen/zod/urlCitationBodySchema.ts +0 -17
  348. package/src/gen/zod/urlCitationParamSchema.ts +0 -14
  349. package/src/gen/zod/usageSchema.ts +0 -19
  350. package/src/gen/zod/userMessageItemParamSchema.ts +0 -23
  351. package/src/gen/zod/verbosityEnumSchema.ts +0 -8
  352. package/src/index.ts +0 -3
  353. package/tsconfig.json +0 -21
@@ -1,15 +1,20 @@
1
- "use strict";
1
+ 'use strict'
2
2
  /**
3
- * Generated by Kubb (https://kubb.dev/).
4
- * Do not edit manually.
5
- */
6
- Object.defineProperty(exports, "__esModule", { value: true });
7
- exports.annotationSchema = void 0;
8
- const urlCitationBodySchema_ts_1 = require("./urlCitationBodySchema.ts");
9
- const zod_1 = require("zod");
3
+ * Generated by Kubb (https://kubb.dev/).
4
+ * Do not edit manually.
5
+ */
6
+ Object.defineProperty(exports, '__esModule', { value: true })
7
+ exports.annotationSchema = void 0
8
+ const urlCitationBodySchema_ts_1 = require('./urlCitationBodySchema.ts')
9
+ const zod_1 = require('zod')
10
10
  /**
11
11
  * @description An annotation that applies to a span of output text.
12
12
  */
13
- exports.annotationSchema = zod_1.z.lazy(() => urlCitationBodySchema_ts_1.urlCitationBodySchema).and(zod_1.z.object({
14
- "type": zod_1.z.literal("url_citation")
15
- })).describe("An annotation that applies to a span of output text.");
13
+ exports.annotationSchema = zod_1.z
14
+ .lazy(() => urlCitationBodySchema_ts_1.urlCitationBodySchema)
15
+ .and(
16
+ zod_1.z.object({
17
+ type: zod_1.z.literal('url_citation'),
18
+ }),
19
+ )
20
+ .describe('An annotation that applies to a span of output text.')
@@ -1,21 +1,54 @@
1
- "use strict";
1
+ 'use strict'
2
2
  /**
3
- * Generated by Kubb (https://kubb.dev/).
4
- * Do not edit manually.
5
- */
6
- Object.defineProperty(exports, "__esModule", { value: true });
7
- exports.assistantMessageItemParamSchema = void 0;
8
- const outputTextContentParamSchema_ts_1 = require("./outputTextContentParamSchema.ts");
9
- const refusalContentParamSchema_ts_1 = require("./refusalContentParamSchema.ts");
10
- const zod_1 = require("zod");
3
+ * Generated by Kubb (https://kubb.dev/).
4
+ * Do not edit manually.
5
+ */
6
+ Object.defineProperty(exports, '__esModule', { value: true })
7
+ exports.assistantMessageItemParamSchema = void 0
8
+ const outputTextContentParamSchema_ts_1 = require('./outputTextContentParamSchema.ts')
9
+ const refusalContentParamSchema_ts_1 = require('./refusalContentParamSchema.ts')
10
+ const zod_1 = require('zod')
11
11
  exports.assistantMessageItemParamSchema = zod_1.z.object({
12
- "id": zod_1.z.optional(zod_1.z.union([zod_1.z.string(), zod_1.z.null()])),
13
- "type": zod_1.z.enum(["message"]).default("message").describe("The item type. Always `message`."),
14
- "role": zod_1.z.enum(["assistant"]).default("assistant").describe("The role of the message author. Always `assistant`."),
15
- "content": zod_1.z.union([zod_1.z.array(zod_1.z.union([zod_1.z.lazy(() => outputTextContentParamSchema_ts_1.outputTextContentParamSchema).and(zod_1.z.object({
16
- "type": zod_1.z.literal("output_text")
17
- })), zod_1.z.lazy(() => refusalContentParamSchema_ts_1.refusalContentParamSchema).and(zod_1.z.object({
18
- "type": zod_1.z.literal("refusal")
19
- }))]).describe("A piece of assistant message content, such as text or a refusal.")), zod_1.z.string()]).describe("The message content, as an array of content parts."),
20
- "status": zod_1.z.optional(zod_1.z.union([zod_1.z.string(), zod_1.z.null()]))
21
- });
12
+ id: zod_1.z.optional(zod_1.z.union([zod_1.z.string(), zod_1.z.null()])),
13
+ type: zod_1.z
14
+ .enum(['message'])
15
+ .default('message')
16
+ .describe('The item type. Always `message`.'),
17
+ role: zod_1.z
18
+ .enum(['assistant'])
19
+ .default('assistant')
20
+ .describe('The role of the message author. Always `assistant`.'),
21
+ content: zod_1.z
22
+ .union([
23
+ zod_1.z.array(
24
+ zod_1.z
25
+ .union([
26
+ zod_1.z
27
+ .lazy(
28
+ () =>
29
+ outputTextContentParamSchema_ts_1.outputTextContentParamSchema,
30
+ )
31
+ .and(
32
+ zod_1.z.object({
33
+ type: zod_1.z.literal('output_text'),
34
+ }),
35
+ ),
36
+ zod_1.z
37
+ .lazy(
38
+ () => refusalContentParamSchema_ts_1.refusalContentParamSchema,
39
+ )
40
+ .and(
41
+ zod_1.z.object({
42
+ type: zod_1.z.literal('refusal'),
43
+ }),
44
+ ),
45
+ ])
46
+ .describe(
47
+ 'A piece of assistant message content, such as text or a refusal.',
48
+ ),
49
+ ),
50
+ zod_1.z.string(),
51
+ ])
52
+ .describe('The message content, as an array of content parts.'),
53
+ status: zod_1.z.optional(zod_1.z.union([zod_1.z.string(), zod_1.z.null()])),
54
+ })
@@ -1,46 +1,144 @@
1
- "use strict";
1
+ 'use strict'
2
2
  /**
3
- * Generated by Kubb (https://kubb.dev/).
4
- * Do not edit manually.
5
- */
6
- Object.defineProperty(exports, "__esModule", { value: true });
7
- exports.createResponseBodySchema = void 0;
8
- const includeEnumSchema_ts_1 = require("./includeEnumSchema.ts");
9
- const itemParamSchema_ts_1 = require("./itemParamSchema.ts");
10
- const metadataParamSchema_ts_1 = require("./metadataParamSchema.ts");
11
- const reasoningParamSchema_ts_1 = require("./reasoningParamSchema.ts");
12
- const responsesToolParamSchema_ts_1 = require("./responsesToolParamSchema.ts");
13
- const serviceTierEnumSchema_ts_1 = require("./serviceTierEnumSchema.ts");
14
- const streamOptionsParamSchema_ts_1 = require("./streamOptionsParamSchema.ts");
15
- const textParamSchema_ts_1 = require("./textParamSchema.ts");
16
- const toolChoiceParamSchema_ts_1 = require("./toolChoiceParamSchema.ts");
17
- const truncationEnumSchema_ts_1 = require("./truncationEnumSchema.ts");
18
- const zod_1 = require("zod");
3
+ * Generated by Kubb (https://kubb.dev/).
4
+ * Do not edit manually.
5
+ */
6
+ Object.defineProperty(exports, '__esModule', { value: true })
7
+ exports.createResponseBodySchema = void 0
8
+ const includeEnumSchema_ts_1 = require('./includeEnumSchema.ts')
9
+ const itemParamSchema_ts_1 = require('./itemParamSchema.ts')
10
+ const metadataParamSchema_ts_1 = require('./metadataParamSchema.ts')
11
+ const reasoningParamSchema_ts_1 = require('./reasoningParamSchema.ts')
12
+ const responsesToolParamSchema_ts_1 = require('./responsesToolParamSchema.ts')
13
+ const serviceTierEnumSchema_ts_1 = require('./serviceTierEnumSchema.ts')
14
+ const streamOptionsParamSchema_ts_1 = require('./streamOptionsParamSchema.ts')
15
+ const textParamSchema_ts_1 = require('./textParamSchema.ts')
16
+ const toolChoiceParamSchema_ts_1 = require('./toolChoiceParamSchema.ts')
17
+ const truncationEnumSchema_ts_1 = require('./truncationEnumSchema.ts')
18
+ const zod_1 = require('zod')
19
19
  exports.createResponseBodySchema = zod_1.z.object({
20
- "model": zod_1.z.optional(zod_1.z.union([zod_1.z.string(), zod_1.z.null()])),
21
- "input": zod_1.z.optional(zod_1.z.union([zod_1.z.union([zod_1.z.array(zod_1.z.lazy(() => itemParamSchema_ts_1.itemParamSchema)), zod_1.z.string()]), zod_1.z.null()])),
22
- "previous_response_id": zod_1.z.optional(zod_1.z.union([zod_1.z.string(), zod_1.z.null()])),
23
- "include": zod_1.z.optional(zod_1.z.array(zod_1.z.lazy(() => includeEnumSchema_ts_1.includeEnumSchema))),
24
- "tools": zod_1.z.optional(zod_1.z.union([zod_1.z.array(zod_1.z.lazy(() => responsesToolParamSchema_ts_1.responsesToolParamSchema)), zod_1.z.null()])),
25
- "tool_choice": zod_1.z.optional(zod_1.z.union([zod_1.z.lazy(() => toolChoiceParamSchema_ts_1.toolChoiceParamSchema).and(zod_1.z.any()), zod_1.z.null()])),
26
- "metadata": zod_1.z.optional(zod_1.z.union([zod_1.z.lazy(() => metadataParamSchema_ts_1.metadataParamSchema).and(zod_1.z.any()), zod_1.z.null()])),
27
- "text": zod_1.z.optional(zod_1.z.union([zod_1.z.lazy(() => textParamSchema_ts_1.textParamSchema).and(zod_1.z.any()), zod_1.z.null()])),
28
- "temperature": zod_1.z.optional(zod_1.z.union([zod_1.z.number(), zod_1.z.null()])),
29
- "top_p": zod_1.z.optional(zod_1.z.union([zod_1.z.number(), zod_1.z.null()])),
30
- "presence_penalty": zod_1.z.optional(zod_1.z.union([zod_1.z.number(), zod_1.z.null()])),
31
- "frequency_penalty": zod_1.z.optional(zod_1.z.union([zod_1.z.number(), zod_1.z.null()])),
32
- "parallel_tool_calls": zod_1.z.optional(zod_1.z.union([zod_1.z.boolean(), zod_1.z.null()])),
33
- "stream": zod_1.z.optional(zod_1.z.boolean().describe("Whether to stream response events as server-sent events.")),
34
- "stream_options": zod_1.z.optional(zod_1.z.union([zod_1.z.lazy(() => streamOptionsParamSchema_ts_1.streamOptionsParamSchema).and(zod_1.z.any()), zod_1.z.null()])),
35
- "background": zod_1.z.optional(zod_1.z.boolean().describe("Whether to run the request in the background and return immediately.")),
36
- "max_output_tokens": zod_1.z.optional(zod_1.z.union([zod_1.z.number().int(), zod_1.z.null()])),
37
- "max_tool_calls": zod_1.z.optional(zod_1.z.union([zod_1.z.number().int(), zod_1.z.null()])),
38
- "reasoning": zod_1.z.optional(zod_1.z.union([zod_1.z.lazy(() => reasoningParamSchema_ts_1.reasoningParamSchema).and(zod_1.z.any()), zod_1.z.null()])),
39
- "safety_identifier": zod_1.z.optional(zod_1.z.union([zod_1.z.string(), zod_1.z.null()])),
40
- "prompt_cache_key": zod_1.z.optional(zod_1.z.union([zod_1.z.string(), zod_1.z.null()])),
41
- "truncation": zod_1.z.optional(zod_1.z.lazy(() => truncationEnumSchema_ts_1.truncationEnumSchema).and(zod_1.z.any())),
42
- "instructions": zod_1.z.optional(zod_1.z.union([zod_1.z.string(), zod_1.z.null()])),
43
- "store": zod_1.z.optional(zod_1.z.boolean().describe("Whether to store the response so it can be retrieved later.")),
44
- "service_tier": zod_1.z.optional(zod_1.z.lazy(() => serviceTierEnumSchema_ts_1.serviceTierEnumSchema).and(zod_1.z.any())),
45
- "top_logprobs": zod_1.z.optional(zod_1.z.union([zod_1.z.number().int(), zod_1.z.null()]))
46
- });
20
+ model: zod_1.z.optional(zod_1.z.union([zod_1.z.string(), zod_1.z.null()])),
21
+ input: zod_1.z.optional(
22
+ zod_1.z.union([
23
+ zod_1.z.union([
24
+ zod_1.z.array(zod_1.z.lazy(() => itemParamSchema_ts_1.itemParamSchema)),
25
+ zod_1.z.string(),
26
+ ]),
27
+ zod_1.z.null(),
28
+ ]),
29
+ ),
30
+ previous_response_id: zod_1.z.optional(
31
+ zod_1.z.union([zod_1.z.string(), zod_1.z.null()]),
32
+ ),
33
+ include: zod_1.z.optional(
34
+ zod_1.z.array(zod_1.z.lazy(() => includeEnumSchema_ts_1.includeEnumSchema)),
35
+ ),
36
+ tools: zod_1.z.optional(
37
+ zod_1.z.union([
38
+ zod_1.z.array(
39
+ zod_1.z.lazy(
40
+ () => responsesToolParamSchema_ts_1.responsesToolParamSchema,
41
+ ),
42
+ ),
43
+ zod_1.z.null(),
44
+ ]),
45
+ ),
46
+ tool_choice: zod_1.z.optional(
47
+ zod_1.z.union([
48
+ zod_1.z
49
+ .lazy(() => toolChoiceParamSchema_ts_1.toolChoiceParamSchema)
50
+ .and(zod_1.z.any()),
51
+ zod_1.z.null(),
52
+ ]),
53
+ ),
54
+ metadata: zod_1.z.optional(
55
+ zod_1.z.union([
56
+ zod_1.z
57
+ .lazy(() => metadataParamSchema_ts_1.metadataParamSchema)
58
+ .and(zod_1.z.any()),
59
+ zod_1.z.null(),
60
+ ]),
61
+ ),
62
+ text: zod_1.z.optional(
63
+ zod_1.z.union([
64
+ zod_1.z
65
+ .lazy(() => textParamSchema_ts_1.textParamSchema)
66
+ .and(zod_1.z.any()),
67
+ zod_1.z.null(),
68
+ ]),
69
+ ),
70
+ temperature: zod_1.z.optional(
71
+ zod_1.z.union([zod_1.z.number(), zod_1.z.null()]),
72
+ ),
73
+ top_p: zod_1.z.optional(zod_1.z.union([zod_1.z.number(), zod_1.z.null()])),
74
+ presence_penalty: zod_1.z.optional(
75
+ zod_1.z.union([zod_1.z.number(), zod_1.z.null()]),
76
+ ),
77
+ frequency_penalty: zod_1.z.optional(
78
+ zod_1.z.union([zod_1.z.number(), zod_1.z.null()]),
79
+ ),
80
+ parallel_tool_calls: zod_1.z.optional(
81
+ zod_1.z.union([zod_1.z.boolean(), zod_1.z.null()]),
82
+ ),
83
+ stream: zod_1.z.optional(
84
+ zod_1.z
85
+ .boolean()
86
+ .describe('Whether to stream response events as server-sent events.'),
87
+ ),
88
+ stream_options: zod_1.z.optional(
89
+ zod_1.z.union([
90
+ zod_1.z
91
+ .lazy(() => streamOptionsParamSchema_ts_1.streamOptionsParamSchema)
92
+ .and(zod_1.z.any()),
93
+ zod_1.z.null(),
94
+ ]),
95
+ ),
96
+ background: zod_1.z.optional(
97
+ zod_1.z
98
+ .boolean()
99
+ .describe(
100
+ 'Whether to run the request in the background and return immediately.',
101
+ ),
102
+ ),
103
+ max_output_tokens: zod_1.z.optional(
104
+ zod_1.z.union([zod_1.z.number().int(), zod_1.z.null()]),
105
+ ),
106
+ max_tool_calls: zod_1.z.optional(
107
+ zod_1.z.union([zod_1.z.number().int(), zod_1.z.null()]),
108
+ ),
109
+ reasoning: zod_1.z.optional(
110
+ zod_1.z.union([
111
+ zod_1.z
112
+ .lazy(() => reasoningParamSchema_ts_1.reasoningParamSchema)
113
+ .and(zod_1.z.any()),
114
+ zod_1.z.null(),
115
+ ]),
116
+ ),
117
+ safety_identifier: zod_1.z.optional(
118
+ zod_1.z.union([zod_1.z.string(), zod_1.z.null()]),
119
+ ),
120
+ prompt_cache_key: zod_1.z.optional(
121
+ zod_1.z.union([zod_1.z.string(), zod_1.z.null()]),
122
+ ),
123
+ truncation: zod_1.z.optional(
124
+ zod_1.z
125
+ .lazy(() => truncationEnumSchema_ts_1.truncationEnumSchema)
126
+ .and(zod_1.z.any()),
127
+ ),
128
+ instructions: zod_1.z.optional(
129
+ zod_1.z.union([zod_1.z.string(), zod_1.z.null()]),
130
+ ),
131
+ store: zod_1.z.optional(
132
+ zod_1.z
133
+ .boolean()
134
+ .describe('Whether to store the response so it can be retrieved later.'),
135
+ ),
136
+ service_tier: zod_1.z.optional(
137
+ zod_1.z
138
+ .lazy(() => serviceTierEnumSchema_ts_1.serviceTierEnumSchema)
139
+ .and(zod_1.z.any()),
140
+ ),
141
+ top_logprobs: zod_1.z.optional(
142
+ zod_1.z.union([zod_1.z.number().int(), zod_1.z.null()]),
143
+ ),
144
+ })
@@ -1,16 +1,27 @@
1
- "use strict";
1
+ 'use strict'
2
2
  /**
3
- * Generated by Kubb (https://kubb.dev/).
4
- * Do not edit manually.
5
- */
6
- Object.defineProperty(exports, "__esModule", { value: true });
7
- exports.createresponseMutationResponseSchema = exports.createresponseMutationRequestSchema = exports.createresponse200Schema = void 0;
8
- const createResponseBodySchema_ts_1 = require("./createResponseBodySchema.ts");
9
- const responseResourceSchema_ts_1 = require("./responseResourceSchema.ts");
10
- const zod_1 = require("zod");
3
+ * Generated by Kubb (https://kubb.dev/).
4
+ * Do not edit manually.
5
+ */
6
+ Object.defineProperty(exports, '__esModule', { value: true })
7
+ exports.createresponseMutationResponseSchema =
8
+ exports.createresponseMutationRequestSchema =
9
+ exports.createresponse200Schema =
10
+ void 0
11
+ const createResponseBodySchema_ts_1 = require('./createResponseBodySchema.ts')
12
+ const responseResourceSchema_ts_1 = require('./responseResourceSchema.ts')
13
+ const zod_1 = require('zod')
11
14
  /**
12
15
  * @description Success
13
16
  */
14
- exports.createresponse200Schema = zod_1.z.lazy(() => responseResourceSchema_ts_1.responseResourceSchema).describe("The complete response object that was returned by the Responses API.");
15
- exports.createresponseMutationRequestSchema = zod_1.z.lazy(() => createResponseBodySchema_ts_1.createResponseBodySchema);
16
- exports.createresponseMutationResponseSchema = zod_1.z.lazy(() => exports.createresponse200Schema);
17
+ exports.createresponse200Schema = zod_1.z
18
+ .lazy(() => responseResourceSchema_ts_1.responseResourceSchema)
19
+ .describe(
20
+ 'The complete response object that was returned by the Responses API.',
21
+ )
22
+ exports.createresponseMutationRequestSchema = zod_1.z.lazy(
23
+ () => createResponseBodySchema_ts_1.createResponseBodySchema,
24
+ )
25
+ exports.createresponseMutationResponseSchema = zod_1.z.lazy(
26
+ () => exports.createresponse200Schema,
27
+ )
@@ -1,9 +1,9 @@
1
- "use strict";
1
+ 'use strict'
2
2
  /**
3
- * Generated by Kubb (https://kubb.dev/).
4
- * Do not edit manually.
5
- */
6
- Object.defineProperty(exports, "__esModule", { value: true });
7
- exports.detailEnumSchema = void 0;
8
- const zod_1 = require("zod");
9
- exports.detailEnumSchema = zod_1.z.enum(["low", "high", "auto"]);
3
+ * Generated by Kubb (https://kubb.dev/).
4
+ * Do not edit manually.
5
+ */
6
+ Object.defineProperty(exports, '__esModule', { value: true })
7
+ exports.detailEnumSchema = void 0
8
+ const zod_1 = require('zod')
9
+ exports.detailEnumSchema = zod_1.z.enum(['low', 'high', 'auto'])
@@ -1,18 +1,37 @@
1
- "use strict";
1
+ 'use strict'
2
2
  /**
3
- * Generated by Kubb (https://kubb.dev/).
4
- * Do not edit manually.
5
- */
6
- Object.defineProperty(exports, "__esModule", { value: true });
7
- exports.developerMessageItemParamSchema = void 0;
8
- const inputTextContentParamSchema_ts_1 = require("./inputTextContentParamSchema.ts");
9
- const zod_1 = require("zod");
3
+ * Generated by Kubb (https://kubb.dev/).
4
+ * Do not edit manually.
5
+ */
6
+ Object.defineProperty(exports, '__esModule', { value: true })
7
+ exports.developerMessageItemParamSchema = void 0
8
+ const inputTextContentParamSchema_ts_1 = require('./inputTextContentParamSchema.ts')
9
+ const zod_1 = require('zod')
10
10
  exports.developerMessageItemParamSchema = zod_1.z.object({
11
- "id": zod_1.z.optional(zod_1.z.union([zod_1.z.string(), zod_1.z.null()])),
12
- "type": zod_1.z.enum(["message"]).default("message").describe("The item type. Always `message`."),
13
- "role": zod_1.z.enum(["developer"]).default("developer").describe("The message role. Always `developer`."),
14
- "content": zod_1.z.union([zod_1.z.array(zod_1.z.lazy(() => inputTextContentParamSchema_ts_1.inputTextContentParamSchema).and(zod_1.z.object({
15
- "type": zod_1.z.literal("input_text")
16
- }))), zod_1.z.string()]).describe("The message content, as an array of content parts."),
17
- "status": zod_1.z.optional(zod_1.z.union([zod_1.z.string(), zod_1.z.null()]))
18
- });
11
+ id: zod_1.z.optional(zod_1.z.union([zod_1.z.string(), zod_1.z.null()])),
12
+ type: zod_1.z
13
+ .enum(['message'])
14
+ .default('message')
15
+ .describe('The item type. Always `message`.'),
16
+ role: zod_1.z
17
+ .enum(['developer'])
18
+ .default('developer')
19
+ .describe('The message role. Always `developer`.'),
20
+ content: zod_1.z
21
+ .union([
22
+ zod_1.z.array(
23
+ zod_1.z
24
+ .lazy(
25
+ () => inputTextContentParamSchema_ts_1.inputTextContentParamSchema,
26
+ )
27
+ .and(
28
+ zod_1.z.object({
29
+ type: zod_1.z.literal('input_text'),
30
+ }),
31
+ ),
32
+ ),
33
+ zod_1.z.string(),
34
+ ])
35
+ .describe('The message content, as an array of content parts.'),
36
+ status: zod_1.z.optional(zod_1.z.union([zod_1.z.string(), zod_1.z.null()])),
37
+ })
@@ -1,9 +1,9 @@
1
- "use strict";
1
+ 'use strict'
2
2
  /**
3
- * Generated by Kubb (https://kubb.dev/).
4
- * Do not edit manually.
5
- */
6
- Object.defineProperty(exports, "__esModule", { value: true });
7
- exports.emptyModelParamSchema = void 0;
8
- const zod_1 = require("zod");
9
- exports.emptyModelParamSchema = zod_1.z.object({});
3
+ * Generated by Kubb (https://kubb.dev/).
4
+ * Do not edit manually.
5
+ */
6
+ Object.defineProperty(exports, '__esModule', { value: true })
7
+ exports.emptyModelParamSchema = void 0
8
+ const zod_1 = require('zod')
9
+ exports.emptyModelParamSchema = zod_1.z.object({})
@@ -1,18 +1,31 @@
1
- "use strict";
1
+ 'use strict'
2
2
  /**
3
- * Generated by Kubb (https://kubb.dev/).
4
- * Do not edit manually.
5
- */
6
- Object.defineProperty(exports, "__esModule", { value: true });
7
- exports.errorPayloadSchema = void 0;
8
- const zod_1 = require("zod");
3
+ * Generated by Kubb (https://kubb.dev/).
4
+ * Do not edit manually.
5
+ */
6
+ Object.defineProperty(exports, '__esModule', { value: true })
7
+ exports.errorPayloadSchema = void 0
8
+ const zod_1 = require('zod')
9
9
  /**
10
10
  * @description An error payload that was emitted for a streaming error event.
11
11
  */
12
- exports.errorPayloadSchema = zod_1.z.object({
13
- "type": zod_1.z.string().describe("The error type that was emitted."),
14
- "code": zod_1.z.union([zod_1.z.string(), zod_1.z.null()]),
15
- "message": zod_1.z.string().describe("The human-readable error message that was emitted."),
16
- "param": zod_1.z.union([zod_1.z.string(), zod_1.z.null()]),
17
- "headers": zod_1.z.optional(zod_1.z.object({}).catchall(zod_1.z.string().describe("The header value that was emitted.")).describe("The response headers that were emitted with the error, if any."))
18
- }).describe("An error payload that was emitted for a streaming error event.");
12
+ exports.errorPayloadSchema = zod_1.z
13
+ .object({
14
+ type: zod_1.z.string().describe('The error type that was emitted.'),
15
+ code: zod_1.z.union([zod_1.z.string(), zod_1.z.null()]),
16
+ message: zod_1.z
17
+ .string()
18
+ .describe('The human-readable error message that was emitted.'),
19
+ param: zod_1.z.union([zod_1.z.string(), zod_1.z.null()]),
20
+ headers: zod_1.z.optional(
21
+ zod_1.z
22
+ .object({})
23
+ .catchall(
24
+ zod_1.z.string().describe('The header value that was emitted.'),
25
+ )
26
+ .describe(
27
+ 'The response headers that were emitted with the error, if any.',
28
+ ),
29
+ ),
30
+ })
31
+ .describe('An error payload that was emitted for a streaming error event.')
@@ -1,15 +1,21 @@
1
- "use strict";
1
+ 'use strict'
2
2
  /**
3
- * Generated by Kubb (https://kubb.dev/).
4
- * Do not edit manually.
5
- */
6
- Object.defineProperty(exports, "__esModule", { value: true });
7
- exports.errorSchema = void 0;
8
- const zod_1 = require("zod");
3
+ * Generated by Kubb (https://kubb.dev/).
4
+ * Do not edit manually.
5
+ */
6
+ Object.defineProperty(exports, '__esModule', { value: true })
7
+ exports.errorSchema = void 0
8
+ const zod_1 = require('zod')
9
9
  /**
10
10
  * @description An error that occurred while generating the response.
11
11
  */
12
- exports.errorSchema = zod_1.z.object({
13
- "code": zod_1.z.string().describe("A machine-readable error code that was returned."),
14
- "message": zod_1.z.string().describe("A human-readable description of the error that was returned.")
15
- }).describe("An error that occurred while generating the response.");
12
+ exports.errorSchema = zod_1.z
13
+ .object({
14
+ code: zod_1.z
15
+ .string()
16
+ .describe('A machine-readable error code that was returned.'),
17
+ message: zod_1.z
18
+ .string()
19
+ .describe('A human-readable description of the error that was returned.'),
20
+ })
21
+ .describe('An error that occurred while generating the response.')
@@ -1,17 +1,27 @@
1
- "use strict";
1
+ 'use strict'
2
2
  /**
3
- * Generated by Kubb (https://kubb.dev/).
4
- * Do not edit manually.
5
- */
6
- Object.defineProperty(exports, "__esModule", { value: true });
7
- exports.errorStreamingEventSchema = void 0;
8
- const errorPayloadSchema_ts_1 = require("./errorPayloadSchema.ts");
9
- const zod_1 = require("zod");
3
+ * Generated by Kubb (https://kubb.dev/).
4
+ * Do not edit manually.
5
+ */
6
+ Object.defineProperty(exports, '__esModule', { value: true })
7
+ exports.errorStreamingEventSchema = void 0
8
+ const errorPayloadSchema_ts_1 = require('./errorPayloadSchema.ts')
9
+ const zod_1 = require('zod')
10
10
  /**
11
11
  * @description A streaming event that indicated an error was emitted.
12
12
  */
13
- exports.errorStreamingEventSchema = zod_1.z.object({
14
- "type": zod_1.z.enum(["error"]).default("error").describe("The type of the event, always `error`."),
15
- "sequence_number": zod_1.z.number().int().describe("The sequence number of the event that was emitted."),
16
- "error": zod_1.z.lazy(() => errorPayloadSchema_ts_1.errorPayloadSchema).and(zod_1.z.any())
17
- }).describe("A streaming event that indicated an error was emitted.");
13
+ exports.errorStreamingEventSchema = zod_1.z
14
+ .object({
15
+ type: zod_1.z
16
+ .enum(['error'])
17
+ .default('error')
18
+ .describe('The type of the event, always `error`.'),
19
+ sequence_number: zod_1.z
20
+ .number()
21
+ .int()
22
+ .describe('The sequence number of the event that was emitted.'),
23
+ error: zod_1.z
24
+ .lazy(() => errorPayloadSchema_ts_1.errorPayloadSchema)
25
+ .and(zod_1.z.any()),
26
+ })
27
+ .describe('A streaming event that indicated an error was emitted.')
@@ -1,17 +1,40 @@
1
- "use strict";
1
+ 'use strict'
2
2
  /**
3
- * Generated by Kubb (https://kubb.dev/).
4
- * Do not edit manually.
5
- */
6
- Object.defineProperty(exports, "__esModule", { value: true });
7
- exports.functionCallItemParamSchema = void 0;
8
- const functionCallStatusSchema_ts_1 = require("./functionCallStatusSchema.ts");
9
- const zod_1 = require("zod");
3
+ * Generated by Kubb (https://kubb.dev/).
4
+ * Do not edit manually.
5
+ */
6
+ Object.defineProperty(exports, '__esModule', { value: true })
7
+ exports.functionCallItemParamSchema = void 0
8
+ const functionCallStatusSchema_ts_1 = require('./functionCallStatusSchema.ts')
9
+ const zod_1 = require('zod')
10
10
  exports.functionCallItemParamSchema = zod_1.z.object({
11
- "id": zod_1.z.optional(zod_1.z.union([zod_1.z.string(), zod_1.z.null()])),
12
- "call_id": zod_1.z.string().min(1).max(64).describe("The unique ID of the function tool call generated by the model."),
13
- "type": zod_1.z.enum(["function_call"]).default("function_call").describe("The item type. Always `function_call`."),
14
- "name": zod_1.z.string().min(1).max(64).regex(/^[a-zA-Z0-9_-]+$/).describe("The name of the function to call."),
15
- "arguments": zod_1.z.string().describe("The function arguments as a JSON string."),
16
- "status": zod_1.z.optional(zod_1.z.union([zod_1.z.lazy(() => functionCallStatusSchema_ts_1.functionCallStatusSchema).and(zod_1.z.any()), zod_1.z.null()]))
17
- });
11
+ id: zod_1.z.optional(zod_1.z.union([zod_1.z.string(), zod_1.z.null()])),
12
+ call_id: zod_1.z
13
+ .string()
14
+ .min(1)
15
+ .max(64)
16
+ .describe(
17
+ 'The unique ID of the function tool call generated by the model.',
18
+ ),
19
+ type: zod_1.z
20
+ .enum(['function_call'])
21
+ .default('function_call')
22
+ .describe('The item type. Always `function_call`.'),
23
+ name: zod_1.z
24
+ .string()
25
+ .min(1)
26
+ .max(64)
27
+ .regex(/^[a-zA-Z0-9_-]+$/)
28
+ .describe('The name of the function to call.'),
29
+ arguments: zod_1.z
30
+ .string()
31
+ .describe('The function arguments as a JSON string.'),
32
+ status: zod_1.z.optional(
33
+ zod_1.z.union([
34
+ zod_1.z
35
+ .lazy(() => functionCallStatusSchema_ts_1.functionCallStatusSchema)
36
+ .and(zod_1.z.any()),
37
+ zod_1.z.null(),
38
+ ]),
39
+ ),
40
+ })
@@ -1,9 +1,13 @@
1
- "use strict";
1
+ 'use strict'
2
2
  /**
3
- * Generated by Kubb (https://kubb.dev/).
4
- * Do not edit manually.
5
- */
6
- Object.defineProperty(exports, "__esModule", { value: true });
7
- exports.functionCallItemStatusSchema = void 0;
8
- const zod_1 = require("zod");
9
- exports.functionCallItemStatusSchema = zod_1.z.enum(["in_progress", "completed", "incomplete"]);
3
+ * Generated by Kubb (https://kubb.dev/).
4
+ * Do not edit manually.
5
+ */
6
+ Object.defineProperty(exports, '__esModule', { value: true })
7
+ exports.functionCallItemStatusSchema = void 0
8
+ const zod_1 = require('zod')
9
+ exports.functionCallItemStatusSchema = zod_1.z.enum([
10
+ 'in_progress',
11
+ 'completed',
12
+ 'incomplete',
13
+ ])