@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
|
@@ -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 { catchUnrecognizedEnum, } from "../types/enums.js";
|
|
@@ -20,12 +20,12 @@ export const ChatGenerationParamsEffort = {
|
|
|
20
20
|
/** @internal */
|
|
21
21
|
export const ChatGenerationParamsEffort$inboundSchema = z
|
|
22
22
|
.union([
|
|
23
|
-
z.
|
|
23
|
+
z.enum(ChatGenerationParamsEffort),
|
|
24
24
|
z.string().transform(catchUnrecognizedEnum),
|
|
25
25
|
]);
|
|
26
26
|
/** @internal */
|
|
27
27
|
export const ChatGenerationParamsEffort$outboundSchema = z.union([
|
|
28
|
-
z.
|
|
28
|
+
z.enum(ChatGenerationParamsEffort),
|
|
29
29
|
z.string().and(z.custom()),
|
|
30
30
|
]);
|
|
31
31
|
/**
|
|
@@ -200,12 +200,12 @@ export const ChatGenerationParams$inboundSchema = z.object({
|
|
|
200
200
|
messages: z.array(Message$inboundSchema),
|
|
201
201
|
model: z.string(),
|
|
202
202
|
frequency_penalty: z.nullable(z.number()).optional(),
|
|
203
|
-
logit_bias: z.nullable(z.record(z.number())).optional(),
|
|
203
|
+
logit_bias: z.nullable(z.record(z.string(), z.number())).optional(),
|
|
204
204
|
logprobs: z.nullable(z.boolean()).optional(),
|
|
205
205
|
top_logprobs: z.nullable(z.number()).optional(),
|
|
206
206
|
max_completion_tokens: z.nullable(z.number()).optional(),
|
|
207
207
|
max_tokens: z.nullable(z.number()).optional(),
|
|
208
|
-
metadata: z.record(z.string()).optional(),
|
|
208
|
+
metadata: z.record(z.string(), z.string()).optional(),
|
|
209
209
|
presence_penalty: z.nullable(z.number()).optional(),
|
|
210
210
|
reasoning: z.lazy(() => Reasoning$inboundSchema).optional(),
|
|
211
211
|
response_format: z.union([
|
|
@@ -243,12 +243,12 @@ export const ChatGenerationParams$outboundSchema = z.object({
|
|
|
243
243
|
messages: z.array(Message$outboundSchema),
|
|
244
244
|
model: z.string(),
|
|
245
245
|
frequencyPenalty: z.nullable(z.number()).optional(),
|
|
246
|
-
logitBias: z.nullable(z.record(z.number())).optional(),
|
|
246
|
+
logitBias: z.nullable(z.record(z.string(), z.number())).optional(),
|
|
247
247
|
logprobs: z.nullable(z.boolean()).optional(),
|
|
248
248
|
topLogprobs: z.nullable(z.number()).optional(),
|
|
249
249
|
maxCompletionTokens: z.nullable(z.number()).optional(),
|
|
250
250
|
maxTokens: z.nullable(z.number()).optional(),
|
|
251
|
-
metadata: z.record(z.string()).optional(),
|
|
251
|
+
metadata: z.record(z.string(), z.string()).optional(),
|
|
252
252
|
presencePenalty: z.nullable(z.number()).optional(),
|
|
253
253
|
reasoning: z.lazy(() => Reasoning$outboundSchema).optional(),
|
|
254
254
|
responseFormat: z.union([
|
|
@@ -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 CompletionTokensDetails = {
|
|
@@ -19,7 +19,7 @@ export type ChatGenerationTokenUsage = {
|
|
|
19
19
|
promptTokensDetails?: PromptTokensDetails | undefined;
|
|
20
20
|
};
|
|
21
21
|
/** @internal */
|
|
22
|
-
export declare const CompletionTokensDetails$inboundSchema: z.ZodType<CompletionTokensDetails,
|
|
22
|
+
export declare const CompletionTokensDetails$inboundSchema: z.ZodType<CompletionTokensDetails, unknown>;
|
|
23
23
|
/** @internal */
|
|
24
24
|
export type CompletionTokensDetails$Outbound = {
|
|
25
25
|
reasoning_tokens?: number | undefined;
|
|
@@ -28,46 +28,46 @@ export type CompletionTokensDetails$Outbound = {
|
|
|
28
28
|
rejected_prediction_tokens?: number | undefined;
|
|
29
29
|
};
|
|
30
30
|
/** @internal */
|
|
31
|
-
export declare const CompletionTokensDetails$outboundSchema: z.ZodType<CompletionTokensDetails$Outbound,
|
|
31
|
+
export declare const CompletionTokensDetails$outboundSchema: z.ZodType<CompletionTokensDetails$Outbound, CompletionTokensDetails>;
|
|
32
32
|
/**
|
|
33
33
|
* @internal
|
|
34
34
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
35
35
|
*/
|
|
36
36
|
export declare namespace CompletionTokensDetails$ {
|
|
37
37
|
/** @deprecated use `CompletionTokensDetails$inboundSchema` instead. */
|
|
38
|
-
const inboundSchema: z.ZodType<CompletionTokensDetails, z.
|
|
38
|
+
const inboundSchema: z.ZodType<CompletionTokensDetails, unknown, z.core.$ZodTypeInternals<CompletionTokensDetails, unknown>>;
|
|
39
39
|
/** @deprecated use `CompletionTokensDetails$outboundSchema` instead. */
|
|
40
|
-
const outboundSchema: z.ZodType<CompletionTokensDetails$Outbound, z.
|
|
40
|
+
const outboundSchema: z.ZodType<CompletionTokensDetails$Outbound, CompletionTokensDetails, z.core.$ZodTypeInternals<CompletionTokensDetails$Outbound, CompletionTokensDetails>>;
|
|
41
41
|
/** @deprecated use `CompletionTokensDetails$Outbound` instead. */
|
|
42
42
|
type Outbound = CompletionTokensDetails$Outbound;
|
|
43
43
|
}
|
|
44
44
|
export declare function completionTokensDetailsToJSON(completionTokensDetails: CompletionTokensDetails): string;
|
|
45
45
|
export declare function completionTokensDetailsFromJSON(jsonString: string): SafeParseResult<CompletionTokensDetails, SDKValidationError>;
|
|
46
46
|
/** @internal */
|
|
47
|
-
export declare const PromptTokensDetails$inboundSchema: z.ZodType<PromptTokensDetails,
|
|
47
|
+
export declare const PromptTokensDetails$inboundSchema: z.ZodType<PromptTokensDetails, unknown>;
|
|
48
48
|
/** @internal */
|
|
49
49
|
export type PromptTokensDetails$Outbound = {
|
|
50
50
|
cached_tokens?: number | undefined;
|
|
51
51
|
audio_tokens?: number | undefined;
|
|
52
52
|
};
|
|
53
53
|
/** @internal */
|
|
54
|
-
export declare const PromptTokensDetails$outboundSchema: z.ZodType<PromptTokensDetails$Outbound,
|
|
54
|
+
export declare const PromptTokensDetails$outboundSchema: z.ZodType<PromptTokensDetails$Outbound, PromptTokensDetails>;
|
|
55
55
|
/**
|
|
56
56
|
* @internal
|
|
57
57
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
58
58
|
*/
|
|
59
59
|
export declare namespace PromptTokensDetails$ {
|
|
60
60
|
/** @deprecated use `PromptTokensDetails$inboundSchema` instead. */
|
|
61
|
-
const inboundSchema: z.ZodType<PromptTokensDetails, z.
|
|
61
|
+
const inboundSchema: z.ZodType<PromptTokensDetails, unknown, z.core.$ZodTypeInternals<PromptTokensDetails, unknown>>;
|
|
62
62
|
/** @deprecated use `PromptTokensDetails$outboundSchema` instead. */
|
|
63
|
-
const outboundSchema: z.ZodType<PromptTokensDetails$Outbound, z.
|
|
63
|
+
const outboundSchema: z.ZodType<PromptTokensDetails$Outbound, PromptTokensDetails, z.core.$ZodTypeInternals<PromptTokensDetails$Outbound, PromptTokensDetails>>;
|
|
64
64
|
/** @deprecated use `PromptTokensDetails$Outbound` instead. */
|
|
65
65
|
type Outbound = PromptTokensDetails$Outbound;
|
|
66
66
|
}
|
|
67
67
|
export declare function promptTokensDetailsToJSON(promptTokensDetails: PromptTokensDetails): string;
|
|
68
68
|
export declare function promptTokensDetailsFromJSON(jsonString: string): SafeParseResult<PromptTokensDetails, SDKValidationError>;
|
|
69
69
|
/** @internal */
|
|
70
|
-
export declare const ChatGenerationTokenUsage$inboundSchema: z.ZodType<ChatGenerationTokenUsage,
|
|
70
|
+
export declare const ChatGenerationTokenUsage$inboundSchema: z.ZodType<ChatGenerationTokenUsage, unknown>;
|
|
71
71
|
/** @internal */
|
|
72
72
|
export type ChatGenerationTokenUsage$Outbound = {
|
|
73
73
|
completion_tokens: number;
|
|
@@ -77,16 +77,16 @@ export type ChatGenerationTokenUsage$Outbound = {
|
|
|
77
77
|
prompt_tokens_details?: PromptTokensDetails$Outbound | undefined;
|
|
78
78
|
};
|
|
79
79
|
/** @internal */
|
|
80
|
-
export declare const ChatGenerationTokenUsage$outboundSchema: z.ZodType<ChatGenerationTokenUsage$Outbound,
|
|
80
|
+
export declare const ChatGenerationTokenUsage$outboundSchema: z.ZodType<ChatGenerationTokenUsage$Outbound, ChatGenerationTokenUsage>;
|
|
81
81
|
/**
|
|
82
82
|
* @internal
|
|
83
83
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
84
84
|
*/
|
|
85
85
|
export declare namespace ChatGenerationTokenUsage$ {
|
|
86
86
|
/** @deprecated use `ChatGenerationTokenUsage$inboundSchema` instead. */
|
|
87
|
-
const inboundSchema: z.ZodType<ChatGenerationTokenUsage, z.
|
|
87
|
+
const inboundSchema: z.ZodType<ChatGenerationTokenUsage, unknown, z.core.$ZodTypeInternals<ChatGenerationTokenUsage, unknown>>;
|
|
88
88
|
/** @deprecated use `ChatGenerationTokenUsage$outboundSchema` instead. */
|
|
89
|
-
const outboundSchema: z.ZodType<ChatGenerationTokenUsage$Outbound, z.
|
|
89
|
+
const outboundSchema: z.ZodType<ChatGenerationTokenUsage$Outbound, ChatGenerationTokenUsage, z.core.$ZodTypeInternals<ChatGenerationTokenUsage$Outbound, ChatGenerationTokenUsage>>;
|
|
90
90
|
/** @deprecated use `ChatGenerationTokenUsage$Outbound` instead. */
|
|
91
91
|
type Outbound = ChatGenerationTokenUsage$Outbound;
|
|
92
92
|
}
|
|
@@ -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 { ChatMessageContentItemAudio, ChatMessageContentItemAudio$Outbound } from "./chatmessagecontentitemaudio.js";
|
|
4
4
|
import { ChatMessageContentItemImage, ChatMessageContentItemImage$Outbound } from "./chatmessagecontentitemimage.js";
|
|
@@ -12,7 +12,7 @@ export type ChatMessageContentItem = (ChatMessageContentItemText & {
|
|
|
12
12
|
type: "input_audio";
|
|
13
13
|
});
|
|
14
14
|
/** @internal */
|
|
15
|
-
export declare const ChatMessageContentItem$inboundSchema: z.ZodType<ChatMessageContentItem,
|
|
15
|
+
export declare const ChatMessageContentItem$inboundSchema: z.ZodType<ChatMessageContentItem, unknown>;
|
|
16
16
|
/** @internal */
|
|
17
17
|
export type ChatMessageContentItem$Outbound = (ChatMessageContentItemText$Outbound & {
|
|
18
18
|
type: "text";
|
|
@@ -22,16 +22,16 @@ export type ChatMessageContentItem$Outbound = (ChatMessageContentItemText$Outbou
|
|
|
22
22
|
type: "input_audio";
|
|
23
23
|
});
|
|
24
24
|
/** @internal */
|
|
25
|
-
export declare const ChatMessageContentItem$outboundSchema: z.ZodType<ChatMessageContentItem$Outbound,
|
|
25
|
+
export declare const ChatMessageContentItem$outboundSchema: z.ZodType<ChatMessageContentItem$Outbound, ChatMessageContentItem>;
|
|
26
26
|
/**
|
|
27
27
|
* @internal
|
|
28
28
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
29
29
|
*/
|
|
30
30
|
export declare namespace ChatMessageContentItem$ {
|
|
31
31
|
/** @deprecated use `ChatMessageContentItem$inboundSchema` instead. */
|
|
32
|
-
const inboundSchema: z.ZodType<ChatMessageContentItem, z.
|
|
32
|
+
const inboundSchema: z.ZodType<ChatMessageContentItem, unknown, z.core.$ZodTypeInternals<ChatMessageContentItem, unknown>>;
|
|
33
33
|
/** @deprecated use `ChatMessageContentItem$outboundSchema` instead. */
|
|
34
|
-
const outboundSchema: z.ZodType<ChatMessageContentItem$Outbound, z.
|
|
34
|
+
const outboundSchema: z.ZodType<ChatMessageContentItem$Outbound, ChatMessageContentItem, z.core.$ZodTypeInternals<ChatMessageContentItem$Outbound, ChatMessageContentItem>>;
|
|
35
35
|
/** @deprecated use `ChatMessageContentItem$Outbound` instead. */
|
|
36
36
|
type Outbound = ChatMessageContentItem$Outbound;
|
|
37
37
|
}
|
|
@@ -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 { safeParse } from "../lib/schemas.js";
|
|
6
6
|
import { ChatMessageContentItemAudio$inboundSchema, ChatMessageContentItemAudio$outboundSchema, } from "./chatmessagecontentitemaudio.js";
|
|
7
7
|
import { ChatMessageContentItemImage$inboundSchema, ChatMessageContentItemImage$outboundSchema, } from "./chatmessagecontentitemimage.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
|
import { Result as SafeParseResult } from "../types/fp.js";
|
|
4
4
|
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
@@ -21,60 +21,60 @@ export type ChatMessageContentItemAudio = {
|
|
|
21
21
|
inputAudio: InputAudio;
|
|
22
22
|
};
|
|
23
23
|
/** @internal */
|
|
24
|
-
export declare const ChatMessageContentItemAudioFormat$inboundSchema: z.ZodType<ChatMessageContentItemAudioFormat,
|
|
24
|
+
export declare const ChatMessageContentItemAudioFormat$inboundSchema: z.ZodType<ChatMessageContentItemAudioFormat, unknown>;
|
|
25
25
|
/** @internal */
|
|
26
|
-
export declare const ChatMessageContentItemAudioFormat$outboundSchema: z.ZodType<ChatMessageContentItemAudioFormat,
|
|
26
|
+
export declare const ChatMessageContentItemAudioFormat$outboundSchema: z.ZodType<ChatMessageContentItemAudioFormat, ChatMessageContentItemAudioFormat>;
|
|
27
27
|
/**
|
|
28
28
|
* @internal
|
|
29
29
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
30
30
|
*/
|
|
31
31
|
export declare namespace ChatMessageContentItemAudioFormat$ {
|
|
32
32
|
/** @deprecated use `ChatMessageContentItemAudioFormat$inboundSchema` instead. */
|
|
33
|
-
const inboundSchema: z.ZodType<ChatMessageContentItemAudioFormat, z.
|
|
33
|
+
const inboundSchema: z.ZodType<ChatMessageContentItemAudioFormat, unknown, z.core.$ZodTypeInternals<ChatMessageContentItemAudioFormat, unknown>>;
|
|
34
34
|
/** @deprecated use `ChatMessageContentItemAudioFormat$outboundSchema` instead. */
|
|
35
|
-
const outboundSchema: z.ZodType<ChatMessageContentItemAudioFormat, z.
|
|
35
|
+
const outboundSchema: z.ZodType<ChatMessageContentItemAudioFormat, ChatMessageContentItemAudioFormat, z.core.$ZodTypeInternals<ChatMessageContentItemAudioFormat, ChatMessageContentItemAudioFormat>>;
|
|
36
36
|
}
|
|
37
37
|
/** @internal */
|
|
38
|
-
export declare const InputAudio$inboundSchema: z.ZodType<InputAudio,
|
|
38
|
+
export declare const InputAudio$inboundSchema: z.ZodType<InputAudio, unknown>;
|
|
39
39
|
/** @internal */
|
|
40
40
|
export type InputAudio$Outbound = {
|
|
41
41
|
data: string;
|
|
42
42
|
format: string;
|
|
43
43
|
};
|
|
44
44
|
/** @internal */
|
|
45
|
-
export declare const InputAudio$outboundSchema: z.ZodType<InputAudio$Outbound,
|
|
45
|
+
export declare const InputAudio$outboundSchema: z.ZodType<InputAudio$Outbound, InputAudio>;
|
|
46
46
|
/**
|
|
47
47
|
* @internal
|
|
48
48
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
49
49
|
*/
|
|
50
50
|
export declare namespace InputAudio$ {
|
|
51
51
|
/** @deprecated use `InputAudio$inboundSchema` instead. */
|
|
52
|
-
const inboundSchema: z.ZodType<InputAudio, z.
|
|
52
|
+
const inboundSchema: z.ZodType<InputAudio, unknown, z.core.$ZodTypeInternals<InputAudio, unknown>>;
|
|
53
53
|
/** @deprecated use `InputAudio$outboundSchema` instead. */
|
|
54
|
-
const outboundSchema: z.ZodType<InputAudio$Outbound, z.
|
|
54
|
+
const outboundSchema: z.ZodType<InputAudio$Outbound, InputAudio, z.core.$ZodTypeInternals<InputAudio$Outbound, InputAudio>>;
|
|
55
55
|
/** @deprecated use `InputAudio$Outbound` instead. */
|
|
56
56
|
type Outbound = InputAudio$Outbound;
|
|
57
57
|
}
|
|
58
58
|
export declare function inputAudioToJSON(inputAudio: InputAudio): string;
|
|
59
59
|
export declare function inputAudioFromJSON(jsonString: string): SafeParseResult<InputAudio, SDKValidationError>;
|
|
60
60
|
/** @internal */
|
|
61
|
-
export declare const ChatMessageContentItemAudio$inboundSchema: z.ZodType<ChatMessageContentItemAudio,
|
|
61
|
+
export declare const ChatMessageContentItemAudio$inboundSchema: z.ZodType<ChatMessageContentItemAudio, unknown>;
|
|
62
62
|
/** @internal */
|
|
63
63
|
export type ChatMessageContentItemAudio$Outbound = {
|
|
64
64
|
type: "input_audio";
|
|
65
65
|
input_audio: InputAudio$Outbound;
|
|
66
66
|
};
|
|
67
67
|
/** @internal */
|
|
68
|
-
export declare const ChatMessageContentItemAudio$outboundSchema: z.ZodType<ChatMessageContentItemAudio$Outbound,
|
|
68
|
+
export declare const ChatMessageContentItemAudio$outboundSchema: z.ZodType<ChatMessageContentItemAudio$Outbound, ChatMessageContentItemAudio>;
|
|
69
69
|
/**
|
|
70
70
|
* @internal
|
|
71
71
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
72
72
|
*/
|
|
73
73
|
export declare namespace ChatMessageContentItemAudio$ {
|
|
74
74
|
/** @deprecated use `ChatMessageContentItemAudio$inboundSchema` instead. */
|
|
75
|
-
const inboundSchema: z.ZodType<ChatMessageContentItemAudio, z.
|
|
75
|
+
const inboundSchema: z.ZodType<ChatMessageContentItemAudio, unknown, z.core.$ZodTypeInternals<ChatMessageContentItemAudio, unknown>>;
|
|
76
76
|
/** @deprecated use `ChatMessageContentItemAudio$outboundSchema` instead. */
|
|
77
|
-
const outboundSchema: z.ZodType<ChatMessageContentItemAudio$Outbound, z.
|
|
77
|
+
const outboundSchema: z.ZodType<ChatMessageContentItemAudio$Outbound, ChatMessageContentItemAudio, z.core.$ZodTypeInternals<ChatMessageContentItemAudio$Outbound, ChatMessageContentItemAudio>>;
|
|
78
78
|
/** @deprecated use `ChatMessageContentItemAudio$Outbound` instead. */
|
|
79
79
|
type Outbound = ChatMessageContentItemAudio$Outbound;
|
|
80
80
|
}
|
|
@@ -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 { catchUnrecognizedEnum, } from "../types/enums.js";
|
|
@@ -17,12 +17,12 @@ export const ChatMessageContentItemAudioFormat = {
|
|
|
17
17
|
/** @internal */
|
|
18
18
|
export const ChatMessageContentItemAudioFormat$inboundSchema = z
|
|
19
19
|
.union([
|
|
20
|
-
z.
|
|
20
|
+
z.enum(ChatMessageContentItemAudioFormat),
|
|
21
21
|
z.string().transform(catchUnrecognizedEnum),
|
|
22
22
|
]);
|
|
23
23
|
/** @internal */
|
|
24
24
|
export const ChatMessageContentItemAudioFormat$outboundSchema = z.union([
|
|
25
|
-
z.
|
|
25
|
+
z.enum(ChatMessageContentItemAudioFormat),
|
|
26
26
|
z.string().and(z.custom()),
|
|
27
27
|
]);
|
|
28
28
|
/**
|
|
@@ -37,7 +37,8 @@ export var ChatMessageContentItemAudioFormat$;
|
|
|
37
37
|
ChatMessageContentItemAudioFormat$.outboundSchema = ChatMessageContentItemAudioFormat$outboundSchema;
|
|
38
38
|
})(ChatMessageContentItemAudioFormat$ || (ChatMessageContentItemAudioFormat$ = {}));
|
|
39
39
|
/** @internal */
|
|
40
|
-
export const InputAudio$inboundSchema = z
|
|
40
|
+
export const InputAudio$inboundSchema = z
|
|
41
|
+
.object({
|
|
41
42
|
data: z.string(),
|
|
42
43
|
format: ChatMessageContentItemAudioFormat$inboundSchema,
|
|
43
44
|
});
|
|
@@ -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 { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
@@ -17,60 +17,60 @@ export type ChatMessageContentItemImage = {
|
|
|
17
17
|
imageUrl: ImageUrl;
|
|
18
18
|
};
|
|
19
19
|
/** @internal */
|
|
20
|
-
export declare const ChatMessageContentItemImageDetail$inboundSchema: z.ZodType<ChatMessageContentItemImageDetail,
|
|
20
|
+
export declare const ChatMessageContentItemImageDetail$inboundSchema: z.ZodType<ChatMessageContentItemImageDetail, unknown>;
|
|
21
21
|
/** @internal */
|
|
22
|
-
export declare const ChatMessageContentItemImageDetail$outboundSchema: z.ZodType<ChatMessageContentItemImageDetail,
|
|
22
|
+
export declare const ChatMessageContentItemImageDetail$outboundSchema: z.ZodType<ChatMessageContentItemImageDetail, ChatMessageContentItemImageDetail>;
|
|
23
23
|
/**
|
|
24
24
|
* @internal
|
|
25
25
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
26
26
|
*/
|
|
27
27
|
export declare namespace ChatMessageContentItemImageDetail$ {
|
|
28
28
|
/** @deprecated use `ChatMessageContentItemImageDetail$inboundSchema` instead. */
|
|
29
|
-
const inboundSchema: z.ZodType<ChatMessageContentItemImageDetail, z.
|
|
29
|
+
const inboundSchema: z.ZodType<ChatMessageContentItemImageDetail, unknown, z.core.$ZodTypeInternals<ChatMessageContentItemImageDetail, unknown>>;
|
|
30
30
|
/** @deprecated use `ChatMessageContentItemImageDetail$outboundSchema` instead. */
|
|
31
|
-
const outboundSchema: z.ZodType<ChatMessageContentItemImageDetail, z.
|
|
31
|
+
const outboundSchema: z.ZodType<ChatMessageContentItemImageDetail, ChatMessageContentItemImageDetail, z.core.$ZodTypeInternals<ChatMessageContentItemImageDetail, ChatMessageContentItemImageDetail>>;
|
|
32
32
|
}
|
|
33
33
|
/** @internal */
|
|
34
|
-
export declare const ImageUrl$inboundSchema: z.ZodType<ImageUrl,
|
|
34
|
+
export declare const ImageUrl$inboundSchema: z.ZodType<ImageUrl, unknown>;
|
|
35
35
|
/** @internal */
|
|
36
36
|
export type ImageUrl$Outbound = {
|
|
37
37
|
url: string;
|
|
38
38
|
detail?: string | undefined;
|
|
39
39
|
};
|
|
40
40
|
/** @internal */
|
|
41
|
-
export declare const ImageUrl$outboundSchema: z.ZodType<ImageUrl$Outbound,
|
|
41
|
+
export declare const ImageUrl$outboundSchema: z.ZodType<ImageUrl$Outbound, ImageUrl>;
|
|
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 ImageUrl$ {
|
|
47
47
|
/** @deprecated use `ImageUrl$inboundSchema` instead. */
|
|
48
|
-
const inboundSchema: z.ZodType<ImageUrl, z.
|
|
48
|
+
const inboundSchema: z.ZodType<ImageUrl, unknown, z.core.$ZodTypeInternals<ImageUrl, unknown>>;
|
|
49
49
|
/** @deprecated use `ImageUrl$outboundSchema` instead. */
|
|
50
|
-
const outboundSchema: z.ZodType<ImageUrl$Outbound, z.
|
|
50
|
+
const outboundSchema: z.ZodType<ImageUrl$Outbound, ImageUrl, z.core.$ZodTypeInternals<ImageUrl$Outbound, ImageUrl>>;
|
|
51
51
|
/** @deprecated use `ImageUrl$Outbound` instead. */
|
|
52
52
|
type Outbound = ImageUrl$Outbound;
|
|
53
53
|
}
|
|
54
54
|
export declare function imageUrlToJSON(imageUrl: ImageUrl): string;
|
|
55
55
|
export declare function imageUrlFromJSON(jsonString: string): SafeParseResult<ImageUrl, SDKValidationError>;
|
|
56
56
|
/** @internal */
|
|
57
|
-
export declare const ChatMessageContentItemImage$inboundSchema: z.ZodType<ChatMessageContentItemImage,
|
|
57
|
+
export declare const ChatMessageContentItemImage$inboundSchema: z.ZodType<ChatMessageContentItemImage, unknown>;
|
|
58
58
|
/** @internal */
|
|
59
59
|
export type ChatMessageContentItemImage$Outbound = {
|
|
60
60
|
type: "image_url";
|
|
61
61
|
image_url: ImageUrl$Outbound;
|
|
62
62
|
};
|
|
63
63
|
/** @internal */
|
|
64
|
-
export declare const ChatMessageContentItemImage$outboundSchema: z.ZodType<ChatMessageContentItemImage$Outbound,
|
|
64
|
+
export declare const ChatMessageContentItemImage$outboundSchema: z.ZodType<ChatMessageContentItemImage$Outbound, ChatMessageContentItemImage>;
|
|
65
65
|
/**
|
|
66
66
|
* @internal
|
|
67
67
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
68
68
|
*/
|
|
69
69
|
export declare namespace ChatMessageContentItemImage$ {
|
|
70
70
|
/** @deprecated use `ChatMessageContentItemImage$inboundSchema` instead. */
|
|
71
|
-
const inboundSchema: z.ZodType<ChatMessageContentItemImage, z.
|
|
71
|
+
const inboundSchema: z.ZodType<ChatMessageContentItemImage, unknown, z.core.$ZodTypeInternals<ChatMessageContentItemImage, unknown>>;
|
|
72
72
|
/** @deprecated use `ChatMessageContentItemImage$outboundSchema` instead. */
|
|
73
|
-
const outboundSchema: z.ZodType<ChatMessageContentItemImage$Outbound, z.
|
|
73
|
+
const outboundSchema: z.ZodType<ChatMessageContentItemImage$Outbound, ChatMessageContentItemImage, z.core.$ZodTypeInternals<ChatMessageContentItemImage$Outbound, ChatMessageContentItemImage>>;
|
|
74
74
|
/** @deprecated use `ChatMessageContentItemImage$Outbound` instead. */
|
|
75
75
|
type Outbound = ChatMessageContentItemImage$Outbound;
|
|
76
76
|
}
|
|
@@ -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 { catchUnrecognizedEnum, } from "../types/enums.js";
|
|
@@ -13,12 +13,12 @@ export const ChatMessageContentItemImageDetail = {
|
|
|
13
13
|
/** @internal */
|
|
14
14
|
export const ChatMessageContentItemImageDetail$inboundSchema = z
|
|
15
15
|
.union([
|
|
16
|
-
z.
|
|
16
|
+
z.enum(ChatMessageContentItemImageDetail),
|
|
17
17
|
z.string().transform(catchUnrecognizedEnum),
|
|
18
18
|
]);
|
|
19
19
|
/** @internal */
|
|
20
20
|
export const ChatMessageContentItemImageDetail$outboundSchema = z.union([
|
|
21
|
-
z.
|
|
21
|
+
z.enum(ChatMessageContentItemImageDetail),
|
|
22
22
|
z.string().and(z.custom()),
|
|
23
23
|
]);
|
|
24
24
|
/**
|
|
@@ -38,7 +38,8 @@ export const ImageUrl$inboundSchema = z.object({
|
|
|
38
38
|
detail: ChatMessageContentItemImageDetail$inboundSchema.optional(),
|
|
39
39
|
});
|
|
40
40
|
/** @internal */
|
|
41
|
-
export const ImageUrl$outboundSchema = z
|
|
41
|
+
export const ImageUrl$outboundSchema = z
|
|
42
|
+
.object({
|
|
42
43
|
url: z.string(),
|
|
43
44
|
detail: ChatMessageContentItemImageDetail$outboundSchema.optional(),
|
|
44
45
|
});
|
|
@@ -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 ChatMessageContentItemText = {
|
|
@@ -6,23 +6,23 @@ export type ChatMessageContentItemText = {
|
|
|
6
6
|
text: string;
|
|
7
7
|
};
|
|
8
8
|
/** @internal */
|
|
9
|
-
export declare const ChatMessageContentItemText$inboundSchema: z.ZodType<ChatMessageContentItemText,
|
|
9
|
+
export declare const ChatMessageContentItemText$inboundSchema: z.ZodType<ChatMessageContentItemText, unknown>;
|
|
10
10
|
/** @internal */
|
|
11
11
|
export type ChatMessageContentItemText$Outbound = {
|
|
12
12
|
type: "text";
|
|
13
13
|
text: string;
|
|
14
14
|
};
|
|
15
15
|
/** @internal */
|
|
16
|
-
export declare const ChatMessageContentItemText$outboundSchema: z.ZodType<ChatMessageContentItemText$Outbound,
|
|
16
|
+
export declare const ChatMessageContentItemText$outboundSchema: z.ZodType<ChatMessageContentItemText$Outbound, ChatMessageContentItemText>;
|
|
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 ChatMessageContentItemText$ {
|
|
22
22
|
/** @deprecated use `ChatMessageContentItemText$inboundSchema` instead. */
|
|
23
|
-
const inboundSchema: z.ZodType<ChatMessageContentItemText, z.
|
|
23
|
+
const inboundSchema: z.ZodType<ChatMessageContentItemText, unknown, z.core.$ZodTypeInternals<ChatMessageContentItemText, unknown>>;
|
|
24
24
|
/** @deprecated use `ChatMessageContentItemText$outboundSchema` instead. */
|
|
25
|
-
const outboundSchema: z.ZodType<ChatMessageContentItemText$Outbound, z.
|
|
25
|
+
const outboundSchema: z.ZodType<ChatMessageContentItemText$Outbound, ChatMessageContentItemText, z.core.$ZodTypeInternals<ChatMessageContentItemText$Outbound, ChatMessageContentItemText>>;
|
|
26
26
|
/** @deprecated use `ChatMessageContentItemText$Outbound` instead. */
|
|
27
27
|
type Outbound = ChatMessageContentItemText$Outbound;
|
|
28
28
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
|
-
import * as z from "zod/
|
|
4
|
+
import * as z from "zod/v4";
|
|
5
5
|
import { safeParse } from "../lib/schemas.js";
|
|
6
6
|
/** @internal */
|
|
7
7
|
export const ChatMessageContentItemText$inboundSchema = z.object({
|
|
@@ -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 ChatMessageTokenLogprobTopLogprob = {
|
|
@@ -13,7 +13,7 @@ export type ChatMessageTokenLogprob = {
|
|
|
13
13
|
topLogprobs: Array<ChatMessageTokenLogprobTopLogprob>;
|
|
14
14
|
};
|
|
15
15
|
/** @internal */
|
|
16
|
-
export declare const ChatMessageTokenLogprobTopLogprob$inboundSchema: z.ZodType<ChatMessageTokenLogprobTopLogprob,
|
|
16
|
+
export declare const ChatMessageTokenLogprobTopLogprob$inboundSchema: z.ZodType<ChatMessageTokenLogprobTopLogprob, unknown>;
|
|
17
17
|
/** @internal */
|
|
18
18
|
export type ChatMessageTokenLogprobTopLogprob$Outbound = {
|
|
19
19
|
token: string;
|
|
@@ -21,23 +21,23 @@ export type ChatMessageTokenLogprobTopLogprob$Outbound = {
|
|
|
21
21
|
bytes: Array<number> | null;
|
|
22
22
|
};
|
|
23
23
|
/** @internal */
|
|
24
|
-
export declare const ChatMessageTokenLogprobTopLogprob$outboundSchema: z.ZodType<ChatMessageTokenLogprobTopLogprob$Outbound,
|
|
24
|
+
export declare const ChatMessageTokenLogprobTopLogprob$outboundSchema: z.ZodType<ChatMessageTokenLogprobTopLogprob$Outbound, ChatMessageTokenLogprobTopLogprob>;
|
|
25
25
|
/**
|
|
26
26
|
* @internal
|
|
27
27
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
28
28
|
*/
|
|
29
29
|
export declare namespace ChatMessageTokenLogprobTopLogprob$ {
|
|
30
30
|
/** @deprecated use `ChatMessageTokenLogprobTopLogprob$inboundSchema` instead. */
|
|
31
|
-
const inboundSchema: z.ZodType<ChatMessageTokenLogprobTopLogprob, z.
|
|
31
|
+
const inboundSchema: z.ZodType<ChatMessageTokenLogprobTopLogprob, unknown, z.core.$ZodTypeInternals<ChatMessageTokenLogprobTopLogprob, unknown>>;
|
|
32
32
|
/** @deprecated use `ChatMessageTokenLogprobTopLogprob$outboundSchema` instead. */
|
|
33
|
-
const outboundSchema: z.ZodType<ChatMessageTokenLogprobTopLogprob$Outbound, z.
|
|
33
|
+
const outboundSchema: z.ZodType<ChatMessageTokenLogprobTopLogprob$Outbound, ChatMessageTokenLogprobTopLogprob, z.core.$ZodTypeInternals<ChatMessageTokenLogprobTopLogprob$Outbound, ChatMessageTokenLogprobTopLogprob>>;
|
|
34
34
|
/** @deprecated use `ChatMessageTokenLogprobTopLogprob$Outbound` instead. */
|
|
35
35
|
type Outbound = ChatMessageTokenLogprobTopLogprob$Outbound;
|
|
36
36
|
}
|
|
37
37
|
export declare function chatMessageTokenLogprobTopLogprobToJSON(chatMessageTokenLogprobTopLogprob: ChatMessageTokenLogprobTopLogprob): string;
|
|
38
38
|
export declare function chatMessageTokenLogprobTopLogprobFromJSON(jsonString: string): SafeParseResult<ChatMessageTokenLogprobTopLogprob, SDKValidationError>;
|
|
39
39
|
/** @internal */
|
|
40
|
-
export declare const ChatMessageTokenLogprob$inboundSchema: z.ZodType<ChatMessageTokenLogprob,
|
|
40
|
+
export declare const ChatMessageTokenLogprob$inboundSchema: z.ZodType<ChatMessageTokenLogprob, unknown>;
|
|
41
41
|
/** @internal */
|
|
42
42
|
export type ChatMessageTokenLogprob$Outbound = {
|
|
43
43
|
token: string;
|
|
@@ -46,16 +46,16 @@ export type ChatMessageTokenLogprob$Outbound = {
|
|
|
46
46
|
top_logprobs: Array<ChatMessageTokenLogprobTopLogprob$Outbound>;
|
|
47
47
|
};
|
|
48
48
|
/** @internal */
|
|
49
|
-
export declare const ChatMessageTokenLogprob$outboundSchema: z.ZodType<ChatMessageTokenLogprob$Outbound,
|
|
49
|
+
export declare const ChatMessageTokenLogprob$outboundSchema: z.ZodType<ChatMessageTokenLogprob$Outbound, ChatMessageTokenLogprob>;
|
|
50
50
|
/**
|
|
51
51
|
* @internal
|
|
52
52
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
53
53
|
*/
|
|
54
54
|
export declare namespace ChatMessageTokenLogprob$ {
|
|
55
55
|
/** @deprecated use `ChatMessageTokenLogprob$inboundSchema` instead. */
|
|
56
|
-
const inboundSchema: z.ZodType<ChatMessageTokenLogprob, z.
|
|
56
|
+
const inboundSchema: z.ZodType<ChatMessageTokenLogprob, unknown, z.core.$ZodTypeInternals<ChatMessageTokenLogprob, unknown>>;
|
|
57
57
|
/** @deprecated use `ChatMessageTokenLogprob$outboundSchema` instead. */
|
|
58
|
-
const outboundSchema: z.ZodType<ChatMessageTokenLogprob$Outbound, z.
|
|
58
|
+
const outboundSchema: z.ZodType<ChatMessageTokenLogprob$Outbound, ChatMessageTokenLogprob, z.core.$ZodTypeInternals<ChatMessageTokenLogprob$Outbound, ChatMessageTokenLogprob>>;
|
|
59
59
|
/** @deprecated use `ChatMessageTokenLogprob$Outbound` instead. */
|
|
60
60
|
type Outbound = ChatMessageTokenLogprob$Outbound;
|
|
61
61
|
}
|
|
@@ -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 { ChatMessageTokenLogprob, ChatMessageTokenLogprob$Outbound } from "./chatmessagetokenlogprob.js";
|
|
4
4
|
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
@@ -7,23 +7,23 @@ export type ChatMessageTokenLogprobs = {
|
|
|
7
7
|
refusal: Array<ChatMessageTokenLogprob> | null;
|
|
8
8
|
};
|
|
9
9
|
/** @internal */
|
|
10
|
-
export declare const ChatMessageTokenLogprobs$inboundSchema: z.ZodType<ChatMessageTokenLogprobs,
|
|
10
|
+
export declare const ChatMessageTokenLogprobs$inboundSchema: z.ZodType<ChatMessageTokenLogprobs, unknown>;
|
|
11
11
|
/** @internal */
|
|
12
12
|
export type ChatMessageTokenLogprobs$Outbound = {
|
|
13
13
|
content: Array<ChatMessageTokenLogprob$Outbound> | null;
|
|
14
14
|
refusal: Array<ChatMessageTokenLogprob$Outbound> | null;
|
|
15
15
|
};
|
|
16
16
|
/** @internal */
|
|
17
|
-
export declare const ChatMessageTokenLogprobs$outboundSchema: z.ZodType<ChatMessageTokenLogprobs$Outbound,
|
|
17
|
+
export declare const ChatMessageTokenLogprobs$outboundSchema: z.ZodType<ChatMessageTokenLogprobs$Outbound, ChatMessageTokenLogprobs>;
|
|
18
18
|
/**
|
|
19
19
|
* @internal
|
|
20
20
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
21
21
|
*/
|
|
22
22
|
export declare namespace ChatMessageTokenLogprobs$ {
|
|
23
23
|
/** @deprecated use `ChatMessageTokenLogprobs$inboundSchema` instead. */
|
|
24
|
-
const inboundSchema: z.ZodType<ChatMessageTokenLogprobs, z.
|
|
24
|
+
const inboundSchema: z.ZodType<ChatMessageTokenLogprobs, unknown, z.core.$ZodTypeInternals<ChatMessageTokenLogprobs, unknown>>;
|
|
25
25
|
/** @deprecated use `ChatMessageTokenLogprobs$outboundSchema` instead. */
|
|
26
|
-
const outboundSchema: z.ZodType<ChatMessageTokenLogprobs$Outbound, z.
|
|
26
|
+
const outboundSchema: z.ZodType<ChatMessageTokenLogprobs$Outbound, ChatMessageTokenLogprobs, z.core.$ZodTypeInternals<ChatMessageTokenLogprobs$Outbound, ChatMessageTokenLogprobs>>;
|
|
27
27
|
/** @deprecated use `ChatMessageTokenLogprobs$Outbound` instead. */
|
|
28
28
|
type Outbound = ChatMessageTokenLogprobs$Outbound;
|
|
29
29
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
|
-
import * as z from "zod/
|
|
4
|
+
import * as z from "zod/v4";
|
|
5
5
|
import { safeParse } from "../lib/schemas.js";
|
|
6
6
|
import { ChatMessageTokenLogprob$inboundSchema, ChatMessageTokenLogprob$outboundSchema, } from "./chatmessagetokenlogprob.js";
|
|
7
7
|
/** @internal */
|