@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
package/jsr.json CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  {
4
4
  "name": "@openrouter/sdk",
5
- "version": "0.0.1-beta.5",
5
+ "version": "0.0.1-beta.7",
6
6
  "exports": {
7
7
  ".": "./src/index.ts",
8
8
  "./models/errors": "./src/models/errors/index.ts",
package/lib/base64.d.ts CHANGED
@@ -1,9 +1,9 @@
1
- import * as z from "zod/v3";
1
+ import * as z from "zod/v4";
2
2
  export declare function bytesToBase64(u8arr: Uint8Array): string;
3
3
  export declare function bytesFromBase64(encoded: string): Uint8Array;
4
4
  export declare function stringToBytes(str: string): Uint8Array;
5
5
  export declare function stringFromBytes(u8arr: Uint8Array): string;
6
6
  export declare function stringToBase64(str: string): string;
7
7
  export declare function stringFromBase64(b64str: string): string;
8
- export declare const zodOutbound: z.ZodUnion<[z.ZodType<Uint8Array<ArrayBuffer>, z.ZodTypeDef, Uint8Array<ArrayBuffer>>, z.ZodEffects<z.ZodString, Uint8Array<ArrayBufferLike>, string>]>;
9
- export declare const zodInbound: z.ZodUnion<[z.ZodType<Uint8Array<ArrayBuffer>, z.ZodTypeDef, Uint8Array<ArrayBuffer>>, z.ZodEffects<z.ZodString, Uint8Array<ArrayBufferLike>, string>]>;
8
+ export declare const zodOutbound: z.ZodUnion<[z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, z.ZodPipe<z.ZodString, z.ZodTransform<Uint8Array<ArrayBufferLike>, string>>]>;
9
+ export declare const zodInbound: z.ZodUnion<[z.ZodCustom<Uint8Array<ArrayBuffer>, Uint8Array<ArrayBuffer>>, z.ZodPipe<z.ZodString, z.ZodTransform<Uint8Array<ArrayBufferLike>, string>>]>;
package/lib/base64.js CHANGED
@@ -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
  export function bytesToBase64(u8arr) {
6
6
  return btoa(String.fromCodePoint(...u8arr));
7
7
  }
package/lib/config.d.ts CHANGED
@@ -37,7 +37,7 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
37
37
  export declare const SDK_METADATA: {
38
38
  readonly language: "typescript";
39
39
  readonly openapiDocVersion: "1.0.0";
40
- readonly sdkVersion: "0.0.1-beta.5";
41
- readonly genVersion: "2.729.2";
42
- readonly userAgent: "speakeasy-sdk/typescript 0.0.1-beta.5 2.729.2 1.0.0 @openrouter/sdk";
40
+ readonly sdkVersion: "0.0.1-beta.7";
41
+ readonly genVersion: "2.730.0";
42
+ readonly userAgent: "speakeasy-sdk/typescript 0.0.1-beta.7 2.730.0 1.0.0 @openrouter/sdk";
43
43
  };
package/lib/config.js CHANGED
@@ -25,7 +25,7 @@ export function serverURLFromOptions(options) {
25
25
  export const SDK_METADATA = {
26
26
  language: "typescript",
27
27
  openapiDocVersion: "1.0.0",
28
- sdkVersion: "0.0.1-beta.5",
29
- genVersion: "2.729.2",
30
- userAgent: "speakeasy-sdk/typescript 0.0.1-beta.5 2.729.2 1.0.0 @openrouter/sdk",
28
+ sdkVersion: "0.0.1-beta.7",
29
+ genVersion: "2.730.0",
30
+ userAgent: "speakeasy-sdk/typescript 0.0.1-beta.7 2.730.0 1.0.0 @openrouter/sdk",
31
31
  };
package/lib/env.d.ts CHANGED
@@ -1,9 +1,9 @@
1
- import * as z from "zod/v3";
1
+ import * as z from "zod/v4";
2
2
  export interface Env {
3
3
  OPENROUTER_API_KEY?: string | undefined;
4
4
  OPENROUTER_DEBUG?: boolean | undefined;
5
5
  }
6
- export declare const envSchema: z.ZodType<Env, z.ZodTypeDef, unknown>;
6
+ export declare const envSchema: z.ZodType<Env, unknown>;
7
7
  /**
8
8
  * Reads and validates environment variables.
9
9
  */
package/lib/env.js CHANGED
@@ -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 { dlv } from "./dlv.js";
6
6
  export const envSchema = z.object({
7
7
  OPENROUTER_API_KEY: z.string().optional(),
package/lib/schemas.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { output, ZodEffects, ZodObject, ZodRawShape, ZodTypeAny } from "zod/v3";
1
+ import * as z from "zod/v4";
2
2
  import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
3
3
  import { Result } from "../types/fp.js";
4
4
  /**
@@ -13,6 +13,8 @@ export declare function parse<Inp, Out>(rawValue: Inp, fn: (value: Inp) => Out,
13
13
  * leak Zod implementation details to user code.
14
14
  */
15
15
  export declare function safeParse<Inp, Out>(rawValue: Inp, fn: (value: Inp) => Out, errorMessage: string): Result<Out, SDKValidationError>;
16
- export declare function collectExtraKeys<Shape extends ZodRawShape, Catchall extends ZodTypeAny, K extends string>(obj: ZodObject<Shape, "strip", Catchall>, extrasKey: K, optional: boolean): ZodEffects<typeof obj, output<ZodObject<Shape, "strict">> & {
17
- [k in K]: Record<string, output<Catchall>>;
18
- }>;
16
+ export declare function collectExtraKeys<Shape extends z.ZodRawShape, Catchall extends z.ZodType, K extends string, Optional extends boolean>(obj: z.ZodObject<Shape, z.core.$catchall<Catchall>>, extrasKey: K, optional: Optional): z.ZodPipe<z.ZodObject<Shape, z.core.$catchall<Catchall>>, z.ZodTransform<z.output<z.ZodObject<Shape, z.core.$strip>> & (Optional extends true ? {
17
+ [k in K]: Record<string, z.output<Catchall>>;
18
+ } : {
19
+ [k in K]?: Record<string, z.output<Catchall>> | undefined;
20
+ }), z.output<z.ZodObject<Shape, z.core.$catchall<Catchall>>>>>;
package/lib/schemas.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /*
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
- import { ZodError, } from "zod/v3";
4
+ import { ZodError } from "zod/v4";
5
5
  import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
6
6
  import { ERR, OK } from "../types/fp.js";
7
7
  /**
@@ -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 ActivityItem = {
@@ -48,7 +48,7 @@ export type ActivityItem = {
48
48
  reasoningTokens: number;
49
49
  };
50
50
  /** @internal */
51
- export declare const ActivityItem$inboundSchema: z.ZodType<ActivityItem, z.ZodTypeDef, unknown>;
51
+ export declare const ActivityItem$inboundSchema: z.ZodType<ActivityItem, unknown>;
52
52
  /** @internal */
53
53
  export type ActivityItem$Outbound = {
54
54
  date: string;
@@ -64,16 +64,16 @@ export type ActivityItem$Outbound = {
64
64
  reasoning_tokens: number;
65
65
  };
66
66
  /** @internal */
67
- export declare const ActivityItem$outboundSchema: z.ZodType<ActivityItem$Outbound, z.ZodTypeDef, ActivityItem>;
67
+ export declare const ActivityItem$outboundSchema: z.ZodType<ActivityItem$Outbound, ActivityItem>;
68
68
  /**
69
69
  * @internal
70
70
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
71
71
  */
72
72
  export declare namespace ActivityItem$ {
73
73
  /** @deprecated use `ActivityItem$inboundSchema` instead. */
74
- const inboundSchema: z.ZodType<ActivityItem, z.ZodTypeDef, unknown>;
74
+ const inboundSchema: z.ZodType<ActivityItem, unknown, z.core.$ZodTypeInternals<ActivityItem, unknown>>;
75
75
  /** @deprecated use `ActivityItem$outboundSchema` instead. */
76
- const outboundSchema: z.ZodType<ActivityItem$Outbound, z.ZodTypeDef, ActivityItem>;
76
+ const outboundSchema: z.ZodType<ActivityItem$Outbound, ActivityItem, z.core.$ZodTypeInternals<ActivityItem$Outbound, ActivityItem>>;
77
77
  /** @deprecated use `ActivityItem$Outbound` instead. */
78
78
  type Outbound = ActivityItem$Outbound;
79
79
  }
@@ -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 ActivityItem$inboundSchema = z.object({
8
+ export const ActivityItem$inboundSchema = z
9
+ .object({
9
10
  date: z.string(),
10
11
  model: z.string(),
11
12
  model_permaslug: z.string(),
@@ -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 { ChatMessageContentItem, ChatMessageContentItem$Outbound } from "./chatmessagecontentitem.js";
4
4
  import { ChatMessageToolCall, ChatMessageToolCall$Outbound } from "./chatmessagetoolcall.js";
@@ -13,27 +13,27 @@ export type AssistantMessage = {
13
13
  reasoning?: string | null | undefined;
14
14
  };
15
15
  /** @internal */
16
- export declare const AssistantMessageContent$inboundSchema: z.ZodType<AssistantMessageContent, z.ZodTypeDef, unknown>;
16
+ export declare const AssistantMessageContent$inboundSchema: z.ZodType<AssistantMessageContent, unknown>;
17
17
  /** @internal */
18
18
  export type AssistantMessageContent$Outbound = string | Array<ChatMessageContentItem$Outbound>;
19
19
  /** @internal */
20
- export declare const AssistantMessageContent$outboundSchema: z.ZodType<AssistantMessageContent$Outbound, z.ZodTypeDef, AssistantMessageContent>;
20
+ export declare const AssistantMessageContent$outboundSchema: z.ZodType<AssistantMessageContent$Outbound, AssistantMessageContent>;
21
21
  /**
22
22
  * @internal
23
23
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
24
24
  */
25
25
  export declare namespace AssistantMessageContent$ {
26
26
  /** @deprecated use `AssistantMessageContent$inboundSchema` instead. */
27
- const inboundSchema: z.ZodType<AssistantMessageContent, z.ZodTypeDef, unknown>;
27
+ const inboundSchema: z.ZodType<AssistantMessageContent, unknown, z.core.$ZodTypeInternals<AssistantMessageContent, unknown>>;
28
28
  /** @deprecated use `AssistantMessageContent$outboundSchema` instead. */
29
- const outboundSchema: z.ZodType<AssistantMessageContent$Outbound, z.ZodTypeDef, AssistantMessageContent>;
29
+ const outboundSchema: z.ZodType<AssistantMessageContent$Outbound, AssistantMessageContent, z.core.$ZodTypeInternals<AssistantMessageContent$Outbound, AssistantMessageContent>>;
30
30
  /** @deprecated use `AssistantMessageContent$Outbound` instead. */
31
31
  type Outbound = AssistantMessageContent$Outbound;
32
32
  }
33
33
  export declare function assistantMessageContentToJSON(assistantMessageContent: AssistantMessageContent): string;
34
34
  export declare function assistantMessageContentFromJSON(jsonString: string): SafeParseResult<AssistantMessageContent, SDKValidationError>;
35
35
  /** @internal */
36
- export declare const AssistantMessage$inboundSchema: z.ZodType<AssistantMessage, z.ZodTypeDef, unknown>;
36
+ export declare const AssistantMessage$inboundSchema: z.ZodType<AssistantMessage, unknown>;
37
37
  /** @internal */
38
38
  export type AssistantMessage$Outbound = {
39
39
  role: "assistant";
@@ -44,16 +44,16 @@ export type AssistantMessage$Outbound = {
44
44
  reasoning?: string | null | undefined;
45
45
  };
46
46
  /** @internal */
47
- export declare const AssistantMessage$outboundSchema: z.ZodType<AssistantMessage$Outbound, z.ZodTypeDef, AssistantMessage>;
47
+ export declare const AssistantMessage$outboundSchema: z.ZodType<AssistantMessage$Outbound, AssistantMessage>;
48
48
  /**
49
49
  * @internal
50
50
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
51
51
  */
52
52
  export declare namespace AssistantMessage$ {
53
53
  /** @deprecated use `AssistantMessage$inboundSchema` instead. */
54
- const inboundSchema: z.ZodType<AssistantMessage, z.ZodTypeDef, unknown>;
54
+ const inboundSchema: z.ZodType<AssistantMessage, unknown, z.core.$ZodTypeInternals<AssistantMessage, unknown>>;
55
55
  /** @deprecated use `AssistantMessage$outboundSchema` instead. */
56
- const outboundSchema: z.ZodType<AssistantMessage$Outbound, z.ZodTypeDef, AssistantMessage>;
56
+ const outboundSchema: z.ZodType<AssistantMessage$Outbound, AssistantMessage, z.core.$ZodTypeInternals<AssistantMessage$Outbound, AssistantMessage>>;
57
57
  /** @deprecated use `AssistantMessage$Outbound` instead. */
58
58
  type Outbound = AssistantMessage$Outbound;
59
59
  }
@@ -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 { ChatMessageContentItem$inboundSchema, ChatMessageContentItem$outboundSchema, } from "./chatmessagecontentitem.js";
@@ -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 ChatCompletionFinishReason: {
4
4
  readonly ToolCalls: "tool_calls";
@@ -9,16 +9,16 @@ export declare const ChatCompletionFinishReason: {
9
9
  };
10
10
  export type ChatCompletionFinishReason = OpenEnum<typeof ChatCompletionFinishReason>;
11
11
  /** @internal */
12
- export declare const ChatCompletionFinishReason$inboundSchema: z.ZodType<ChatCompletionFinishReason, z.ZodTypeDef, unknown>;
12
+ export declare const ChatCompletionFinishReason$inboundSchema: z.ZodType<ChatCompletionFinishReason, unknown>;
13
13
  /** @internal */
14
- export declare const ChatCompletionFinishReason$outboundSchema: z.ZodType<ChatCompletionFinishReason, z.ZodTypeDef, ChatCompletionFinishReason>;
14
+ export declare const ChatCompletionFinishReason$outboundSchema: z.ZodType<ChatCompletionFinishReason, ChatCompletionFinishReason>;
15
15
  /**
16
16
  * @internal
17
17
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
18
18
  */
19
19
  export declare namespace ChatCompletionFinishReason$ {
20
20
  /** @deprecated use `ChatCompletionFinishReason$inboundSchema` instead. */
21
- const inboundSchema: z.ZodType<ChatCompletionFinishReason, z.ZodTypeDef, unknown>;
21
+ const inboundSchema: z.ZodType<ChatCompletionFinishReason, unknown, z.core.$ZodTypeInternals<ChatCompletionFinishReason, unknown>>;
22
22
  /** @deprecated use `ChatCompletionFinishReason$outboundSchema` instead. */
23
- const outboundSchema: z.ZodType<ChatCompletionFinishReason, z.ZodTypeDef, ChatCompletionFinishReason>;
23
+ const outboundSchema: z.ZodType<ChatCompletionFinishReason, ChatCompletionFinishReason, z.core.$ZodTypeInternals<ChatCompletionFinishReason, ChatCompletionFinishReason>>;
24
24
  }
@@ -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 ChatCompletionFinishReason = {
7
7
  ToolCalls: "tool_calls",
@@ -13,12 +13,12 @@ export const ChatCompletionFinishReason = {
13
13
  /** @internal */
14
14
  export const ChatCompletionFinishReason$inboundSchema = z
15
15
  .union([
16
- z.nativeEnum(ChatCompletionFinishReason),
16
+ z.enum(ChatCompletionFinishReason),
17
17
  z.string().transform(catchUnrecognizedEnum),
18
18
  ]);
19
19
  /** @internal */
20
20
  export const ChatCompletionFinishReason$outboundSchema = z.union([
21
- z.nativeEnum(ChatCompletionFinishReason),
21
+ z.enum(ChatCompletionFinishReason),
22
22
  z.string().and(z.custom()),
23
23
  ]);
24
24
  /**
@@ -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 Code = string | number;
@@ -9,27 +9,27 @@ export type ChatErrorError = {
9
9
  type: string;
10
10
  };
11
11
  /** @internal */
12
- export declare const Code$inboundSchema: z.ZodType<Code, z.ZodTypeDef, unknown>;
12
+ export declare const Code$inboundSchema: z.ZodType<Code, unknown>;
13
13
  /** @internal */
14
14
  export type Code$Outbound = string | number;
15
15
  /** @internal */
16
- export declare const Code$outboundSchema: z.ZodType<Code$Outbound, z.ZodTypeDef, Code>;
16
+ export declare const Code$outboundSchema: z.ZodType<Code$Outbound, Code>;
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 Code$ {
22
22
  /** @deprecated use `Code$inboundSchema` instead. */
23
- const inboundSchema: z.ZodType<Code, z.ZodTypeDef, unknown>;
23
+ const inboundSchema: z.ZodType<Code, unknown, z.core.$ZodTypeInternals<Code, unknown>>;
24
24
  /** @deprecated use `Code$outboundSchema` instead. */
25
- const outboundSchema: z.ZodType<Code$Outbound, z.ZodTypeDef, Code>;
25
+ const outboundSchema: z.ZodType<Code$Outbound, Code, z.core.$ZodTypeInternals<Code$Outbound, Code>>;
26
26
  /** @deprecated use `Code$Outbound` instead. */
27
27
  type Outbound = Code$Outbound;
28
28
  }
29
29
  export declare function codeToJSON(code: Code): string;
30
30
  export declare function codeFromJSON(jsonString: string): SafeParseResult<Code, SDKValidationError>;
31
31
  /** @internal */
32
- export declare const ChatErrorError$inboundSchema: z.ZodType<ChatErrorError, z.ZodTypeDef, unknown>;
32
+ export declare const ChatErrorError$inboundSchema: z.ZodType<ChatErrorError, unknown>;
33
33
  /** @internal */
34
34
  export type ChatErrorError$Outbound = {
35
35
  code: string | number | null;
@@ -38,16 +38,16 @@ export type ChatErrorError$Outbound = {
38
38
  type: string;
39
39
  };
40
40
  /** @internal */
41
- export declare const ChatErrorError$outboundSchema: z.ZodType<ChatErrorError$Outbound, z.ZodTypeDef, ChatErrorError>;
41
+ export declare const ChatErrorError$outboundSchema: z.ZodType<ChatErrorError$Outbound, ChatErrorError>;
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 ChatErrorError$ {
47
47
  /** @deprecated use `ChatErrorError$inboundSchema` instead. */
48
- const inboundSchema: z.ZodType<ChatErrorError, z.ZodTypeDef, unknown>;
48
+ const inboundSchema: z.ZodType<ChatErrorError, unknown, z.core.$ZodTypeInternals<ChatErrorError, unknown>>;
49
49
  /** @deprecated use `ChatErrorError$outboundSchema` instead. */
50
- const outboundSchema: z.ZodType<ChatErrorError$Outbound, z.ZodTypeDef, ChatErrorError>;
50
+ const outboundSchema: z.ZodType<ChatErrorError$Outbound, ChatErrorError, z.core.$ZodTypeInternals<ChatErrorError$Outbound, ChatErrorError>>;
51
51
  /** @deprecated use `ChatErrorError$Outbound` instead. */
52
52
  type Outbound = ChatErrorError$Outbound;
53
53
  }
@@ -1,13 +1,18 @@
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
- export const Code$inboundSchema = z
8
- .union([z.string(), z.number()]);
7
+ export const Code$inboundSchema = z.union([
8
+ z.string(),
9
+ z.number(),
10
+ ]);
9
11
  /** @internal */
10
- export const Code$outboundSchema = z.union([z.string(), z.number()]);
12
+ export const Code$outboundSchema = z.union([
13
+ z.string(),
14
+ z.number(),
15
+ ]);
11
16
  /**
12
17
  * @internal
13
18
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
@@ -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 { ChatStreamOptions, ChatStreamOptions$Outbound } from "./chatstreamoptions.js";
@@ -58,150 +58,150 @@ export type ChatGenerationParams = {
58
58
  user?: string | undefined;
59
59
  };
60
60
  /** @internal */
61
- export declare const ChatGenerationParamsEffort$inboundSchema: z.ZodType<ChatGenerationParamsEffort, z.ZodTypeDef, unknown>;
61
+ export declare const ChatGenerationParamsEffort$inboundSchema: z.ZodType<ChatGenerationParamsEffort, unknown>;
62
62
  /** @internal */
63
- export declare const ChatGenerationParamsEffort$outboundSchema: z.ZodType<ChatGenerationParamsEffort, z.ZodTypeDef, ChatGenerationParamsEffort>;
63
+ export declare const ChatGenerationParamsEffort$outboundSchema: z.ZodType<ChatGenerationParamsEffort, ChatGenerationParamsEffort>;
64
64
  /**
65
65
  * @internal
66
66
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
67
67
  */
68
68
  export declare namespace ChatGenerationParamsEffort$ {
69
69
  /** @deprecated use `ChatGenerationParamsEffort$inboundSchema` instead. */
70
- const inboundSchema: z.ZodType<ChatGenerationParamsEffort, z.ZodTypeDef, unknown>;
70
+ const inboundSchema: z.ZodType<ChatGenerationParamsEffort, unknown, z.core.$ZodTypeInternals<ChatGenerationParamsEffort, unknown>>;
71
71
  /** @deprecated use `ChatGenerationParamsEffort$outboundSchema` instead. */
72
- const outboundSchema: z.ZodType<ChatGenerationParamsEffort, z.ZodTypeDef, ChatGenerationParamsEffort>;
72
+ const outboundSchema: z.ZodType<ChatGenerationParamsEffort, ChatGenerationParamsEffort, z.core.$ZodTypeInternals<ChatGenerationParamsEffort, ChatGenerationParamsEffort>>;
73
73
  }
74
74
  /** @internal */
75
- export declare const Reasoning$inboundSchema: z.ZodType<Reasoning, z.ZodTypeDef, unknown>;
75
+ export declare const Reasoning$inboundSchema: z.ZodType<Reasoning, unknown>;
76
76
  /** @internal */
77
77
  export type Reasoning$Outbound = {
78
78
  effort?: string | null | undefined;
79
79
  summary?: string | null | undefined;
80
80
  };
81
81
  /** @internal */
82
- export declare const Reasoning$outboundSchema: z.ZodType<Reasoning$Outbound, z.ZodTypeDef, Reasoning>;
82
+ export declare const Reasoning$outboundSchema: z.ZodType<Reasoning$Outbound, Reasoning>;
83
83
  /**
84
84
  * @internal
85
85
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
86
86
  */
87
87
  export declare namespace Reasoning$ {
88
88
  /** @deprecated use `Reasoning$inboundSchema` instead. */
89
- const inboundSchema: z.ZodType<Reasoning, z.ZodTypeDef, unknown>;
89
+ const inboundSchema: z.ZodType<Reasoning, unknown, z.core.$ZodTypeInternals<Reasoning, unknown>>;
90
90
  /** @deprecated use `Reasoning$outboundSchema` instead. */
91
- const outboundSchema: z.ZodType<Reasoning$Outbound, z.ZodTypeDef, Reasoning>;
91
+ const outboundSchema: z.ZodType<Reasoning$Outbound, Reasoning, z.core.$ZodTypeInternals<Reasoning$Outbound, Reasoning>>;
92
92
  /** @deprecated use `Reasoning$Outbound` instead. */
93
93
  type Outbound = Reasoning$Outbound;
94
94
  }
95
95
  export declare function reasoningToJSON(reasoning: Reasoning): string;
96
96
  export declare function reasoningFromJSON(jsonString: string): SafeParseResult<Reasoning, SDKValidationError>;
97
97
  /** @internal */
98
- export declare const ChatGenerationParamsResponseFormatPython$inboundSchema: z.ZodType<ChatGenerationParamsResponseFormatPython, z.ZodTypeDef, unknown>;
98
+ export declare const ChatGenerationParamsResponseFormatPython$inboundSchema: z.ZodType<ChatGenerationParamsResponseFormatPython, unknown>;
99
99
  /** @internal */
100
100
  export type ChatGenerationParamsResponseFormatPython$Outbound = {
101
101
  type: "python";
102
102
  };
103
103
  /** @internal */
104
- export declare const ChatGenerationParamsResponseFormatPython$outboundSchema: z.ZodType<ChatGenerationParamsResponseFormatPython$Outbound, z.ZodTypeDef, ChatGenerationParamsResponseFormatPython>;
104
+ export declare const ChatGenerationParamsResponseFormatPython$outboundSchema: z.ZodType<ChatGenerationParamsResponseFormatPython$Outbound, ChatGenerationParamsResponseFormatPython>;
105
105
  /**
106
106
  * @internal
107
107
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
108
108
  */
109
109
  export declare namespace ChatGenerationParamsResponseFormatPython$ {
110
110
  /** @deprecated use `ChatGenerationParamsResponseFormatPython$inboundSchema` instead. */
111
- const inboundSchema: z.ZodType<ChatGenerationParamsResponseFormatPython, z.ZodTypeDef, unknown>;
111
+ const inboundSchema: z.ZodType<ChatGenerationParamsResponseFormatPython, unknown, z.core.$ZodTypeInternals<ChatGenerationParamsResponseFormatPython, unknown>>;
112
112
  /** @deprecated use `ChatGenerationParamsResponseFormatPython$outboundSchema` instead. */
113
- const outboundSchema: z.ZodType<ChatGenerationParamsResponseFormatPython$Outbound, z.ZodTypeDef, ChatGenerationParamsResponseFormatPython>;
113
+ const outboundSchema: z.ZodType<ChatGenerationParamsResponseFormatPython$Outbound, ChatGenerationParamsResponseFormatPython, z.core.$ZodTypeInternals<ChatGenerationParamsResponseFormatPython$Outbound, ChatGenerationParamsResponseFormatPython>>;
114
114
  /** @deprecated use `ChatGenerationParamsResponseFormatPython$Outbound` instead. */
115
115
  type Outbound = ChatGenerationParamsResponseFormatPython$Outbound;
116
116
  }
117
117
  export declare function chatGenerationParamsResponseFormatPythonToJSON(chatGenerationParamsResponseFormatPython: ChatGenerationParamsResponseFormatPython): string;
118
118
  export declare function chatGenerationParamsResponseFormatPythonFromJSON(jsonString: string): SafeParseResult<ChatGenerationParamsResponseFormatPython, SDKValidationError>;
119
119
  /** @internal */
120
- export declare const ChatGenerationParamsResponseFormatJSONObject$inboundSchema: z.ZodType<ChatGenerationParamsResponseFormatJSONObject, z.ZodTypeDef, unknown>;
120
+ export declare const ChatGenerationParamsResponseFormatJSONObject$inboundSchema: z.ZodType<ChatGenerationParamsResponseFormatJSONObject, unknown>;
121
121
  /** @internal */
122
122
  export type ChatGenerationParamsResponseFormatJSONObject$Outbound = {
123
123
  type: "json_object";
124
124
  };
125
125
  /** @internal */
126
- export declare const ChatGenerationParamsResponseFormatJSONObject$outboundSchema: z.ZodType<ChatGenerationParamsResponseFormatJSONObject$Outbound, z.ZodTypeDef, ChatGenerationParamsResponseFormatJSONObject>;
126
+ export declare const ChatGenerationParamsResponseFormatJSONObject$outboundSchema: z.ZodType<ChatGenerationParamsResponseFormatJSONObject$Outbound, ChatGenerationParamsResponseFormatJSONObject>;
127
127
  /**
128
128
  * @internal
129
129
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
130
130
  */
131
131
  export declare namespace ChatGenerationParamsResponseFormatJSONObject$ {
132
132
  /** @deprecated use `ChatGenerationParamsResponseFormatJSONObject$inboundSchema` instead. */
133
- const inboundSchema: z.ZodType<ChatGenerationParamsResponseFormatJSONObject, z.ZodTypeDef, unknown>;
133
+ const inboundSchema: z.ZodType<ChatGenerationParamsResponseFormatJSONObject, unknown, z.core.$ZodTypeInternals<ChatGenerationParamsResponseFormatJSONObject, unknown>>;
134
134
  /** @deprecated use `ChatGenerationParamsResponseFormatJSONObject$outboundSchema` instead. */
135
- const outboundSchema: z.ZodType<ChatGenerationParamsResponseFormatJSONObject$Outbound, z.ZodTypeDef, ChatGenerationParamsResponseFormatJSONObject>;
135
+ const outboundSchema: z.ZodType<ChatGenerationParamsResponseFormatJSONObject$Outbound, ChatGenerationParamsResponseFormatJSONObject, z.core.$ZodTypeInternals<ChatGenerationParamsResponseFormatJSONObject$Outbound, ChatGenerationParamsResponseFormatJSONObject>>;
136
136
  /** @deprecated use `ChatGenerationParamsResponseFormatJSONObject$Outbound` instead. */
137
137
  type Outbound = ChatGenerationParamsResponseFormatJSONObject$Outbound;
138
138
  }
139
139
  export declare function chatGenerationParamsResponseFormatJSONObjectToJSON(chatGenerationParamsResponseFormatJSONObject: ChatGenerationParamsResponseFormatJSONObject): string;
140
140
  export declare function chatGenerationParamsResponseFormatJSONObjectFromJSON(jsonString: string): SafeParseResult<ChatGenerationParamsResponseFormatJSONObject, SDKValidationError>;
141
141
  /** @internal */
142
- export declare const ChatGenerationParamsResponseFormatText$inboundSchema: z.ZodType<ChatGenerationParamsResponseFormatText, z.ZodTypeDef, unknown>;
142
+ export declare const ChatGenerationParamsResponseFormatText$inboundSchema: z.ZodType<ChatGenerationParamsResponseFormatText, unknown>;
143
143
  /** @internal */
144
144
  export type ChatGenerationParamsResponseFormatText$Outbound = {
145
145
  type: "text";
146
146
  };
147
147
  /** @internal */
148
- export declare const ChatGenerationParamsResponseFormatText$outboundSchema: z.ZodType<ChatGenerationParamsResponseFormatText$Outbound, z.ZodTypeDef, ChatGenerationParamsResponseFormatText>;
148
+ export declare const ChatGenerationParamsResponseFormatText$outboundSchema: z.ZodType<ChatGenerationParamsResponseFormatText$Outbound, ChatGenerationParamsResponseFormatText>;
149
149
  /**
150
150
  * @internal
151
151
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
152
152
  */
153
153
  export declare namespace ChatGenerationParamsResponseFormatText$ {
154
154
  /** @deprecated use `ChatGenerationParamsResponseFormatText$inboundSchema` instead. */
155
- const inboundSchema: z.ZodType<ChatGenerationParamsResponseFormatText, z.ZodTypeDef, unknown>;
155
+ const inboundSchema: z.ZodType<ChatGenerationParamsResponseFormatText, unknown, z.core.$ZodTypeInternals<ChatGenerationParamsResponseFormatText, unknown>>;
156
156
  /** @deprecated use `ChatGenerationParamsResponseFormatText$outboundSchema` instead. */
157
- const outboundSchema: z.ZodType<ChatGenerationParamsResponseFormatText$Outbound, z.ZodTypeDef, ChatGenerationParamsResponseFormatText>;
157
+ const outboundSchema: z.ZodType<ChatGenerationParamsResponseFormatText$Outbound, ChatGenerationParamsResponseFormatText, z.core.$ZodTypeInternals<ChatGenerationParamsResponseFormatText$Outbound, ChatGenerationParamsResponseFormatText>>;
158
158
  /** @deprecated use `ChatGenerationParamsResponseFormatText$Outbound` instead. */
159
159
  type Outbound = ChatGenerationParamsResponseFormatText$Outbound;
160
160
  }
161
161
  export declare function chatGenerationParamsResponseFormatTextToJSON(chatGenerationParamsResponseFormatText: ChatGenerationParamsResponseFormatText): string;
162
162
  export declare function chatGenerationParamsResponseFormatTextFromJSON(jsonString: string): SafeParseResult<ChatGenerationParamsResponseFormatText, SDKValidationError>;
163
163
  /** @internal */
164
- export declare const ChatGenerationParamsResponseFormatUnion$inboundSchema: z.ZodType<ChatGenerationParamsResponseFormatUnion, z.ZodTypeDef, unknown>;
164
+ export declare const ChatGenerationParamsResponseFormatUnion$inboundSchema: z.ZodType<ChatGenerationParamsResponseFormatUnion, unknown>;
165
165
  /** @internal */
166
166
  export type ChatGenerationParamsResponseFormatUnion$Outbound = ResponseFormatJSONSchema$Outbound | ResponseFormatTextGrammar$Outbound | ChatGenerationParamsResponseFormatText$Outbound | ChatGenerationParamsResponseFormatJSONObject$Outbound | ChatGenerationParamsResponseFormatPython$Outbound;
167
167
  /** @internal */
168
- export declare const ChatGenerationParamsResponseFormatUnion$outboundSchema: z.ZodType<ChatGenerationParamsResponseFormatUnion$Outbound, z.ZodTypeDef, ChatGenerationParamsResponseFormatUnion>;
168
+ export declare const ChatGenerationParamsResponseFormatUnion$outboundSchema: z.ZodType<ChatGenerationParamsResponseFormatUnion$Outbound, ChatGenerationParamsResponseFormatUnion>;
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 ChatGenerationParamsResponseFormatUnion$ {
174
174
  /** @deprecated use `ChatGenerationParamsResponseFormatUnion$inboundSchema` instead. */
175
- const inboundSchema: z.ZodType<ChatGenerationParamsResponseFormatUnion, z.ZodTypeDef, unknown>;
175
+ const inboundSchema: z.ZodType<ChatGenerationParamsResponseFormatUnion, unknown, z.core.$ZodTypeInternals<ChatGenerationParamsResponseFormatUnion, unknown>>;
176
176
  /** @deprecated use `ChatGenerationParamsResponseFormatUnion$outboundSchema` instead. */
177
- const outboundSchema: z.ZodType<ChatGenerationParamsResponseFormatUnion$Outbound, z.ZodTypeDef, ChatGenerationParamsResponseFormatUnion>;
177
+ const outboundSchema: z.ZodType<ChatGenerationParamsResponseFormatUnion$Outbound, ChatGenerationParamsResponseFormatUnion, z.core.$ZodTypeInternals<ChatGenerationParamsResponseFormatUnion$Outbound, ChatGenerationParamsResponseFormatUnion>>;
178
178
  /** @deprecated use `ChatGenerationParamsResponseFormatUnion$Outbound` instead. */
179
179
  type Outbound = ChatGenerationParamsResponseFormatUnion$Outbound;
180
180
  }
181
181
  export declare function chatGenerationParamsResponseFormatUnionToJSON(chatGenerationParamsResponseFormatUnion: ChatGenerationParamsResponseFormatUnion): string;
182
182
  export declare function chatGenerationParamsResponseFormatUnionFromJSON(jsonString: string): SafeParseResult<ChatGenerationParamsResponseFormatUnion, SDKValidationError>;
183
183
  /** @internal */
184
- export declare const ChatGenerationParamsStop$inboundSchema: z.ZodType<ChatGenerationParamsStop, z.ZodTypeDef, unknown>;
184
+ export declare const ChatGenerationParamsStop$inboundSchema: z.ZodType<ChatGenerationParamsStop, unknown>;
185
185
  /** @internal */
186
186
  export type ChatGenerationParamsStop$Outbound = string | Array<string>;
187
187
  /** @internal */
188
- export declare const ChatGenerationParamsStop$outboundSchema: z.ZodType<ChatGenerationParamsStop$Outbound, z.ZodTypeDef, ChatGenerationParamsStop>;
188
+ export declare const ChatGenerationParamsStop$outboundSchema: z.ZodType<ChatGenerationParamsStop$Outbound, ChatGenerationParamsStop>;
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 ChatGenerationParamsStop$ {
194
194
  /** @deprecated use `ChatGenerationParamsStop$inboundSchema` instead. */
195
- const inboundSchema: z.ZodType<ChatGenerationParamsStop, z.ZodTypeDef, unknown>;
195
+ const inboundSchema: z.ZodType<ChatGenerationParamsStop, unknown, z.core.$ZodTypeInternals<ChatGenerationParamsStop, unknown>>;
196
196
  /** @deprecated use `ChatGenerationParamsStop$outboundSchema` instead. */
197
- const outboundSchema: z.ZodType<ChatGenerationParamsStop$Outbound, z.ZodTypeDef, ChatGenerationParamsStop>;
197
+ const outboundSchema: z.ZodType<ChatGenerationParamsStop$Outbound, ChatGenerationParamsStop, z.core.$ZodTypeInternals<ChatGenerationParamsStop$Outbound, ChatGenerationParamsStop>>;
198
198
  /** @deprecated use `ChatGenerationParamsStop$Outbound` instead. */
199
199
  type Outbound = ChatGenerationParamsStop$Outbound;
200
200
  }
201
201
  export declare function chatGenerationParamsStopToJSON(chatGenerationParamsStop: ChatGenerationParamsStop): string;
202
202
  export declare function chatGenerationParamsStopFromJSON(jsonString: string): SafeParseResult<ChatGenerationParamsStop, SDKValidationError>;
203
203
  /** @internal */
204
- export declare const ChatGenerationParams$inboundSchema: z.ZodType<ChatGenerationParams, z.ZodTypeDef, unknown>;
204
+ export declare const ChatGenerationParams$inboundSchema: z.ZodType<ChatGenerationParams, unknown>;
205
205
  /** @internal */
206
206
  export type ChatGenerationParams$Outbound = {
207
207
  messages: Array<Message$Outbound>;
@@ -231,16 +231,16 @@ export type ChatGenerationParams$Outbound = {
231
231
  user?: string | undefined;
232
232
  };
233
233
  /** @internal */
234
- export declare const ChatGenerationParams$outboundSchema: z.ZodType<ChatGenerationParams$Outbound, z.ZodTypeDef, ChatGenerationParams>;
234
+ export declare const ChatGenerationParams$outboundSchema: z.ZodType<ChatGenerationParams$Outbound, ChatGenerationParams>;
235
235
  /**
236
236
  * @internal
237
237
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
238
238
  */
239
239
  export declare namespace ChatGenerationParams$ {
240
240
  /** @deprecated use `ChatGenerationParams$inboundSchema` instead. */
241
- const inboundSchema: z.ZodType<ChatGenerationParams, z.ZodTypeDef, unknown>;
241
+ const inboundSchema: z.ZodType<ChatGenerationParams, unknown, z.core.$ZodTypeInternals<ChatGenerationParams, unknown>>;
242
242
  /** @deprecated use `ChatGenerationParams$outboundSchema` instead. */
243
- const outboundSchema: z.ZodType<ChatGenerationParams$Outbound, z.ZodTypeDef, ChatGenerationParams>;
243
+ const outboundSchema: z.ZodType<ChatGenerationParams$Outbound, ChatGenerationParams, z.core.$ZodTypeInternals<ChatGenerationParams$Outbound, ChatGenerationParams>>;
244
244
  /** @deprecated use `ChatGenerationParams$Outbound` instead. */
245
245
  type Outbound = ChatGenerationParams$Outbound;
246
246
  }