@openrouter/sdk 0.0.1-beta.5 → 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 (253) 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/index.d.ts +7 -0
  80. package/models/index.js +7 -0
  81. package/models/jsonschemaconfig.d.ts +5 -5
  82. package/models/jsonschemaconfig.js +3 -3
  83. package/models/listendpointsresponse.d.ts +5 -5
  84. package/models/listendpointsresponse.js +1 -1
  85. package/models/message.d.ts +13 -13
  86. package/models/message.js +3 -2
  87. package/models/modelscountresponse.d.ts +5 -5
  88. package/models/modelscountresponse.js +1 -1
  89. package/models/modelslistresponse.d.ts +5 -5
  90. package/models/modelslistresponse.js +1 -1
  91. package/models/namedtoolchoice.d.ts +9 -9
  92. package/models/namedtoolchoice.js +1 -1
  93. package/models/openresponseseasyinputmessage.d.ts +33 -33
  94. package/models/openresponseseasyinputmessage.js +6 -9
  95. package/models/openresponsesformatjsonobject.d.ts +9 -9
  96. package/models/openresponsesformatjsonobject.js +2 -2
  97. package/models/openresponsesformatjsonschema.d.ts +9 -9
  98. package/models/openresponsesformatjsonschema.js +4 -4
  99. package/models/openresponsesformattext.d.ts +9 -9
  100. package/models/openresponsesformattext.js +2 -2
  101. package/models/openresponsesformattextconfig.d.ts +5 -5
  102. package/models/openresponsesformattextconfig.js +1 -1
  103. package/models/openresponsesfunctioncalloutput.d.ts +9 -9
  104. package/models/openresponsesfunctioncalloutput.js +2 -2
  105. package/models/openresponsesfunctiontoolcall.d.ts +9 -9
  106. package/models/openresponsesfunctiontoolcall.js +2 -2
  107. package/models/openresponsesinput.d.ts +5 -5
  108. package/models/openresponsesinput.js +1 -1
  109. package/models/openresponsesinputcontent.d.ts +5 -5
  110. package/models/openresponsesinputcontent.js +1 -1
  111. package/models/openresponsesinputfile.d.ts +9 -9
  112. package/models/openresponsesinputfile.js +2 -2
  113. package/models/openresponsesinputimage.d.ts +13 -13
  114. package/models/openresponsesinputimage.js +4 -4
  115. package/models/openresponsesinputitem.d.ts +13 -466
  116. package/models/openresponsesinputitem.js +19 -467
  117. package/models/openresponsesinputmessageitem.d.ts +25 -25
  118. package/models/openresponsesinputmessageitem.js +5 -7
  119. package/models/openresponsesinputtext.d.ts +9 -9
  120. package/models/openresponsesinputtext.js +2 -2
  121. package/models/openresponseslogprobs.d.ts +9 -9
  122. package/models/openresponseslogprobs.js +1 -1
  123. package/models/openresponsesnonstreamingresponse.d.ts +29 -29
  124. package/models/openresponsesnonstreamingresponse.js +17 -17
  125. package/models/openresponsesoutputtext.d.ts +13 -13
  126. package/models/openresponsesoutputtext.js +2 -2
  127. package/models/openresponsesprompt.d.ts +5 -5
  128. package/models/openresponsesprompt.js +3 -5
  129. package/models/openresponsesreasoning.d.ts +13 -13
  130. package/models/openresponsesreasoning.js +4 -4
  131. package/models/openresponsesreasoningconfig.d.ts +9 -9
  132. package/models/openresponsesreasoningconfig.js +3 -3
  133. package/models/openresponsesrefusalcontent.d.ts +9 -9
  134. package/models/openresponsesrefusalcontent.js +2 -2
  135. package/models/openresponsesrequest.d.ts +5 -5
  136. package/models/openresponsesrequest.js +1 -1
  137. package/models/openresponsesstreamevent.d.ts +233 -233
  138. package/models/openresponsesstreamevent.js +42 -43
  139. package/models/openresponsestextconfig.d.ts +9 -9
  140. package/models/openresponsestextconfig.js +5 -4
  141. package/models/openresponsestoolchoice.d.ts +25 -25
  142. package/models/openresponsestoolchoice.js +5 -5
  143. package/models/openresponsestoolunion.d.ts +13 -13
  144. package/models/openresponsestoolunion.js +4 -4
  145. package/models/openresponseswebsearch20250826tool.d.ts +13 -13
  146. package/models/openresponseswebsearch20250826tool.js +2 -2
  147. package/models/openresponseswebsearchpreview20250311tool.d.ts +18 -72
  148. package/models/openresponseswebsearchpreview20250311tool.js +18 -66
  149. package/models/openresponseswebsearchpreviewtool.d.ts +18 -72
  150. package/models/openresponseswebsearchpreviewtool.js +18 -67
  151. package/models/openresponseswebsearchtool.d.ts +13 -13
  152. package/models/openresponseswebsearchtool.js +2 -2
  153. package/models/operations/createapialpharesponses.d.ts +9 -9
  154. package/models/operations/createapialpharesponses.js +2 -3
  155. package/models/operations/createcoinbasecharge.d.ts +29 -29
  156. package/models/operations/createcoinbasecharge.js +7 -4
  157. package/models/operations/createkeys.d.ts +17 -17
  158. package/models/operations/createkeys.js +3 -3
  159. package/models/operations/deletekeys.d.ts +9 -9
  160. package/models/operations/deletekeys.js +1 -1
  161. package/models/operations/getcredits.d.ts +5 -5
  162. package/models/operations/getcredits.js +1 -1
  163. package/models/operations/getcurrentkey.d.ts +13 -13
  164. package/models/operations/getcurrentkey.js +1 -1
  165. package/models/operations/getgeneration.d.ts +17 -17
  166. package/models/operations/getgeneration.js +3 -3
  167. package/models/operations/getkey.d.ts +13 -13
  168. package/models/operations/getkey.js +5 -3
  169. package/models/operations/getmodels.d.ts +9 -9
  170. package/models/operations/getmodels.js +1 -1
  171. package/models/operations/getparameters.d.ts +25 -25
  172. package/models/operations/getparameters.js +5 -5
  173. package/models/operations/getuseractivity.d.ts +9 -9
  174. package/models/operations/getuseractivity.js +1 -1
  175. package/models/operations/list.d.ts +13 -13
  176. package/models/operations/list.js +7 -4
  177. package/models/operations/listendpoints.d.ts +9 -9
  178. package/models/operations/listendpoints.js +1 -1
  179. package/models/operations/listendpointszdr.d.ts +9 -9
  180. package/models/operations/listendpointszdr.js +1 -1
  181. package/models/operations/listmodelscount.d.ts +5 -5
  182. package/models/operations/listmodelscount.js +1 -1
  183. package/models/operations/listmodelsuser.d.ts +9 -9
  184. package/models/operations/listmodelsuser.js +1 -1
  185. package/models/operations/listproviders.d.ts +13 -13
  186. package/models/operations/listproviders.js +4 -4
  187. package/models/operations/sendchatcompletionrequest.d.ts +5 -5
  188. package/models/operations/sendchatcompletionrequest.js +2 -3
  189. package/models/operations/updatekeys.d.ts +21 -21
  190. package/models/operations/updatekeys.js +3 -3
  191. package/models/outputtextcontent.d.ts +13 -13
  192. package/models/outputtextcontent.js +2 -2
  193. package/models/publicendpoint.d.ts +5 -5
  194. package/models/publicendpoint.js +1 -1
  195. package/models/reasoningsummarytext.d.ts +9 -9
  196. package/models/reasoningsummarytext.js +2 -2
  197. package/models/reasoningsummaryverbosity.d.ts +5 -5
  198. package/models/reasoningsummaryverbosity.js +3 -3
  199. package/models/reasoningtextcontent.d.ts +9 -9
  200. package/models/reasoningtextcontent.js +2 -2
  201. package/models/refusalcontent.d.ts +9 -9
  202. package/models/refusalcontent.js +2 -2
  203. package/models/responseformatjsonschema.d.ts +5 -5
  204. package/models/responseformatjsonschema.js +1 -1
  205. package/models/responseformattextgrammar.d.ts +5 -5
  206. package/models/responseformattextgrammar.js +1 -1
  207. package/models/responseserrorfield.d.ts +9 -9
  208. package/models/responseserrorfield.js +3 -3
  209. package/models/responsesimagegenerationcall.d.ts +58 -0
  210. package/models/responsesimagegenerationcall.js +55 -0
  211. package/models/responsesoutputitem.d.ts +13 -466
  212. package/models/responsesoutputitem.js +19 -465
  213. package/models/responsesoutputitemfilesearchcall.d.ts +58 -0
  214. package/models/responsesoutputitemfilesearchcall.js +55 -0
  215. package/models/responsesoutputitemfunctioncall.d.ts +59 -0
  216. package/models/responsesoutputitemfunctioncall.js +65 -0
  217. package/models/responsesoutputitemreasoning.d.ts +61 -0
  218. package/models/responsesoutputitemreasoning.js +67 -0
  219. package/models/responsesoutputmessage.d.ts +191 -0
  220. package/models/responsesoutputmessage.js +189 -0
  221. package/models/responsessearchcontextsize.d.ts +5 -5
  222. package/models/responsessearchcontextsize.js +3 -3
  223. package/models/responsesusage.d.ts +17 -17
  224. package/models/responsesusage.js +3 -2
  225. package/models/responseswebsearchcalloutput.d.ts +56 -0
  226. package/models/responseswebsearchcalloutput.js +53 -0
  227. package/models/responseswebsearchuserlocation.d.ts +9 -9
  228. package/models/responseswebsearchuserlocation.js +2 -2
  229. package/models/security.d.ts +5 -5
  230. package/models/security.js +3 -2
  231. package/models/systemmessage.d.ts +9 -9
  232. package/models/systemmessage.js +3 -2
  233. package/models/tool.d.ts +9 -9
  234. package/models/tool.js +6 -6
  235. package/models/toolcallstatus.d.ts +5 -5
  236. package/models/toolcallstatus.js +3 -3
  237. package/models/toolchoicetypes.d.ts +29 -29
  238. package/models/toolchoicetypes.js +8 -9
  239. package/models/toolresponsemessage.d.ts +9 -9
  240. package/models/toolresponsemessage.js +1 -1
  241. package/models/urlcitationannotation.d.ts +9 -9
  242. package/models/urlcitationannotation.js +2 -2
  243. package/models/usermessage.d.ts +9 -9
  244. package/models/usermessage.js +7 -3
  245. package/models/websearchpreviewtooluserlocation.d.ts +59 -0
  246. package/models/websearchpreviewtooluserlocation.js +56 -0
  247. package/models/websearchstatus.d.ts +5 -5
  248. package/models/websearchstatus.js +3 -3
  249. package/package.json +1 -1
  250. package/types/blobs.d.ts +2 -2
  251. package/types/blobs.js +2 -2
  252. package/types/constdatetime.d.ts +2 -2
  253. 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";
@@ -123,21 +123,21 @@ export type CreateKeysResponse = {
123
123
  key: string;
124
124
  };
125
125
  /** @internal */
126
- export declare const CreateKeysLimitReset$inboundSchema: z.ZodType<CreateKeysLimitReset, z.ZodTypeDef, unknown>;
126
+ export declare const CreateKeysLimitReset$inboundSchema: z.ZodType<CreateKeysLimitReset, unknown>;
127
127
  /** @internal */
128
- export declare const CreateKeysLimitReset$outboundSchema: z.ZodType<CreateKeysLimitReset, z.ZodTypeDef, CreateKeysLimitReset>;
128
+ export declare const CreateKeysLimitReset$outboundSchema: z.ZodType<CreateKeysLimitReset, CreateKeysLimitReset>;
129
129
  /**
130
130
  * @internal
131
131
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
132
132
  */
133
133
  export declare namespace CreateKeysLimitReset$ {
134
134
  /** @deprecated use `CreateKeysLimitReset$inboundSchema` instead. */
135
- const inboundSchema: z.ZodType<CreateKeysLimitReset, z.ZodTypeDef, unknown>;
135
+ const inboundSchema: z.ZodType<CreateKeysLimitReset, unknown, z.core.$ZodTypeInternals<CreateKeysLimitReset, unknown>>;
136
136
  /** @deprecated use `CreateKeysLimitReset$outboundSchema` instead. */
137
- const outboundSchema: z.ZodType<CreateKeysLimitReset, z.ZodTypeDef, CreateKeysLimitReset>;
137
+ const outboundSchema: z.ZodType<CreateKeysLimitReset, CreateKeysLimitReset, z.core.$ZodTypeInternals<CreateKeysLimitReset, CreateKeysLimitReset>>;
138
138
  }
139
139
  /** @internal */
140
- export declare const CreateKeysRequest$inboundSchema: z.ZodType<CreateKeysRequest, z.ZodTypeDef, unknown>;
140
+ export declare const CreateKeysRequest$inboundSchema: z.ZodType<CreateKeysRequest, unknown>;
141
141
  /** @internal */
142
142
  export type CreateKeysRequest$Outbound = {
143
143
  name: string;
@@ -146,23 +146,23 @@ export type CreateKeysRequest$Outbound = {
146
146
  include_byok_in_limit?: boolean | undefined;
147
147
  };
148
148
  /** @internal */
149
- export declare const CreateKeysRequest$outboundSchema: z.ZodType<CreateKeysRequest$Outbound, z.ZodTypeDef, CreateKeysRequest>;
149
+ export declare const CreateKeysRequest$outboundSchema: z.ZodType<CreateKeysRequest$Outbound, CreateKeysRequest>;
150
150
  /**
151
151
  * @internal
152
152
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
153
153
  */
154
154
  export declare namespace CreateKeysRequest$ {
155
155
  /** @deprecated use `CreateKeysRequest$inboundSchema` instead. */
156
- const inboundSchema: z.ZodType<CreateKeysRequest, z.ZodTypeDef, unknown>;
156
+ const inboundSchema: z.ZodType<CreateKeysRequest, unknown, z.core.$ZodTypeInternals<CreateKeysRequest, unknown>>;
157
157
  /** @deprecated use `CreateKeysRequest$outboundSchema` instead. */
158
- const outboundSchema: z.ZodType<CreateKeysRequest$Outbound, z.ZodTypeDef, CreateKeysRequest>;
158
+ const outboundSchema: z.ZodType<CreateKeysRequest$Outbound, CreateKeysRequest, z.core.$ZodTypeInternals<CreateKeysRequest$Outbound, CreateKeysRequest>>;
159
159
  /** @deprecated use `CreateKeysRequest$Outbound` instead. */
160
160
  type Outbound = CreateKeysRequest$Outbound;
161
161
  }
162
162
  export declare function createKeysRequestToJSON(createKeysRequest: CreateKeysRequest): string;
163
163
  export declare function createKeysRequestFromJSON(jsonString: string): SafeParseResult<CreateKeysRequest, SDKValidationError>;
164
164
  /** @internal */
165
- export declare const CreateKeysData$inboundSchema: z.ZodType<CreateKeysData, z.ZodTypeDef, unknown>;
165
+ export declare const CreateKeysData$inboundSchema: z.ZodType<CreateKeysData, unknown>;
166
166
  /** @internal */
167
167
  export type CreateKeysData$Outbound = {
168
168
  hash: string;
@@ -185,39 +185,39 @@ export type CreateKeysData$Outbound = {
185
185
  updated_at: string | null;
186
186
  };
187
187
  /** @internal */
188
- export declare const CreateKeysData$outboundSchema: z.ZodType<CreateKeysData$Outbound, z.ZodTypeDef, CreateKeysData>;
188
+ export declare const CreateKeysData$outboundSchema: z.ZodType<CreateKeysData$Outbound, CreateKeysData>;
189
189
  /**
190
190
  * @internal
191
191
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
192
192
  */
193
193
  export declare namespace CreateKeysData$ {
194
194
  /** @deprecated use `CreateKeysData$inboundSchema` instead. */
195
- const inboundSchema: z.ZodType<CreateKeysData, z.ZodTypeDef, unknown>;
195
+ const inboundSchema: z.ZodType<CreateKeysData, unknown, z.core.$ZodTypeInternals<CreateKeysData, unknown>>;
196
196
  /** @deprecated use `CreateKeysData$outboundSchema` instead. */
197
- const outboundSchema: z.ZodType<CreateKeysData$Outbound, z.ZodTypeDef, CreateKeysData>;
197
+ const outboundSchema: z.ZodType<CreateKeysData$Outbound, CreateKeysData, z.core.$ZodTypeInternals<CreateKeysData$Outbound, CreateKeysData>>;
198
198
  /** @deprecated use `CreateKeysData$Outbound` instead. */
199
199
  type Outbound = CreateKeysData$Outbound;
200
200
  }
201
201
  export declare function createKeysDataToJSON(createKeysData: CreateKeysData): string;
202
202
  export declare function createKeysDataFromJSON(jsonString: string): SafeParseResult<CreateKeysData, SDKValidationError>;
203
203
  /** @internal */
204
- export declare const CreateKeysResponse$inboundSchema: z.ZodType<CreateKeysResponse, z.ZodTypeDef, unknown>;
204
+ export declare const CreateKeysResponse$inboundSchema: z.ZodType<CreateKeysResponse, unknown>;
205
205
  /** @internal */
206
206
  export type CreateKeysResponse$Outbound = {
207
207
  data: CreateKeysData$Outbound;
208
208
  key: string;
209
209
  };
210
210
  /** @internal */
211
- export declare const CreateKeysResponse$outboundSchema: z.ZodType<CreateKeysResponse$Outbound, z.ZodTypeDef, CreateKeysResponse>;
211
+ export declare const CreateKeysResponse$outboundSchema: z.ZodType<CreateKeysResponse$Outbound, CreateKeysResponse>;
212
212
  /**
213
213
  * @internal
214
214
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
215
215
  */
216
216
  export declare namespace CreateKeysResponse$ {
217
217
  /** @deprecated use `CreateKeysResponse$inboundSchema` instead. */
218
- const inboundSchema: z.ZodType<CreateKeysResponse, z.ZodTypeDef, unknown>;
218
+ const inboundSchema: z.ZodType<CreateKeysResponse, unknown, z.core.$ZodTypeInternals<CreateKeysResponse, unknown>>;
219
219
  /** @deprecated use `CreateKeysResponse$outboundSchema` instead. */
220
- const outboundSchema: z.ZodType<CreateKeysResponse$Outbound, z.ZodTypeDef, CreateKeysResponse>;
220
+ const outboundSchema: z.ZodType<CreateKeysResponse$Outbound, CreateKeysResponse, z.core.$ZodTypeInternals<CreateKeysResponse$Outbound, CreateKeysResponse>>;
221
221
  /** @deprecated use `CreateKeysResponse$Outbound` instead. */
222
222
  type Outbound = CreateKeysResponse$Outbound;
223
223
  }
@@ -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 CreateKeysLimitReset = {
16
16
  /** @internal */
17
17
  export const CreateKeysLimitReset$inboundSchema = z
18
18
  .union([
19
- z.nativeEnum(CreateKeysLimitReset),
19
+ z.enum(CreateKeysLimitReset),
20
20
  z.string().transform(catchUnrecognizedEnum),
21
21
  ]);
22
22
  /** @internal */
23
23
  export const CreateKeysLimitReset$outboundSchema = z.union([
24
- z.nativeEnum(CreateKeysLimitReset),
24
+ z.enum(CreateKeysLimitReset),
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 { Result as SafeParseResult } from "../../types/fp.js";
3
3
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
4
4
  export type DeleteKeysRequest = {
@@ -17,44 +17,44 @@ export type DeleteKeysResponse = {
17
17
  deleted: true;
18
18
  };
19
19
  /** @internal */
20
- export declare const DeleteKeysRequest$inboundSchema: z.ZodType<DeleteKeysRequest, z.ZodTypeDef, unknown>;
20
+ export declare const DeleteKeysRequest$inboundSchema: z.ZodType<DeleteKeysRequest, unknown>;
21
21
  /** @internal */
22
22
  export type DeleteKeysRequest$Outbound = {
23
23
  hash: string;
24
24
  };
25
25
  /** @internal */
26
- export declare const DeleteKeysRequest$outboundSchema: z.ZodType<DeleteKeysRequest$Outbound, z.ZodTypeDef, DeleteKeysRequest>;
26
+ export declare const DeleteKeysRequest$outboundSchema: z.ZodType<DeleteKeysRequest$Outbound, DeleteKeysRequest>;
27
27
  /**
28
28
  * @internal
29
29
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
30
30
  */
31
31
  export declare namespace DeleteKeysRequest$ {
32
32
  /** @deprecated use `DeleteKeysRequest$inboundSchema` instead. */
33
- const inboundSchema: z.ZodType<DeleteKeysRequest, z.ZodTypeDef, unknown>;
33
+ const inboundSchema: z.ZodType<DeleteKeysRequest, unknown, z.core.$ZodTypeInternals<DeleteKeysRequest, unknown>>;
34
34
  /** @deprecated use `DeleteKeysRequest$outboundSchema` instead. */
35
- const outboundSchema: z.ZodType<DeleteKeysRequest$Outbound, z.ZodTypeDef, DeleteKeysRequest>;
35
+ const outboundSchema: z.ZodType<DeleteKeysRequest$Outbound, DeleteKeysRequest, z.core.$ZodTypeInternals<DeleteKeysRequest$Outbound, DeleteKeysRequest>>;
36
36
  /** @deprecated use `DeleteKeysRequest$Outbound` instead. */
37
37
  type Outbound = DeleteKeysRequest$Outbound;
38
38
  }
39
39
  export declare function deleteKeysRequestToJSON(deleteKeysRequest: DeleteKeysRequest): string;
40
40
  export declare function deleteKeysRequestFromJSON(jsonString: string): SafeParseResult<DeleteKeysRequest, SDKValidationError>;
41
41
  /** @internal */
42
- export declare const DeleteKeysResponse$inboundSchema: z.ZodType<DeleteKeysResponse, z.ZodTypeDef, unknown>;
42
+ export declare const DeleteKeysResponse$inboundSchema: z.ZodType<DeleteKeysResponse, unknown>;
43
43
  /** @internal */
44
44
  export type DeleteKeysResponse$Outbound = {
45
45
  deleted: true;
46
46
  };
47
47
  /** @internal */
48
- export declare const DeleteKeysResponse$outboundSchema: z.ZodType<DeleteKeysResponse$Outbound, z.ZodTypeDef, DeleteKeysResponse>;
48
+ export declare const DeleteKeysResponse$outboundSchema: z.ZodType<DeleteKeysResponse$Outbound, DeleteKeysResponse>;
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 DeleteKeysResponse$ {
54
54
  /** @deprecated use `DeleteKeysResponse$inboundSchema` instead. */
55
- const inboundSchema: z.ZodType<DeleteKeysResponse, z.ZodTypeDef, unknown>;
55
+ const inboundSchema: z.ZodType<DeleteKeysResponse, unknown, z.core.$ZodTypeInternals<DeleteKeysResponse, unknown>>;
56
56
  /** @deprecated use `DeleteKeysResponse$outboundSchema` instead. */
57
- const outboundSchema: z.ZodType<DeleteKeysResponse$Outbound, z.ZodTypeDef, DeleteKeysResponse>;
57
+ const outboundSchema: z.ZodType<DeleteKeysResponse$Outbound, DeleteKeysResponse, z.core.$ZodTypeInternals<DeleteKeysResponse$Outbound, DeleteKeysResponse>>;
58
58
  /** @deprecated use `DeleteKeysResponse$Outbound` instead. */
59
59
  type Outbound = DeleteKeysResponse$Outbound;
60
60
  }
@@ -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 DeleteKeysRequest$inboundSchema = z.object({
@@ -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 GetCreditsResponse = {};
8
8
  /** @internal */
9
- export declare const GetCreditsResponse$inboundSchema: z.ZodType<GetCreditsResponse, z.ZodTypeDef, unknown>;
9
+ export declare const GetCreditsResponse$inboundSchema: z.ZodType<GetCreditsResponse, unknown>;
10
10
  /** @internal */
11
11
  export type GetCreditsResponse$Outbound = {};
12
12
  /** @internal */
13
- export declare const GetCreditsResponse$outboundSchema: z.ZodType<GetCreditsResponse$Outbound, z.ZodTypeDef, GetCreditsResponse>;
13
+ export declare const GetCreditsResponse$outboundSchema: z.ZodType<GetCreditsResponse$Outbound, GetCreditsResponse>;
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 GetCreditsResponse$ {
19
19
  /** @deprecated use `GetCreditsResponse$inboundSchema` instead. */
20
- const inboundSchema: z.ZodType<GetCreditsResponse, z.ZodTypeDef, unknown>;
20
+ const inboundSchema: z.ZodType<GetCreditsResponse, unknown, z.core.$ZodTypeInternals<GetCreditsResponse, unknown>>;
21
21
  /** @deprecated use `GetCreditsResponse$outboundSchema` instead. */
22
- const outboundSchema: z.ZodType<GetCreditsResponse$Outbound, z.ZodTypeDef, GetCreditsResponse>;
22
+ const outboundSchema: z.ZodType<GetCreditsResponse$Outbound, GetCreditsResponse, z.core.$ZodTypeInternals<GetCreditsResponse$Outbound, GetCreditsResponse>>;
23
23
  /** @deprecated use `GetCreditsResponse$Outbound` instead. */
24
24
  type Outbound = GetCreditsResponse$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 GetCreditsResponse$inboundSchema = z.object({});
@@ -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
  /**
@@ -101,7 +101,7 @@ export type GetCurrentKeyResponse = {
101
101
  data: GetCurrentKeyData;
102
102
  };
103
103
  /** @internal */
104
- export declare const RateLimit$inboundSchema: z.ZodType<RateLimit, z.ZodTypeDef, unknown>;
104
+ export declare const RateLimit$inboundSchema: z.ZodType<RateLimit, unknown>;
105
105
  /** @internal */
106
106
  export type RateLimit$Outbound = {
107
107
  requests: number;
@@ -109,23 +109,23 @@ export type RateLimit$Outbound = {
109
109
  note: string;
110
110
  };
111
111
  /** @internal */
112
- export declare const RateLimit$outboundSchema: z.ZodType<RateLimit$Outbound, z.ZodTypeDef, RateLimit>;
112
+ export declare const RateLimit$outboundSchema: z.ZodType<RateLimit$Outbound, RateLimit>;
113
113
  /**
114
114
  * @internal
115
115
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
116
116
  */
117
117
  export declare namespace RateLimit$ {
118
118
  /** @deprecated use `RateLimit$inboundSchema` instead. */
119
- const inboundSchema: z.ZodType<RateLimit, z.ZodTypeDef, unknown>;
119
+ const inboundSchema: z.ZodType<RateLimit, unknown, z.core.$ZodTypeInternals<RateLimit, unknown>>;
120
120
  /** @deprecated use `RateLimit$outboundSchema` instead. */
121
- const outboundSchema: z.ZodType<RateLimit$Outbound, z.ZodTypeDef, RateLimit>;
121
+ const outboundSchema: z.ZodType<RateLimit$Outbound, RateLimit, z.core.$ZodTypeInternals<RateLimit$Outbound, RateLimit>>;
122
122
  /** @deprecated use `RateLimit$Outbound` instead. */
123
123
  type Outbound = RateLimit$Outbound;
124
124
  }
125
125
  export declare function rateLimitToJSON(rateLimit: RateLimit): string;
126
126
  export declare function rateLimitFromJSON(jsonString: string): SafeParseResult<RateLimit, SDKValidationError>;
127
127
  /** @internal */
128
- export declare const GetCurrentKeyData$inboundSchema: z.ZodType<GetCurrentKeyData, z.ZodTypeDef, unknown>;
128
+ export declare const GetCurrentKeyData$inboundSchema: z.ZodType<GetCurrentKeyData, unknown>;
129
129
  /** @internal */
130
130
  export type GetCurrentKeyData$Outbound = {
131
131
  label: string;
@@ -146,38 +146,38 @@ export type GetCurrentKeyData$Outbound = {
146
146
  rate_limit: RateLimit$Outbound;
147
147
  };
148
148
  /** @internal */
149
- export declare const GetCurrentKeyData$outboundSchema: z.ZodType<GetCurrentKeyData$Outbound, z.ZodTypeDef, GetCurrentKeyData>;
149
+ export declare const GetCurrentKeyData$outboundSchema: z.ZodType<GetCurrentKeyData$Outbound, GetCurrentKeyData>;
150
150
  /**
151
151
  * @internal
152
152
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
153
153
  */
154
154
  export declare namespace GetCurrentKeyData$ {
155
155
  /** @deprecated use `GetCurrentKeyData$inboundSchema` instead. */
156
- const inboundSchema: z.ZodType<GetCurrentKeyData, z.ZodTypeDef, unknown>;
156
+ const inboundSchema: z.ZodType<GetCurrentKeyData, unknown, z.core.$ZodTypeInternals<GetCurrentKeyData, unknown>>;
157
157
  /** @deprecated use `GetCurrentKeyData$outboundSchema` instead. */
158
- const outboundSchema: z.ZodType<GetCurrentKeyData$Outbound, z.ZodTypeDef, GetCurrentKeyData>;
158
+ const outboundSchema: z.ZodType<GetCurrentKeyData$Outbound, GetCurrentKeyData, z.core.$ZodTypeInternals<GetCurrentKeyData$Outbound, GetCurrentKeyData>>;
159
159
  /** @deprecated use `GetCurrentKeyData$Outbound` instead. */
160
160
  type Outbound = GetCurrentKeyData$Outbound;
161
161
  }
162
162
  export declare function getCurrentKeyDataToJSON(getCurrentKeyData: GetCurrentKeyData): string;
163
163
  export declare function getCurrentKeyDataFromJSON(jsonString: string): SafeParseResult<GetCurrentKeyData, SDKValidationError>;
164
164
  /** @internal */
165
- export declare const GetCurrentKeyResponse$inboundSchema: z.ZodType<GetCurrentKeyResponse, z.ZodTypeDef, unknown>;
165
+ export declare const GetCurrentKeyResponse$inboundSchema: z.ZodType<GetCurrentKeyResponse, unknown>;
166
166
  /** @internal */
167
167
  export type GetCurrentKeyResponse$Outbound = {
168
168
  data: GetCurrentKeyData$Outbound;
169
169
  };
170
170
  /** @internal */
171
- export declare const GetCurrentKeyResponse$outboundSchema: z.ZodType<GetCurrentKeyResponse$Outbound, z.ZodTypeDef, GetCurrentKeyResponse>;
171
+ export declare const GetCurrentKeyResponse$outboundSchema: z.ZodType<GetCurrentKeyResponse$Outbound, GetCurrentKeyResponse>;
172
172
  /**
173
173
  * @internal
174
174
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
175
175
  */
176
176
  export declare namespace GetCurrentKeyResponse$ {
177
177
  /** @deprecated use `GetCurrentKeyResponse$inboundSchema` instead. */
178
- const inboundSchema: z.ZodType<GetCurrentKeyResponse, z.ZodTypeDef, unknown>;
178
+ const inboundSchema: z.ZodType<GetCurrentKeyResponse, unknown, z.core.$ZodTypeInternals<GetCurrentKeyResponse, unknown>>;
179
179
  /** @deprecated use `GetCurrentKeyResponse$outboundSchema` instead. */
180
- const outboundSchema: z.ZodType<GetCurrentKeyResponse$Outbound, z.ZodTypeDef, GetCurrentKeyResponse>;
180
+ const outboundSchema: z.ZodType<GetCurrentKeyResponse$Outbound, GetCurrentKeyResponse, z.core.$ZodTypeInternals<GetCurrentKeyResponse$Outbound, GetCurrentKeyResponse>>;
181
181
  /** @deprecated use `GetCurrentKeyResponse$Outbound` instead. */
182
182
  type Outbound = GetCurrentKeyResponse$Outbound;
183
183
  }
@@ -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 */
@@ -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";
@@ -159,43 +159,43 @@ export type GetGenerationResponse = {
159
159
  data: GetGenerationData;
160
160
  };
161
161
  /** @internal */
162
- export declare const GetGenerationRequest$inboundSchema: z.ZodType<GetGenerationRequest, z.ZodTypeDef, unknown>;
162
+ export declare const GetGenerationRequest$inboundSchema: z.ZodType<GetGenerationRequest, unknown>;
163
163
  /** @internal */
164
164
  export type GetGenerationRequest$Outbound = {
165
165
  id: string;
166
166
  };
167
167
  /** @internal */
168
- export declare const GetGenerationRequest$outboundSchema: z.ZodType<GetGenerationRequest$Outbound, z.ZodTypeDef, GetGenerationRequest>;
168
+ export declare const GetGenerationRequest$outboundSchema: z.ZodType<GetGenerationRequest$Outbound, GetGenerationRequest>;
169
169
  /**
170
170
  * @internal
171
171
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
172
172
  */
173
173
  export declare namespace GetGenerationRequest$ {
174
174
  /** @deprecated use `GetGenerationRequest$inboundSchema` instead. */
175
- const inboundSchema: z.ZodType<GetGenerationRequest, z.ZodTypeDef, unknown>;
175
+ const inboundSchema: z.ZodType<GetGenerationRequest, unknown, z.core.$ZodTypeInternals<GetGenerationRequest, unknown>>;
176
176
  /** @deprecated use `GetGenerationRequest$outboundSchema` instead. */
177
- const outboundSchema: z.ZodType<GetGenerationRequest$Outbound, z.ZodTypeDef, GetGenerationRequest>;
177
+ const outboundSchema: z.ZodType<GetGenerationRequest$Outbound, GetGenerationRequest, z.core.$ZodTypeInternals<GetGenerationRequest$Outbound, GetGenerationRequest>>;
178
178
  /** @deprecated use `GetGenerationRequest$Outbound` instead. */
179
179
  type Outbound = GetGenerationRequest$Outbound;
180
180
  }
181
181
  export declare function getGenerationRequestToJSON(getGenerationRequest: GetGenerationRequest): string;
182
182
  export declare function getGenerationRequestFromJSON(jsonString: string): SafeParseResult<GetGenerationRequest, SDKValidationError>;
183
183
  /** @internal */
184
- export declare const ApiType$inboundSchema: z.ZodType<ApiType, z.ZodTypeDef, unknown>;
184
+ export declare const ApiType$inboundSchema: z.ZodType<ApiType, unknown>;
185
185
  /** @internal */
186
- export declare const ApiType$outboundSchema: z.ZodType<ApiType, z.ZodTypeDef, ApiType>;
186
+ export declare const ApiType$outboundSchema: z.ZodType<ApiType, ApiType>;
187
187
  /**
188
188
  * @internal
189
189
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
190
190
  */
191
191
  export declare namespace ApiType$ {
192
192
  /** @deprecated use `ApiType$inboundSchema` instead. */
193
- const inboundSchema: z.ZodType<ApiType, z.ZodTypeDef, unknown>;
193
+ const inboundSchema: z.ZodType<ApiType, unknown, z.core.$ZodTypeInternals<ApiType, unknown>>;
194
194
  /** @deprecated use `ApiType$outboundSchema` instead. */
195
- const outboundSchema: z.ZodType<ApiType, z.ZodTypeDef, ApiType>;
195
+ const outboundSchema: z.ZodType<ApiType, ApiType, z.core.$ZodTypeInternals<ApiType, ApiType>>;
196
196
  }
197
197
  /** @internal */
198
- export declare const GetGenerationData$inboundSchema: z.ZodType<GetGenerationData, z.ZodTypeDef, unknown>;
198
+ export declare const GetGenerationData$inboundSchema: z.ZodType<GetGenerationData, unknown>;
199
199
  /** @internal */
200
200
  export type GetGenerationData$Outbound = {
201
201
  id: string;
@@ -232,38 +232,38 @@ export type GetGenerationData$Outbound = {
232
232
  api_type: string | null;
233
233
  };
234
234
  /** @internal */
235
- export declare const GetGenerationData$outboundSchema: z.ZodType<GetGenerationData$Outbound, z.ZodTypeDef, GetGenerationData>;
235
+ export declare const GetGenerationData$outboundSchema: z.ZodType<GetGenerationData$Outbound, GetGenerationData>;
236
236
  /**
237
237
  * @internal
238
238
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
239
239
  */
240
240
  export declare namespace GetGenerationData$ {
241
241
  /** @deprecated use `GetGenerationData$inboundSchema` instead. */
242
- const inboundSchema: z.ZodType<GetGenerationData, z.ZodTypeDef, unknown>;
242
+ const inboundSchema: z.ZodType<GetGenerationData, unknown, z.core.$ZodTypeInternals<GetGenerationData, unknown>>;
243
243
  /** @deprecated use `GetGenerationData$outboundSchema` instead. */
244
- const outboundSchema: z.ZodType<GetGenerationData$Outbound, z.ZodTypeDef, GetGenerationData>;
244
+ const outboundSchema: z.ZodType<GetGenerationData$Outbound, GetGenerationData, z.core.$ZodTypeInternals<GetGenerationData$Outbound, GetGenerationData>>;
245
245
  /** @deprecated use `GetGenerationData$Outbound` instead. */
246
246
  type Outbound = GetGenerationData$Outbound;
247
247
  }
248
248
  export declare function getGenerationDataToJSON(getGenerationData: GetGenerationData): string;
249
249
  export declare function getGenerationDataFromJSON(jsonString: string): SafeParseResult<GetGenerationData, SDKValidationError>;
250
250
  /** @internal */
251
- export declare const GetGenerationResponse$inboundSchema: z.ZodType<GetGenerationResponse, z.ZodTypeDef, unknown>;
251
+ export declare const GetGenerationResponse$inboundSchema: z.ZodType<GetGenerationResponse, unknown>;
252
252
  /** @internal */
253
253
  export type GetGenerationResponse$Outbound = {
254
254
  data: GetGenerationData$Outbound;
255
255
  };
256
256
  /** @internal */
257
- export declare const GetGenerationResponse$outboundSchema: z.ZodType<GetGenerationResponse$Outbound, z.ZodTypeDef, GetGenerationResponse>;
257
+ export declare const GetGenerationResponse$outboundSchema: z.ZodType<GetGenerationResponse$Outbound, GetGenerationResponse>;
258
258
  /**
259
259
  * @internal
260
260
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
261
261
  */
262
262
  export declare namespace GetGenerationResponse$ {
263
263
  /** @deprecated use `GetGenerationResponse$inboundSchema` instead. */
264
- const inboundSchema: z.ZodType<GetGenerationResponse, z.ZodTypeDef, unknown>;
264
+ const inboundSchema: z.ZodType<GetGenerationResponse, unknown, z.core.$ZodTypeInternals<GetGenerationResponse, unknown>>;
265
265
  /** @deprecated use `GetGenerationResponse$outboundSchema` instead. */
266
- const outboundSchema: z.ZodType<GetGenerationResponse$Outbound, z.ZodTypeDef, GetGenerationResponse>;
266
+ const outboundSchema: z.ZodType<GetGenerationResponse$Outbound, GetGenerationResponse, z.core.$ZodTypeInternals<GetGenerationResponse$Outbound, GetGenerationResponse>>;
267
267
  /** @deprecated use `GetGenerationResponse$Outbound` instead. */
268
268
  type Outbound = GetGenerationResponse$Outbound;
269
269
  }
@@ -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";
@@ -40,12 +40,12 @@ export function getGenerationRequestFromJSON(jsonString) {
40
40
  /** @internal */
41
41
  export const ApiType$inboundSchema = z
42
42
  .union([
43
- z.nativeEnum(ApiType),
43
+ z.enum(ApiType),
44
44
  z.string().transform(catchUnrecognizedEnum),
45
45
  ]);
46
46
  /** @internal */
47
47
  export const ApiType$outboundSchema = z.union([
48
- z.nativeEnum(ApiType),
48
+ z.enum(ApiType),
49
49
  z.string().and(z.custom()),
50
50
  ]);
51
51
  /**
@@ -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 GetKeyRequest = {
@@ -94,29 +94,29 @@ export type GetKeyResponse = {
94
94
  data: GetKeyData;
95
95
  };
96
96
  /** @internal */
97
- export declare const GetKeyRequest$inboundSchema: z.ZodType<GetKeyRequest, z.ZodTypeDef, unknown>;
97
+ export declare const GetKeyRequest$inboundSchema: z.ZodType<GetKeyRequest, unknown>;
98
98
  /** @internal */
99
99
  export type GetKeyRequest$Outbound = {
100
100
  hash: string;
101
101
  };
102
102
  /** @internal */
103
- export declare const GetKeyRequest$outboundSchema: z.ZodType<GetKeyRequest$Outbound, z.ZodTypeDef, GetKeyRequest>;
103
+ export declare const GetKeyRequest$outboundSchema: z.ZodType<GetKeyRequest$Outbound, GetKeyRequest>;
104
104
  /**
105
105
  * @internal
106
106
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
107
107
  */
108
108
  export declare namespace GetKeyRequest$ {
109
109
  /** @deprecated use `GetKeyRequest$inboundSchema` instead. */
110
- const inboundSchema: z.ZodType<GetKeyRequest, z.ZodTypeDef, unknown>;
110
+ const inboundSchema: z.ZodType<GetKeyRequest, unknown, z.core.$ZodTypeInternals<GetKeyRequest, unknown>>;
111
111
  /** @deprecated use `GetKeyRequest$outboundSchema` instead. */
112
- const outboundSchema: z.ZodType<GetKeyRequest$Outbound, z.ZodTypeDef, GetKeyRequest>;
112
+ const outboundSchema: z.ZodType<GetKeyRequest$Outbound, GetKeyRequest, z.core.$ZodTypeInternals<GetKeyRequest$Outbound, GetKeyRequest>>;
113
113
  /** @deprecated use `GetKeyRequest$Outbound` instead. */
114
114
  type Outbound = GetKeyRequest$Outbound;
115
115
  }
116
116
  export declare function getKeyRequestToJSON(getKeyRequest: GetKeyRequest): string;
117
117
  export declare function getKeyRequestFromJSON(jsonString: string): SafeParseResult<GetKeyRequest, SDKValidationError>;
118
118
  /** @internal */
119
- export declare const GetKeyData$inboundSchema: z.ZodType<GetKeyData, z.ZodTypeDef, unknown>;
119
+ export declare const GetKeyData$inboundSchema: z.ZodType<GetKeyData, unknown>;
120
120
  /** @internal */
121
121
  export type GetKeyData$Outbound = {
122
122
  hash: string;
@@ -139,38 +139,38 @@ export type GetKeyData$Outbound = {
139
139
  updated_at: string | null;
140
140
  };
141
141
  /** @internal */
142
- export declare const GetKeyData$outboundSchema: z.ZodType<GetKeyData$Outbound, z.ZodTypeDef, GetKeyData>;
142
+ export declare const GetKeyData$outboundSchema: z.ZodType<GetKeyData$Outbound, GetKeyData>;
143
143
  /**
144
144
  * @internal
145
145
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
146
146
  */
147
147
  export declare namespace GetKeyData$ {
148
148
  /** @deprecated use `GetKeyData$inboundSchema` instead. */
149
- const inboundSchema: z.ZodType<GetKeyData, z.ZodTypeDef, unknown>;
149
+ const inboundSchema: z.ZodType<GetKeyData, unknown, z.core.$ZodTypeInternals<GetKeyData, unknown>>;
150
150
  /** @deprecated use `GetKeyData$outboundSchema` instead. */
151
- const outboundSchema: z.ZodType<GetKeyData$Outbound, z.ZodTypeDef, GetKeyData>;
151
+ const outboundSchema: z.ZodType<GetKeyData$Outbound, GetKeyData, z.core.$ZodTypeInternals<GetKeyData$Outbound, GetKeyData>>;
152
152
  /** @deprecated use `GetKeyData$Outbound` instead. */
153
153
  type Outbound = GetKeyData$Outbound;
154
154
  }
155
155
  export declare function getKeyDataToJSON(getKeyData: GetKeyData): string;
156
156
  export declare function getKeyDataFromJSON(jsonString: string): SafeParseResult<GetKeyData, SDKValidationError>;
157
157
  /** @internal */
158
- export declare const GetKeyResponse$inboundSchema: z.ZodType<GetKeyResponse, z.ZodTypeDef, unknown>;
158
+ export declare const GetKeyResponse$inboundSchema: z.ZodType<GetKeyResponse, unknown>;
159
159
  /** @internal */
160
160
  export type GetKeyResponse$Outbound = {
161
161
  data: GetKeyData$Outbound;
162
162
  };
163
163
  /** @internal */
164
- export declare const GetKeyResponse$outboundSchema: z.ZodType<GetKeyResponse$Outbound, z.ZodTypeDef, GetKeyResponse>;
164
+ export declare const GetKeyResponse$outboundSchema: z.ZodType<GetKeyResponse$Outbound, GetKeyResponse>;
165
165
  /**
166
166
  * @internal
167
167
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
168
168
  */
169
169
  export declare namespace GetKeyResponse$ {
170
170
  /** @deprecated use `GetKeyResponse$inboundSchema` instead. */
171
- const inboundSchema: z.ZodType<GetKeyResponse, z.ZodTypeDef, unknown>;
171
+ const inboundSchema: z.ZodType<GetKeyResponse, unknown, z.core.$ZodTypeInternals<GetKeyResponse, unknown>>;
172
172
  /** @deprecated use `GetKeyResponse$outboundSchema` instead. */
173
- const outboundSchema: z.ZodType<GetKeyResponse$Outbound, z.ZodTypeDef, GetKeyResponse>;
173
+ const outboundSchema: z.ZodType<GetKeyResponse$Outbound, GetKeyResponse, z.core.$ZodTypeInternals<GetKeyResponse$Outbound, GetKeyResponse>>;
174
174
  /** @deprecated use `GetKeyResponse$Outbound` instead. */
175
175
  type Outbound = GetKeyResponse$Outbound;
176
176
  }
@@ -1,11 +1,12 @@
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 */
8
- export const GetKeyRequest$inboundSchema = z.object({
8
+ export const GetKeyRequest$inboundSchema = z
9
+ .object({
9
10
  hash: z.string(),
10
11
  });
11
12
  /** @internal */
@@ -30,7 +31,8 @@ export function getKeyRequestFromJSON(jsonString) {
30
31
  return safeParse(jsonString, (x) => GetKeyRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetKeyRequest' from JSON`);
31
32
  }
32
33
  /** @internal */
33
- export const GetKeyData$inboundSchema = z.object({
34
+ export const GetKeyData$inboundSchema = z
35
+ .object({
34
36
  hash: z.string(),
35
37
  name: z.string(),
36
38
  label: z.string(),