@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.
- package/jsr.json +1 -1
- package/lib/base64.d.ts +3 -3
- package/lib/base64.js +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/env.d.ts +2 -2
- package/lib/env.js +1 -1
- package/lib/schemas.d.ts +6 -4
- package/lib/schemas.js +1 -1
- package/models/activityitem.d.ts +5 -5
- package/models/activityitem.js +3 -2
- package/models/assistantmessage.d.ts +9 -9
- package/models/assistantmessage.js +1 -1
- package/models/chatcompletionfinishreason.d.ts +5 -5
- package/models/chatcompletionfinishreason.js +3 -3
- package/models/chaterror.d.ts +9 -9
- package/models/chaterror.js +9 -4
- package/models/chatgenerationparams.d.ts +33 -33
- package/models/chatgenerationparams.js +7 -7
- package/models/chatgenerationtokenusage.d.ts +13 -13
- package/models/chatgenerationtokenusage.js +1 -1
- package/models/chatmessagecontentitem.d.ts +5 -5
- package/models/chatmessagecontentitem.js +1 -1
- package/models/chatmessagecontentitemaudio.d.ts +13 -13
- package/models/chatmessagecontentitemaudio.js +5 -4
- package/models/chatmessagecontentitemimage.d.ts +13 -13
- package/models/chatmessagecontentitemimage.js +5 -4
- package/models/chatmessagecontentitemtext.d.ts +5 -5
- package/models/chatmessagecontentitemtext.js +1 -1
- package/models/chatmessagetokenlogprob.d.ts +9 -9
- package/models/chatmessagetokenlogprob.js +1 -1
- package/models/chatmessagetokenlogprobs.d.ts +5 -5
- package/models/chatmessagetokenlogprobs.js +1 -1
- package/models/chatmessagetoolcall.d.ts +9 -9
- package/models/chatmessagetoolcall.js +1 -1
- package/models/chatresponse.d.ts +5 -5
- package/models/chatresponse.js +3 -2
- package/models/chatresponsechoice.d.ts +5 -5
- package/models/chatresponsechoice.js +1 -1
- package/models/chatstreamingchoice.d.ts +5 -5
- package/models/chatstreamingchoice.js +1 -1
- package/models/chatstreamingmessagechunk.d.ts +9 -9
- package/models/chatstreamingmessagechunk.js +2 -2
- package/models/chatstreamingmessagetoolcall.d.ts +9 -9
- package/models/chatstreamingmessagetoolcall.js +1 -1
- package/models/chatstreamingresponsechunk.d.ts +13 -13
- package/models/chatstreamingresponsechunk.js +3 -5
- package/models/chatstreamoptions.d.ts +5 -5
- package/models/chatstreamoptions.js +1 -1
- package/models/completionchoice.d.ts +9 -9
- package/models/completionchoice.js +3 -3
- package/models/completioncreateparams.d.ts +33 -33
- package/models/completioncreateparams.js +10 -9
- package/models/completionlogprobs.d.ts +5 -5
- package/models/completionlogprobs.js +3 -3
- package/models/completionresponse.d.ts +5 -5
- package/models/completionresponse.js +1 -1
- package/models/completionusage.d.ts +5 -5
- package/models/completionusage.js +1 -1
- package/models/createchargerequest.d.ts +5 -5
- package/models/createchargerequest.js +1 -1
- package/models/errorresponse.d.ts +13 -13
- package/models/errorresponse.js +7 -6
- package/models/errors/chaterror.d.ts +5 -5
- package/models/errors/chaterror.js +4 -4
- package/models/errors/errorresponse.d.ts +5 -5
- package/models/errors/errorresponse.js +6 -5
- package/models/errors/listproviders.d.ts +5 -5
- package/models/errors/listproviders.js +4 -4
- package/models/errors/responsevalidationerror.js +1 -1
- package/models/errors/sdkvalidationerror.d.ts +2 -2
- package/models/errors/sdkvalidationerror.js +3 -50
- package/models/filecitationannotation.d.ts +9 -9
- package/models/filecitationannotation.js +2 -2
- package/models/filepathannotation.d.ts +9 -9
- package/models/filepathannotation.js +2 -2
- package/models/imagegenerationstatus.d.ts +5 -5
- package/models/imagegenerationstatus.js +3 -3
- package/models/index.d.ts +7 -0
- package/models/index.js +7 -0
- package/models/jsonschemaconfig.d.ts +5 -5
- package/models/jsonschemaconfig.js +3 -3
- package/models/listendpointsresponse.d.ts +5 -5
- package/models/listendpointsresponse.js +1 -1
- package/models/message.d.ts +13 -13
- package/models/message.js +3 -2
- package/models/modelscountresponse.d.ts +5 -5
- package/models/modelscountresponse.js +1 -1
- package/models/modelslistresponse.d.ts +5 -5
- package/models/modelslistresponse.js +1 -1
- package/models/namedtoolchoice.d.ts +9 -9
- package/models/namedtoolchoice.js +1 -1
- package/models/openresponseseasyinputmessage.d.ts +33 -33
- package/models/openresponseseasyinputmessage.js +6 -9
- package/models/openresponsesformatjsonobject.d.ts +9 -9
- package/models/openresponsesformatjsonobject.js +2 -2
- package/models/openresponsesformatjsonschema.d.ts +9 -9
- package/models/openresponsesformatjsonschema.js +4 -4
- package/models/openresponsesformattext.d.ts +9 -9
- package/models/openresponsesformattext.js +2 -2
- package/models/openresponsesformattextconfig.d.ts +5 -5
- package/models/openresponsesformattextconfig.js +1 -1
- package/models/openresponsesfunctioncalloutput.d.ts +9 -9
- package/models/openresponsesfunctioncalloutput.js +2 -2
- package/models/openresponsesfunctiontoolcall.d.ts +9 -9
- package/models/openresponsesfunctiontoolcall.js +2 -2
- package/models/openresponsesinput.d.ts +5 -5
- package/models/openresponsesinput.js +1 -1
- package/models/openresponsesinputcontent.d.ts +5 -5
- package/models/openresponsesinputcontent.js +1 -1
- package/models/openresponsesinputfile.d.ts +9 -9
- package/models/openresponsesinputfile.js +2 -2
- package/models/openresponsesinputimage.d.ts +13 -13
- package/models/openresponsesinputimage.js +4 -4
- package/models/openresponsesinputitem.d.ts +13 -466
- package/models/openresponsesinputitem.js +19 -467
- package/models/openresponsesinputmessageitem.d.ts +25 -25
- package/models/openresponsesinputmessageitem.js +5 -7
- package/models/openresponsesinputtext.d.ts +9 -9
- package/models/openresponsesinputtext.js +2 -2
- package/models/openresponseslogprobs.d.ts +9 -9
- package/models/openresponseslogprobs.js +1 -1
- package/models/openresponsesnonstreamingresponse.d.ts +29 -29
- package/models/openresponsesnonstreamingresponse.js +17 -17
- package/models/openresponsesoutputtext.d.ts +13 -13
- package/models/openresponsesoutputtext.js +2 -2
- package/models/openresponsesprompt.d.ts +5 -5
- package/models/openresponsesprompt.js +3 -5
- package/models/openresponsesreasoning.d.ts +13 -13
- package/models/openresponsesreasoning.js +4 -4
- package/models/openresponsesreasoningconfig.d.ts +9 -9
- package/models/openresponsesreasoningconfig.js +3 -3
- package/models/openresponsesrefusalcontent.d.ts +9 -9
- package/models/openresponsesrefusalcontent.js +2 -2
- package/models/openresponsesrequest.d.ts +5 -5
- package/models/openresponsesrequest.js +1 -1
- package/models/openresponsesstreamevent.d.ts +233 -233
- package/models/openresponsesstreamevent.js +42 -43
- package/models/openresponsestextconfig.d.ts +9 -9
- package/models/openresponsestextconfig.js +5 -4
- package/models/openresponsestoolchoice.d.ts +25 -25
- package/models/openresponsestoolchoice.js +5 -5
- package/models/openresponsestoolunion.d.ts +13 -13
- package/models/openresponsestoolunion.js +4 -4
- package/models/openresponseswebsearch20250826tool.d.ts +13 -13
- package/models/openresponseswebsearch20250826tool.js +2 -2
- package/models/openresponseswebsearchpreview20250311tool.d.ts +18 -72
- package/models/openresponseswebsearchpreview20250311tool.js +18 -66
- package/models/openresponseswebsearchpreviewtool.d.ts +18 -72
- package/models/openresponseswebsearchpreviewtool.js +18 -67
- package/models/openresponseswebsearchtool.d.ts +13 -13
- package/models/openresponseswebsearchtool.js +2 -2
- package/models/operations/createapialpharesponses.d.ts +9 -9
- package/models/operations/createapialpharesponses.js +2 -3
- package/models/operations/createcoinbasecharge.d.ts +29 -29
- package/models/operations/createcoinbasecharge.js +7 -4
- package/models/operations/createkeys.d.ts +17 -17
- package/models/operations/createkeys.js +3 -3
- package/models/operations/deletekeys.d.ts +9 -9
- package/models/operations/deletekeys.js +1 -1
- package/models/operations/getcredits.d.ts +5 -5
- package/models/operations/getcredits.js +1 -1
- package/models/operations/getcurrentkey.d.ts +13 -13
- package/models/operations/getcurrentkey.js +1 -1
- package/models/operations/getgeneration.d.ts +17 -17
- package/models/operations/getgeneration.js +3 -3
- package/models/operations/getkey.d.ts +13 -13
- package/models/operations/getkey.js +5 -3
- package/models/operations/getmodels.d.ts +9 -9
- package/models/operations/getmodels.js +1 -1
- package/models/operations/getparameters.d.ts +25 -25
- package/models/operations/getparameters.js +5 -5
- package/models/operations/getuseractivity.d.ts +9 -9
- package/models/operations/getuseractivity.js +1 -1
- package/models/operations/list.d.ts +13 -13
- package/models/operations/list.js +7 -4
- package/models/operations/listendpoints.d.ts +9 -9
- package/models/operations/listendpoints.js +1 -1
- package/models/operations/listendpointszdr.d.ts +9 -9
- package/models/operations/listendpointszdr.js +1 -1
- package/models/operations/listmodelscount.d.ts +5 -5
- package/models/operations/listmodelscount.js +1 -1
- package/models/operations/listmodelsuser.d.ts +9 -9
- package/models/operations/listmodelsuser.js +1 -1
- package/models/operations/listproviders.d.ts +13 -13
- package/models/operations/listproviders.js +4 -4
- package/models/operations/sendchatcompletionrequest.d.ts +5 -5
- package/models/operations/sendchatcompletionrequest.js +2 -3
- package/models/operations/updatekeys.d.ts +21 -21
- package/models/operations/updatekeys.js +3 -3
- package/models/outputtextcontent.d.ts +13 -13
- package/models/outputtextcontent.js +2 -2
- package/models/publicendpoint.d.ts +5 -5
- package/models/publicendpoint.js +1 -1
- package/models/reasoningsummarytext.d.ts +9 -9
- package/models/reasoningsummarytext.js +2 -2
- package/models/reasoningsummaryverbosity.d.ts +5 -5
- package/models/reasoningsummaryverbosity.js +3 -3
- package/models/reasoningtextcontent.d.ts +9 -9
- package/models/reasoningtextcontent.js +2 -2
- package/models/refusalcontent.d.ts +9 -9
- package/models/refusalcontent.js +2 -2
- package/models/responseformatjsonschema.d.ts +5 -5
- package/models/responseformatjsonschema.js +1 -1
- package/models/responseformattextgrammar.d.ts +5 -5
- package/models/responseformattextgrammar.js +1 -1
- package/models/responseserrorfield.d.ts +9 -9
- package/models/responseserrorfield.js +3 -3
- package/models/responsesimagegenerationcall.d.ts +58 -0
- package/models/responsesimagegenerationcall.js +55 -0
- package/models/responsesoutputitem.d.ts +13 -466
- package/models/responsesoutputitem.js +19 -465
- package/models/responsesoutputitemfilesearchcall.d.ts +58 -0
- package/models/responsesoutputitemfilesearchcall.js +55 -0
- package/models/responsesoutputitemfunctioncall.d.ts +59 -0
- package/models/responsesoutputitemfunctioncall.js +65 -0
- package/models/responsesoutputitemreasoning.d.ts +61 -0
- package/models/responsesoutputitemreasoning.js +67 -0
- package/models/responsesoutputmessage.d.ts +191 -0
- package/models/responsesoutputmessage.js +189 -0
- package/models/responsessearchcontextsize.d.ts +5 -5
- package/models/responsessearchcontextsize.js +3 -3
- package/models/responsesusage.d.ts +17 -17
- package/models/responsesusage.js +3 -2
- package/models/responseswebsearchcalloutput.d.ts +56 -0
- package/models/responseswebsearchcalloutput.js +53 -0
- package/models/responseswebsearchuserlocation.d.ts +9 -9
- package/models/responseswebsearchuserlocation.js +2 -2
- package/models/security.d.ts +5 -5
- package/models/security.js +3 -2
- package/models/systemmessage.d.ts +9 -9
- package/models/systemmessage.js +3 -2
- package/models/tool.d.ts +9 -9
- package/models/tool.js +6 -6
- package/models/toolcallstatus.d.ts +5 -5
- package/models/toolcallstatus.js +3 -3
- package/models/toolchoicetypes.d.ts +29 -29
- package/models/toolchoicetypes.js +8 -9
- package/models/toolresponsemessage.d.ts +9 -9
- package/models/toolresponsemessage.js +1 -1
- package/models/urlcitationannotation.d.ts +9 -9
- package/models/urlcitationannotation.js +2 -2
- package/models/usermessage.d.ts +9 -9
- package/models/usermessage.js +7 -3
- package/models/websearchpreviewtooluserlocation.d.ts +59 -0
- package/models/websearchpreviewtooluserlocation.js +56 -0
- package/models/websearchstatus.d.ts +5 -5
- package/models/websearchstatus.js +3 -3
- package/package.json +1 -1
- package/types/blobs.d.ts +2 -2
- package/types/blobs.js +2 -2
- package/types/constdatetime.d.ts +2 -2
- package/types/constdatetime.js +1 -1
package/jsr.json
CHANGED
package/lib/base64.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import * as z from "zod/
|
|
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.
|
|
9
|
-
export declare const zodInbound: z.ZodUnion<[z.
|
|
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
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.
|
|
41
|
-
readonly genVersion: "2.
|
|
42
|
-
readonly userAgent: "speakeasy-sdk/typescript 0.0.1-beta.
|
|
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.
|
|
29
|
-
genVersion: "2.
|
|
30
|
-
userAgent: "speakeasy-sdk/typescript 0.0.1-beta.
|
|
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/
|
|
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,
|
|
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
package/lib/schemas.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
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
|
|
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
|
|
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
|
/**
|
package/models/activityitem.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as z from "zod/
|
|
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,
|
|
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,
|
|
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.
|
|
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.
|
|
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
|
}
|
package/models/activityitem.js
CHANGED
|
@@ -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/
|
|
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
|
|
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/
|
|
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,
|
|
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,
|
|
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.
|
|
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.
|
|
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,
|
|
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,
|
|
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.
|
|
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.
|
|
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/
|
|
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/
|
|
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,
|
|
12
|
+
export declare const ChatCompletionFinishReason$inboundSchema: z.ZodType<ChatCompletionFinishReason, unknown>;
|
|
13
13
|
/** @internal */
|
|
14
|
-
export declare const ChatCompletionFinishReason$outboundSchema: z.ZodType<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.
|
|
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.
|
|
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/
|
|
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.
|
|
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.
|
|
21
|
+
z.enum(ChatCompletionFinishReason),
|
|
22
22
|
z.string().and(z.custom()),
|
|
23
23
|
]);
|
|
24
24
|
/**
|
package/models/chaterror.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as z from "zod/
|
|
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,
|
|
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,
|
|
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.
|
|
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.
|
|
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,
|
|
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,
|
|
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.
|
|
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.
|
|
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
|
}
|
package/models/chaterror.js
CHANGED
|
@@ -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/
|
|
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
|
-
|
|
7
|
+
export const Code$inboundSchema = z.union([
|
|
8
|
+
z.string(),
|
|
9
|
+
z.number(),
|
|
10
|
+
]);
|
|
9
11
|
/** @internal */
|
|
10
|
-
export const Code$outboundSchema = z.union([
|
|
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/
|
|
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,
|
|
61
|
+
export declare const ChatGenerationParamsEffort$inboundSchema: z.ZodType<ChatGenerationParamsEffort, unknown>;
|
|
62
62
|
/** @internal */
|
|
63
|
-
export declare const ChatGenerationParamsEffort$outboundSchema: z.ZodType<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.
|
|
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.
|
|
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,
|
|
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,
|
|
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.
|
|
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.
|
|
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,
|
|
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,
|
|
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.
|
|
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.
|
|
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,
|
|
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,
|
|
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.
|
|
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.
|
|
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,
|
|
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,
|
|
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.
|
|
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.
|
|
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,
|
|
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,
|
|
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.
|
|
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.
|
|
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,
|
|
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,
|
|
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.
|
|
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.
|
|
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,
|
|
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,
|
|
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.
|
|
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.
|
|
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
|
}
|