@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,4 +1,4 @@
|
|
|
1
|
-
import * as z from "zod/
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
2
|
import { ClosedEnum } from "../types/enums.js";
|
|
3
3
|
import { Result as SafeParseResult } from "../types/fp.js";
|
|
4
4
|
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
@@ -19,25 +19,25 @@ export type OpenResponsesFormatJSONSchema = {
|
|
|
19
19
|
};
|
|
20
20
|
};
|
|
21
21
|
/** @internal */
|
|
22
|
-
export declare const OpenResponsesFormatJSONSchemaType$inboundSchema: z.
|
|
22
|
+
export declare const OpenResponsesFormatJSONSchemaType$inboundSchema: z.ZodEnum<typeof OpenResponsesFormatJSONSchemaType>;
|
|
23
23
|
/** @internal */
|
|
24
|
-
export declare const OpenResponsesFormatJSONSchemaType$outboundSchema: z.
|
|
24
|
+
export declare const OpenResponsesFormatJSONSchemaType$outboundSchema: z.ZodEnum<typeof OpenResponsesFormatJSONSchemaType>;
|
|
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 OpenResponsesFormatJSONSchemaType$ {
|
|
30
30
|
/** @deprecated use `OpenResponsesFormatJSONSchemaType$inboundSchema` instead. */
|
|
31
|
-
const inboundSchema: z.
|
|
31
|
+
const inboundSchema: z.ZodEnum<{
|
|
32
32
|
readonly JsonSchema: "json_schema";
|
|
33
33
|
}>;
|
|
34
34
|
/** @deprecated use `OpenResponsesFormatJSONSchemaType$outboundSchema` instead. */
|
|
35
|
-
const outboundSchema: z.
|
|
35
|
+
const outboundSchema: z.ZodEnum<{
|
|
36
36
|
readonly JsonSchema: "json_schema";
|
|
37
37
|
}>;
|
|
38
38
|
}
|
|
39
39
|
/** @internal */
|
|
40
|
-
export declare const OpenResponsesFormatJSONSchema$inboundSchema: z.ZodType<OpenResponsesFormatJSONSchema,
|
|
40
|
+
export declare const OpenResponsesFormatJSONSchema$inboundSchema: z.ZodType<OpenResponsesFormatJSONSchema, unknown>;
|
|
41
41
|
/** @internal */
|
|
42
42
|
export type OpenResponsesFormatJSONSchema$Outbound = {
|
|
43
43
|
type: string;
|
|
@@ -49,16 +49,16 @@ export type OpenResponsesFormatJSONSchema$Outbound = {
|
|
|
49
49
|
};
|
|
50
50
|
};
|
|
51
51
|
/** @internal */
|
|
52
|
-
export declare const OpenResponsesFormatJSONSchema$outboundSchema: z.ZodType<OpenResponsesFormatJSONSchema$Outbound,
|
|
52
|
+
export declare const OpenResponsesFormatJSONSchema$outboundSchema: z.ZodType<OpenResponsesFormatJSONSchema$Outbound, OpenResponsesFormatJSONSchema>;
|
|
53
53
|
/**
|
|
54
54
|
* @internal
|
|
55
55
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
56
56
|
*/
|
|
57
57
|
export declare namespace OpenResponsesFormatJSONSchema$ {
|
|
58
58
|
/** @deprecated use `OpenResponsesFormatJSONSchema$inboundSchema` instead. */
|
|
59
|
-
const inboundSchema: z.ZodType<OpenResponsesFormatJSONSchema, z.
|
|
59
|
+
const inboundSchema: z.ZodType<OpenResponsesFormatJSONSchema, unknown, z.core.$ZodTypeInternals<OpenResponsesFormatJSONSchema, unknown>>;
|
|
60
60
|
/** @deprecated use `OpenResponsesFormatJSONSchema$outboundSchema` instead. */
|
|
61
|
-
const outboundSchema: z.ZodType<OpenResponsesFormatJSONSchema$Outbound, z.
|
|
61
|
+
const outboundSchema: z.ZodType<OpenResponsesFormatJSONSchema$Outbound, OpenResponsesFormatJSONSchema, z.core.$ZodTypeInternals<OpenResponsesFormatJSONSchema$Outbound, OpenResponsesFormatJSONSchema>>;
|
|
62
62
|
/** @deprecated use `OpenResponsesFormatJSONSchema$Outbound` instead. */
|
|
63
63
|
type Outbound = OpenResponsesFormatJSONSchema$Outbound;
|
|
64
64
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
|
-
import * as z from "zod/
|
|
4
|
+
import * as z from "zod/v4";
|
|
5
5
|
import { safeParse } from "../lib/schemas.js";
|
|
6
6
|
export const OpenResponsesFormatJSONSchemaType = {
|
|
7
7
|
JsonSchema: "json_schema",
|
|
8
8
|
};
|
|
9
9
|
/** @internal */
|
|
10
|
-
export const OpenResponsesFormatJSONSchemaType$inboundSchema = z.
|
|
10
|
+
export const OpenResponsesFormatJSONSchemaType$inboundSchema = z.enum(OpenResponsesFormatJSONSchemaType);
|
|
11
11
|
/** @internal */
|
|
12
12
|
export const OpenResponsesFormatJSONSchemaType$outboundSchema = OpenResponsesFormatJSONSchemaType$inboundSchema;
|
|
13
13
|
/**
|
|
@@ -27,7 +27,7 @@ export const OpenResponsesFormatJSONSchema$inboundSchema = z.object({
|
|
|
27
27
|
name: z.string(),
|
|
28
28
|
description: z.string().optional(),
|
|
29
29
|
strict: z.nullable(z.boolean()).optional(),
|
|
30
|
-
schema: z.record(z.nullable(z.any())),
|
|
30
|
+
schema: z.record(z.string(), z.nullable(z.any())),
|
|
31
31
|
});
|
|
32
32
|
/** @internal */
|
|
33
33
|
export const OpenResponsesFormatJSONSchema$outboundSchema = z.object({
|
|
@@ -35,7 +35,7 @@ export const OpenResponsesFormatJSONSchema$outboundSchema = z.object({
|
|
|
35
35
|
name: z.string(),
|
|
36
36
|
description: z.string().optional(),
|
|
37
37
|
strict: z.nullable(z.boolean()).optional(),
|
|
38
|
-
schema: z.record(z.nullable(z.any())),
|
|
38
|
+
schema: z.record(z.string(), z.nullable(z.any())),
|
|
39
39
|
});
|
|
40
40
|
/**
|
|
41
41
|
* @internal
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as z from "zod/
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
2
|
import { ClosedEnum } from "../types/enums.js";
|
|
3
3
|
import { Result as SafeParseResult } from "../types/fp.js";
|
|
4
4
|
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
@@ -13,40 +13,40 @@ export type OpenResponsesFormatText = {
|
|
|
13
13
|
type: OpenResponsesFormatTextType;
|
|
14
14
|
};
|
|
15
15
|
/** @internal */
|
|
16
|
-
export declare const OpenResponsesFormatTextType$inboundSchema: z.
|
|
16
|
+
export declare const OpenResponsesFormatTextType$inboundSchema: z.ZodEnum<typeof OpenResponsesFormatTextType>;
|
|
17
17
|
/** @internal */
|
|
18
|
-
export declare const OpenResponsesFormatTextType$outboundSchema: z.
|
|
18
|
+
export declare const OpenResponsesFormatTextType$outboundSchema: z.ZodEnum<typeof OpenResponsesFormatTextType>;
|
|
19
19
|
/**
|
|
20
20
|
* @internal
|
|
21
21
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
22
22
|
*/
|
|
23
23
|
export declare namespace OpenResponsesFormatTextType$ {
|
|
24
24
|
/** @deprecated use `OpenResponsesFormatTextType$inboundSchema` instead. */
|
|
25
|
-
const inboundSchema: z.
|
|
25
|
+
const inboundSchema: z.ZodEnum<{
|
|
26
26
|
readonly Text: "text";
|
|
27
27
|
}>;
|
|
28
28
|
/** @deprecated use `OpenResponsesFormatTextType$outboundSchema` instead. */
|
|
29
|
-
const outboundSchema: z.
|
|
29
|
+
const outboundSchema: z.ZodEnum<{
|
|
30
30
|
readonly Text: "text";
|
|
31
31
|
}>;
|
|
32
32
|
}
|
|
33
33
|
/** @internal */
|
|
34
|
-
export declare const OpenResponsesFormatText$inboundSchema: z.ZodType<OpenResponsesFormatText,
|
|
34
|
+
export declare const OpenResponsesFormatText$inboundSchema: z.ZodType<OpenResponsesFormatText, unknown>;
|
|
35
35
|
/** @internal */
|
|
36
36
|
export type OpenResponsesFormatText$Outbound = {
|
|
37
37
|
type: string;
|
|
38
38
|
};
|
|
39
39
|
/** @internal */
|
|
40
|
-
export declare const OpenResponsesFormatText$outboundSchema: z.ZodType<OpenResponsesFormatText$Outbound,
|
|
40
|
+
export declare const OpenResponsesFormatText$outboundSchema: z.ZodType<OpenResponsesFormatText$Outbound, OpenResponsesFormatText>;
|
|
41
41
|
/**
|
|
42
42
|
* @internal
|
|
43
43
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
44
44
|
*/
|
|
45
45
|
export declare namespace OpenResponsesFormatText$ {
|
|
46
46
|
/** @deprecated use `OpenResponsesFormatText$inboundSchema` instead. */
|
|
47
|
-
const inboundSchema: z.ZodType<OpenResponsesFormatText, z.
|
|
47
|
+
const inboundSchema: z.ZodType<OpenResponsesFormatText, unknown, z.core.$ZodTypeInternals<OpenResponsesFormatText, unknown>>;
|
|
48
48
|
/** @deprecated use `OpenResponsesFormatText$outboundSchema` instead. */
|
|
49
|
-
const outboundSchema: z.ZodType<OpenResponsesFormatText$Outbound, z.
|
|
49
|
+
const outboundSchema: z.ZodType<OpenResponsesFormatText$Outbound, OpenResponsesFormatText, z.core.$ZodTypeInternals<OpenResponsesFormatText$Outbound, OpenResponsesFormatText>>;
|
|
50
50
|
/** @deprecated use `OpenResponsesFormatText$Outbound` instead. */
|
|
51
51
|
type Outbound = OpenResponsesFormatText$Outbound;
|
|
52
52
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
|
-
import * as z from "zod/
|
|
4
|
+
import * as z from "zod/v4";
|
|
5
5
|
import { safeParse } from "../lib/schemas.js";
|
|
6
6
|
export const OpenResponsesFormatTextType = {
|
|
7
7
|
Text: "text",
|
|
8
8
|
};
|
|
9
9
|
/** @internal */
|
|
10
|
-
export const OpenResponsesFormatTextType$inboundSchema = z.
|
|
10
|
+
export const OpenResponsesFormatTextType$inboundSchema = z.enum(OpenResponsesFormatTextType);
|
|
11
11
|
/** @internal */
|
|
12
12
|
export const OpenResponsesFormatTextType$outboundSchema = OpenResponsesFormatTextType$inboundSchema;
|
|
13
13
|
/**
|
|
@@ -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
|
import { OpenResponsesFormatJSONObject, OpenResponsesFormatJSONObject$Outbound } from "./openresponsesformatjsonobject.js";
|
|
@@ -9,20 +9,20 @@ import { OpenResponsesFormatText, OpenResponsesFormatText$Outbound } from "./ope
|
|
|
9
9
|
*/
|
|
10
10
|
export type OpenResponsesFormatTextConfig = OpenResponsesFormatJSONSchema | OpenResponsesFormatText | OpenResponsesFormatJSONObject;
|
|
11
11
|
/** @internal */
|
|
12
|
-
export declare const OpenResponsesFormatTextConfig$inboundSchema: z.ZodType<OpenResponsesFormatTextConfig,
|
|
12
|
+
export declare const OpenResponsesFormatTextConfig$inboundSchema: z.ZodType<OpenResponsesFormatTextConfig, unknown>;
|
|
13
13
|
/** @internal */
|
|
14
14
|
export type OpenResponsesFormatTextConfig$Outbound = OpenResponsesFormatJSONSchema$Outbound | OpenResponsesFormatText$Outbound | OpenResponsesFormatJSONObject$Outbound;
|
|
15
15
|
/** @internal */
|
|
16
|
-
export declare const OpenResponsesFormatTextConfig$outboundSchema: z.ZodType<OpenResponsesFormatTextConfig$Outbound,
|
|
16
|
+
export declare const OpenResponsesFormatTextConfig$outboundSchema: z.ZodType<OpenResponsesFormatTextConfig$Outbound, OpenResponsesFormatTextConfig>;
|
|
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 OpenResponsesFormatTextConfig$ {
|
|
22
22
|
/** @deprecated use `OpenResponsesFormatTextConfig$inboundSchema` instead. */
|
|
23
|
-
const inboundSchema: z.ZodType<OpenResponsesFormatTextConfig, z.
|
|
23
|
+
const inboundSchema: z.ZodType<OpenResponsesFormatTextConfig, unknown, z.core.$ZodTypeInternals<OpenResponsesFormatTextConfig, unknown>>;
|
|
24
24
|
/** @deprecated use `OpenResponsesFormatTextConfig$outboundSchema` instead. */
|
|
25
|
-
const outboundSchema: z.ZodType<OpenResponsesFormatTextConfig$Outbound, z.
|
|
25
|
+
const outboundSchema: z.ZodType<OpenResponsesFormatTextConfig$Outbound, OpenResponsesFormatTextConfig, z.core.$ZodTypeInternals<OpenResponsesFormatTextConfig$Outbound, OpenResponsesFormatTextConfig>>;
|
|
26
26
|
/** @deprecated use `OpenResponsesFormatTextConfig$Outbound` instead. */
|
|
27
27
|
type Outbound = OpenResponsesFormatTextConfig$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
|
import { OpenResponsesFormatJSONObject$inboundSchema, OpenResponsesFormatJSONObject$outboundSchema, } from "./openresponsesformatjsonobject.js";
|
|
7
7
|
import { OpenResponsesFormatJSONSchema$inboundSchema, OpenResponsesFormatJSONSchema$outboundSchema, } from "./openresponsesformatjsonschema.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as z from "zod/
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
2
|
import { ClosedEnum } from "../types/enums.js";
|
|
3
3
|
import { Result as SafeParseResult } from "../types/fp.js";
|
|
4
4
|
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
@@ -18,25 +18,25 @@ export type OpenResponsesFunctionCallOutput = {
|
|
|
18
18
|
status?: ToolCallStatus | undefined;
|
|
19
19
|
};
|
|
20
20
|
/** @internal */
|
|
21
|
-
export declare const OpenResponsesFunctionCallOutputType$inboundSchema: z.
|
|
21
|
+
export declare const OpenResponsesFunctionCallOutputType$inboundSchema: z.ZodEnum<typeof OpenResponsesFunctionCallOutputType>;
|
|
22
22
|
/** @internal */
|
|
23
|
-
export declare const OpenResponsesFunctionCallOutputType$outboundSchema: z.
|
|
23
|
+
export declare const OpenResponsesFunctionCallOutputType$outboundSchema: z.ZodEnum<typeof OpenResponsesFunctionCallOutputType>;
|
|
24
24
|
/**
|
|
25
25
|
* @internal
|
|
26
26
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
27
27
|
*/
|
|
28
28
|
export declare namespace OpenResponsesFunctionCallOutputType$ {
|
|
29
29
|
/** @deprecated use `OpenResponsesFunctionCallOutputType$inboundSchema` instead. */
|
|
30
|
-
const inboundSchema: z.
|
|
30
|
+
const inboundSchema: z.ZodEnum<{
|
|
31
31
|
readonly FunctionCallOutput: "function_call_output";
|
|
32
32
|
}>;
|
|
33
33
|
/** @deprecated use `OpenResponsesFunctionCallOutputType$outboundSchema` instead. */
|
|
34
|
-
const outboundSchema: z.
|
|
34
|
+
const outboundSchema: z.ZodEnum<{
|
|
35
35
|
readonly FunctionCallOutput: "function_call_output";
|
|
36
36
|
}>;
|
|
37
37
|
}
|
|
38
38
|
/** @internal */
|
|
39
|
-
export declare const OpenResponsesFunctionCallOutput$inboundSchema: z.ZodType<OpenResponsesFunctionCallOutput,
|
|
39
|
+
export declare const OpenResponsesFunctionCallOutput$inboundSchema: z.ZodType<OpenResponsesFunctionCallOutput, unknown>;
|
|
40
40
|
/** @internal */
|
|
41
41
|
export type OpenResponsesFunctionCallOutput$Outbound = {
|
|
42
42
|
type: string;
|
|
@@ -46,16 +46,16 @@ export type OpenResponsesFunctionCallOutput$Outbound = {
|
|
|
46
46
|
status?: string | undefined;
|
|
47
47
|
};
|
|
48
48
|
/** @internal */
|
|
49
|
-
export declare const OpenResponsesFunctionCallOutput$outboundSchema: z.ZodType<OpenResponsesFunctionCallOutput$Outbound,
|
|
49
|
+
export declare const OpenResponsesFunctionCallOutput$outboundSchema: z.ZodType<OpenResponsesFunctionCallOutput$Outbound, OpenResponsesFunctionCallOutput>;
|
|
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 OpenResponsesFunctionCallOutput$ {
|
|
55
55
|
/** @deprecated use `OpenResponsesFunctionCallOutput$inboundSchema` instead. */
|
|
56
|
-
const inboundSchema: z.ZodType<OpenResponsesFunctionCallOutput, z.
|
|
56
|
+
const inboundSchema: z.ZodType<OpenResponsesFunctionCallOutput, unknown, z.core.$ZodTypeInternals<OpenResponsesFunctionCallOutput, unknown>>;
|
|
57
57
|
/** @deprecated use `OpenResponsesFunctionCallOutput$outboundSchema` instead. */
|
|
58
|
-
const outboundSchema: z.ZodType<OpenResponsesFunctionCallOutput$Outbound, z.
|
|
58
|
+
const outboundSchema: z.ZodType<OpenResponsesFunctionCallOutput$Outbound, OpenResponsesFunctionCallOutput, z.core.$ZodTypeInternals<OpenResponsesFunctionCallOutput$Outbound, OpenResponsesFunctionCallOutput>>;
|
|
59
59
|
/** @deprecated use `OpenResponsesFunctionCallOutput$Outbound` instead. */
|
|
60
60
|
type Outbound = OpenResponsesFunctionCallOutput$Outbound;
|
|
61
61
|
}
|
|
@@ -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 { ToolCallStatus$inboundSchema, ToolCallStatus$outboundSchema, } from "./toolcallstatus.js";
|
|
@@ -9,7 +9,7 @@ export const OpenResponsesFunctionCallOutputType = {
|
|
|
9
9
|
FunctionCallOutput: "function_call_output",
|
|
10
10
|
};
|
|
11
11
|
/** @internal */
|
|
12
|
-
export const OpenResponsesFunctionCallOutputType$inboundSchema = z.
|
|
12
|
+
export const OpenResponsesFunctionCallOutputType$inboundSchema = z.enum(OpenResponsesFunctionCallOutputType);
|
|
13
13
|
/** @internal */
|
|
14
14
|
export const OpenResponsesFunctionCallOutputType$outboundSchema = OpenResponsesFunctionCallOutputType$inboundSchema;
|
|
15
15
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as z from "zod/
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
2
|
import { ClosedEnum } from "../types/enums.js";
|
|
3
3
|
import { Result as SafeParseResult } from "../types/fp.js";
|
|
4
4
|
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
@@ -19,25 +19,25 @@ export type OpenResponsesFunctionToolCall = {
|
|
|
19
19
|
status?: ToolCallStatus | undefined;
|
|
20
20
|
};
|
|
21
21
|
/** @internal */
|
|
22
|
-
export declare const OpenResponsesFunctionToolCallType$inboundSchema: z.
|
|
22
|
+
export declare const OpenResponsesFunctionToolCallType$inboundSchema: z.ZodEnum<typeof OpenResponsesFunctionToolCallType>;
|
|
23
23
|
/** @internal */
|
|
24
|
-
export declare const OpenResponsesFunctionToolCallType$outboundSchema: z.
|
|
24
|
+
export declare const OpenResponsesFunctionToolCallType$outboundSchema: z.ZodEnum<typeof OpenResponsesFunctionToolCallType>;
|
|
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 OpenResponsesFunctionToolCallType$ {
|
|
30
30
|
/** @deprecated use `OpenResponsesFunctionToolCallType$inboundSchema` instead. */
|
|
31
|
-
const inboundSchema: z.
|
|
31
|
+
const inboundSchema: z.ZodEnum<{
|
|
32
32
|
readonly FunctionCall: "function_call";
|
|
33
33
|
}>;
|
|
34
34
|
/** @deprecated use `OpenResponsesFunctionToolCallType$outboundSchema` instead. */
|
|
35
|
-
const outboundSchema: z.
|
|
35
|
+
const outboundSchema: z.ZodEnum<{
|
|
36
36
|
readonly FunctionCall: "function_call";
|
|
37
37
|
}>;
|
|
38
38
|
}
|
|
39
39
|
/** @internal */
|
|
40
|
-
export declare const OpenResponsesFunctionToolCall$inboundSchema: z.ZodType<OpenResponsesFunctionToolCall,
|
|
40
|
+
export declare const OpenResponsesFunctionToolCall$inboundSchema: z.ZodType<OpenResponsesFunctionToolCall, unknown>;
|
|
41
41
|
/** @internal */
|
|
42
42
|
export type OpenResponsesFunctionToolCall$Outbound = {
|
|
43
43
|
type: string;
|
|
@@ -48,16 +48,16 @@ export type OpenResponsesFunctionToolCall$Outbound = {
|
|
|
48
48
|
status?: string | undefined;
|
|
49
49
|
};
|
|
50
50
|
/** @internal */
|
|
51
|
-
export declare const OpenResponsesFunctionToolCall$outboundSchema: z.ZodType<OpenResponsesFunctionToolCall$Outbound,
|
|
51
|
+
export declare const OpenResponsesFunctionToolCall$outboundSchema: z.ZodType<OpenResponsesFunctionToolCall$Outbound, OpenResponsesFunctionToolCall>;
|
|
52
52
|
/**
|
|
53
53
|
* @internal
|
|
54
54
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
55
55
|
*/
|
|
56
56
|
export declare namespace OpenResponsesFunctionToolCall$ {
|
|
57
57
|
/** @deprecated use `OpenResponsesFunctionToolCall$inboundSchema` instead. */
|
|
58
|
-
const inboundSchema: z.ZodType<OpenResponsesFunctionToolCall, z.
|
|
58
|
+
const inboundSchema: z.ZodType<OpenResponsesFunctionToolCall, unknown, z.core.$ZodTypeInternals<OpenResponsesFunctionToolCall, unknown>>;
|
|
59
59
|
/** @deprecated use `OpenResponsesFunctionToolCall$outboundSchema` instead. */
|
|
60
|
-
const outboundSchema: z.ZodType<OpenResponsesFunctionToolCall$Outbound, z.
|
|
60
|
+
const outboundSchema: z.ZodType<OpenResponsesFunctionToolCall$Outbound, OpenResponsesFunctionToolCall, z.core.$ZodTypeInternals<OpenResponsesFunctionToolCall$Outbound, OpenResponsesFunctionToolCall>>;
|
|
61
61
|
/** @deprecated use `OpenResponsesFunctionToolCall$Outbound` instead. */
|
|
62
62
|
type Outbound = OpenResponsesFunctionToolCall$Outbound;
|
|
63
63
|
}
|
|
@@ -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 { ToolCallStatus$inboundSchema, ToolCallStatus$outboundSchema, } from "./toolcallstatus.js";
|
|
@@ -9,7 +9,7 @@ export const OpenResponsesFunctionToolCallType = {
|
|
|
9
9
|
FunctionCall: "function_call",
|
|
10
10
|
};
|
|
11
11
|
/** @internal */
|
|
12
|
-
export const OpenResponsesFunctionToolCallType$inboundSchema = z.
|
|
12
|
+
export const OpenResponsesFunctionToolCallType$inboundSchema = z.enum(OpenResponsesFunctionToolCallType);
|
|
13
13
|
/** @internal */
|
|
14
14
|
export const OpenResponsesFunctionToolCallType$outboundSchema = OpenResponsesFunctionToolCallType$inboundSchema;
|
|
15
15
|
/**
|
|
@@ -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
|
import { OpenResponsesInputItem, OpenResponsesInputItem$Outbound } from "./openresponsesinputitem.js";
|
|
@@ -7,20 +7,20 @@ import { OpenResponsesInputItem, OpenResponsesInputItem$Outbound } from "./openr
|
|
|
7
7
|
*/
|
|
8
8
|
export type OpenResponsesInput = string | Array<OpenResponsesInputItem> | any;
|
|
9
9
|
/** @internal */
|
|
10
|
-
export declare const OpenResponsesInput$inboundSchema: z.ZodType<OpenResponsesInput,
|
|
10
|
+
export declare const OpenResponsesInput$inboundSchema: z.ZodType<OpenResponsesInput, unknown>;
|
|
11
11
|
/** @internal */
|
|
12
12
|
export type OpenResponsesInput$Outbound = string | Array<OpenResponsesInputItem$Outbound> | any;
|
|
13
13
|
/** @internal */
|
|
14
|
-
export declare const OpenResponsesInput$outboundSchema: z.ZodType<OpenResponsesInput$Outbound,
|
|
14
|
+
export declare const OpenResponsesInput$outboundSchema: z.ZodType<OpenResponsesInput$Outbound, OpenResponsesInput>;
|
|
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 OpenResponsesInput$ {
|
|
20
20
|
/** @deprecated use `OpenResponsesInput$inboundSchema` instead. */
|
|
21
|
-
const inboundSchema: z.ZodType<any, z.
|
|
21
|
+
const inboundSchema: z.ZodType<any, unknown, z.core.$ZodTypeInternals<any, unknown>>;
|
|
22
22
|
/** @deprecated use `OpenResponsesInput$outboundSchema` instead. */
|
|
23
|
-
const outboundSchema: z.ZodType<any, z.
|
|
23
|
+
const outboundSchema: z.ZodType<any, any, z.core.$ZodTypeInternals<any, any>>;
|
|
24
24
|
/** @deprecated use `OpenResponsesInput$Outbound` instead. */
|
|
25
25
|
type Outbound = OpenResponsesInput$Outbound;
|
|
26
26
|
}
|
|
@@ -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 { OpenResponsesInputItem$inboundSchema, OpenResponsesInputItem$outboundSchema, } from "./openresponsesinputitem.js";
|
|
7
7
|
/** @internal */
|
|
@@ -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
|
import { OpenResponsesInputFile, OpenResponsesInputFile$Outbound } from "./openresponsesinputfile.js";
|
|
@@ -15,7 +15,7 @@ export type OpenResponsesInputContent = (OpenResponsesInputText & {
|
|
|
15
15
|
type: "input_file";
|
|
16
16
|
});
|
|
17
17
|
/** @internal */
|
|
18
|
-
export declare const OpenResponsesInputContent$inboundSchema: z.ZodType<OpenResponsesInputContent,
|
|
18
|
+
export declare const OpenResponsesInputContent$inboundSchema: z.ZodType<OpenResponsesInputContent, unknown>;
|
|
19
19
|
/** @internal */
|
|
20
20
|
export type OpenResponsesInputContent$Outbound = (OpenResponsesInputText$Outbound & {
|
|
21
21
|
type: "input_text";
|
|
@@ -25,16 +25,16 @@ export type OpenResponsesInputContent$Outbound = (OpenResponsesInputText$Outboun
|
|
|
25
25
|
type: "input_file";
|
|
26
26
|
});
|
|
27
27
|
/** @internal */
|
|
28
|
-
export declare const OpenResponsesInputContent$outboundSchema: z.ZodType<OpenResponsesInputContent$Outbound,
|
|
28
|
+
export declare const OpenResponsesInputContent$outboundSchema: z.ZodType<OpenResponsesInputContent$Outbound, OpenResponsesInputContent>;
|
|
29
29
|
/**
|
|
30
30
|
* @internal
|
|
31
31
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
32
32
|
*/
|
|
33
33
|
export declare namespace OpenResponsesInputContent$ {
|
|
34
34
|
/** @deprecated use `OpenResponsesInputContent$inboundSchema` instead. */
|
|
35
|
-
const inboundSchema: z.ZodType<OpenResponsesInputContent, z.
|
|
35
|
+
const inboundSchema: z.ZodType<OpenResponsesInputContent, unknown, z.core.$ZodTypeInternals<OpenResponsesInputContent, unknown>>;
|
|
36
36
|
/** @deprecated use `OpenResponsesInputContent$outboundSchema` instead. */
|
|
37
|
-
const outboundSchema: z.ZodType<OpenResponsesInputContent$Outbound, z.
|
|
37
|
+
const outboundSchema: z.ZodType<OpenResponsesInputContent$Outbound, OpenResponsesInputContent, z.core.$ZodTypeInternals<OpenResponsesInputContent$Outbound, OpenResponsesInputContent>>;
|
|
38
38
|
/** @deprecated use `OpenResponsesInputContent$Outbound` instead. */
|
|
39
39
|
type Outbound = OpenResponsesInputContent$Outbound;
|
|
40
40
|
}
|
|
@@ -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 { OpenResponsesInputFile$inboundSchema, OpenResponsesInputFile$outboundSchema, } from "./openresponsesinputfile.js";
|
|
7
7
|
import { OpenResponsesInputImage$inboundSchema, OpenResponsesInputImage$outboundSchema, } from "./openresponsesinputimage.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as z from "zod/
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
2
|
import { ClosedEnum } from "../types/enums.js";
|
|
3
3
|
import { Result as SafeParseResult } from "../types/fp.js";
|
|
4
4
|
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
@@ -17,25 +17,25 @@ export type OpenResponsesInputFile = {
|
|
|
17
17
|
fileUrl?: string | undefined;
|
|
18
18
|
};
|
|
19
19
|
/** @internal */
|
|
20
|
-
export declare const OpenResponsesInputFileType$inboundSchema: z.
|
|
20
|
+
export declare const OpenResponsesInputFileType$inboundSchema: z.ZodEnum<typeof OpenResponsesInputFileType>;
|
|
21
21
|
/** @internal */
|
|
22
|
-
export declare const OpenResponsesInputFileType$outboundSchema: z.
|
|
22
|
+
export declare const OpenResponsesInputFileType$outboundSchema: z.ZodEnum<typeof OpenResponsesInputFileType>;
|
|
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 OpenResponsesInputFileType$ {
|
|
28
28
|
/** @deprecated use `OpenResponsesInputFileType$inboundSchema` instead. */
|
|
29
|
-
const inboundSchema: z.
|
|
29
|
+
const inboundSchema: z.ZodEnum<{
|
|
30
30
|
readonly InputFile: "input_file";
|
|
31
31
|
}>;
|
|
32
32
|
/** @deprecated use `OpenResponsesInputFileType$outboundSchema` instead. */
|
|
33
|
-
const outboundSchema: z.
|
|
33
|
+
const outboundSchema: z.ZodEnum<{
|
|
34
34
|
readonly InputFile: "input_file";
|
|
35
35
|
}>;
|
|
36
36
|
}
|
|
37
37
|
/** @internal */
|
|
38
|
-
export declare const OpenResponsesInputFile$inboundSchema: z.ZodType<OpenResponsesInputFile,
|
|
38
|
+
export declare const OpenResponsesInputFile$inboundSchema: z.ZodType<OpenResponsesInputFile, unknown>;
|
|
39
39
|
/** @internal */
|
|
40
40
|
export type OpenResponsesInputFile$Outbound = {
|
|
41
41
|
type: string;
|
|
@@ -45,16 +45,16 @@ export type OpenResponsesInputFile$Outbound = {
|
|
|
45
45
|
file_url?: string | undefined;
|
|
46
46
|
};
|
|
47
47
|
/** @internal */
|
|
48
|
-
export declare const OpenResponsesInputFile$outboundSchema: z.ZodType<OpenResponsesInputFile$Outbound,
|
|
48
|
+
export declare const OpenResponsesInputFile$outboundSchema: z.ZodType<OpenResponsesInputFile$Outbound, OpenResponsesInputFile>;
|
|
49
49
|
/**
|
|
50
50
|
* @internal
|
|
51
51
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
52
52
|
*/
|
|
53
53
|
export declare namespace OpenResponsesInputFile$ {
|
|
54
54
|
/** @deprecated use `OpenResponsesInputFile$inboundSchema` instead. */
|
|
55
|
-
const inboundSchema: z.ZodType<OpenResponsesInputFile, z.
|
|
55
|
+
const inboundSchema: z.ZodType<OpenResponsesInputFile, unknown, z.core.$ZodTypeInternals<OpenResponsesInputFile, unknown>>;
|
|
56
56
|
/** @deprecated use `OpenResponsesInputFile$outboundSchema` instead. */
|
|
57
|
-
const outboundSchema: z.ZodType<OpenResponsesInputFile$Outbound, z.
|
|
57
|
+
const outboundSchema: z.ZodType<OpenResponsesInputFile$Outbound, OpenResponsesInputFile, z.core.$ZodTypeInternals<OpenResponsesInputFile$Outbound, OpenResponsesInputFile>>;
|
|
58
58
|
/** @deprecated use `OpenResponsesInputFile$Outbound` instead. */
|
|
59
59
|
type Outbound = OpenResponsesInputFile$Outbound;
|
|
60
60
|
}
|
|
@@ -1,14 +1,14 @@
|
|
|
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
|
export const OpenResponsesInputFileType = {
|
|
8
8
|
InputFile: "input_file",
|
|
9
9
|
};
|
|
10
10
|
/** @internal */
|
|
11
|
-
export const OpenResponsesInputFileType$inboundSchema = z.
|
|
11
|
+
export const OpenResponsesInputFileType$inboundSchema = z.enum(OpenResponsesInputFileType);
|
|
12
12
|
/** @internal */
|
|
13
13
|
export const OpenResponsesInputFileType$outboundSchema = OpenResponsesInputFileType$inboundSchema;
|
|
14
14
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as z from "zod/
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
2
|
import { ClosedEnum, OpenEnum } from "../types/enums.js";
|
|
3
3
|
import { Result as SafeParseResult } from "../types/fp.js";
|
|
4
4
|
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
@@ -21,39 +21,39 @@ export type OpenResponsesInputImage = {
|
|
|
21
21
|
imageUrl?: string | null | undefined;
|
|
22
22
|
};
|
|
23
23
|
/** @internal */
|
|
24
|
-
export declare const OpenResponsesInputImageType$inboundSchema: z.
|
|
24
|
+
export declare const OpenResponsesInputImageType$inboundSchema: z.ZodEnum<typeof OpenResponsesInputImageType>;
|
|
25
25
|
/** @internal */
|
|
26
|
-
export declare const OpenResponsesInputImageType$outboundSchema: z.
|
|
26
|
+
export declare const OpenResponsesInputImageType$outboundSchema: z.ZodEnum<typeof OpenResponsesInputImageType>;
|
|
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 OpenResponsesInputImageType$ {
|
|
32
32
|
/** @deprecated use `OpenResponsesInputImageType$inboundSchema` instead. */
|
|
33
|
-
const inboundSchema: z.
|
|
33
|
+
const inboundSchema: z.ZodEnum<{
|
|
34
34
|
readonly InputImage: "input_image";
|
|
35
35
|
}>;
|
|
36
36
|
/** @deprecated use `OpenResponsesInputImageType$outboundSchema` instead. */
|
|
37
|
-
const outboundSchema: z.
|
|
37
|
+
const outboundSchema: z.ZodEnum<{
|
|
38
38
|
readonly InputImage: "input_image";
|
|
39
39
|
}>;
|
|
40
40
|
}
|
|
41
41
|
/** @internal */
|
|
42
|
-
export declare const OpenResponsesInputImageDetail$inboundSchema: z.ZodType<OpenResponsesInputImageDetail,
|
|
42
|
+
export declare const OpenResponsesInputImageDetail$inboundSchema: z.ZodType<OpenResponsesInputImageDetail, unknown>;
|
|
43
43
|
/** @internal */
|
|
44
|
-
export declare const OpenResponsesInputImageDetail$outboundSchema: z.ZodType<OpenResponsesInputImageDetail,
|
|
44
|
+
export declare const OpenResponsesInputImageDetail$outboundSchema: z.ZodType<OpenResponsesInputImageDetail, OpenResponsesInputImageDetail>;
|
|
45
45
|
/**
|
|
46
46
|
* @internal
|
|
47
47
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
48
48
|
*/
|
|
49
49
|
export declare namespace OpenResponsesInputImageDetail$ {
|
|
50
50
|
/** @deprecated use `OpenResponsesInputImageDetail$inboundSchema` instead. */
|
|
51
|
-
const inboundSchema: z.ZodType<OpenResponsesInputImageDetail, z.
|
|
51
|
+
const inboundSchema: z.ZodType<OpenResponsesInputImageDetail, unknown, z.core.$ZodTypeInternals<OpenResponsesInputImageDetail, unknown>>;
|
|
52
52
|
/** @deprecated use `OpenResponsesInputImageDetail$outboundSchema` instead. */
|
|
53
|
-
const outboundSchema: z.ZodType<OpenResponsesInputImageDetail, z.
|
|
53
|
+
const outboundSchema: z.ZodType<OpenResponsesInputImageDetail, OpenResponsesInputImageDetail, z.core.$ZodTypeInternals<OpenResponsesInputImageDetail, OpenResponsesInputImageDetail>>;
|
|
54
54
|
}
|
|
55
55
|
/** @internal */
|
|
56
|
-
export declare const OpenResponsesInputImage$inboundSchema: z.ZodType<OpenResponsesInputImage,
|
|
56
|
+
export declare const OpenResponsesInputImage$inboundSchema: z.ZodType<OpenResponsesInputImage, unknown>;
|
|
57
57
|
/** @internal */
|
|
58
58
|
export type OpenResponsesInputImage$Outbound = {
|
|
59
59
|
type: string;
|
|
@@ -61,16 +61,16 @@ export type OpenResponsesInputImage$Outbound = {
|
|
|
61
61
|
image_url?: string | null | undefined;
|
|
62
62
|
};
|
|
63
63
|
/** @internal */
|
|
64
|
-
export declare const OpenResponsesInputImage$outboundSchema: z.ZodType<OpenResponsesInputImage$Outbound,
|
|
64
|
+
export declare const OpenResponsesInputImage$outboundSchema: z.ZodType<OpenResponsesInputImage$Outbound, OpenResponsesInputImage>;
|
|
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 OpenResponsesInputImage$ {
|
|
70
70
|
/** @deprecated use `OpenResponsesInputImage$inboundSchema` instead. */
|
|
71
|
-
const inboundSchema: z.ZodType<OpenResponsesInputImage, z.
|
|
71
|
+
const inboundSchema: z.ZodType<OpenResponsesInputImage, unknown, z.core.$ZodTypeInternals<OpenResponsesInputImage, unknown>>;
|
|
72
72
|
/** @deprecated use `OpenResponsesInputImage$outboundSchema` instead. */
|
|
73
|
-
const outboundSchema: z.ZodType<OpenResponsesInputImage$Outbound, z.
|
|
73
|
+
const outboundSchema: z.ZodType<OpenResponsesInputImage$Outbound, OpenResponsesInputImage, z.core.$ZodTypeInternals<OpenResponsesInputImage$Outbound, OpenResponsesInputImage>>;
|
|
74
74
|
/** @deprecated use `OpenResponsesInputImage$Outbound` instead. */
|
|
75
75
|
type Outbound = OpenResponsesInputImage$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";
|
|
@@ -14,7 +14,7 @@ export const OpenResponsesInputImageDetail = {
|
|
|
14
14
|
Low: "low",
|
|
15
15
|
};
|
|
16
16
|
/** @internal */
|
|
17
|
-
export const OpenResponsesInputImageType$inboundSchema = z.
|
|
17
|
+
export const OpenResponsesInputImageType$inboundSchema = z.enum(OpenResponsesInputImageType);
|
|
18
18
|
/** @internal */
|
|
19
19
|
export const OpenResponsesInputImageType$outboundSchema = OpenResponsesInputImageType$inboundSchema;
|
|
20
20
|
/**
|
|
@@ -31,12 +31,12 @@ export var OpenResponsesInputImageType$;
|
|
|
31
31
|
/** @internal */
|
|
32
32
|
export const OpenResponsesInputImageDetail$inboundSchema = z
|
|
33
33
|
.union([
|
|
34
|
-
z.
|
|
34
|
+
z.enum(OpenResponsesInputImageDetail),
|
|
35
35
|
z.string().transform(catchUnrecognizedEnum),
|
|
36
36
|
]);
|
|
37
37
|
/** @internal */
|
|
38
38
|
export const OpenResponsesInputImageDetail$outboundSchema = z.union([
|
|
39
|
-
z.
|
|
39
|
+
z.enum(OpenResponsesInputImageDetail),
|
|
40
40
|
z.string().and(z.custom()),
|
|
41
41
|
]);
|
|
42
42
|
/**
|