@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 { OpenEnum } from "../../types/enums.js";
3
3
  import { Result as SafeParseResult } from "../../types/fp.js";
4
4
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
@@ -130,21 +130,21 @@ export type UpdateKeysResponse = {
130
130
  data: UpdateKeysData;
131
131
  };
132
132
  /** @internal */
133
- export declare const UpdateKeysLimitReset$inboundSchema: z.ZodType<UpdateKeysLimitReset, z.ZodTypeDef, unknown>;
133
+ export declare const UpdateKeysLimitReset$inboundSchema: z.ZodType<UpdateKeysLimitReset, unknown>;
134
134
  /** @internal */
135
- export declare const UpdateKeysLimitReset$outboundSchema: z.ZodType<UpdateKeysLimitReset, z.ZodTypeDef, UpdateKeysLimitReset>;
135
+ export declare const UpdateKeysLimitReset$outboundSchema: z.ZodType<UpdateKeysLimitReset, UpdateKeysLimitReset>;
136
136
  /**
137
137
  * @internal
138
138
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
139
139
  */
140
140
  export declare namespace UpdateKeysLimitReset$ {
141
141
  /** @deprecated use `UpdateKeysLimitReset$inboundSchema` instead. */
142
- const inboundSchema: z.ZodType<UpdateKeysLimitReset, z.ZodTypeDef, unknown>;
142
+ const inboundSchema: z.ZodType<UpdateKeysLimitReset, unknown, z.core.$ZodTypeInternals<UpdateKeysLimitReset, unknown>>;
143
143
  /** @deprecated use `UpdateKeysLimitReset$outboundSchema` instead. */
144
- const outboundSchema: z.ZodType<UpdateKeysLimitReset, z.ZodTypeDef, UpdateKeysLimitReset>;
144
+ const outboundSchema: z.ZodType<UpdateKeysLimitReset, UpdateKeysLimitReset, z.core.$ZodTypeInternals<UpdateKeysLimitReset, UpdateKeysLimitReset>>;
145
145
  }
146
146
  /** @internal */
147
- export declare const UpdateKeysRequestBody$inboundSchema: z.ZodType<UpdateKeysRequestBody, z.ZodTypeDef, unknown>;
147
+ export declare const UpdateKeysRequestBody$inboundSchema: z.ZodType<UpdateKeysRequestBody, unknown>;
148
148
  /** @internal */
149
149
  export type UpdateKeysRequestBody$Outbound = {
150
150
  name?: string | undefined;
@@ -154,46 +154,46 @@ export type UpdateKeysRequestBody$Outbound = {
154
154
  include_byok_in_limit?: boolean | undefined;
155
155
  };
156
156
  /** @internal */
157
- export declare const UpdateKeysRequestBody$outboundSchema: z.ZodType<UpdateKeysRequestBody$Outbound, z.ZodTypeDef, UpdateKeysRequestBody>;
157
+ export declare const UpdateKeysRequestBody$outboundSchema: z.ZodType<UpdateKeysRequestBody$Outbound, UpdateKeysRequestBody>;
158
158
  /**
159
159
  * @internal
160
160
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
161
161
  */
162
162
  export declare namespace UpdateKeysRequestBody$ {
163
163
  /** @deprecated use `UpdateKeysRequestBody$inboundSchema` instead. */
164
- const inboundSchema: z.ZodType<UpdateKeysRequestBody, z.ZodTypeDef, unknown>;
164
+ const inboundSchema: z.ZodType<UpdateKeysRequestBody, unknown, z.core.$ZodTypeInternals<UpdateKeysRequestBody, unknown>>;
165
165
  /** @deprecated use `UpdateKeysRequestBody$outboundSchema` instead. */
166
- const outboundSchema: z.ZodType<UpdateKeysRequestBody$Outbound, z.ZodTypeDef, UpdateKeysRequestBody>;
166
+ const outboundSchema: z.ZodType<UpdateKeysRequestBody$Outbound, UpdateKeysRequestBody, z.core.$ZodTypeInternals<UpdateKeysRequestBody$Outbound, UpdateKeysRequestBody>>;
167
167
  /** @deprecated use `UpdateKeysRequestBody$Outbound` instead. */
168
168
  type Outbound = UpdateKeysRequestBody$Outbound;
169
169
  }
170
170
  export declare function updateKeysRequestBodyToJSON(updateKeysRequestBody: UpdateKeysRequestBody): string;
171
171
  export declare function updateKeysRequestBodyFromJSON(jsonString: string): SafeParseResult<UpdateKeysRequestBody, SDKValidationError>;
172
172
  /** @internal */
173
- export declare const UpdateKeysRequest$inboundSchema: z.ZodType<UpdateKeysRequest, z.ZodTypeDef, unknown>;
173
+ export declare const UpdateKeysRequest$inboundSchema: z.ZodType<UpdateKeysRequest, unknown>;
174
174
  /** @internal */
175
175
  export type UpdateKeysRequest$Outbound = {
176
176
  hash: string;
177
177
  RequestBody: UpdateKeysRequestBody$Outbound;
178
178
  };
179
179
  /** @internal */
180
- export declare const UpdateKeysRequest$outboundSchema: z.ZodType<UpdateKeysRequest$Outbound, z.ZodTypeDef, UpdateKeysRequest>;
180
+ export declare const UpdateKeysRequest$outboundSchema: z.ZodType<UpdateKeysRequest$Outbound, UpdateKeysRequest>;
181
181
  /**
182
182
  * @internal
183
183
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
184
184
  */
185
185
  export declare namespace UpdateKeysRequest$ {
186
186
  /** @deprecated use `UpdateKeysRequest$inboundSchema` instead. */
187
- const inboundSchema: z.ZodType<UpdateKeysRequest, z.ZodTypeDef, unknown>;
187
+ const inboundSchema: z.ZodType<UpdateKeysRequest, unknown, z.core.$ZodTypeInternals<UpdateKeysRequest, unknown>>;
188
188
  /** @deprecated use `UpdateKeysRequest$outboundSchema` instead. */
189
- const outboundSchema: z.ZodType<UpdateKeysRequest$Outbound, z.ZodTypeDef, UpdateKeysRequest>;
189
+ const outboundSchema: z.ZodType<UpdateKeysRequest$Outbound, UpdateKeysRequest, z.core.$ZodTypeInternals<UpdateKeysRequest$Outbound, UpdateKeysRequest>>;
190
190
  /** @deprecated use `UpdateKeysRequest$Outbound` instead. */
191
191
  type Outbound = UpdateKeysRequest$Outbound;
192
192
  }
193
193
  export declare function updateKeysRequestToJSON(updateKeysRequest: UpdateKeysRequest): string;
194
194
  export declare function updateKeysRequestFromJSON(jsonString: string): SafeParseResult<UpdateKeysRequest, SDKValidationError>;
195
195
  /** @internal */
196
- export declare const UpdateKeysData$inboundSchema: z.ZodType<UpdateKeysData, z.ZodTypeDef, unknown>;
196
+ export declare const UpdateKeysData$inboundSchema: z.ZodType<UpdateKeysData, unknown>;
197
197
  /** @internal */
198
198
  export type UpdateKeysData$Outbound = {
199
199
  hash: string;
@@ -216,38 +216,38 @@ export type UpdateKeysData$Outbound = {
216
216
  updated_at: string | null;
217
217
  };
218
218
  /** @internal */
219
- export declare const UpdateKeysData$outboundSchema: z.ZodType<UpdateKeysData$Outbound, z.ZodTypeDef, UpdateKeysData>;
219
+ export declare const UpdateKeysData$outboundSchema: z.ZodType<UpdateKeysData$Outbound, UpdateKeysData>;
220
220
  /**
221
221
  * @internal
222
222
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
223
223
  */
224
224
  export declare namespace UpdateKeysData$ {
225
225
  /** @deprecated use `UpdateKeysData$inboundSchema` instead. */
226
- const inboundSchema: z.ZodType<UpdateKeysData, z.ZodTypeDef, unknown>;
226
+ const inboundSchema: z.ZodType<UpdateKeysData, unknown, z.core.$ZodTypeInternals<UpdateKeysData, unknown>>;
227
227
  /** @deprecated use `UpdateKeysData$outboundSchema` instead. */
228
- const outboundSchema: z.ZodType<UpdateKeysData$Outbound, z.ZodTypeDef, UpdateKeysData>;
228
+ const outboundSchema: z.ZodType<UpdateKeysData$Outbound, UpdateKeysData, z.core.$ZodTypeInternals<UpdateKeysData$Outbound, UpdateKeysData>>;
229
229
  /** @deprecated use `UpdateKeysData$Outbound` instead. */
230
230
  type Outbound = UpdateKeysData$Outbound;
231
231
  }
232
232
  export declare function updateKeysDataToJSON(updateKeysData: UpdateKeysData): string;
233
233
  export declare function updateKeysDataFromJSON(jsonString: string): SafeParseResult<UpdateKeysData, SDKValidationError>;
234
234
  /** @internal */
235
- export declare const UpdateKeysResponse$inboundSchema: z.ZodType<UpdateKeysResponse, z.ZodTypeDef, unknown>;
235
+ export declare const UpdateKeysResponse$inboundSchema: z.ZodType<UpdateKeysResponse, unknown>;
236
236
  /** @internal */
237
237
  export type UpdateKeysResponse$Outbound = {
238
238
  data: UpdateKeysData$Outbound;
239
239
  };
240
240
  /** @internal */
241
- export declare const UpdateKeysResponse$outboundSchema: z.ZodType<UpdateKeysResponse$Outbound, z.ZodTypeDef, UpdateKeysResponse>;
241
+ export declare const UpdateKeysResponse$outboundSchema: z.ZodType<UpdateKeysResponse$Outbound, UpdateKeysResponse>;
242
242
  /**
243
243
  * @internal
244
244
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
245
245
  */
246
246
  export declare namespace UpdateKeysResponse$ {
247
247
  /** @deprecated use `UpdateKeysResponse$inboundSchema` instead. */
248
- const inboundSchema: z.ZodType<UpdateKeysResponse, z.ZodTypeDef, unknown>;
248
+ const inboundSchema: z.ZodType<UpdateKeysResponse, unknown, z.core.$ZodTypeInternals<UpdateKeysResponse, unknown>>;
249
249
  /** @deprecated use `UpdateKeysResponse$outboundSchema` instead. */
250
- const outboundSchema: z.ZodType<UpdateKeysResponse$Outbound, z.ZodTypeDef, UpdateKeysResponse>;
250
+ const outboundSchema: z.ZodType<UpdateKeysResponse$Outbound, UpdateKeysResponse, z.core.$ZodTypeInternals<UpdateKeysResponse$Outbound, UpdateKeysResponse>>;
251
251
  /** @deprecated use `UpdateKeysResponse$Outbound` instead. */
252
252
  type Outbound = UpdateKeysResponse$Outbound;
253
253
  }
@@ -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 { catchUnrecognizedEnum, } from "../../types/enums.js";
@@ -16,12 +16,12 @@ export const UpdateKeysLimitReset = {
16
16
  /** @internal */
17
17
  export const UpdateKeysLimitReset$inboundSchema = z
18
18
  .union([
19
- z.nativeEnum(UpdateKeysLimitReset),
19
+ z.enum(UpdateKeysLimitReset),
20
20
  z.string().transform(catchUnrecognizedEnum),
21
21
  ]);
22
22
  /** @internal */
23
23
  export const UpdateKeysLimitReset$outboundSchema = z.union([
24
- z.nativeEnum(UpdateKeysLimitReset),
24
+ z.enum(UpdateKeysLimitReset),
25
25
  z.string().and(z.custom()),
26
26
  ]);
27
27
  /**
@@ -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";
@@ -16,45 +16,45 @@ export type OutputTextContent = {
16
16
  annotations?: Array<URLCitationAnnotation | FileCitationAnnotation | FilePathAnnotation> | undefined;
17
17
  };
18
18
  /** @internal */
19
- export declare const OutputTextContentType$inboundSchema: z.ZodNativeEnum<typeof OutputTextContentType>;
19
+ export declare const OutputTextContentType$inboundSchema: z.ZodEnum<typeof OutputTextContentType>;
20
20
  /** @internal */
21
- export declare const OutputTextContentType$outboundSchema: z.ZodNativeEnum<typeof OutputTextContentType>;
21
+ export declare const OutputTextContentType$outboundSchema: z.ZodEnum<typeof OutputTextContentType>;
22
22
  /**
23
23
  * @internal
24
24
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
25
25
  */
26
26
  export declare namespace OutputTextContentType$ {
27
27
  /** @deprecated use `OutputTextContentType$inboundSchema` instead. */
28
- const inboundSchema: z.ZodNativeEnum<{
28
+ const inboundSchema: z.ZodEnum<{
29
29
  readonly OutputText: "output_text";
30
30
  }>;
31
31
  /** @deprecated use `OutputTextContentType$outboundSchema` instead. */
32
- const outboundSchema: z.ZodNativeEnum<{
32
+ const outboundSchema: z.ZodEnum<{
33
33
  readonly OutputText: "output_text";
34
34
  }>;
35
35
  }
36
36
  /** @internal */
37
- export declare const OutputTextContentAnnotation$inboundSchema: z.ZodType<OutputTextContentAnnotation, z.ZodTypeDef, unknown>;
37
+ export declare const OutputTextContentAnnotation$inboundSchema: z.ZodType<OutputTextContentAnnotation, unknown>;
38
38
  /** @internal */
39
39
  export type OutputTextContentAnnotation$Outbound = URLCitationAnnotation$Outbound | FileCitationAnnotation$Outbound | FilePathAnnotation$Outbound;
40
40
  /** @internal */
41
- export declare const OutputTextContentAnnotation$outboundSchema: z.ZodType<OutputTextContentAnnotation$Outbound, z.ZodTypeDef, OutputTextContentAnnotation>;
41
+ export declare const OutputTextContentAnnotation$outboundSchema: z.ZodType<OutputTextContentAnnotation$Outbound, OutputTextContentAnnotation>;
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 OutputTextContentAnnotation$ {
47
47
  /** @deprecated use `OutputTextContentAnnotation$inboundSchema` instead. */
48
- const inboundSchema: z.ZodType<OutputTextContentAnnotation, z.ZodTypeDef, unknown>;
48
+ const inboundSchema: z.ZodType<OutputTextContentAnnotation, unknown, z.core.$ZodTypeInternals<OutputTextContentAnnotation, unknown>>;
49
49
  /** @deprecated use `OutputTextContentAnnotation$outboundSchema` instead. */
50
- const outboundSchema: z.ZodType<OutputTextContentAnnotation$Outbound, z.ZodTypeDef, OutputTextContentAnnotation>;
50
+ const outboundSchema: z.ZodType<OutputTextContentAnnotation$Outbound, OutputTextContentAnnotation, z.core.$ZodTypeInternals<OutputTextContentAnnotation$Outbound, OutputTextContentAnnotation>>;
51
51
  /** @deprecated use `OutputTextContentAnnotation$Outbound` instead. */
52
52
  type Outbound = OutputTextContentAnnotation$Outbound;
53
53
  }
54
54
  export declare function outputTextContentAnnotationToJSON(outputTextContentAnnotation: OutputTextContentAnnotation): string;
55
55
  export declare function outputTextContentAnnotationFromJSON(jsonString: string): SafeParseResult<OutputTextContentAnnotation, SDKValidationError>;
56
56
  /** @internal */
57
- export declare const OutputTextContent$inboundSchema: z.ZodType<OutputTextContent, z.ZodTypeDef, unknown>;
57
+ export declare const OutputTextContent$inboundSchema: z.ZodType<OutputTextContent, unknown>;
58
58
  /** @internal */
59
59
  export type OutputTextContent$Outbound = {
60
60
  type: string;
@@ -62,16 +62,16 @@ export type OutputTextContent$Outbound = {
62
62
  annotations?: Array<URLCitationAnnotation$Outbound | FileCitationAnnotation$Outbound | FilePathAnnotation$Outbound> | undefined;
63
63
  };
64
64
  /** @internal */
65
- export declare const OutputTextContent$outboundSchema: z.ZodType<OutputTextContent$Outbound, z.ZodTypeDef, OutputTextContent>;
65
+ export declare const OutputTextContent$outboundSchema: z.ZodType<OutputTextContent$Outbound, OutputTextContent>;
66
66
  /**
67
67
  * @internal
68
68
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
69
69
  */
70
70
  export declare namespace OutputTextContent$ {
71
71
  /** @deprecated use `OutputTextContent$inboundSchema` instead. */
72
- const inboundSchema: z.ZodType<OutputTextContent, z.ZodTypeDef, unknown>;
72
+ const inboundSchema: z.ZodType<OutputTextContent, unknown, z.core.$ZodTypeInternals<OutputTextContent, unknown>>;
73
73
  /** @deprecated use `OutputTextContent$outboundSchema` instead. */
74
- const outboundSchema: z.ZodType<OutputTextContent$Outbound, z.ZodTypeDef, OutputTextContent>;
74
+ const outboundSchema: z.ZodType<OutputTextContent$Outbound, OutputTextContent, z.core.$ZodTypeInternals<OutputTextContent$Outbound, OutputTextContent>>;
75
75
  /** @deprecated use `OutputTextContent$Outbound` instead. */
76
76
  type Outbound = OutputTextContent$Outbound;
77
77
  }
@@ -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 { FileCitationAnnotation$inboundSchema, FileCitationAnnotation$outboundSchema, } from "./filecitationannotation.js";
7
7
  import { FilePathAnnotation$inboundSchema, FilePathAnnotation$outboundSchema, } from "./filepathannotation.js";
@@ -10,7 +10,7 @@ export const OutputTextContentType = {
10
10
  OutputText: "output_text",
11
11
  };
12
12
  /** @internal */
13
- export const OutputTextContentType$inboundSchema = z.nativeEnum(OutputTextContentType);
13
+ export const OutputTextContentType$inboundSchema = z.enum(OutputTextContentType);
14
14
  /** @internal */
15
15
  export const OutputTextContentType$outboundSchema = OutputTextContentType$inboundSchema;
16
16
  /**
@@ -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
  /**
@@ -6,20 +6,20 @@ import { SDKValidationError } from "./errors/sdkvalidationerror.js";
6
6
  */
7
7
  export type PublicEndpoint = {};
8
8
  /** @internal */
9
- export declare const PublicEndpoint$inboundSchema: z.ZodType<PublicEndpoint, z.ZodTypeDef, unknown>;
9
+ export declare const PublicEndpoint$inboundSchema: z.ZodType<PublicEndpoint, unknown>;
10
10
  /** @internal */
11
11
  export type PublicEndpoint$Outbound = {};
12
12
  /** @internal */
13
- export declare const PublicEndpoint$outboundSchema: z.ZodType<PublicEndpoint$Outbound, z.ZodTypeDef, PublicEndpoint>;
13
+ export declare const PublicEndpoint$outboundSchema: z.ZodType<PublicEndpoint$Outbound, PublicEndpoint>;
14
14
  /**
15
15
  * @internal
16
16
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
17
17
  */
18
18
  export declare namespace PublicEndpoint$ {
19
19
  /** @deprecated use `PublicEndpoint$inboundSchema` instead. */
20
- const inboundSchema: z.ZodType<PublicEndpoint, z.ZodTypeDef, unknown>;
20
+ const inboundSchema: z.ZodType<PublicEndpoint, unknown, z.core.$ZodTypeInternals<PublicEndpoint, unknown>>;
21
21
  /** @deprecated use `PublicEndpoint$outboundSchema` instead. */
22
- const outboundSchema: z.ZodType<PublicEndpoint$Outbound, z.ZodTypeDef, PublicEndpoint>;
22
+ const outboundSchema: z.ZodType<PublicEndpoint$Outbound, PublicEndpoint, z.core.$ZodTypeInternals<PublicEndpoint$Outbound, PublicEndpoint>>;
23
23
  /** @deprecated use `PublicEndpoint$Outbound` instead. */
24
24
  type Outbound = PublicEndpoint$Outbound;
25
25
  }
@@ -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
  /** @internal */
7
7
  export const PublicEndpoint$inboundSchema = z.object({});
@@ -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";
@@ -11,41 +11,41 @@ export type ReasoningSummaryText = {
11
11
  text: string;
12
12
  };
13
13
  /** @internal */
14
- export declare const ReasoningSummaryTextType$inboundSchema: z.ZodNativeEnum<typeof ReasoningSummaryTextType>;
14
+ export declare const ReasoningSummaryTextType$inboundSchema: z.ZodEnum<typeof ReasoningSummaryTextType>;
15
15
  /** @internal */
16
- export declare const ReasoningSummaryTextType$outboundSchema: z.ZodNativeEnum<typeof ReasoningSummaryTextType>;
16
+ export declare const ReasoningSummaryTextType$outboundSchema: z.ZodEnum<typeof ReasoningSummaryTextType>;
17
17
  /**
18
18
  * @internal
19
19
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
20
20
  */
21
21
  export declare namespace ReasoningSummaryTextType$ {
22
22
  /** @deprecated use `ReasoningSummaryTextType$inboundSchema` instead. */
23
- const inboundSchema: z.ZodNativeEnum<{
23
+ const inboundSchema: z.ZodEnum<{
24
24
  readonly SummaryText: "summary_text";
25
25
  }>;
26
26
  /** @deprecated use `ReasoningSummaryTextType$outboundSchema` instead. */
27
- const outboundSchema: z.ZodNativeEnum<{
27
+ const outboundSchema: z.ZodEnum<{
28
28
  readonly SummaryText: "summary_text";
29
29
  }>;
30
30
  }
31
31
  /** @internal */
32
- export declare const ReasoningSummaryText$inboundSchema: z.ZodType<ReasoningSummaryText, z.ZodTypeDef, unknown>;
32
+ export declare const ReasoningSummaryText$inboundSchema: z.ZodType<ReasoningSummaryText, unknown>;
33
33
  /** @internal */
34
34
  export type ReasoningSummaryText$Outbound = {
35
35
  type: string;
36
36
  text: string;
37
37
  };
38
38
  /** @internal */
39
- export declare const ReasoningSummaryText$outboundSchema: z.ZodType<ReasoningSummaryText$Outbound, z.ZodTypeDef, ReasoningSummaryText>;
39
+ export declare const ReasoningSummaryText$outboundSchema: z.ZodType<ReasoningSummaryText$Outbound, ReasoningSummaryText>;
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 ReasoningSummaryText$ {
45
45
  /** @deprecated use `ReasoningSummaryText$inboundSchema` instead. */
46
- const inboundSchema: z.ZodType<ReasoningSummaryText, z.ZodTypeDef, unknown>;
46
+ const inboundSchema: z.ZodType<ReasoningSummaryText, unknown, z.core.$ZodTypeInternals<ReasoningSummaryText, unknown>>;
47
47
  /** @deprecated use `ReasoningSummaryText$outboundSchema` instead. */
48
- const outboundSchema: z.ZodType<ReasoningSummaryText$Outbound, z.ZodTypeDef, ReasoningSummaryText>;
48
+ const outboundSchema: z.ZodType<ReasoningSummaryText$Outbound, ReasoningSummaryText, z.core.$ZodTypeInternals<ReasoningSummaryText$Outbound, ReasoningSummaryText>>;
49
49
  /** @deprecated use `ReasoningSummaryText$Outbound` instead. */
50
50
  type Outbound = ReasoningSummaryText$Outbound;
51
51
  }
@@ -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 ReasoningSummaryTextType = {
7
7
  SummaryText: "summary_text",
8
8
  };
9
9
  /** @internal */
10
- export const ReasoningSummaryTextType$inboundSchema = z.nativeEnum(ReasoningSummaryTextType);
10
+ export const ReasoningSummaryTextType$inboundSchema = z.enum(ReasoningSummaryTextType);
11
11
  /** @internal */
12
12
  export const ReasoningSummaryTextType$outboundSchema = ReasoningSummaryTextType$inboundSchema;
13
13
  /**
@@ -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
  export declare const ReasoningSummaryVerbosity: {
4
4
  readonly Auto: "auto";
@@ -7,16 +7,16 @@ export declare const ReasoningSummaryVerbosity: {
7
7
  };
8
8
  export type ReasoningSummaryVerbosity = OpenEnum<typeof ReasoningSummaryVerbosity>;
9
9
  /** @internal */
10
- export declare const ReasoningSummaryVerbosity$inboundSchema: z.ZodType<ReasoningSummaryVerbosity, z.ZodTypeDef, unknown>;
10
+ export declare const ReasoningSummaryVerbosity$inboundSchema: z.ZodType<ReasoningSummaryVerbosity, unknown>;
11
11
  /** @internal */
12
- export declare const ReasoningSummaryVerbosity$outboundSchema: z.ZodType<ReasoningSummaryVerbosity, z.ZodTypeDef, ReasoningSummaryVerbosity>;
12
+ export declare const ReasoningSummaryVerbosity$outboundSchema: z.ZodType<ReasoningSummaryVerbosity, ReasoningSummaryVerbosity>;
13
13
  /**
14
14
  * @internal
15
15
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
16
16
  */
17
17
  export declare namespace ReasoningSummaryVerbosity$ {
18
18
  /** @deprecated use `ReasoningSummaryVerbosity$inboundSchema` instead. */
19
- const inboundSchema: z.ZodType<ReasoningSummaryVerbosity, z.ZodTypeDef, unknown>;
19
+ const inboundSchema: z.ZodType<ReasoningSummaryVerbosity, unknown, z.core.$ZodTypeInternals<ReasoningSummaryVerbosity, unknown>>;
20
20
  /** @deprecated use `ReasoningSummaryVerbosity$outboundSchema` instead. */
21
- const outboundSchema: z.ZodType<ReasoningSummaryVerbosity, z.ZodTypeDef, ReasoningSummaryVerbosity>;
21
+ const outboundSchema: z.ZodType<ReasoningSummaryVerbosity, ReasoningSummaryVerbosity, z.core.$ZodTypeInternals<ReasoningSummaryVerbosity, ReasoningSummaryVerbosity>>;
22
22
  }
@@ -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
  export const ReasoningSummaryVerbosity = {
7
7
  Auto: "auto",
@@ -11,12 +11,12 @@ export const ReasoningSummaryVerbosity = {
11
11
  /** @internal */
12
12
  export const ReasoningSummaryVerbosity$inboundSchema = z
13
13
  .union([
14
- z.nativeEnum(ReasoningSummaryVerbosity),
14
+ z.enum(ReasoningSummaryVerbosity),
15
15
  z.string().transform(catchUnrecognizedEnum),
16
16
  ]);
17
17
  /** @internal */
18
18
  export const ReasoningSummaryVerbosity$outboundSchema = z.union([
19
- z.nativeEnum(ReasoningSummaryVerbosity),
19
+ z.enum(ReasoningSummaryVerbosity),
20
20
  z.string().and(z.custom()),
21
21
  ]);
22
22
  /**
@@ -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";
@@ -11,41 +11,41 @@ export type ReasoningTextContent = {
11
11
  text: string;
12
12
  };
13
13
  /** @internal */
14
- export declare const ReasoningTextContentType$inboundSchema: z.ZodNativeEnum<typeof ReasoningTextContentType>;
14
+ export declare const ReasoningTextContentType$inboundSchema: z.ZodEnum<typeof ReasoningTextContentType>;
15
15
  /** @internal */
16
- export declare const ReasoningTextContentType$outboundSchema: z.ZodNativeEnum<typeof ReasoningTextContentType>;
16
+ export declare const ReasoningTextContentType$outboundSchema: z.ZodEnum<typeof ReasoningTextContentType>;
17
17
  /**
18
18
  * @internal
19
19
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
20
20
  */
21
21
  export declare namespace ReasoningTextContentType$ {
22
22
  /** @deprecated use `ReasoningTextContentType$inboundSchema` instead. */
23
- const inboundSchema: z.ZodNativeEnum<{
23
+ const inboundSchema: z.ZodEnum<{
24
24
  readonly ReasoningText: "reasoning_text";
25
25
  }>;
26
26
  /** @deprecated use `ReasoningTextContentType$outboundSchema` instead. */
27
- const outboundSchema: z.ZodNativeEnum<{
27
+ const outboundSchema: z.ZodEnum<{
28
28
  readonly ReasoningText: "reasoning_text";
29
29
  }>;
30
30
  }
31
31
  /** @internal */
32
- export declare const ReasoningTextContent$inboundSchema: z.ZodType<ReasoningTextContent, z.ZodTypeDef, unknown>;
32
+ export declare const ReasoningTextContent$inboundSchema: z.ZodType<ReasoningTextContent, unknown>;
33
33
  /** @internal */
34
34
  export type ReasoningTextContent$Outbound = {
35
35
  type: string;
36
36
  text: string;
37
37
  };
38
38
  /** @internal */
39
- export declare const ReasoningTextContent$outboundSchema: z.ZodType<ReasoningTextContent$Outbound, z.ZodTypeDef, ReasoningTextContent>;
39
+ export declare const ReasoningTextContent$outboundSchema: z.ZodType<ReasoningTextContent$Outbound, ReasoningTextContent>;
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 ReasoningTextContent$ {
45
45
  /** @deprecated use `ReasoningTextContent$inboundSchema` instead. */
46
- const inboundSchema: z.ZodType<ReasoningTextContent, z.ZodTypeDef, unknown>;
46
+ const inboundSchema: z.ZodType<ReasoningTextContent, unknown, z.core.$ZodTypeInternals<ReasoningTextContent, unknown>>;
47
47
  /** @deprecated use `ReasoningTextContent$outboundSchema` instead. */
48
- const outboundSchema: z.ZodType<ReasoningTextContent$Outbound, z.ZodTypeDef, ReasoningTextContent>;
48
+ const outboundSchema: z.ZodType<ReasoningTextContent$Outbound, ReasoningTextContent, z.core.$ZodTypeInternals<ReasoningTextContent$Outbound, ReasoningTextContent>>;
49
49
  /** @deprecated use `ReasoningTextContent$Outbound` instead. */
50
50
  type Outbound = ReasoningTextContent$Outbound;
51
51
  }
@@ -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 ReasoningTextContentType = {
7
7
  ReasoningText: "reasoning_text",
8
8
  };
9
9
  /** @internal */
10
- export const ReasoningTextContentType$inboundSchema = z.nativeEnum(ReasoningTextContentType);
10
+ export const ReasoningTextContentType$inboundSchema = z.enum(ReasoningTextContentType);
11
11
  /** @internal */
12
12
  export const ReasoningTextContentType$outboundSchema = ReasoningTextContentType$inboundSchema;
13
13
  /**
@@ -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";
@@ -11,41 +11,41 @@ export type RefusalContent = {
11
11
  refusal: string;
12
12
  };
13
13
  /** @internal */
14
- export declare const RefusalContentType$inboundSchema: z.ZodNativeEnum<typeof RefusalContentType>;
14
+ export declare const RefusalContentType$inboundSchema: z.ZodEnum<typeof RefusalContentType>;
15
15
  /** @internal */
16
- export declare const RefusalContentType$outboundSchema: z.ZodNativeEnum<typeof RefusalContentType>;
16
+ export declare const RefusalContentType$outboundSchema: z.ZodEnum<typeof RefusalContentType>;
17
17
  /**
18
18
  * @internal
19
19
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
20
20
  */
21
21
  export declare namespace RefusalContentType$ {
22
22
  /** @deprecated use `RefusalContentType$inboundSchema` instead. */
23
- const inboundSchema: z.ZodNativeEnum<{
23
+ const inboundSchema: z.ZodEnum<{
24
24
  readonly Refusal: "refusal";
25
25
  }>;
26
26
  /** @deprecated use `RefusalContentType$outboundSchema` instead. */
27
- const outboundSchema: z.ZodNativeEnum<{
27
+ const outboundSchema: z.ZodEnum<{
28
28
  readonly Refusal: "refusal";
29
29
  }>;
30
30
  }
31
31
  /** @internal */
32
- export declare const RefusalContent$inboundSchema: z.ZodType<RefusalContent, z.ZodTypeDef, unknown>;
32
+ export declare const RefusalContent$inboundSchema: z.ZodType<RefusalContent, unknown>;
33
33
  /** @internal */
34
34
  export type RefusalContent$Outbound = {
35
35
  type: string;
36
36
  refusal: string;
37
37
  };
38
38
  /** @internal */
39
- export declare const RefusalContent$outboundSchema: z.ZodType<RefusalContent$Outbound, z.ZodTypeDef, RefusalContent>;
39
+ export declare const RefusalContent$outboundSchema: z.ZodType<RefusalContent$Outbound, RefusalContent>;
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 RefusalContent$ {
45
45
  /** @deprecated use `RefusalContent$inboundSchema` instead. */
46
- const inboundSchema: z.ZodType<RefusalContent, z.ZodTypeDef, unknown>;
46
+ const inboundSchema: z.ZodType<RefusalContent, unknown, z.core.$ZodTypeInternals<RefusalContent, unknown>>;
47
47
  /** @deprecated use `RefusalContent$outboundSchema` instead. */
48
- const outboundSchema: z.ZodType<RefusalContent$Outbound, z.ZodTypeDef, RefusalContent>;
48
+ const outboundSchema: z.ZodType<RefusalContent$Outbound, RefusalContent, z.core.$ZodTypeInternals<RefusalContent$Outbound, RefusalContent>>;
49
49
  /** @deprecated use `RefusalContent$Outbound` instead. */
50
50
  type Outbound = RefusalContent$Outbound;
51
51
  }
@@ -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 RefusalContentType = {
7
7
  Refusal: "refusal",
8
8
  };
9
9
  /** @internal */
10
- export const RefusalContentType$inboundSchema = z.nativeEnum(RefusalContentType);
10
+ export const RefusalContentType$inboundSchema = z.enum(RefusalContentType);
11
11
  /** @internal */
12
12
  export const RefusalContentType$outboundSchema = RefusalContentType$inboundSchema;
13
13
  /**
@@ -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
  import { JSONSchemaConfig, JSONSchemaConfig$Outbound } from "./jsonschemaconfig.js";
@@ -7,23 +7,23 @@ export type ResponseFormatJSONSchema = {
7
7
  jsonSchema: JSONSchemaConfig;
8
8
  };
9
9
  /** @internal */
10
- export declare const ResponseFormatJSONSchema$inboundSchema: z.ZodType<ResponseFormatJSONSchema, z.ZodTypeDef, unknown>;
10
+ export declare const ResponseFormatJSONSchema$inboundSchema: z.ZodType<ResponseFormatJSONSchema, unknown>;
11
11
  /** @internal */
12
12
  export type ResponseFormatJSONSchema$Outbound = {
13
13
  type: "json_schema";
14
14
  json_schema: JSONSchemaConfig$Outbound;
15
15
  };
16
16
  /** @internal */
17
- export declare const ResponseFormatJSONSchema$outboundSchema: z.ZodType<ResponseFormatJSONSchema$Outbound, z.ZodTypeDef, ResponseFormatJSONSchema>;
17
+ export declare const ResponseFormatJSONSchema$outboundSchema: z.ZodType<ResponseFormatJSONSchema$Outbound, ResponseFormatJSONSchema>;
18
18
  /**
19
19
  * @internal
20
20
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
21
21
  */
22
22
  export declare namespace ResponseFormatJSONSchema$ {
23
23
  /** @deprecated use `ResponseFormatJSONSchema$inboundSchema` instead. */
24
- const inboundSchema: z.ZodType<ResponseFormatJSONSchema, z.ZodTypeDef, unknown>;
24
+ const inboundSchema: z.ZodType<ResponseFormatJSONSchema, unknown, z.core.$ZodTypeInternals<ResponseFormatJSONSchema, unknown>>;
25
25
  /** @deprecated use `ResponseFormatJSONSchema$outboundSchema` instead. */
26
- const outboundSchema: z.ZodType<ResponseFormatJSONSchema$Outbound, z.ZodTypeDef, ResponseFormatJSONSchema>;
26
+ const outboundSchema: z.ZodType<ResponseFormatJSONSchema$Outbound, ResponseFormatJSONSchema, z.core.$ZodTypeInternals<ResponseFormatJSONSchema$Outbound, ResponseFormatJSONSchema>>;
27
27
  /** @deprecated use `ResponseFormatJSONSchema$Outbound` instead. */
28
28
  type Outbound = ResponseFormatJSONSchema$Outbound;
29
29
  }
@@ -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 { JSONSchemaConfig$inboundSchema, JSONSchemaConfig$outboundSchema, } from "./jsonschemaconfig.js";