@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 * as models from "../index.js";
|
|
3
3
|
import { OpenRouterError } from "./openroutererror.js";
|
|
4
4
|
export type ChatErrorData = {
|
|
@@ -15,22 +15,22 @@ export declare class ChatError extends OpenRouterError {
|
|
|
15
15
|
});
|
|
16
16
|
}
|
|
17
17
|
/** @internal */
|
|
18
|
-
export declare const ChatError$inboundSchema: z.ZodType<ChatError,
|
|
18
|
+
export declare const ChatError$inboundSchema: z.ZodType<ChatError, unknown>;
|
|
19
19
|
/** @internal */
|
|
20
20
|
export type ChatError$Outbound = {
|
|
21
21
|
error: models.ChatErrorError$Outbound;
|
|
22
22
|
};
|
|
23
23
|
/** @internal */
|
|
24
|
-
export declare const ChatError$outboundSchema: z.ZodType<ChatError$Outbound,
|
|
24
|
+
export declare const ChatError$outboundSchema: z.ZodType<ChatError$Outbound, ChatError>;
|
|
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 ChatError$ {
|
|
30
30
|
/** @deprecated use `ChatError$inboundSchema` instead. */
|
|
31
|
-
const inboundSchema: z.ZodType<ChatError, z.
|
|
31
|
+
const inboundSchema: z.ZodType<ChatError, unknown, z.core.$ZodTypeInternals<ChatError, unknown>>;
|
|
32
32
|
/** @deprecated use `ChatError$outboundSchema` instead. */
|
|
33
|
-
const outboundSchema: z.ZodType<ChatError$Outbound, z.
|
|
33
|
+
const outboundSchema: z.ZodType<ChatError$Outbound, ChatError, z.core.$ZodTypeInternals<ChatError$Outbound, ChatError>>;
|
|
34
34
|
/** @deprecated use `ChatError$Outbound` instead. */
|
|
35
35
|
type Outbound = ChatError$Outbound;
|
|
36
36
|
}
|
|
@@ -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 * as models from "../index.js";
|
|
6
6
|
import { OpenRouterError } from "./openroutererror.js";
|
|
7
7
|
export class ChatError extends OpenRouterError {
|
|
@@ -17,8 +17,8 @@ export class ChatError extends OpenRouterError {
|
|
|
17
17
|
/** @internal */
|
|
18
18
|
export const ChatError$inboundSchema = z.object({
|
|
19
19
|
error: z.lazy(() => models.ChatErrorError$inboundSchema),
|
|
20
|
-
request$: z.instanceof
|
|
21
|
-
response$: z.instanceof
|
|
20
|
+
request$: z.custom(x => x instanceof Request),
|
|
21
|
+
response$: z.custom(x => x instanceof Response),
|
|
22
22
|
body$: z.string(),
|
|
23
23
|
})
|
|
24
24
|
.transform((v) => {
|
|
@@ -29,7 +29,7 @@ export const ChatError$inboundSchema = z.object({
|
|
|
29
29
|
});
|
|
30
30
|
});
|
|
31
31
|
/** @internal */
|
|
32
|
-
export const ChatError$outboundSchema = z.instanceof
|
|
32
|
+
export const ChatError$outboundSchema = z.custom(x => x instanceof ChatError)
|
|
33
33
|
.transform(v => v.data$)
|
|
34
34
|
.pipe(z.object({
|
|
35
35
|
error: z.lazy(() => models.ChatErrorError$outboundSchema),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as z from "zod/
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
2
|
import * as models from "../index.js";
|
|
3
3
|
import { OpenRouterError } from "./openroutererror.js";
|
|
4
4
|
/**
|
|
@@ -23,23 +23,23 @@ export declare class ErrorResponse extends OpenRouterError {
|
|
|
23
23
|
});
|
|
24
24
|
}
|
|
25
25
|
/** @internal */
|
|
26
|
-
export declare const ErrorResponse$inboundSchema: z.ZodType<ErrorResponse,
|
|
26
|
+
export declare const ErrorResponse$inboundSchema: z.ZodType<ErrorResponse, unknown>;
|
|
27
27
|
/** @internal */
|
|
28
28
|
export type ErrorResponse$Outbound = {
|
|
29
29
|
error: models.ErrorResponseError$Outbound;
|
|
30
30
|
user_id?: string | null | undefined;
|
|
31
31
|
};
|
|
32
32
|
/** @internal */
|
|
33
|
-
export declare const ErrorResponse$outboundSchema: z.ZodType<ErrorResponse$Outbound,
|
|
33
|
+
export declare const ErrorResponse$outboundSchema: z.ZodType<ErrorResponse$Outbound, ErrorResponse>;
|
|
34
34
|
/**
|
|
35
35
|
* @internal
|
|
36
36
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
37
37
|
*/
|
|
38
38
|
export declare namespace ErrorResponse$ {
|
|
39
39
|
/** @deprecated use `ErrorResponse$inboundSchema` instead. */
|
|
40
|
-
const inboundSchema: z.ZodType<ErrorResponse, z.
|
|
40
|
+
const inboundSchema: z.ZodType<ErrorResponse, unknown, z.core.$ZodTypeInternals<ErrorResponse, unknown>>;
|
|
41
41
|
/** @deprecated use `ErrorResponse$outboundSchema` instead. */
|
|
42
|
-
const outboundSchema: z.ZodType<ErrorResponse$Outbound, z.
|
|
42
|
+
const outboundSchema: z.ZodType<ErrorResponse$Outbound, ErrorResponse, z.core.$ZodTypeInternals<ErrorResponse$Outbound, ErrorResponse>>;
|
|
43
43
|
/** @deprecated use `ErrorResponse$Outbound` instead. */
|
|
44
44
|
type Outbound = ErrorResponse$Outbound;
|
|
45
45
|
}
|
|
@@ -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 * as models from "../index.js";
|
|
7
7
|
import { OpenRouterError } from "./openroutererror.js";
|
|
@@ -21,11 +21,12 @@ export class ErrorResponse extends OpenRouterError {
|
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
/** @internal */
|
|
24
|
-
export const ErrorResponse$inboundSchema = z
|
|
24
|
+
export const ErrorResponse$inboundSchema = z
|
|
25
|
+
.object({
|
|
25
26
|
error: z.lazy(() => models.ErrorResponseError$inboundSchema),
|
|
26
27
|
user_id: z.nullable(z.string()).optional(),
|
|
27
|
-
request$: z.instanceof
|
|
28
|
-
response$: z.instanceof
|
|
28
|
+
request$: z.custom(x => x instanceof Request),
|
|
29
|
+
response$: z.custom(x => x instanceof Response),
|
|
29
30
|
body$: z.string(),
|
|
30
31
|
})
|
|
31
32
|
.transform((v) => {
|
|
@@ -39,7 +40,7 @@ export const ErrorResponse$inboundSchema = z.object({
|
|
|
39
40
|
});
|
|
40
41
|
});
|
|
41
42
|
/** @internal */
|
|
42
|
-
export const ErrorResponse$outboundSchema = z.instanceof
|
|
43
|
+
export const ErrorResponse$outboundSchema = z.custom(x => x instanceof ErrorResponse)
|
|
43
44
|
.transform(v => v.data$)
|
|
44
45
|
.pipe(z.object({
|
|
45
46
|
error: z.lazy(() => models.ErrorResponseError$outboundSchema),
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as z from "zod/
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
2
|
import * as operations from "../operations/index.js";
|
|
3
3
|
import { OpenRouterError } from "./openroutererror.js";
|
|
4
4
|
/**
|
|
@@ -27,22 +27,22 @@ export declare class InternalServerError extends OpenRouterError {
|
|
|
27
27
|
});
|
|
28
28
|
}
|
|
29
29
|
/** @internal */
|
|
30
|
-
export declare const InternalServerError$inboundSchema: z.ZodType<InternalServerError,
|
|
30
|
+
export declare const InternalServerError$inboundSchema: z.ZodType<InternalServerError, unknown>;
|
|
31
31
|
/** @internal */
|
|
32
32
|
export type InternalServerError$Outbound = {
|
|
33
33
|
error: operations.ErrorT$Outbound;
|
|
34
34
|
};
|
|
35
35
|
/** @internal */
|
|
36
|
-
export declare const InternalServerError$outboundSchema: z.ZodType<InternalServerError$Outbound,
|
|
36
|
+
export declare const InternalServerError$outboundSchema: z.ZodType<InternalServerError$Outbound, InternalServerError>;
|
|
37
37
|
/**
|
|
38
38
|
* @internal
|
|
39
39
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
40
40
|
*/
|
|
41
41
|
export declare namespace InternalServerError$ {
|
|
42
42
|
/** @deprecated use `InternalServerError$inboundSchema` instead. */
|
|
43
|
-
const inboundSchema: z.ZodType<InternalServerError, z.
|
|
43
|
+
const inboundSchema: z.ZodType<InternalServerError, unknown, z.core.$ZodTypeInternals<InternalServerError, unknown>>;
|
|
44
44
|
/** @deprecated use `InternalServerError$outboundSchema` instead. */
|
|
45
|
-
const outboundSchema: z.ZodType<InternalServerError$Outbound, z.
|
|
45
|
+
const outboundSchema: z.ZodType<InternalServerError$Outbound, InternalServerError, z.core.$ZodTypeInternals<InternalServerError$Outbound, InternalServerError>>;
|
|
46
46
|
/** @deprecated use `InternalServerError$Outbound` instead. */
|
|
47
47
|
type Outbound = InternalServerError$Outbound;
|
|
48
48
|
}
|
|
@@ -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 * as operations from "../operations/index.js";
|
|
6
6
|
import { OpenRouterError } from "./openroutererror.js";
|
|
7
7
|
/**
|
|
@@ -20,8 +20,8 @@ export class InternalServerError extends OpenRouterError {
|
|
|
20
20
|
/** @internal */
|
|
21
21
|
export const InternalServerError$inboundSchema = z.object({
|
|
22
22
|
error: z.lazy(() => operations.ErrorT$inboundSchema),
|
|
23
|
-
request$: z.instanceof
|
|
24
|
-
response$: z.instanceof
|
|
23
|
+
request$: z.custom(x => x instanceof Request),
|
|
24
|
+
response$: z.custom(x => x instanceof Response),
|
|
25
25
|
body$: z.string(),
|
|
26
26
|
})
|
|
27
27
|
.transform((v) => {
|
|
@@ -32,7 +32,7 @@ export const InternalServerError$inboundSchema = z.object({
|
|
|
32
32
|
});
|
|
33
33
|
});
|
|
34
34
|
/** @internal */
|
|
35
|
-
export const InternalServerError$outboundSchema = z.instanceof
|
|
35
|
+
export const InternalServerError$outboundSchema = z.custom(x => x instanceof InternalServerError)
|
|
36
36
|
.transform(v => v.data$)
|
|
37
37
|
.pipe(z.object({
|
|
38
38
|
error: z.lazy(() => operations.ErrorT$outboundSchema),
|
|
@@ -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 { OpenRouterError } from "./openroutererror.js";
|
|
6
6
|
import { formatZodError } from "./sdkvalidationerror.js";
|
|
7
7
|
export class ResponseValidationError extends OpenRouterError {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as z from "zod/
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
2
|
export declare class SDKValidationError extends Error {
|
|
3
3
|
/**
|
|
4
4
|
* The raw value that failed validation.
|
|
@@ -17,4 +17,4 @@ export declare class SDKValidationError extends Error {
|
|
|
17
17
|
*/
|
|
18
18
|
pretty(): string;
|
|
19
19
|
}
|
|
20
|
-
export declare function formatZodError(err: z.ZodError
|
|
20
|
+
export declare function formatZodError(err: z.ZodError): string;
|
|
@@ -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
|
export class SDKValidationError extends Error {
|
|
6
6
|
// Allows for backwards compatibility for `instanceof` checks of `ResponseValidationError`
|
|
7
7
|
static [Symbol.hasInstance](instance) {
|
|
@@ -38,53 +38,6 @@ export class SDKValidationError extends Error {
|
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
|
-
export function formatZodError(err
|
|
42
|
-
|
|
43
|
-
pre = level > 0 ? `│${pre}` : pre;
|
|
44
|
-
pre += " ".repeat(level);
|
|
45
|
-
let message = "";
|
|
46
|
-
const append = (str) => (message += `\n${pre}${str}`);
|
|
47
|
-
const len = err.issues.length;
|
|
48
|
-
const headline = len === 1 ? `${len} issue found` : `${len} issues found`;
|
|
49
|
-
if (len) {
|
|
50
|
-
append(`┌ ${headline}:`);
|
|
51
|
-
}
|
|
52
|
-
for (const issue of err.issues) {
|
|
53
|
-
let path = issue.path.join(".");
|
|
54
|
-
path = path ? `<root>.${path}` : "<root>";
|
|
55
|
-
append(`│ • [${path}]: ${issue.message} (${issue.code})`);
|
|
56
|
-
switch (issue.code) {
|
|
57
|
-
case "invalid_literal":
|
|
58
|
-
case "invalid_type": {
|
|
59
|
-
append(`│ Want: ${issue.expected}`);
|
|
60
|
-
append(`│ Got: ${issue.received}`);
|
|
61
|
-
break;
|
|
62
|
-
}
|
|
63
|
-
case "unrecognized_keys": {
|
|
64
|
-
append(`│ Keys: ${issue.keys.join(", ")}`);
|
|
65
|
-
break;
|
|
66
|
-
}
|
|
67
|
-
case "invalid_enum_value": {
|
|
68
|
-
append(`│ Allowed: ${issue.options.join(", ")}`);
|
|
69
|
-
append(`│ Got: ${issue.received}`);
|
|
70
|
-
break;
|
|
71
|
-
}
|
|
72
|
-
case "invalid_union_discriminator": {
|
|
73
|
-
append(`│ Allowed: ${issue.options.join(", ")}`);
|
|
74
|
-
break;
|
|
75
|
-
}
|
|
76
|
-
case "invalid_union": {
|
|
77
|
-
const len = issue.unionErrors.length;
|
|
78
|
-
append(`│ ✖︎ Attemped to deserialize into one of ${len} union members:`);
|
|
79
|
-
issue.unionErrors.forEach((err, i) => {
|
|
80
|
-
append(`│ ✖︎ Member ${i + 1} of ${len}`);
|
|
81
|
-
append(`${formatZodError(err, level + 1)}`);
|
|
82
|
-
});
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
if (err.issues.length) {
|
|
87
|
-
append(`└─*`);
|
|
88
|
-
}
|
|
89
|
-
return message.slice(1);
|
|
41
|
+
export function formatZodError(err) {
|
|
42
|
+
return z.prettifyError(err);
|
|
90
43
|
}
|
|
@@ -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,25 +13,25 @@ export type FileCitationAnnotation = {
|
|
|
13
13
|
index: number;
|
|
14
14
|
};
|
|
15
15
|
/** @internal */
|
|
16
|
-
export declare const FileCitationAnnotationType$inboundSchema: z.
|
|
16
|
+
export declare const FileCitationAnnotationType$inboundSchema: z.ZodEnum<typeof FileCitationAnnotationType>;
|
|
17
17
|
/** @internal */
|
|
18
|
-
export declare const FileCitationAnnotationType$outboundSchema: z.
|
|
18
|
+
export declare const FileCitationAnnotationType$outboundSchema: z.ZodEnum<typeof FileCitationAnnotationType>;
|
|
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 FileCitationAnnotationType$ {
|
|
24
24
|
/** @deprecated use `FileCitationAnnotationType$inboundSchema` instead. */
|
|
25
|
-
const inboundSchema: z.
|
|
25
|
+
const inboundSchema: z.ZodEnum<{
|
|
26
26
|
readonly FileCitation: "file_citation";
|
|
27
27
|
}>;
|
|
28
28
|
/** @deprecated use `FileCitationAnnotationType$outboundSchema` instead. */
|
|
29
|
-
const outboundSchema: z.
|
|
29
|
+
const outboundSchema: z.ZodEnum<{
|
|
30
30
|
readonly FileCitation: "file_citation";
|
|
31
31
|
}>;
|
|
32
32
|
}
|
|
33
33
|
/** @internal */
|
|
34
|
-
export declare const FileCitationAnnotation$inboundSchema: z.ZodType<FileCitationAnnotation,
|
|
34
|
+
export declare const FileCitationAnnotation$inboundSchema: z.ZodType<FileCitationAnnotation, unknown>;
|
|
35
35
|
/** @internal */
|
|
36
36
|
export type FileCitationAnnotation$Outbound = {
|
|
37
37
|
type: string;
|
|
@@ -40,16 +40,16 @@ export type FileCitationAnnotation$Outbound = {
|
|
|
40
40
|
index: number;
|
|
41
41
|
};
|
|
42
42
|
/** @internal */
|
|
43
|
-
export declare const FileCitationAnnotation$outboundSchema: z.ZodType<FileCitationAnnotation$Outbound,
|
|
43
|
+
export declare const FileCitationAnnotation$outboundSchema: z.ZodType<FileCitationAnnotation$Outbound, FileCitationAnnotation>;
|
|
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 FileCitationAnnotation$ {
|
|
49
49
|
/** @deprecated use `FileCitationAnnotation$inboundSchema` instead. */
|
|
50
|
-
const inboundSchema: z.ZodType<FileCitationAnnotation, z.
|
|
50
|
+
const inboundSchema: z.ZodType<FileCitationAnnotation, unknown, z.core.$ZodTypeInternals<FileCitationAnnotation, unknown>>;
|
|
51
51
|
/** @deprecated use `FileCitationAnnotation$outboundSchema` instead. */
|
|
52
|
-
const outboundSchema: z.ZodType<FileCitationAnnotation$Outbound, z.
|
|
52
|
+
const outboundSchema: z.ZodType<FileCitationAnnotation$Outbound, FileCitationAnnotation, z.core.$ZodTypeInternals<FileCitationAnnotation$Outbound, FileCitationAnnotation>>;
|
|
53
53
|
/** @deprecated use `FileCitationAnnotation$Outbound` instead. */
|
|
54
54
|
type Outbound = FileCitationAnnotation$Outbound;
|
|
55
55
|
}
|
|
@@ -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 FileCitationAnnotationType = {
|
|
8
8
|
FileCitation: "file_citation",
|
|
9
9
|
};
|
|
10
10
|
/** @internal */
|
|
11
|
-
export const FileCitationAnnotationType$inboundSchema = z.
|
|
11
|
+
export const FileCitationAnnotationType$inboundSchema = z.enum(FileCitationAnnotationType);
|
|
12
12
|
/** @internal */
|
|
13
13
|
export const FileCitationAnnotationType$outboundSchema = FileCitationAnnotationType$inboundSchema;
|
|
14
14
|
/**
|
|
@@ -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";
|
|
@@ -12,25 +12,25 @@ export type FilePathAnnotation = {
|
|
|
12
12
|
index: number;
|
|
13
13
|
};
|
|
14
14
|
/** @internal */
|
|
15
|
-
export declare const FilePathAnnotationType$inboundSchema: z.
|
|
15
|
+
export declare const FilePathAnnotationType$inboundSchema: z.ZodEnum<typeof FilePathAnnotationType>;
|
|
16
16
|
/** @internal */
|
|
17
|
-
export declare const FilePathAnnotationType$outboundSchema: z.
|
|
17
|
+
export declare const FilePathAnnotationType$outboundSchema: z.ZodEnum<typeof FilePathAnnotationType>;
|
|
18
18
|
/**
|
|
19
19
|
* @internal
|
|
20
20
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
21
21
|
*/
|
|
22
22
|
export declare namespace FilePathAnnotationType$ {
|
|
23
23
|
/** @deprecated use `FilePathAnnotationType$inboundSchema` instead. */
|
|
24
|
-
const inboundSchema: z.
|
|
24
|
+
const inboundSchema: z.ZodEnum<{
|
|
25
25
|
readonly FilePath: "file_path";
|
|
26
26
|
}>;
|
|
27
27
|
/** @deprecated use `FilePathAnnotationType$outboundSchema` instead. */
|
|
28
|
-
const outboundSchema: z.
|
|
28
|
+
const outboundSchema: z.ZodEnum<{
|
|
29
29
|
readonly FilePath: "file_path";
|
|
30
30
|
}>;
|
|
31
31
|
}
|
|
32
32
|
/** @internal */
|
|
33
|
-
export declare const FilePathAnnotation$inboundSchema: z.ZodType<FilePathAnnotation,
|
|
33
|
+
export declare const FilePathAnnotation$inboundSchema: z.ZodType<FilePathAnnotation, unknown>;
|
|
34
34
|
/** @internal */
|
|
35
35
|
export type FilePathAnnotation$Outbound = {
|
|
36
36
|
type: string;
|
|
@@ -38,16 +38,16 @@ export type FilePathAnnotation$Outbound = {
|
|
|
38
38
|
index: number;
|
|
39
39
|
};
|
|
40
40
|
/** @internal */
|
|
41
|
-
export declare const FilePathAnnotation$outboundSchema: z.ZodType<FilePathAnnotation$Outbound,
|
|
41
|
+
export declare const FilePathAnnotation$outboundSchema: z.ZodType<FilePathAnnotation$Outbound, FilePathAnnotation>;
|
|
42
42
|
/**
|
|
43
43
|
* @internal
|
|
44
44
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
45
45
|
*/
|
|
46
46
|
export declare namespace FilePathAnnotation$ {
|
|
47
47
|
/** @deprecated use `FilePathAnnotation$inboundSchema` instead. */
|
|
48
|
-
const inboundSchema: z.ZodType<FilePathAnnotation, z.
|
|
48
|
+
const inboundSchema: z.ZodType<FilePathAnnotation, unknown, z.core.$ZodTypeInternals<FilePathAnnotation, unknown>>;
|
|
49
49
|
/** @deprecated use `FilePathAnnotation$outboundSchema` instead. */
|
|
50
|
-
const outboundSchema: z.ZodType<FilePathAnnotation$Outbound, z.
|
|
50
|
+
const outboundSchema: z.ZodType<FilePathAnnotation$Outbound, FilePathAnnotation, z.core.$ZodTypeInternals<FilePathAnnotation$Outbound, FilePathAnnotation>>;
|
|
51
51
|
/** @deprecated use `FilePathAnnotation$Outbound` instead. */
|
|
52
52
|
type Outbound = FilePathAnnotation$Outbound;
|
|
53
53
|
}
|
|
@@ -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 FilePathAnnotationType = {
|
|
8
8
|
FilePath: "file_path",
|
|
9
9
|
};
|
|
10
10
|
/** @internal */
|
|
11
|
-
export const FilePathAnnotationType$inboundSchema = z.
|
|
11
|
+
export const FilePathAnnotationType$inboundSchema = z.enum(FilePathAnnotationType);
|
|
12
12
|
/** @internal */
|
|
13
13
|
export const FilePathAnnotationType$outboundSchema = FilePathAnnotationType$inboundSchema;
|
|
14
14
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as z from "zod/
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
2
|
import { OpenEnum } from "../types/enums.js";
|
|
3
3
|
export declare const ImageGenerationStatus: {
|
|
4
4
|
readonly InProgress: "in_progress";
|
|
@@ -8,16 +8,16 @@ export declare const ImageGenerationStatus: {
|
|
|
8
8
|
};
|
|
9
9
|
export type ImageGenerationStatus = OpenEnum<typeof ImageGenerationStatus>;
|
|
10
10
|
/** @internal */
|
|
11
|
-
export declare const ImageGenerationStatus$inboundSchema: z.ZodType<ImageGenerationStatus,
|
|
11
|
+
export declare const ImageGenerationStatus$inboundSchema: z.ZodType<ImageGenerationStatus, unknown>;
|
|
12
12
|
/** @internal */
|
|
13
|
-
export declare const ImageGenerationStatus$outboundSchema: z.ZodType<ImageGenerationStatus,
|
|
13
|
+
export declare const ImageGenerationStatus$outboundSchema: z.ZodType<ImageGenerationStatus, ImageGenerationStatus>;
|
|
14
14
|
/**
|
|
15
15
|
* @internal
|
|
16
16
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
17
17
|
*/
|
|
18
18
|
export declare namespace ImageGenerationStatus$ {
|
|
19
19
|
/** @deprecated use `ImageGenerationStatus$inboundSchema` instead. */
|
|
20
|
-
const inboundSchema: z.ZodType<ImageGenerationStatus, z.
|
|
20
|
+
const inboundSchema: z.ZodType<ImageGenerationStatus, unknown, z.core.$ZodTypeInternals<ImageGenerationStatus, unknown>>;
|
|
21
21
|
/** @deprecated use `ImageGenerationStatus$outboundSchema` instead. */
|
|
22
|
-
const outboundSchema: z.ZodType<ImageGenerationStatus, z.
|
|
22
|
+
const outboundSchema: z.ZodType<ImageGenerationStatus, ImageGenerationStatus, z.core.$ZodTypeInternals<ImageGenerationStatus, ImageGenerationStatus>>;
|
|
23
23
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
|
-
import * as z from "zod/
|
|
4
|
+
import * as z from "zod/v4";
|
|
5
5
|
import { catchUnrecognizedEnum, } from "../types/enums.js";
|
|
6
6
|
export const ImageGenerationStatus = {
|
|
7
7
|
InProgress: "in_progress",
|
|
@@ -12,12 +12,12 @@ export const ImageGenerationStatus = {
|
|
|
12
12
|
/** @internal */
|
|
13
13
|
export const ImageGenerationStatus$inboundSchema = z
|
|
14
14
|
.union([
|
|
15
|
-
z.
|
|
15
|
+
z.enum(ImageGenerationStatus),
|
|
16
16
|
z.string().transform(catchUnrecognizedEnum),
|
|
17
17
|
]);
|
|
18
18
|
/** @internal */
|
|
19
19
|
export const ImageGenerationStatus$outboundSchema = z.union([
|
|
20
|
-
z.
|
|
20
|
+
z.enum(ImageGenerationStatus),
|
|
21
21
|
z.string().and(z.custom()),
|
|
22
22
|
]);
|
|
23
23
|
/**
|
package/models/index.d.ts
CHANGED
|
@@ -73,9 +73,15 @@ export * from "./refusalcontent.js";
|
|
|
73
73
|
export * from "./responseformatjsonschema.js";
|
|
74
74
|
export * from "./responseformattextgrammar.js";
|
|
75
75
|
export * from "./responseserrorfield.js";
|
|
76
|
+
export * from "./responsesimagegenerationcall.js";
|
|
76
77
|
export * from "./responsesoutputitem.js";
|
|
78
|
+
export * from "./responsesoutputitemfilesearchcall.js";
|
|
79
|
+
export * from "./responsesoutputitemfunctioncall.js";
|
|
80
|
+
export * from "./responsesoutputitemreasoning.js";
|
|
81
|
+
export * from "./responsesoutputmessage.js";
|
|
77
82
|
export * from "./responsessearchcontextsize.js";
|
|
78
83
|
export * from "./responsesusage.js";
|
|
84
|
+
export * from "./responseswebsearchcalloutput.js";
|
|
79
85
|
export * from "./responseswebsearchuserlocation.js";
|
|
80
86
|
export * from "./security.js";
|
|
81
87
|
export * from "./systemmessage.js";
|
|
@@ -85,4 +91,5 @@ export * from "./toolchoicetypes.js";
|
|
|
85
91
|
export * from "./toolresponsemessage.js";
|
|
86
92
|
export * from "./urlcitationannotation.js";
|
|
87
93
|
export * from "./usermessage.js";
|
|
94
|
+
export * from "./websearchpreviewtooluserlocation.js";
|
|
88
95
|
export * from "./websearchstatus.js";
|
package/models/index.js
CHANGED
|
@@ -76,9 +76,15 @@ export * from "./refusalcontent.js";
|
|
|
76
76
|
export * from "./responseformatjsonschema.js";
|
|
77
77
|
export * from "./responseformattextgrammar.js";
|
|
78
78
|
export * from "./responseserrorfield.js";
|
|
79
|
+
export * from "./responsesimagegenerationcall.js";
|
|
79
80
|
export * from "./responsesoutputitem.js";
|
|
81
|
+
export * from "./responsesoutputitemfilesearchcall.js";
|
|
82
|
+
export * from "./responsesoutputitemfunctioncall.js";
|
|
83
|
+
export * from "./responsesoutputitemreasoning.js";
|
|
84
|
+
export * from "./responsesoutputmessage.js";
|
|
80
85
|
export * from "./responsessearchcontextsize.js";
|
|
81
86
|
export * from "./responsesusage.js";
|
|
87
|
+
export * from "./responseswebsearchcalloutput.js";
|
|
82
88
|
export * from "./responseswebsearchuserlocation.js";
|
|
83
89
|
export * from "./security.js";
|
|
84
90
|
export * from "./systemmessage.js";
|
|
@@ -88,4 +94,5 @@ export * from "./toolchoicetypes.js";
|
|
|
88
94
|
export * from "./toolresponsemessage.js";
|
|
89
95
|
export * from "./urlcitationannotation.js";
|
|
90
96
|
export * from "./usermessage.js";
|
|
97
|
+
export * from "./websearchpreviewtooluserlocation.js";
|
|
91
98
|
export * from "./websearchstatus.js";
|
|
@@ -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 JSONSchemaConfig = {
|
|
@@ -10,7 +10,7 @@ export type JSONSchemaConfig = {
|
|
|
10
10
|
strict?: boolean | null | undefined;
|
|
11
11
|
};
|
|
12
12
|
/** @internal */
|
|
13
|
-
export declare const JSONSchemaConfig$inboundSchema: z.ZodType<JSONSchemaConfig,
|
|
13
|
+
export declare const JSONSchemaConfig$inboundSchema: z.ZodType<JSONSchemaConfig, unknown>;
|
|
14
14
|
/** @internal */
|
|
15
15
|
export type JSONSchemaConfig$Outbound = {
|
|
16
16
|
name: string;
|
|
@@ -21,16 +21,16 @@ export type JSONSchemaConfig$Outbound = {
|
|
|
21
21
|
strict?: boolean | null | undefined;
|
|
22
22
|
};
|
|
23
23
|
/** @internal */
|
|
24
|
-
export declare const JSONSchemaConfig$outboundSchema: z.ZodType<JSONSchemaConfig$Outbound,
|
|
24
|
+
export declare const JSONSchemaConfig$outboundSchema: z.ZodType<JSONSchemaConfig$Outbound, JSONSchemaConfig>;
|
|
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 JSONSchemaConfig$ {
|
|
30
30
|
/** @deprecated use `JSONSchemaConfig$inboundSchema` instead. */
|
|
31
|
-
const inboundSchema: z.ZodType<JSONSchemaConfig, z.
|
|
31
|
+
const inboundSchema: z.ZodType<JSONSchemaConfig, unknown, z.core.$ZodTypeInternals<JSONSchemaConfig, unknown>>;
|
|
32
32
|
/** @deprecated use `JSONSchemaConfig$outboundSchema` instead. */
|
|
33
|
-
const outboundSchema: z.ZodType<JSONSchemaConfig$Outbound, z.
|
|
33
|
+
const outboundSchema: z.ZodType<JSONSchemaConfig$Outbound, JSONSchemaConfig, z.core.$ZodTypeInternals<JSONSchemaConfig$Outbound, JSONSchemaConfig>>;
|
|
34
34
|
/** @deprecated use `JSONSchemaConfig$Outbound` instead. */
|
|
35
35
|
type Outbound = JSONSchemaConfig$Outbound;
|
|
36
36
|
}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
|
-
import * as z from "zod/
|
|
4
|
+
import * as z from "zod/v4";
|
|
5
5
|
import { safeParse } from "../lib/schemas.js";
|
|
6
6
|
/** @internal */
|
|
7
7
|
export const JSONSchemaConfig$inboundSchema = z.object({
|
|
8
8
|
name: z.string(),
|
|
9
9
|
description: z.string().optional(),
|
|
10
|
-
schema: z.record(z.any()).optional(),
|
|
10
|
+
schema: z.record(z.string(), z.any()).optional(),
|
|
11
11
|
strict: z.nullable(z.boolean()).optional(),
|
|
12
12
|
});
|
|
13
13
|
/** @internal */
|
|
14
14
|
export const JSONSchemaConfig$outboundSchema = z.object({
|
|
15
15
|
name: z.string(),
|
|
16
16
|
description: z.string().optional(),
|
|
17
|
-
schema: z.record(z.any()).optional(),
|
|
17
|
+
schema: z.record(z.string(), z.any()).optional(),
|
|
18
18
|
strict: z.nullable(z.boolean()).optional(),
|
|
19
19
|
});
|
|
20
20
|
/**
|
|
@@ -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
|
/**
|
|
@@ -6,20 +6,20 @@ import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
|
6
6
|
*/
|
|
7
7
|
export type ListEndpointsResponse = {};
|
|
8
8
|
/** @internal */
|
|
9
|
-
export declare const ListEndpointsResponse$inboundSchema: z.ZodType<ListEndpointsResponse,
|
|
9
|
+
export declare const ListEndpointsResponse$inboundSchema: z.ZodType<ListEndpointsResponse, unknown>;
|
|
10
10
|
/** @internal */
|
|
11
11
|
export type ListEndpointsResponse$Outbound = {};
|
|
12
12
|
/** @internal */
|
|
13
|
-
export declare const ListEndpointsResponse$outboundSchema: z.ZodType<ListEndpointsResponse$Outbound,
|
|
13
|
+
export declare const ListEndpointsResponse$outboundSchema: z.ZodType<ListEndpointsResponse$Outbound, ListEndpointsResponse>;
|
|
14
14
|
/**
|
|
15
15
|
* @internal
|
|
16
16
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
17
17
|
*/
|
|
18
18
|
export declare namespace ListEndpointsResponse$ {
|
|
19
19
|
/** @deprecated use `ListEndpointsResponse$inboundSchema` instead. */
|
|
20
|
-
const inboundSchema: z.ZodType<ListEndpointsResponse, z.
|
|
20
|
+
const inboundSchema: z.ZodType<ListEndpointsResponse, unknown, z.core.$ZodTypeInternals<ListEndpointsResponse, unknown>>;
|
|
21
21
|
/** @deprecated use `ListEndpointsResponse$outboundSchema` instead. */
|
|
22
|
-
const outboundSchema: z.ZodType<ListEndpointsResponse$Outbound, z.
|
|
22
|
+
const outboundSchema: z.ZodType<ListEndpointsResponse$Outbound, ListEndpointsResponse, z.core.$ZodTypeInternals<ListEndpointsResponse$Outbound, ListEndpointsResponse>>;
|
|
23
23
|
/** @deprecated use `ListEndpointsResponse$Outbound` instead. */
|
|
24
24
|
type Outbound = ListEndpointsResponse$Outbound;
|
|
25
25
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
|
-
import * as z from "zod/
|
|
4
|
+
import * as z from "zod/v4";
|
|
5
5
|
import { safeParse } from "../lib/schemas.js";
|
|
6
6
|
/** @internal */
|
|
7
7
|
export const ListEndpointsResponse$inboundSchema = z.object({});
|