@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,85 +1,35 @@
|
|
|
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 { ResponsesSearchContextSize$inboundSchema, ResponsesSearchContextSize$outboundSchema, } from "./responsessearchcontextsize.js";
|
|
8
|
-
|
|
8
|
+
import { WebSearchPreviewToolUserLocation$inboundSchema, WebSearchPreviewToolUserLocation$outboundSchema, } from "./websearchpreviewtooluserlocation.js";
|
|
9
|
+
export const OpenResponsesWebSearchPreviewToolType = {
|
|
9
10
|
WebSearchPreview: "web_search_preview",
|
|
10
11
|
};
|
|
11
|
-
export const OpenResponsesWebSearchPreviewToolTypeApproximate = {
|
|
12
|
-
Approximate: "approximate",
|
|
13
|
-
};
|
|
14
12
|
/** @internal */
|
|
15
|
-
export const
|
|
13
|
+
export const OpenResponsesWebSearchPreviewToolType$inboundSchema = z.enum(OpenResponsesWebSearchPreviewToolType);
|
|
16
14
|
/** @internal */
|
|
17
|
-
export const
|
|
15
|
+
export const OpenResponsesWebSearchPreviewToolType$outboundSchema = OpenResponsesWebSearchPreviewToolType$inboundSchema;
|
|
18
16
|
/**
|
|
19
17
|
* @internal
|
|
20
18
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
21
19
|
*/
|
|
22
|
-
export var
|
|
23
|
-
(function (
|
|
24
|
-
/** @deprecated use `
|
|
25
|
-
|
|
26
|
-
/** @deprecated use `
|
|
27
|
-
|
|
28
|
-
})(
|
|
29
|
-
/** @internal */
|
|
30
|
-
export const OpenResponsesWebSearchPreviewToolTypeApproximate$inboundSchema = z
|
|
31
|
-
.nativeEnum(OpenResponsesWebSearchPreviewToolTypeApproximate);
|
|
32
|
-
/** @internal */
|
|
33
|
-
export const OpenResponsesWebSearchPreviewToolTypeApproximate$outboundSchema = OpenResponsesWebSearchPreviewToolTypeApproximate$inboundSchema;
|
|
34
|
-
/**
|
|
35
|
-
* @internal
|
|
36
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
37
|
-
*/
|
|
38
|
-
export var OpenResponsesWebSearchPreviewToolTypeApproximate$;
|
|
39
|
-
(function (OpenResponsesWebSearchPreviewToolTypeApproximate$) {
|
|
40
|
-
/** @deprecated use `OpenResponsesWebSearchPreviewToolTypeApproximate$inboundSchema` instead. */
|
|
41
|
-
OpenResponsesWebSearchPreviewToolTypeApproximate$.inboundSchema = OpenResponsesWebSearchPreviewToolTypeApproximate$inboundSchema;
|
|
42
|
-
/** @deprecated use `OpenResponsesWebSearchPreviewToolTypeApproximate$outboundSchema` instead. */
|
|
43
|
-
OpenResponsesWebSearchPreviewToolTypeApproximate$.outboundSchema = OpenResponsesWebSearchPreviewToolTypeApproximate$outboundSchema;
|
|
44
|
-
})(OpenResponsesWebSearchPreviewToolTypeApproximate$ || (OpenResponsesWebSearchPreviewToolTypeApproximate$ = {}));
|
|
45
|
-
/** @internal */
|
|
46
|
-
export const OpenResponsesWebSearchPreviewToolUserLocation$inboundSchema = z.object({
|
|
47
|
-
type: OpenResponsesWebSearchPreviewToolTypeApproximate$inboundSchema,
|
|
48
|
-
city: z.nullable(z.string()).optional(),
|
|
49
|
-
country: z.nullable(z.string()).optional(),
|
|
50
|
-
region: z.nullable(z.string()).optional(),
|
|
51
|
-
timezone: z.nullable(z.string()).optional(),
|
|
52
|
-
});
|
|
53
|
-
/** @internal */
|
|
54
|
-
export const OpenResponsesWebSearchPreviewToolUserLocation$outboundSchema = z.object({
|
|
55
|
-
type: OpenResponsesWebSearchPreviewToolTypeApproximate$outboundSchema,
|
|
56
|
-
city: z.nullable(z.string()).optional(),
|
|
57
|
-
country: z.nullable(z.string()).optional(),
|
|
58
|
-
region: z.nullable(z.string()).optional(),
|
|
59
|
-
timezone: z.nullable(z.string()).optional(),
|
|
60
|
-
});
|
|
61
|
-
/**
|
|
62
|
-
* @internal
|
|
63
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
64
|
-
*/
|
|
65
|
-
export var OpenResponsesWebSearchPreviewToolUserLocation$;
|
|
66
|
-
(function (OpenResponsesWebSearchPreviewToolUserLocation$) {
|
|
67
|
-
/** @deprecated use `OpenResponsesWebSearchPreviewToolUserLocation$inboundSchema` instead. */
|
|
68
|
-
OpenResponsesWebSearchPreviewToolUserLocation$.inboundSchema = OpenResponsesWebSearchPreviewToolUserLocation$inboundSchema;
|
|
69
|
-
/** @deprecated use `OpenResponsesWebSearchPreviewToolUserLocation$outboundSchema` instead. */
|
|
70
|
-
OpenResponsesWebSearchPreviewToolUserLocation$.outboundSchema = OpenResponsesWebSearchPreviewToolUserLocation$outboundSchema;
|
|
71
|
-
})(OpenResponsesWebSearchPreviewToolUserLocation$ || (OpenResponsesWebSearchPreviewToolUserLocation$ = {}));
|
|
72
|
-
export function openResponsesWebSearchPreviewToolUserLocationToJSON(openResponsesWebSearchPreviewToolUserLocation) {
|
|
73
|
-
return JSON.stringify(OpenResponsesWebSearchPreviewToolUserLocation$outboundSchema.parse(openResponsesWebSearchPreviewToolUserLocation));
|
|
74
|
-
}
|
|
75
|
-
export function openResponsesWebSearchPreviewToolUserLocationFromJSON(jsonString) {
|
|
76
|
-
return safeParse(jsonString, (x) => OpenResponsesWebSearchPreviewToolUserLocation$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OpenResponsesWebSearchPreviewToolUserLocation' from JSON`);
|
|
77
|
-
}
|
|
20
|
+
export var OpenResponsesWebSearchPreviewToolType$;
|
|
21
|
+
(function (OpenResponsesWebSearchPreviewToolType$) {
|
|
22
|
+
/** @deprecated use `OpenResponsesWebSearchPreviewToolType$inboundSchema` instead. */
|
|
23
|
+
OpenResponsesWebSearchPreviewToolType$.inboundSchema = OpenResponsesWebSearchPreviewToolType$inboundSchema;
|
|
24
|
+
/** @deprecated use `OpenResponsesWebSearchPreviewToolType$outboundSchema` instead. */
|
|
25
|
+
OpenResponsesWebSearchPreviewToolType$.outboundSchema = OpenResponsesWebSearchPreviewToolType$outboundSchema;
|
|
26
|
+
})(OpenResponsesWebSearchPreviewToolType$ || (OpenResponsesWebSearchPreviewToolType$ = {}));
|
|
78
27
|
/** @internal */
|
|
79
28
|
export const OpenResponsesWebSearchPreviewTool$inboundSchema = z.object({
|
|
80
|
-
type:
|
|
29
|
+
type: OpenResponsesWebSearchPreviewToolType$inboundSchema,
|
|
81
30
|
search_context_size: ResponsesSearchContextSize$inboundSchema.optional(),
|
|
82
|
-
user_location: z.nullable(
|
|
31
|
+
user_location: z.nullable(WebSearchPreviewToolUserLocation$inboundSchema)
|
|
32
|
+
.optional(),
|
|
83
33
|
}).transform((v) => {
|
|
84
34
|
return remap$(v, {
|
|
85
35
|
"search_context_size": "searchContextSize",
|
|
@@ -88,9 +38,10 @@ export const OpenResponsesWebSearchPreviewTool$inboundSchema = z.object({
|
|
|
88
38
|
});
|
|
89
39
|
/** @internal */
|
|
90
40
|
export const OpenResponsesWebSearchPreviewTool$outboundSchema = z.object({
|
|
91
|
-
type:
|
|
41
|
+
type: OpenResponsesWebSearchPreviewToolType$outboundSchema,
|
|
92
42
|
searchContextSize: ResponsesSearchContextSize$outboundSchema.optional(),
|
|
93
|
-
userLocation: z.nullable(
|
|
43
|
+
userLocation: z.nullable(WebSearchPreviewToolUserLocation$outboundSchema)
|
|
44
|
+
.optional(),
|
|
94
45
|
}).transform((v) => {
|
|
95
46
|
return remap$(v, {
|
|
96
47
|
searchContextSize: "search_context_size",
|
|
@@ -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";
|
|
@@ -27,47 +27,47 @@ export type OpenResponsesWebSearchTool = {
|
|
|
27
27
|
userLocation?: ResponsesWebSearchUserLocation | null | undefined;
|
|
28
28
|
};
|
|
29
29
|
/** @internal */
|
|
30
|
-
export declare const OpenResponsesWebSearchToolType$inboundSchema: z.
|
|
30
|
+
export declare const OpenResponsesWebSearchToolType$inboundSchema: z.ZodEnum<typeof OpenResponsesWebSearchToolType>;
|
|
31
31
|
/** @internal */
|
|
32
|
-
export declare const OpenResponsesWebSearchToolType$outboundSchema: z.
|
|
32
|
+
export declare const OpenResponsesWebSearchToolType$outboundSchema: z.ZodEnum<typeof OpenResponsesWebSearchToolType>;
|
|
33
33
|
/**
|
|
34
34
|
* @internal
|
|
35
35
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
36
36
|
*/
|
|
37
37
|
export declare namespace OpenResponsesWebSearchToolType$ {
|
|
38
38
|
/** @deprecated use `OpenResponsesWebSearchToolType$inboundSchema` instead. */
|
|
39
|
-
const inboundSchema: z.
|
|
39
|
+
const inboundSchema: z.ZodEnum<{
|
|
40
40
|
readonly WebSearch: "web_search";
|
|
41
41
|
}>;
|
|
42
42
|
/** @deprecated use `OpenResponsesWebSearchToolType$outboundSchema` instead. */
|
|
43
|
-
const outboundSchema: z.
|
|
43
|
+
const outboundSchema: z.ZodEnum<{
|
|
44
44
|
readonly WebSearch: "web_search";
|
|
45
45
|
}>;
|
|
46
46
|
}
|
|
47
47
|
/** @internal */
|
|
48
|
-
export declare const OpenResponsesWebSearchToolFilters$inboundSchema: z.ZodType<OpenResponsesWebSearchToolFilters,
|
|
48
|
+
export declare const OpenResponsesWebSearchToolFilters$inboundSchema: z.ZodType<OpenResponsesWebSearchToolFilters, unknown>;
|
|
49
49
|
/** @internal */
|
|
50
50
|
export type OpenResponsesWebSearchToolFilters$Outbound = {
|
|
51
51
|
allowed_domains?: Array<string> | null | undefined;
|
|
52
52
|
};
|
|
53
53
|
/** @internal */
|
|
54
|
-
export declare const OpenResponsesWebSearchToolFilters$outboundSchema: z.ZodType<OpenResponsesWebSearchToolFilters$Outbound,
|
|
54
|
+
export declare const OpenResponsesWebSearchToolFilters$outboundSchema: z.ZodType<OpenResponsesWebSearchToolFilters$Outbound, OpenResponsesWebSearchToolFilters>;
|
|
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 OpenResponsesWebSearchToolFilters$ {
|
|
60
60
|
/** @deprecated use `OpenResponsesWebSearchToolFilters$inboundSchema` instead. */
|
|
61
|
-
const inboundSchema: z.ZodType<OpenResponsesWebSearchToolFilters, z.
|
|
61
|
+
const inboundSchema: z.ZodType<OpenResponsesWebSearchToolFilters, unknown, z.core.$ZodTypeInternals<OpenResponsesWebSearchToolFilters, unknown>>;
|
|
62
62
|
/** @deprecated use `OpenResponsesWebSearchToolFilters$outboundSchema` instead. */
|
|
63
|
-
const outboundSchema: z.ZodType<OpenResponsesWebSearchToolFilters$Outbound, z.
|
|
63
|
+
const outboundSchema: z.ZodType<OpenResponsesWebSearchToolFilters$Outbound, OpenResponsesWebSearchToolFilters, z.core.$ZodTypeInternals<OpenResponsesWebSearchToolFilters$Outbound, OpenResponsesWebSearchToolFilters>>;
|
|
64
64
|
/** @deprecated use `OpenResponsesWebSearchToolFilters$Outbound` instead. */
|
|
65
65
|
type Outbound = OpenResponsesWebSearchToolFilters$Outbound;
|
|
66
66
|
}
|
|
67
67
|
export declare function openResponsesWebSearchToolFiltersToJSON(openResponsesWebSearchToolFilters: OpenResponsesWebSearchToolFilters): string;
|
|
68
68
|
export declare function openResponsesWebSearchToolFiltersFromJSON(jsonString: string): SafeParseResult<OpenResponsesWebSearchToolFilters, SDKValidationError>;
|
|
69
69
|
/** @internal */
|
|
70
|
-
export declare const OpenResponsesWebSearchTool$inboundSchema: z.ZodType<OpenResponsesWebSearchTool,
|
|
70
|
+
export declare const OpenResponsesWebSearchTool$inboundSchema: z.ZodType<OpenResponsesWebSearchTool, unknown>;
|
|
71
71
|
/** @internal */
|
|
72
72
|
export type OpenResponsesWebSearchTool$Outbound = {
|
|
73
73
|
type: string;
|
|
@@ -76,16 +76,16 @@ export type OpenResponsesWebSearchTool$Outbound = {
|
|
|
76
76
|
user_location?: ResponsesWebSearchUserLocation$Outbound | null | undefined;
|
|
77
77
|
};
|
|
78
78
|
/** @internal */
|
|
79
|
-
export declare const OpenResponsesWebSearchTool$outboundSchema: z.ZodType<OpenResponsesWebSearchTool$Outbound,
|
|
79
|
+
export declare const OpenResponsesWebSearchTool$outboundSchema: z.ZodType<OpenResponsesWebSearchTool$Outbound, OpenResponsesWebSearchTool>;
|
|
80
80
|
/**
|
|
81
81
|
* @internal
|
|
82
82
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
83
83
|
*/
|
|
84
84
|
export declare namespace OpenResponsesWebSearchTool$ {
|
|
85
85
|
/** @deprecated use `OpenResponsesWebSearchTool$inboundSchema` instead. */
|
|
86
|
-
const inboundSchema: z.ZodType<OpenResponsesWebSearchTool, z.
|
|
86
|
+
const inboundSchema: z.ZodType<OpenResponsesWebSearchTool, unknown, z.core.$ZodTypeInternals<OpenResponsesWebSearchTool, unknown>>;
|
|
87
87
|
/** @deprecated use `OpenResponsesWebSearchTool$outboundSchema` instead. */
|
|
88
|
-
const outboundSchema: z.ZodType<OpenResponsesWebSearchTool$Outbound, z.
|
|
88
|
+
const outboundSchema: z.ZodType<OpenResponsesWebSearchTool$Outbound, OpenResponsesWebSearchTool, z.core.$ZodTypeInternals<OpenResponsesWebSearchTool$Outbound, OpenResponsesWebSearchTool>>;
|
|
89
89
|
/** @deprecated use `OpenResponsesWebSearchTool$Outbound` instead. */
|
|
90
90
|
type Outbound = OpenResponsesWebSearchTool$Outbound;
|
|
91
91
|
}
|
|
@@ -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 { ResponsesSearchContextSize$inboundSchema, ResponsesSearchContextSize$outboundSchema, } from "./responsessearchcontextsize.js";
|
|
@@ -10,7 +10,7 @@ export const OpenResponsesWebSearchToolType = {
|
|
|
10
10
|
WebSearch: "web_search",
|
|
11
11
|
};
|
|
12
12
|
/** @internal */
|
|
13
|
-
export const OpenResponsesWebSearchToolType$inboundSchema = z.
|
|
13
|
+
export const OpenResponsesWebSearchToolType$inboundSchema = z.enum(OpenResponsesWebSearchToolType);
|
|
14
14
|
/** @internal */
|
|
15
15
|
export const OpenResponsesWebSearchToolType$outboundSchema = OpenResponsesWebSearchToolType$inboundSchema;
|
|
16
16
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as z from "zod/
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
2
|
import { EventStream } from "../../lib/event-streams.js";
|
|
3
3
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
4
4
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
@@ -14,42 +14,42 @@ export type CreateApiAlphaResponsesResponseBody = {
|
|
|
14
14
|
};
|
|
15
15
|
export type CreateApiAlphaResponsesResponse = models.OpenResponsesNonStreamingResponse | models.ErrorResponse | EventStream<CreateApiAlphaResponsesResponseBody>;
|
|
16
16
|
/** @internal */
|
|
17
|
-
export declare const CreateApiAlphaResponsesResponseBody$inboundSchema: z.ZodType<CreateApiAlphaResponsesResponseBody,
|
|
17
|
+
export declare const CreateApiAlphaResponsesResponseBody$inboundSchema: z.ZodType<CreateApiAlphaResponsesResponseBody, unknown>;
|
|
18
18
|
/** @internal */
|
|
19
19
|
export type CreateApiAlphaResponsesResponseBody$Outbound = {
|
|
20
20
|
data: models.OpenResponsesStreamEvent$Outbound;
|
|
21
21
|
};
|
|
22
22
|
/** @internal */
|
|
23
|
-
export declare const CreateApiAlphaResponsesResponseBody$outboundSchema: z.ZodType<CreateApiAlphaResponsesResponseBody$Outbound,
|
|
23
|
+
export declare const CreateApiAlphaResponsesResponseBody$outboundSchema: z.ZodType<CreateApiAlphaResponsesResponseBody$Outbound, CreateApiAlphaResponsesResponseBody>;
|
|
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 CreateApiAlphaResponsesResponseBody$ {
|
|
29
29
|
/** @deprecated use `CreateApiAlphaResponsesResponseBody$inboundSchema` instead. */
|
|
30
|
-
const inboundSchema: z.ZodType<CreateApiAlphaResponsesResponseBody, z.
|
|
30
|
+
const inboundSchema: z.ZodType<CreateApiAlphaResponsesResponseBody, unknown, z.core.$ZodTypeInternals<CreateApiAlphaResponsesResponseBody, unknown>>;
|
|
31
31
|
/** @deprecated use `CreateApiAlphaResponsesResponseBody$outboundSchema` instead. */
|
|
32
|
-
const outboundSchema: z.ZodType<CreateApiAlphaResponsesResponseBody$Outbound, z.
|
|
32
|
+
const outboundSchema: z.ZodType<CreateApiAlphaResponsesResponseBody$Outbound, CreateApiAlphaResponsesResponseBody, z.core.$ZodTypeInternals<CreateApiAlphaResponsesResponseBody$Outbound, CreateApiAlphaResponsesResponseBody>>;
|
|
33
33
|
/** @deprecated use `CreateApiAlphaResponsesResponseBody$Outbound` instead. */
|
|
34
34
|
type Outbound = CreateApiAlphaResponsesResponseBody$Outbound;
|
|
35
35
|
}
|
|
36
36
|
export declare function createApiAlphaResponsesResponseBodyToJSON(createApiAlphaResponsesResponseBody: CreateApiAlphaResponsesResponseBody): string;
|
|
37
37
|
export declare function createApiAlphaResponsesResponseBodyFromJSON(jsonString: string): SafeParseResult<CreateApiAlphaResponsesResponseBody, SDKValidationError>;
|
|
38
38
|
/** @internal */
|
|
39
|
-
export declare const CreateApiAlphaResponsesResponse$inboundSchema: z.ZodType<CreateApiAlphaResponsesResponse,
|
|
39
|
+
export declare const CreateApiAlphaResponsesResponse$inboundSchema: z.ZodType<CreateApiAlphaResponsesResponse, unknown>;
|
|
40
40
|
/** @internal */
|
|
41
41
|
export type CreateApiAlphaResponsesResponse$Outbound = models.OpenResponsesNonStreamingResponse$Outbound | models.ErrorResponse$Outbound | never;
|
|
42
42
|
/** @internal */
|
|
43
|
-
export declare const CreateApiAlphaResponsesResponse$outboundSchema: z.ZodType<CreateApiAlphaResponsesResponse$Outbound,
|
|
43
|
+
export declare const CreateApiAlphaResponsesResponse$outboundSchema: z.ZodType<CreateApiAlphaResponsesResponse$Outbound, CreateApiAlphaResponsesResponse>;
|
|
44
44
|
/**
|
|
45
45
|
* @internal
|
|
46
46
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
47
47
|
*/
|
|
48
48
|
export declare namespace CreateApiAlphaResponsesResponse$ {
|
|
49
49
|
/** @deprecated use `CreateApiAlphaResponsesResponse$inboundSchema` instead. */
|
|
50
|
-
const inboundSchema: z.ZodType<CreateApiAlphaResponsesResponse, z.
|
|
50
|
+
const inboundSchema: z.ZodType<CreateApiAlphaResponsesResponse, unknown, z.core.$ZodTypeInternals<CreateApiAlphaResponsesResponse, unknown>>;
|
|
51
51
|
/** @deprecated use `CreateApiAlphaResponsesResponse$outboundSchema` instead. */
|
|
52
|
-
const outboundSchema: z.ZodType<CreateApiAlphaResponsesResponse$Outbound, z.
|
|
52
|
+
const outboundSchema: z.ZodType<CreateApiAlphaResponsesResponse$Outbound, CreateApiAlphaResponsesResponse, z.core.$ZodTypeInternals<CreateApiAlphaResponsesResponse$Outbound, CreateApiAlphaResponsesResponse>>;
|
|
53
53
|
/** @deprecated use `CreateApiAlphaResponsesResponse$Outbound` instead. */
|
|
54
54
|
type Outbound = CreateApiAlphaResponsesResponse$Outbound;
|
|
55
55
|
}
|
|
@@ -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 { EventStream } from "../../lib/event-streams.js";
|
|
6
6
|
import { safeParse } from "../../lib/schemas.js";
|
|
7
7
|
import * as models from "../index.js";
|
|
@@ -45,8 +45,7 @@ export function createApiAlphaResponsesResponseBodyFromJSON(jsonString) {
|
|
|
45
45
|
export const CreateApiAlphaResponsesResponse$inboundSchema = z.union([
|
|
46
46
|
models.OpenResponsesNonStreamingResponse$inboundSchema,
|
|
47
47
|
models.ErrorResponse$inboundSchema,
|
|
48
|
-
z
|
|
49
|
-
.instanceof((ReadableStream))
|
|
48
|
+
z.custom(x => x instanceof ReadableStream)
|
|
50
49
|
.transform(stream => {
|
|
51
50
|
return new EventStream(stream, rawEvent => {
|
|
52
51
|
if (rawEvent.data === "[DONE]")
|
|
@@ -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 CreateCoinbaseChargeSecurity = {
|
|
@@ -41,29 +41,29 @@ export type CreateCoinbaseChargeResponse = {
|
|
|
41
41
|
data: CreateCoinbaseChargeData;
|
|
42
42
|
};
|
|
43
43
|
/** @internal */
|
|
44
|
-
export declare const CreateCoinbaseChargeSecurity$inboundSchema: z.ZodType<CreateCoinbaseChargeSecurity,
|
|
44
|
+
export declare const CreateCoinbaseChargeSecurity$inboundSchema: z.ZodType<CreateCoinbaseChargeSecurity, unknown>;
|
|
45
45
|
/** @internal */
|
|
46
46
|
export type CreateCoinbaseChargeSecurity$Outbound = {
|
|
47
47
|
bearer: string;
|
|
48
48
|
};
|
|
49
49
|
/** @internal */
|
|
50
|
-
export declare const CreateCoinbaseChargeSecurity$outboundSchema: z.ZodType<CreateCoinbaseChargeSecurity$Outbound,
|
|
50
|
+
export declare const CreateCoinbaseChargeSecurity$outboundSchema: z.ZodType<CreateCoinbaseChargeSecurity$Outbound, CreateCoinbaseChargeSecurity>;
|
|
51
51
|
/**
|
|
52
52
|
* @internal
|
|
53
53
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
54
54
|
*/
|
|
55
55
|
export declare namespace CreateCoinbaseChargeSecurity$ {
|
|
56
56
|
/** @deprecated use `CreateCoinbaseChargeSecurity$inboundSchema` instead. */
|
|
57
|
-
const inboundSchema: z.ZodType<CreateCoinbaseChargeSecurity, z.
|
|
57
|
+
const inboundSchema: z.ZodType<CreateCoinbaseChargeSecurity, unknown, z.core.$ZodTypeInternals<CreateCoinbaseChargeSecurity, unknown>>;
|
|
58
58
|
/** @deprecated use `CreateCoinbaseChargeSecurity$outboundSchema` instead. */
|
|
59
|
-
const outboundSchema: z.ZodType<CreateCoinbaseChargeSecurity$Outbound, z.
|
|
59
|
+
const outboundSchema: z.ZodType<CreateCoinbaseChargeSecurity$Outbound, CreateCoinbaseChargeSecurity, z.core.$ZodTypeInternals<CreateCoinbaseChargeSecurity$Outbound, CreateCoinbaseChargeSecurity>>;
|
|
60
60
|
/** @deprecated use `CreateCoinbaseChargeSecurity$Outbound` instead. */
|
|
61
61
|
type Outbound = CreateCoinbaseChargeSecurity$Outbound;
|
|
62
62
|
}
|
|
63
63
|
export declare function createCoinbaseChargeSecurityToJSON(createCoinbaseChargeSecurity: CreateCoinbaseChargeSecurity): string;
|
|
64
64
|
export declare function createCoinbaseChargeSecurityFromJSON(jsonString: string): SafeParseResult<CreateCoinbaseChargeSecurity, SDKValidationError>;
|
|
65
65
|
/** @internal */
|
|
66
|
-
export declare const CallData$inboundSchema: z.ZodType<CallData,
|
|
66
|
+
export declare const CallData$inboundSchema: z.ZodType<CallData, unknown>;
|
|
67
67
|
/** @internal */
|
|
68
68
|
export type CallData$Outbound = {
|
|
69
69
|
deadline: string;
|
|
@@ -78,23 +78,23 @@ export type CallData$Outbound = {
|
|
|
78
78
|
signature: string;
|
|
79
79
|
};
|
|
80
80
|
/** @internal */
|
|
81
|
-
export declare const CallData$outboundSchema: z.ZodType<CallData$Outbound,
|
|
81
|
+
export declare const CallData$outboundSchema: z.ZodType<CallData$Outbound, CallData>;
|
|
82
82
|
/**
|
|
83
83
|
* @internal
|
|
84
84
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
85
85
|
*/
|
|
86
86
|
export declare namespace CallData$ {
|
|
87
87
|
/** @deprecated use `CallData$inboundSchema` instead. */
|
|
88
|
-
const inboundSchema: z.ZodType<CallData, z.
|
|
88
|
+
const inboundSchema: z.ZodType<CallData, unknown, z.core.$ZodTypeInternals<CallData, unknown>>;
|
|
89
89
|
/** @deprecated use `CallData$outboundSchema` instead. */
|
|
90
|
-
const outboundSchema: z.ZodType<CallData$Outbound, z.
|
|
90
|
+
const outboundSchema: z.ZodType<CallData$Outbound, CallData, z.core.$ZodTypeInternals<CallData$Outbound, CallData>>;
|
|
91
91
|
/** @deprecated use `CallData$Outbound` instead. */
|
|
92
92
|
type Outbound = CallData$Outbound;
|
|
93
93
|
}
|
|
94
94
|
export declare function callDataToJSON(callData: CallData): string;
|
|
95
95
|
export declare function callDataFromJSON(jsonString: string): SafeParseResult<CallData, SDKValidationError>;
|
|
96
96
|
/** @internal */
|
|
97
|
-
export declare const Metadata$inboundSchema: z.ZodType<Metadata,
|
|
97
|
+
export declare const Metadata$inboundSchema: z.ZodType<Metadata, unknown>;
|
|
98
98
|
/** @internal */
|
|
99
99
|
export type Metadata$Outbound = {
|
|
100
100
|
chain_id: number;
|
|
@@ -102,68 +102,68 @@ export type Metadata$Outbound = {
|
|
|
102
102
|
sender: string;
|
|
103
103
|
};
|
|
104
104
|
/** @internal */
|
|
105
|
-
export declare const Metadata$outboundSchema: z.ZodType<Metadata$Outbound,
|
|
105
|
+
export declare const Metadata$outboundSchema: z.ZodType<Metadata$Outbound, Metadata>;
|
|
106
106
|
/**
|
|
107
107
|
* @internal
|
|
108
108
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
109
109
|
*/
|
|
110
110
|
export declare namespace Metadata$ {
|
|
111
111
|
/** @deprecated use `Metadata$inboundSchema` instead. */
|
|
112
|
-
const inboundSchema: z.ZodType<Metadata, z.
|
|
112
|
+
const inboundSchema: z.ZodType<Metadata, unknown, z.core.$ZodTypeInternals<Metadata, unknown>>;
|
|
113
113
|
/** @deprecated use `Metadata$outboundSchema` instead. */
|
|
114
|
-
const outboundSchema: z.ZodType<Metadata$Outbound, z.
|
|
114
|
+
const outboundSchema: z.ZodType<Metadata$Outbound, Metadata, z.core.$ZodTypeInternals<Metadata$Outbound, Metadata>>;
|
|
115
115
|
/** @deprecated use `Metadata$Outbound` instead. */
|
|
116
116
|
type Outbound = Metadata$Outbound;
|
|
117
117
|
}
|
|
118
118
|
export declare function metadataToJSON(metadata: Metadata): string;
|
|
119
119
|
export declare function metadataFromJSON(jsonString: string): SafeParseResult<Metadata, SDKValidationError>;
|
|
120
120
|
/** @internal */
|
|
121
|
-
export declare const TransferIntent$inboundSchema: z.ZodType<TransferIntent,
|
|
121
|
+
export declare const TransferIntent$inboundSchema: z.ZodType<TransferIntent, unknown>;
|
|
122
122
|
/** @internal */
|
|
123
123
|
export type TransferIntent$Outbound = {
|
|
124
124
|
call_data: CallData$Outbound;
|
|
125
125
|
metadata: Metadata$Outbound;
|
|
126
126
|
};
|
|
127
127
|
/** @internal */
|
|
128
|
-
export declare const TransferIntent$outboundSchema: z.ZodType<TransferIntent$Outbound,
|
|
128
|
+
export declare const TransferIntent$outboundSchema: z.ZodType<TransferIntent$Outbound, TransferIntent>;
|
|
129
129
|
/**
|
|
130
130
|
* @internal
|
|
131
131
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
132
132
|
*/
|
|
133
133
|
export declare namespace TransferIntent$ {
|
|
134
134
|
/** @deprecated use `TransferIntent$inboundSchema` instead. */
|
|
135
|
-
const inboundSchema: z.ZodType<TransferIntent, z.
|
|
135
|
+
const inboundSchema: z.ZodType<TransferIntent, unknown, z.core.$ZodTypeInternals<TransferIntent, unknown>>;
|
|
136
136
|
/** @deprecated use `TransferIntent$outboundSchema` instead. */
|
|
137
|
-
const outboundSchema: z.ZodType<TransferIntent$Outbound, z.
|
|
137
|
+
const outboundSchema: z.ZodType<TransferIntent$Outbound, TransferIntent, z.core.$ZodTypeInternals<TransferIntent$Outbound, TransferIntent>>;
|
|
138
138
|
/** @deprecated use `TransferIntent$Outbound` instead. */
|
|
139
139
|
type Outbound = TransferIntent$Outbound;
|
|
140
140
|
}
|
|
141
141
|
export declare function transferIntentToJSON(transferIntent: TransferIntent): string;
|
|
142
142
|
export declare function transferIntentFromJSON(jsonString: string): SafeParseResult<TransferIntent, SDKValidationError>;
|
|
143
143
|
/** @internal */
|
|
144
|
-
export declare const Web3Data$inboundSchema: z.ZodType<Web3Data,
|
|
144
|
+
export declare const Web3Data$inboundSchema: z.ZodType<Web3Data, unknown>;
|
|
145
145
|
/** @internal */
|
|
146
146
|
export type Web3Data$Outbound = {
|
|
147
147
|
transfer_intent: TransferIntent$Outbound;
|
|
148
148
|
};
|
|
149
149
|
/** @internal */
|
|
150
|
-
export declare const Web3Data$outboundSchema: z.ZodType<Web3Data$Outbound,
|
|
150
|
+
export declare const Web3Data$outboundSchema: z.ZodType<Web3Data$Outbound, Web3Data>;
|
|
151
151
|
/**
|
|
152
152
|
* @internal
|
|
153
153
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
154
154
|
*/
|
|
155
155
|
export declare namespace Web3Data$ {
|
|
156
156
|
/** @deprecated use `Web3Data$inboundSchema` instead. */
|
|
157
|
-
const inboundSchema: z.ZodType<Web3Data, z.
|
|
157
|
+
const inboundSchema: z.ZodType<Web3Data, unknown, z.core.$ZodTypeInternals<Web3Data, unknown>>;
|
|
158
158
|
/** @deprecated use `Web3Data$outboundSchema` instead. */
|
|
159
|
-
const outboundSchema: z.ZodType<Web3Data$Outbound, z.
|
|
159
|
+
const outboundSchema: z.ZodType<Web3Data$Outbound, Web3Data, z.core.$ZodTypeInternals<Web3Data$Outbound, Web3Data>>;
|
|
160
160
|
/** @deprecated use `Web3Data$Outbound` instead. */
|
|
161
161
|
type Outbound = Web3Data$Outbound;
|
|
162
162
|
}
|
|
163
163
|
export declare function web3DataToJSON(web3Data: Web3Data): string;
|
|
164
164
|
export declare function web3DataFromJSON(jsonString: string): SafeParseResult<Web3Data, SDKValidationError>;
|
|
165
165
|
/** @internal */
|
|
166
|
-
export declare const CreateCoinbaseChargeData$inboundSchema: z.ZodType<CreateCoinbaseChargeData,
|
|
166
|
+
export declare const CreateCoinbaseChargeData$inboundSchema: z.ZodType<CreateCoinbaseChargeData, unknown>;
|
|
167
167
|
/** @internal */
|
|
168
168
|
export type CreateCoinbaseChargeData$Outbound = {
|
|
169
169
|
id: string;
|
|
@@ -172,38 +172,38 @@ export type CreateCoinbaseChargeData$Outbound = {
|
|
|
172
172
|
web3_data: Web3Data$Outbound;
|
|
173
173
|
};
|
|
174
174
|
/** @internal */
|
|
175
|
-
export declare const CreateCoinbaseChargeData$outboundSchema: z.ZodType<CreateCoinbaseChargeData$Outbound,
|
|
175
|
+
export declare const CreateCoinbaseChargeData$outboundSchema: z.ZodType<CreateCoinbaseChargeData$Outbound, CreateCoinbaseChargeData>;
|
|
176
176
|
/**
|
|
177
177
|
* @internal
|
|
178
178
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
179
179
|
*/
|
|
180
180
|
export declare namespace CreateCoinbaseChargeData$ {
|
|
181
181
|
/** @deprecated use `CreateCoinbaseChargeData$inboundSchema` instead. */
|
|
182
|
-
const inboundSchema: z.ZodType<CreateCoinbaseChargeData, z.
|
|
182
|
+
const inboundSchema: z.ZodType<CreateCoinbaseChargeData, unknown, z.core.$ZodTypeInternals<CreateCoinbaseChargeData, unknown>>;
|
|
183
183
|
/** @deprecated use `CreateCoinbaseChargeData$outboundSchema` instead. */
|
|
184
|
-
const outboundSchema: z.ZodType<CreateCoinbaseChargeData$Outbound, z.
|
|
184
|
+
const outboundSchema: z.ZodType<CreateCoinbaseChargeData$Outbound, CreateCoinbaseChargeData, z.core.$ZodTypeInternals<CreateCoinbaseChargeData$Outbound, CreateCoinbaseChargeData>>;
|
|
185
185
|
/** @deprecated use `CreateCoinbaseChargeData$Outbound` instead. */
|
|
186
186
|
type Outbound = CreateCoinbaseChargeData$Outbound;
|
|
187
187
|
}
|
|
188
188
|
export declare function createCoinbaseChargeDataToJSON(createCoinbaseChargeData: CreateCoinbaseChargeData): string;
|
|
189
189
|
export declare function createCoinbaseChargeDataFromJSON(jsonString: string): SafeParseResult<CreateCoinbaseChargeData, SDKValidationError>;
|
|
190
190
|
/** @internal */
|
|
191
|
-
export declare const CreateCoinbaseChargeResponse$inboundSchema: z.ZodType<CreateCoinbaseChargeResponse,
|
|
191
|
+
export declare const CreateCoinbaseChargeResponse$inboundSchema: z.ZodType<CreateCoinbaseChargeResponse, unknown>;
|
|
192
192
|
/** @internal */
|
|
193
193
|
export type CreateCoinbaseChargeResponse$Outbound = {
|
|
194
194
|
data: CreateCoinbaseChargeData$Outbound;
|
|
195
195
|
};
|
|
196
196
|
/** @internal */
|
|
197
|
-
export declare const CreateCoinbaseChargeResponse$outboundSchema: z.ZodType<CreateCoinbaseChargeResponse$Outbound,
|
|
197
|
+
export declare const CreateCoinbaseChargeResponse$outboundSchema: z.ZodType<CreateCoinbaseChargeResponse$Outbound, CreateCoinbaseChargeResponse>;
|
|
198
198
|
/**
|
|
199
199
|
* @internal
|
|
200
200
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
201
201
|
*/
|
|
202
202
|
export declare namespace CreateCoinbaseChargeResponse$ {
|
|
203
203
|
/** @deprecated use `CreateCoinbaseChargeResponse$inboundSchema` instead. */
|
|
204
|
-
const inboundSchema: z.ZodType<CreateCoinbaseChargeResponse, z.
|
|
204
|
+
const inboundSchema: z.ZodType<CreateCoinbaseChargeResponse, unknown, z.core.$ZodTypeInternals<CreateCoinbaseChargeResponse, unknown>>;
|
|
205
205
|
/** @deprecated use `CreateCoinbaseChargeResponse$outboundSchema` instead. */
|
|
206
|
-
const outboundSchema: z.ZodType<CreateCoinbaseChargeResponse$Outbound, z.
|
|
206
|
+
const outboundSchema: z.ZodType<CreateCoinbaseChargeResponse$Outbound, CreateCoinbaseChargeResponse, z.core.$ZodTypeInternals<CreateCoinbaseChargeResponse$Outbound, CreateCoinbaseChargeResponse>>;
|
|
207
207
|
/** @deprecated use `CreateCoinbaseChargeResponse$Outbound` instead. */
|
|
208
208
|
type Outbound = CreateCoinbaseChargeResponse$Outbound;
|
|
209
209
|
}
|
|
@@ -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
|
/** @internal */
|
|
@@ -50,7 +50,8 @@ export const CallData$inboundSchema = z.object({
|
|
|
50
50
|
});
|
|
51
51
|
});
|
|
52
52
|
/** @internal */
|
|
53
|
-
export const CallData$outboundSchema = z
|
|
53
|
+
export const CallData$outboundSchema = z
|
|
54
|
+
.object({
|
|
54
55
|
deadline: z.string(),
|
|
55
56
|
feeAmount: z.string(),
|
|
56
57
|
id: z.string(),
|
|
@@ -98,7 +99,8 @@ export const Metadata$inboundSchema = z.object({
|
|
|
98
99
|
});
|
|
99
100
|
});
|
|
100
101
|
/** @internal */
|
|
101
|
-
export const Metadata$outboundSchema = z
|
|
102
|
+
export const Metadata$outboundSchema = z
|
|
103
|
+
.object({
|
|
102
104
|
chainId: z.number(),
|
|
103
105
|
contractAddress: z.string(),
|
|
104
106
|
sender: z.string(),
|
|
@@ -169,7 +171,8 @@ export const Web3Data$inboundSchema = z.object({
|
|
|
169
171
|
});
|
|
170
172
|
});
|
|
171
173
|
/** @internal */
|
|
172
|
-
export const Web3Data$outboundSchema = z
|
|
174
|
+
export const Web3Data$outboundSchema = z
|
|
175
|
+
.object({
|
|
173
176
|
transferIntent: z.lazy(() => TransferIntent$outboundSchema),
|
|
174
177
|
}).transform((v) => {
|
|
175
178
|
return remap$(v, {
|