@openrouter/sdk 0.0.1-beta.6 → 0.0.1-beta.7

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 (251) hide show
  1. package/jsr.json +1 -1
  2. package/lib/base64.d.ts +3 -3
  3. package/lib/base64.js +1 -1
  4. package/lib/config.d.ts +3 -3
  5. package/lib/config.js +3 -3
  6. package/lib/env.d.ts +2 -2
  7. package/lib/env.js +1 -1
  8. package/lib/schemas.d.ts +6 -4
  9. package/lib/schemas.js +1 -1
  10. package/models/activityitem.d.ts +5 -5
  11. package/models/activityitem.js +3 -2
  12. package/models/assistantmessage.d.ts +9 -9
  13. package/models/assistantmessage.js +1 -1
  14. package/models/chatcompletionfinishreason.d.ts +5 -5
  15. package/models/chatcompletionfinishreason.js +3 -3
  16. package/models/chaterror.d.ts +9 -9
  17. package/models/chaterror.js +9 -4
  18. package/models/chatgenerationparams.d.ts +33 -33
  19. package/models/chatgenerationparams.js +7 -7
  20. package/models/chatgenerationtokenusage.d.ts +13 -13
  21. package/models/chatgenerationtokenusage.js +1 -1
  22. package/models/chatmessagecontentitem.d.ts +5 -5
  23. package/models/chatmessagecontentitem.js +1 -1
  24. package/models/chatmessagecontentitemaudio.d.ts +13 -13
  25. package/models/chatmessagecontentitemaudio.js +5 -4
  26. package/models/chatmessagecontentitemimage.d.ts +13 -13
  27. package/models/chatmessagecontentitemimage.js +5 -4
  28. package/models/chatmessagecontentitemtext.d.ts +5 -5
  29. package/models/chatmessagecontentitemtext.js +1 -1
  30. package/models/chatmessagetokenlogprob.d.ts +9 -9
  31. package/models/chatmessagetokenlogprob.js +1 -1
  32. package/models/chatmessagetokenlogprobs.d.ts +5 -5
  33. package/models/chatmessagetokenlogprobs.js +1 -1
  34. package/models/chatmessagetoolcall.d.ts +9 -9
  35. package/models/chatmessagetoolcall.js +1 -1
  36. package/models/chatresponse.d.ts +5 -5
  37. package/models/chatresponse.js +3 -2
  38. package/models/chatresponsechoice.d.ts +5 -5
  39. package/models/chatresponsechoice.js +1 -1
  40. package/models/chatstreamingchoice.d.ts +5 -5
  41. package/models/chatstreamingchoice.js +1 -1
  42. package/models/chatstreamingmessagechunk.d.ts +9 -9
  43. package/models/chatstreamingmessagechunk.js +2 -2
  44. package/models/chatstreamingmessagetoolcall.d.ts +9 -9
  45. package/models/chatstreamingmessagetoolcall.js +1 -1
  46. package/models/chatstreamingresponsechunk.d.ts +13 -13
  47. package/models/chatstreamingresponsechunk.js +3 -5
  48. package/models/chatstreamoptions.d.ts +5 -5
  49. package/models/chatstreamoptions.js +1 -1
  50. package/models/completionchoice.d.ts +9 -9
  51. package/models/completionchoice.js +3 -3
  52. package/models/completioncreateparams.d.ts +33 -33
  53. package/models/completioncreateparams.js +10 -9
  54. package/models/completionlogprobs.d.ts +5 -5
  55. package/models/completionlogprobs.js +3 -3
  56. package/models/completionresponse.d.ts +5 -5
  57. package/models/completionresponse.js +1 -1
  58. package/models/completionusage.d.ts +5 -5
  59. package/models/completionusage.js +1 -1
  60. package/models/createchargerequest.d.ts +5 -5
  61. package/models/createchargerequest.js +1 -1
  62. package/models/errorresponse.d.ts +13 -13
  63. package/models/errorresponse.js +7 -6
  64. package/models/errors/chaterror.d.ts +5 -5
  65. package/models/errors/chaterror.js +4 -4
  66. package/models/errors/errorresponse.d.ts +5 -5
  67. package/models/errors/errorresponse.js +6 -5
  68. package/models/errors/listproviders.d.ts +5 -5
  69. package/models/errors/listproviders.js +4 -4
  70. package/models/errors/responsevalidationerror.js +1 -1
  71. package/models/errors/sdkvalidationerror.d.ts +2 -2
  72. package/models/errors/sdkvalidationerror.js +3 -50
  73. package/models/filecitationannotation.d.ts +9 -9
  74. package/models/filecitationannotation.js +2 -2
  75. package/models/filepathannotation.d.ts +9 -9
  76. package/models/filepathannotation.js +2 -2
  77. package/models/imagegenerationstatus.d.ts +5 -5
  78. package/models/imagegenerationstatus.js +3 -3
  79. package/models/jsonschemaconfig.d.ts +5 -5
  80. package/models/jsonschemaconfig.js +3 -3
  81. package/models/listendpointsresponse.d.ts +5 -5
  82. package/models/listendpointsresponse.js +1 -1
  83. package/models/message.d.ts +13 -13
  84. package/models/message.js +3 -2
  85. package/models/modelscountresponse.d.ts +5 -5
  86. package/models/modelscountresponse.js +1 -1
  87. package/models/modelslistresponse.d.ts +5 -5
  88. package/models/modelslistresponse.js +1 -1
  89. package/models/namedtoolchoice.d.ts +9 -9
  90. package/models/namedtoolchoice.js +1 -1
  91. package/models/openresponseseasyinputmessage.d.ts +33 -33
  92. package/models/openresponseseasyinputmessage.js +6 -9
  93. package/models/openresponsesformatjsonobject.d.ts +9 -9
  94. package/models/openresponsesformatjsonobject.js +2 -2
  95. package/models/openresponsesformatjsonschema.d.ts +9 -9
  96. package/models/openresponsesformatjsonschema.js +4 -4
  97. package/models/openresponsesformattext.d.ts +9 -9
  98. package/models/openresponsesformattext.js +2 -2
  99. package/models/openresponsesformattextconfig.d.ts +5 -5
  100. package/models/openresponsesformattextconfig.js +1 -1
  101. package/models/openresponsesfunctioncalloutput.d.ts +9 -9
  102. package/models/openresponsesfunctioncalloutput.js +2 -2
  103. package/models/openresponsesfunctiontoolcall.d.ts +9 -9
  104. package/models/openresponsesfunctiontoolcall.js +2 -2
  105. package/models/openresponsesinput.d.ts +5 -5
  106. package/models/openresponsesinput.js +1 -1
  107. package/models/openresponsesinputcontent.d.ts +5 -5
  108. package/models/openresponsesinputcontent.js +1 -1
  109. package/models/openresponsesinputfile.d.ts +9 -9
  110. package/models/openresponsesinputfile.js +2 -2
  111. package/models/openresponsesinputimage.d.ts +13 -13
  112. package/models/openresponsesinputimage.js +4 -4
  113. package/models/openresponsesinputitem.d.ts +5 -5
  114. package/models/openresponsesinputitem.js +1 -1
  115. package/models/openresponsesinputmessageitem.d.ts +25 -25
  116. package/models/openresponsesinputmessageitem.js +5 -7
  117. package/models/openresponsesinputtext.d.ts +9 -9
  118. package/models/openresponsesinputtext.js +2 -2
  119. package/models/openresponseslogprobs.d.ts +9 -9
  120. package/models/openresponseslogprobs.js +1 -1
  121. package/models/openresponsesnonstreamingresponse.d.ts +29 -29
  122. package/models/openresponsesnonstreamingresponse.js +17 -17
  123. package/models/openresponsesoutputtext.d.ts +13 -13
  124. package/models/openresponsesoutputtext.js +2 -2
  125. package/models/openresponsesprompt.d.ts +5 -5
  126. package/models/openresponsesprompt.js +3 -5
  127. package/models/openresponsesreasoning.d.ts +13 -13
  128. package/models/openresponsesreasoning.js +4 -4
  129. package/models/openresponsesreasoningconfig.d.ts +9 -9
  130. package/models/openresponsesreasoningconfig.js +3 -3
  131. package/models/openresponsesrefusalcontent.d.ts +9 -9
  132. package/models/openresponsesrefusalcontent.js +2 -2
  133. package/models/openresponsesrequest.d.ts +5 -5
  134. package/models/openresponsesrequest.js +1 -1
  135. package/models/openresponsesstreamevent.d.ts +233 -233
  136. package/models/openresponsesstreamevent.js +42 -43
  137. package/models/openresponsestextconfig.d.ts +9 -9
  138. package/models/openresponsestextconfig.js +5 -4
  139. package/models/openresponsestoolchoice.d.ts +25 -25
  140. package/models/openresponsestoolchoice.js +5 -5
  141. package/models/openresponsestoolunion.d.ts +13 -13
  142. package/models/openresponsestoolunion.js +4 -4
  143. package/models/openresponseswebsearch20250826tool.d.ts +13 -13
  144. package/models/openresponseswebsearch20250826tool.js +2 -2
  145. package/models/openresponseswebsearchpreview20250311tool.d.ts +9 -9
  146. package/models/openresponseswebsearchpreview20250311tool.js +2 -3
  147. package/models/openresponseswebsearchpreviewtool.d.ts +9 -9
  148. package/models/openresponseswebsearchpreviewtool.js +2 -2
  149. package/models/openresponseswebsearchtool.d.ts +13 -13
  150. package/models/openresponseswebsearchtool.js +2 -2
  151. package/models/operations/createapialpharesponses.d.ts +9 -9
  152. package/models/operations/createapialpharesponses.js +2 -3
  153. package/models/operations/createcoinbasecharge.d.ts +29 -29
  154. package/models/operations/createcoinbasecharge.js +7 -4
  155. package/models/operations/createkeys.d.ts +17 -17
  156. package/models/operations/createkeys.js +3 -3
  157. package/models/operations/deletekeys.d.ts +9 -9
  158. package/models/operations/deletekeys.js +1 -1
  159. package/models/operations/getcredits.d.ts +5 -5
  160. package/models/operations/getcredits.js +1 -1
  161. package/models/operations/getcurrentkey.d.ts +13 -13
  162. package/models/operations/getcurrentkey.js +1 -1
  163. package/models/operations/getgeneration.d.ts +17 -17
  164. package/models/operations/getgeneration.js +3 -3
  165. package/models/operations/getkey.d.ts +13 -13
  166. package/models/operations/getkey.js +5 -3
  167. package/models/operations/getmodels.d.ts +9 -9
  168. package/models/operations/getmodels.js +1 -1
  169. package/models/operations/getparameters.d.ts +25 -25
  170. package/models/operations/getparameters.js +5 -5
  171. package/models/operations/getuseractivity.d.ts +9 -9
  172. package/models/operations/getuseractivity.js +1 -1
  173. package/models/operations/list.d.ts +13 -13
  174. package/models/operations/list.js +7 -4
  175. package/models/operations/listendpoints.d.ts +9 -9
  176. package/models/operations/listendpoints.js +1 -1
  177. package/models/operations/listendpointszdr.d.ts +9 -9
  178. package/models/operations/listendpointszdr.js +1 -1
  179. package/models/operations/listmodelscount.d.ts +5 -5
  180. package/models/operations/listmodelscount.js +1 -1
  181. package/models/operations/listmodelsuser.d.ts +9 -9
  182. package/models/operations/listmodelsuser.js +1 -1
  183. package/models/operations/listproviders.d.ts +13 -13
  184. package/models/operations/listproviders.js +4 -4
  185. package/models/operations/sendchatcompletionrequest.d.ts +5 -5
  186. package/models/operations/sendchatcompletionrequest.js +2 -3
  187. package/models/operations/updatekeys.d.ts +21 -21
  188. package/models/operations/updatekeys.js +3 -3
  189. package/models/outputtextcontent.d.ts +13 -13
  190. package/models/outputtextcontent.js +2 -2
  191. package/models/publicendpoint.d.ts +5 -5
  192. package/models/publicendpoint.js +1 -1
  193. package/models/reasoningsummarytext.d.ts +9 -9
  194. package/models/reasoningsummarytext.js +2 -2
  195. package/models/reasoningsummaryverbosity.d.ts +5 -5
  196. package/models/reasoningsummaryverbosity.js +3 -3
  197. package/models/reasoningtextcontent.d.ts +9 -9
  198. package/models/reasoningtextcontent.js +2 -2
  199. package/models/refusalcontent.d.ts +9 -9
  200. package/models/refusalcontent.js +2 -2
  201. package/models/responseformatjsonschema.d.ts +5 -5
  202. package/models/responseformatjsonschema.js +1 -1
  203. package/models/responseformattextgrammar.d.ts +5 -5
  204. package/models/responseformattextgrammar.js +1 -1
  205. package/models/responseserrorfield.d.ts +9 -9
  206. package/models/responseserrorfield.js +3 -3
  207. package/models/responsesimagegenerationcall.d.ts +9 -9
  208. package/models/responsesimagegenerationcall.js +2 -2
  209. package/models/responsesoutputitem.d.ts +5 -5
  210. package/models/responsesoutputitem.js +1 -1
  211. package/models/responsesoutputitemfilesearchcall.d.ts +9 -9
  212. package/models/responsesoutputitemfilesearchcall.js +2 -2
  213. package/models/responsesoutputitemfunctioncall.d.ts +9 -9
  214. package/models/responsesoutputitemfunctioncall.js +2 -2
  215. package/models/responsesoutputitemreasoning.d.ts +9 -9
  216. package/models/responsesoutputitemreasoning.js +2 -2
  217. package/models/responsesoutputmessage.d.ts +33 -33
  218. package/models/responsesoutputmessage.js +9 -9
  219. package/models/responsessearchcontextsize.d.ts +5 -5
  220. package/models/responsessearchcontextsize.js +3 -3
  221. package/models/responsesusage.d.ts +17 -17
  222. package/models/responsesusage.js +3 -2
  223. package/models/responseswebsearchcalloutput.d.ts +9 -9
  224. package/models/responseswebsearchcalloutput.js +2 -2
  225. package/models/responseswebsearchuserlocation.d.ts +9 -9
  226. package/models/responseswebsearchuserlocation.js +2 -2
  227. package/models/security.d.ts +5 -5
  228. package/models/security.js +3 -2
  229. package/models/systemmessage.d.ts +9 -9
  230. package/models/systemmessage.js +3 -2
  231. package/models/tool.d.ts +9 -9
  232. package/models/tool.js +6 -6
  233. package/models/toolcallstatus.d.ts +5 -5
  234. package/models/toolcallstatus.js +3 -3
  235. package/models/toolchoicetypes.d.ts +29 -29
  236. package/models/toolchoicetypes.js +8 -9
  237. package/models/toolresponsemessage.d.ts +9 -9
  238. package/models/toolresponsemessage.js +1 -1
  239. package/models/urlcitationannotation.d.ts +9 -9
  240. package/models/urlcitationannotation.js +2 -2
  241. package/models/usermessage.d.ts +9 -9
  242. package/models/usermessage.js +7 -3
  243. package/models/websearchpreviewtooluserlocation.d.ts +9 -9
  244. package/models/websearchpreviewtooluserlocation.js +2 -2
  245. package/models/websearchstatus.d.ts +5 -5
  246. package/models/websearchstatus.js +3 -3
  247. package/package.json +1 -1
  248. package/types/blobs.d.ts +2 -2
  249. package/types/blobs.js +2 -2
  250. package/types/constdatetime.d.ts +2 -2
  251. package/types/constdatetime.js +1 -1
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
- import * as z from "zod/v3";
4
+ import * as z from "zod/v4";
5
5
  import { remap as remap$ } from "../lib/primitives.js";
6
6
  import { safeParse } from "../lib/schemas.js";
7
7
  import { FileCitationAnnotation$inboundSchema, FileCitationAnnotation$outboundSchema, } from "./filecitationannotation.js";
@@ -96,8 +96,7 @@ export const TypeResponseCreated = {
96
96
  ResponseCreated: "response.created",
97
97
  };
98
98
  /** @internal */
99
- export const TypeResponseImageGenerationCallCompleted$inboundSchema = z
100
- .nativeEnum(TypeResponseImageGenerationCallCompleted);
99
+ export const TypeResponseImageGenerationCallCompleted$inboundSchema = z.enum(TypeResponseImageGenerationCallCompleted);
101
100
  /** @internal */
102
101
  export const TypeResponseImageGenerationCallCompleted$outboundSchema = TypeResponseImageGenerationCallCompleted$inboundSchema;
103
102
  /**
@@ -157,8 +156,7 @@ export function openResponsesStreamEventResponseImageGenerationCallCompletedFrom
157
156
  .parse(JSON.parse(x)), `Failed to parse 'OpenResponsesStreamEventResponseImageGenerationCallCompleted' from JSON`);
158
157
  }
159
158
  /** @internal */
160
- export const TypeResponseImageGenerationCallPartialImage$inboundSchema = z
161
- .nativeEnum(TypeResponseImageGenerationCallPartialImage);
159
+ export const TypeResponseImageGenerationCallPartialImage$inboundSchema = z.enum(TypeResponseImageGenerationCallPartialImage);
162
160
  /** @internal */
163
161
  export const TypeResponseImageGenerationCallPartialImage$outboundSchema = TypeResponseImageGenerationCallPartialImage$inboundSchema;
164
162
  /**
@@ -226,8 +224,7 @@ export function openResponsesStreamEventResponseImageGenerationCallPartialImageF
226
224
  .parse(JSON.parse(x)), `Failed to parse 'OpenResponsesStreamEventResponseImageGenerationCallPartialImage' from JSON`);
227
225
  }
228
226
  /** @internal */
229
- export const TypeResponseImageGenerationCallGenerating$inboundSchema = z
230
- .nativeEnum(TypeResponseImageGenerationCallGenerating);
227
+ export const TypeResponseImageGenerationCallGenerating$inboundSchema = z.enum(TypeResponseImageGenerationCallGenerating);
231
228
  /** @internal */
232
229
  export const TypeResponseImageGenerationCallGenerating$outboundSchema = TypeResponseImageGenerationCallGenerating$inboundSchema;
233
230
  /**
@@ -287,8 +284,7 @@ export function openResponsesStreamEventResponseImageGenerationCallGeneratingFro
287
284
  .parse(JSON.parse(x)), `Failed to parse 'OpenResponsesStreamEventResponseImageGenerationCallGenerating' from JSON`);
288
285
  }
289
286
  /** @internal */
290
- export const TypeResponseImageGenerationCallInProgress$inboundSchema = z
291
- .nativeEnum(TypeResponseImageGenerationCallInProgress);
287
+ export const TypeResponseImageGenerationCallInProgress$inboundSchema = z.enum(TypeResponseImageGenerationCallInProgress);
292
288
  /** @internal */
293
289
  export const TypeResponseImageGenerationCallInProgress$outboundSchema = TypeResponseImageGenerationCallInProgress$inboundSchema;
294
290
  /**
@@ -348,7 +344,7 @@ export function openResponsesStreamEventResponseImageGenerationCallInProgressFro
348
344
  .parse(JSON.parse(x)), `Failed to parse 'OpenResponsesStreamEventResponseImageGenerationCallInProgress' from JSON`);
349
345
  }
350
346
  /** @internal */
351
- export const TypeResponseReasoningSummaryTextDone$inboundSchema = z.nativeEnum(TypeResponseReasoningSummaryTextDone);
347
+ export const TypeResponseReasoningSummaryTextDone$inboundSchema = z.enum(TypeResponseReasoningSummaryTextDone);
352
348
  /** @internal */
353
349
  export const TypeResponseReasoningSummaryTextDone$outboundSchema = TypeResponseReasoningSummaryTextDone$inboundSchema;
354
350
  /**
@@ -414,7 +410,7 @@ export function openResponsesStreamEventResponseReasoningSummaryTextDoneFromJSON
414
410
  .parse(JSON.parse(x)), `Failed to parse 'OpenResponsesStreamEventResponseReasoningSummaryTextDone' from JSON`);
415
411
  }
416
412
  /** @internal */
417
- export const TypeResponseReasoningSummaryTextDelta$inboundSchema = z.nativeEnum(TypeResponseReasoningSummaryTextDelta);
413
+ export const TypeResponseReasoningSummaryTextDelta$inboundSchema = z.enum(TypeResponseReasoningSummaryTextDelta);
418
414
  /** @internal */
419
415
  export const TypeResponseReasoningSummaryTextDelta$outboundSchema = TypeResponseReasoningSummaryTextDelta$inboundSchema;
420
416
  /**
@@ -480,7 +476,7 @@ export function openResponsesStreamEventResponseReasoningSummaryTextDeltaFromJSO
480
476
  .parse(JSON.parse(x)), `Failed to parse 'OpenResponsesStreamEventResponseReasoningSummaryTextDelta' from JSON`);
481
477
  }
482
478
  /** @internal */
483
- export const TypeResponseReasoningSummaryPartDone$inboundSchema = z.nativeEnum(TypeResponseReasoningSummaryPartDone);
479
+ export const TypeResponseReasoningSummaryPartDone$inboundSchema = z.enum(TypeResponseReasoningSummaryPartDone);
484
480
  /** @internal */
485
481
  export const TypeResponseReasoningSummaryPartDone$outboundSchema = TypeResponseReasoningSummaryPartDone$inboundSchema;
486
482
  /**
@@ -546,7 +542,7 @@ export function openResponsesStreamEventResponseReasoningSummaryPartDoneFromJSON
546
542
  .parse(JSON.parse(x)), `Failed to parse 'OpenResponsesStreamEventResponseReasoningSummaryPartDone' from JSON`);
547
543
  }
548
544
  /** @internal */
549
- export const TypeResponseReasoningSummaryPartAdded$inboundSchema = z.nativeEnum(TypeResponseReasoningSummaryPartAdded);
545
+ export const TypeResponseReasoningSummaryPartAdded$inboundSchema = z.enum(TypeResponseReasoningSummaryPartAdded);
550
546
  /** @internal */
551
547
  export const TypeResponseReasoningSummaryPartAdded$outboundSchema = TypeResponseReasoningSummaryPartAdded$inboundSchema;
552
548
  /**
@@ -612,7 +608,7 @@ export function openResponsesStreamEventResponseReasoningSummaryPartAddedFromJSO
612
608
  .parse(JSON.parse(x)), `Failed to parse 'OpenResponsesStreamEventResponseReasoningSummaryPartAdded' from JSON`);
613
609
  }
614
610
  /** @internal */
615
- export const TypeResponseReasoningTextDone$inboundSchema = z.nativeEnum(TypeResponseReasoningTextDone);
611
+ export const TypeResponseReasoningTextDone$inboundSchema = z.enum(TypeResponseReasoningTextDone);
616
612
  /** @internal */
617
613
  export const TypeResponseReasoningTextDone$outboundSchema = TypeResponseReasoningTextDone$inboundSchema;
618
614
  /**
@@ -627,7 +623,8 @@ export var TypeResponseReasoningTextDone$;
627
623
  TypeResponseReasoningTextDone$.outboundSchema = TypeResponseReasoningTextDone$outboundSchema;
628
624
  })(TypeResponseReasoningTextDone$ || (TypeResponseReasoningTextDone$ = {}));
629
625
  /** @internal */
630
- export const OpenResponsesStreamEventResponseReasoningTextDone$inboundSchema = z.object({
626
+ export const OpenResponsesStreamEventResponseReasoningTextDone$inboundSchema = z
627
+ .object({
631
628
  type: TypeResponseReasoningTextDone$inboundSchema,
632
629
  output_index: z.number(),
633
630
  item_id: z.string(),
@@ -676,7 +673,7 @@ export function openResponsesStreamEventResponseReasoningTextDoneFromJSON(jsonSt
676
673
  return safeParse(jsonString, (x) => OpenResponsesStreamEventResponseReasoningTextDone$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OpenResponsesStreamEventResponseReasoningTextDone' from JSON`);
677
674
  }
678
675
  /** @internal */
679
- export const TypeResponseReasoningTextDelta$inboundSchema = z.nativeEnum(TypeResponseReasoningTextDelta);
676
+ export const TypeResponseReasoningTextDelta$inboundSchema = z.enum(TypeResponseReasoningTextDelta);
680
677
  /** @internal */
681
678
  export const TypeResponseReasoningTextDelta$outboundSchema = TypeResponseReasoningTextDelta$inboundSchema;
682
679
  /**
@@ -691,7 +688,8 @@ export var TypeResponseReasoningTextDelta$;
691
688
  TypeResponseReasoningTextDelta$.outboundSchema = TypeResponseReasoningTextDelta$outboundSchema;
692
689
  })(TypeResponseReasoningTextDelta$ || (TypeResponseReasoningTextDelta$ = {}));
693
690
  /** @internal */
694
- export const OpenResponsesStreamEventResponseReasoningTextDelta$inboundSchema = z.object({
691
+ export const OpenResponsesStreamEventResponseReasoningTextDelta$inboundSchema = z
692
+ .object({
695
693
  type: TypeResponseReasoningTextDelta$inboundSchema,
696
694
  output_index: z.number(),
697
695
  item_id: z.string(),
@@ -740,7 +738,7 @@ export function openResponsesStreamEventResponseReasoningTextDeltaFromJSON(jsonS
740
738
  return safeParse(jsonString, (x) => OpenResponsesStreamEventResponseReasoningTextDelta$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OpenResponsesStreamEventResponseReasoningTextDelta' from JSON`);
741
739
  }
742
740
  /** @internal */
743
- export const TypeResponseFunctionCallArgumentsDone$inboundSchema = z.nativeEnum(TypeResponseFunctionCallArgumentsDone);
741
+ export const TypeResponseFunctionCallArgumentsDone$inboundSchema = z.enum(TypeResponseFunctionCallArgumentsDone);
744
742
  /** @internal */
745
743
  export const TypeResponseFunctionCallArgumentsDone$outboundSchema = TypeResponseFunctionCallArgumentsDone$inboundSchema;
746
744
  /**
@@ -804,7 +802,7 @@ export function openResponsesStreamEventResponseFunctionCallArgumentsDoneFromJSO
804
802
  .parse(JSON.parse(x)), `Failed to parse 'OpenResponsesStreamEventResponseFunctionCallArgumentsDone' from JSON`);
805
803
  }
806
804
  /** @internal */
807
- export const TypeResponseFunctionCallArgumentsDelta$inboundSchema = z.nativeEnum(TypeResponseFunctionCallArgumentsDelta);
805
+ export const TypeResponseFunctionCallArgumentsDelta$inboundSchema = z.enum(TypeResponseFunctionCallArgumentsDelta);
808
806
  /** @internal */
809
807
  export const TypeResponseFunctionCallArgumentsDelta$outboundSchema = TypeResponseFunctionCallArgumentsDelta$inboundSchema;
810
808
  /**
@@ -866,7 +864,7 @@ export function openResponsesStreamEventResponseFunctionCallArgumentsDeltaFromJS
866
864
  .parse(JSON.parse(x)), `Failed to parse 'OpenResponsesStreamEventResponseFunctionCallArgumentsDelta' from JSON`);
867
865
  }
868
866
  /** @internal */
869
- export const TypeResponseOutputTextAnnotationAdded$inboundSchema = z.nativeEnum(TypeResponseOutputTextAnnotationAdded);
867
+ export const TypeResponseOutputTextAnnotationAdded$inboundSchema = z.enum(TypeResponseOutputTextAnnotationAdded);
870
868
  /** @internal */
871
869
  export const TypeResponseOutputTextAnnotationAdded$outboundSchema = TypeResponseOutputTextAnnotationAdded$inboundSchema;
872
870
  /**
@@ -973,7 +971,7 @@ export function openResponsesStreamEventResponseOutputTextAnnotationAddedFromJSO
973
971
  .parse(JSON.parse(x)), `Failed to parse 'OpenResponsesStreamEventResponseOutputTextAnnotationAdded' from JSON`);
974
972
  }
975
973
  /** @internal */
976
- export const TypeResponseRefusalDone$inboundSchema = z.nativeEnum(TypeResponseRefusalDone);
974
+ export const TypeResponseRefusalDone$inboundSchema = z.enum(TypeResponseRefusalDone);
977
975
  /** @internal */
978
976
  export const TypeResponseRefusalDone$outboundSchema = TypeResponseRefusalDone$inboundSchema;
979
977
  /**
@@ -1037,7 +1035,7 @@ export function openResponsesStreamEventResponseRefusalDoneFromJSON(jsonString)
1037
1035
  return safeParse(jsonString, (x) => OpenResponsesStreamEventResponseRefusalDone$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OpenResponsesStreamEventResponseRefusalDone' from JSON`);
1038
1036
  }
1039
1037
  /** @internal */
1040
- export const TypeResponseRefusalDelta$inboundSchema = z.nativeEnum(TypeResponseRefusalDelta);
1038
+ export const TypeResponseRefusalDelta$inboundSchema = z.enum(TypeResponseRefusalDelta);
1041
1039
  /** @internal */
1042
1040
  export const TypeResponseRefusalDelta$outboundSchema = TypeResponseRefusalDelta$inboundSchema;
1043
1041
  /**
@@ -1101,7 +1099,7 @@ export function openResponsesStreamEventResponseRefusalDeltaFromJSON(jsonString)
1101
1099
  return safeParse(jsonString, (x) => OpenResponsesStreamEventResponseRefusalDelta$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OpenResponsesStreamEventResponseRefusalDelta' from JSON`);
1102
1100
  }
1103
1101
  /** @internal */
1104
- export const TypeResponseOutputTextDone$inboundSchema = z.nativeEnum(TypeResponseOutputTextDone);
1102
+ export const TypeResponseOutputTextDone$inboundSchema = z.enum(TypeResponseOutputTextDone);
1105
1103
  /** @internal */
1106
1104
  export const TypeResponseOutputTextDone$outboundSchema = TypeResponseOutputTextDone$inboundSchema;
1107
1105
  /**
@@ -1167,7 +1165,7 @@ export function openResponsesStreamEventResponseOutputTextDoneFromJSON(jsonStrin
1167
1165
  return safeParse(jsonString, (x) => OpenResponsesStreamEventResponseOutputTextDone$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OpenResponsesStreamEventResponseOutputTextDone' from JSON`);
1168
1166
  }
1169
1167
  /** @internal */
1170
- export const TypeResponseOutputTextDelta$inboundSchema = z.nativeEnum(TypeResponseOutputTextDelta);
1168
+ export const TypeResponseOutputTextDelta$inboundSchema = z.enum(TypeResponseOutputTextDelta);
1171
1169
  /** @internal */
1172
1170
  export const TypeResponseOutputTextDelta$outboundSchema = TypeResponseOutputTextDelta$inboundSchema;
1173
1171
  /**
@@ -1182,7 +1180,8 @@ export var TypeResponseOutputTextDelta$;
1182
1180
  TypeResponseOutputTextDelta$.outboundSchema = TypeResponseOutputTextDelta$outboundSchema;
1183
1181
  })(TypeResponseOutputTextDelta$ || (TypeResponseOutputTextDelta$ = {}));
1184
1182
  /** @internal */
1185
- export const OpenResponsesStreamEventResponseOutputTextDelta$inboundSchema = z.object({
1183
+ export const OpenResponsesStreamEventResponseOutputTextDelta$inboundSchema = z
1184
+ .object({
1186
1185
  type: TypeResponseOutputTextDelta$inboundSchema,
1187
1186
  logprobs: z.array(OpenResponsesLogProbs$inboundSchema),
1188
1187
  output_index: z.number(),
@@ -1233,7 +1232,7 @@ export function openResponsesStreamEventResponseOutputTextDeltaFromJSON(jsonStri
1233
1232
  return safeParse(jsonString, (x) => OpenResponsesStreamEventResponseOutputTextDelta$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OpenResponsesStreamEventResponseOutputTextDelta' from JSON`);
1234
1233
  }
1235
1234
  /** @internal */
1236
- export const TypeResponseContentPartDone$inboundSchema = z.nativeEnum(TypeResponseContentPartDone);
1235
+ export const TypeResponseContentPartDone$inboundSchema = z.enum(TypeResponseContentPartDone);
1237
1236
  /** @internal */
1238
1237
  export const TypeResponseContentPartDone$outboundSchema = TypeResponseContentPartDone$inboundSchema;
1239
1238
  /**
@@ -1248,8 +1247,7 @@ export var TypeResponseContentPartDone$;
1248
1247
  TypeResponseContentPartDone$.outboundSchema = TypeResponseContentPartDone$outboundSchema;
1249
1248
  })(TypeResponseContentPartDone$ || (TypeResponseContentPartDone$ = {}));
1250
1249
  /** @internal */
1251
- export const Part2$inboundSchema = z
1252
- .union([
1250
+ export const Part2$inboundSchema = z.union([
1253
1251
  OpenResponsesOutputText$inboundSchema,
1254
1252
  ReasoningTextContent$inboundSchema,
1255
1253
  OpenResponsesRefusalContent$inboundSchema,
@@ -1278,7 +1276,8 @@ export function part2FromJSON(jsonString) {
1278
1276
  return safeParse(jsonString, (x) => Part2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Part2' from JSON`);
1279
1277
  }
1280
1278
  /** @internal */
1281
- export const OpenResponsesStreamEventResponseContentPartDone$inboundSchema = z.object({
1279
+ export const OpenResponsesStreamEventResponseContentPartDone$inboundSchema = z
1280
+ .object({
1282
1281
  type: TypeResponseContentPartDone$inboundSchema,
1283
1282
  output_index: z.number(),
1284
1283
  item_id: z.string(),
@@ -1335,7 +1334,7 @@ export function openResponsesStreamEventResponseContentPartDoneFromJSON(jsonStri
1335
1334
  return safeParse(jsonString, (x) => OpenResponsesStreamEventResponseContentPartDone$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OpenResponsesStreamEventResponseContentPartDone' from JSON`);
1336
1335
  }
1337
1336
  /** @internal */
1338
- export const TypeResponseContentPartAdded$inboundSchema = z.nativeEnum(TypeResponseContentPartAdded);
1337
+ export const TypeResponseContentPartAdded$inboundSchema = z.enum(TypeResponseContentPartAdded);
1339
1338
  /** @internal */
1340
1339
  export const TypeResponseContentPartAdded$outboundSchema = TypeResponseContentPartAdded$inboundSchema;
1341
1340
  /**
@@ -1350,8 +1349,7 @@ export var TypeResponseContentPartAdded$;
1350
1349
  TypeResponseContentPartAdded$.outboundSchema = TypeResponseContentPartAdded$outboundSchema;
1351
1350
  })(TypeResponseContentPartAdded$ || (TypeResponseContentPartAdded$ = {}));
1352
1351
  /** @internal */
1353
- export const Part1$inboundSchema = z
1354
- .union([
1352
+ export const Part1$inboundSchema = z.union([
1355
1353
  OpenResponsesOutputText$inboundSchema,
1356
1354
  ReasoningTextContent$inboundSchema,
1357
1355
  OpenResponsesRefusalContent$inboundSchema,
@@ -1380,7 +1378,8 @@ export function part1FromJSON(jsonString) {
1380
1378
  return safeParse(jsonString, (x) => Part1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Part1' from JSON`);
1381
1379
  }
1382
1380
  /** @internal */
1383
- export const OpenResponsesStreamEventResponseContentPartAdded$inboundSchema = z.object({
1381
+ export const OpenResponsesStreamEventResponseContentPartAdded$inboundSchema = z
1382
+ .object({
1384
1383
  type: TypeResponseContentPartAdded$inboundSchema,
1385
1384
  output_index: z.number(),
1386
1385
  item_id: z.string(),
@@ -1437,7 +1436,7 @@ export function openResponsesStreamEventResponseContentPartAddedFromJSON(jsonStr
1437
1436
  return safeParse(jsonString, (x) => OpenResponsesStreamEventResponseContentPartAdded$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OpenResponsesStreamEventResponseContentPartAdded' from JSON`);
1438
1437
  }
1439
1438
  /** @internal */
1440
- export const TypeResponseOutputItemDone$inboundSchema = z.nativeEnum(TypeResponseOutputItemDone);
1439
+ export const TypeResponseOutputItemDone$inboundSchema = z.enum(TypeResponseOutputItemDone);
1441
1440
  /** @internal */
1442
1441
  export const TypeResponseOutputItemDone$outboundSchema = TypeResponseOutputItemDone$inboundSchema;
1443
1442
  /**
@@ -1493,7 +1492,7 @@ export function openResponsesStreamEventResponseOutputItemDoneFromJSON(jsonStrin
1493
1492
  return safeParse(jsonString, (x) => OpenResponsesStreamEventResponseOutputItemDone$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OpenResponsesStreamEventResponseOutputItemDone' from JSON`);
1494
1493
  }
1495
1494
  /** @internal */
1496
- export const TypeResponseOutputItemAdded$inboundSchema = z.nativeEnum(TypeResponseOutputItemAdded);
1495
+ export const TypeResponseOutputItemAdded$inboundSchema = z.enum(TypeResponseOutputItemAdded);
1497
1496
  /** @internal */
1498
1497
  export const TypeResponseOutputItemAdded$outboundSchema = TypeResponseOutputItemAdded$inboundSchema;
1499
1498
  /**
@@ -1508,7 +1507,8 @@ export var TypeResponseOutputItemAdded$;
1508
1507
  TypeResponseOutputItemAdded$.outboundSchema = TypeResponseOutputItemAdded$outboundSchema;
1509
1508
  })(TypeResponseOutputItemAdded$ || (TypeResponseOutputItemAdded$ = {}));
1510
1509
  /** @internal */
1511
- export const OpenResponsesStreamEventResponseOutputItemAdded$inboundSchema = z.object({
1510
+ export const OpenResponsesStreamEventResponseOutputItemAdded$inboundSchema = z
1511
+ .object({
1512
1512
  type: TypeResponseOutputItemAdded$inboundSchema,
1513
1513
  output_index: z.number(),
1514
1514
  item: ResponsesOutputItem$inboundSchema,
@@ -1549,8 +1549,7 @@ export function openResponsesStreamEventResponseOutputItemAddedFromJSON(jsonStri
1549
1549
  return safeParse(jsonString, (x) => OpenResponsesStreamEventResponseOutputItemAdded$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OpenResponsesStreamEventResponseOutputItemAdded' from JSON`);
1550
1550
  }
1551
1551
  /** @internal */
1552
- export const TypeError$inboundSchema = z
1553
- .nativeEnum(TypeError);
1552
+ export const TypeError$inboundSchema = z.enum(TypeError);
1554
1553
  /** @internal */
1555
1554
  export const TypeError$outboundSchema = TypeError$inboundSchema;
1556
1555
  /**
@@ -1606,7 +1605,7 @@ export function openResponsesStreamEventErrorFromJSON(jsonString) {
1606
1605
  return safeParse(jsonString, (x) => OpenResponsesStreamEventError$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OpenResponsesStreamEventError' from JSON`);
1607
1606
  }
1608
1607
  /** @internal */
1609
- export const TypeResponseFailed$inboundSchema = z.nativeEnum(TypeResponseFailed);
1608
+ export const TypeResponseFailed$inboundSchema = z.enum(TypeResponseFailed);
1610
1609
  /** @internal */
1611
1610
  export const TypeResponseFailed$outboundSchema = TypeResponseFailed$inboundSchema;
1612
1611
  /**
@@ -1658,7 +1657,7 @@ export function openResponsesStreamEventResponseFailedFromJSON(jsonString) {
1658
1657
  return safeParse(jsonString, (x) => OpenResponsesStreamEventResponseFailed$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OpenResponsesStreamEventResponseFailed' from JSON`);
1659
1658
  }
1660
1659
  /** @internal */
1661
- export const TypeResponseIncomplete$inboundSchema = z.nativeEnum(TypeResponseIncomplete);
1660
+ export const TypeResponseIncomplete$inboundSchema = z.enum(TypeResponseIncomplete);
1662
1661
  /** @internal */
1663
1662
  export const TypeResponseIncomplete$outboundSchema = TypeResponseIncomplete$inboundSchema;
1664
1663
  /**
@@ -1710,7 +1709,7 @@ export function openResponsesStreamEventResponseIncompleteFromJSON(jsonString) {
1710
1709
  return safeParse(jsonString, (x) => OpenResponsesStreamEventResponseIncomplete$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OpenResponsesStreamEventResponseIncomplete' from JSON`);
1711
1710
  }
1712
1711
  /** @internal */
1713
- export const TypeResponseCompleted$inboundSchema = z.nativeEnum(TypeResponseCompleted);
1712
+ export const TypeResponseCompleted$inboundSchema = z.enum(TypeResponseCompleted);
1714
1713
  /** @internal */
1715
1714
  export const TypeResponseCompleted$outboundSchema = TypeResponseCompleted$inboundSchema;
1716
1715
  /**
@@ -1762,7 +1761,7 @@ export function openResponsesStreamEventResponseCompletedFromJSON(jsonString) {
1762
1761
  return safeParse(jsonString, (x) => OpenResponsesStreamEventResponseCompleted$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OpenResponsesStreamEventResponseCompleted' from JSON`);
1763
1762
  }
1764
1763
  /** @internal */
1765
- export const TypeResponseInProgress$inboundSchema = z.nativeEnum(TypeResponseInProgress);
1764
+ export const TypeResponseInProgress$inboundSchema = z.enum(TypeResponseInProgress);
1766
1765
  /** @internal */
1767
1766
  export const TypeResponseInProgress$outboundSchema = TypeResponseInProgress$inboundSchema;
1768
1767
  /**
@@ -1814,7 +1813,7 @@ export function openResponsesStreamEventResponseInProgressFromJSON(jsonString) {
1814
1813
  return safeParse(jsonString, (x) => OpenResponsesStreamEventResponseInProgress$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OpenResponsesStreamEventResponseInProgress' from JSON`);
1815
1814
  }
1816
1815
  /** @internal */
1817
- export const TypeResponseCreated$inboundSchema = z.nativeEnum(TypeResponseCreated);
1816
+ export const TypeResponseCreated$inboundSchema = z.enum(TypeResponseCreated);
1818
1817
  /** @internal */
1819
1818
  export const TypeResponseCreated$outboundSchema = TypeResponseCreated$inboundSchema;
1820
1819
  /**
@@ -1,4 +1,4 @@
1
- import * as z from "zod/v3";
1
+ import * as z from "zod/v4";
2
2
  import { OpenEnum } from "../types/enums.js";
3
3
  import { Result as SafeParseResult } from "../types/fp.js";
4
4
  import { SDKValidationError } from "./errors/sdkvalidationerror.js";
@@ -20,37 +20,37 @@ export type OpenResponsesTextConfig = {
20
20
  verbosity?: Verbosity | null | undefined;
21
21
  };
22
22
  /** @internal */
23
- export declare const Verbosity$inboundSchema: z.ZodType<Verbosity, z.ZodTypeDef, unknown>;
23
+ export declare const Verbosity$inboundSchema: z.ZodType<Verbosity, unknown>;
24
24
  /** @internal */
25
- export declare const Verbosity$outboundSchema: z.ZodType<Verbosity, z.ZodTypeDef, Verbosity>;
25
+ export declare const Verbosity$outboundSchema: z.ZodType<Verbosity, Verbosity>;
26
26
  /**
27
27
  * @internal
28
28
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
29
29
  */
30
30
  export declare namespace Verbosity$ {
31
31
  /** @deprecated use `Verbosity$inboundSchema` instead. */
32
- const inboundSchema: z.ZodType<Verbosity, z.ZodTypeDef, unknown>;
32
+ const inboundSchema: z.ZodType<Verbosity, unknown, z.core.$ZodTypeInternals<Verbosity, unknown>>;
33
33
  /** @deprecated use `Verbosity$outboundSchema` instead. */
34
- const outboundSchema: z.ZodType<Verbosity, z.ZodTypeDef, Verbosity>;
34
+ const outboundSchema: z.ZodType<Verbosity, Verbosity, z.core.$ZodTypeInternals<Verbosity, Verbosity>>;
35
35
  }
36
36
  /** @internal */
37
- export declare const OpenResponsesTextConfig$inboundSchema: z.ZodType<OpenResponsesTextConfig, z.ZodTypeDef, unknown>;
37
+ export declare const OpenResponsesTextConfig$inboundSchema: z.ZodType<OpenResponsesTextConfig, unknown>;
38
38
  /** @internal */
39
39
  export type OpenResponsesTextConfig$Outbound = {
40
40
  format?: OpenResponsesFormatTextConfig$Outbound | undefined;
41
41
  verbosity?: string | null | undefined;
42
42
  };
43
43
  /** @internal */
44
- export declare const OpenResponsesTextConfig$outboundSchema: z.ZodType<OpenResponsesTextConfig$Outbound, z.ZodTypeDef, OpenResponsesTextConfig>;
44
+ export declare const OpenResponsesTextConfig$outboundSchema: z.ZodType<OpenResponsesTextConfig$Outbound, OpenResponsesTextConfig>;
45
45
  /**
46
46
  * @internal
47
47
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
48
48
  */
49
49
  export declare namespace OpenResponsesTextConfig$ {
50
50
  /** @deprecated use `OpenResponsesTextConfig$inboundSchema` instead. */
51
- const inboundSchema: z.ZodType<OpenResponsesTextConfig, z.ZodTypeDef, unknown>;
51
+ const inboundSchema: z.ZodType<OpenResponsesTextConfig, unknown, z.core.$ZodTypeInternals<OpenResponsesTextConfig, unknown>>;
52
52
  /** @deprecated use `OpenResponsesTextConfig$outboundSchema` instead. */
53
- const outboundSchema: z.ZodType<OpenResponsesTextConfig$Outbound, z.ZodTypeDef, OpenResponsesTextConfig>;
53
+ const outboundSchema: z.ZodType<OpenResponsesTextConfig$Outbound, OpenResponsesTextConfig, z.core.$ZodTypeInternals<OpenResponsesTextConfig$Outbound, OpenResponsesTextConfig>>;
54
54
  /** @deprecated use `OpenResponsesTextConfig$Outbound` instead. */
55
55
  type Outbound = OpenResponsesTextConfig$Outbound;
56
56
  }
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
- import * as z from "zod/v3";
4
+ import * as z from "zod/v4";
5
5
  import { safeParse } from "../lib/schemas.js";
6
6
  import { catchUnrecognizedEnum, } from "../types/enums.js";
7
7
  import { OpenResponsesFormatTextConfig$inboundSchema, OpenResponsesFormatTextConfig$outboundSchema, } from "./openresponsesformattextconfig.js";
@@ -13,12 +13,13 @@ export const Verbosity = {
13
13
  /** @internal */
14
14
  export const Verbosity$inboundSchema = z
15
15
  .union([
16
- z.nativeEnum(Verbosity),
16
+ z.enum(Verbosity),
17
17
  z.string().transform(catchUnrecognizedEnum),
18
18
  ]);
19
19
  /** @internal */
20
- export const Verbosity$outboundSchema = z.union([
21
- z.nativeEnum(Verbosity),
20
+ export const Verbosity$outboundSchema = z
21
+ .union([
22
+ z.enum(Verbosity),
22
23
  z.string().and(z.custom()),
23
24
  ]);
24
25
  /**
@@ -1,4 +1,4 @@
1
- import * as z from "zod/v3";
1
+ import * as z from "zod/v4";
2
2
  import { ClosedEnum } from "../types/enums.js";
3
3
  import { Result as SafeParseResult } from "../types/fp.js";
4
4
  import { SDKValidationError } from "./errors/sdkvalidationerror.js";
@@ -31,115 +31,115 @@ export type OpenResponsesToolChoiceAuto = ClosedEnum<typeof OpenResponsesToolCho
31
31
  */
32
32
  export type OpenResponsesToolChoice = OpenResponsesToolChoiceFunction | ToolChoiceTypes | OpenResponsesToolChoiceAuto | OpenResponsesToolChoiceNone | OpenResponsesToolChoiceRequired;
33
33
  /** @internal */
34
- export declare const OpenResponsesToolChoiceType$inboundSchema: z.ZodNativeEnum<typeof OpenResponsesToolChoiceType>;
34
+ export declare const OpenResponsesToolChoiceType$inboundSchema: z.ZodEnum<typeof OpenResponsesToolChoiceType>;
35
35
  /** @internal */
36
- export declare const OpenResponsesToolChoiceType$outboundSchema: z.ZodNativeEnum<typeof OpenResponsesToolChoiceType>;
36
+ export declare const OpenResponsesToolChoiceType$outboundSchema: z.ZodEnum<typeof OpenResponsesToolChoiceType>;
37
37
  /**
38
38
  * @internal
39
39
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
40
40
  */
41
41
  export declare namespace OpenResponsesToolChoiceType$ {
42
42
  /** @deprecated use `OpenResponsesToolChoiceType$inboundSchema` instead. */
43
- const inboundSchema: z.ZodNativeEnum<{
43
+ const inboundSchema: z.ZodEnum<{
44
44
  readonly Function: "function";
45
45
  }>;
46
46
  /** @deprecated use `OpenResponsesToolChoiceType$outboundSchema` instead. */
47
- const outboundSchema: z.ZodNativeEnum<{
47
+ const outboundSchema: z.ZodEnum<{
48
48
  readonly Function: "function";
49
49
  }>;
50
50
  }
51
51
  /** @internal */
52
- export declare const OpenResponsesToolChoiceFunction$inboundSchema: z.ZodType<OpenResponsesToolChoiceFunction, z.ZodTypeDef, unknown>;
52
+ export declare const OpenResponsesToolChoiceFunction$inboundSchema: z.ZodType<OpenResponsesToolChoiceFunction, unknown>;
53
53
  /** @internal */
54
54
  export type OpenResponsesToolChoiceFunction$Outbound = {
55
55
  type: string;
56
56
  name: string;
57
57
  };
58
58
  /** @internal */
59
- export declare const OpenResponsesToolChoiceFunction$outboundSchema: z.ZodType<OpenResponsesToolChoiceFunction$Outbound, z.ZodTypeDef, OpenResponsesToolChoiceFunction>;
59
+ export declare const OpenResponsesToolChoiceFunction$outboundSchema: z.ZodType<OpenResponsesToolChoiceFunction$Outbound, OpenResponsesToolChoiceFunction>;
60
60
  /**
61
61
  * @internal
62
62
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
63
63
  */
64
64
  export declare namespace OpenResponsesToolChoiceFunction$ {
65
65
  /** @deprecated use `OpenResponsesToolChoiceFunction$inboundSchema` instead. */
66
- const inboundSchema: z.ZodType<OpenResponsesToolChoiceFunction, z.ZodTypeDef, unknown>;
66
+ const inboundSchema: z.ZodType<OpenResponsesToolChoiceFunction, unknown, z.core.$ZodTypeInternals<OpenResponsesToolChoiceFunction, unknown>>;
67
67
  /** @deprecated use `OpenResponsesToolChoiceFunction$outboundSchema` instead. */
68
- const outboundSchema: z.ZodType<OpenResponsesToolChoiceFunction$Outbound, z.ZodTypeDef, OpenResponsesToolChoiceFunction>;
68
+ const outboundSchema: z.ZodType<OpenResponsesToolChoiceFunction$Outbound, OpenResponsesToolChoiceFunction, z.core.$ZodTypeInternals<OpenResponsesToolChoiceFunction$Outbound, OpenResponsesToolChoiceFunction>>;
69
69
  /** @deprecated use `OpenResponsesToolChoiceFunction$Outbound` instead. */
70
70
  type Outbound = OpenResponsesToolChoiceFunction$Outbound;
71
71
  }
72
72
  export declare function openResponsesToolChoiceFunctionToJSON(openResponsesToolChoiceFunction: OpenResponsesToolChoiceFunction): string;
73
73
  export declare function openResponsesToolChoiceFunctionFromJSON(jsonString: string): SafeParseResult<OpenResponsesToolChoiceFunction, SDKValidationError>;
74
74
  /** @internal */
75
- export declare const OpenResponsesToolChoiceRequired$inboundSchema: z.ZodNativeEnum<typeof OpenResponsesToolChoiceRequired>;
75
+ export declare const OpenResponsesToolChoiceRequired$inboundSchema: z.ZodEnum<typeof OpenResponsesToolChoiceRequired>;
76
76
  /** @internal */
77
- export declare const OpenResponsesToolChoiceRequired$outboundSchema: z.ZodNativeEnum<typeof OpenResponsesToolChoiceRequired>;
77
+ export declare const OpenResponsesToolChoiceRequired$outboundSchema: z.ZodEnum<typeof OpenResponsesToolChoiceRequired>;
78
78
  /**
79
79
  * @internal
80
80
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
81
81
  */
82
82
  export declare namespace OpenResponsesToolChoiceRequired$ {
83
83
  /** @deprecated use `OpenResponsesToolChoiceRequired$inboundSchema` instead. */
84
- const inboundSchema: z.ZodNativeEnum<{
84
+ const inboundSchema: z.ZodEnum<{
85
85
  readonly Required: "required";
86
86
  }>;
87
87
  /** @deprecated use `OpenResponsesToolChoiceRequired$outboundSchema` instead. */
88
- const outboundSchema: z.ZodNativeEnum<{
88
+ const outboundSchema: z.ZodEnum<{
89
89
  readonly Required: "required";
90
90
  }>;
91
91
  }
92
92
  /** @internal */
93
- export declare const OpenResponsesToolChoiceNone$inboundSchema: z.ZodNativeEnum<typeof OpenResponsesToolChoiceNone>;
93
+ export declare const OpenResponsesToolChoiceNone$inboundSchema: z.ZodEnum<typeof OpenResponsesToolChoiceNone>;
94
94
  /** @internal */
95
- export declare const OpenResponsesToolChoiceNone$outboundSchema: z.ZodNativeEnum<typeof OpenResponsesToolChoiceNone>;
95
+ export declare const OpenResponsesToolChoiceNone$outboundSchema: z.ZodEnum<typeof OpenResponsesToolChoiceNone>;
96
96
  /**
97
97
  * @internal
98
98
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
99
99
  */
100
100
  export declare namespace OpenResponsesToolChoiceNone$ {
101
101
  /** @deprecated use `OpenResponsesToolChoiceNone$inboundSchema` instead. */
102
- const inboundSchema: z.ZodNativeEnum<{
102
+ const inboundSchema: z.ZodEnum<{
103
103
  readonly None: "none";
104
104
  }>;
105
105
  /** @deprecated use `OpenResponsesToolChoiceNone$outboundSchema` instead. */
106
- const outboundSchema: z.ZodNativeEnum<{
106
+ const outboundSchema: z.ZodEnum<{
107
107
  readonly None: "none";
108
108
  }>;
109
109
  }
110
110
  /** @internal */
111
- export declare const OpenResponsesToolChoiceAuto$inboundSchema: z.ZodNativeEnum<typeof OpenResponsesToolChoiceAuto>;
111
+ export declare const OpenResponsesToolChoiceAuto$inboundSchema: z.ZodEnum<typeof OpenResponsesToolChoiceAuto>;
112
112
  /** @internal */
113
- export declare const OpenResponsesToolChoiceAuto$outboundSchema: z.ZodNativeEnum<typeof OpenResponsesToolChoiceAuto>;
113
+ export declare const OpenResponsesToolChoiceAuto$outboundSchema: z.ZodEnum<typeof OpenResponsesToolChoiceAuto>;
114
114
  /**
115
115
  * @internal
116
116
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
117
117
  */
118
118
  export declare namespace OpenResponsesToolChoiceAuto$ {
119
119
  /** @deprecated use `OpenResponsesToolChoiceAuto$inboundSchema` instead. */
120
- const inboundSchema: z.ZodNativeEnum<{
120
+ const inboundSchema: z.ZodEnum<{
121
121
  readonly Auto: "auto";
122
122
  }>;
123
123
  /** @deprecated use `OpenResponsesToolChoiceAuto$outboundSchema` instead. */
124
- const outboundSchema: z.ZodNativeEnum<{
124
+ const outboundSchema: z.ZodEnum<{
125
125
  readonly Auto: "auto";
126
126
  }>;
127
127
  }
128
128
  /** @internal */
129
- export declare const OpenResponsesToolChoice$inboundSchema: z.ZodType<OpenResponsesToolChoice, z.ZodTypeDef, unknown>;
129
+ export declare const OpenResponsesToolChoice$inboundSchema: z.ZodType<OpenResponsesToolChoice, unknown>;
130
130
  /** @internal */
131
131
  export type OpenResponsesToolChoice$Outbound = OpenResponsesToolChoiceFunction$Outbound | ToolChoiceTypes$Outbound | string | string | string;
132
132
  /** @internal */
133
- export declare const OpenResponsesToolChoice$outboundSchema: z.ZodType<OpenResponsesToolChoice$Outbound, z.ZodTypeDef, OpenResponsesToolChoice>;
133
+ export declare const OpenResponsesToolChoice$outboundSchema: z.ZodType<OpenResponsesToolChoice$Outbound, OpenResponsesToolChoice>;
134
134
  /**
135
135
  * @internal
136
136
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
137
137
  */
138
138
  export declare namespace OpenResponsesToolChoice$ {
139
139
  /** @deprecated use `OpenResponsesToolChoice$inboundSchema` instead. */
140
- const inboundSchema: z.ZodType<OpenResponsesToolChoice, z.ZodTypeDef, unknown>;
140
+ const inboundSchema: z.ZodType<OpenResponsesToolChoice, unknown, z.core.$ZodTypeInternals<OpenResponsesToolChoice, unknown>>;
141
141
  /** @deprecated use `OpenResponsesToolChoice$outboundSchema` instead. */
142
- const outboundSchema: z.ZodType<OpenResponsesToolChoice$Outbound, z.ZodTypeDef, OpenResponsesToolChoice>;
142
+ const outboundSchema: z.ZodType<OpenResponsesToolChoice$Outbound, OpenResponsesToolChoice, z.core.$ZodTypeInternals<OpenResponsesToolChoice$Outbound, OpenResponsesToolChoice>>;
143
143
  /** @deprecated use `OpenResponsesToolChoice$Outbound` instead. */
144
144
  type Outbound = OpenResponsesToolChoice$Outbound;
145
145
  }
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
- import * as z from "zod/v3";
4
+ import * as z from "zod/v4";
5
5
  import { safeParse } from "../lib/schemas.js";
6
6
  import { ToolChoiceTypes$inboundSchema, ToolChoiceTypes$outboundSchema, } from "./toolchoicetypes.js";
7
7
  export const OpenResponsesToolChoiceType = {
@@ -17,7 +17,7 @@ export const OpenResponsesToolChoiceAuto = {
17
17
  Auto: "auto",
18
18
  };
19
19
  /** @internal */
20
- export const OpenResponsesToolChoiceType$inboundSchema = z.nativeEnum(OpenResponsesToolChoiceType);
20
+ export const OpenResponsesToolChoiceType$inboundSchema = z.enum(OpenResponsesToolChoiceType);
21
21
  /** @internal */
22
22
  export const OpenResponsesToolChoiceType$outboundSchema = OpenResponsesToolChoiceType$inboundSchema;
23
23
  /**
@@ -59,7 +59,7 @@ export function openResponsesToolChoiceFunctionFromJSON(jsonString) {
59
59
  return safeParse(jsonString, (x) => OpenResponsesToolChoiceFunction$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OpenResponsesToolChoiceFunction' from JSON`);
60
60
  }
61
61
  /** @internal */
62
- export const OpenResponsesToolChoiceRequired$inboundSchema = z.nativeEnum(OpenResponsesToolChoiceRequired);
62
+ export const OpenResponsesToolChoiceRequired$inboundSchema = z.enum(OpenResponsesToolChoiceRequired);
63
63
  /** @internal */
64
64
  export const OpenResponsesToolChoiceRequired$outboundSchema = OpenResponsesToolChoiceRequired$inboundSchema;
65
65
  /**
@@ -74,7 +74,7 @@ export var OpenResponsesToolChoiceRequired$;
74
74
  OpenResponsesToolChoiceRequired$.outboundSchema = OpenResponsesToolChoiceRequired$outboundSchema;
75
75
  })(OpenResponsesToolChoiceRequired$ || (OpenResponsesToolChoiceRequired$ = {}));
76
76
  /** @internal */
77
- export const OpenResponsesToolChoiceNone$inboundSchema = z.nativeEnum(OpenResponsesToolChoiceNone);
77
+ export const OpenResponsesToolChoiceNone$inboundSchema = z.enum(OpenResponsesToolChoiceNone);
78
78
  /** @internal */
79
79
  export const OpenResponsesToolChoiceNone$outboundSchema = OpenResponsesToolChoiceNone$inboundSchema;
80
80
  /**
@@ -89,7 +89,7 @@ export var OpenResponsesToolChoiceNone$;
89
89
  OpenResponsesToolChoiceNone$.outboundSchema = OpenResponsesToolChoiceNone$outboundSchema;
90
90
  })(OpenResponsesToolChoiceNone$ || (OpenResponsesToolChoiceNone$ = {}));
91
91
  /** @internal */
92
- export const OpenResponsesToolChoiceAuto$inboundSchema = z.nativeEnum(OpenResponsesToolChoiceAuto);
92
+ export const OpenResponsesToolChoiceAuto$inboundSchema = z.enum(OpenResponsesToolChoiceAuto);
93
93
  /** @internal */
94
94
  export const OpenResponsesToolChoiceAuto$outboundSchema = OpenResponsesToolChoiceAuto$inboundSchema;
95
95
  /**