tekimax-ts 0.1.7 → 0.1.8

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 (359) hide show
  1. package/README.md +113 -26
  2. package/dist/adapter-BtbeHotF.d.cts +81 -0
  3. package/dist/adapter-BtbeHotF.d.ts +81 -0
  4. package/dist/adapter-C5iFgx6o.d.cts +162 -0
  5. package/dist/adapter-C5iFgx6o.d.ts +162 -0
  6. package/dist/adapter-CMu9Gvvm.d.cts +81 -0
  7. package/dist/adapter-CMu9Gvvm.d.ts +81 -0
  8. package/dist/adapter-DeUJcFAn.d.cts +43 -0
  9. package/dist/adapter-DeUJcFAn.d.ts +43 -0
  10. package/dist/adapter-K9NFtBg8.d.cts +81 -0
  11. package/dist/adapter-K9NFtBg8.d.ts +81 -0
  12. package/dist/adapter-TuDzMu0Y.d.cts +43 -0
  13. package/dist/adapter-TuDzMu0Y.d.ts +43 -0
  14. package/dist/adapter-YcdKK3By.d.cts +63 -0
  15. package/dist/adapter-YcdKK3By.d.ts +63 -0
  16. package/dist/adapter-xdRwibId.d.cts +144 -0
  17. package/dist/adapter-xdRwibId.d.ts +144 -0
  18. package/dist/adapter-zXqUGXCx.d.cts +81 -0
  19. package/dist/adapter-zXqUGXCx.d.ts +81 -0
  20. package/dist/chunk-MLKGABMK.js +9 -0
  21. package/dist/gen/index.js +1572 -378
  22. package/dist/gen/types.js +290 -201
  23. package/dist/gen/zod/allowedToolChoiceSchema.js +17 -13
  24. package/dist/gen/zod/allowedToolsParamSchema.js +28 -13
  25. package/dist/gen/zod/annotationSchema.js +16 -11
  26. package/dist/gen/zod/assistantMessageItemParamSchema.js +52 -19
  27. package/dist/gen/zod/createResponseBodySchema.js +142 -44
  28. package/dist/gen/zod/createresponseSchema.js +23 -12
  29. package/dist/gen/zod/detailEnumSchema.js +8 -8
  30. package/dist/gen/zod/developerMessageItemParamSchema.js +35 -16
  31. package/dist/gen/zod/emptyModelParamSchema.js +8 -8
  32. package/dist/gen/zod/errorPayloadSchema.js +27 -14
  33. package/dist/gen/zod/errorSchema.js +17 -11
  34. package/dist/gen/zod/errorStreamingEventSchema.js +23 -13
  35. package/dist/gen/zod/functionCallItemParamSchema.js +38 -15
  36. package/dist/gen/zod/functionCallItemStatusSchema.js +12 -8
  37. package/dist/gen/zod/functionCallOutputItemParamSchema.js +90 -27
  38. package/dist/gen/zod/functionCallOutputSchema.js +67 -24
  39. package/dist/gen/zod/functionCallOutputStatusEnumSchema.js +12 -8
  40. package/dist/gen/zod/functionCallSchema.js +29 -16
  41. package/dist/gen/zod/functionCallStatusSchema.js +12 -8
  42. package/dist/gen/zod/functionToolChoiceSchema.js +10 -10
  43. package/dist/gen/zod/functionToolParamSchema.js +25 -14
  44. package/dist/gen/zod/functionToolSchema.js +24 -14
  45. package/dist/gen/zod/imageDetailSchema.js +8 -8
  46. package/dist/gen/zod/includeEnumSchema.js +11 -8
  47. package/dist/gen/zod/incompleteDetailsSchema.js +14 -10
  48. package/dist/gen/zod/index.js +871 -213
  49. package/dist/gen/zod/inputFileContentParamSchema.js +24 -13
  50. package/dist/gen/zod/inputFileContentSchema.js +23 -12
  51. package/dist/gen/zod/inputImageContentParamAutoParamSchema.js +29 -13
  52. package/dist/gen/zod/inputImageContentSchema.js +22 -13
  53. package/dist/gen/zod/inputTextContentParamSchema.js +19 -11
  54. package/dist/gen/zod/inputTextContentSchema.js +16 -11
  55. package/dist/gen/zod/inputTokensDetailsSchema.js +15 -10
  56. package/dist/gen/zod/inputVideoContentSchema.js +17 -11
  57. package/dist/gen/zod/itemFieldSchema.js +45 -20
  58. package/dist/gen/zod/itemParamSchema.js +55 -23
  59. package/dist/gen/zod/itemReferenceParamSchema.js +15 -11
  60. package/dist/gen/zod/jsonObjectResponseFormatSchema.js +9 -9
  61. package/dist/gen/zod/jsonSchemaResponseFormatParamSchema.js +38 -13
  62. package/dist/gen/zod/jsonSchemaResponseFormatSchema.js +13 -13
  63. package/dist/gen/zod/logProbSchema.js +20 -14
  64. package/dist/gen/zod/messageRoleSchema.js +13 -8
  65. package/dist/gen/zod/messageSchema.js +109 -43
  66. package/dist/gen/zod/messageStatusSchema.js +12 -8
  67. package/dist/gen/zod/metadataParamSchema.js +13 -8
  68. package/dist/gen/zod/outputTextContentParamSchema.js +21 -12
  69. package/dist/gen/zod/outputTextContentSchema.js +30 -15
  70. package/dist/gen/zod/outputTokensDetailsSchema.js +17 -10
  71. package/dist/gen/zod/reasoningBodySchema.js +173 -54
  72. package/dist/gen/zod/reasoningEffortEnumSchema.js +14 -8
  73. package/dist/gen/zod/reasoningItemParamSchema.js +26 -14
  74. package/dist/gen/zod/reasoningParamSchema.js +33 -13
  75. package/dist/gen/zod/reasoningSchema.js +27 -13
  76. package/dist/gen/zod/reasoningSummaryContentParamSchema.js +13 -10
  77. package/dist/gen/zod/reasoningSummaryEnumSchema.js +12 -8
  78. package/dist/gen/zod/reasoningTextContentSchema.js +16 -11
  79. package/dist/gen/zod/refusalContentParamSchema.js +13 -10
  80. package/dist/gen/zod/refusalContentSchema.js +18 -11
  81. package/dist/gen/zod/responseCompletedStreamingEventSchema.js +23 -13
  82. package/dist/gen/zod/responseContentPartAddedStreamingEventSchema.js +98 -39
  83. package/dist/gen/zod/responseContentPartDoneStreamingEventSchema.js +98 -39
  84. package/dist/gen/zod/responseCreatedStreamingEventSchema.js +23 -13
  85. package/dist/gen/zod/responseFailedStreamingEventSchema.js +23 -13
  86. package/dist/gen/zod/responseFunctionCallArgumentsDeltaStreamingEventSchema.js +38 -15
  87. package/dist/gen/zod/responseFunctionCallArgumentsDoneStreamingEventSchema.js +33 -14
  88. package/dist/gen/zod/responseInProgressStreamingEventSchema.js +23 -13
  89. package/dist/gen/zod/responseIncompleteStreamingEventSchema.js +23 -13
  90. package/dist/gen/zod/responseOutputItemAddedStreamingEventSchema.js +32 -14
  91. package/dist/gen/zod/responseOutputItemDoneStreamingEventSchema.js +30 -14
  92. package/dist/gen/zod/responseOutputTextAnnotationAddedStreamingEventSchema.js +43 -17
  93. package/dist/gen/zod/responseOutputTextDeltaStreamingEventSchema.js +48 -18
  94. package/dist/gen/zod/responseOutputTextDoneStreamingEventSchema.js +39 -17
  95. package/dist/gen/zod/responseQueuedStreamingEventSchema.js +23 -13
  96. package/dist/gen/zod/responseReasoningDeltaStreamingEventSchema.js +40 -16
  97. package/dist/gen/zod/responseReasoningDoneStreamingEventSchema.js +31 -15
  98. package/dist/gen/zod/responseReasoningSummaryDeltaStreamingEventSchema.js +42 -16
  99. package/dist/gen/zod/responseReasoningSummaryDoneStreamingEventSchema.js +33 -15
  100. package/dist/gen/zod/responseReasoningSummaryPartAddedStreamingEventSchema.js +102 -39
  101. package/dist/gen/zod/responseReasoningSummaryPartDoneStreamingEventSchema.js +102 -39
  102. package/dist/gen/zod/responseRefusalDeltaStreamingEventSchema.js +33 -15
  103. package/dist/gen/zod/responseRefusalDoneStreamingEventSchema.js +31 -15
  104. package/dist/gen/zod/responseResourceSchema.js +146 -51
  105. package/dist/gen/zod/responsesToolParamSchema.js +15 -11
  106. package/dist/gen/zod/serviceTierEnumSchema.js +13 -8
  107. package/dist/gen/zod/specificFunctionParamSchema.js +13 -10
  108. package/dist/gen/zod/specificToolChoiceParamSchema.js +11 -9
  109. package/dist/gen/zod/streamOptionsParamSchema.js +18 -10
  110. package/dist/gen/zod/summaryTextContentSchema.js +18 -11
  111. package/dist/gen/zod/systemMessageItemParamSchema.js +35 -16
  112. package/dist/gen/zod/textContentSchema.js +13 -11
  113. package/dist/gen/zod/textFieldSchema.js +24 -14
  114. package/dist/gen/zod/textFormatParamSchema.js +16 -10
  115. package/dist/gen/zod/textParamSchema.js +23 -12
  116. package/dist/gen/zod/textResponseFormatSchema.js +9 -9
  117. package/dist/gen/zod/toolChoiceParamSchema.js +21 -11
  118. package/dist/gen/zod/toolChoiceValueEnumSchema.js +8 -8
  119. package/dist/gen/zod/toolSchema.js +16 -11
  120. package/dist/gen/zod/topLogProbSchema.js +14 -12
  121. package/dist/gen/zod/truncationEnumSchema.js +8 -8
  122. package/dist/gen/zod/urlCitationBodySchema.js +29 -14
  123. package/dist/gen/zod/urlCitationParamSchema.js +28 -13
  124. package/dist/gen/zod/usageSchema.js +35 -16
  125. package/dist/gen/zod/userMessageItemParamSchema.js +64 -22
  126. package/dist/gen/zod/verbosityEnumSchema.js +8 -8
  127. package/dist/index.cjs +1574 -0
  128. package/dist/index.d.cts +2823 -0
  129. package/dist/index.d.mts +51000 -31111
  130. package/dist/index.d.ts +407 -29296
  131. package/dist/index.js +1136 -1405
  132. package/dist/index.mjs +2441 -1010
  133. package/dist/react/index.cjs +216 -0
  134. package/dist/react/index.d.cts +25 -0
  135. package/dist/react/index.d.ts +25 -0
  136. package/dist/react/index.js +191 -0
  137. package/dist/tekimax-C-DJ0z27.d.cts +283 -0
  138. package/dist/tekimax-C-DJ0z27.d.ts +283 -0
  139. package/package.json +47 -9
  140. package/.dockerignore +0 -5
  141. package/Dockerfile +0 -25
  142. package/kubb.config.js +0 -30
  143. package/kubb.config.ts +0 -35
  144. package/public/logos/tekimax-logo-ScreenRGB-2.png +0 -0
  145. package/spec/openapi.json +0 -3876
  146. package/src/client.ts +0 -129
  147. package/src/gen/.kubb/config.ts +0 -43
  148. package/src/gen/client/createresponse.ts +0 -27
  149. package/src/gen/client/index.ts +0 -1
  150. package/src/gen/index.ts +0 -187
  151. package/src/gen/schemas/allowedToolChoice.json +0 -1
  152. package/src/gen/schemas/allowedToolsParam.json +0 -1
  153. package/src/gen/schemas/annotation.json +0 -1
  154. package/src/gen/schemas/assistantMessageItemParam.json +0 -1
  155. package/src/gen/schemas/createResponseBody.json +0 -1
  156. package/src/gen/schemas/detailEnum.json +0 -1
  157. package/src/gen/schemas/developerMessageItemParam.json +0 -1
  158. package/src/gen/schemas/emptyModelParam.json +0 -1
  159. package/src/gen/schemas/error.json +0 -1
  160. package/src/gen/schemas/errorPayload.json +0 -1
  161. package/src/gen/schemas/errorStreamingEvent.json +0 -1
  162. package/src/gen/schemas/functionCall.json +0 -1
  163. package/src/gen/schemas/functionCallItemParam.json +0 -1
  164. package/src/gen/schemas/functionCallItemStatus.json +0 -1
  165. package/src/gen/schemas/functionCallOutput.json +0 -1
  166. package/src/gen/schemas/functionCallOutputItemParam.json +0 -1
  167. package/src/gen/schemas/functionCallOutputStatusEnum.json +0 -1
  168. package/src/gen/schemas/functionCallStatus.json +0 -1
  169. package/src/gen/schemas/functionTool.json +0 -1
  170. package/src/gen/schemas/functionToolChoice.json +0 -1
  171. package/src/gen/schemas/functionToolParam.json +0 -1
  172. package/src/gen/schemas/imageDetail.json +0 -1
  173. package/src/gen/schemas/includeEnum.json +0 -1
  174. package/src/gen/schemas/incompleteDetails.json +0 -1
  175. package/src/gen/schemas/inputFileContent.json +0 -1
  176. package/src/gen/schemas/inputFileContentParam.json +0 -1
  177. package/src/gen/schemas/inputImageContent.json +0 -1
  178. package/src/gen/schemas/inputImageContentParamAutoParam.json +0 -1
  179. package/src/gen/schemas/inputTextContent.json +0 -1
  180. package/src/gen/schemas/inputTextContentParam.json +0 -1
  181. package/src/gen/schemas/inputTokensDetails.json +0 -1
  182. package/src/gen/schemas/inputVideoContent.json +0 -1
  183. package/src/gen/schemas/itemField.json +0 -1
  184. package/src/gen/schemas/itemParam.json +0 -1
  185. package/src/gen/schemas/itemReferenceParam.json +0 -1
  186. package/src/gen/schemas/jsonObjectResponseFormat.json +0 -1
  187. package/src/gen/schemas/jsonSchemaResponseFormat.json +0 -1
  188. package/src/gen/schemas/jsonSchemaResponseFormatParam.json +0 -1
  189. package/src/gen/schemas/logProb.json +0 -1
  190. package/src/gen/schemas/message.json +0 -1
  191. package/src/gen/schemas/messageRole.json +0 -1
  192. package/src/gen/schemas/messageStatus.json +0 -1
  193. package/src/gen/schemas/metadataParam.json +0 -1
  194. package/src/gen/schemas/outputTextContent.json +0 -1
  195. package/src/gen/schemas/outputTextContentParam.json +0 -1
  196. package/src/gen/schemas/outputTokensDetails.json +0 -1
  197. package/src/gen/schemas/reasoning.json +0 -1
  198. package/src/gen/schemas/reasoningBody.json +0 -1
  199. package/src/gen/schemas/reasoningEffortEnum.json +0 -1
  200. package/src/gen/schemas/reasoningItemParam.json +0 -1
  201. package/src/gen/schemas/reasoningParam.json +0 -1
  202. package/src/gen/schemas/reasoningSummaryContentParam.json +0 -1
  203. package/src/gen/schemas/reasoningSummaryEnum.json +0 -1
  204. package/src/gen/schemas/reasoningTextContent.json +0 -1
  205. package/src/gen/schemas/refusalContent.json +0 -1
  206. package/src/gen/schemas/refusalContentParam.json +0 -1
  207. package/src/gen/schemas/responseCompletedStreamingEvent.json +0 -1
  208. package/src/gen/schemas/responseContentPartAddedStreamingEvent.json +0 -1
  209. package/src/gen/schemas/responseContentPartDoneStreamingEvent.json +0 -1
  210. package/src/gen/schemas/responseCreatedStreamingEvent.json +0 -1
  211. package/src/gen/schemas/responseFailedStreamingEvent.json +0 -1
  212. package/src/gen/schemas/responseFunctionCallArgumentsDeltaStreamingEvent.json +0 -1
  213. package/src/gen/schemas/responseFunctionCallArgumentsDoneStreamingEvent.json +0 -1
  214. package/src/gen/schemas/responseInProgressStreamingEvent.json +0 -1
  215. package/src/gen/schemas/responseIncompleteStreamingEvent.json +0 -1
  216. package/src/gen/schemas/responseOutputItemAddedStreamingEvent.json +0 -1
  217. package/src/gen/schemas/responseOutputItemDoneStreamingEvent.json +0 -1
  218. package/src/gen/schemas/responseOutputTextAnnotationAddedStreamingEvent.json +0 -1
  219. package/src/gen/schemas/responseOutputTextDeltaStreamingEvent.json +0 -1
  220. package/src/gen/schemas/responseOutputTextDoneStreamingEvent.json +0 -1
  221. package/src/gen/schemas/responseQueuedStreamingEvent.json +0 -1
  222. package/src/gen/schemas/responseReasoningDeltaStreamingEvent.json +0 -1
  223. package/src/gen/schemas/responseReasoningDoneStreamingEvent.json +0 -1
  224. package/src/gen/schemas/responseReasoningSummaryDeltaStreamingEvent.json +0 -1
  225. package/src/gen/schemas/responseReasoningSummaryDoneStreamingEvent.json +0 -1
  226. package/src/gen/schemas/responseReasoningSummaryPartAddedStreamingEvent.json +0 -1
  227. package/src/gen/schemas/responseReasoningSummaryPartDoneStreamingEvent.json +0 -1
  228. package/src/gen/schemas/responseRefusalDeltaStreamingEvent.json +0 -1
  229. package/src/gen/schemas/responseRefusalDoneStreamingEvent.json +0 -1
  230. package/src/gen/schemas/responseResource.json +0 -1
  231. package/src/gen/schemas/responsesToolParam.json +0 -1
  232. package/src/gen/schemas/serviceTierEnum.json +0 -1
  233. package/src/gen/schemas/specificFunctionParam.json +0 -1
  234. package/src/gen/schemas/specificToolChoiceParam.json +0 -1
  235. package/src/gen/schemas/streamOptionsParam.json +0 -1
  236. package/src/gen/schemas/summaryTextContent.json +0 -1
  237. package/src/gen/schemas/systemMessageItemParam.json +0 -1
  238. package/src/gen/schemas/textContent.json +0 -1
  239. package/src/gen/schemas/textField.json +0 -1
  240. package/src/gen/schemas/textFormatParam.json +0 -1
  241. package/src/gen/schemas/textParam.json +0 -1
  242. package/src/gen/schemas/textResponseFormat.json +0 -1
  243. package/src/gen/schemas/tool.json +0 -1
  244. package/src/gen/schemas/toolChoiceParam.json +0 -1
  245. package/src/gen/schemas/toolChoiceValueEnum.json +0 -1
  246. package/src/gen/schemas/topLogProb.json +0 -1
  247. package/src/gen/schemas/truncationEnum.json +0 -1
  248. package/src/gen/schemas/urlCitationBody.json +0 -1
  249. package/src/gen/schemas/urlCitationParam.json +0 -1
  250. package/src/gen/schemas/usage.json +0 -1
  251. package/src/gen/schemas/userMessageItemParam.json +0 -1
  252. package/src/gen/schemas/verbosityEnum.json +0 -1
  253. package/src/gen/types.ts +0 -2613
  254. package/src/gen/zod/allowedToolChoiceSchema.ts +0 -14
  255. package/src/gen/zod/allowedToolsParamSchema.ts +0 -14
  256. package/src/gen/zod/annotationSchema.ts +0 -14
  257. package/src/gen/zod/assistantMessageItemParamSchema.ts +0 -20
  258. package/src/gen/zod/createResponseBodySchema.ts +0 -45
  259. package/src/gen/zod/createresponseSchema.ts +0 -17
  260. package/src/gen/zod/detailEnumSchema.ts +0 -8
  261. package/src/gen/zod/developerMessageItemParamSchema.ts +0 -17
  262. package/src/gen/zod/emptyModelParamSchema.ts +0 -10
  263. package/src/gen/zod/errorPayloadSchema.ts +0 -19
  264. package/src/gen/zod/errorSchema.ts +0 -14
  265. package/src/gen/zod/errorStreamingEventSchema.ts +0 -16
  266. package/src/gen/zod/functionCallItemParamSchema.ts +0 -16
  267. package/src/gen/zod/functionCallItemStatusSchema.ts +0 -8
  268. package/src/gen/zod/functionCallOutputItemParamSchema.ts +0 -30
  269. package/src/gen/zod/functionCallOutputSchema.ts +0 -27
  270. package/src/gen/zod/functionCallOutputStatusEnumSchema.ts +0 -11
  271. package/src/gen/zod/functionCallSchema.ts +0 -19
  272. package/src/gen/zod/functionCallStatusSchema.ts +0 -8
  273. package/src/gen/zod/functionToolChoiceSchema.ts +0 -11
  274. package/src/gen/zod/functionToolParamSchema.ts +0 -15
  275. package/src/gen/zod/functionToolSchema.ts +0 -19
  276. package/src/gen/zod/imageDetailSchema.ts +0 -8
  277. package/src/gen/zod/includeEnumSchema.ts +0 -8
  278. package/src/gen/zod/incompleteDetailsSchema.ts +0 -13
  279. package/src/gen/zod/index.ts +0 -103
  280. package/src/gen/zod/inputFileContentParamSchema.ts +0 -16
  281. package/src/gen/zod/inputFileContentSchema.ts +0 -15
  282. package/src/gen/zod/inputImageContentParamAutoParamSchema.ts +0 -16
  283. package/src/gen/zod/inputImageContentSchema.ts +0 -16
  284. package/src/gen/zod/inputTextContentParamSchema.ts +0 -14
  285. package/src/gen/zod/inputTextContentSchema.ts +0 -14
  286. package/src/gen/zod/inputTokensDetailsSchema.ts +0 -13
  287. package/src/gen/zod/inputVideoContentSchema.ts +0 -14
  288. package/src/gen/zod/itemFieldSchema.ts +0 -23
  289. package/src/gen/zod/itemParamSchema.ts +0 -23
  290. package/src/gen/zod/itemReferenceParamSchema.ts +0 -14
  291. package/src/gen/zod/jsonObjectResponseFormatSchema.ts +0 -10
  292. package/src/gen/zod/jsonSchemaResponseFormatParamSchema.ts +0 -16
  293. package/src/gen/zod/jsonSchemaResponseFormatSchema.ts +0 -14
  294. package/src/gen/zod/logProbSchema.ts +0 -17
  295. package/src/gen/zod/messageRoleSchema.ts +0 -8
  296. package/src/gen/zod/messageSchema.ts +0 -46
  297. package/src/gen/zod/messageStatusSchema.ts +0 -8
  298. package/src/gen/zod/metadataParamSchema.ts +0 -13
  299. package/src/gen/zod/outputTextContentParamSchema.ts +0 -13
  300. package/src/gen/zod/outputTextContentSchema.ts +0 -18
  301. package/src/gen/zod/outputTokensDetailsSchema.ts +0 -13
  302. package/src/gen/zod/reasoningBodySchema.ts +0 -57
  303. package/src/gen/zod/reasoningEffortEnumSchema.ts +0 -8
  304. package/src/gen/zod/reasoningItemParamSchema.ts +0 -15
  305. package/src/gen/zod/reasoningParamSchema.ts +0 -16
  306. package/src/gen/zod/reasoningSchema.ts +0 -16
  307. package/src/gen/zod/reasoningSummaryContentParamSchema.ts +0 -11
  308. package/src/gen/zod/reasoningSummaryEnumSchema.ts +0 -8
  309. package/src/gen/zod/reasoningTextContentSchema.ts +0 -14
  310. package/src/gen/zod/refusalContentParamSchema.ts +0 -11
  311. package/src/gen/zod/refusalContentSchema.ts +0 -14
  312. package/src/gen/zod/responseCompletedStreamingEventSchema.ts +0 -16
  313. package/src/gen/zod/responseContentPartAddedStreamingEventSchema.ts +0 -42
  314. package/src/gen/zod/responseContentPartDoneStreamingEventSchema.ts +0 -42
  315. package/src/gen/zod/responseCreatedStreamingEventSchema.ts +0 -16
  316. package/src/gen/zod/responseFailedStreamingEventSchema.ts +0 -16
  317. package/src/gen/zod/responseFunctionCallArgumentsDeltaStreamingEventSchema.ts +0 -18
  318. package/src/gen/zod/responseFunctionCallArgumentsDoneStreamingEventSchema.ts +0 -17
  319. package/src/gen/zod/responseInProgressStreamingEventSchema.ts +0 -16
  320. package/src/gen/zod/responseIncompleteStreamingEventSchema.ts +0 -16
  321. package/src/gen/zod/responseOutputItemAddedStreamingEventSchema.ts +0 -17
  322. package/src/gen/zod/responseOutputItemDoneStreamingEventSchema.ts +0 -17
  323. package/src/gen/zod/responseOutputTextAnnotationAddedStreamingEventSchema.ts +0 -20
  324. package/src/gen/zod/responseOutputTextDeltaStreamingEventSchema.ts +0 -21
  325. package/src/gen/zod/responseOutputTextDoneStreamingEventSchema.ts +0 -20
  326. package/src/gen/zod/responseQueuedStreamingEventSchema.ts +0 -16
  327. package/src/gen/zod/responseReasoningDeltaStreamingEventSchema.ts +0 -19
  328. package/src/gen/zod/responseReasoningDoneStreamingEventSchema.ts +0 -18
  329. package/src/gen/zod/responseReasoningSummaryDeltaStreamingEventSchema.ts +0 -19
  330. package/src/gen/zod/responseReasoningSummaryDoneStreamingEventSchema.ts +0 -18
  331. package/src/gen/zod/responseReasoningSummaryPartAddedStreamingEventSchema.ts +0 -42
  332. package/src/gen/zod/responseReasoningSummaryPartDoneStreamingEventSchema.ts +0 -42
  333. package/src/gen/zod/responseRefusalDeltaStreamingEventSchema.ts +0 -18
  334. package/src/gen/zod/responseRefusalDoneStreamingEventSchema.ts +0 -18
  335. package/src/gen/zod/responseResourceSchema.ts +0 -54
  336. package/src/gen/zod/responsesToolParamSchema.ts +0 -11
  337. package/src/gen/zod/serviceTierEnumSchema.ts +0 -8
  338. package/src/gen/zod/specificFunctionParamSchema.ts +0 -11
  339. package/src/gen/zod/specificToolChoiceParamSchema.ts +0 -9
  340. package/src/gen/zod/streamOptionsParamSchema.ts +0 -13
  341. package/src/gen/zod/summaryTextContentSchema.ts +0 -14
  342. package/src/gen/zod/systemMessageItemParamSchema.ts +0 -17
  343. package/src/gen/zod/textContentSchema.ts +0 -14
  344. package/src/gen/zod/textFieldSchema.ts +0 -15
  345. package/src/gen/zod/textFormatParamSchema.ts +0 -10
  346. package/src/gen/zod/textParamSchema.ts +0 -13
  347. package/src/gen/zod/textResponseFormatSchema.ts +0 -10
  348. package/src/gen/zod/toolChoiceParamSchema.ts +0 -14
  349. package/src/gen/zod/toolChoiceValueEnumSchema.ts +0 -8
  350. package/src/gen/zod/toolSchema.ts +0 -14
  351. package/src/gen/zod/topLogProbSchema.ts +0 -15
  352. package/src/gen/zod/truncationEnumSchema.ts +0 -8
  353. package/src/gen/zod/urlCitationBodySchema.ts +0 -17
  354. package/src/gen/zod/urlCitationParamSchema.ts +0 -14
  355. package/src/gen/zod/usageSchema.ts +0 -19
  356. package/src/gen/zod/userMessageItemParamSchema.ts +0 -23
  357. package/src/gen/zod/verbosityEnumSchema.ts +0 -8
  358. package/src/index.ts +0 -3
  359. package/tsconfig.json +0 -21
package/dist/index.mjs CHANGED
@@ -1,1367 +1,2798 @@
1
1
  // src/gen/types.ts
2
2
  var itemReferenceParamTypeEnum = {
3
- item_reference: "item_reference"
4
- };
3
+ item_reference: 'item_reference',
4
+ }
5
5
  var reasoningSummaryContentParamTypeEnum = {
6
- summary_text: "summary_text"
7
- };
6
+ summary_text: 'summary_text',
7
+ }
8
8
  var reasoningItemParamTypeEnum = {
9
- reasoning: "reasoning"
10
- };
9
+ reasoning: 'reasoning',
10
+ }
11
11
  var inputTextContentParamTypeEnum = {
12
- input_text: "input_text"
13
- };
12
+ input_text: 'input_text',
13
+ }
14
14
  var detailEnumEnum = {
15
- low: "low",
16
- high: "high",
17
- auto: "auto"
18
- };
15
+ low: 'low',
16
+ high: 'high',
17
+ auto: 'auto',
18
+ }
19
19
  var imageDetailEnum = {
20
- low: "low",
21
- high: "high",
22
- auto: "auto"
23
- };
20
+ low: 'low',
21
+ high: 'high',
22
+ auto: 'auto',
23
+ }
24
24
  var inputImageContentParamAutoParamTypeEnum = {
25
- input_image: "input_image"
26
- };
25
+ input_image: 'input_image',
26
+ }
27
27
  var inputFileContentParamTypeEnum = {
28
- input_file: "input_file"
29
- };
28
+ input_file: 'input_file',
29
+ }
30
30
  var userMessageItemParamTypeEnum = {
31
- message: "message"
32
- };
31
+ message: 'message',
32
+ }
33
33
  var userMessageItemParamRoleEnum = {
34
- user: "user"
35
- };
34
+ user: 'user',
35
+ }
36
36
  var systemMessageItemParamTypeEnum = {
37
- message: "message"
38
- };
37
+ message: 'message',
38
+ }
39
39
  var systemMessageItemParamRoleEnum = {
40
- system: "system"
41
- };
40
+ system: 'system',
41
+ }
42
42
  var developerMessageItemParamTypeEnum = {
43
- message: "message"
44
- };
43
+ message: 'message',
44
+ }
45
45
  var developerMessageItemParamRoleEnum = {
46
- developer: "developer"
47
- };
46
+ developer: 'developer',
47
+ }
48
48
  var urlCitationParamTypeEnum = {
49
- url_citation: "url_citation"
50
- };
49
+ url_citation: 'url_citation',
50
+ }
51
51
  var outputTextContentParamTypeEnum = {
52
- output_text: "output_text"
53
- };
52
+ output_text: 'output_text',
53
+ }
54
54
  var refusalContentParamTypeEnum = {
55
- refusal: "refusal"
56
- };
55
+ refusal: 'refusal',
56
+ }
57
57
  var assistantMessageItemParamTypeEnum = {
58
- message: "message"
59
- };
58
+ message: 'message',
59
+ }
60
60
  var assistantMessageItemParamRoleEnum = {
61
- assistant: "assistant"
62
- };
61
+ assistant: 'assistant',
62
+ }
63
63
  var functionCallItemStatusEnum = {
64
- in_progress: "in_progress",
65
- completed: "completed",
66
- incomplete: "incomplete"
67
- };
64
+ in_progress: 'in_progress',
65
+ completed: 'completed',
66
+ incomplete: 'incomplete',
67
+ }
68
68
  var functionCallStatusEnum = {
69
- in_progress: "in_progress",
70
- completed: "completed",
71
- incomplete: "incomplete"
72
- };
69
+ in_progress: 'in_progress',
70
+ completed: 'completed',
71
+ incomplete: 'incomplete',
72
+ }
73
73
  var functionCallItemParamTypeEnum = {
74
- function_call: "function_call"
75
- };
74
+ function_call: 'function_call',
75
+ }
76
76
  var inputVideoContentTypeEnum = {
77
- input_video: "input_video"
78
- };
77
+ input_video: 'input_video',
78
+ }
79
79
  var functionCallOutputItemParamTypeEnum = {
80
- function_call_output: "function_call_output"
81
- };
80
+ function_call_output: 'function_call_output',
81
+ }
82
82
  var includeEnumEnum = {
83
- "reasoning.encrypted_content": "reasoning.encrypted_content",
84
- "message.output_text.logprobs": "message.output_text.logprobs"
85
- };
83
+ 'reasoning.encrypted_content': 'reasoning.encrypted_content',
84
+ 'message.output_text.logprobs': 'message.output_text.logprobs',
85
+ }
86
86
  var functionToolParamTypeEnum = {
87
- function: "function"
88
- };
87
+ function: 'function',
88
+ }
89
89
  var specificFunctionParamTypeEnum = {
90
- function: "function"
91
- };
90
+ function: 'function',
91
+ }
92
92
  var toolChoiceValueEnumEnum = {
93
- none: "none",
94
- auto: "auto",
95
- required: "required"
96
- };
93
+ none: 'none',
94
+ auto: 'auto',
95
+ required: 'required',
96
+ }
97
97
  var allowedToolsParamTypeEnum = {
98
- allowed_tools: "allowed_tools"
99
- };
98
+ allowed_tools: 'allowed_tools',
99
+ }
100
100
  var verbosityEnumEnum = {
101
- low: "low",
102
- medium: "medium",
103
- high: "high"
104
- };
101
+ low: 'low',
102
+ medium: 'medium',
103
+ high: 'high',
104
+ }
105
105
  var textResponseFormatTypeEnum = {
106
- text: "text"
107
- };
106
+ text: 'text',
107
+ }
108
108
  var jsonSchemaResponseFormatParamTypeEnum = {
109
- json_schema: "json_schema"
110
- };
109
+ json_schema: 'json_schema',
110
+ }
111
111
  var reasoningEffortEnumEnum = {
112
- none: "none",
113
- low: "low",
114
- medium: "medium",
115
- high: "high",
116
- xhigh: "xhigh"
117
- };
112
+ none: 'none',
113
+ low: 'low',
114
+ medium: 'medium',
115
+ high: 'high',
116
+ xhigh: 'xhigh',
117
+ }
118
118
  var reasoningSummaryEnumEnum = {
119
- concise: "concise",
120
- detailed: "detailed",
121
- auto: "auto"
122
- };
119
+ concise: 'concise',
120
+ detailed: 'detailed',
121
+ auto: 'auto',
122
+ }
123
123
  var truncationEnumEnum = {
124
- auto: "auto",
125
- disabled: "disabled"
126
- };
124
+ auto: 'auto',
125
+ disabled: 'disabled',
126
+ }
127
127
  var serviceTierEnumEnum = {
128
- auto: "auto",
129
- default: "default",
130
- flex: "flex",
131
- priority: "priority"
132
- };
128
+ auto: 'auto',
129
+ default: 'default',
130
+ flex: 'flex',
131
+ priority: 'priority',
132
+ }
133
133
  var messageRoleEnum = {
134
- user: "user",
135
- assistant: "assistant",
136
- system: "system",
137
- developer: "developer"
138
- };
134
+ user: 'user',
135
+ assistant: 'assistant',
136
+ system: 'system',
137
+ developer: 'developer',
138
+ }
139
139
  var inputTextContentTypeEnum = {
140
- input_text: "input_text"
141
- };
140
+ input_text: 'input_text',
141
+ }
142
142
  var urlCitationBodyTypeEnum = {
143
- url_citation: "url_citation"
144
- };
143
+ url_citation: 'url_citation',
144
+ }
145
145
  var outputTextContentTypeEnum = {
146
- output_text: "output_text"
147
- };
146
+ output_text: 'output_text',
147
+ }
148
148
  var textContentTypeEnum = {
149
- text: "text"
150
- };
149
+ text: 'text',
150
+ }
151
151
  var summaryTextContentTypeEnum = {
152
- summary_text: "summary_text"
153
- };
152
+ summary_text: 'summary_text',
153
+ }
154
154
  var reasoningTextContentTypeEnum = {
155
- reasoning_text: "reasoning_text"
156
- };
155
+ reasoning_text: 'reasoning_text',
156
+ }
157
157
  var refusalContentTypeEnum = {
158
- refusal: "refusal"
159
- };
158
+ refusal: 'refusal',
159
+ }
160
160
  var inputImageContentTypeEnum = {
161
- input_image: "input_image"
162
- };
161
+ input_image: 'input_image',
162
+ }
163
163
  var inputFileContentTypeEnum = {
164
- input_file: "input_file"
165
- };
164
+ input_file: 'input_file',
165
+ }
166
166
  var messageStatusEnum = {
167
- in_progress: "in_progress",
168
- completed: "completed",
169
- incomplete: "incomplete"
170
- };
167
+ in_progress: 'in_progress',
168
+ completed: 'completed',
169
+ incomplete: 'incomplete',
170
+ }
171
171
  var messageTypeEnum = {
172
- message: "message"
173
- };
172
+ message: 'message',
173
+ }
174
174
  var functionCallTypeEnum = {
175
- function_call: "function_call"
176
- };
175
+ function_call: 'function_call',
176
+ }
177
177
  var functionCallOutputStatusEnumEnum = {
178
- in_progress: "in_progress",
179
- completed: "completed",
180
- incomplete: "incomplete"
181
- };
178
+ in_progress: 'in_progress',
179
+ completed: 'completed',
180
+ incomplete: 'incomplete',
181
+ }
182
182
  var functionCallOutputTypeEnum = {
183
- function_call_output: "function_call_output"
184
- };
183
+ function_call_output: 'function_call_output',
184
+ }
185
185
  var reasoningBodyTypeEnum = {
186
- reasoning: "reasoning"
187
- };
186
+ reasoning: 'reasoning',
187
+ }
188
188
  var functionToolTypeEnum = {
189
- function: "function"
190
- };
189
+ function: 'function',
190
+ }
191
191
  var functionToolChoiceTypeEnum = {
192
- function: "function"
193
- };
192
+ function: 'function',
193
+ }
194
194
  var allowedToolChoiceTypeEnum = {
195
- allowed_tools: "allowed_tools"
196
- };
195
+ allowed_tools: 'allowed_tools',
196
+ }
197
197
  var jsonObjectResponseFormatTypeEnum = {
198
- json_object: "json_object"
199
- };
198
+ json_object: 'json_object',
199
+ }
200
200
  var jsonSchemaResponseFormatTypeEnum = {
201
- json_schema: "json_schema"
202
- };
201
+ json_schema: 'json_schema',
202
+ }
203
203
  var responseResourceObjectEnum = {
204
- response: "response"
205
- };
204
+ response: 'response',
205
+ }
206
206
  var responseCreatedStreamingEventTypeEnum = {
207
- "response.created": "response.created"
208
- };
207
+ 'response.created': 'response.created',
208
+ }
209
209
  var responseQueuedStreamingEventTypeEnum = {
210
- "response.queued": "response.queued"
211
- };
210
+ 'response.queued': 'response.queued',
211
+ }
212
212
  var responseInProgressStreamingEventTypeEnum = {
213
- "response.in_progress": "response.in_progress"
214
- };
213
+ 'response.in_progress': 'response.in_progress',
214
+ }
215
215
  var responseCompletedStreamingEventTypeEnum = {
216
- "response.completed": "response.completed"
217
- };
216
+ 'response.completed': 'response.completed',
217
+ }
218
218
  var responseFailedStreamingEventTypeEnum = {
219
- "response.failed": "response.failed"
220
- };
219
+ 'response.failed': 'response.failed',
220
+ }
221
221
  var responseIncompleteStreamingEventTypeEnum = {
222
- "response.incomplete": "response.incomplete"
223
- };
222
+ 'response.incomplete': 'response.incomplete',
223
+ }
224
224
  var responseOutputItemAddedStreamingEventTypeEnum = {
225
- "response.output_item.added": "response.output_item.added"
226
- };
225
+ 'response.output_item.added': 'response.output_item.added',
226
+ }
227
227
  var responseOutputItemDoneStreamingEventTypeEnum = {
228
- "response.output_item.done": "response.output_item.done"
229
- };
228
+ 'response.output_item.done': 'response.output_item.done',
229
+ }
230
230
  var responseReasoningSummaryPartAddedStreamingEventTypeEnum = {
231
- "response.reasoning_summary_part.added": "response.reasoning_summary_part.added"
232
- };
231
+ 'response.reasoning_summary_part.added':
232
+ 'response.reasoning_summary_part.added',
233
+ }
233
234
  var responseReasoningSummaryPartDoneStreamingEventTypeEnum = {
234
- "response.reasoning_summary_part.done": "response.reasoning_summary_part.done"
235
- };
235
+ 'response.reasoning_summary_part.done':
236
+ 'response.reasoning_summary_part.done',
237
+ }
236
238
  var responseContentPartAddedStreamingEventTypeEnum = {
237
- "response.content_part.added": "response.content_part.added"
238
- };
239
+ 'response.content_part.added': 'response.content_part.added',
240
+ }
239
241
  var responseContentPartDoneStreamingEventTypeEnum = {
240
- "response.content_part.done": "response.content_part.done"
241
- };
242
+ 'response.content_part.done': 'response.content_part.done',
243
+ }
242
244
  var responseOutputTextDeltaStreamingEventTypeEnum = {
243
- "response.output_text.delta": "response.output_text.delta"
244
- };
245
+ 'response.output_text.delta': 'response.output_text.delta',
246
+ }
245
247
  var responseOutputTextDoneStreamingEventTypeEnum = {
246
- "response.output_text.done": "response.output_text.done"
247
- };
248
+ 'response.output_text.done': 'response.output_text.done',
249
+ }
248
250
  var responseRefusalDeltaStreamingEventTypeEnum = {
249
- "response.refusal.delta": "response.refusal.delta"
250
- };
251
+ 'response.refusal.delta': 'response.refusal.delta',
252
+ }
251
253
  var responseRefusalDoneStreamingEventTypeEnum = {
252
- "response.refusal.done": "response.refusal.done"
253
- };
254
+ 'response.refusal.done': 'response.refusal.done',
255
+ }
254
256
  var responseReasoningDeltaStreamingEventTypeEnum = {
255
- "response.reasoning.delta": "response.reasoning.delta"
256
- };
257
+ 'response.reasoning.delta': 'response.reasoning.delta',
258
+ }
257
259
  var responseReasoningDoneStreamingEventTypeEnum = {
258
- "response.reasoning.done": "response.reasoning.done"
259
- };
260
+ 'response.reasoning.done': 'response.reasoning.done',
261
+ }
260
262
  var responseReasoningSummaryDeltaStreamingEventTypeEnum = {
261
- "response.reasoning_summary_text.delta": "response.reasoning_summary_text.delta"
262
- };
263
+ 'response.reasoning_summary_text.delta':
264
+ 'response.reasoning_summary_text.delta',
265
+ }
263
266
  var responseReasoningSummaryDoneStreamingEventTypeEnum = {
264
- "response.reasoning_summary_text.done": "response.reasoning_summary_text.done"
265
- };
267
+ 'response.reasoning_summary_text.done':
268
+ 'response.reasoning_summary_text.done',
269
+ }
266
270
  var responseOutputTextAnnotationAddedStreamingEventTypeEnum = {
267
- "response.output_text.annotation.added": "response.output_text.annotation.added"
268
- };
271
+ 'response.output_text.annotation.added':
272
+ 'response.output_text.annotation.added',
273
+ }
269
274
  var responseFunctionCallArgumentsDeltaStreamingEventTypeEnum = {
270
- "response.function_call_arguments.delta": "response.function_call_arguments.delta"
271
- };
275
+ 'response.function_call_arguments.delta':
276
+ 'response.function_call_arguments.delta',
277
+ }
272
278
  var responseFunctionCallArgumentsDoneStreamingEventTypeEnum = {
273
- "response.function_call_arguments.done": "response.function_call_arguments.done"
274
- };
279
+ 'response.function_call_arguments.done':
280
+ 'response.function_call_arguments.done',
281
+ }
275
282
  var errorStreamingEventTypeEnum = {
276
- error: "error"
277
- };
283
+ error: 'error',
284
+ }
278
285
 
279
286
  // src/gen/zod/functionToolChoiceSchema.ts
280
- import { z } from "zod";
287
+ import { z } from 'zod'
281
288
  var functionToolChoiceSchema = z.object({
282
- "type": z.enum(["function"]).default("function"),
283
- "name": z.optional(z.string())
284
- });
289
+ type: z.enum(['function']).default('function'),
290
+ name: z.optional(z.string()),
291
+ })
285
292
 
286
293
  // src/gen/zod/toolChoiceValueEnumSchema.ts
287
- import { z as z2 } from "zod";
288
- var toolChoiceValueEnumSchema = z2.enum(["none", "auto", "required"]);
294
+ import { z as z2 } from 'zod'
295
+ var toolChoiceValueEnumSchema = z2.enum(['none', 'auto', 'required'])
289
296
 
290
297
  // src/gen/zod/allowedToolChoiceSchema.ts
291
- import { z as z3 } from "zod";
298
+ import { z as z3 } from 'zod'
292
299
  var allowedToolChoiceSchema = z3.object({
293
- "type": z3.enum(["allowed_tools"]).default("allowed_tools"),
294
- "tools": z3.array(z3.lazy(() => functionToolChoiceSchema)),
295
- "mode": z3.lazy(() => toolChoiceValueEnumSchema)
296
- });
300
+ type: z3.enum(['allowed_tools']).default('allowed_tools'),
301
+ tools: z3.array(z3.lazy(() => functionToolChoiceSchema)),
302
+ mode: z3.lazy(() => toolChoiceValueEnumSchema),
303
+ })
297
304
 
298
305
  // src/gen/zod/specificFunctionParamSchema.ts
299
- import { z as z4 } from "zod";
306
+ import { z as z4 } from 'zod'
300
307
  var specificFunctionParamSchema = z4.object({
301
- "type": z4.enum(["function"]).default("function").describe("The tool to call. Always `function`."),
302
- "name": z4.string().describe("The name of the function tool to call.")
303
- });
308
+ type: z4
309
+ .enum(['function'])
310
+ .default('function')
311
+ .describe('The tool to call. Always `function`.'),
312
+ name: z4.string().describe('The name of the function tool to call.'),
313
+ })
304
314
 
305
315
  // src/gen/zod/specificToolChoiceParamSchema.ts
306
- import { z as z5 } from "zod";
307
- var specificToolChoiceParamSchema = z5.lazy(() => specificFunctionParamSchema);
316
+ import { z as z5 } from 'zod'
317
+ var specificToolChoiceParamSchema = z5.lazy(() => specificFunctionParamSchema)
308
318
 
309
319
  // src/gen/zod/allowedToolsParamSchema.ts
310
- import { z as z6 } from "zod";
320
+ import { z as z6 } from 'zod'
311
321
  var allowedToolsParamSchema = z6.object({
312
- "type": z6.enum(["allowed_tools"]).default("allowed_tools").describe("The tool choice type. Always `allowed_tools`."),
313
- "tools": z6.array(z6.lazy(() => specificToolChoiceParamSchema)).min(1).max(128).describe("The list of tools that are permitted for this request."),
314
- "mode": z6.optional(z6.lazy(() => toolChoiceValueEnumSchema).and(z6.any()))
315
- });
322
+ type: z6
323
+ .enum(['allowed_tools'])
324
+ .default('allowed_tools')
325
+ .describe('The tool choice type. Always `allowed_tools`.'),
326
+ tools: z6
327
+ .array(z6.lazy(() => specificToolChoiceParamSchema))
328
+ .min(1)
329
+ .max(128)
330
+ .describe('The list of tools that are permitted for this request.'),
331
+ mode: z6.optional(z6.lazy(() => toolChoiceValueEnumSchema).and(z6.any())),
332
+ })
316
333
 
317
334
  // src/gen/zod/urlCitationBodySchema.ts
318
- import { z as z7 } from "zod";
319
- var urlCitationBodySchema = z7.object({
320
- "type": z7.enum(["url_citation"]).default("url_citation").describe("The type of the URL citation. Always `url_citation`."),
321
- "url": z7.string().describe("The URL of the web resource."),
322
- "start_index": z7.number().int().describe("The index of the first character of the URL citation in the message."),
323
- "end_index": z7.number().int().describe("The index of the last character of the URL citation in the message."),
324
- "title": z7.string().describe("The title of the web resource.")
325
- }).describe("A citation for a web resource used to generate a model response.");
335
+ import { z as z7 } from 'zod'
336
+ var urlCitationBodySchema = z7
337
+ .object({
338
+ type: z7
339
+ .enum(['url_citation'])
340
+ .default('url_citation')
341
+ .describe('The type of the URL citation. Always `url_citation`.'),
342
+ url: z7.string().describe('The URL of the web resource.'),
343
+ start_index: z7
344
+ .number()
345
+ .int()
346
+ .describe(
347
+ 'The index of the first character of the URL citation in the message.',
348
+ ),
349
+ end_index: z7
350
+ .number()
351
+ .int()
352
+ .describe(
353
+ 'The index of the last character of the URL citation in the message.',
354
+ ),
355
+ title: z7.string().describe('The title of the web resource.'),
356
+ })
357
+ .describe('A citation for a web resource used to generate a model response.')
326
358
 
327
359
  // src/gen/zod/annotationSchema.ts
328
- import { z as z8 } from "zod";
329
- var annotationSchema = z8.lazy(() => urlCitationBodySchema).and(z8.object({
330
- "type": z8.literal("url_citation")
331
- })).describe("An annotation that applies to a span of output text.");
360
+ import { z as z8 } from 'zod'
361
+ var annotationSchema = z8
362
+ .lazy(() => urlCitationBodySchema)
363
+ .and(
364
+ z8.object({
365
+ type: z8.literal('url_citation'),
366
+ }),
367
+ )
368
+ .describe('An annotation that applies to a span of output text.')
332
369
 
333
370
  // src/gen/zod/urlCitationParamSchema.ts
334
- import { z as z9 } from "zod";
371
+ import { z as z9 } from 'zod'
335
372
  var urlCitationParamSchema = z9.object({
336
- "type": z9.enum(["url_citation"]).default("url_citation").describe("The citation type. Always `url_citation`."),
337
- "start_index": z9.number().int().min(0).describe("The index of the first character of the citation in the message."),
338
- "end_index": z9.number().int().min(0).describe("The index of the last character of the citation in the message."),
339
- "url": z9.string().describe("The URL of the cited resource."),
340
- "title": z9.string().describe("The title of the cited resource.")
341
- });
373
+ type: z9
374
+ .enum(['url_citation'])
375
+ .default('url_citation')
376
+ .describe('The citation type. Always `url_citation`.'),
377
+ start_index: z9
378
+ .number()
379
+ .int()
380
+ .min(0)
381
+ .describe(
382
+ 'The index of the first character of the citation in the message.',
383
+ ),
384
+ end_index: z9
385
+ .number()
386
+ .int()
387
+ .min(0)
388
+ .describe(
389
+ 'The index of the last character of the citation in the message.',
390
+ ),
391
+ url: z9.string().describe('The URL of the cited resource.'),
392
+ title: z9.string().describe('The title of the cited resource.'),
393
+ })
342
394
 
343
395
  // src/gen/zod/outputTextContentParamSchema.ts
344
- import { z as z10 } from "zod";
396
+ import { z as z10 } from 'zod'
345
397
  var outputTextContentParamSchema = z10.object({
346
- "type": z10.enum(["output_text"]).default("output_text").describe("The content type. Always `output_text`."),
347
- "text": z10.string().max(10485760).describe("The text content."),
348
- "annotations": z10.optional(z10.array(z10.lazy(() => urlCitationParamSchema)).describe("Citations associated with the text content."))
349
- });
398
+ type: z10
399
+ .enum(['output_text'])
400
+ .default('output_text')
401
+ .describe('The content type. Always `output_text`.'),
402
+ text: z10.string().max(10485760).describe('The text content.'),
403
+ annotations: z10.optional(
404
+ z10
405
+ .array(z10.lazy(() => urlCitationParamSchema))
406
+ .describe('Citations associated with the text content.'),
407
+ ),
408
+ })
350
409
 
351
410
  // src/gen/zod/refusalContentParamSchema.ts
352
- import { z as z11 } from "zod";
411
+ import { z as z11 } from 'zod'
353
412
  var refusalContentParamSchema = z11.object({
354
- "type": z11.enum(["refusal"]).default("refusal").describe("The content type. Always `refusal`."),
355
- "refusal": z11.string().max(10485760).describe("The refusal text.")
356
- });
413
+ type: z11
414
+ .enum(['refusal'])
415
+ .default('refusal')
416
+ .describe('The content type. Always `refusal`.'),
417
+ refusal: z11.string().max(10485760).describe('The refusal text.'),
418
+ })
357
419
 
358
420
  // src/gen/zod/assistantMessageItemParamSchema.ts
359
- import { z as z12 } from "zod";
421
+ import { z as z12 } from 'zod'
360
422
  var assistantMessageItemParamSchema = z12.object({
361
- "id": z12.optional(z12.union([z12.string(), z12.null()])),
362
- "type": z12.enum(["message"]).default("message").describe("The item type. Always `message`."),
363
- "role": z12.enum(["assistant"]).default("assistant").describe("The role of the message author. Always `assistant`."),
364
- "content": z12.union([z12.array(z12.union([z12.lazy(() => outputTextContentParamSchema).and(z12.object({
365
- "type": z12.literal("output_text")
366
- })), z12.lazy(() => refusalContentParamSchema).and(z12.object({
367
- "type": z12.literal("refusal")
368
- }))]).describe("A piece of assistant message content, such as text or a refusal.")), z12.string()]).describe("The message content, as an array of content parts."),
369
- "status": z12.optional(z12.union([z12.string(), z12.null()]))
370
- });
423
+ id: z12.optional(z12.union([z12.string(), z12.null()])),
424
+ type: z12
425
+ .enum(['message'])
426
+ .default('message')
427
+ .describe('The item type. Always `message`.'),
428
+ role: z12
429
+ .enum(['assistant'])
430
+ .default('assistant')
431
+ .describe('The role of the message author. Always `assistant`.'),
432
+ content: z12
433
+ .union([
434
+ z12.array(
435
+ z12
436
+ .union([
437
+ z12
438
+ .lazy(() => outputTextContentParamSchema)
439
+ .and(
440
+ z12.object({
441
+ type: z12.literal('output_text'),
442
+ }),
443
+ ),
444
+ z12
445
+ .lazy(() => refusalContentParamSchema)
446
+ .and(
447
+ z12.object({
448
+ type: z12.literal('refusal'),
449
+ }),
450
+ ),
451
+ ])
452
+ .describe(
453
+ 'A piece of assistant message content, such as text or a refusal.',
454
+ ),
455
+ ),
456
+ z12.string(),
457
+ ])
458
+ .describe('The message content, as an array of content parts.'),
459
+ status: z12.optional(z12.union([z12.string(), z12.null()])),
460
+ })
371
461
 
372
462
  // src/gen/zod/includeEnumSchema.ts
373
- import { z as z13 } from "zod";
374
- var includeEnumSchema = z13.enum(["reasoning.encrypted_content", "message.output_text.logprobs"]);
463
+ import { z as z13 } from 'zod'
464
+ var includeEnumSchema = z13.enum([
465
+ 'reasoning.encrypted_content',
466
+ 'message.output_text.logprobs',
467
+ ])
375
468
 
376
469
  // src/gen/zod/functionCallStatusSchema.ts
377
- import { z as z14 } from "zod";
378
- var functionCallStatusSchema = z14.enum(["in_progress", "completed", "incomplete"]);
470
+ import { z as z14 } from 'zod'
471
+ var functionCallStatusSchema = z14.enum([
472
+ 'in_progress',
473
+ 'completed',
474
+ 'incomplete',
475
+ ])
379
476
 
380
477
  // src/gen/zod/functionCallItemParamSchema.ts
381
- import { z as z15 } from "zod";
478
+ import { z as z15 } from 'zod'
382
479
  var functionCallItemParamSchema = z15.object({
383
- "id": z15.optional(z15.union([z15.string(), z15.null()])),
384
- "call_id": z15.string().min(1).max(64).describe("The unique ID of the function tool call generated by the model."),
385
- "type": z15.enum(["function_call"]).default("function_call").describe("The item type. Always `function_call`."),
386
- "name": z15.string().min(1).max(64).regex(/^[a-zA-Z0-9_-]+$/).describe("The name of the function to call."),
387
- "arguments": z15.string().describe("The function arguments as a JSON string."),
388
- "status": z15.optional(z15.union([z15.lazy(() => functionCallStatusSchema).and(z15.any()), z15.null()]))
389
- });
480
+ id: z15.optional(z15.union([z15.string(), z15.null()])),
481
+ call_id: z15
482
+ .string()
483
+ .min(1)
484
+ .max(64)
485
+ .describe(
486
+ 'The unique ID of the function tool call generated by the model.',
487
+ ),
488
+ type: z15
489
+ .enum(['function_call'])
490
+ .default('function_call')
491
+ .describe('The item type. Always `function_call`.'),
492
+ name: z15
493
+ .string()
494
+ .min(1)
495
+ .max(64)
496
+ .regex(/^[a-zA-Z0-9_-]+$/)
497
+ .describe('The name of the function to call.'),
498
+ arguments: z15.string().describe('The function arguments as a JSON string.'),
499
+ status: z15.optional(
500
+ z15.union([
501
+ z15.lazy(() => functionCallStatusSchema).and(z15.any()),
502
+ z15.null(),
503
+ ]),
504
+ ),
505
+ })
390
506
 
391
507
  // src/gen/zod/inputFileContentParamSchema.ts
392
- import { z as z16 } from "zod";
393
- var inputFileContentParamSchema = z16.object({
394
- "type": z16.enum(["input_file"]).default("input_file").describe("The type of the input item. Always `input_file`."),
395
- "filename": z16.optional(z16.union([z16.string(), z16.null()])),
396
- "file_data": z16.optional(z16.union([z16.string(), z16.null()])),
397
- "file_url": z16.optional(z16.union([z16.string(), z16.null()]))
398
- }).describe("A file input to the model.");
508
+ import { z as z16 } from 'zod'
509
+ var inputFileContentParamSchema = z16
510
+ .object({
511
+ type: z16
512
+ .enum(['input_file'])
513
+ .default('input_file')
514
+ .describe('The type of the input item. Always `input_file`.'),
515
+ filename: z16.optional(z16.union([z16.string(), z16.null()])),
516
+ file_data: z16.optional(z16.union([z16.string(), z16.null()])),
517
+ file_url: z16.optional(z16.union([z16.string(), z16.null()])),
518
+ })
519
+ .describe('A file input to the model.')
399
520
 
400
521
  // src/gen/zod/imageDetailSchema.ts
401
- import { z as z17 } from "zod";
402
- var imageDetailSchema = z17.enum(["low", "high", "auto"]);
522
+ import { z as z17 } from 'zod'
523
+ var imageDetailSchema = z17.enum(['low', 'high', 'auto'])
403
524
 
404
525
  // src/gen/zod/inputImageContentParamAutoParamSchema.ts
405
- import { z as z18 } from "zod";
406
- var inputImageContentParamAutoParamSchema = z18.object({
407
- "type": z18.enum(["input_image"]).default("input_image").describe("The type of the input item. Always `input_image`."),
408
- "image_url": z18.optional(z18.union([z18.string(), z18.null()])),
409
- "detail": z18.optional(z18.union([z18.lazy(() => imageDetailSchema).and(z18.any()), z18.null()]))
410
- }).describe("An image input to the model. Learn about [image inputs](/docs/guides/vision)");
526
+ import { z as z18 } from 'zod'
527
+ var inputImageContentParamAutoParamSchema = z18
528
+ .object({
529
+ type: z18
530
+ .enum(['input_image'])
531
+ .default('input_image')
532
+ .describe('The type of the input item. Always `input_image`.'),
533
+ image_url: z18.optional(z18.union([z18.string(), z18.null()])),
534
+ detail: z18.optional(
535
+ z18.union([z18.lazy(() => imageDetailSchema).and(z18.any()), z18.null()]),
536
+ ),
537
+ })
538
+ .describe(
539
+ 'An image input to the model. Learn about [image inputs](/docs/guides/vision)',
540
+ )
411
541
 
412
542
  // src/gen/zod/inputTextContentParamSchema.ts
413
- import { z as z19 } from "zod";
414
- var inputTextContentParamSchema = z19.object({
415
- "type": z19.enum(["input_text"]).default("input_text").describe("The type of the input item. Always `input_text`."),
416
- "text": z19.string().max(10485760).describe("The text input to the model.")
417
- }).describe("A text input to the model.");
543
+ import { z as z19 } from 'zod'
544
+ var inputTextContentParamSchema = z19
545
+ .object({
546
+ type: z19
547
+ .enum(['input_text'])
548
+ .default('input_text')
549
+ .describe('The type of the input item. Always `input_text`.'),
550
+ text: z19.string().max(10485760).describe('The text input to the model.'),
551
+ })
552
+ .describe('A text input to the model.')
418
553
 
419
554
  // src/gen/zod/inputVideoContentSchema.ts
420
- import { z as z20 } from "zod";
421
- var inputVideoContentSchema = z20.object({
422
- "type": z20.enum(["input_video"]).describe("The type of the input content. Always `input_video`."),
423
- "video_url": z20.string().describe("A base64 or remote url that resolves to a video file.")
424
- }).describe("A content block representing a video input to the model.");
555
+ import { z as z20 } from 'zod'
556
+ var inputVideoContentSchema = z20
557
+ .object({
558
+ type: z20
559
+ .enum(['input_video'])
560
+ .describe('The type of the input content. Always `input_video`.'),
561
+ video_url: z20
562
+ .string()
563
+ .describe('A base64 or remote url that resolves to a video file.'),
564
+ })
565
+ .describe('A content block representing a video input to the model.')
425
566
 
426
567
  // src/gen/zod/functionCallOutputItemParamSchema.ts
427
- import { z as z21 } from "zod";
428
- var functionCallOutputItemParamSchema = z21.object({
429
- "id": z21.optional(z21.union([z21.string(), z21.null()])),
430
- "call_id": z21.string().min(1).max(64).describe("The unique ID of the function tool call generated by the model."),
431
- "type": z21.enum(["function_call_output"]).default("function_call_output").describe("The type of the function tool call output. Always `function_call_output`."),
432
- "output": z21.union([z21.array(z21.union([z21.lazy(() => inputTextContentParamSchema).and(z21.object({
433
- "type": z21.literal("input_text")
434
- })), z21.lazy(() => inputImageContentParamAutoParamSchema).and(z21.object({
435
- "type": z21.literal("input_image")
436
- })), z21.lazy(() => inputFileContentParamSchema).and(z21.object({
437
- "type": z21.literal("input_file")
438
- })), z21.lazy(() => inputVideoContentSchema).and(z21.object({
439
- "type": z21.literal("input_video")
440
- }))]).describe("A piece of message content, such as text, an image, or a file.")), z21.string()]).describe("Text, image, or file output of the function tool call."),
441
- "status": z21.optional(z21.union([z21.lazy(() => functionCallStatusSchema).and(z21.any()), z21.null()]))
442
- }).describe("The output of a function tool call.");
568
+ import { z as z21 } from 'zod'
569
+ var functionCallOutputItemParamSchema = z21
570
+ .object({
571
+ id: z21.optional(z21.union([z21.string(), z21.null()])),
572
+ call_id: z21
573
+ .string()
574
+ .min(1)
575
+ .max(64)
576
+ .describe(
577
+ 'The unique ID of the function tool call generated by the model.',
578
+ ),
579
+ type: z21
580
+ .enum(['function_call_output'])
581
+ .default('function_call_output')
582
+ .describe(
583
+ 'The type of the function tool call output. Always `function_call_output`.',
584
+ ),
585
+ output: z21
586
+ .union([
587
+ z21.array(
588
+ z21
589
+ .union([
590
+ z21
591
+ .lazy(() => inputTextContentParamSchema)
592
+ .and(
593
+ z21.object({
594
+ type: z21.literal('input_text'),
595
+ }),
596
+ ),
597
+ z21
598
+ .lazy(() => inputImageContentParamAutoParamSchema)
599
+ .and(
600
+ z21.object({
601
+ type: z21.literal('input_image'),
602
+ }),
603
+ ),
604
+ z21
605
+ .lazy(() => inputFileContentParamSchema)
606
+ .and(
607
+ z21.object({
608
+ type: z21.literal('input_file'),
609
+ }),
610
+ ),
611
+ z21
612
+ .lazy(() => inputVideoContentSchema)
613
+ .and(
614
+ z21.object({
615
+ type: z21.literal('input_video'),
616
+ }),
617
+ ),
618
+ ])
619
+ .describe(
620
+ 'A piece of message content, such as text, an image, or a file.',
621
+ ),
622
+ ),
623
+ z21.string(),
624
+ ])
625
+ .describe('Text, image, or file output of the function tool call.'),
626
+ status: z21.optional(
627
+ z21.union([
628
+ z21.lazy(() => functionCallStatusSchema).and(z21.any()),
629
+ z21.null(),
630
+ ]),
631
+ ),
632
+ })
633
+ .describe('The output of a function tool call.')
443
634
 
444
635
  // src/gen/zod/itemReferenceParamSchema.ts
445
- import { z as z22 } from "zod";
446
- var itemReferenceParamSchema = z22.object({
447
- "type": z22.optional(z22.union([z22.enum(["item_reference"]), z22.null()])),
448
- "id": z22.string().describe("The ID of the item to reference.")
449
- }).describe("An internal identifier for an item to reference.");
636
+ import { z as z22 } from 'zod'
637
+ var itemReferenceParamSchema = z22
638
+ .object({
639
+ type: z22.optional(z22.union([z22.enum(['item_reference']), z22.null()])),
640
+ id: z22.string().describe('The ID of the item to reference.'),
641
+ })
642
+ .describe('An internal identifier for an item to reference.')
450
643
 
451
644
  // src/gen/zod/reasoningSummaryContentParamSchema.ts
452
- import { z as z23 } from "zod";
645
+ import { z as z23 } from 'zod'
453
646
  var reasoningSummaryContentParamSchema = z23.object({
454
- "type": z23.enum(["summary_text"]).default("summary_text").describe("The content type. Always `summary_text`."),
455
- "text": z23.string().max(10485760).describe("The reasoning summary text.")
456
- });
647
+ type: z23
648
+ .enum(['summary_text'])
649
+ .default('summary_text')
650
+ .describe('The content type. Always `summary_text`.'),
651
+ text: z23.string().max(10485760).describe('The reasoning summary text.'),
652
+ })
457
653
 
458
654
  // src/gen/zod/reasoningItemParamSchema.ts
459
- import { z as z24 } from "zod";
655
+ import { z as z24 } from 'zod'
460
656
  var reasoningItemParamSchema = z24.object({
461
- "id": z24.optional(z24.union([z24.string(), z24.null()])),
462
- "type": z24.enum(["reasoning"]).default("reasoning").describe("The item type. Always `reasoning`."),
463
- "summary": z24.array(z24.lazy(() => reasoningSummaryContentParamSchema)).describe("Reasoning summary content associated with this item."),
464
- "content": z24.optional(z24.null()),
465
- "encrypted_content": z24.optional(z24.union([z24.string(), z24.null()]))
466
- });
657
+ id: z24.optional(z24.union([z24.string(), z24.null()])),
658
+ type: z24
659
+ .enum(['reasoning'])
660
+ .default('reasoning')
661
+ .describe('The item type. Always `reasoning`.'),
662
+ summary: z24
663
+ .array(z24.lazy(() => reasoningSummaryContentParamSchema))
664
+ .describe('Reasoning summary content associated with this item.'),
665
+ content: z24.optional(z24.null()),
666
+ encrypted_content: z24.optional(z24.union([z24.string(), z24.null()])),
667
+ })
467
668
 
468
669
  // src/gen/zod/itemParamSchema.ts
469
- import { z as z25 } from "zod";
470
- var itemParamSchema = z25.union([z25.lazy(() => itemReferenceParamSchema).and(z25.object({
471
- "type": z25.literal("Item reference")
472
- })), z25.lazy(() => reasoningItemParamSchema).and(z25.object({
473
- "type": z25.literal("reasoning")
474
- })), z25.lazy(() => assistantMessageItemParamSchema).and(z25.object({
475
- "type": z25.literal("message")
476
- })), z25.lazy(() => functionCallItemParamSchema).and(z25.object({
477
- "type": z25.literal("function_call")
478
- })), z25.lazy(() => functionCallOutputItemParamSchema).and(z25.object({
479
- "type": z25.literal("function_call_output")
480
- }))]);
670
+ import { z as z25 } from 'zod'
671
+ var itemParamSchema = z25.union([
672
+ z25
673
+ .lazy(() => itemReferenceParamSchema)
674
+ .and(
675
+ z25.object({
676
+ type: z25.literal('Item reference'),
677
+ }),
678
+ ),
679
+ z25
680
+ .lazy(() => reasoningItemParamSchema)
681
+ .and(
682
+ z25.object({
683
+ type: z25.literal('reasoning'),
684
+ }),
685
+ ),
686
+ z25
687
+ .lazy(() => assistantMessageItemParamSchema)
688
+ .and(
689
+ z25.object({
690
+ type: z25.literal('message'),
691
+ }),
692
+ ),
693
+ z25
694
+ .lazy(() => functionCallItemParamSchema)
695
+ .and(
696
+ z25.object({
697
+ type: z25.literal('function_call'),
698
+ }),
699
+ ),
700
+ z25
701
+ .lazy(() => functionCallOutputItemParamSchema)
702
+ .and(
703
+ z25.object({
704
+ type: z25.literal('function_call_output'),
705
+ }),
706
+ ),
707
+ ])
481
708
 
482
709
  // src/gen/zod/metadataParamSchema.ts
483
- import { z as z26 } from "zod";
484
- var metadataParamSchema = z26.object({}).catchall(z26.string().max(512)).describe("Set of 16 key-value pairs that can be attached to an object. This can be useful for storing additional information about the object in a structured format, and querying for objects via API or the dashboard.\n Keys are strings with a maximum length of 64 characters. Values are strings with a maximum length of 512 characters.");
710
+ import { z as z26 } from 'zod'
711
+ var metadataParamSchema = z26
712
+ .object({})
713
+ .catchall(z26.string().max(512))
714
+ .describe(
715
+ 'Set of 16 key-value pairs that can be attached to an object. This can be useful for storing additional information about the object in a structured format, and querying for objects via API or the dashboard.\n Keys are strings with a maximum length of 64 characters. Values are strings with a maximum length of 512 characters.',
716
+ )
485
717
 
486
718
  // src/gen/zod/reasoningEffortEnumSchema.ts
487
- import { z as z27 } from "zod";
488
- var reasoningEffortEnumSchema = z27.enum(["none", "low", "medium", "high", "xhigh"]);
719
+ import { z as z27 } from 'zod'
720
+ var reasoningEffortEnumSchema = z27.enum([
721
+ 'none',
722
+ 'low',
723
+ 'medium',
724
+ 'high',
725
+ 'xhigh',
726
+ ])
489
727
 
490
728
  // src/gen/zod/reasoningSummaryEnumSchema.ts
491
- import { z as z28 } from "zod";
492
- var reasoningSummaryEnumSchema = z28.enum(["concise", "detailed", "auto"]);
729
+ import { z as z28 } from 'zod'
730
+ var reasoningSummaryEnumSchema = z28.enum(['concise', 'detailed', 'auto'])
493
731
 
494
732
  // src/gen/zod/reasoningParamSchema.ts
495
- import { z as z29 } from "zod";
496
- var reasoningParamSchema = z29.object({
497
- "effort": z29.optional(z29.union([z29.lazy(() => reasoningEffortEnumSchema), z29.null()])),
498
- "summary": z29.optional(z29.union([z29.lazy(() => reasoningSummaryEnumSchema).and(z29.any()), z29.null()]))
499
- }).describe("**gpt-5 and o-series models only** Configuration options for [reasoning models](https://platform.openai.com/docs/guides/reasoning).");
733
+ import { z as z29 } from 'zod'
734
+ var reasoningParamSchema = z29
735
+ .object({
736
+ effort: z29.optional(
737
+ z29.union([z29.lazy(() => reasoningEffortEnumSchema), z29.null()]),
738
+ ),
739
+ summary: z29.optional(
740
+ z29.union([
741
+ z29.lazy(() => reasoningSummaryEnumSchema).and(z29.any()),
742
+ z29.null(),
743
+ ]),
744
+ ),
745
+ })
746
+ .describe(
747
+ '**gpt-5 and o-series models only** Configuration options for [reasoning models](https://platform.openai.com/docs/guides/reasoning).',
748
+ )
500
749
 
501
750
  // src/gen/zod/emptyModelParamSchema.ts
502
- import { z as z30 } from "zod";
503
- var emptyModelParamSchema = z30.object({});
751
+ import { z as z30 } from 'zod'
752
+ var emptyModelParamSchema = z30.object({})
504
753
 
505
754
  // src/gen/zod/functionToolParamSchema.ts
506
- import { z as z31 } from "zod";
755
+ import { z as z31 } from 'zod'
507
756
  var functionToolParamSchema = z31.object({
508
- "name": z31.string().min(1).max(64).regex(/^[a-zA-Z0-9_-]+$/),
509
- "description": z31.optional(z31.union([z31.string(), z31.null()])),
510
- "parameters": z31.optional(z31.union([z31.lazy(() => emptyModelParamSchema), z31.null()])),
511
- "strict": z31.optional(z31.boolean()),
512
- "type": z31.enum(["function"]).default("function")
513
- });
757
+ name: z31
758
+ .string()
759
+ .min(1)
760
+ .max(64)
761
+ .regex(/^[a-zA-Z0-9_-]+$/),
762
+ description: z31.optional(z31.union([z31.string(), z31.null()])),
763
+ parameters: z31.optional(
764
+ z31.union([z31.lazy(() => emptyModelParamSchema), z31.null()]),
765
+ ),
766
+ strict: z31.optional(z31.boolean()),
767
+ type: z31.enum(['function']).default('function'),
768
+ })
514
769
 
515
770
  // src/gen/zod/responsesToolParamSchema.ts
516
- import { z as z32 } from "zod";
517
- var responsesToolParamSchema = z32.lazy(() => functionToolParamSchema).and(z32.object({
518
- "type": z32.literal("function")
519
- }));
771
+ import { z as z32 } from 'zod'
772
+ var responsesToolParamSchema = z32
773
+ .lazy(() => functionToolParamSchema)
774
+ .and(
775
+ z32.object({
776
+ type: z32.literal('function'),
777
+ }),
778
+ )
520
779
 
521
780
  // src/gen/zod/serviceTierEnumSchema.ts
522
- import { z as z33 } from "zod";
523
- var serviceTierEnumSchema = z33.enum(["auto", "default", "flex", "priority"]);
781
+ import { z as z33 } from 'zod'
782
+ var serviceTierEnumSchema = z33.enum(['auto', 'default', 'flex', 'priority'])
524
783
 
525
784
  // src/gen/zod/streamOptionsParamSchema.ts
526
- import { z as z34 } from "zod";
527
- var streamOptionsParamSchema = z34.object({
528
- "include_obfuscation": z34.optional(z34.boolean().describe("Whether to obfuscate sensitive information in streamed output. Defaults to `true`."))
529
- }).describe("Options that control streamed response behavior.");
785
+ import { z as z34 } from 'zod'
786
+ var streamOptionsParamSchema = z34
787
+ .object({
788
+ include_obfuscation: z34.optional(
789
+ z34
790
+ .boolean()
791
+ .describe(
792
+ 'Whether to obfuscate sensitive information in streamed output. Defaults to `true`.',
793
+ ),
794
+ ),
795
+ })
796
+ .describe('Options that control streamed response behavior.')
530
797
 
531
798
  // src/gen/zod/jsonSchemaResponseFormatParamSchema.ts
532
- import { z as z35 } from "zod";
799
+ import { z as z35 } from 'zod'
533
800
  var jsonSchemaResponseFormatParamSchema = z35.object({
534
- "type": z35.optional(z35.enum(["json_schema"]).describe("The type of response format being defined. Always `json_schema`.")),
535
- "description": z35.optional(z35.string().describe("A description of what the response format is for, used by the model to\ndetermine how to respond in the format.\n")),
536
- "name": z35.optional(z35.string().describe("The name of the response format. Must be a-z, A-Z, 0-9, or contain\nunderscores and dashes, with a maximum length of 64.\n")),
537
- "schema": z35.optional(z35.object({}).catchall(z35.any()).describe("The schema for the response format, described as a JSON Schema object.\n")),
538
- "strict": z35.optional(z35.union([z35.boolean(), z35.null()]))
539
- });
801
+ type: z35.optional(
802
+ z35
803
+ .enum(['json_schema'])
804
+ .describe(
805
+ 'The type of response format being defined. Always `json_schema`.',
806
+ ),
807
+ ),
808
+ description: z35.optional(
809
+ z35
810
+ .string()
811
+ .describe(
812
+ 'A description of what the response format is for, used by the model to\ndetermine how to respond in the format.\n',
813
+ ),
814
+ ),
815
+ name: z35.optional(
816
+ z35
817
+ .string()
818
+ .describe(
819
+ 'The name of the response format. Must be a-z, A-Z, 0-9, or contain\nunderscores and dashes, with a maximum length of 64.\n',
820
+ ),
821
+ ),
822
+ schema: z35.optional(
823
+ z35
824
+ .object({})
825
+ .catchall(z35.any())
826
+ .describe(
827
+ 'The schema for the response format, described as a JSON Schema object.\n',
828
+ ),
829
+ ),
830
+ strict: z35.optional(z35.union([z35.boolean(), z35.null()])),
831
+ })
540
832
 
541
833
  // src/gen/zod/textResponseFormatSchema.ts
542
- import { z as z36 } from "zod";
834
+ import { z as z36 } from 'zod'
543
835
  var textResponseFormatSchema = z36.object({
544
- "type": z36.enum(["text"]).default("text")
545
- });
836
+ type: z36.enum(['text']).default('text'),
837
+ })
546
838
 
547
839
  // src/gen/zod/textFormatParamSchema.ts
548
- import { z as z37 } from "zod";
549
- var textFormatParamSchema = z37.union([z37.lazy(() => textResponseFormatSchema), z37.lazy(() => jsonSchemaResponseFormatParamSchema)]);
840
+ import { z as z37 } from 'zod'
841
+ var textFormatParamSchema = z37.union([
842
+ z37.lazy(() => textResponseFormatSchema),
843
+ z37.lazy(() => jsonSchemaResponseFormatParamSchema),
844
+ ])
550
845
 
551
846
  // src/gen/zod/verbosityEnumSchema.ts
552
- import { z as z38 } from "zod";
553
- var verbosityEnumSchema = z38.enum(["low", "medium", "high"]);
847
+ import { z as z38 } from 'zod'
848
+ var verbosityEnumSchema = z38.enum(['low', 'medium', 'high'])
554
849
 
555
850
  // src/gen/zod/textParamSchema.ts
556
- import { z as z39 } from "zod";
851
+ import { z as z39 } from 'zod'
557
852
  var textParamSchema = z39.object({
558
- "format": z39.optional(z39.union([z39.lazy(() => textFormatParamSchema), z39.null()]).describe("The format configuration for text output.")),
559
- "verbosity": z39.optional(z39.lazy(() => verbosityEnumSchema).and(z39.any()))
560
- });
853
+ format: z39.optional(
854
+ z39
855
+ .union([z39.lazy(() => textFormatParamSchema), z39.null()])
856
+ .describe('The format configuration for text output.'),
857
+ ),
858
+ verbosity: z39.optional(z39.lazy(() => verbosityEnumSchema).and(z39.any())),
859
+ })
561
860
 
562
861
  // src/gen/zod/toolChoiceParamSchema.ts
563
- import { z as z40 } from "zod";
564
- var toolChoiceParamSchema = z40.union([z40.lazy(() => specificToolChoiceParamSchema), z40.lazy(() => toolChoiceValueEnumSchema), z40.lazy(() => allowedToolsParamSchema)]).describe("Controls which tool the model should use, if any.");
862
+ import { z as z40 } from 'zod'
863
+ var toolChoiceParamSchema = z40
864
+ .union([
865
+ z40.lazy(() => specificToolChoiceParamSchema),
866
+ z40.lazy(() => toolChoiceValueEnumSchema),
867
+ z40.lazy(() => allowedToolsParamSchema),
868
+ ])
869
+ .describe('Controls which tool the model should use, if any.')
565
870
 
566
871
  // src/gen/zod/truncationEnumSchema.ts
567
- import { z as z41 } from "zod";
568
- var truncationEnumSchema = z41.enum(["auto", "disabled"]);
872
+ import { z as z41 } from 'zod'
873
+ var truncationEnumSchema = z41.enum(['auto', 'disabled'])
569
874
 
570
875
  // src/gen/zod/createResponseBodySchema.ts
571
- import { z as z42 } from "zod";
876
+ import { z as z42 } from 'zod'
572
877
  var createResponseBodySchema = z42.object({
573
- "model": z42.optional(z42.union([z42.string(), z42.null()])),
574
- "input": z42.optional(z42.union([z42.union([z42.array(z42.lazy(() => itemParamSchema)), z42.string()]), z42.null()])),
575
- "previous_response_id": z42.optional(z42.union([z42.string(), z42.null()])),
576
- "include": z42.optional(z42.array(z42.lazy(() => includeEnumSchema))),
577
- "tools": z42.optional(z42.union([z42.array(z42.lazy(() => responsesToolParamSchema)), z42.null()])),
578
- "tool_choice": z42.optional(z42.union([z42.lazy(() => toolChoiceParamSchema).and(z42.any()), z42.null()])),
579
- "metadata": z42.optional(z42.union([z42.lazy(() => metadataParamSchema).and(z42.any()), z42.null()])),
580
- "text": z42.optional(z42.union([z42.lazy(() => textParamSchema).and(z42.any()), z42.null()])),
581
- "temperature": z42.optional(z42.union([z42.number(), z42.null()])),
582
- "top_p": z42.optional(z42.union([z42.number(), z42.null()])),
583
- "presence_penalty": z42.optional(z42.union([z42.number(), z42.null()])),
584
- "frequency_penalty": z42.optional(z42.union([z42.number(), z42.null()])),
585
- "parallel_tool_calls": z42.optional(z42.union([z42.boolean(), z42.null()])),
586
- "stream": z42.optional(z42.boolean().describe("Whether to stream response events as server-sent events.")),
587
- "stream_options": z42.optional(z42.union([z42.lazy(() => streamOptionsParamSchema).and(z42.any()), z42.null()])),
588
- "background": z42.optional(z42.boolean().describe("Whether to run the request in the background and return immediately.")),
589
- "max_output_tokens": z42.optional(z42.union([z42.number().int(), z42.null()])),
590
- "max_tool_calls": z42.optional(z42.union([z42.number().int(), z42.null()])),
591
- "reasoning": z42.optional(z42.union([z42.lazy(() => reasoningParamSchema).and(z42.any()), z42.null()])),
592
- "safety_identifier": z42.optional(z42.union([z42.string(), z42.null()])),
593
- "prompt_cache_key": z42.optional(z42.union([z42.string(), z42.null()])),
594
- "truncation": z42.optional(z42.lazy(() => truncationEnumSchema).and(z42.any())),
595
- "instructions": z42.optional(z42.union([z42.string(), z42.null()])),
596
- "store": z42.optional(z42.boolean().describe("Whether to store the response so it can be retrieved later.")),
597
- "service_tier": z42.optional(z42.lazy(() => serviceTierEnumSchema).and(z42.any())),
598
- "top_logprobs": z42.optional(z42.union([z42.number().int(), z42.null()]))
599
- });
878
+ model: z42.optional(z42.union([z42.string(), z42.null()])),
879
+ input: z42.optional(
880
+ z42.union([
881
+ z42.union([z42.array(z42.lazy(() => itemParamSchema)), z42.string()]),
882
+ z42.null(),
883
+ ]),
884
+ ),
885
+ previous_response_id: z42.optional(z42.union([z42.string(), z42.null()])),
886
+ include: z42.optional(z42.array(z42.lazy(() => includeEnumSchema))),
887
+ tools: z42.optional(
888
+ z42.union([
889
+ z42.array(z42.lazy(() => responsesToolParamSchema)),
890
+ z42.null(),
891
+ ]),
892
+ ),
893
+ tool_choice: z42.optional(
894
+ z42.union([
895
+ z42.lazy(() => toolChoiceParamSchema).and(z42.any()),
896
+ z42.null(),
897
+ ]),
898
+ ),
899
+ metadata: z42.optional(
900
+ z42.union([z42.lazy(() => metadataParamSchema).and(z42.any()), z42.null()]),
901
+ ),
902
+ text: z42.optional(
903
+ z42.union([z42.lazy(() => textParamSchema).and(z42.any()), z42.null()]),
904
+ ),
905
+ temperature: z42.optional(z42.union([z42.number(), z42.null()])),
906
+ top_p: z42.optional(z42.union([z42.number(), z42.null()])),
907
+ presence_penalty: z42.optional(z42.union([z42.number(), z42.null()])),
908
+ frequency_penalty: z42.optional(z42.union([z42.number(), z42.null()])),
909
+ parallel_tool_calls: z42.optional(z42.union([z42.boolean(), z42.null()])),
910
+ stream: z42.optional(
911
+ z42
912
+ .boolean()
913
+ .describe('Whether to stream response events as server-sent events.'),
914
+ ),
915
+ stream_options: z42.optional(
916
+ z42.union([
917
+ z42.lazy(() => streamOptionsParamSchema).and(z42.any()),
918
+ z42.null(),
919
+ ]),
920
+ ),
921
+ background: z42.optional(
922
+ z42
923
+ .boolean()
924
+ .describe(
925
+ 'Whether to run the request in the background and return immediately.',
926
+ ),
927
+ ),
928
+ max_output_tokens: z42.optional(z42.union([z42.number().int(), z42.null()])),
929
+ max_tool_calls: z42.optional(z42.union([z42.number().int(), z42.null()])),
930
+ reasoning: z42.optional(
931
+ z42.union([
932
+ z42.lazy(() => reasoningParamSchema).and(z42.any()),
933
+ z42.null(),
934
+ ]),
935
+ ),
936
+ safety_identifier: z42.optional(z42.union([z42.string(), z42.null()])),
937
+ prompt_cache_key: z42.optional(z42.union([z42.string(), z42.null()])),
938
+ truncation: z42.optional(z42.lazy(() => truncationEnumSchema).and(z42.any())),
939
+ instructions: z42.optional(z42.union([z42.string(), z42.null()])),
940
+ store: z42.optional(
941
+ z42
942
+ .boolean()
943
+ .describe('Whether to store the response so it can be retrieved later.'),
944
+ ),
945
+ service_tier: z42.optional(
946
+ z42.lazy(() => serviceTierEnumSchema).and(z42.any()),
947
+ ),
948
+ top_logprobs: z42.optional(z42.union([z42.number().int(), z42.null()])),
949
+ })
600
950
 
601
951
  // src/gen/zod/errorSchema.ts
602
- import { z as z43 } from "zod";
603
- var errorSchema = z43.object({
604
- "code": z43.string().describe("A machine-readable error code that was returned."),
605
- "message": z43.string().describe("A human-readable description of the error that was returned.")
606
- }).describe("An error that occurred while generating the response.");
952
+ import { z as z43 } from 'zod'
953
+ var errorSchema = z43
954
+ .object({
955
+ code: z43
956
+ .string()
957
+ .describe('A machine-readable error code that was returned.'),
958
+ message: z43
959
+ .string()
960
+ .describe('A human-readable description of the error that was returned.'),
961
+ })
962
+ .describe('An error that occurred while generating the response.')
607
963
 
608
964
  // src/gen/zod/incompleteDetailsSchema.ts
609
- import { z as z44 } from "zod";
610
- var incompleteDetailsSchema = z44.object({
611
- "reason": z44.string().describe("The reason the response could not be completed.")
612
- }).describe("Details about why the response was incomplete.");
965
+ import { z as z44 } from 'zod'
966
+ var incompleteDetailsSchema = z44
967
+ .object({
968
+ reason: z44
969
+ .string()
970
+ .describe('The reason the response could not be completed.'),
971
+ })
972
+ .describe('Details about why the response was incomplete.')
613
973
 
614
974
  // src/gen/zod/functionCallOutputStatusEnumSchema.ts
615
- import { z as z45 } from "zod";
616
- var functionCallOutputStatusEnumSchema = z45.enum(["in_progress", "completed", "incomplete"]).describe("Similar to `FunctionCallStatus`. All three options are allowed here for compatibility, but because in practice these items will be provided by developers, only `completed` should be used.");
975
+ import { z as z45 } from 'zod'
976
+ var functionCallOutputStatusEnumSchema = z45
977
+ .enum(['in_progress', 'completed', 'incomplete'])
978
+ .describe(
979
+ 'Similar to `FunctionCallStatus`. All three options are allowed here for compatibility, but because in practice these items will be provided by developers, only `completed` should be used.',
980
+ )
617
981
 
618
982
  // src/gen/zod/inputFileContentSchema.ts
619
- import { z as z46 } from "zod";
620
- var inputFileContentSchema = z46.object({
621
- "type": z46.enum(["input_file"]).default("input_file").describe("The type of the input item. Always `input_file`."),
622
- "filename": z46.optional(z46.string().describe("The name of the file to be sent to the model.")),
623
- "file_url": z46.optional(z46.string().describe("The URL of the file to be sent to the model."))
624
- }).describe("A file input to the model.");
983
+ import { z as z46 } from 'zod'
984
+ var inputFileContentSchema = z46
985
+ .object({
986
+ type: z46
987
+ .enum(['input_file'])
988
+ .default('input_file')
989
+ .describe('The type of the input item. Always `input_file`.'),
990
+ filename: z46.optional(
991
+ z46.string().describe('The name of the file to be sent to the model.'),
992
+ ),
993
+ file_url: z46.optional(
994
+ z46.string().describe('The URL of the file to be sent to the model.'),
995
+ ),
996
+ })
997
+ .describe('A file input to the model.')
625
998
 
626
999
  // src/gen/zod/inputImageContentSchema.ts
627
- import { z as z47 } from "zod";
628
- var inputImageContentSchema = z47.object({
629
- "type": z47.enum(["input_image"]).default("input_image").describe("The type of the input item. Always `input_image`."),
630
- "image_url": z47.union([z47.string(), z47.null()]),
631
- "detail": z47.lazy(() => imageDetailSchema).and(z47.any())
632
- }).describe("An image input to the model. Learn about [image inputs](/docs/guides/vision).");
1000
+ import { z as z47 } from 'zod'
1001
+ var inputImageContentSchema = z47
1002
+ .object({
1003
+ type: z47
1004
+ .enum(['input_image'])
1005
+ .default('input_image')
1006
+ .describe('The type of the input item. Always `input_image`.'),
1007
+ image_url: z47.union([z47.string(), z47.null()]),
1008
+ detail: z47.lazy(() => imageDetailSchema).and(z47.any()),
1009
+ })
1010
+ .describe(
1011
+ 'An image input to the model. Learn about [image inputs](/docs/guides/vision).',
1012
+ )
633
1013
 
634
1014
  // src/gen/zod/inputTextContentSchema.ts
635
- import { z as z48 } from "zod";
636
- var inputTextContentSchema = z48.object({
637
- "type": z48.enum(["input_text"]).default("input_text").describe("The type of the input item. Always `input_text`."),
638
- "text": z48.string().describe("The text input to the model.")
639
- }).describe("A text input to the model.");
1015
+ import { z as z48 } from 'zod'
1016
+ var inputTextContentSchema = z48
1017
+ .object({
1018
+ type: z48
1019
+ .enum(['input_text'])
1020
+ .default('input_text')
1021
+ .describe('The type of the input item. Always `input_text`.'),
1022
+ text: z48.string().describe('The text input to the model.'),
1023
+ })
1024
+ .describe('A text input to the model.')
640
1025
 
641
1026
  // src/gen/zod/functionCallOutputSchema.ts
642
- import { z as z49 } from "zod";
643
- var functionCallOutputSchema = z49.object({
644
- "type": z49.enum(["function_call_output"]).default("function_call_output").describe("The type of the function tool call output. Always `function_call_output`."),
645
- "id": z49.string().describe("The unique ID of the function tool call output. Populated when this item is returned via API."),
646
- "call_id": z49.string().describe("The unique ID of the function tool call generated by the model."),
647
- "output": z49.union([z49.array(z49.union([z49.lazy(() => inputTextContentSchema).and(z49.object({
648
- "type": z49.literal("input_text")
649
- })), z49.lazy(() => inputImageContentSchema).and(z49.object({
650
- "type": z49.literal("input_image")
651
- })), z49.lazy(() => inputFileContentSchema).and(z49.object({
652
- "type": z49.literal("input_file")
653
- }))]).describe("A content part that makes up an input or output item.")), z49.string()]),
654
- "status": z49.lazy(() => functionCallOutputStatusEnumSchema).and(z49.any())
655
- }).describe("A function tool call output that was returned by the tool.");
1027
+ import { z as z49 } from 'zod'
1028
+ var functionCallOutputSchema = z49
1029
+ .object({
1030
+ type: z49
1031
+ .enum(['function_call_output'])
1032
+ .default('function_call_output')
1033
+ .describe(
1034
+ 'The type of the function tool call output. Always `function_call_output`.',
1035
+ ),
1036
+ id: z49
1037
+ .string()
1038
+ .describe(
1039
+ 'The unique ID of the function tool call output. Populated when this item is returned via API.',
1040
+ ),
1041
+ call_id: z49
1042
+ .string()
1043
+ .describe(
1044
+ 'The unique ID of the function tool call generated by the model.',
1045
+ ),
1046
+ output: z49.union([
1047
+ z49.array(
1048
+ z49
1049
+ .union([
1050
+ z49
1051
+ .lazy(() => inputTextContentSchema)
1052
+ .and(
1053
+ z49.object({
1054
+ type: z49.literal('input_text'),
1055
+ }),
1056
+ ),
1057
+ z49
1058
+ .lazy(() => inputImageContentSchema)
1059
+ .and(
1060
+ z49.object({
1061
+ type: z49.literal('input_image'),
1062
+ }),
1063
+ ),
1064
+ z49
1065
+ .lazy(() => inputFileContentSchema)
1066
+ .and(
1067
+ z49.object({
1068
+ type: z49.literal('input_file'),
1069
+ }),
1070
+ ),
1071
+ ])
1072
+ .describe('A content part that makes up an input or output item.'),
1073
+ ),
1074
+ z49.string(),
1075
+ ]),
1076
+ status: z49.lazy(() => functionCallOutputStatusEnumSchema).and(z49.any()),
1077
+ })
1078
+ .describe('A function tool call output that was returned by the tool.')
656
1079
 
657
1080
  // src/gen/zod/functionCallSchema.ts
658
- import { z as z50 } from "zod";
659
- var functionCallSchema = z50.object({
660
- "type": z50.enum(["function_call"]).default("function_call").describe("The type of the item. Always `function_call`."),
661
- "id": z50.string().describe("The unique ID of the function call item."),
662
- "call_id": z50.string().describe("The unique ID of the function tool call that was generated."),
663
- "name": z50.string().describe("The name of the function that was called."),
664
- "arguments": z50.string().describe("The arguments JSON string that was generated."),
665
- "status": z50.lazy(() => functionCallStatusSchema).and(z50.any())
666
- }).describe("A function tool call that was generated by the model.");
1081
+ import { z as z50 } from 'zod'
1082
+ var functionCallSchema = z50
1083
+ .object({
1084
+ type: z50
1085
+ .enum(['function_call'])
1086
+ .default('function_call')
1087
+ .describe('The type of the item. Always `function_call`.'),
1088
+ id: z50.string().describe('The unique ID of the function call item.'),
1089
+ call_id: z50
1090
+ .string()
1091
+ .describe('The unique ID of the function tool call that was generated.'),
1092
+ name: z50.string().describe('The name of the function that was called.'),
1093
+ arguments: z50
1094
+ .string()
1095
+ .describe('The arguments JSON string that was generated.'),
1096
+ status: z50.lazy(() => functionCallStatusSchema).and(z50.any()),
1097
+ })
1098
+ .describe('A function tool call that was generated by the model.')
667
1099
 
668
1100
  // src/gen/zod/messageRoleSchema.ts
669
- import { z as z51 } from "zod";
670
- var messageRoleSchema = z51.enum(["user", "assistant", "system", "developer"]);
1101
+ import { z as z51 } from 'zod'
1102
+ var messageRoleSchema = z51.enum(['user', 'assistant', 'system', 'developer'])
671
1103
 
672
1104
  // src/gen/zod/messageStatusSchema.ts
673
- import { z as z52 } from "zod";
674
- var messageStatusSchema = z52.enum(["in_progress", "completed", "incomplete"]);
1105
+ import { z as z52 } from 'zod'
1106
+ var messageStatusSchema = z52.enum(['in_progress', 'completed', 'incomplete'])
675
1107
 
676
1108
  // src/gen/zod/topLogProbSchema.ts
677
- import { z as z53 } from "zod";
678
- var topLogProbSchema = z53.object({
679
- "token": z53.string(),
680
- "logprob": z53.number(),
681
- "bytes": z53.array(z53.number().int())
682
- }).describe("The top log probability of a token.");
1109
+ import { z as z53 } from 'zod'
1110
+ var topLogProbSchema = z53
1111
+ .object({
1112
+ token: z53.string(),
1113
+ logprob: z53.number(),
1114
+ bytes: z53.array(z53.number().int()),
1115
+ })
1116
+ .describe('The top log probability of a token.')
683
1117
 
684
1118
  // src/gen/zod/logProbSchema.ts
685
- import { z as z54 } from "zod";
686
- var logProbSchema = z54.object({
687
- "token": z54.string(),
688
- "logprob": z54.number(),
689
- "bytes": z54.array(z54.number().int()),
690
- "top_logprobs": z54.array(z54.lazy(() => topLogProbSchema).describe("The top log probability of a token."))
691
- }).describe("The log probability of a token.");
1119
+ import { z as z54 } from 'zod'
1120
+ var logProbSchema = z54
1121
+ .object({
1122
+ token: z54.string(),
1123
+ logprob: z54.number(),
1124
+ bytes: z54.array(z54.number().int()),
1125
+ top_logprobs: z54.array(
1126
+ z54
1127
+ .lazy(() => topLogProbSchema)
1128
+ .describe('The top log probability of a token.'),
1129
+ ),
1130
+ })
1131
+ .describe('The log probability of a token.')
692
1132
 
693
1133
  // src/gen/zod/outputTextContentSchema.ts
694
- import { z as z55 } from "zod";
695
- var outputTextContentSchema = z55.object({
696
- "type": z55.enum(["output_text"]).default("output_text").describe("The type of the output text. Always `output_text`."),
697
- "text": z55.string().describe("The text output from the model."),
698
- "annotations": z55.array(z55.lazy(() => annotationSchema).describe("An annotation that applies to a span of output text.")).describe("The annotations of the text output."),
699
- "logprobs": z55.array(z55.lazy(() => logProbSchema).describe("The log probability of a token."))
700
- }).describe("A text output from the model.");
1134
+ import { z as z55 } from 'zod'
1135
+ var outputTextContentSchema = z55
1136
+ .object({
1137
+ type: z55
1138
+ .enum(['output_text'])
1139
+ .default('output_text')
1140
+ .describe('The type of the output text. Always `output_text`.'),
1141
+ text: z55.string().describe('The text output from the model.'),
1142
+ annotations: z55
1143
+ .array(
1144
+ z55
1145
+ .lazy(() => annotationSchema)
1146
+ .describe('An annotation that applies to a span of output text.'),
1147
+ )
1148
+ .describe('The annotations of the text output.'),
1149
+ logprobs: z55.array(
1150
+ z55.lazy(() => logProbSchema).describe('The log probability of a token.'),
1151
+ ),
1152
+ })
1153
+ .describe('A text output from the model.')
701
1154
 
702
1155
  // src/gen/zod/reasoningTextContentSchema.ts
703
- import { z as z56 } from "zod";
704
- var reasoningTextContentSchema = z56.object({
705
- "type": z56.enum(["reasoning_text"]).default("reasoning_text").describe("The type of the reasoning text. Always `reasoning_text`."),
706
- "text": z56.string().describe("The reasoning text from the model.")
707
- }).describe("Reasoning text from the model.");
1156
+ import { z as z56 } from 'zod'
1157
+ var reasoningTextContentSchema = z56
1158
+ .object({
1159
+ type: z56
1160
+ .enum(['reasoning_text'])
1161
+ .default('reasoning_text')
1162
+ .describe('The type of the reasoning text. Always `reasoning_text`.'),
1163
+ text: z56.string().describe('The reasoning text from the model.'),
1164
+ })
1165
+ .describe('Reasoning text from the model.')
708
1166
 
709
1167
  // src/gen/zod/refusalContentSchema.ts
710
- import { z as z57 } from "zod";
711
- var refusalContentSchema = z57.object({
712
- "type": z57.enum(["refusal"]).default("refusal").describe("The type of the refusal. Always `refusal`."),
713
- "refusal": z57.string().describe("The refusal explanation from the model.")
714
- }).describe("A refusal from the model.");
1168
+ import { z as z57 } from 'zod'
1169
+ var refusalContentSchema = z57
1170
+ .object({
1171
+ type: z57
1172
+ .enum(['refusal'])
1173
+ .default('refusal')
1174
+ .describe('The type of the refusal. Always `refusal`.'),
1175
+ refusal: z57.string().describe('The refusal explanation from the model.'),
1176
+ })
1177
+ .describe('A refusal from the model.')
715
1178
 
716
1179
  // src/gen/zod/summaryTextContentSchema.ts
717
- import { z as z58 } from "zod";
718
- var summaryTextContentSchema = z58.object({
719
- "type": z58.enum(["summary_text"]).default("summary_text").describe("The type of the object. Always `summary_text`."),
720
- "text": z58.string().describe("A summary of the reasoning output from the model so far.")
721
- }).describe("A summary text from the model.");
1180
+ import { z as z58 } from 'zod'
1181
+ var summaryTextContentSchema = z58
1182
+ .object({
1183
+ type: z58
1184
+ .enum(['summary_text'])
1185
+ .default('summary_text')
1186
+ .describe('The type of the object. Always `summary_text`.'),
1187
+ text: z58
1188
+ .string()
1189
+ .describe('A summary of the reasoning output from the model so far.'),
1190
+ })
1191
+ .describe('A summary text from the model.')
722
1192
 
723
1193
  // src/gen/zod/textContentSchema.ts
724
- import { z as z59 } from "zod";
725
- var textContentSchema = z59.object({
726
- "type": z59.enum(["text"]).default("text"),
727
- "text": z59.string()
728
- }).describe("A text content.");
1194
+ import { z as z59 } from 'zod'
1195
+ var textContentSchema = z59
1196
+ .object({
1197
+ type: z59.enum(['text']).default('text'),
1198
+ text: z59.string(),
1199
+ })
1200
+ .describe('A text content.')
729
1201
 
730
1202
  // src/gen/zod/messageSchema.ts
731
- import { z as z60 } from "zod";
732
- var messageSchema = z60.object({
733
- "type": z60.enum(["message"]).default("message").describe("The type of the message. Always set to `message`."),
734
- "id": z60.string().describe("The unique ID of the message."),
735
- "status": z60.lazy(() => messageStatusSchema).and(z60.any()),
736
- "role": z60.lazy(() => messageRoleSchema).and(z60.any()),
737
- "content": z60.array(z60.union([z60.lazy(() => inputTextContentSchema).and(z60.object({
738
- "type": z60.literal("input_text")
739
- })), z60.lazy(() => outputTextContentSchema).and(z60.object({
740
- "type": z60.literal("output_text")
741
- })), z60.lazy(() => textContentSchema).and(z60.object({
742
- "type": z60.literal("text")
743
- })), z60.lazy(() => summaryTextContentSchema).and(z60.object({
744
- "type": z60.literal("summary_text")
745
- })), z60.lazy(() => reasoningTextContentSchema).and(z60.object({
746
- "type": z60.literal("reasoning_text")
747
- })), z60.lazy(() => refusalContentSchema).and(z60.object({
748
- "type": z60.literal("refusal")
749
- })), z60.lazy(() => inputImageContentSchema).and(z60.object({
750
- "type": z60.literal("input_image")
751
- })), z60.lazy(() => inputFileContentSchema).and(z60.object({
752
- "type": z60.literal("input_file")
753
- })), z60.lazy(() => inputVideoContentSchema).and(z60.object({
754
- "type": z60.literal("input_video")
755
- }))]).describe("A content part that makes up an input or output item.")).describe("The content of the message")
756
- }).describe("A message to or from the model.");
1203
+ import { z as z60 } from 'zod'
1204
+ var messageSchema = z60
1205
+ .object({
1206
+ type: z60
1207
+ .enum(['message'])
1208
+ .default('message')
1209
+ .describe('The type of the message. Always set to `message`.'),
1210
+ id: z60.string().describe('The unique ID of the message.'),
1211
+ status: z60.lazy(() => messageStatusSchema).and(z60.any()),
1212
+ role: z60.lazy(() => messageRoleSchema).and(z60.any()),
1213
+ content: z60
1214
+ .array(
1215
+ z60
1216
+ .union([
1217
+ z60
1218
+ .lazy(() => inputTextContentSchema)
1219
+ .and(
1220
+ z60.object({
1221
+ type: z60.literal('input_text'),
1222
+ }),
1223
+ ),
1224
+ z60
1225
+ .lazy(() => outputTextContentSchema)
1226
+ .and(
1227
+ z60.object({
1228
+ type: z60.literal('output_text'),
1229
+ }),
1230
+ ),
1231
+ z60
1232
+ .lazy(() => textContentSchema)
1233
+ .and(
1234
+ z60.object({
1235
+ type: z60.literal('text'),
1236
+ }),
1237
+ ),
1238
+ z60
1239
+ .lazy(() => summaryTextContentSchema)
1240
+ .and(
1241
+ z60.object({
1242
+ type: z60.literal('summary_text'),
1243
+ }),
1244
+ ),
1245
+ z60
1246
+ .lazy(() => reasoningTextContentSchema)
1247
+ .and(
1248
+ z60.object({
1249
+ type: z60.literal('reasoning_text'),
1250
+ }),
1251
+ ),
1252
+ z60
1253
+ .lazy(() => refusalContentSchema)
1254
+ .and(
1255
+ z60.object({
1256
+ type: z60.literal('refusal'),
1257
+ }),
1258
+ ),
1259
+ z60
1260
+ .lazy(() => inputImageContentSchema)
1261
+ .and(
1262
+ z60.object({
1263
+ type: z60.literal('input_image'),
1264
+ }),
1265
+ ),
1266
+ z60
1267
+ .lazy(() => inputFileContentSchema)
1268
+ .and(
1269
+ z60.object({
1270
+ type: z60.literal('input_file'),
1271
+ }),
1272
+ ),
1273
+ z60
1274
+ .lazy(() => inputVideoContentSchema)
1275
+ .and(
1276
+ z60.object({
1277
+ type: z60.literal('input_video'),
1278
+ }),
1279
+ ),
1280
+ ])
1281
+ .describe('A content part that makes up an input or output item.'),
1282
+ )
1283
+ .describe('The content of the message'),
1284
+ })
1285
+ .describe('A message to or from the model.')
757
1286
 
758
1287
  // src/gen/zod/reasoningBodySchema.ts
759
- import { z as z61 } from "zod";
760
- var reasoningBodySchema = z61.object({
761
- "type": z61.enum(["reasoning"]).default("reasoning").describe("The type of the item. Always `reasoning`."),
762
- "id": z61.string().describe("The unique ID of the reasoning item."),
763
- "content": z61.optional(z61.array(z61.union([z61.lazy(() => inputTextContentSchema).and(z61.object({
764
- "type": z61.literal("input_text")
765
- })), z61.lazy(() => outputTextContentSchema).and(z61.object({
766
- "type": z61.literal("output_text")
767
- })), z61.lazy(() => textContentSchema).and(z61.object({
768
- "type": z61.literal("text")
769
- })), z61.lazy(() => summaryTextContentSchema).and(z61.object({
770
- "type": z61.literal("summary_text")
771
- })), z61.lazy(() => reasoningTextContentSchema).and(z61.object({
772
- "type": z61.literal("reasoning_text")
773
- })), z61.lazy(() => refusalContentSchema).and(z61.object({
774
- "type": z61.literal("refusal")
775
- })), z61.lazy(() => inputImageContentSchema).and(z61.object({
776
- "type": z61.literal("input_image")
777
- })), z61.lazy(() => inputFileContentSchema).and(z61.object({
778
- "type": z61.literal("input_file")
779
- }))]).describe("A content part that makes up an input or output item.")).describe("The reasoning content that was generated.")),
780
- "summary": z61.array(z61.union([z61.lazy(() => inputTextContentSchema).and(z61.object({
781
- "type": z61.literal("input_text")
782
- })), z61.lazy(() => outputTextContentSchema).and(z61.object({
783
- "type": z61.literal("output_text")
784
- })), z61.lazy(() => textContentSchema).and(z61.object({
785
- "type": z61.literal("text")
786
- })), z61.lazy(() => summaryTextContentSchema).and(z61.object({
787
- "type": z61.literal("summary_text")
788
- })), z61.lazy(() => reasoningTextContentSchema).and(z61.object({
789
- "type": z61.literal("reasoning_text")
790
- })), z61.lazy(() => refusalContentSchema).and(z61.object({
791
- "type": z61.literal("refusal")
792
- })), z61.lazy(() => inputImageContentSchema).and(z61.object({
793
- "type": z61.literal("input_image")
794
- })), z61.lazy(() => inputFileContentSchema).and(z61.object({
795
- "type": z61.literal("input_file")
796
- }))]).describe("A content part that makes up an input or output item.")).describe("The reasoning summary content that was generated."),
797
- "encrypted_content": z61.optional(z61.string().describe("The encrypted reasoning content that was generated."))
798
- }).describe("A reasoning item that was generated by the model.");
1288
+ import { z as z61 } from 'zod'
1289
+ var reasoningBodySchema = z61
1290
+ .object({
1291
+ type: z61
1292
+ .enum(['reasoning'])
1293
+ .default('reasoning')
1294
+ .describe('The type of the item. Always `reasoning`.'),
1295
+ id: z61.string().describe('The unique ID of the reasoning item.'),
1296
+ content: z61.optional(
1297
+ z61
1298
+ .array(
1299
+ z61
1300
+ .union([
1301
+ z61
1302
+ .lazy(() => inputTextContentSchema)
1303
+ .and(
1304
+ z61.object({
1305
+ type: z61.literal('input_text'),
1306
+ }),
1307
+ ),
1308
+ z61
1309
+ .lazy(() => outputTextContentSchema)
1310
+ .and(
1311
+ z61.object({
1312
+ type: z61.literal('output_text'),
1313
+ }),
1314
+ ),
1315
+ z61
1316
+ .lazy(() => textContentSchema)
1317
+ .and(
1318
+ z61.object({
1319
+ type: z61.literal('text'),
1320
+ }),
1321
+ ),
1322
+ z61
1323
+ .lazy(() => summaryTextContentSchema)
1324
+ .and(
1325
+ z61.object({
1326
+ type: z61.literal('summary_text'),
1327
+ }),
1328
+ ),
1329
+ z61
1330
+ .lazy(() => reasoningTextContentSchema)
1331
+ .and(
1332
+ z61.object({
1333
+ type: z61.literal('reasoning_text'),
1334
+ }),
1335
+ ),
1336
+ z61
1337
+ .lazy(() => refusalContentSchema)
1338
+ .and(
1339
+ z61.object({
1340
+ type: z61.literal('refusal'),
1341
+ }),
1342
+ ),
1343
+ z61
1344
+ .lazy(() => inputImageContentSchema)
1345
+ .and(
1346
+ z61.object({
1347
+ type: z61.literal('input_image'),
1348
+ }),
1349
+ ),
1350
+ z61
1351
+ .lazy(() => inputFileContentSchema)
1352
+ .and(
1353
+ z61.object({
1354
+ type: z61.literal('input_file'),
1355
+ }),
1356
+ ),
1357
+ ])
1358
+ .describe('A content part that makes up an input or output item.'),
1359
+ )
1360
+ .describe('The reasoning content that was generated.'),
1361
+ ),
1362
+ summary: z61
1363
+ .array(
1364
+ z61
1365
+ .union([
1366
+ z61
1367
+ .lazy(() => inputTextContentSchema)
1368
+ .and(
1369
+ z61.object({
1370
+ type: z61.literal('input_text'),
1371
+ }),
1372
+ ),
1373
+ z61
1374
+ .lazy(() => outputTextContentSchema)
1375
+ .and(
1376
+ z61.object({
1377
+ type: z61.literal('output_text'),
1378
+ }),
1379
+ ),
1380
+ z61
1381
+ .lazy(() => textContentSchema)
1382
+ .and(
1383
+ z61.object({
1384
+ type: z61.literal('text'),
1385
+ }),
1386
+ ),
1387
+ z61
1388
+ .lazy(() => summaryTextContentSchema)
1389
+ .and(
1390
+ z61.object({
1391
+ type: z61.literal('summary_text'),
1392
+ }),
1393
+ ),
1394
+ z61
1395
+ .lazy(() => reasoningTextContentSchema)
1396
+ .and(
1397
+ z61.object({
1398
+ type: z61.literal('reasoning_text'),
1399
+ }),
1400
+ ),
1401
+ z61
1402
+ .lazy(() => refusalContentSchema)
1403
+ .and(
1404
+ z61.object({
1405
+ type: z61.literal('refusal'),
1406
+ }),
1407
+ ),
1408
+ z61
1409
+ .lazy(() => inputImageContentSchema)
1410
+ .and(
1411
+ z61.object({
1412
+ type: z61.literal('input_image'),
1413
+ }),
1414
+ ),
1415
+ z61
1416
+ .lazy(() => inputFileContentSchema)
1417
+ .and(
1418
+ z61.object({
1419
+ type: z61.literal('input_file'),
1420
+ }),
1421
+ ),
1422
+ ])
1423
+ .describe('A content part that makes up an input or output item.'),
1424
+ )
1425
+ .describe('The reasoning summary content that was generated.'),
1426
+ encrypted_content: z61.optional(
1427
+ z61
1428
+ .string()
1429
+ .describe('The encrypted reasoning content that was generated.'),
1430
+ ),
1431
+ })
1432
+ .describe('A reasoning item that was generated by the model.')
799
1433
 
800
1434
  // src/gen/zod/itemFieldSchema.ts
801
- import { z as z62 } from "zod";
802
- var itemFieldSchema = z62.union([z62.lazy(() => messageSchema).and(z62.object({
803
- "type": z62.literal("message")
804
- })), z62.lazy(() => functionCallSchema).and(z62.object({
805
- "type": z62.literal("function_call")
806
- })), z62.lazy(() => functionCallOutputSchema).and(z62.object({
807
- "type": z62.literal("function_call_output")
808
- })), z62.lazy(() => reasoningBodySchema).and(z62.object({
809
- "type": z62.literal("reasoning")
810
- }))]).describe("An item representing a message, tool call, tool output, reasoning, or other response element.");
1435
+ import { z as z62 } from 'zod'
1436
+ var itemFieldSchema = z62
1437
+ .union([
1438
+ z62
1439
+ .lazy(() => messageSchema)
1440
+ .and(
1441
+ z62.object({
1442
+ type: z62.literal('message'),
1443
+ }),
1444
+ ),
1445
+ z62
1446
+ .lazy(() => functionCallSchema)
1447
+ .and(
1448
+ z62.object({
1449
+ type: z62.literal('function_call'),
1450
+ }),
1451
+ ),
1452
+ z62
1453
+ .lazy(() => functionCallOutputSchema)
1454
+ .and(
1455
+ z62.object({
1456
+ type: z62.literal('function_call_output'),
1457
+ }),
1458
+ ),
1459
+ z62
1460
+ .lazy(() => reasoningBodySchema)
1461
+ .and(
1462
+ z62.object({
1463
+ type: z62.literal('reasoning'),
1464
+ }),
1465
+ ),
1466
+ ])
1467
+ .describe(
1468
+ 'An item representing a message, tool call, tool output, reasoning, or other response element.',
1469
+ )
811
1470
 
812
1471
  // src/gen/zod/reasoningSchema.ts
813
- import { z as z63 } from "zod";
814
- var reasoningSchema = z63.object({
815
- "effort": z63.union([z63.lazy(() => reasoningEffortEnumSchema), z63.null()]),
816
- "summary": z63.union([z63.lazy(() => reasoningSummaryEnumSchema).and(z63.any()), z63.null()])
817
- }).describe("Reasoning configuration and metadata that were used for the response.");
1472
+ import { z as z63 } from 'zod'
1473
+ var reasoningSchema = z63
1474
+ .object({
1475
+ effort: z63.union([z63.lazy(() => reasoningEffortEnumSchema), z63.null()]),
1476
+ summary: z63.union([
1477
+ z63.lazy(() => reasoningSummaryEnumSchema).and(z63.any()),
1478
+ z63.null(),
1479
+ ]),
1480
+ })
1481
+ .describe(
1482
+ 'Reasoning configuration and metadata that were used for the response.',
1483
+ )
818
1484
 
819
1485
  // src/gen/zod/jsonObjectResponseFormatSchema.ts
820
- import { z as z64 } from "zod";
1486
+ import { z as z64 } from 'zod'
821
1487
  var jsonObjectResponseFormatSchema = z64.object({
822
- "type": z64.enum(["json_object"]).default("json_object")
823
- });
1488
+ type: z64.enum(['json_object']).default('json_object'),
1489
+ })
824
1490
 
825
1491
  // src/gen/zod/jsonSchemaResponseFormatSchema.ts
826
- import { z as z65 } from "zod";
1492
+ import { z as z65 } from 'zod'
827
1493
  var jsonSchemaResponseFormatSchema = z65.object({
828
- "type": z65.enum(["json_schema"]).default("json_schema"),
829
- "name": z65.string(),
830
- "description": z65.union([z65.string(), z65.null()]),
831
- "schema": z65.null(),
832
- "strict": z65.boolean()
833
- });
1494
+ type: z65.enum(['json_schema']).default('json_schema'),
1495
+ name: z65.string(),
1496
+ description: z65.union([z65.string(), z65.null()]),
1497
+ schema: z65.null(),
1498
+ strict: z65.boolean(),
1499
+ })
834
1500
 
835
1501
  // src/gen/zod/textFieldSchema.ts
836
- import { z as z66 } from "zod";
1502
+ import { z as z66 } from 'zod'
837
1503
  var textFieldSchema = z66.object({
838
- "format": z66.union([z66.lazy(() => textResponseFormatSchema), z66.lazy(() => jsonObjectResponseFormatSchema), z66.lazy(() => jsonSchemaResponseFormatSchema)]),
839
- "verbosity": z66.optional(z66.lazy(() => verbosityEnumSchema))
840
- });
1504
+ format: z66.union([
1505
+ z66.lazy(() => textResponseFormatSchema),
1506
+ z66.lazy(() => jsonObjectResponseFormatSchema),
1507
+ z66.lazy(() => jsonSchemaResponseFormatSchema),
1508
+ ]),
1509
+ verbosity: z66.optional(z66.lazy(() => verbosityEnumSchema)),
1510
+ })
841
1511
 
842
1512
  // src/gen/zod/functionToolSchema.ts
843
- import { z as z67 } from "zod";
844
- var functionToolSchema = z67.object({
845
- "type": z67.enum(["function"]).default("function").describe("The type of the function tool. Always `function`."),
846
- "name": z67.string().describe("The name of the function to call."),
847
- "description": z67.union([z67.string(), z67.null()]),
848
- "parameters": z67.union([z67.object({}).catchall(z67.any()), z67.null()]),
849
- "strict": z67.union([z67.boolean(), z67.null()])
850
- }).describe("Defines a function in your own code the model can choose to call. Learn more about [function calling](https://platform.openai.com/docs/guides/function-calling).");
1513
+ import { z as z67 } from 'zod'
1514
+ var functionToolSchema = z67
1515
+ .object({
1516
+ type: z67
1517
+ .enum(['function'])
1518
+ .default('function')
1519
+ .describe('The type of the function tool. Always `function`.'),
1520
+ name: z67.string().describe('The name of the function to call.'),
1521
+ description: z67.union([z67.string(), z67.null()]),
1522
+ parameters: z67.union([z67.object({}).catchall(z67.any()), z67.null()]),
1523
+ strict: z67.union([z67.boolean(), z67.null()]),
1524
+ })
1525
+ .describe(
1526
+ 'Defines a function in your own code the model can choose to call. Learn more about [function calling](https://platform.openai.com/docs/guides/function-calling).',
1527
+ )
851
1528
 
852
1529
  // src/gen/zod/toolSchema.ts
853
- import { z as z68 } from "zod";
854
- var toolSchema = z68.lazy(() => functionToolSchema).and(z68.object({
855
- "type": z68.literal("function")
856
- })).describe("A tool that can be used to generate a response.");
1530
+ import { z as z68 } from 'zod'
1531
+ var toolSchema = z68
1532
+ .lazy(() => functionToolSchema)
1533
+ .and(
1534
+ z68.object({
1535
+ type: z68.literal('function'),
1536
+ }),
1537
+ )
1538
+ .describe('A tool that can be used to generate a response.')
857
1539
 
858
1540
  // src/gen/zod/inputTokensDetailsSchema.ts
859
- import { z as z69 } from "zod";
860
- var inputTokensDetailsSchema = z69.object({
861
- "cached_tokens": z69.number().int().describe("The number of input tokens that were served from cache.")
862
- }).describe("A breakdown of input token usage that was recorded.");
1541
+ import { z as z69 } from 'zod'
1542
+ var inputTokensDetailsSchema = z69
1543
+ .object({
1544
+ cached_tokens: z69
1545
+ .number()
1546
+ .int()
1547
+ .describe('The number of input tokens that were served from cache.'),
1548
+ })
1549
+ .describe('A breakdown of input token usage that was recorded.')
863
1550
 
864
1551
  // src/gen/zod/outputTokensDetailsSchema.ts
865
- import { z as z70 } from "zod";
866
- var outputTokensDetailsSchema = z70.object({
867
- "reasoning_tokens": z70.number().int().describe("The number of output tokens that were attributed to reasoning.")
868
- }).describe("A breakdown of output token usage that was recorded.");
1552
+ import { z as z70 } from 'zod'
1553
+ var outputTokensDetailsSchema = z70
1554
+ .object({
1555
+ reasoning_tokens: z70
1556
+ .number()
1557
+ .int()
1558
+ .describe(
1559
+ 'The number of output tokens that were attributed to reasoning.',
1560
+ ),
1561
+ })
1562
+ .describe('A breakdown of output token usage that was recorded.')
869
1563
 
870
1564
  // src/gen/zod/usageSchema.ts
871
- import { z as z71 } from "zod";
872
- var usageSchema = z71.object({
873
- "input_tokens": z71.number().int().describe("The number of input tokens that were used to generate the response."),
874
- "output_tokens": z71.number().int().describe("The number of output tokens that were generated by the model."),
875
- "total_tokens": z71.number().int().describe("The total number of tokens that were used."),
876
- "input_tokens_details": z71.lazy(() => inputTokensDetailsSchema).and(z71.any()),
877
- "output_tokens_details": z71.lazy(() => outputTokensDetailsSchema).and(z71.any())
878
- }).describe("Token usage statistics that were recorded for the response.");
1565
+ import { z as z71 } from 'zod'
1566
+ var usageSchema = z71
1567
+ .object({
1568
+ input_tokens: z71
1569
+ .number()
1570
+ .int()
1571
+ .describe(
1572
+ 'The number of input tokens that were used to generate the response.',
1573
+ ),
1574
+ output_tokens: z71
1575
+ .number()
1576
+ .int()
1577
+ .describe(
1578
+ 'The number of output tokens that were generated by the model.',
1579
+ ),
1580
+ total_tokens: z71
1581
+ .number()
1582
+ .int()
1583
+ .describe('The total number of tokens that were used.'),
1584
+ input_tokens_details: z71
1585
+ .lazy(() => inputTokensDetailsSchema)
1586
+ .and(z71.any()),
1587
+ output_tokens_details: z71
1588
+ .lazy(() => outputTokensDetailsSchema)
1589
+ .and(z71.any()),
1590
+ })
1591
+ .describe('Token usage statistics that were recorded for the response.')
879
1592
 
880
1593
  // src/gen/zod/responseResourceSchema.ts
881
- import { z as z72 } from "zod";
882
- var responseResourceSchema = z72.object({
883
- "id": z72.string().describe("The unique ID of the response that was created."),
884
- "object": z72.enum(["response"]).default("response").describe("The object type, which was always `response`."),
885
- "created_at": z72.number().int().describe("The Unix timestamp (in seconds) for when the response was created."),
886
- "completed_at": z72.union([z72.number().int(), z72.null()]),
887
- "status": z72.string().describe("The status that was set for the response."),
888
- "incomplete_details": z72.union([z72.lazy(() => incompleteDetailsSchema).and(z72.any()), z72.null()]),
889
- "model": z72.string().describe("The model that generated this response."),
890
- "previous_response_id": z72.union([z72.string(), z72.null()]),
891
- "instructions": z72.union([z72.string(), z72.null()]),
892
- "output": z72.array(z72.lazy(() => itemFieldSchema).describe("An item representing a message, tool call, tool output, reasoning, or other response element.")).describe("The output items that were generated by the model."),
893
- "error": z72.union([z72.lazy(() => errorSchema).and(z72.any()), z72.null()]),
894
- "tools": z72.array(z72.lazy(() => toolSchema).describe("A tool that can be used to generate a response.")).describe("The tools that were available to the model during response generation."),
895
- "tool_choice": z72.union([z72.lazy(() => functionToolChoiceSchema), z72.lazy(() => toolChoiceValueEnumSchema), z72.lazy(() => allowedToolChoiceSchema)]),
896
- "truncation": z72.lazy(() => truncationEnumSchema).and(z72.any()),
897
- "parallel_tool_calls": z72.boolean().describe("Whether the model was allowed to call multiple tools in parallel."),
898
- "text": z72.lazy(() => textFieldSchema).and(z72.any()),
899
- "top_p": z72.number().describe("The nucleus sampling parameter that was used for this response."),
900
- "presence_penalty": z72.number().describe("The presence penalty that was used to penalize new tokens based on whether they appear in the text so far."),
901
- "frequency_penalty": z72.number().describe("The frequency penalty that was used to penalize new tokens based on their frequency in the text so far."),
902
- "top_logprobs": z72.number().int().describe("The number of most likely tokens that were returned at each position, along with their log probabilities."),
903
- "temperature": z72.number().describe("The sampling temperature that was used for this response."),
904
- "reasoning": z72.union([z72.lazy(() => reasoningSchema).and(z72.any()), z72.null()]),
905
- "usage": z72.union([z72.lazy(() => usageSchema).and(z72.any()), z72.null()]),
906
- "max_output_tokens": z72.union([z72.number().int(), z72.null()]),
907
- "max_tool_calls": z72.union([z72.number().int(), z72.null()]),
908
- "store": z72.boolean().describe("Whether this response was stored so it can be retrieved later."),
909
- "background": z72.boolean().describe("Whether this request was run in the background."),
910
- "service_tier": z72.string().describe("The service tier that was used for this response."),
911
- "metadata": z72.any().describe("Developer-defined metadata that was associated with the response."),
912
- "safety_identifier": z72.union([z72.string(), z72.null()]),
913
- "prompt_cache_key": z72.union([z72.string(), z72.null()])
914
- }).describe("The complete response object that was returned by the Responses API.");
1594
+ import { z as z72 } from 'zod'
1595
+ var responseResourceSchema = z72
1596
+ .object({
1597
+ id: z72
1598
+ .string()
1599
+ .describe('The unique ID of the response that was created.'),
1600
+ object: z72
1601
+ .enum(['response'])
1602
+ .default('response')
1603
+ .describe('The object type, which was always `response`.'),
1604
+ created_at: z72
1605
+ .number()
1606
+ .int()
1607
+ .describe(
1608
+ 'The Unix timestamp (in seconds) for when the response was created.',
1609
+ ),
1610
+ completed_at: z72.union([z72.number().int(), z72.null()]),
1611
+ status: z72.string().describe('The status that was set for the response.'),
1612
+ incomplete_details: z72.union([
1613
+ z72.lazy(() => incompleteDetailsSchema).and(z72.any()),
1614
+ z72.null(),
1615
+ ]),
1616
+ model: z72.string().describe('The model that generated this response.'),
1617
+ previous_response_id: z72.union([z72.string(), z72.null()]),
1618
+ instructions: z72.union([z72.string(), z72.null()]),
1619
+ output: z72
1620
+ .array(
1621
+ z72
1622
+ .lazy(() => itemFieldSchema)
1623
+ .describe(
1624
+ 'An item representing a message, tool call, tool output, reasoning, or other response element.',
1625
+ ),
1626
+ )
1627
+ .describe('The output items that were generated by the model.'),
1628
+ error: z72.union([z72.lazy(() => errorSchema).and(z72.any()), z72.null()]),
1629
+ tools: z72
1630
+ .array(
1631
+ z72
1632
+ .lazy(() => toolSchema)
1633
+ .describe('A tool that can be used to generate a response.'),
1634
+ )
1635
+ .describe(
1636
+ 'The tools that were available to the model during response generation.',
1637
+ ),
1638
+ tool_choice: z72.union([
1639
+ z72.lazy(() => functionToolChoiceSchema),
1640
+ z72.lazy(() => toolChoiceValueEnumSchema),
1641
+ z72.lazy(() => allowedToolChoiceSchema),
1642
+ ]),
1643
+ truncation: z72.lazy(() => truncationEnumSchema).and(z72.any()),
1644
+ parallel_tool_calls: z72
1645
+ .boolean()
1646
+ .describe(
1647
+ 'Whether the model was allowed to call multiple tools in parallel.',
1648
+ ),
1649
+ text: z72.lazy(() => textFieldSchema).and(z72.any()),
1650
+ top_p: z72
1651
+ .number()
1652
+ .describe(
1653
+ 'The nucleus sampling parameter that was used for this response.',
1654
+ ),
1655
+ presence_penalty: z72
1656
+ .number()
1657
+ .describe(
1658
+ 'The presence penalty that was used to penalize new tokens based on whether they appear in the text so far.',
1659
+ ),
1660
+ frequency_penalty: z72
1661
+ .number()
1662
+ .describe(
1663
+ 'The frequency penalty that was used to penalize new tokens based on their frequency in the text so far.',
1664
+ ),
1665
+ top_logprobs: z72
1666
+ .number()
1667
+ .int()
1668
+ .describe(
1669
+ 'The number of most likely tokens that were returned at each position, along with their log probabilities.',
1670
+ ),
1671
+ temperature: z72
1672
+ .number()
1673
+ .describe('The sampling temperature that was used for this response.'),
1674
+ reasoning: z72.union([
1675
+ z72.lazy(() => reasoningSchema).and(z72.any()),
1676
+ z72.null(),
1677
+ ]),
1678
+ usage: z72.union([z72.lazy(() => usageSchema).and(z72.any()), z72.null()]),
1679
+ max_output_tokens: z72.union([z72.number().int(), z72.null()]),
1680
+ max_tool_calls: z72.union([z72.number().int(), z72.null()]),
1681
+ store: z72
1682
+ .boolean()
1683
+ .describe(
1684
+ 'Whether this response was stored so it can be retrieved later.',
1685
+ ),
1686
+ background: z72
1687
+ .boolean()
1688
+ .describe('Whether this request was run in the background.'),
1689
+ service_tier: z72
1690
+ .string()
1691
+ .describe('The service tier that was used for this response.'),
1692
+ metadata: z72
1693
+ .any()
1694
+ .describe(
1695
+ 'Developer-defined metadata that was associated with the response.',
1696
+ ),
1697
+ safety_identifier: z72.union([z72.string(), z72.null()]),
1698
+ prompt_cache_key: z72.union([z72.string(), z72.null()]),
1699
+ })
1700
+ .describe(
1701
+ 'The complete response object that was returned by the Responses API.',
1702
+ )
915
1703
 
916
1704
  // src/gen/zod/createresponseSchema.ts
917
- import { z as z73 } from "zod";
918
- var createresponse200Schema = z73.lazy(() => responseResourceSchema).describe("The complete response object that was returned by the Responses API.");
919
- var createresponseMutationRequestSchema = z73.lazy(() => createResponseBodySchema);
920
- var createresponseMutationResponseSchema = z73.lazy(() => createresponse200Schema);
1705
+ import { z as z73 } from 'zod'
1706
+ var createresponse200Schema = z73
1707
+ .lazy(() => responseResourceSchema)
1708
+ .describe(
1709
+ 'The complete response object that was returned by the Responses API.',
1710
+ )
1711
+ var createresponseMutationRequestSchema = z73.lazy(
1712
+ () => createResponseBodySchema,
1713
+ )
1714
+ var createresponseMutationResponseSchema = z73.lazy(
1715
+ () => createresponse200Schema,
1716
+ )
921
1717
 
922
1718
  // src/gen/zod/detailEnumSchema.ts
923
- import { z as z74 } from "zod";
924
- var detailEnumSchema = z74.enum(["low", "high", "auto"]);
1719
+ import { z as z74 } from 'zod'
1720
+ var detailEnumSchema = z74.enum(['low', 'high', 'auto'])
925
1721
 
926
1722
  // src/gen/zod/developerMessageItemParamSchema.ts
927
- import { z as z75 } from "zod";
1723
+ import { z as z75 } from 'zod'
928
1724
  var developerMessageItemParamSchema = z75.object({
929
- "id": z75.optional(z75.union([z75.string(), z75.null()])),
930
- "type": z75.enum(["message"]).default("message").describe("The item type. Always `message`."),
931
- "role": z75.enum(["developer"]).default("developer").describe("The message role. Always `developer`."),
932
- "content": z75.union([z75.array(z75.lazy(() => inputTextContentParamSchema).and(z75.object({
933
- "type": z75.literal("input_text")
934
- }))), z75.string()]).describe("The message content, as an array of content parts."),
935
- "status": z75.optional(z75.union([z75.string(), z75.null()]))
936
- });
1725
+ id: z75.optional(z75.union([z75.string(), z75.null()])),
1726
+ type: z75
1727
+ .enum(['message'])
1728
+ .default('message')
1729
+ .describe('The item type. Always `message`.'),
1730
+ role: z75
1731
+ .enum(['developer'])
1732
+ .default('developer')
1733
+ .describe('The message role. Always `developer`.'),
1734
+ content: z75
1735
+ .union([
1736
+ z75.array(
1737
+ z75
1738
+ .lazy(() => inputTextContentParamSchema)
1739
+ .and(
1740
+ z75.object({
1741
+ type: z75.literal('input_text'),
1742
+ }),
1743
+ ),
1744
+ ),
1745
+ z75.string(),
1746
+ ])
1747
+ .describe('The message content, as an array of content parts.'),
1748
+ status: z75.optional(z75.union([z75.string(), z75.null()])),
1749
+ })
937
1750
 
938
1751
  // src/gen/zod/errorPayloadSchema.ts
939
- import { z as z76 } from "zod";
940
- var errorPayloadSchema = z76.object({
941
- "type": z76.string().describe("The error type that was emitted."),
942
- "code": z76.union([z76.string(), z76.null()]),
943
- "message": z76.string().describe("The human-readable error message that was emitted."),
944
- "param": z76.union([z76.string(), z76.null()]),
945
- "headers": z76.optional(z76.object({}).catchall(z76.string().describe("The header value that was emitted.")).describe("The response headers that were emitted with the error, if any."))
946
- }).describe("An error payload that was emitted for a streaming error event.");
1752
+ import { z as z76 } from 'zod'
1753
+ var errorPayloadSchema = z76
1754
+ .object({
1755
+ type: z76.string().describe('The error type that was emitted.'),
1756
+ code: z76.union([z76.string(), z76.null()]),
1757
+ message: z76
1758
+ .string()
1759
+ .describe('The human-readable error message that was emitted.'),
1760
+ param: z76.union([z76.string(), z76.null()]),
1761
+ headers: z76.optional(
1762
+ z76
1763
+ .object({})
1764
+ .catchall(z76.string().describe('The header value that was emitted.'))
1765
+ .describe(
1766
+ 'The response headers that were emitted with the error, if any.',
1767
+ ),
1768
+ ),
1769
+ })
1770
+ .describe('An error payload that was emitted for a streaming error event.')
947
1771
 
948
1772
  // src/gen/zod/errorStreamingEventSchema.ts
949
- import { z as z77 } from "zod";
950
- var errorStreamingEventSchema = z77.object({
951
- "type": z77.enum(["error"]).default("error").describe("The type of the event, always `error`."),
952
- "sequence_number": z77.number().int().describe("The sequence number of the event that was emitted."),
953
- "error": z77.lazy(() => errorPayloadSchema).and(z77.any())
954
- }).describe("A streaming event that indicated an error was emitted.");
1773
+ import { z as z77 } from 'zod'
1774
+ var errorStreamingEventSchema = z77
1775
+ .object({
1776
+ type: z77
1777
+ .enum(['error'])
1778
+ .default('error')
1779
+ .describe('The type of the event, always `error`.'),
1780
+ sequence_number: z77
1781
+ .number()
1782
+ .int()
1783
+ .describe('The sequence number of the event that was emitted.'),
1784
+ error: z77.lazy(() => errorPayloadSchema).and(z77.any()),
1785
+ })
1786
+ .describe('A streaming event that indicated an error was emitted.')
955
1787
 
956
1788
  // src/gen/zod/functionCallItemStatusSchema.ts
957
- import { z as z78 } from "zod";
958
- var functionCallItemStatusSchema = z78.enum(["in_progress", "completed", "incomplete"]);
1789
+ import { z as z78 } from 'zod'
1790
+ var functionCallItemStatusSchema = z78.enum([
1791
+ 'in_progress',
1792
+ 'completed',
1793
+ 'incomplete',
1794
+ ])
959
1795
 
960
1796
  // src/gen/zod/responseCompletedStreamingEventSchema.ts
961
- import { z as z79 } from "zod";
962
- var responseCompletedStreamingEventSchema = z79.object({
963
- "type": z79.enum(["response.completed"]).default("response.completed").describe("The type of the event, always `response.completed`."),
964
- "sequence_number": z79.number().int().describe("The sequence number of the event that was emitted."),
965
- "response": z79.lazy(() => responseResourceSchema).and(z79.any())
966
- }).describe("A streaming event that indicated the response was completed.");
1797
+ import { z as z79 } from 'zod'
1798
+ var responseCompletedStreamingEventSchema = z79
1799
+ .object({
1800
+ type: z79
1801
+ .enum(['response.completed'])
1802
+ .default('response.completed')
1803
+ .describe('The type of the event, always `response.completed`.'),
1804
+ sequence_number: z79
1805
+ .number()
1806
+ .int()
1807
+ .describe('The sequence number of the event that was emitted.'),
1808
+ response: z79.lazy(() => responseResourceSchema).and(z79.any()),
1809
+ })
1810
+ .describe('A streaming event that indicated the response was completed.')
967
1811
 
968
1812
  // src/gen/zod/responseContentPartAddedStreamingEventSchema.ts
969
- import { z as z80 } from "zod";
970
- var responseContentPartAddedStreamingEventSchema = z80.object({
971
- "type": z80.enum(["response.content_part.added"]).default("response.content_part.added").describe("The type of the event, always `response.content_part.added`."),
972
- "sequence_number": z80.number().int().describe("The sequence number of the event that was emitted."),
973
- "item_id": z80.string().describe("The ID of the item that was updated."),
974
- "output_index": z80.number().int().describe("The index of the output item that was updated."),
975
- "content_index": z80.number().int().describe("The index of the content part that was added."),
976
- "part": z80.union([z80.lazy(() => inputTextContentSchema).and(z80.object({
977
- "type": z80.literal("input_text")
978
- })), z80.lazy(() => outputTextContentSchema).and(z80.object({
979
- "type": z80.literal("output_text")
980
- })), z80.lazy(() => textContentSchema).and(z80.object({
981
- "type": z80.literal("text")
982
- })), z80.lazy(() => summaryTextContentSchema).and(z80.object({
983
- "type": z80.literal("summary_text")
984
- })), z80.lazy(() => reasoningTextContentSchema).and(z80.object({
985
- "type": z80.literal("reasoning_text")
986
- })), z80.lazy(() => refusalContentSchema).and(z80.object({
987
- "type": z80.literal("refusal")
988
- })), z80.lazy(() => inputImageContentSchema).and(z80.object({
989
- "type": z80.literal("input_image")
990
- })), z80.lazy(() => inputFileContentSchema).and(z80.object({
991
- "type": z80.literal("input_file")
992
- }))]).describe("A content part that makes up an input or output item.")
993
- }).describe("A streaming event that indicated a content part was added.");
1813
+ import { z as z80 } from 'zod'
1814
+ var responseContentPartAddedStreamingEventSchema = z80
1815
+ .object({
1816
+ type: z80
1817
+ .enum(['response.content_part.added'])
1818
+ .default('response.content_part.added')
1819
+ .describe('The type of the event, always `response.content_part.added`.'),
1820
+ sequence_number: z80
1821
+ .number()
1822
+ .int()
1823
+ .describe('The sequence number of the event that was emitted.'),
1824
+ item_id: z80.string().describe('The ID of the item that was updated.'),
1825
+ output_index: z80
1826
+ .number()
1827
+ .int()
1828
+ .describe('The index of the output item that was updated.'),
1829
+ content_index: z80
1830
+ .number()
1831
+ .int()
1832
+ .describe('The index of the content part that was added.'),
1833
+ part: z80
1834
+ .union([
1835
+ z80
1836
+ .lazy(() => inputTextContentSchema)
1837
+ .and(
1838
+ z80.object({
1839
+ type: z80.literal('input_text'),
1840
+ }),
1841
+ ),
1842
+ z80
1843
+ .lazy(() => outputTextContentSchema)
1844
+ .and(
1845
+ z80.object({
1846
+ type: z80.literal('output_text'),
1847
+ }),
1848
+ ),
1849
+ z80
1850
+ .lazy(() => textContentSchema)
1851
+ .and(
1852
+ z80.object({
1853
+ type: z80.literal('text'),
1854
+ }),
1855
+ ),
1856
+ z80
1857
+ .lazy(() => summaryTextContentSchema)
1858
+ .and(
1859
+ z80.object({
1860
+ type: z80.literal('summary_text'),
1861
+ }),
1862
+ ),
1863
+ z80
1864
+ .lazy(() => reasoningTextContentSchema)
1865
+ .and(
1866
+ z80.object({
1867
+ type: z80.literal('reasoning_text'),
1868
+ }),
1869
+ ),
1870
+ z80
1871
+ .lazy(() => refusalContentSchema)
1872
+ .and(
1873
+ z80.object({
1874
+ type: z80.literal('refusal'),
1875
+ }),
1876
+ ),
1877
+ z80
1878
+ .lazy(() => inputImageContentSchema)
1879
+ .and(
1880
+ z80.object({
1881
+ type: z80.literal('input_image'),
1882
+ }),
1883
+ ),
1884
+ z80
1885
+ .lazy(() => inputFileContentSchema)
1886
+ .and(
1887
+ z80.object({
1888
+ type: z80.literal('input_file'),
1889
+ }),
1890
+ ),
1891
+ ])
1892
+ .describe('A content part that makes up an input or output item.'),
1893
+ })
1894
+ .describe('A streaming event that indicated a content part was added.')
994
1895
 
995
1896
  // src/gen/zod/responseContentPartDoneStreamingEventSchema.ts
996
- import { z as z81 } from "zod";
997
- var responseContentPartDoneStreamingEventSchema = z81.object({
998
- "type": z81.enum(["response.content_part.done"]).default("response.content_part.done").describe("The type of the event, always `response.content_part.done`."),
999
- "sequence_number": z81.number().int().describe("The sequence number of the event that was emitted."),
1000
- "item_id": z81.string().describe("The ID of the item that was updated."),
1001
- "output_index": z81.number().int().describe("The index of the output item that was updated."),
1002
- "content_index": z81.number().int().describe("The index of the content part that was completed."),
1003
- "part": z81.union([z81.lazy(() => inputTextContentSchema).and(z81.object({
1004
- "type": z81.literal("input_text")
1005
- })), z81.lazy(() => outputTextContentSchema).and(z81.object({
1006
- "type": z81.literal("output_text")
1007
- })), z81.lazy(() => textContentSchema).and(z81.object({
1008
- "type": z81.literal("text")
1009
- })), z81.lazy(() => summaryTextContentSchema).and(z81.object({
1010
- "type": z81.literal("summary_text")
1011
- })), z81.lazy(() => reasoningTextContentSchema).and(z81.object({
1012
- "type": z81.literal("reasoning_text")
1013
- })), z81.lazy(() => refusalContentSchema).and(z81.object({
1014
- "type": z81.literal("refusal")
1015
- })), z81.lazy(() => inputImageContentSchema).and(z81.object({
1016
- "type": z81.literal("input_image")
1017
- })), z81.lazy(() => inputFileContentSchema).and(z81.object({
1018
- "type": z81.literal("input_file")
1019
- }))]).describe("A content part that makes up an input or output item.")
1020
- }).describe("A streaming event that indicated a content part was completed.");
1897
+ import { z as z81 } from 'zod'
1898
+ var responseContentPartDoneStreamingEventSchema = z81
1899
+ .object({
1900
+ type: z81
1901
+ .enum(['response.content_part.done'])
1902
+ .default('response.content_part.done')
1903
+ .describe('The type of the event, always `response.content_part.done`.'),
1904
+ sequence_number: z81
1905
+ .number()
1906
+ .int()
1907
+ .describe('The sequence number of the event that was emitted.'),
1908
+ item_id: z81.string().describe('The ID of the item that was updated.'),
1909
+ output_index: z81
1910
+ .number()
1911
+ .int()
1912
+ .describe('The index of the output item that was updated.'),
1913
+ content_index: z81
1914
+ .number()
1915
+ .int()
1916
+ .describe('The index of the content part that was completed.'),
1917
+ part: z81
1918
+ .union([
1919
+ z81
1920
+ .lazy(() => inputTextContentSchema)
1921
+ .and(
1922
+ z81.object({
1923
+ type: z81.literal('input_text'),
1924
+ }),
1925
+ ),
1926
+ z81
1927
+ .lazy(() => outputTextContentSchema)
1928
+ .and(
1929
+ z81.object({
1930
+ type: z81.literal('output_text'),
1931
+ }),
1932
+ ),
1933
+ z81
1934
+ .lazy(() => textContentSchema)
1935
+ .and(
1936
+ z81.object({
1937
+ type: z81.literal('text'),
1938
+ }),
1939
+ ),
1940
+ z81
1941
+ .lazy(() => summaryTextContentSchema)
1942
+ .and(
1943
+ z81.object({
1944
+ type: z81.literal('summary_text'),
1945
+ }),
1946
+ ),
1947
+ z81
1948
+ .lazy(() => reasoningTextContentSchema)
1949
+ .and(
1950
+ z81.object({
1951
+ type: z81.literal('reasoning_text'),
1952
+ }),
1953
+ ),
1954
+ z81
1955
+ .lazy(() => refusalContentSchema)
1956
+ .and(
1957
+ z81.object({
1958
+ type: z81.literal('refusal'),
1959
+ }),
1960
+ ),
1961
+ z81
1962
+ .lazy(() => inputImageContentSchema)
1963
+ .and(
1964
+ z81.object({
1965
+ type: z81.literal('input_image'),
1966
+ }),
1967
+ ),
1968
+ z81
1969
+ .lazy(() => inputFileContentSchema)
1970
+ .and(
1971
+ z81.object({
1972
+ type: z81.literal('input_file'),
1973
+ }),
1974
+ ),
1975
+ ])
1976
+ .describe('A content part that makes up an input or output item.'),
1977
+ })
1978
+ .describe('A streaming event that indicated a content part was completed.')
1021
1979
 
1022
1980
  // src/gen/zod/responseCreatedStreamingEventSchema.ts
1023
- import { z as z82 } from "zod";
1024
- var responseCreatedStreamingEventSchema = z82.object({
1025
- "type": z82.enum(["response.created"]).default("response.created").describe("The type of the event, always `response.created`."),
1026
- "sequence_number": z82.number().int().describe("The sequence number of the event that was emitted."),
1027
- "response": z82.lazy(() => responseResourceSchema).and(z82.any())
1028
- }).describe("A streaming event that indicated the response was created.");
1981
+ import { z as z82 } from 'zod'
1982
+ var responseCreatedStreamingEventSchema = z82
1983
+ .object({
1984
+ type: z82
1985
+ .enum(['response.created'])
1986
+ .default('response.created')
1987
+ .describe('The type of the event, always `response.created`.'),
1988
+ sequence_number: z82
1989
+ .number()
1990
+ .int()
1991
+ .describe('The sequence number of the event that was emitted.'),
1992
+ response: z82.lazy(() => responseResourceSchema).and(z82.any()),
1993
+ })
1994
+ .describe('A streaming event that indicated the response was created.')
1029
1995
 
1030
1996
  // src/gen/zod/responseFailedStreamingEventSchema.ts
1031
- import { z as z83 } from "zod";
1032
- var responseFailedStreamingEventSchema = z83.object({
1033
- "type": z83.enum(["response.failed"]).default("response.failed").describe("The type of the event, always `response.failed`."),
1034
- "sequence_number": z83.number().int().describe("The sequence number of the event that was emitted."),
1035
- "response": z83.lazy(() => responseResourceSchema).and(z83.any())
1036
- }).describe("A streaming event that indicated the response had failed.");
1997
+ import { z as z83 } from 'zod'
1998
+ var responseFailedStreamingEventSchema = z83
1999
+ .object({
2000
+ type: z83
2001
+ .enum(['response.failed'])
2002
+ .default('response.failed')
2003
+ .describe('The type of the event, always `response.failed`.'),
2004
+ sequence_number: z83
2005
+ .number()
2006
+ .int()
2007
+ .describe('The sequence number of the event that was emitted.'),
2008
+ response: z83.lazy(() => responseResourceSchema).and(z83.any()),
2009
+ })
2010
+ .describe('A streaming event that indicated the response had failed.')
1037
2011
 
1038
2012
  // src/gen/zod/responseFunctionCallArgumentsDeltaStreamingEventSchema.ts
1039
- import { z as z84 } from "zod";
1040
- var responseFunctionCallArgumentsDeltaStreamingEventSchema = z84.object({
1041
- "type": z84.enum(["response.function_call_arguments.delta"]).default("response.function_call_arguments.delta").describe("The type of the event, always `response.function_call_arguments.delta`."),
1042
- "sequence_number": z84.number().int().describe("The sequence number of the event that was emitted."),
1043
- "item_id": z84.string().describe("The ID of the tool call item that was updated."),
1044
- "output_index": z84.number().int().describe("The index of the output item that was updated."),
1045
- "delta": z84.string().describe("The arguments delta that was appended."),
1046
- "obfuscation": z84.optional(z84.string().describe("An obfuscation string that was added to pad the event payload."))
1047
- }).describe("A streaming event that indicated function call arguments were incrementally added.");
2013
+ import { z as z84 } from 'zod'
2014
+ var responseFunctionCallArgumentsDeltaStreamingEventSchema = z84
2015
+ .object({
2016
+ type: z84
2017
+ .enum(['response.function_call_arguments.delta'])
2018
+ .default('response.function_call_arguments.delta')
2019
+ .describe(
2020
+ 'The type of the event, always `response.function_call_arguments.delta`.',
2021
+ ),
2022
+ sequence_number: z84
2023
+ .number()
2024
+ .int()
2025
+ .describe('The sequence number of the event that was emitted.'),
2026
+ item_id: z84
2027
+ .string()
2028
+ .describe('The ID of the tool call item that was updated.'),
2029
+ output_index: z84
2030
+ .number()
2031
+ .int()
2032
+ .describe('The index of the output item that was updated.'),
2033
+ delta: z84.string().describe('The arguments delta that was appended.'),
2034
+ obfuscation: z84.optional(
2035
+ z84
2036
+ .string()
2037
+ .describe(
2038
+ 'An obfuscation string that was added to pad the event payload.',
2039
+ ),
2040
+ ),
2041
+ })
2042
+ .describe(
2043
+ 'A streaming event that indicated function call arguments were incrementally added.',
2044
+ )
1048
2045
 
1049
2046
  // src/gen/zod/responseFunctionCallArgumentsDoneStreamingEventSchema.ts
1050
- import { z as z85 } from "zod";
1051
- var responseFunctionCallArgumentsDoneStreamingEventSchema = z85.object({
1052
- "type": z85.enum(["response.function_call_arguments.done"]).default("response.function_call_arguments.done").describe("The type of the event, always `response.function_call_arguments.done`."),
1053
- "sequence_number": z85.number().int().describe("The sequence number of the event that was emitted."),
1054
- "item_id": z85.string().describe("The ID of the tool call item that was updated."),
1055
- "output_index": z85.number().int().describe("The index of the output item that was updated."),
1056
- "arguments": z85.string().describe("The final arguments string that was emitted.")
1057
- }).describe("A streaming event that indicated function call arguments were completed.");
2047
+ import { z as z85 } from 'zod'
2048
+ var responseFunctionCallArgumentsDoneStreamingEventSchema = z85
2049
+ .object({
2050
+ type: z85
2051
+ .enum(['response.function_call_arguments.done'])
2052
+ .default('response.function_call_arguments.done')
2053
+ .describe(
2054
+ 'The type of the event, always `response.function_call_arguments.done`.',
2055
+ ),
2056
+ sequence_number: z85
2057
+ .number()
2058
+ .int()
2059
+ .describe('The sequence number of the event that was emitted.'),
2060
+ item_id: z85
2061
+ .string()
2062
+ .describe('The ID of the tool call item that was updated.'),
2063
+ output_index: z85
2064
+ .number()
2065
+ .int()
2066
+ .describe('The index of the output item that was updated.'),
2067
+ arguments: z85
2068
+ .string()
2069
+ .describe('The final arguments string that was emitted.'),
2070
+ })
2071
+ .describe(
2072
+ 'A streaming event that indicated function call arguments were completed.',
2073
+ )
1058
2074
 
1059
2075
  // src/gen/zod/responseIncompleteStreamingEventSchema.ts
1060
- import { z as z86 } from "zod";
1061
- var responseIncompleteStreamingEventSchema = z86.object({
1062
- "type": z86.enum(["response.incomplete"]).default("response.incomplete").describe("The type of the event, always `response.incomplete`."),
1063
- "sequence_number": z86.number().int().describe("The sequence number of the event that was emitted."),
1064
- "response": z86.lazy(() => responseResourceSchema).and(z86.any())
1065
- }).describe("A streaming event that indicated the response was incomplete.");
2076
+ import { z as z86 } from 'zod'
2077
+ var responseIncompleteStreamingEventSchema = z86
2078
+ .object({
2079
+ type: z86
2080
+ .enum(['response.incomplete'])
2081
+ .default('response.incomplete')
2082
+ .describe('The type of the event, always `response.incomplete`.'),
2083
+ sequence_number: z86
2084
+ .number()
2085
+ .int()
2086
+ .describe('The sequence number of the event that was emitted.'),
2087
+ response: z86.lazy(() => responseResourceSchema).and(z86.any()),
2088
+ })
2089
+ .describe('A streaming event that indicated the response was incomplete.')
1066
2090
 
1067
2091
  // src/gen/zod/responseInProgressStreamingEventSchema.ts
1068
- import { z as z87 } from "zod";
1069
- var responseInProgressStreamingEventSchema = z87.object({
1070
- "type": z87.enum(["response.in_progress"]).default("response.in_progress").describe("The type of the event, always `response.in_progress`."),
1071
- "sequence_number": z87.number().int().describe("The sequence number of the event that was emitted."),
1072
- "response": z87.lazy(() => responseResourceSchema).and(z87.any())
1073
- }).describe("A streaming event that indicated the response was in progress.");
2092
+ import { z as z87 } from 'zod'
2093
+ var responseInProgressStreamingEventSchema = z87
2094
+ .object({
2095
+ type: z87
2096
+ .enum(['response.in_progress'])
2097
+ .default('response.in_progress')
2098
+ .describe('The type of the event, always `response.in_progress`.'),
2099
+ sequence_number: z87
2100
+ .number()
2101
+ .int()
2102
+ .describe('The sequence number of the event that was emitted.'),
2103
+ response: z87.lazy(() => responseResourceSchema).and(z87.any()),
2104
+ })
2105
+ .describe('A streaming event that indicated the response was in progress.')
1074
2106
 
1075
2107
  // src/gen/zod/responseOutputItemAddedStreamingEventSchema.ts
1076
- import { z as z88 } from "zod";
1077
- var responseOutputItemAddedStreamingEventSchema = z88.object({
1078
- "type": z88.enum(["response.output_item.added"]).default("response.output_item.added").describe("The type of the event, always `response.output_item.added`."),
1079
- "sequence_number": z88.number().int().describe("The sequence number of the event that was emitted."),
1080
- "output_index": z88.number().int().describe("The index of the output item that was added."),
1081
- "item": z88.union([z88.lazy(() => itemFieldSchema).and(z88.any()), z88.null()])
1082
- }).describe("A streaming event that indicated an output item was added to the response.");
2108
+ import { z as z88 } from 'zod'
2109
+ var responseOutputItemAddedStreamingEventSchema = z88
2110
+ .object({
2111
+ type: z88
2112
+ .enum(['response.output_item.added'])
2113
+ .default('response.output_item.added')
2114
+ .describe('The type of the event, always `response.output_item.added`.'),
2115
+ sequence_number: z88
2116
+ .number()
2117
+ .int()
2118
+ .describe('The sequence number of the event that was emitted.'),
2119
+ output_index: z88
2120
+ .number()
2121
+ .int()
2122
+ .describe('The index of the output item that was added.'),
2123
+ item: z88.union([
2124
+ z88.lazy(() => itemFieldSchema).and(z88.any()),
2125
+ z88.null(),
2126
+ ]),
2127
+ })
2128
+ .describe(
2129
+ 'A streaming event that indicated an output item was added to the response.',
2130
+ )
1083
2131
 
1084
2132
  // src/gen/zod/responseOutputItemDoneStreamingEventSchema.ts
1085
- import { z as z89 } from "zod";
1086
- var responseOutputItemDoneStreamingEventSchema = z89.object({
1087
- "type": z89.enum(["response.output_item.done"]).default("response.output_item.done").describe("The type of the event, always `response.output_item.done`."),
1088
- "sequence_number": z89.number().int().describe("The sequence number of the event that was emitted."),
1089
- "output_index": z89.number().int().describe("The index of the output item that was completed."),
1090
- "item": z89.union([z89.lazy(() => itemFieldSchema).and(z89.any()), z89.null()])
1091
- }).describe("A streaming event that indicated an output item was completed.");
2133
+ import { z as z89 } from 'zod'
2134
+ var responseOutputItemDoneStreamingEventSchema = z89
2135
+ .object({
2136
+ type: z89
2137
+ .enum(['response.output_item.done'])
2138
+ .default('response.output_item.done')
2139
+ .describe('The type of the event, always `response.output_item.done`.'),
2140
+ sequence_number: z89
2141
+ .number()
2142
+ .int()
2143
+ .describe('The sequence number of the event that was emitted.'),
2144
+ output_index: z89
2145
+ .number()
2146
+ .int()
2147
+ .describe('The index of the output item that was completed.'),
2148
+ item: z89.union([
2149
+ z89.lazy(() => itemFieldSchema).and(z89.any()),
2150
+ z89.null(),
2151
+ ]),
2152
+ })
2153
+ .describe('A streaming event that indicated an output item was completed.')
1092
2154
 
1093
2155
  // src/gen/zod/responseOutputTextAnnotationAddedStreamingEventSchema.ts
1094
- import { z as z90 } from "zod";
1095
- var responseOutputTextAnnotationAddedStreamingEventSchema = z90.object({
1096
- "type": z90.enum(["response.output_text.annotation.added"]).default("response.output_text.annotation.added").describe("The type of the event, always `response.output_text.annotation.added`."),
1097
- "sequence_number": z90.number().int().describe("The sequence number of the event that was emitted."),
1098
- "item_id": z90.string().describe("The ID of the item that was updated."),
1099
- "output_index": z90.number().int().describe("The index of the output item that was updated."),
1100
- "content_index": z90.number().int().describe("The index of the output text content that was updated."),
1101
- "annotation_index": z90.number().int().describe("The index of the annotation that was added."),
1102
- "annotation": z90.union([z90.lazy(() => annotationSchema).and(z90.any()), z90.null()])
1103
- }).describe("A streaming event that indicated an output text annotation was added.");
2156
+ import { z as z90 } from 'zod'
2157
+ var responseOutputTextAnnotationAddedStreamingEventSchema = z90
2158
+ .object({
2159
+ type: z90
2160
+ .enum(['response.output_text.annotation.added'])
2161
+ .default('response.output_text.annotation.added')
2162
+ .describe(
2163
+ 'The type of the event, always `response.output_text.annotation.added`.',
2164
+ ),
2165
+ sequence_number: z90
2166
+ .number()
2167
+ .int()
2168
+ .describe('The sequence number of the event that was emitted.'),
2169
+ item_id: z90.string().describe('The ID of the item that was updated.'),
2170
+ output_index: z90
2171
+ .number()
2172
+ .int()
2173
+ .describe('The index of the output item that was updated.'),
2174
+ content_index: z90
2175
+ .number()
2176
+ .int()
2177
+ .describe('The index of the output text content that was updated.'),
2178
+ annotation_index: z90
2179
+ .number()
2180
+ .int()
2181
+ .describe('The index of the annotation that was added.'),
2182
+ annotation: z90.union([
2183
+ z90.lazy(() => annotationSchema).and(z90.any()),
2184
+ z90.null(),
2185
+ ]),
2186
+ })
2187
+ .describe(
2188
+ 'A streaming event that indicated an output text annotation was added.',
2189
+ )
1104
2190
 
1105
2191
  // src/gen/zod/responseOutputTextDeltaStreamingEventSchema.ts
1106
- import { z as z91 } from "zod";
1107
- var responseOutputTextDeltaStreamingEventSchema = z91.object({
1108
- "type": z91.enum(["response.output_text.delta"]).default("response.output_text.delta").describe("The type of the event, always `response.output_text.delta`."),
1109
- "sequence_number": z91.number().int().describe("The sequence number of the event that was emitted."),
1110
- "item_id": z91.string().describe("The ID of the item that was updated."),
1111
- "output_index": z91.number().int().describe("The index of the output item that was updated."),
1112
- "content_index": z91.number().int().describe("The index of the content part that was updated."),
1113
- "delta": z91.string().describe("The text delta that was appended."),
1114
- "logprobs": z91.array(z91.lazy(() => logProbSchema).describe("The log probability of a token.")).describe("The token log probabilities that were emitted with the delta, if any."),
1115
- "obfuscation": z91.optional(z91.string().describe("An obfuscation string that was added to pad the event payload."))
1116
- }).describe("A streaming event that indicated output text was incrementally added.");
2192
+ import { z as z91 } from 'zod'
2193
+ var responseOutputTextDeltaStreamingEventSchema = z91
2194
+ .object({
2195
+ type: z91
2196
+ .enum(['response.output_text.delta'])
2197
+ .default('response.output_text.delta')
2198
+ .describe('The type of the event, always `response.output_text.delta`.'),
2199
+ sequence_number: z91
2200
+ .number()
2201
+ .int()
2202
+ .describe('The sequence number of the event that was emitted.'),
2203
+ item_id: z91.string().describe('The ID of the item that was updated.'),
2204
+ output_index: z91
2205
+ .number()
2206
+ .int()
2207
+ .describe('The index of the output item that was updated.'),
2208
+ content_index: z91
2209
+ .number()
2210
+ .int()
2211
+ .describe('The index of the content part that was updated.'),
2212
+ delta: z91.string().describe('The text delta that was appended.'),
2213
+ logprobs: z91
2214
+ .array(
2215
+ z91
2216
+ .lazy(() => logProbSchema)
2217
+ .describe('The log probability of a token.'),
2218
+ )
2219
+ .describe(
2220
+ 'The token log probabilities that were emitted with the delta, if any.',
2221
+ ),
2222
+ obfuscation: z91.optional(
2223
+ z91
2224
+ .string()
2225
+ .describe(
2226
+ 'An obfuscation string that was added to pad the event payload.',
2227
+ ),
2228
+ ),
2229
+ })
2230
+ .describe(
2231
+ 'A streaming event that indicated output text was incrementally added.',
2232
+ )
1117
2233
 
1118
2234
  // src/gen/zod/responseOutputTextDoneStreamingEventSchema.ts
1119
- import { z as z92 } from "zod";
1120
- var responseOutputTextDoneStreamingEventSchema = z92.object({
1121
- "type": z92.enum(["response.output_text.done"]).default("response.output_text.done").describe("The type of the event, always `response.output_text.done`."),
1122
- "sequence_number": z92.number().int().describe("The sequence number of the event that was emitted."),
1123
- "item_id": z92.string().describe("The ID of the item that was updated."),
1124
- "output_index": z92.number().int().describe("The index of the output item that was updated."),
1125
- "content_index": z92.number().int().describe("The index of the content part that was completed."),
1126
- "text": z92.string().describe("The final text that was emitted."),
1127
- "logprobs": z92.array(z92.lazy(() => logProbSchema).describe("The log probability of a token.")).describe("The token log probabilities that were emitted with the final text, if any.")
1128
- }).describe("A streaming event that indicated output text was completed.");
2235
+ import { z as z92 } from 'zod'
2236
+ var responseOutputTextDoneStreamingEventSchema = z92
2237
+ .object({
2238
+ type: z92
2239
+ .enum(['response.output_text.done'])
2240
+ .default('response.output_text.done')
2241
+ .describe('The type of the event, always `response.output_text.done`.'),
2242
+ sequence_number: z92
2243
+ .number()
2244
+ .int()
2245
+ .describe('The sequence number of the event that was emitted.'),
2246
+ item_id: z92.string().describe('The ID of the item that was updated.'),
2247
+ output_index: z92
2248
+ .number()
2249
+ .int()
2250
+ .describe('The index of the output item that was updated.'),
2251
+ content_index: z92
2252
+ .number()
2253
+ .int()
2254
+ .describe('The index of the content part that was completed.'),
2255
+ text: z92.string().describe('The final text that was emitted.'),
2256
+ logprobs: z92
2257
+ .array(
2258
+ z92
2259
+ .lazy(() => logProbSchema)
2260
+ .describe('The log probability of a token.'),
2261
+ )
2262
+ .describe(
2263
+ 'The token log probabilities that were emitted with the final text, if any.',
2264
+ ),
2265
+ })
2266
+ .describe('A streaming event that indicated output text was completed.')
1129
2267
 
1130
2268
  // src/gen/zod/responseQueuedStreamingEventSchema.ts
1131
- import { z as z93 } from "zod";
1132
- var responseQueuedStreamingEventSchema = z93.object({
1133
- "type": z93.enum(["response.queued"]).default("response.queued").describe("The type of the event, always `response.queued`."),
1134
- "sequence_number": z93.number().int().describe("The sequence number of the event that was emitted."),
1135
- "response": z93.lazy(() => responseResourceSchema).and(z93.any())
1136
- }).describe("A streaming event that indicated the response was queued.");
2269
+ import { z as z93 } from 'zod'
2270
+ var responseQueuedStreamingEventSchema = z93
2271
+ .object({
2272
+ type: z93
2273
+ .enum(['response.queued'])
2274
+ .default('response.queued')
2275
+ .describe('The type of the event, always `response.queued`.'),
2276
+ sequence_number: z93
2277
+ .number()
2278
+ .int()
2279
+ .describe('The sequence number of the event that was emitted.'),
2280
+ response: z93.lazy(() => responseResourceSchema).and(z93.any()),
2281
+ })
2282
+ .describe('A streaming event that indicated the response was queued.')
1137
2283
 
1138
2284
  // src/gen/zod/responseReasoningDeltaStreamingEventSchema.ts
1139
- import { z as z94 } from "zod";
1140
- var responseReasoningDeltaStreamingEventSchema = z94.object({
1141
- "type": z94.enum(["response.reasoning.delta"]).default("response.reasoning.delta").describe("The type of the event, always `response.reasoning.delta`."),
1142
- "sequence_number": z94.number().int().describe("The sequence number of the event that was emitted."),
1143
- "item_id": z94.string().describe("The ID of the item that was updated."),
1144
- "output_index": z94.number().int().describe("The index of the output item that was updated."),
1145
- "content_index": z94.number().int().describe("The index of the reasoning content that was updated."),
1146
- "delta": z94.string().describe("The reasoning text delta that was appended."),
1147
- "obfuscation": z94.optional(z94.string().describe("An obfuscation string that was added to pad the event payload."))
1148
- }).describe("A streaming event that indicated reasoning text was incrementally added.");
2285
+ import { z as z94 } from 'zod'
2286
+ var responseReasoningDeltaStreamingEventSchema = z94
2287
+ .object({
2288
+ type: z94
2289
+ .enum(['response.reasoning.delta'])
2290
+ .default('response.reasoning.delta')
2291
+ .describe('The type of the event, always `response.reasoning.delta`.'),
2292
+ sequence_number: z94
2293
+ .number()
2294
+ .int()
2295
+ .describe('The sequence number of the event that was emitted.'),
2296
+ item_id: z94.string().describe('The ID of the item that was updated.'),
2297
+ output_index: z94
2298
+ .number()
2299
+ .int()
2300
+ .describe('The index of the output item that was updated.'),
2301
+ content_index: z94
2302
+ .number()
2303
+ .int()
2304
+ .describe('The index of the reasoning content that was updated.'),
2305
+ delta: z94.string().describe('The reasoning text delta that was appended.'),
2306
+ obfuscation: z94.optional(
2307
+ z94
2308
+ .string()
2309
+ .describe(
2310
+ 'An obfuscation string that was added to pad the event payload.',
2311
+ ),
2312
+ ),
2313
+ })
2314
+ .describe(
2315
+ 'A streaming event that indicated reasoning text was incrementally added.',
2316
+ )
1149
2317
 
1150
2318
  // src/gen/zod/responseReasoningDoneStreamingEventSchema.ts
1151
- import { z as z95 } from "zod";
1152
- var responseReasoningDoneStreamingEventSchema = z95.object({
1153
- "type": z95.enum(["response.reasoning.done"]).default("response.reasoning.done").describe("The type of the event, always `response.reasoning.done`."),
1154
- "sequence_number": z95.number().int().describe("The sequence number of the event that was emitted."),
1155
- "item_id": z95.string().describe("The ID of the item that was updated."),
1156
- "output_index": z95.number().int().describe("The index of the output item that was updated."),
1157
- "content_index": z95.number().int().describe("The index of the reasoning content that was completed."),
1158
- "text": z95.string().describe("The final reasoning text that was emitted.")
1159
- }).describe("A streaming event that indicated reasoning text was completed.");
2319
+ import { z as z95 } from 'zod'
2320
+ var responseReasoningDoneStreamingEventSchema = z95
2321
+ .object({
2322
+ type: z95
2323
+ .enum(['response.reasoning.done'])
2324
+ .default('response.reasoning.done')
2325
+ .describe('The type of the event, always `response.reasoning.done`.'),
2326
+ sequence_number: z95
2327
+ .number()
2328
+ .int()
2329
+ .describe('The sequence number of the event that was emitted.'),
2330
+ item_id: z95.string().describe('The ID of the item that was updated.'),
2331
+ output_index: z95
2332
+ .number()
2333
+ .int()
2334
+ .describe('The index of the output item that was updated.'),
2335
+ content_index: z95
2336
+ .number()
2337
+ .int()
2338
+ .describe('The index of the reasoning content that was completed.'),
2339
+ text: z95.string().describe('The final reasoning text that was emitted.'),
2340
+ })
2341
+ .describe('A streaming event that indicated reasoning text was completed.')
1160
2342
 
1161
2343
  // src/gen/zod/responseReasoningSummaryDeltaStreamingEventSchema.ts
1162
- import { z as z96 } from "zod";
1163
- var responseReasoningSummaryDeltaStreamingEventSchema = z96.object({
1164
- "type": z96.enum(["response.reasoning_summary_text.delta"]).default("response.reasoning_summary_text.delta").describe("The type of the event, always `response.reasoning_summary.delta`."),
1165
- "sequence_number": z96.number().int().describe("The sequence number of the event that was emitted."),
1166
- "item_id": z96.string().describe("The ID of the item that was updated."),
1167
- "output_index": z96.number().int().describe("The index of the output item that was updated."),
1168
- "summary_index": z96.number().int().describe("The index of the summary content that was updated."),
1169
- "delta": z96.string().describe("The summary text delta that was appended."),
1170
- "obfuscation": z96.optional(z96.string().describe("An obfuscation string that was added to pad the event payload."))
1171
- }).describe("A streaming event that indicated a reasoning summary was incrementally added.");
2344
+ import { z as z96 } from 'zod'
2345
+ var responseReasoningSummaryDeltaStreamingEventSchema = z96
2346
+ .object({
2347
+ type: z96
2348
+ .enum(['response.reasoning_summary_text.delta'])
2349
+ .default('response.reasoning_summary_text.delta')
2350
+ .describe(
2351
+ 'The type of the event, always `response.reasoning_summary.delta`.',
2352
+ ),
2353
+ sequence_number: z96
2354
+ .number()
2355
+ .int()
2356
+ .describe('The sequence number of the event that was emitted.'),
2357
+ item_id: z96.string().describe('The ID of the item that was updated.'),
2358
+ output_index: z96
2359
+ .number()
2360
+ .int()
2361
+ .describe('The index of the output item that was updated.'),
2362
+ summary_index: z96
2363
+ .number()
2364
+ .int()
2365
+ .describe('The index of the summary content that was updated.'),
2366
+ delta: z96.string().describe('The summary text delta that was appended.'),
2367
+ obfuscation: z96.optional(
2368
+ z96
2369
+ .string()
2370
+ .describe(
2371
+ 'An obfuscation string that was added to pad the event payload.',
2372
+ ),
2373
+ ),
2374
+ })
2375
+ .describe(
2376
+ 'A streaming event that indicated a reasoning summary was incrementally added.',
2377
+ )
1172
2378
 
1173
2379
  // src/gen/zod/responseReasoningSummaryDoneStreamingEventSchema.ts
1174
- import { z as z97 } from "zod";
1175
- var responseReasoningSummaryDoneStreamingEventSchema = z97.object({
1176
- "type": z97.enum(["response.reasoning_summary_text.done"]).default("response.reasoning_summary_text.done").describe("The type of the event, always `response.reasoning_summary.done`."),
1177
- "sequence_number": z97.number().int().describe("The sequence number of the event that was emitted."),
1178
- "item_id": z97.string().describe("The ID of the item that was updated."),
1179
- "output_index": z97.number().int().describe("The index of the output item that was updated."),
1180
- "summary_index": z97.number().int().describe("The index of the summary content that was completed."),
1181
- "text": z97.string().describe("The final summary text that was emitted.")
1182
- }).describe("A streaming event that indicated a reasoning summary was completed.");
2380
+ import { z as z97 } from 'zod'
2381
+ var responseReasoningSummaryDoneStreamingEventSchema = z97
2382
+ .object({
2383
+ type: z97
2384
+ .enum(['response.reasoning_summary_text.done'])
2385
+ .default('response.reasoning_summary_text.done')
2386
+ .describe(
2387
+ 'The type of the event, always `response.reasoning_summary.done`.',
2388
+ ),
2389
+ sequence_number: z97
2390
+ .number()
2391
+ .int()
2392
+ .describe('The sequence number of the event that was emitted.'),
2393
+ item_id: z97.string().describe('The ID of the item that was updated.'),
2394
+ output_index: z97
2395
+ .number()
2396
+ .int()
2397
+ .describe('The index of the output item that was updated.'),
2398
+ summary_index: z97
2399
+ .number()
2400
+ .int()
2401
+ .describe('The index of the summary content that was completed.'),
2402
+ text: z97.string().describe('The final summary text that was emitted.'),
2403
+ })
2404
+ .describe(
2405
+ 'A streaming event that indicated a reasoning summary was completed.',
2406
+ )
1183
2407
 
1184
2408
  // src/gen/zod/responseReasoningSummaryPartAddedStreamingEventSchema.ts
1185
- import { z as z98 } from "zod";
1186
- var responseReasoningSummaryPartAddedStreamingEventSchema = z98.object({
1187
- "type": z98.enum(["response.reasoning_summary_part.added"]).default("response.reasoning_summary_part.added").describe("The type of the event, always `response.reasoning_summary_part.added`."),
1188
- "sequence_number": z98.number().int().describe("The sequence number of the event that was emitted."),
1189
- "item_id": z98.string().describe("The ID of the item that was updated."),
1190
- "output_index": z98.number().int().describe("The index of the output item that was updated."),
1191
- "summary_index": z98.number().int().describe("The index of the summary part that was added."),
1192
- "part": z98.union([z98.lazy(() => inputTextContentSchema).and(z98.object({
1193
- "type": z98.literal("input_text")
1194
- })), z98.lazy(() => outputTextContentSchema).and(z98.object({
1195
- "type": z98.literal("output_text")
1196
- })), z98.lazy(() => textContentSchema).and(z98.object({
1197
- "type": z98.literal("text")
1198
- })), z98.lazy(() => summaryTextContentSchema).and(z98.object({
1199
- "type": z98.literal("summary_text")
1200
- })), z98.lazy(() => reasoningTextContentSchema).and(z98.object({
1201
- "type": z98.literal("reasoning_text")
1202
- })), z98.lazy(() => refusalContentSchema).and(z98.object({
1203
- "type": z98.literal("refusal")
1204
- })), z98.lazy(() => inputImageContentSchema).and(z98.object({
1205
- "type": z98.literal("input_image")
1206
- })), z98.lazy(() => inputFileContentSchema).and(z98.object({
1207
- "type": z98.literal("input_file")
1208
- }))]).describe("A content part that makes up an input or output item.")
1209
- }).describe("A streaming event that indicated a reasoning summary part was added.");
2409
+ import { z as z98 } from 'zod'
2410
+ var responseReasoningSummaryPartAddedStreamingEventSchema = z98
2411
+ .object({
2412
+ type: z98
2413
+ .enum(['response.reasoning_summary_part.added'])
2414
+ .default('response.reasoning_summary_part.added')
2415
+ .describe(
2416
+ 'The type of the event, always `response.reasoning_summary_part.added`.',
2417
+ ),
2418
+ sequence_number: z98
2419
+ .number()
2420
+ .int()
2421
+ .describe('The sequence number of the event that was emitted.'),
2422
+ item_id: z98.string().describe('The ID of the item that was updated.'),
2423
+ output_index: z98
2424
+ .number()
2425
+ .int()
2426
+ .describe('The index of the output item that was updated.'),
2427
+ summary_index: z98
2428
+ .number()
2429
+ .int()
2430
+ .describe('The index of the summary part that was added.'),
2431
+ part: z98
2432
+ .union([
2433
+ z98
2434
+ .lazy(() => inputTextContentSchema)
2435
+ .and(
2436
+ z98.object({
2437
+ type: z98.literal('input_text'),
2438
+ }),
2439
+ ),
2440
+ z98
2441
+ .lazy(() => outputTextContentSchema)
2442
+ .and(
2443
+ z98.object({
2444
+ type: z98.literal('output_text'),
2445
+ }),
2446
+ ),
2447
+ z98
2448
+ .lazy(() => textContentSchema)
2449
+ .and(
2450
+ z98.object({
2451
+ type: z98.literal('text'),
2452
+ }),
2453
+ ),
2454
+ z98
2455
+ .lazy(() => summaryTextContentSchema)
2456
+ .and(
2457
+ z98.object({
2458
+ type: z98.literal('summary_text'),
2459
+ }),
2460
+ ),
2461
+ z98
2462
+ .lazy(() => reasoningTextContentSchema)
2463
+ .and(
2464
+ z98.object({
2465
+ type: z98.literal('reasoning_text'),
2466
+ }),
2467
+ ),
2468
+ z98
2469
+ .lazy(() => refusalContentSchema)
2470
+ .and(
2471
+ z98.object({
2472
+ type: z98.literal('refusal'),
2473
+ }),
2474
+ ),
2475
+ z98
2476
+ .lazy(() => inputImageContentSchema)
2477
+ .and(
2478
+ z98.object({
2479
+ type: z98.literal('input_image'),
2480
+ }),
2481
+ ),
2482
+ z98
2483
+ .lazy(() => inputFileContentSchema)
2484
+ .and(
2485
+ z98.object({
2486
+ type: z98.literal('input_file'),
2487
+ }),
2488
+ ),
2489
+ ])
2490
+ .describe('A content part that makes up an input or output item.'),
2491
+ })
2492
+ .describe(
2493
+ 'A streaming event that indicated a reasoning summary part was added.',
2494
+ )
1210
2495
 
1211
2496
  // src/gen/zod/responseReasoningSummaryPartDoneStreamingEventSchema.ts
1212
- import { z as z99 } from "zod";
1213
- var responseReasoningSummaryPartDoneStreamingEventSchema = z99.object({
1214
- "type": z99.enum(["response.reasoning_summary_part.done"]).default("response.reasoning_summary_part.done").describe("The type of the event, always `response.reasoning_summary_part.done`."),
1215
- "sequence_number": z99.number().int().describe("The sequence number of the event that was emitted."),
1216
- "item_id": z99.string().describe("The ID of the item that was updated."),
1217
- "output_index": z99.number().int().describe("The index of the output item that was updated."),
1218
- "summary_index": z99.number().int().describe("The index of the summary part that was completed."),
1219
- "part": z99.union([z99.lazy(() => inputTextContentSchema).and(z99.object({
1220
- "type": z99.literal("input_text")
1221
- })), z99.lazy(() => outputTextContentSchema).and(z99.object({
1222
- "type": z99.literal("output_text")
1223
- })), z99.lazy(() => textContentSchema).and(z99.object({
1224
- "type": z99.literal("text")
1225
- })), z99.lazy(() => summaryTextContentSchema).and(z99.object({
1226
- "type": z99.literal("summary_text")
1227
- })), z99.lazy(() => reasoningTextContentSchema).and(z99.object({
1228
- "type": z99.literal("reasoning_text")
1229
- })), z99.lazy(() => refusalContentSchema).and(z99.object({
1230
- "type": z99.literal("refusal")
1231
- })), z99.lazy(() => inputImageContentSchema).and(z99.object({
1232
- "type": z99.literal("input_image")
1233
- })), z99.lazy(() => inputFileContentSchema).and(z99.object({
1234
- "type": z99.literal("input_file")
1235
- }))]).describe("A content part that makes up an input or output item.")
1236
- }).describe("A streaming event that indicated a reasoning summary part was completed.");
2497
+ import { z as z99 } from 'zod'
2498
+ var responseReasoningSummaryPartDoneStreamingEventSchema = z99
2499
+ .object({
2500
+ type: z99
2501
+ .enum(['response.reasoning_summary_part.done'])
2502
+ .default('response.reasoning_summary_part.done')
2503
+ .describe(
2504
+ 'The type of the event, always `response.reasoning_summary_part.done`.',
2505
+ ),
2506
+ sequence_number: z99
2507
+ .number()
2508
+ .int()
2509
+ .describe('The sequence number of the event that was emitted.'),
2510
+ item_id: z99.string().describe('The ID of the item that was updated.'),
2511
+ output_index: z99
2512
+ .number()
2513
+ .int()
2514
+ .describe('The index of the output item that was updated.'),
2515
+ summary_index: z99
2516
+ .number()
2517
+ .int()
2518
+ .describe('The index of the summary part that was completed.'),
2519
+ part: z99
2520
+ .union([
2521
+ z99
2522
+ .lazy(() => inputTextContentSchema)
2523
+ .and(
2524
+ z99.object({
2525
+ type: z99.literal('input_text'),
2526
+ }),
2527
+ ),
2528
+ z99
2529
+ .lazy(() => outputTextContentSchema)
2530
+ .and(
2531
+ z99.object({
2532
+ type: z99.literal('output_text'),
2533
+ }),
2534
+ ),
2535
+ z99
2536
+ .lazy(() => textContentSchema)
2537
+ .and(
2538
+ z99.object({
2539
+ type: z99.literal('text'),
2540
+ }),
2541
+ ),
2542
+ z99
2543
+ .lazy(() => summaryTextContentSchema)
2544
+ .and(
2545
+ z99.object({
2546
+ type: z99.literal('summary_text'),
2547
+ }),
2548
+ ),
2549
+ z99
2550
+ .lazy(() => reasoningTextContentSchema)
2551
+ .and(
2552
+ z99.object({
2553
+ type: z99.literal('reasoning_text'),
2554
+ }),
2555
+ ),
2556
+ z99
2557
+ .lazy(() => refusalContentSchema)
2558
+ .and(
2559
+ z99.object({
2560
+ type: z99.literal('refusal'),
2561
+ }),
2562
+ ),
2563
+ z99
2564
+ .lazy(() => inputImageContentSchema)
2565
+ .and(
2566
+ z99.object({
2567
+ type: z99.literal('input_image'),
2568
+ }),
2569
+ ),
2570
+ z99
2571
+ .lazy(() => inputFileContentSchema)
2572
+ .and(
2573
+ z99.object({
2574
+ type: z99.literal('input_file'),
2575
+ }),
2576
+ ),
2577
+ ])
2578
+ .describe('A content part that makes up an input or output item.'),
2579
+ })
2580
+ .describe(
2581
+ 'A streaming event that indicated a reasoning summary part was completed.',
2582
+ )
1237
2583
 
1238
2584
  // src/gen/zod/responseRefusalDeltaStreamingEventSchema.ts
1239
- import { z as z100 } from "zod";
1240
- var responseRefusalDeltaStreamingEventSchema = z100.object({
1241
- "type": z100.enum(["response.refusal.delta"]).default("response.refusal.delta").describe("The type of the event, always `response.refusal.delta`."),
1242
- "sequence_number": z100.number().int().describe("The sequence number of the event that was emitted."),
1243
- "item_id": z100.string().describe("The ID of the item that was updated."),
1244
- "output_index": z100.number().int().describe("The index of the output item that was updated."),
1245
- "content_index": z100.number().int().describe("The index of the refusal content that was updated."),
1246
- "delta": z100.string().describe("The refusal text delta that was appended.")
1247
- }).describe("A streaming event that indicated refusal text was incrementally added.");
2585
+ import { z as z100 } from 'zod'
2586
+ var responseRefusalDeltaStreamingEventSchema = z100
2587
+ .object({
2588
+ type: z100
2589
+ .enum(['response.refusal.delta'])
2590
+ .default('response.refusal.delta')
2591
+ .describe('The type of the event, always `response.refusal.delta`.'),
2592
+ sequence_number: z100
2593
+ .number()
2594
+ .int()
2595
+ .describe('The sequence number of the event that was emitted.'),
2596
+ item_id: z100.string().describe('The ID of the item that was updated.'),
2597
+ output_index: z100
2598
+ .number()
2599
+ .int()
2600
+ .describe('The index of the output item that was updated.'),
2601
+ content_index: z100
2602
+ .number()
2603
+ .int()
2604
+ .describe('The index of the refusal content that was updated.'),
2605
+ delta: z100.string().describe('The refusal text delta that was appended.'),
2606
+ })
2607
+ .describe(
2608
+ 'A streaming event that indicated refusal text was incrementally added.',
2609
+ )
1248
2610
 
1249
2611
  // src/gen/zod/responseRefusalDoneStreamingEventSchema.ts
1250
- import { z as z101 } from "zod";
1251
- var responseRefusalDoneStreamingEventSchema = z101.object({
1252
- "type": z101.enum(["response.refusal.done"]).default("response.refusal.done").describe("The type of the event, always `response.refusal.done`."),
1253
- "sequence_number": z101.number().int().describe("The sequence number of the event that was emitted."),
1254
- "item_id": z101.string().describe("The ID of the item that was updated."),
1255
- "output_index": z101.number().int().describe("The index of the output item that was updated."),
1256
- "content_index": z101.number().int().describe("The index of the refusal content that was completed."),
1257
- "refusal": z101.string().describe("The final refusal text that was emitted.")
1258
- }).describe("A streaming event that indicated refusal text was completed.");
2612
+ import { z as z101 } from 'zod'
2613
+ var responseRefusalDoneStreamingEventSchema = z101
2614
+ .object({
2615
+ type: z101
2616
+ .enum(['response.refusal.done'])
2617
+ .default('response.refusal.done')
2618
+ .describe('The type of the event, always `response.refusal.done`.'),
2619
+ sequence_number: z101
2620
+ .number()
2621
+ .int()
2622
+ .describe('The sequence number of the event that was emitted.'),
2623
+ item_id: z101.string().describe('The ID of the item that was updated.'),
2624
+ output_index: z101
2625
+ .number()
2626
+ .int()
2627
+ .describe('The index of the output item that was updated.'),
2628
+ content_index: z101
2629
+ .number()
2630
+ .int()
2631
+ .describe('The index of the refusal content that was completed.'),
2632
+ refusal: z101.string().describe('The final refusal text that was emitted.'),
2633
+ })
2634
+ .describe('A streaming event that indicated refusal text was completed.')
1259
2635
 
1260
2636
  // src/gen/zod/systemMessageItemParamSchema.ts
1261
- import { z as z102 } from "zod";
2637
+ import { z as z102 } from 'zod'
1262
2638
  var systemMessageItemParamSchema = z102.object({
1263
- "id": z102.optional(z102.union([z102.string(), z102.null()])),
1264
- "type": z102.enum(["message"]).default("message").describe("The item type. Always `message`."),
1265
- "role": z102.enum(["system"]).default("system").describe("The message role. Always `system`."),
1266
- "content": z102.union([z102.array(z102.lazy(() => inputTextContentParamSchema).and(z102.object({
1267
- "type": z102.literal("input_text")
1268
- }))), z102.string()]).describe("The message content, as an array of content parts."),
1269
- "status": z102.optional(z102.union([z102.string(), z102.null()]))
1270
- });
2639
+ id: z102.optional(z102.union([z102.string(), z102.null()])),
2640
+ type: z102
2641
+ .enum(['message'])
2642
+ .default('message')
2643
+ .describe('The item type. Always `message`.'),
2644
+ role: z102
2645
+ .enum(['system'])
2646
+ .default('system')
2647
+ .describe('The message role. Always `system`.'),
2648
+ content: z102
2649
+ .union([
2650
+ z102.array(
2651
+ z102
2652
+ .lazy(() => inputTextContentParamSchema)
2653
+ .and(
2654
+ z102.object({
2655
+ type: z102.literal('input_text'),
2656
+ }),
2657
+ ),
2658
+ ),
2659
+ z102.string(),
2660
+ ])
2661
+ .describe('The message content, as an array of content parts.'),
2662
+ status: z102.optional(z102.union([z102.string(), z102.null()])),
2663
+ })
1271
2664
 
1272
2665
  // src/gen/zod/userMessageItemParamSchema.ts
1273
- import { z as z103 } from "zod";
2666
+ import { z as z103 } from 'zod'
1274
2667
  var userMessageItemParamSchema = z103.object({
1275
- "id": z103.optional(z103.union([z103.string(), z103.null()])),
1276
- "type": z103.enum(["message"]).default("message").describe("The item type. Always `message`."),
1277
- "role": z103.enum(["user"]).default("user").describe("The message role. Always `user`."),
1278
- "content": z103.union([z103.array(z103.union([z103.lazy(() => inputTextContentParamSchema).and(z103.object({
1279
- "type": z103.literal("input_text")
1280
- })), z103.lazy(() => inputImageContentParamAutoParamSchema).and(z103.object({
1281
- "type": z103.literal("input_image")
1282
- })), z103.lazy(() => inputFileContentParamSchema).and(z103.object({
1283
- "type": z103.literal("input_file")
1284
- }))]).describe("A piece of message content, such as text, an image, or a file.")), z103.string()]).describe("The message content, as an array of content parts."),
1285
- "status": z103.optional(z103.union([z103.string(), z103.null()]))
1286
- });
2668
+ id: z103.optional(z103.union([z103.string(), z103.null()])),
2669
+ type: z103
2670
+ .enum(['message'])
2671
+ .default('message')
2672
+ .describe('The item type. Always `message`.'),
2673
+ role: z103
2674
+ .enum(['user'])
2675
+ .default('user')
2676
+ .describe('The message role. Always `user`.'),
2677
+ content: z103
2678
+ .union([
2679
+ z103.array(
2680
+ z103
2681
+ .union([
2682
+ z103
2683
+ .lazy(() => inputTextContentParamSchema)
2684
+ .and(
2685
+ z103.object({
2686
+ type: z103.literal('input_text'),
2687
+ }),
2688
+ ),
2689
+ z103
2690
+ .lazy(() => inputImageContentParamAutoParamSchema)
2691
+ .and(
2692
+ z103.object({
2693
+ type: z103.literal('input_image'),
2694
+ }),
2695
+ ),
2696
+ z103
2697
+ .lazy(() => inputFileContentParamSchema)
2698
+ .and(
2699
+ z103.object({
2700
+ type: z103.literal('input_file'),
2701
+ }),
2702
+ ),
2703
+ ])
2704
+ .describe(
2705
+ 'A piece of message content, such as text, an image, or a file.',
2706
+ ),
2707
+ ),
2708
+ z103.string(),
2709
+ ])
2710
+ .describe('The message content, as an array of content parts.'),
2711
+ status: z103.optional(z103.union([z103.string(), z103.null()])),
2712
+ })
1287
2713
 
1288
2714
  // src/client.ts
1289
2715
  var TekimaxResponse = class {
1290
2716
  constructor(_raw) {
1291
- this._raw = _raw;
2717
+ this._raw = _raw
1292
2718
  }
1293
2719
  /**
1294
2720
  * Access the raw response object returned by the API.
1295
2721
  */
1296
2722
  get raw() {
1297
- return this._raw;
2723
+ return this._raw
1298
2724
  }
1299
2725
  /**
1300
2726
  * Automatically extracts the text content from the response.
1301
2727
  * It looks for the first "output_text" item in the response content.
1302
2728
  */
1303
2729
  get text() {
1304
- if (!this._raw.output) return void 0;
2730
+ if (!this._raw.output) return void 0
1305
2731
  for (const item of this._raw.output) {
1306
- if (item.type === "message") {
2732
+ if (item.type === 'message') {
1307
2733
  for (const contentPart of item.content) {
1308
- if (contentPart.type === "output_text" || contentPart.type === "text") {
1309
- return contentPart.text;
2734
+ if (
2735
+ contentPart.type === 'output_text' ||
2736
+ contentPart.type === 'text'
2737
+ ) {
2738
+ return contentPart.text
1310
2739
  }
1311
2740
  }
1312
2741
  }
1313
2742
  }
1314
- return void 0;
2743
+ return void 0
1315
2744
  }
1316
2745
  /**
1317
2746
  * The ID of the response.
1318
2747
  */
1319
2748
  get id() {
1320
- return this._raw.id ?? void 0;
2749
+ return this._raw.id ?? void 0
1321
2750
  }
1322
2751
  /**
1323
2752
  * The model used to generate the response.
1324
2753
  */
1325
2754
  get model() {
1326
- return this._raw.model ?? void 0;
2755
+ return this._raw.model ?? void 0
1327
2756
  }
1328
- };
2757
+ }
1329
2758
  var TekimaxClient = class {
1330
2759
  /**
1331
2760
  * Creates a new TekimaxClient.
1332
- *
2761
+ *
1333
2762
  * @param options - Configuration options for the client.
1334
2763
  * @param options.baseUrl - The base URL of the API (default: "https://api.tekimax.com").
1335
2764
  * @param options.apiKey - Your Tekimax API key.
1336
- *
2765
+ *
1337
2766
  * @example
1338
2767
  * const client = new TekimaxClient({ apiKey: "tm_..." });
1339
2768
  */
1340
2769
  constructor(options = {}) {
1341
- this.baseUrl = options.baseUrl || "https://api.tekimax.com";
2770
+ this.baseUrl = options.baseUrl || 'https://api.tekimax.com'
1342
2771
  this.headers = {
1343
- "Content-Type": "application/json",
1344
- ...options.apiKey ? { "Authorization": `Bearer ${options.apiKey}` } : {}
1345
- };
2772
+ 'Content-Type': 'application/json',
2773
+ ...(options.apiKey ? { Authorization: `Bearer ${options.apiKey}` } : {}),
2774
+ }
1346
2775
  }
1347
2776
  async request(path, body) {
1348
2777
  const response = await fetch(`${this.baseUrl}${path}`, {
1349
- method: "POST",
2778
+ method: 'POST',
1350
2779
  headers: this.headers,
1351
- body: JSON.stringify(body)
1352
- });
2780
+ body: JSON.stringify(body),
2781
+ })
1353
2782
  if (!response.ok) {
1354
- throw new Error(`Tekimax API Error: ${response.status} ${response.statusText}`);
2783
+ throw new Error(
2784
+ `Tekimax API Error: ${response.status} ${response.statusText}`,
2785
+ )
1355
2786
  }
1356
- const data = await response.json();
1357
- return new TekimaxResponse(data);
2787
+ const data = await response.json()
2788
+ return new TekimaxResponse(data)
1358
2789
  }
1359
2790
  /**
1360
2791
  * Creates a new session and sends the initial message.
1361
- *
2792
+ *
1362
2793
  * @param message - The initial message text to start the session.
1363
2794
  * @param options - Additional configuration options (model, temperature, etc.).
1364
- *
2795
+ *
1365
2796
  * @example
1366
2797
  * const response = await client.createSession("Hello, world!", { model: "gpt-4" });
1367
2798
  * console.log(response.text);
@@ -1369,26 +2800,26 @@ var TekimaxClient = class {
1369
2800
  async createSession(message, options) {
1370
2801
  const body = {
1371
2802
  ...options,
1372
- input: message
1373
- };
1374
- return this.request("/responses", body);
2803
+ input: message,
2804
+ }
2805
+ return this.request('/responses', body)
1375
2806
  }
1376
2807
  /**
1377
2808
  * Sends a message to an existing session or starts a new one if no previous_response_id is provided.
1378
- *
2809
+ *
1379
2810
  * @param message - The message text to send.
1380
2811
  * @param options - Additional configuration options.
1381
- *
2812
+ *
1382
2813
  * @example
1383
- * const response = await client.sendMessage("What is the weather?", {
1384
- * previous_response_id: "resp_123"
2814
+ * const response = await client.sendMessage("What is the weather?", {
2815
+ * previous_response_id: "resp_123"
1385
2816
  * });
1386
2817
  * console.log(response.text);
1387
2818
  */
1388
2819
  async sendMessage(message, options) {
1389
- return this.createSession(message, options);
2820
+ return this.createSession(message, options)
1390
2821
  }
1391
- };
2822
+ }
1392
2823
  export {
1393
2824
  TekimaxClient,
1394
2825
  TekimaxResponse,
@@ -1578,5 +3009,5 @@ export {
1578
3009
  userMessageItemParamSchema,
1579
3010
  userMessageItemParamTypeEnum,
1580
3011
  verbosityEnumEnum,
1581
- verbosityEnumSchema
1582
- };
3012
+ verbosityEnumSchema,
3013
+ }