@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,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";
@@ -34,137 +34,137 @@ export type ResponsesOutputMessage = {
34
34
  content: Array<OutputTextContent | RefusalContent>;
35
35
  };
36
36
  /** @internal */
37
- export declare const ResponsesOutputMessageRole$inboundSchema: z.ZodNativeEnum<typeof ResponsesOutputMessageRole>;
37
+ export declare const ResponsesOutputMessageRole$inboundSchema: z.ZodEnum<typeof ResponsesOutputMessageRole>;
38
38
  /** @internal */
39
- export declare const ResponsesOutputMessageRole$outboundSchema: z.ZodNativeEnum<typeof ResponsesOutputMessageRole>;
39
+ export declare const ResponsesOutputMessageRole$outboundSchema: z.ZodEnum<typeof ResponsesOutputMessageRole>;
40
40
  /**
41
41
  * @internal
42
42
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
43
43
  */
44
44
  export declare namespace ResponsesOutputMessageRole$ {
45
45
  /** @deprecated use `ResponsesOutputMessageRole$inboundSchema` instead. */
46
- const inboundSchema: z.ZodNativeEnum<{
46
+ const inboundSchema: z.ZodEnum<{
47
47
  readonly Assistant: "assistant";
48
48
  }>;
49
49
  /** @deprecated use `ResponsesOutputMessageRole$outboundSchema` instead. */
50
- const outboundSchema: z.ZodNativeEnum<{
50
+ const outboundSchema: z.ZodEnum<{
51
51
  readonly Assistant: "assistant";
52
52
  }>;
53
53
  }
54
54
  /** @internal */
55
- export declare const ResponsesOutputMessageType$inboundSchema: z.ZodNativeEnum<typeof ResponsesOutputMessageType>;
55
+ export declare const ResponsesOutputMessageType$inboundSchema: z.ZodEnum<typeof ResponsesOutputMessageType>;
56
56
  /** @internal */
57
- export declare const ResponsesOutputMessageType$outboundSchema: z.ZodNativeEnum<typeof ResponsesOutputMessageType>;
57
+ export declare const ResponsesOutputMessageType$outboundSchema: z.ZodEnum<typeof ResponsesOutputMessageType>;
58
58
  /**
59
59
  * @internal
60
60
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
61
61
  */
62
62
  export declare namespace ResponsesOutputMessageType$ {
63
63
  /** @deprecated use `ResponsesOutputMessageType$inboundSchema` instead. */
64
- const inboundSchema: z.ZodNativeEnum<{
64
+ const inboundSchema: z.ZodEnum<{
65
65
  readonly Message: "message";
66
66
  }>;
67
67
  /** @deprecated use `ResponsesOutputMessageType$outboundSchema` instead. */
68
- const outboundSchema: z.ZodNativeEnum<{
68
+ const outboundSchema: z.ZodEnum<{
69
69
  readonly Message: "message";
70
70
  }>;
71
71
  }
72
72
  /** @internal */
73
- export declare const StatusInProgress$inboundSchema: z.ZodNativeEnum<typeof StatusInProgress>;
73
+ export declare const StatusInProgress$inboundSchema: z.ZodEnum<typeof StatusInProgress>;
74
74
  /** @internal */
75
- export declare const StatusInProgress$outboundSchema: z.ZodNativeEnum<typeof StatusInProgress>;
75
+ export declare const StatusInProgress$outboundSchema: z.ZodEnum<typeof StatusInProgress>;
76
76
  /**
77
77
  * @internal
78
78
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
79
79
  */
80
80
  export declare namespace StatusInProgress$ {
81
81
  /** @deprecated use `StatusInProgress$inboundSchema` instead. */
82
- const inboundSchema: z.ZodNativeEnum<{
82
+ const inboundSchema: z.ZodEnum<{
83
83
  readonly InProgress: "in_progress";
84
84
  }>;
85
85
  /** @deprecated use `StatusInProgress$outboundSchema` instead. */
86
- const outboundSchema: z.ZodNativeEnum<{
86
+ const outboundSchema: z.ZodEnum<{
87
87
  readonly InProgress: "in_progress";
88
88
  }>;
89
89
  }
90
90
  /** @internal */
91
- export declare const StatusIncomplete$inboundSchema: z.ZodNativeEnum<typeof StatusIncomplete>;
91
+ export declare const StatusIncomplete$inboundSchema: z.ZodEnum<typeof StatusIncomplete>;
92
92
  /** @internal */
93
- export declare const StatusIncomplete$outboundSchema: z.ZodNativeEnum<typeof StatusIncomplete>;
93
+ export declare const StatusIncomplete$outboundSchema: z.ZodEnum<typeof StatusIncomplete>;
94
94
  /**
95
95
  * @internal
96
96
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
97
97
  */
98
98
  export declare namespace StatusIncomplete$ {
99
99
  /** @deprecated use `StatusIncomplete$inboundSchema` instead. */
100
- const inboundSchema: z.ZodNativeEnum<{
100
+ const inboundSchema: z.ZodEnum<{
101
101
  readonly Incomplete: "incomplete";
102
102
  }>;
103
103
  /** @deprecated use `StatusIncomplete$outboundSchema` instead. */
104
- const outboundSchema: z.ZodNativeEnum<{
104
+ const outboundSchema: z.ZodEnum<{
105
105
  readonly Incomplete: "incomplete";
106
106
  }>;
107
107
  }
108
108
  /** @internal */
109
- export declare const StatusCompleted$inboundSchema: z.ZodNativeEnum<typeof StatusCompleted>;
109
+ export declare const StatusCompleted$inboundSchema: z.ZodEnum<typeof StatusCompleted>;
110
110
  /** @internal */
111
- export declare const StatusCompleted$outboundSchema: z.ZodNativeEnum<typeof StatusCompleted>;
111
+ export declare const StatusCompleted$outboundSchema: z.ZodEnum<typeof StatusCompleted>;
112
112
  /**
113
113
  * @internal
114
114
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
115
115
  */
116
116
  export declare namespace StatusCompleted$ {
117
117
  /** @deprecated use `StatusCompleted$inboundSchema` instead. */
118
- const inboundSchema: z.ZodNativeEnum<{
118
+ const inboundSchema: z.ZodEnum<{
119
119
  readonly Completed: "completed";
120
120
  }>;
121
121
  /** @deprecated use `StatusCompleted$outboundSchema` instead. */
122
- const outboundSchema: z.ZodNativeEnum<{
122
+ const outboundSchema: z.ZodEnum<{
123
123
  readonly Completed: "completed";
124
124
  }>;
125
125
  }
126
126
  /** @internal */
127
- export declare const Status$inboundSchema: z.ZodType<Status, z.ZodTypeDef, unknown>;
127
+ export declare const Status$inboundSchema: z.ZodType<Status, unknown>;
128
128
  /** @internal */
129
129
  export type Status$Outbound = string | string | string;
130
130
  /** @internal */
131
- export declare const Status$outboundSchema: z.ZodType<Status$Outbound, z.ZodTypeDef, Status>;
131
+ export declare const Status$outboundSchema: z.ZodType<Status$Outbound, Status>;
132
132
  /**
133
133
  * @internal
134
134
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
135
135
  */
136
136
  export declare namespace Status$ {
137
137
  /** @deprecated use `Status$inboundSchema` instead. */
138
- const inboundSchema: z.ZodType<Status, z.ZodTypeDef, unknown>;
138
+ const inboundSchema: z.ZodType<Status, unknown, z.core.$ZodTypeInternals<Status, unknown>>;
139
139
  /** @deprecated use `Status$outboundSchema` instead. */
140
- const outboundSchema: z.ZodType<string, z.ZodTypeDef, Status>;
140
+ const outboundSchema: z.ZodType<string, Status, z.core.$ZodTypeInternals<string, Status>>;
141
141
  /** @deprecated use `Status$Outbound` instead. */
142
142
  type Outbound = Status$Outbound;
143
143
  }
144
144
  export declare function statusToJSON(status: Status): string;
145
145
  export declare function statusFromJSON(jsonString: string): SafeParseResult<Status, SDKValidationError>;
146
146
  /** @internal */
147
- export declare const ResponsesOutputMessageContent$inboundSchema: z.ZodType<ResponsesOutputMessageContent, z.ZodTypeDef, unknown>;
147
+ export declare const ResponsesOutputMessageContent$inboundSchema: z.ZodType<ResponsesOutputMessageContent, unknown>;
148
148
  /** @internal */
149
149
  export type ResponsesOutputMessageContent$Outbound = OutputTextContent$Outbound | RefusalContent$Outbound;
150
150
  /** @internal */
151
- export declare const ResponsesOutputMessageContent$outboundSchema: z.ZodType<ResponsesOutputMessageContent$Outbound, z.ZodTypeDef, ResponsesOutputMessageContent>;
151
+ export declare const ResponsesOutputMessageContent$outboundSchema: z.ZodType<ResponsesOutputMessageContent$Outbound, ResponsesOutputMessageContent>;
152
152
  /**
153
153
  * @internal
154
154
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
155
155
  */
156
156
  export declare namespace ResponsesOutputMessageContent$ {
157
157
  /** @deprecated use `ResponsesOutputMessageContent$inboundSchema` instead. */
158
- const inboundSchema: z.ZodType<ResponsesOutputMessageContent, z.ZodTypeDef, unknown>;
158
+ const inboundSchema: z.ZodType<ResponsesOutputMessageContent, unknown, z.core.$ZodTypeInternals<ResponsesOutputMessageContent, unknown>>;
159
159
  /** @deprecated use `ResponsesOutputMessageContent$outboundSchema` instead. */
160
- const outboundSchema: z.ZodType<ResponsesOutputMessageContent$Outbound, z.ZodTypeDef, ResponsesOutputMessageContent>;
160
+ const outboundSchema: z.ZodType<ResponsesOutputMessageContent$Outbound, ResponsesOutputMessageContent, z.core.$ZodTypeInternals<ResponsesOutputMessageContent$Outbound, ResponsesOutputMessageContent>>;
161
161
  /** @deprecated use `ResponsesOutputMessageContent$Outbound` instead. */
162
162
  type Outbound = ResponsesOutputMessageContent$Outbound;
163
163
  }
164
164
  export declare function responsesOutputMessageContentToJSON(responsesOutputMessageContent: ResponsesOutputMessageContent): string;
165
165
  export declare function responsesOutputMessageContentFromJSON(jsonString: string): SafeParseResult<ResponsesOutputMessageContent, SDKValidationError>;
166
166
  /** @internal */
167
- export declare const ResponsesOutputMessage$inboundSchema: z.ZodType<ResponsesOutputMessage, z.ZodTypeDef, unknown>;
167
+ export declare const ResponsesOutputMessage$inboundSchema: z.ZodType<ResponsesOutputMessage, unknown>;
168
168
  /** @internal */
169
169
  export type ResponsesOutputMessage$Outbound = {
170
170
  id: string;
@@ -174,16 +174,16 @@ export type ResponsesOutputMessage$Outbound = {
174
174
  content: Array<OutputTextContent$Outbound | RefusalContent$Outbound>;
175
175
  };
176
176
  /** @internal */
177
- export declare const ResponsesOutputMessage$outboundSchema: z.ZodType<ResponsesOutputMessage$Outbound, z.ZodTypeDef, ResponsesOutputMessage>;
177
+ export declare const ResponsesOutputMessage$outboundSchema: z.ZodType<ResponsesOutputMessage$Outbound, ResponsesOutputMessage>;
178
178
  /**
179
179
  * @internal
180
180
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
181
181
  */
182
182
  export declare namespace ResponsesOutputMessage$ {
183
183
  /** @deprecated use `ResponsesOutputMessage$inboundSchema` instead. */
184
- const inboundSchema: z.ZodType<ResponsesOutputMessage, z.ZodTypeDef, unknown>;
184
+ const inboundSchema: z.ZodType<ResponsesOutputMessage, unknown, z.core.$ZodTypeInternals<ResponsesOutputMessage, unknown>>;
185
185
  /** @deprecated use `ResponsesOutputMessage$outboundSchema` instead. */
186
- const outboundSchema: z.ZodType<ResponsesOutputMessage$Outbound, z.ZodTypeDef, ResponsesOutputMessage>;
186
+ const outboundSchema: z.ZodType<ResponsesOutputMessage$Outbound, ResponsesOutputMessage, z.core.$ZodTypeInternals<ResponsesOutputMessage$Outbound, ResponsesOutputMessage>>;
187
187
  /** @deprecated use `ResponsesOutputMessage$Outbound` instead. */
188
188
  type Outbound = ResponsesOutputMessage$Outbound;
189
189
  }
@@ -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 { OutputTextContent$inboundSchema, OutputTextContent$outboundSchema, } from "./outputtextcontent.js";
7
7
  import { RefusalContent$inboundSchema, RefusalContent$outboundSchema, } from "./refusalcontent.js";
@@ -21,7 +21,7 @@ export const StatusCompleted = {
21
21
  Completed: "completed",
22
22
  };
23
23
  /** @internal */
24
- export const ResponsesOutputMessageRole$inboundSchema = z.nativeEnum(ResponsesOutputMessageRole);
24
+ export const ResponsesOutputMessageRole$inboundSchema = z.enum(ResponsesOutputMessageRole);
25
25
  /** @internal */
26
26
  export const ResponsesOutputMessageRole$outboundSchema = ResponsesOutputMessageRole$inboundSchema;
27
27
  /**
@@ -36,7 +36,7 @@ export var ResponsesOutputMessageRole$;
36
36
  ResponsesOutputMessageRole$.outboundSchema = ResponsesOutputMessageRole$outboundSchema;
37
37
  })(ResponsesOutputMessageRole$ || (ResponsesOutputMessageRole$ = {}));
38
38
  /** @internal */
39
- export const ResponsesOutputMessageType$inboundSchema = z.nativeEnum(ResponsesOutputMessageType);
39
+ export const ResponsesOutputMessageType$inboundSchema = z.enum(ResponsesOutputMessageType);
40
40
  /** @internal */
41
41
  export const ResponsesOutputMessageType$outboundSchema = ResponsesOutputMessageType$inboundSchema;
42
42
  /**
@@ -51,7 +51,7 @@ export var ResponsesOutputMessageType$;
51
51
  ResponsesOutputMessageType$.outboundSchema = ResponsesOutputMessageType$outboundSchema;
52
52
  })(ResponsesOutputMessageType$ || (ResponsesOutputMessageType$ = {}));
53
53
  /** @internal */
54
- export const StatusInProgress$inboundSchema = z.nativeEnum(StatusInProgress);
54
+ export const StatusInProgress$inboundSchema = z.enum(StatusInProgress);
55
55
  /** @internal */
56
56
  export const StatusInProgress$outboundSchema = StatusInProgress$inboundSchema;
57
57
  /**
@@ -66,7 +66,7 @@ export var StatusInProgress$;
66
66
  StatusInProgress$.outboundSchema = StatusInProgress$outboundSchema;
67
67
  })(StatusInProgress$ || (StatusInProgress$ = {}));
68
68
  /** @internal */
69
- export const StatusIncomplete$inboundSchema = z.nativeEnum(StatusIncomplete);
69
+ export const StatusIncomplete$inboundSchema = z.enum(StatusIncomplete);
70
70
  /** @internal */
71
71
  export const StatusIncomplete$outboundSchema = StatusIncomplete$inboundSchema;
72
72
  /**
@@ -81,7 +81,7 @@ export var StatusIncomplete$;
81
81
  StatusIncomplete$.outboundSchema = StatusIncomplete$outboundSchema;
82
82
  })(StatusIncomplete$ || (StatusIncomplete$ = {}));
83
83
  /** @internal */
84
- export const StatusCompleted$inboundSchema = z.nativeEnum(StatusCompleted);
84
+ export const StatusCompleted$inboundSchema = z.enum(StatusCompleted);
85
85
  /** @internal */
86
86
  export const StatusCompleted$outboundSchema = StatusCompleted$inboundSchema;
87
87
  /**
@@ -96,14 +96,14 @@ export var StatusCompleted$;
96
96
  StatusCompleted$.outboundSchema = StatusCompleted$outboundSchema;
97
97
  })(StatusCompleted$ || (StatusCompleted$ = {}));
98
98
  /** @internal */
99
- export const Status$inboundSchema = z
100
- .union([
99
+ export const Status$inboundSchema = z.union([
101
100
  StatusCompleted$inboundSchema,
102
101
  StatusIncomplete$inboundSchema,
103
102
  StatusInProgress$inboundSchema,
104
103
  ]);
105
104
  /** @internal */
106
- export const Status$outboundSchema = z.union([
105
+ export const Status$outboundSchema = z
106
+ .union([
107
107
  StatusCompleted$outboundSchema,
108
108
  StatusIncomplete$outboundSchema,
109
109
  StatusInProgress$outboundSchema,
@@ -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
  /**
4
4
  * Size of the search context for web search tools
@@ -13,16 +13,16 @@ export declare const ResponsesSearchContextSize: {
13
13
  */
14
14
  export type ResponsesSearchContextSize = OpenEnum<typeof ResponsesSearchContextSize>;
15
15
  /** @internal */
16
- export declare const ResponsesSearchContextSize$inboundSchema: z.ZodType<ResponsesSearchContextSize, z.ZodTypeDef, unknown>;
16
+ export declare const ResponsesSearchContextSize$inboundSchema: z.ZodType<ResponsesSearchContextSize, unknown>;
17
17
  /** @internal */
18
- export declare const ResponsesSearchContextSize$outboundSchema: z.ZodType<ResponsesSearchContextSize, z.ZodTypeDef, ResponsesSearchContextSize>;
18
+ export declare const ResponsesSearchContextSize$outboundSchema: z.ZodType<ResponsesSearchContextSize, ResponsesSearchContextSize>;
19
19
  /**
20
20
  * @internal
21
21
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
22
22
  */
23
23
  export declare namespace ResponsesSearchContextSize$ {
24
24
  /** @deprecated use `ResponsesSearchContextSize$inboundSchema` instead. */
25
- const inboundSchema: z.ZodType<ResponsesSearchContextSize, z.ZodTypeDef, unknown>;
25
+ const inboundSchema: z.ZodType<ResponsesSearchContextSize, unknown, z.core.$ZodTypeInternals<ResponsesSearchContextSize, unknown>>;
26
26
  /** @deprecated use `ResponsesSearchContextSize$outboundSchema` instead. */
27
- const outboundSchema: z.ZodType<ResponsesSearchContextSize, z.ZodTypeDef, ResponsesSearchContextSize>;
27
+ const outboundSchema: z.ZodType<ResponsesSearchContextSize, ResponsesSearchContextSize, z.core.$ZodTypeInternals<ResponsesSearchContextSize, ResponsesSearchContextSize>>;
28
28
  }
@@ -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 { catchUnrecognizedEnum, } from "../types/enums.js";
6
6
  /**
7
7
  * Size of the search context for web search tools
@@ -14,12 +14,12 @@ export const ResponsesSearchContextSize = {
14
14
  /** @internal */
15
15
  export const ResponsesSearchContextSize$inboundSchema = z
16
16
  .union([
17
- z.nativeEnum(ResponsesSearchContextSize),
17
+ z.enum(ResponsesSearchContextSize),
18
18
  z.string().transform(catchUnrecognizedEnum),
19
19
  ]);
20
20
  /** @internal */
21
21
  export const ResponsesSearchContextSize$outboundSchema = z.union([
22
- z.nativeEnum(ResponsesSearchContextSize),
22
+ z.enum(ResponsesSearchContextSize),
23
23
  z.string().and(z.custom()),
24
24
  ]);
25
25
  /**
@@ -1,4 +1,4 @@
1
- import * as z from "zod/v3";
1
+ import * as z from "zod/v4";
2
2
  import { Result as SafeParseResult } from "../types/fp.js";
3
3
  import { SDKValidationError } from "./errors/sdkvalidationerror.js";
4
4
  export type InputTokensDetails = {
@@ -32,51 +32,51 @@ export type ResponsesUsage = {
32
32
  costDetails?: CostDetails | undefined;
33
33
  };
34
34
  /** @internal */
35
- export declare const InputTokensDetails$inboundSchema: z.ZodType<InputTokensDetails, z.ZodTypeDef, unknown>;
35
+ export declare const InputTokensDetails$inboundSchema: z.ZodType<InputTokensDetails, unknown>;
36
36
  /** @internal */
37
37
  export type InputTokensDetails$Outbound = {
38
38
  cached_tokens: number;
39
39
  };
40
40
  /** @internal */
41
- export declare const InputTokensDetails$outboundSchema: z.ZodType<InputTokensDetails$Outbound, z.ZodTypeDef, InputTokensDetails>;
41
+ export declare const InputTokensDetails$outboundSchema: z.ZodType<InputTokensDetails$Outbound, InputTokensDetails>;
42
42
  /**
43
43
  * @internal
44
44
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
45
45
  */
46
46
  export declare namespace InputTokensDetails$ {
47
47
  /** @deprecated use `InputTokensDetails$inboundSchema` instead. */
48
- const inboundSchema: z.ZodType<InputTokensDetails, z.ZodTypeDef, unknown>;
48
+ const inboundSchema: z.ZodType<InputTokensDetails, unknown, z.core.$ZodTypeInternals<InputTokensDetails, unknown>>;
49
49
  /** @deprecated use `InputTokensDetails$outboundSchema` instead. */
50
- const outboundSchema: z.ZodType<InputTokensDetails$Outbound, z.ZodTypeDef, InputTokensDetails>;
50
+ const outboundSchema: z.ZodType<InputTokensDetails$Outbound, InputTokensDetails, z.core.$ZodTypeInternals<InputTokensDetails$Outbound, InputTokensDetails>>;
51
51
  /** @deprecated use `InputTokensDetails$Outbound` instead. */
52
52
  type Outbound = InputTokensDetails$Outbound;
53
53
  }
54
54
  export declare function inputTokensDetailsToJSON(inputTokensDetails: InputTokensDetails): string;
55
55
  export declare function inputTokensDetailsFromJSON(jsonString: string): SafeParseResult<InputTokensDetails, SDKValidationError>;
56
56
  /** @internal */
57
- export declare const OutputTokensDetails$inboundSchema: z.ZodType<OutputTokensDetails, z.ZodTypeDef, unknown>;
57
+ export declare const OutputTokensDetails$inboundSchema: z.ZodType<OutputTokensDetails, unknown>;
58
58
  /** @internal */
59
59
  export type OutputTokensDetails$Outbound = {
60
60
  reasoning_tokens: number;
61
61
  };
62
62
  /** @internal */
63
- export declare const OutputTokensDetails$outboundSchema: z.ZodType<OutputTokensDetails$Outbound, z.ZodTypeDef, OutputTokensDetails>;
63
+ export declare const OutputTokensDetails$outboundSchema: z.ZodType<OutputTokensDetails$Outbound, OutputTokensDetails>;
64
64
  /**
65
65
  * @internal
66
66
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
67
67
  */
68
68
  export declare namespace OutputTokensDetails$ {
69
69
  /** @deprecated use `OutputTokensDetails$inboundSchema` instead. */
70
- const inboundSchema: z.ZodType<OutputTokensDetails, z.ZodTypeDef, unknown>;
70
+ const inboundSchema: z.ZodType<OutputTokensDetails, unknown, z.core.$ZodTypeInternals<OutputTokensDetails, unknown>>;
71
71
  /** @deprecated use `OutputTokensDetails$outboundSchema` instead. */
72
- const outboundSchema: z.ZodType<OutputTokensDetails$Outbound, z.ZodTypeDef, OutputTokensDetails>;
72
+ const outboundSchema: z.ZodType<OutputTokensDetails$Outbound, OutputTokensDetails, z.core.$ZodTypeInternals<OutputTokensDetails$Outbound, OutputTokensDetails>>;
73
73
  /** @deprecated use `OutputTokensDetails$Outbound` instead. */
74
74
  type Outbound = OutputTokensDetails$Outbound;
75
75
  }
76
76
  export declare function outputTokensDetailsToJSON(outputTokensDetails: OutputTokensDetails): string;
77
77
  export declare function outputTokensDetailsFromJSON(jsonString: string): SafeParseResult<OutputTokensDetails, SDKValidationError>;
78
78
  /** @internal */
79
- export declare const CostDetails$inboundSchema: z.ZodType<CostDetails, z.ZodTypeDef, unknown>;
79
+ export declare const CostDetails$inboundSchema: z.ZodType<CostDetails, unknown>;
80
80
  /** @internal */
81
81
  export type CostDetails$Outbound = {
82
82
  upstream_inference_cost?: number | null | undefined;
@@ -84,23 +84,23 @@ export type CostDetails$Outbound = {
84
84
  upstream_inference_output_cost: number;
85
85
  };
86
86
  /** @internal */
87
- export declare const CostDetails$outboundSchema: z.ZodType<CostDetails$Outbound, z.ZodTypeDef, CostDetails>;
87
+ export declare const CostDetails$outboundSchema: z.ZodType<CostDetails$Outbound, CostDetails>;
88
88
  /**
89
89
  * @internal
90
90
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
91
91
  */
92
92
  export declare namespace CostDetails$ {
93
93
  /** @deprecated use `CostDetails$inboundSchema` instead. */
94
- const inboundSchema: z.ZodType<CostDetails, z.ZodTypeDef, unknown>;
94
+ const inboundSchema: z.ZodType<CostDetails, unknown, z.core.$ZodTypeInternals<CostDetails, unknown>>;
95
95
  /** @deprecated use `CostDetails$outboundSchema` instead. */
96
- const outboundSchema: z.ZodType<CostDetails$Outbound, z.ZodTypeDef, CostDetails>;
96
+ const outboundSchema: z.ZodType<CostDetails$Outbound, CostDetails, z.core.$ZodTypeInternals<CostDetails$Outbound, CostDetails>>;
97
97
  /** @deprecated use `CostDetails$Outbound` instead. */
98
98
  type Outbound = CostDetails$Outbound;
99
99
  }
100
100
  export declare function costDetailsToJSON(costDetails: CostDetails): string;
101
101
  export declare function costDetailsFromJSON(jsonString: string): SafeParseResult<CostDetails, SDKValidationError>;
102
102
  /** @internal */
103
- export declare const ResponsesUsage$inboundSchema: z.ZodType<ResponsesUsage, z.ZodTypeDef, unknown>;
103
+ export declare const ResponsesUsage$inboundSchema: z.ZodType<ResponsesUsage, unknown>;
104
104
  /** @internal */
105
105
  export type ResponsesUsage$Outbound = {
106
106
  input_tokens: number;
@@ -113,16 +113,16 @@ export type ResponsesUsage$Outbound = {
113
113
  cost_details?: CostDetails$Outbound | undefined;
114
114
  };
115
115
  /** @internal */
116
- export declare const ResponsesUsage$outboundSchema: z.ZodType<ResponsesUsage$Outbound, z.ZodTypeDef, ResponsesUsage>;
116
+ export declare const ResponsesUsage$outboundSchema: z.ZodType<ResponsesUsage$Outbound, ResponsesUsage>;
117
117
  /**
118
118
  * @internal
119
119
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
120
120
  */
121
121
  export declare namespace ResponsesUsage$ {
122
122
  /** @deprecated use `ResponsesUsage$inboundSchema` instead. */
123
- const inboundSchema: z.ZodType<ResponsesUsage, z.ZodTypeDef, unknown>;
123
+ const inboundSchema: z.ZodType<ResponsesUsage, unknown, z.core.$ZodTypeInternals<ResponsesUsage, unknown>>;
124
124
  /** @deprecated use `ResponsesUsage$outboundSchema` instead. */
125
- const outboundSchema: z.ZodType<ResponsesUsage$Outbound, z.ZodTypeDef, ResponsesUsage>;
125
+ const outboundSchema: z.ZodType<ResponsesUsage$Outbound, ResponsesUsage, z.core.$ZodTypeInternals<ResponsesUsage$Outbound, ResponsesUsage>>;
126
126
  /** @deprecated use `ResponsesUsage$Outbound` instead. */
127
127
  type Outbound = ResponsesUsage$Outbound;
128
128
  }
@@ -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
  /** @internal */
@@ -71,7 +71,8 @@ export function outputTokensDetailsFromJSON(jsonString) {
71
71
  return safeParse(jsonString, (x) => OutputTokensDetails$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OutputTokensDetails' from JSON`);
72
72
  }
73
73
  /** @internal */
74
- export const CostDetails$inboundSchema = z.object({
74
+ export const CostDetails$inboundSchema = z
75
+ .object({
75
76
  upstream_inference_cost: z.nullable(z.number()).optional(),
76
77
  upstream_inference_input_cost: z.number(),
77
78
  upstream_inference_output_cost: z.number(),
@@ -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";
@@ -13,25 +13,25 @@ export type ResponsesWebSearchCallOutput = {
13
13
  status: WebSearchStatus;
14
14
  };
15
15
  /** @internal */
16
- export declare const ResponsesWebSearchCallOutputType$inboundSchema: z.ZodNativeEnum<typeof ResponsesWebSearchCallOutputType>;
16
+ export declare const ResponsesWebSearchCallOutputType$inboundSchema: z.ZodEnum<typeof ResponsesWebSearchCallOutputType>;
17
17
  /** @internal */
18
- export declare const ResponsesWebSearchCallOutputType$outboundSchema: z.ZodNativeEnum<typeof ResponsesWebSearchCallOutputType>;
18
+ export declare const ResponsesWebSearchCallOutputType$outboundSchema: z.ZodEnum<typeof ResponsesWebSearchCallOutputType>;
19
19
  /**
20
20
  * @internal
21
21
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
22
22
  */
23
23
  export declare namespace ResponsesWebSearchCallOutputType$ {
24
24
  /** @deprecated use `ResponsesWebSearchCallOutputType$inboundSchema` instead. */
25
- const inboundSchema: z.ZodNativeEnum<{
25
+ const inboundSchema: z.ZodEnum<{
26
26
  readonly WebSearchCall: "web_search_call";
27
27
  }>;
28
28
  /** @deprecated use `ResponsesWebSearchCallOutputType$outboundSchema` instead. */
29
- const outboundSchema: z.ZodNativeEnum<{
29
+ const outboundSchema: z.ZodEnum<{
30
30
  readonly WebSearchCall: "web_search_call";
31
31
  }>;
32
32
  }
33
33
  /** @internal */
34
- export declare const ResponsesWebSearchCallOutput$inboundSchema: z.ZodType<ResponsesWebSearchCallOutput, z.ZodTypeDef, unknown>;
34
+ export declare const ResponsesWebSearchCallOutput$inboundSchema: z.ZodType<ResponsesWebSearchCallOutput, unknown>;
35
35
  /** @internal */
36
36
  export type ResponsesWebSearchCallOutput$Outbound = {
37
37
  type: string;
@@ -39,16 +39,16 @@ export type ResponsesWebSearchCallOutput$Outbound = {
39
39
  status: string;
40
40
  };
41
41
  /** @internal */
42
- export declare const ResponsesWebSearchCallOutput$outboundSchema: z.ZodType<ResponsesWebSearchCallOutput$Outbound, z.ZodTypeDef, ResponsesWebSearchCallOutput>;
42
+ export declare const ResponsesWebSearchCallOutput$outboundSchema: z.ZodType<ResponsesWebSearchCallOutput$Outbound, ResponsesWebSearchCallOutput>;
43
43
  /**
44
44
  * @internal
45
45
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
46
46
  */
47
47
  export declare namespace ResponsesWebSearchCallOutput$ {
48
48
  /** @deprecated use `ResponsesWebSearchCallOutput$inboundSchema` instead. */
49
- const inboundSchema: z.ZodType<ResponsesWebSearchCallOutput, z.ZodTypeDef, unknown>;
49
+ const inboundSchema: z.ZodType<ResponsesWebSearchCallOutput, unknown, z.core.$ZodTypeInternals<ResponsesWebSearchCallOutput, unknown>>;
50
50
  /** @deprecated use `ResponsesWebSearchCallOutput$outboundSchema` instead. */
51
- const outboundSchema: z.ZodType<ResponsesWebSearchCallOutput$Outbound, z.ZodTypeDef, ResponsesWebSearchCallOutput>;
51
+ const outboundSchema: z.ZodType<ResponsesWebSearchCallOutput$Outbound, ResponsesWebSearchCallOutput, z.core.$ZodTypeInternals<ResponsesWebSearchCallOutput$Outbound, ResponsesWebSearchCallOutput>>;
52
52
  /** @deprecated use `ResponsesWebSearchCallOutput$Outbound` instead. */
53
53
  type Outbound = ResponsesWebSearchCallOutput$Outbound;
54
54
  }
@@ -1,14 +1,14 @@
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 { WebSearchStatus$inboundSchema, WebSearchStatus$outboundSchema, } from "./websearchstatus.js";
7
7
  export const ResponsesWebSearchCallOutputType = {
8
8
  WebSearchCall: "web_search_call",
9
9
  };
10
10
  /** @internal */
11
- export const ResponsesWebSearchCallOutputType$inboundSchema = z.nativeEnum(ResponsesWebSearchCallOutputType);
11
+ export const ResponsesWebSearchCallOutputType$inboundSchema = z.enum(ResponsesWebSearchCallOutputType);
12
12
  /** @internal */
13
13
  export const ResponsesWebSearchCallOutputType$outboundSchema = ResponsesWebSearchCallOutputType$inboundSchema;
14
14
  /**
@@ -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";
@@ -17,25 +17,25 @@ export type ResponsesWebSearchUserLocation = {
17
17
  timezone?: string | null | undefined;
18
18
  };
19
19
  /** @internal */
20
- export declare const ResponsesWebSearchUserLocationType$inboundSchema: z.ZodNativeEnum<typeof ResponsesWebSearchUserLocationType>;
20
+ export declare const ResponsesWebSearchUserLocationType$inboundSchema: z.ZodEnum<typeof ResponsesWebSearchUserLocationType>;
21
21
  /** @internal */
22
- export declare const ResponsesWebSearchUserLocationType$outboundSchema: z.ZodNativeEnum<typeof ResponsesWebSearchUserLocationType>;
22
+ export declare const ResponsesWebSearchUserLocationType$outboundSchema: z.ZodEnum<typeof ResponsesWebSearchUserLocationType>;
23
23
  /**
24
24
  * @internal
25
25
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
26
26
  */
27
27
  export declare namespace ResponsesWebSearchUserLocationType$ {
28
28
  /** @deprecated use `ResponsesWebSearchUserLocationType$inboundSchema` instead. */
29
- const inboundSchema: z.ZodNativeEnum<{
29
+ const inboundSchema: z.ZodEnum<{
30
30
  readonly Approximate: "approximate";
31
31
  }>;
32
32
  /** @deprecated use `ResponsesWebSearchUserLocationType$outboundSchema` instead. */
33
- const outboundSchema: z.ZodNativeEnum<{
33
+ const outboundSchema: z.ZodEnum<{
34
34
  readonly Approximate: "approximate";
35
35
  }>;
36
36
  }
37
37
  /** @internal */
38
- export declare const ResponsesWebSearchUserLocation$inboundSchema: z.ZodType<ResponsesWebSearchUserLocation, z.ZodTypeDef, unknown>;
38
+ export declare const ResponsesWebSearchUserLocation$inboundSchema: z.ZodType<ResponsesWebSearchUserLocation, unknown>;
39
39
  /** @internal */
40
40
  export type ResponsesWebSearchUserLocation$Outbound = {
41
41
  type?: string | undefined;
@@ -45,16 +45,16 @@ export type ResponsesWebSearchUserLocation$Outbound = {
45
45
  timezone?: string | null | undefined;
46
46
  };
47
47
  /** @internal */
48
- export declare const ResponsesWebSearchUserLocation$outboundSchema: z.ZodType<ResponsesWebSearchUserLocation$Outbound, z.ZodTypeDef, ResponsesWebSearchUserLocation>;
48
+ export declare const ResponsesWebSearchUserLocation$outboundSchema: z.ZodType<ResponsesWebSearchUserLocation$Outbound, ResponsesWebSearchUserLocation>;
49
49
  /**
50
50
  * @internal
51
51
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
52
52
  */
53
53
  export declare namespace ResponsesWebSearchUserLocation$ {
54
54
  /** @deprecated use `ResponsesWebSearchUserLocation$inboundSchema` instead. */
55
- const inboundSchema: z.ZodType<ResponsesWebSearchUserLocation, z.ZodTypeDef, unknown>;
55
+ const inboundSchema: z.ZodType<ResponsesWebSearchUserLocation, unknown, z.core.$ZodTypeInternals<ResponsesWebSearchUserLocation, unknown>>;
56
56
  /** @deprecated use `ResponsesWebSearchUserLocation$outboundSchema` instead. */
57
- const outboundSchema: z.ZodType<ResponsesWebSearchUserLocation$Outbound, z.ZodTypeDef, ResponsesWebSearchUserLocation>;
57
+ const outboundSchema: z.ZodType<ResponsesWebSearchUserLocation$Outbound, ResponsesWebSearchUserLocation, z.core.$ZodTypeInternals<ResponsesWebSearchUserLocation$Outbound, ResponsesWebSearchUserLocation>>;
58
58
  /** @deprecated use `ResponsesWebSearchUserLocation$Outbound` instead. */
59
59
  type Outbound = ResponsesWebSearchUserLocation$Outbound;
60
60
  }
@@ -1,13 +1,13 @@
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
  export const ResponsesWebSearchUserLocationType = {
7
7
  Approximate: "approximate",
8
8
  };
9
9
  /** @internal */
10
- export const ResponsesWebSearchUserLocationType$inboundSchema = z.nativeEnum(ResponsesWebSearchUserLocationType);
10
+ export const ResponsesWebSearchUserLocationType$inboundSchema = z.enum(ResponsesWebSearchUserLocationType);
11
11
  /** @internal */
12
12
  export const ResponsesWebSearchUserLocationType$outboundSchema = ResponsesWebSearchUserLocationType$inboundSchema;
13
13
  /**
@@ -1,26 +1,26 @@
1
- import * as z from "zod/v3";
1
+ import * as z from "zod/v4";
2
2
  import { Result as SafeParseResult } from "../types/fp.js";
3
3
  import { SDKValidationError } from "./errors/sdkvalidationerror.js";
4
4
  export type Security = {
5
5
  apiKey?: string | undefined;
6
6
  };
7
7
  /** @internal */
8
- export declare const Security$inboundSchema: z.ZodType<Security, z.ZodTypeDef, unknown>;
8
+ export declare const Security$inboundSchema: z.ZodType<Security, unknown>;
9
9
  /** @internal */
10
10
  export type Security$Outbound = {
11
11
  apiKey?: string | undefined;
12
12
  };
13
13
  /** @internal */
14
- export declare const Security$outboundSchema: z.ZodType<Security$Outbound, z.ZodTypeDef, Security>;
14
+ export declare const Security$outboundSchema: z.ZodType<Security$Outbound, Security>;
15
15
  /**
16
16
  * @internal
17
17
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
18
18
  */
19
19
  export declare namespace Security$ {
20
20
  /** @deprecated use `Security$inboundSchema` instead. */
21
- const inboundSchema: z.ZodType<Security, z.ZodTypeDef, unknown>;
21
+ const inboundSchema: z.ZodType<Security, unknown, z.core.$ZodTypeInternals<Security, unknown>>;
22
22
  /** @deprecated use `Security$outboundSchema` instead. */
23
- const outboundSchema: z.ZodType<Security$Outbound, z.ZodTypeDef, Security>;
23
+ const outboundSchema: z.ZodType<Security$Outbound, Security, z.core.$ZodTypeInternals<Security$Outbound, Security>>;
24
24
  /** @deprecated use `Security$Outbound` instead. */
25
25
  type Outbound = Security$Outbound;
26
26
  }