@orq-ai/node 4.11.0-rc.4 → 4.11.0-rc.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (278) hide show
  1. package/jsr.json +1 -1
  2. package/lib/config.d.ts +2 -2
  3. package/lib/config.js +2 -2
  4. package/models/components/index.d.ts +23 -0
  5. package/models/components/index.d.ts.map +1 -1
  6. package/models/components/index.js +23 -0
  7. package/models/components/index.js.map +1 -1
  8. package/models/components/modelmetadata.d.ts +2 -0
  9. package/models/components/modelmetadata.d.ts.map +1 -1
  10. package/models/components/modelmetadata.js +4 -0
  11. package/models/components/modelmetadata.js.map +1 -1
  12. package/models/components/publicresponseresource.d.ts +105 -0
  13. package/models/components/publicresponseresource.d.ts.map +1 -0
  14. package/models/components/publicresponseresource.js +138 -0
  15. package/models/components/publicresponseresource.js.map +1 -0
  16. package/models/components/reasoning.d.ts +40 -2
  17. package/models/components/reasoning.d.ts.map +1 -1
  18. package/models/components/reasoning.js +26 -3
  19. package/models/components/reasoning.js.map +1 -1
  20. package/models/components/reasoningparam.d.ts +40 -2
  21. package/models/components/reasoningparam.d.ts.map +1 -1
  22. package/models/components/reasoningparam.js +28 -3
  23. package/models/components/reasoningparam.js.map +1 -1
  24. package/models/components/reasoningpart.js +1 -1
  25. package/models/components/responsecodeinterpretercodedeltastreamevent.d.ts +61 -0
  26. package/models/components/responsecodeinterpretercodedeltastreamevent.d.ts.map +1 -0
  27. package/models/components/responsecodeinterpretercodedeltastreamevent.js +89 -0
  28. package/models/components/responsecodeinterpretercodedeltastreamevent.js.map +1 -0
  29. package/models/components/responsecodeinterpretercodedonestreamevent.d.ts +61 -0
  30. package/models/components/responsecodeinterpretercodedonestreamevent.d.ts.map +1 -0
  31. package/models/components/responsecodeinterpretercodedonestreamevent.js +89 -0
  32. package/models/components/responsecodeinterpretercodedonestreamevent.js.map +1 -0
  33. package/models/components/responsecontentpartstreamevent.d.ts +81 -0
  34. package/models/components/responsecontentpartstreamevent.d.ts.map +1 -0
  35. package/models/components/responsecontentpartstreamevent.js +100 -0
  36. package/models/components/responsecontentpartstreamevent.js.map +1 -0
  37. package/models/components/responseerrorstreamevent.d.ts +51 -0
  38. package/models/components/responseerrorstreamevent.d.ts.map +1 -0
  39. package/models/components/responseerrorstreamevent.js +85 -0
  40. package/models/components/responseerrorstreamevent.js.map +1 -0
  41. package/models/components/responsefunctioncallargumentsdeltastreamevent.d.ts +65 -0
  42. package/models/components/responsefunctioncallargumentsdeltastreamevent.d.ts.map +1 -0
  43. package/models/components/responsefunctioncallargumentsdeltastreamevent.js +90 -0
  44. package/models/components/responsefunctioncallargumentsdeltastreamevent.js.map +1 -0
  45. package/models/components/responsefunctioncallargumentsdonestreamevent.d.ts +61 -0
  46. package/models/components/responsefunctioncallargumentsdonestreamevent.d.ts.map +1 -0
  47. package/models/components/responsefunctioncallargumentsdonestreamevent.js +89 -0
  48. package/models/components/responsefunctioncallargumentsdonestreamevent.js.map +1 -0
  49. package/models/components/responsehostedtoolcallstreamevent.d.ts +97 -0
  50. package/models/components/responsehostedtoolcallstreamevent.d.ts.map +1 -0
  51. package/models/components/responsehostedtoolcallstreamevent.js +123 -0
  52. package/models/components/responsehostedtoolcallstreamevent.js.map +1 -0
  53. package/models/components/responseimagegenerationpartialimagestreamevent.d.ts +65 -0
  54. package/models/components/responseimagegenerationpartialimagestreamevent.d.ts.map +1 -0
  55. package/models/components/responseimagegenerationpartialimagestreamevent.js +92 -0
  56. package/models/components/responseimagegenerationpartialimagestreamevent.js.map +1 -0
  57. package/models/components/responselifecyclestreamevent.d.ts +73 -0
  58. package/models/components/responselifecyclestreamevent.d.ts.map +1 -0
  59. package/models/components/responselifecyclestreamevent.js +103 -0
  60. package/models/components/responselifecyclestreamevent.js.map +1 -0
  61. package/models/components/responsemcpcallargumentsdeltastreamevent.d.ts +61 -0
  62. package/models/components/responsemcpcallargumentsdeltastreamevent.d.ts.map +1 -0
  63. package/models/components/responsemcpcallargumentsdeltastreamevent.js +89 -0
  64. package/models/components/responsemcpcallargumentsdeltastreamevent.js.map +1 -0
  65. package/models/components/responsemcpcallargumentsdonestreamevent.d.ts +61 -0
  66. package/models/components/responsemcpcallargumentsdonestreamevent.d.ts.map +1 -0
  67. package/models/components/responsemcpcallargumentsdonestreamevent.js +89 -0
  68. package/models/components/responsemcpcallargumentsdonestreamevent.js.map +1 -0
  69. package/models/components/responseoutputitemstreamevent.d.ts +73 -0
  70. package/models/components/responseoutputitemstreamevent.d.ts.map +1 -0
  71. package/models/components/responseoutputitemstreamevent.js +96 -0
  72. package/models/components/responseoutputitemstreamevent.js.map +1 -0
  73. package/models/components/responseoutputtextannotationaddedstreamevent.d.ts +71 -0
  74. package/models/components/responseoutputtextannotationaddedstreamevent.d.ts.map +1 -0
  75. package/models/components/responseoutputtextannotationaddedstreamevent.js +93 -0
  76. package/models/components/responseoutputtextannotationaddedstreamevent.js.map +1 -0
  77. package/models/components/responseoutputtextdeltastreamevent.d.ts +75 -0
  78. package/models/components/responseoutputtextdeltastreamevent.d.ts.map +1 -0
  79. package/models/components/responseoutputtextdeltastreamevent.js +92 -0
  80. package/models/components/responseoutputtextdeltastreamevent.js.map +1 -0
  81. package/models/components/responseoutputtextdonestreamevent.d.ts +71 -0
  82. package/models/components/responseoutputtextdonestreamevent.d.ts.map +1 -0
  83. package/models/components/responseoutputtextdonestreamevent.js +91 -0
  84. package/models/components/responseoutputtextdonestreamevent.js.map +1 -0
  85. package/models/components/responsereasoningdeltastreamevent.d.ts +83 -0
  86. package/models/components/responsereasoningdeltastreamevent.d.ts.map +1 -0
  87. package/models/components/responsereasoningdeltastreamevent.js +101 -0
  88. package/models/components/responsereasoningdeltastreamevent.js.map +1 -0
  89. package/models/components/responsereasoningdonestreamevent.d.ts +79 -0
  90. package/models/components/responsereasoningdonestreamevent.d.ts.map +1 -0
  91. package/models/components/responsereasoningdonestreamevent.js +100 -0
  92. package/models/components/responsereasoningdonestreamevent.js.map +1 -0
  93. package/models/components/responsereasoningsummarypartstreamevent.d.ts +81 -0
  94. package/models/components/responsereasoningsummarypartstreamevent.d.ts.map +1 -0
  95. package/models/components/responsereasoningsummarypartstreamevent.js +102 -0
  96. package/models/components/responsereasoningsummarypartstreamevent.js.map +1 -0
  97. package/models/components/responsereasoningsummarytextdeltastreamevent.d.ts +69 -0
  98. package/models/components/responsereasoningsummarytextdeltastreamevent.d.ts.map +1 -0
  99. package/models/components/responsereasoningsummarytextdeltastreamevent.js +92 -0
  100. package/models/components/responsereasoningsummarytextdeltastreamevent.js.map +1 -0
  101. package/models/components/responsereasoningsummarytextdonestreamevent.d.ts +65 -0
  102. package/models/components/responsereasoningsummarytextdonestreamevent.d.ts.map +1 -0
  103. package/models/components/responsereasoningsummarytextdonestreamevent.js +91 -0
  104. package/models/components/responsereasoningsummarytextdonestreamevent.js.map +1 -0
  105. package/models/components/responserefusaldeltastreamevent.d.ts +65 -0
  106. package/models/components/responserefusaldeltastreamevent.d.ts.map +1 -0
  107. package/models/components/responserefusaldeltastreamevent.js +90 -0
  108. package/models/components/responserefusaldeltastreamevent.js.map +1 -0
  109. package/models/components/responserefusaldonestreamevent.d.ts +65 -0
  110. package/models/components/responserefusaldonestreamevent.d.ts.map +1 -0
  111. package/models/components/responserefusaldonestreamevent.js +90 -0
  112. package/models/components/responserefusaldonestreamevent.js.map +1 -0
  113. package/models/operations/createagentrequest.d.ts +298 -4
  114. package/models/operations/createagentrequest.d.ts.map +1 -1
  115. package/models/operations/createagentrequest.js +163 -9
  116. package/models/operations/createagentrequest.js.map +1 -1
  117. package/models/operations/createchatcompletion.d.ts +81 -4
  118. package/models/operations/createchatcompletion.d.ts.map +1 -1
  119. package/models/operations/createchatcompletion.js +45 -7
  120. package/models/operations/createchatcompletion.js.map +1 -1
  121. package/models/operations/createdataset.js +1 -1
  122. package/models/operations/createdatasetitem.js +4 -4
  123. package/models/operations/createdatasource.js +1 -1
  124. package/models/operations/createeval.js +16 -16
  125. package/models/operations/createprompt.d.ts +225 -12
  126. package/models/operations/createprompt.d.ts.map +1 -1
  127. package/models/operations/createprompt.js +124 -13
  128. package/models/operations/createprompt.js.map +1 -1
  129. package/models/operations/createrouterresponse.d.ts +476 -61
  130. package/models/operations/createrouterresponse.d.ts.map +1 -1
  131. package/models/operations/createrouterresponse.js +332 -60
  132. package/models/operations/createrouterresponse.js.map +1 -1
  133. package/models/operations/createtool.js +6 -6
  134. package/models/operations/deploymentgetconfig.d.ts +70 -4
  135. package/models/operations/deploymentgetconfig.d.ts.map +1 -1
  136. package/models/operations/deploymentgetconfig.js +43 -8
  137. package/models/operations/deploymentgetconfig.js.map +1 -1
  138. package/models/operations/deployments.d.ts +74 -8
  139. package/models/operations/deployments.d.ts.map +1 -1
  140. package/models/operations/deployments.js +43 -8
  141. package/models/operations/deployments.js.map +1 -1
  142. package/models/operations/getallprompts.d.ts +140 -4
  143. package/models/operations/getallprompts.d.ts.map +1 -1
  144. package/models/operations/getallprompts.js +79 -6
  145. package/models/operations/getallprompts.js.map +1 -1
  146. package/models/operations/getalltools.js +6 -6
  147. package/models/operations/getevals.js +16 -16
  148. package/models/operations/getoneprompt.d.ts +140 -4
  149. package/models/operations/getoneprompt.d.ts.map +1 -1
  150. package/models/operations/getoneprompt.js +79 -6
  151. package/models/operations/getoneprompt.js.map +1 -1
  152. package/models/operations/getpromptversion.d.ts +140 -4
  153. package/models/operations/getpromptversion.d.ts.map +1 -1
  154. package/models/operations/getpromptversion.js +78 -6
  155. package/models/operations/getpromptversion.js.map +1 -1
  156. package/models/operations/getv2humanevalsets.js +2 -2
  157. package/models/operations/getv2humanevalsetsid.js +2 -2
  158. package/models/operations/listagents.d.ts +140 -0
  159. package/models/operations/listagents.d.ts.map +1 -1
  160. package/models/operations/listagents.js +79 -3
  161. package/models/operations/listagents.js.map +1 -1
  162. package/models/operations/listdatasetdatapoints.js +4 -4
  163. package/models/operations/listdatasets.js +1 -1
  164. package/models/operations/listdatasources.js +1 -1
  165. package/models/operations/listknowledgebases.d.ts +3 -0
  166. package/models/operations/listknowledgebases.d.ts.map +1 -1
  167. package/models/operations/listknowledgebases.js +1 -1
  168. package/models/operations/listknowledgebases.js.map +1 -1
  169. package/models/operations/listpromptversions.d.ts +140 -4
  170. package/models/operations/listpromptversions.d.ts.map +1 -1
  171. package/models/operations/listpromptversions.js +79 -6
  172. package/models/operations/listpromptversions.js.map +1 -1
  173. package/models/operations/patchv2humanevalsetsid.js +2 -2
  174. package/models/operations/postv2feedbackevaluation.js +3 -3
  175. package/models/operations/postv2humanevalsets.js +2 -2
  176. package/models/operations/retrieveagentrequest.d.ts +140 -0
  177. package/models/operations/retrieveagentrequest.d.ts.map +1 -1
  178. package/models/operations/retrieveagentrequest.js +81 -2
  179. package/models/operations/retrieveagentrequest.js.map +1 -1
  180. package/models/operations/retrievedatapoint.js +4 -4
  181. package/models/operations/retrievedataset.js +1 -1
  182. package/models/operations/retrievedatasource.js +1 -1
  183. package/models/operations/retrievetool.js +6 -6
  184. package/models/operations/runagent.d.ts +154 -0
  185. package/models/operations/runagent.d.ts.map +1 -1
  186. package/models/operations/runagent.js +80 -5
  187. package/models/operations/runagent.js.map +1 -1
  188. package/models/operations/streamrunagent.d.ts +154 -0
  189. package/models/operations/streamrunagent.d.ts.map +1 -1
  190. package/models/operations/streamrunagent.js +82 -4
  191. package/models/operations/streamrunagent.js.map +1 -1
  192. package/models/operations/updateagent.d.ts +298 -4
  193. package/models/operations/updateagent.d.ts.map +1 -1
  194. package/models/operations/updateagent.js +162 -9
  195. package/models/operations/updateagent.js.map +1 -1
  196. package/models/operations/updatedatapoint.js +4 -4
  197. package/models/operations/updatedataset.js +1 -1
  198. package/models/operations/updatedatasource.js +1 -1
  199. package/models/operations/updateeval.js +16 -16
  200. package/models/operations/updateprompt.d.ts +225 -12
  201. package/models/operations/updateprompt.d.ts.map +1 -1
  202. package/models/operations/updateprompt.js +125 -14
  203. package/models/operations/updateprompt.js.map +1 -1
  204. package/models/operations/updatetool.js +7 -7
  205. package/package.json +3 -3
  206. package/sdk/feedback.d.ts +2 -2
  207. package/sdk/feedback.js +2 -2
  208. package/src/lib/config.ts +2 -2
  209. package/src/models/components/index.ts +23 -0
  210. package/src/models/components/modelmetadata.ts +6 -0
  211. package/src/models/components/publicresponseresource.ts +196 -0
  212. package/src/models/components/reasoning.ts +50 -4
  213. package/src/models/components/reasoningparam.ts +48 -4
  214. package/src/models/components/reasoningpart.ts +1 -1
  215. package/src/models/components/responsecodeinterpretercodedeltastreamevent.ts +149 -0
  216. package/src/models/components/responsecodeinterpretercodedonestreamevent.ts +146 -0
  217. package/src/models/components/responsecontentpartstreamevent.ts +157 -0
  218. package/src/models/components/responseerrorstreamevent.ts +116 -0
  219. package/src/models/components/responsefunctioncallargumentsdeltastreamevent.ts +153 -0
  220. package/src/models/components/responsefunctioncallargumentsdonestreamevent.ts +148 -0
  221. package/src/models/components/responsehostedtoolcallstreamevent.ts +186 -0
  222. package/src/models/components/responseimagegenerationpartialimagestreamevent.ts +156 -0
  223. package/src/models/components/responselifecyclestreamevent.ts +145 -0
  224. package/src/models/components/responsemcpcallargumentsdeltastreamevent.ts +145 -0
  225. package/src/models/components/responsemcpcallargumentsdonestreamevent.ts +145 -0
  226. package/src/models/components/responseoutputitemstreamevent.ts +144 -0
  227. package/src/models/components/responseoutputtextannotationaddedstreamevent.ts +160 -0
  228. package/src/models/components/responseoutputtextdeltastreamevent.ts +149 -0
  229. package/src/models/components/responseoutputtextdonestreamevent.ts +143 -0
  230. package/src/models/components/responsereasoningdeltastreamevent.ts +164 -0
  231. package/src/models/components/responsereasoningdonestreamevent.ts +159 -0
  232. package/src/models/components/responsereasoningsummarypartstreamevent.ts +171 -0
  233. package/src/models/components/responsereasoningsummarytextdeltastreamevent.ts +159 -0
  234. package/src/models/components/responsereasoningsummarytextdonestreamevent.ts +154 -0
  235. package/src/models/components/responserefusaldeltastreamevent.ts +137 -0
  236. package/src/models/components/responserefusaldonestreamevent.ts +137 -0
  237. package/src/models/operations/createagentrequest.ts +460 -8
  238. package/src/models/operations/createchatcompletion.ts +129 -10
  239. package/src/models/operations/createdataset.ts +1 -1
  240. package/src/models/operations/createdatasetitem.ts +4 -4
  241. package/src/models/operations/createdatasource.ts +1 -1
  242. package/src/models/operations/createeval.ts +16 -16
  243. package/src/models/operations/createprompt.ts +356 -27
  244. package/src/models/operations/createrouterresponse.ts +1000 -109
  245. package/src/models/operations/createtool.ts +6 -6
  246. package/src/models/operations/deploymentgetconfig.ts +105 -8
  247. package/src/models/operations/deployments.ts +113 -16
  248. package/src/models/operations/getallprompts.ts +210 -8
  249. package/src/models/operations/getalltools.ts +6 -6
  250. package/src/models/operations/getevals.ts +16 -16
  251. package/src/models/operations/getoneprompt.ts +208 -8
  252. package/src/models/operations/getpromptversion.ts +212 -8
  253. package/src/models/operations/getv2humanevalsets.ts +2 -2
  254. package/src/models/operations/getv2humanevalsetsid.ts +2 -2
  255. package/src/models/operations/listagents.ts +215 -0
  256. package/src/models/operations/listdatasetdatapoints.ts +4 -4
  257. package/src/models/operations/listdatasets.ts +1 -1
  258. package/src/models/operations/listdatasources.ts +1 -1
  259. package/src/models/operations/listknowledgebases.ts +4 -1
  260. package/src/models/operations/listpromptversions.ts +212 -8
  261. package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  262. package/src/models/operations/postv2feedbackevaluation.ts +3 -3
  263. package/src/models/operations/postv2humanevalsets.ts +2 -2
  264. package/src/models/operations/retrieveagentrequest.ts +222 -0
  265. package/src/models/operations/retrievedatapoint.ts +4 -4
  266. package/src/models/operations/retrievedataset.ts +1 -1
  267. package/src/models/operations/retrievedatasource.ts +1 -1
  268. package/src/models/operations/retrievetool.ts +6 -6
  269. package/src/models/operations/runagent.ts +236 -1
  270. package/src/models/operations/streamrunagent.ts +242 -1
  271. package/src/models/operations/updateagent.ts +464 -9
  272. package/src/models/operations/updatedatapoint.ts +4 -4
  273. package/src/models/operations/updatedataset.ts +1 -1
  274. package/src/models/operations/updatedatasource.ts +1 -1
  275. package/src/models/operations/updateeval.ts +16 -16
  276. package/src/models/operations/updateprompt.ts +356 -27
  277. package/src/models/operations/updatetool.ts +7 -7
  278. package/src/sdk/feedback.ts +2 -2
@@ -0,0 +1,79 @@
1
+ import * as z from "zod/v3";
2
+ import { ClosedEnum } from "../../types/enums.js";
3
+ import { Result as SafeParseResult } from "../../types/fp.js";
4
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
5
+ /**
6
+ * The event type. Matches the SSE `event` field.
7
+ */
8
+ export declare const ResponseReasoningDoneStreamEventType: {
9
+ readonly ResponseReasoningDone: "response.reasoning.done";
10
+ readonly ResponseReasoningTextDone: "response.reasoning_text.done";
11
+ };
12
+ /**
13
+ * The event type. Matches the SSE `event` field.
14
+ */
15
+ export type ResponseReasoningDoneStreamEventType = ClosedEnum<typeof ResponseReasoningDoneStreamEventType>;
16
+ /**
17
+ * The event payload.
18
+ */
19
+ export type ResponseReasoningDoneStreamEventData = {
20
+ /**
21
+ * Index of the content part within the output item.
22
+ */
23
+ contentIndex: number;
24
+ /**
25
+ * ID of the output item this event refers to.
26
+ */
27
+ itemId: string;
28
+ /**
29
+ * Index of the output item in the response output array.
30
+ */
31
+ outputIndex: number;
32
+ /**
33
+ * Monotonically increasing sequence number for ordering events.
34
+ */
35
+ sequenceNumber: number;
36
+ /**
37
+ * The completed reasoning text.
38
+ */
39
+ text: string;
40
+ /**
41
+ * The event type. Matches the SSE `event` field.
42
+ */
43
+ type: ResponseReasoningDoneStreamEventType;
44
+ additionalProperties?: {
45
+ [k: string]: any;
46
+ } | undefined;
47
+ };
48
+ /**
49
+ * The SSE event name, equal to the payload's `type`.
50
+ */
51
+ export declare const ResponseReasoningDoneStreamEventEvent: {
52
+ readonly ResponseReasoningDone: "response.reasoning.done";
53
+ readonly ResponseReasoningTextDone: "response.reasoning_text.done";
54
+ };
55
+ /**
56
+ * The SSE event name, equal to the payload's `type`.
57
+ */
58
+ export type ResponseReasoningDoneStreamEventEvent = ClosedEnum<typeof ResponseReasoningDoneStreamEventEvent>;
59
+ export type ResponseReasoningDoneStreamEvent = {
60
+ /**
61
+ * The event payload.
62
+ */
63
+ data: ResponseReasoningDoneStreamEventData;
64
+ /**
65
+ * The SSE event name, equal to the payload's `type`.
66
+ */
67
+ event: ResponseReasoningDoneStreamEventEvent;
68
+ };
69
+ /** @internal */
70
+ export declare const ResponseReasoningDoneStreamEventType$inboundSchema: z.ZodNativeEnum<typeof ResponseReasoningDoneStreamEventType>;
71
+ /** @internal */
72
+ export declare const ResponseReasoningDoneStreamEventData$inboundSchema: z.ZodType<ResponseReasoningDoneStreamEventData, z.ZodTypeDef, unknown>;
73
+ export declare function responseReasoningDoneStreamEventDataFromJSON(jsonString: string): SafeParseResult<ResponseReasoningDoneStreamEventData, SDKValidationError>;
74
+ /** @internal */
75
+ export declare const ResponseReasoningDoneStreamEventEvent$inboundSchema: z.ZodNativeEnum<typeof ResponseReasoningDoneStreamEventEvent>;
76
+ /** @internal */
77
+ export declare const ResponseReasoningDoneStreamEvent$inboundSchema: z.ZodType<ResponseReasoningDoneStreamEvent, z.ZodTypeDef, unknown>;
78
+ export declare function responseReasoningDoneStreamEventFromJSON(jsonString: string): SafeParseResult<ResponseReasoningDoneStreamEvent, SDKValidationError>;
79
+ //# sourceMappingURL=responsereasoningdonestreamevent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"responsereasoningdonestreamevent.d.ts","sourceRoot":"","sources":["../../src/models/components/responsereasoningdonestreamevent.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAM5B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE;;GAEG;AACH,eAAO,MAAM,oCAAoC;;;CAGvC,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,oCAAoC,GAAG,UAAU,CAC3D,O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C,CAAC,UAAU,EACZ,OAAO,CAYP,CAAC;AAEH,wBAAgB,wCAAwC,CACtD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,gCAAgC,EAAE,kBAAkB,CAAC,CAMvE"}
@@ -0,0 +1,100 @@
1
+ "use strict";
2
+ /*
3
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.ResponseReasoningDoneStreamEvent$inboundSchema = exports.ResponseReasoningDoneStreamEventEvent$inboundSchema = exports.ResponseReasoningDoneStreamEventData$inboundSchema = exports.ResponseReasoningDoneStreamEventType$inboundSchema = exports.ResponseReasoningDoneStreamEventEvent = exports.ResponseReasoningDoneStreamEventType = void 0;
40
+ exports.responseReasoningDoneStreamEventDataFromJSON = responseReasoningDoneStreamEventDataFromJSON;
41
+ exports.responseReasoningDoneStreamEventFromJSON = responseReasoningDoneStreamEventFromJSON;
42
+ const z = __importStar(require("zod/v3"));
43
+ const primitives_js_1 = require("../../lib/primitives.js");
44
+ const schemas_js_1 = require("../../lib/schemas.js");
45
+ /**
46
+ * The event type. Matches the SSE `event` field.
47
+ */
48
+ exports.ResponseReasoningDoneStreamEventType = {
49
+ ResponseReasoningDone: "response.reasoning.done",
50
+ ResponseReasoningTextDone: "response.reasoning_text.done",
51
+ };
52
+ /**
53
+ * The SSE event name, equal to the payload's `type`.
54
+ */
55
+ exports.ResponseReasoningDoneStreamEventEvent = {
56
+ ResponseReasoningDone: "response.reasoning.done",
57
+ ResponseReasoningTextDone: "response.reasoning_text.done",
58
+ };
59
+ /** @internal */
60
+ exports.ResponseReasoningDoneStreamEventType$inboundSchema = z.nativeEnum(exports.ResponseReasoningDoneStreamEventType);
61
+ /** @internal */
62
+ exports.ResponseReasoningDoneStreamEventData$inboundSchema = (0, schemas_js_1.collectExtraKeys)(z.object({
63
+ content_index: z.number().int(),
64
+ item_id: z.string(),
65
+ output_index: z.number().int(),
66
+ sequence_number: z.number().int(),
67
+ text: z.string(),
68
+ type: exports.ResponseReasoningDoneStreamEventType$inboundSchema,
69
+ }).catchall(z.any()), "additionalProperties", true).transform((v) => {
70
+ return (0, primitives_js_1.remap)(v, {
71
+ "content_index": "contentIndex",
72
+ "item_id": "itemId",
73
+ "output_index": "outputIndex",
74
+ "sequence_number": "sequenceNumber",
75
+ });
76
+ });
77
+ function responseReasoningDoneStreamEventDataFromJSON(jsonString) {
78
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ResponseReasoningDoneStreamEventData$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ResponseReasoningDoneStreamEventData' from JSON`);
79
+ }
80
+ /** @internal */
81
+ exports.ResponseReasoningDoneStreamEventEvent$inboundSchema = z.nativeEnum(exports.ResponseReasoningDoneStreamEventEvent);
82
+ /** @internal */
83
+ exports.ResponseReasoningDoneStreamEvent$inboundSchema = z.object({
84
+ data: z.unknown().transform((v, ctx) => {
85
+ if (typeof v !== "string")
86
+ return v;
87
+ try {
88
+ return JSON.parse(v);
89
+ }
90
+ catch (err) {
91
+ ctx.addIssue({ code: "custom", message: `malformed json: ${err}` });
92
+ return z.NEVER;
93
+ }
94
+ }).pipe(z.lazy(() => exports.ResponseReasoningDoneStreamEventData$inboundSchema)),
95
+ event: exports.ResponseReasoningDoneStreamEventEvent$inboundSchema,
96
+ });
97
+ function responseReasoningDoneStreamEventFromJSON(jsonString) {
98
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ResponseReasoningDoneStreamEvent$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ResponseReasoningDoneStreamEvent' from JSON`);
99
+ }
100
+ //# sourceMappingURL=responsereasoningdonestreamevent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"responsereasoningdonestreamevent.js","sourceRoot":"","sources":["../../src/models/components/responsereasoningdonestreamevent.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiHH,oGASC;AA0BD,4FAQC;AA1JD,0CAA4B;AAC5B,2DAA0D;AAC1D,qDAG8B;AAK9B;;GAEG;AACU,QAAA,oCAAoC,GAAG;IAClD,qBAAqB,EAAE,yBAAyB;IAChD,yBAAyB,EAAE,8BAA8B;CACjD,CAAC;AAuCX;;GAEG;AACU,QAAA,qCAAqC,GAAG;IACnD,qBAAqB,EAAE,yBAAyB;IAChD,yBAAyB,EAAE,8BAA8B;CACjD,CAAC;AAmBX,gBAAgB;AACH,QAAA,kDAAkD,GACE,CAAC,CAAC,UAAU,CACzE,4CAAoC,CACrC,CAAC;AAEJ,gBAAgB;AACH,QAAA,kDAAkD,GAI3D,IA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AC,CAAC,CAAC;QACvB,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACb,GAAG,CAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,mBAAmB,GAAG,EAAE,EAAE,CAAC,CAAC;YACpE,OAAO,CAAC,CAAC,KAAK,CAAC;QACjB,CAAC;IACH,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,0DAAkD,CAAC,CAAC;IACzE,KAAK,EAAE,2DAAmD;CAC3D,CAAC,CAAC;AAEH,SAAgB,wCAAwC,CACtD,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,sDAA8C,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC1E,8DAA8D,CAC/D,CAAC;AACJ,CAAC"}
@@ -0,0 +1,81 @@
1
+ import * as z from "zod/v3";
2
+ import { ClosedEnum } from "../../types/enums.js";
3
+ import { Result as SafeParseResult } from "../../types/fp.js";
4
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
5
+ /**
6
+ * The event type. Matches the SSE `event` field.
7
+ */
8
+ export declare const ResponseReasoningSummaryPartStreamEventType: {
9
+ readonly ResponseReasoningSummaryPartAdded: "response.reasoning_summary_part.added";
10
+ readonly ResponseReasoningSummaryPartDone: "response.reasoning_summary_part.done";
11
+ };
12
+ /**
13
+ * The event type. Matches the SSE `event` field.
14
+ */
15
+ export type ResponseReasoningSummaryPartStreamEventType = ClosedEnum<typeof ResponseReasoningSummaryPartStreamEventType>;
16
+ /**
17
+ * The event payload.
18
+ */
19
+ export type ResponseReasoningSummaryPartStreamEventData = {
20
+ /**
21
+ * ID of the output item this event refers to.
22
+ */
23
+ itemId: string;
24
+ /**
25
+ * Index of the output item in the response output array.
26
+ */
27
+ outputIndex: number;
28
+ /**
29
+ * The reasoning summary part.
30
+ */
31
+ part: {
32
+ [k: string]: any;
33
+ };
34
+ /**
35
+ * Monotonically increasing sequence number for ordering events.
36
+ */
37
+ sequenceNumber: number;
38
+ /**
39
+ * Index of the reasoning summary part.
40
+ */
41
+ summaryIndex: number;
42
+ /**
43
+ * The event type. Matches the SSE `event` field.
44
+ */
45
+ type: ResponseReasoningSummaryPartStreamEventType;
46
+ additionalProperties?: {
47
+ [k: string]: any;
48
+ } | undefined;
49
+ };
50
+ /**
51
+ * The SSE event name, equal to the payload's `type`.
52
+ */
53
+ export declare const ResponseReasoningSummaryPartStreamEventEvent: {
54
+ readonly ResponseReasoningSummaryPartAdded: "response.reasoning_summary_part.added";
55
+ readonly ResponseReasoningSummaryPartDone: "response.reasoning_summary_part.done";
56
+ };
57
+ /**
58
+ * The SSE event name, equal to the payload's `type`.
59
+ */
60
+ export type ResponseReasoningSummaryPartStreamEventEvent = ClosedEnum<typeof ResponseReasoningSummaryPartStreamEventEvent>;
61
+ export type ResponseReasoningSummaryPartStreamEvent = {
62
+ /**
63
+ * The event payload.
64
+ */
65
+ data: ResponseReasoningSummaryPartStreamEventData;
66
+ /**
67
+ * The SSE event name, equal to the payload's `type`.
68
+ */
69
+ event: ResponseReasoningSummaryPartStreamEventEvent;
70
+ };
71
+ /** @internal */
72
+ export declare const ResponseReasoningSummaryPartStreamEventType$inboundSchema: z.ZodNativeEnum<typeof ResponseReasoningSummaryPartStreamEventType>;
73
+ /** @internal */
74
+ export declare const ResponseReasoningSummaryPartStreamEventData$inboundSchema: z.ZodType<ResponseReasoningSummaryPartStreamEventData, z.ZodTypeDef, unknown>;
75
+ export declare function responseReasoningSummaryPartStreamEventDataFromJSON(jsonString: string): SafeParseResult<ResponseReasoningSummaryPartStreamEventData, SDKValidationError>;
76
+ /** @internal */
77
+ export declare const ResponseReasoningSummaryPartStreamEventEvent$inboundSchema: z.ZodNativeEnum<typeof ResponseReasoningSummaryPartStreamEventEvent>;
78
+ /** @internal */
79
+ export declare const ResponseReasoningSummaryPartStreamEvent$inboundSchema: z.ZodType<ResponseReasoningSummaryPartStreamEvent, z.ZodTypeDef, unknown>;
80
+ export declare function responseReasoningSummaryPartStreamEventFromJSON(jsonString: string): SafeParseResult<ResponseReasoningSummaryPartStreamEvent, SDKValidationError>;
81
+ //# sourceMappingURL=responsereasoningsummarypartstreamevent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"responsereasoningsummarypartstreamevent.d.ts","sourceRoot":"","sources":["../../src/models/components/responsereasoningsummarypartstreamevent.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAM5B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE;;GAEG;AACH,eAAO,MAAM,2CAA2C;;;CAG9C,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,2CAA2C,GAAG,UAAU,CAClE,OAAO,2CAA2C,CACnD,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,2CAA2C,GAAG;IACxD;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,IAAI,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;IAC3B;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,IAAI,EAAE,2CAA2C,CAAC;IAClD,oBAAoB,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,GAAG,SAAS,CAAC;CACzD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,4CAA4C;;;CAG/C,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,4CAA4C,GAAG,UAAU,CACnE,OAAO,4CAA4C,CACpD,CAAC;AAEF,MAAM,MAAM,uCAAuC,GAAG;IACpD;;OAEG;IACH,IAAI,EAAE,2CAA2C,CAAC;IAClD;;OAEG;IACH,KAAK,EAAE,4CAA4C,CAAC;CACrD,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,yDAAyD,EACpE,CAAC,CAAC,aAAa,CAAC,OAAO,2CAA2C,CACR,CAAC;AAE7D,gBAAgB;AAChB,eAAO,MAAM,yDAAyD,EACpE,CAAC,CAAC,OAAO,CACP,2CAA2C,EAC3C,CAAC,CAAC,UAAU,EACZ,OAAO,CAmBP,CAAC;AAEL,wBAAgB,mDAAmD,CACjE,UAAU,EAAE,MAAM,GACjB,eAAe,CAChB,2CAA2C,EAC3C,kBAAkB,CACnB,CASA;AAED,gBAAgB;AAChB,eAAO,MAAM,0DAA0D,EACrE,CAAC,CAAC,aAAa,CAAC,OAAO,4CAA4C,CACR,CAAC;AAE9D,gBAAgB;AAChB,eAAO,MAAM,qDAAqD,EAAE,CAAC,CAAC,OAAO,CAC3E,uCAAuC,EACvC,CAAC,CAAC,UAAU,EACZ,OAAO,CAcP,CAAC;AAEH,wBAAgB,+CAA+C,CAC7D,UAAU,EAAE,MAAM,GACjB,eAAe,CAChB,uCAAuC,EACvC,kBAAkB,CACnB,CASA"}
@@ -0,0 +1,102 @@
1
+ "use strict";
2
+ /*
3
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.ResponseReasoningSummaryPartStreamEvent$inboundSchema = exports.ResponseReasoningSummaryPartStreamEventEvent$inboundSchema = exports.ResponseReasoningSummaryPartStreamEventData$inboundSchema = exports.ResponseReasoningSummaryPartStreamEventType$inboundSchema = exports.ResponseReasoningSummaryPartStreamEventEvent = exports.ResponseReasoningSummaryPartStreamEventType = void 0;
40
+ exports.responseReasoningSummaryPartStreamEventDataFromJSON = responseReasoningSummaryPartStreamEventDataFromJSON;
41
+ exports.responseReasoningSummaryPartStreamEventFromJSON = responseReasoningSummaryPartStreamEventFromJSON;
42
+ const z = __importStar(require("zod/v3"));
43
+ const primitives_js_1 = require("../../lib/primitives.js");
44
+ const schemas_js_1 = require("../../lib/schemas.js");
45
+ /**
46
+ * The event type. Matches the SSE `event` field.
47
+ */
48
+ exports.ResponseReasoningSummaryPartStreamEventType = {
49
+ ResponseReasoningSummaryPartAdded: "response.reasoning_summary_part.added",
50
+ ResponseReasoningSummaryPartDone: "response.reasoning_summary_part.done",
51
+ };
52
+ /**
53
+ * The SSE event name, equal to the payload's `type`.
54
+ */
55
+ exports.ResponseReasoningSummaryPartStreamEventEvent = {
56
+ ResponseReasoningSummaryPartAdded: "response.reasoning_summary_part.added",
57
+ ResponseReasoningSummaryPartDone: "response.reasoning_summary_part.done",
58
+ };
59
+ /** @internal */
60
+ exports.ResponseReasoningSummaryPartStreamEventType$inboundSchema = z
61
+ .nativeEnum(exports.ResponseReasoningSummaryPartStreamEventType);
62
+ /** @internal */
63
+ exports.ResponseReasoningSummaryPartStreamEventData$inboundSchema = (0, schemas_js_1.collectExtraKeys)(z.object({
64
+ item_id: z.string(),
65
+ output_index: z.number().int(),
66
+ part: z.record(z.any()),
67
+ sequence_number: z.number().int(),
68
+ summary_index: z.number().int(),
69
+ type: exports.ResponseReasoningSummaryPartStreamEventType$inboundSchema,
70
+ }).catchall(z.any()), "additionalProperties", true).transform((v) => {
71
+ return (0, primitives_js_1.remap)(v, {
72
+ "item_id": "itemId",
73
+ "output_index": "outputIndex",
74
+ "sequence_number": "sequenceNumber",
75
+ "summary_index": "summaryIndex",
76
+ });
77
+ });
78
+ function responseReasoningSummaryPartStreamEventDataFromJSON(jsonString) {
79
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ResponseReasoningSummaryPartStreamEventData$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ResponseReasoningSummaryPartStreamEventData' from JSON`);
80
+ }
81
+ /** @internal */
82
+ exports.ResponseReasoningSummaryPartStreamEventEvent$inboundSchema = z
83
+ .nativeEnum(exports.ResponseReasoningSummaryPartStreamEventEvent);
84
+ /** @internal */
85
+ exports.ResponseReasoningSummaryPartStreamEvent$inboundSchema = z.object({
86
+ data: z.unknown().transform((v, ctx) => {
87
+ if (typeof v !== "string")
88
+ return v;
89
+ try {
90
+ return JSON.parse(v);
91
+ }
92
+ catch (err) {
93
+ ctx.addIssue({ code: "custom", message: `malformed json: ${err}` });
94
+ return z.NEVER;
95
+ }
96
+ }).pipe(z.lazy(() => exports.ResponseReasoningSummaryPartStreamEventData$inboundSchema)),
97
+ event: exports.ResponseReasoningSummaryPartStreamEventEvent$inboundSchema,
98
+ });
99
+ function responseReasoningSummaryPartStreamEventFromJSON(jsonString) {
100
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ResponseReasoningSummaryPartStreamEvent$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ResponseReasoningSummaryPartStreamEvent' from JSON`);
101
+ }
102
+ //# sourceMappingURL=responsereasoningsummarypartstreamevent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"responsereasoningsummarypartstreamevent.js","sourceRoot":"","sources":["../../src/models/components/responsereasoningsummarypartstreamevent.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiHH,kHAcC;AA2BD,0GAcC;AAtKD,0CAA4B;AAC5B,2DAA0D;AAC1D,qDAG8B;AAK9B;;GAEG;AACU,QAAA,2CAA2C,GAAG;IACzD,iCAAiC,EAAE,uCAAuC;IAC1E,gCAAgC,EAAE,sCAAsC;CAChE,CAAC;AAuCX;;GAEG;AACU,QAAA,4CAA4C,GAAG;IAC1D,iCAAiC,EAAE,uCAAuC;IAC1E,gCAAgC,EAAE,sCAAsC;CAChE,CAAC;AAmBX,gBAAgB;AACH,QAAA,yDAAyD,GACE,CAAC;KACpE,UAAU,CAAC,mDAA2C,CAAC,CAAC;AAE7D,gBAAgB;AACH,QAAA,yDAAyD,GAKhE,IAAA,6BAAiB,EACnB,CAAC,CAAC,MAAM,CAAC;IACP,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;IACnB,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IAC9B,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC;IACvB,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IACjC,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IAC/B,IAAI,EAAE,iEAAyD;CAChE,CA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CAAC,CAAC;AAEH,SAAgB,+CAA+C,CAC7D,UAAkB;IAKlB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CACJ,6DAAqD,CAAC,KAAK,CACzD,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CACd,EACH,qEAAqE,CACtE,CAAC;AACJ,CAAC"}
@@ -0,0 +1,69 @@
1
+ import * as z from "zod/v3";
2
+ import { ClosedEnum } from "../../types/enums.js";
3
+ import { Result as SafeParseResult } from "../../types/fp.js";
4
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
5
+ /**
6
+ * The event type. Matches the SSE `event` field.
7
+ */
8
+ export declare const ResponseReasoningSummaryTextDeltaStreamEventType: {
9
+ readonly ResponseReasoningSummaryTextDelta: "response.reasoning_summary_text.delta";
10
+ };
11
+ /**
12
+ * The event type. Matches the SSE `event` field.
13
+ */
14
+ export type ResponseReasoningSummaryTextDeltaStreamEventType = ClosedEnum<typeof ResponseReasoningSummaryTextDeltaStreamEventType>;
15
+ /**
16
+ * The event payload.
17
+ */
18
+ export type ResponseReasoningSummaryTextDeltaStreamEventData = {
19
+ /**
20
+ * Incremental text or argument chunk.
21
+ */
22
+ delta: string;
23
+ /**
24
+ * ID of the output item this event refers to.
25
+ */
26
+ itemId: string;
27
+ /**
28
+ * Obfuscation padding accompanying the delta, when present.
29
+ */
30
+ obfuscation?: string | undefined;
31
+ /**
32
+ * Index of the output item in the response output array.
33
+ */
34
+ outputIndex: number;
35
+ /**
36
+ * Monotonically increasing sequence number for ordering events.
37
+ */
38
+ sequenceNumber: number;
39
+ /**
40
+ * Index of the reasoning summary part.
41
+ */
42
+ summaryIndex: number;
43
+ /**
44
+ * The event type. Matches the SSE `event` field.
45
+ */
46
+ type: ResponseReasoningSummaryTextDeltaStreamEventType;
47
+ additionalProperties?: {
48
+ [k: string]: any;
49
+ } | undefined;
50
+ };
51
+ export type ResponseReasoningSummaryTextDeltaStreamEvent = {
52
+ /**
53
+ * The event payload.
54
+ */
55
+ data: ResponseReasoningSummaryTextDeltaStreamEventData;
56
+ /**
57
+ * The SSE event name, equal to the payload's `type`.
58
+ */
59
+ event: "response.reasoning_summary_text.delta";
60
+ };
61
+ /** @internal */
62
+ export declare const ResponseReasoningSummaryTextDeltaStreamEventType$inboundSchema: z.ZodNativeEnum<typeof ResponseReasoningSummaryTextDeltaStreamEventType>;
63
+ /** @internal */
64
+ export declare const ResponseReasoningSummaryTextDeltaStreamEventData$inboundSchema: z.ZodType<ResponseReasoningSummaryTextDeltaStreamEventData, z.ZodTypeDef, unknown>;
65
+ export declare function responseReasoningSummaryTextDeltaStreamEventDataFromJSON(jsonString: string): SafeParseResult<ResponseReasoningSummaryTextDeltaStreamEventData, SDKValidationError>;
66
+ /** @internal */
67
+ export declare const ResponseReasoningSummaryTextDeltaStreamEvent$inboundSchema: z.ZodType<ResponseReasoningSummaryTextDeltaStreamEvent, z.ZodTypeDef, unknown>;
68
+ export declare function responseReasoningSummaryTextDeltaStreamEventFromJSON(jsonString: string): SafeParseResult<ResponseReasoningSummaryTextDeltaStreamEvent, SDKValidationError>;
69
+ //# sourceMappingURL=responsereasoningsummarytextdeltastreamevent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"responsereasoningsummarytextdeltastreamevent.d.ts","sourceRoot":"","sources":["../../src/models/components/responsereasoningsummarytextdeltastreamevent.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAM5B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE;;GAEG;AACH,eAAO,MAAM,gDAAgD;;CAEnD,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,gDAAgD,GAAG,UAAU,CACvE,OAAO,gDAAgD,CACxD,CAAC;AAEF;;GAE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+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || (function () {
22
+ var ownKeys = function(o) {
23
+ ownKeys = Object.getOwnPropertyNames || function (o) {
24
+ var ar = [];
25
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
+ return ar;
27
+ };
28
+ return ownKeys(o);
29
+ };
30
+ return function (mod) {
31
+ if (mod && mod.__esModule) return mod;
32
+ var result = {};
33
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
+ __setModuleDefault(result, mod);
35
+ return result;
36
+ };
37
+ })();
38
+ Object.defineProperty(exports, "__esModule", { value: true });
39
+ exports.ResponseReasoningSummaryTextDeltaStreamEvent$inboundSchema = exports.ResponseReasoningSummaryTextDeltaStreamEventData$inboundSchema = exports.ResponseReasoningSummaryTextDeltaStreamEventType$inboundSchema = exports.ResponseReasoningSummaryTextDeltaStreamEventType = void 0;
40
+ exports.responseReasoningSummaryTextDeltaStreamEventDataFromJSON = responseReasoningSummaryTextDeltaStreamEventDataFromJSON;
41
+ exports.responseReasoningSummaryTextDeltaStreamEventFromJSON = responseReasoningSummaryTextDeltaStreamEventFromJSON;
42
+ const z = __importStar(require("zod/v3"));
43
+ const primitives_js_1 = require("../../lib/primitives.js");
44
+ const schemas_js_1 = require("../../lib/schemas.js");
45
+ /**
46
+ * The event type. Matches the SSE `event` field.
47
+ */
48
+ exports.ResponseReasoningSummaryTextDeltaStreamEventType = {
49
+ ResponseReasoningSummaryTextDelta: "response.reasoning_summary_text.delta",
50
+ };
51
+ /** @internal */
52
+ exports.ResponseReasoningSummaryTextDeltaStreamEventType$inboundSchema = z
53
+ .nativeEnum(exports.ResponseReasoningSummaryTextDeltaStreamEventType);
54
+ /** @internal */
55
+ exports.ResponseReasoningSummaryTextDeltaStreamEventData$inboundSchema = (0, schemas_js_1.collectExtraKeys)(z.object({
56
+ delta: z.string(),
57
+ item_id: z.string(),
58
+ obfuscation: z.string().optional(),
59
+ output_index: z.number().int(),
60
+ sequence_number: z.number().int(),
61
+ summary_index: z.number().int(),
62
+ type: exports.ResponseReasoningSummaryTextDeltaStreamEventType$inboundSchema,
63
+ }).catchall(z.any()), "additionalProperties", true).transform((v) => {
64
+ return (0, primitives_js_1.remap)(v, {
65
+ "item_id": "itemId",
66
+ "output_index": "outputIndex",
67
+ "sequence_number": "sequenceNumber",
68
+ "summary_index": "summaryIndex",
69
+ });
70
+ });
71
+ function responseReasoningSummaryTextDeltaStreamEventDataFromJSON(jsonString) {
72
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ResponseReasoningSummaryTextDeltaStreamEventData$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ResponseReasoningSummaryTextDeltaStreamEventData' from JSON`);
73
+ }
74
+ /** @internal */
75
+ exports.ResponseReasoningSummaryTextDeltaStreamEvent$inboundSchema = z.object({
76
+ data: z.unknown().transform((v, ctx) => {
77
+ if (typeof v !== "string")
78
+ return v;
79
+ try {
80
+ return JSON.parse(v);
81
+ }
82
+ catch (err) {
83
+ ctx.addIssue({ code: "custom", message: `malformed json: ${err}` });
84
+ return z.NEVER;
85
+ }
86
+ }).pipe(z.lazy(() => exports.ResponseReasoningSummaryTextDeltaStreamEventData$inboundSchema)),
87
+ event: z.literal("response.reasoning_summary_text.delta"),
88
+ });
89
+ function responseReasoningSummaryTextDeltaStreamEventFromJSON(jsonString) {
90
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ResponseReasoningSummaryTextDeltaStreamEvent$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ResponseReasoningSummaryTextDeltaStreamEvent' from JSON`);
91
+ }
92
+ //# sourceMappingURL=responsereasoningsummarytextdeltastreamevent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"responsereasoningsummarytextdeltastreamevent.js","sourceRoot":"","sources":["../../src/models/components/responsereasoningsummarytextdeltastreamevent.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuGH,4HAcC;AAyBD,oHAcC;AA1JD,0CAA4B;AAC5B,2DAA0D;AAC1D,qDAG8B;AAK9B;;GAEG;AACU,QAAA,gDAAgD,GAAG;IAC9D,iCAAiC,EAAE,uCAAuC;CAClE,CAAC;AAsDX,gBAAgB;AACH,QAAA,8DAA8D,GACE,CAAC;KACzE,UAAU,CAAC,wDAAgD,CAAC,CAAC;AAElE,gBAAgB;AACH,QAAA,8DAA8D,GAKrE,IAAA,6BAAiB,EACnB,CAAC,CAAC,MAAM,CAAC;IACP,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;IACnB,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAClC,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IAC9B,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IACjC,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IAC/B,IAAI,EAAE,sEAA8D;CACrE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,EACpB,sBAAsB,EACtB,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AAC,KAAK,CAC9D,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CACd,EACH,0EAA0E,CAC3E,CAAC;AACJ,CAAC"}
@@ -0,0 +1,65 @@
1
+ import * as z from "zod/v3";
2
+ import { ClosedEnum } from "../../types/enums.js";
3
+ import { Result as SafeParseResult } from "../../types/fp.js";
4
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
5
+ /**
6
+ * The event type. Matches the SSE `event` field.
7
+ */
8
+ export declare const ResponseReasoningSummaryTextDoneStreamEventType: {
9
+ readonly ResponseReasoningSummaryTextDone: "response.reasoning_summary_text.done";
10
+ };
11
+ /**
12
+ * The event type. Matches the SSE `event` field.
13
+ */
14
+ export type ResponseReasoningSummaryTextDoneStreamEventType = ClosedEnum<typeof ResponseReasoningSummaryTextDoneStreamEventType>;
15
+ /**
16
+ * The event payload.
17
+ */
18
+ export type ResponseReasoningSummaryTextDoneStreamEventData = {
19
+ /**
20
+ * ID of the output item this event refers to.
21
+ */
22
+ itemId: string;
23
+ /**
24
+ * Index of the output item in the response output array.
25
+ */
26
+ outputIndex: number;
27
+ /**
28
+ * Monotonically increasing sequence number for ordering events.
29
+ */
30
+ sequenceNumber: number;
31
+ /**
32
+ * Index of the reasoning summary part.
33
+ */
34
+ summaryIndex: number;
35
+ /**
36
+ * The completed reasoning summary text.
37
+ */
38
+ text: string;
39
+ /**
40
+ * The event type. Matches the SSE `event` field.
41
+ */
42
+ type: ResponseReasoningSummaryTextDoneStreamEventType;
43
+ additionalProperties?: {
44
+ [k: string]: any;
45
+ } | undefined;
46
+ };
47
+ export type ResponseReasoningSummaryTextDoneStreamEvent = {
48
+ /**
49
+ * The event payload.
50
+ */
51
+ data: ResponseReasoningSummaryTextDoneStreamEventData;
52
+ /**
53
+ * The SSE event name, equal to the payload's `type`.
54
+ */
55
+ event: "response.reasoning_summary_text.done";
56
+ };
57
+ /** @internal */
58
+ export declare const ResponseReasoningSummaryTextDoneStreamEventType$inboundSchema: z.ZodNativeEnum<typeof ResponseReasoningSummaryTextDoneStreamEventType>;
59
+ /** @internal */
60
+ export declare const ResponseReasoningSummaryTextDoneStreamEventData$inboundSchema: z.ZodType<ResponseReasoningSummaryTextDoneStreamEventData, z.ZodTypeDef, unknown>;
61
+ export declare function responseReasoningSummaryTextDoneStreamEventDataFromJSON(jsonString: string): SafeParseResult<ResponseReasoningSummaryTextDoneStreamEventData, SDKValidationError>;
62
+ /** @internal */
63
+ export declare const ResponseReasoningSummaryTextDoneStreamEvent$inboundSchema: z.ZodType<ResponseReasoningSummaryTextDoneStreamEvent, z.ZodTypeDef, unknown>;
64
+ export declare function responseReasoningSummaryTextDoneStreamEventFromJSON(jsonString: string): SafeParseResult<ResponseReasoningSummaryTextDoneStreamEvent, SDKValidationError>;
65
+ //# sourceMappingURL=responsereasoningsummarytextdonestreamevent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"responsereasoningsummarytextdonestreamevent.d.ts","sourceRoot":"","sources":["../../src/models/components/responsereasoningsummarytextdonestreamevent.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAM5B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE;;GAEG;AACH,eAAO,MAAM,+CAA+C;;CAElD,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,+CAA+C,GAAG,UAAU,CACtE,OAAO,+CAA+C,CACvD,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,+CAA+C,GAAG;IAC5D;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,IAAI,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