@openrouter/sdk 0.0.1-beta.6 → 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/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 +5 -5
- package/models/openresponsesinputitem.js +1 -1
- 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 +9 -9
- package/models/openresponseswebsearchpreview20250311tool.js +2 -3
- package/models/openresponseswebsearchpreviewtool.d.ts +9 -9
- package/models/openresponseswebsearchpreviewtool.js +2 -2
- 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 +9 -9
- package/models/responsesimagegenerationcall.js +2 -2
- package/models/responsesoutputitem.d.ts +5 -5
- package/models/responsesoutputitem.js +1 -1
- package/models/responsesoutputitemfilesearchcall.d.ts +9 -9
- package/models/responsesoutputitemfilesearchcall.js +2 -2
- package/models/responsesoutputitemfunctioncall.d.ts +9 -9
- package/models/responsesoutputitemfunctioncall.js +2 -2
- package/models/responsesoutputitemreasoning.d.ts +9 -9
- package/models/responsesoutputitemreasoning.js +2 -2
- package/models/responsesoutputmessage.d.ts +33 -33
- package/models/responsesoutputmessage.js +9 -9
- 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 +9 -9
- package/models/responseswebsearchcalloutput.js +2 -2
- 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 +9 -9
- package/models/websearchpreviewtooluserlocation.js +2 -2
- 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 { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
3
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
4
|
export type ListRequest = {
|
|
@@ -95,30 +95,30 @@ export type ListResponse = {
|
|
|
95
95
|
data: Array<ListData>;
|
|
96
96
|
};
|
|
97
97
|
/** @internal */
|
|
98
|
-
export declare const ListRequest$inboundSchema: z.ZodType<ListRequest,
|
|
98
|
+
export declare const ListRequest$inboundSchema: z.ZodType<ListRequest, unknown>;
|
|
99
99
|
/** @internal */
|
|
100
100
|
export type ListRequest$Outbound = {
|
|
101
101
|
include_disabled?: string | undefined;
|
|
102
102
|
offset?: string | undefined;
|
|
103
103
|
};
|
|
104
104
|
/** @internal */
|
|
105
|
-
export declare const ListRequest$outboundSchema: z.ZodType<ListRequest$Outbound,
|
|
105
|
+
export declare const ListRequest$outboundSchema: z.ZodType<ListRequest$Outbound, ListRequest>;
|
|
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 ListRequest$ {
|
|
111
111
|
/** @deprecated use `ListRequest$inboundSchema` instead. */
|
|
112
|
-
const inboundSchema: z.ZodType<ListRequest, z.
|
|
112
|
+
const inboundSchema: z.ZodType<ListRequest, unknown, z.core.$ZodTypeInternals<ListRequest, unknown>>;
|
|
113
113
|
/** @deprecated use `ListRequest$outboundSchema` instead. */
|
|
114
|
-
const outboundSchema: z.ZodType<ListRequest$Outbound, z.
|
|
114
|
+
const outboundSchema: z.ZodType<ListRequest$Outbound, ListRequest, z.core.$ZodTypeInternals<ListRequest$Outbound, ListRequest>>;
|
|
115
115
|
/** @deprecated use `ListRequest$Outbound` instead. */
|
|
116
116
|
type Outbound = ListRequest$Outbound;
|
|
117
117
|
}
|
|
118
118
|
export declare function listRequestToJSON(listRequest: ListRequest): string;
|
|
119
119
|
export declare function listRequestFromJSON(jsonString: string): SafeParseResult<ListRequest, SDKValidationError>;
|
|
120
120
|
/** @internal */
|
|
121
|
-
export declare const ListData$inboundSchema: z.ZodType<ListData,
|
|
121
|
+
export declare const ListData$inboundSchema: z.ZodType<ListData, unknown>;
|
|
122
122
|
/** @internal */
|
|
123
123
|
export type ListData$Outbound = {
|
|
124
124
|
hash: string;
|
|
@@ -141,38 +141,38 @@ export type ListData$Outbound = {
|
|
|
141
141
|
updated_at: string | null;
|
|
142
142
|
};
|
|
143
143
|
/** @internal */
|
|
144
|
-
export declare const ListData$outboundSchema: z.ZodType<ListData$Outbound,
|
|
144
|
+
export declare const ListData$outboundSchema: z.ZodType<ListData$Outbound, ListData>;
|
|
145
145
|
/**
|
|
146
146
|
* @internal
|
|
147
147
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
148
148
|
*/
|
|
149
149
|
export declare namespace ListData$ {
|
|
150
150
|
/** @deprecated use `ListData$inboundSchema` instead. */
|
|
151
|
-
const inboundSchema: z.ZodType<ListData, z.
|
|
151
|
+
const inboundSchema: z.ZodType<ListData, unknown, z.core.$ZodTypeInternals<ListData, unknown>>;
|
|
152
152
|
/** @deprecated use `ListData$outboundSchema` instead. */
|
|
153
|
-
const outboundSchema: z.ZodType<ListData$Outbound, z.
|
|
153
|
+
const outboundSchema: z.ZodType<ListData$Outbound, ListData, z.core.$ZodTypeInternals<ListData$Outbound, ListData>>;
|
|
154
154
|
/** @deprecated use `ListData$Outbound` instead. */
|
|
155
155
|
type Outbound = ListData$Outbound;
|
|
156
156
|
}
|
|
157
157
|
export declare function listDataToJSON(listData: ListData): string;
|
|
158
158
|
export declare function listDataFromJSON(jsonString: string): SafeParseResult<ListData, SDKValidationError>;
|
|
159
159
|
/** @internal */
|
|
160
|
-
export declare const ListResponse$inboundSchema: z.ZodType<ListResponse,
|
|
160
|
+
export declare const ListResponse$inboundSchema: z.ZodType<ListResponse, unknown>;
|
|
161
161
|
/** @internal */
|
|
162
162
|
export type ListResponse$Outbound = {
|
|
163
163
|
data: Array<ListData$Outbound>;
|
|
164
164
|
};
|
|
165
165
|
/** @internal */
|
|
166
|
-
export declare const ListResponse$outboundSchema: z.ZodType<ListResponse$Outbound,
|
|
166
|
+
export declare const ListResponse$outboundSchema: z.ZodType<ListResponse$Outbound, ListResponse>;
|
|
167
167
|
/**
|
|
168
168
|
* @internal
|
|
169
169
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
170
170
|
*/
|
|
171
171
|
export declare namespace ListResponse$ {
|
|
172
172
|
/** @deprecated use `ListResponse$inboundSchema` instead. */
|
|
173
|
-
const inboundSchema: z.ZodType<ListResponse, z.
|
|
173
|
+
const inboundSchema: z.ZodType<ListResponse, unknown, z.core.$ZodTypeInternals<ListResponse, unknown>>;
|
|
174
174
|
/** @deprecated use `ListResponse$outboundSchema` instead. */
|
|
175
|
-
const outboundSchema: z.ZodType<ListResponse$Outbound, z.
|
|
175
|
+
const outboundSchema: z.ZodType<ListResponse$Outbound, ListResponse, z.core.$ZodTypeInternals<ListResponse$Outbound, ListResponse>>;
|
|
176
176
|
/** @deprecated use `ListResponse$Outbound` instead. */
|
|
177
177
|
type Outbound = ListResponse$Outbound;
|
|
178
178
|
}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
|
-
import * as z from "zod/
|
|
4
|
+
import * as z from "zod/v4";
|
|
5
5
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
6
6
|
import { safeParse } from "../../lib/schemas.js";
|
|
7
7
|
/** @internal */
|
|
8
|
-
export const ListRequest$inboundSchema = z
|
|
8
|
+
export const ListRequest$inboundSchema = z
|
|
9
|
+
.object({
|
|
9
10
|
include_disabled: z.string().optional(),
|
|
10
11
|
offset: z.string().optional(),
|
|
11
12
|
}).transform((v) => {
|
|
@@ -76,7 +77,8 @@ export const ListData$inboundSchema = z.object({
|
|
|
76
77
|
});
|
|
77
78
|
});
|
|
78
79
|
/** @internal */
|
|
79
|
-
export const ListData$outboundSchema = z
|
|
80
|
+
export const ListData$outboundSchema = z
|
|
81
|
+
.object({
|
|
80
82
|
hash: z.string(),
|
|
81
83
|
name: z.string(),
|
|
82
84
|
label: z.string(),
|
|
@@ -129,7 +131,8 @@ export function listDataFromJSON(jsonString) {
|
|
|
129
131
|
return safeParse(jsonString, (x) => ListData$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListData' from JSON`);
|
|
130
132
|
}
|
|
131
133
|
/** @internal */
|
|
132
|
-
export const ListResponse$inboundSchema = z
|
|
134
|
+
export const ListResponse$inboundSchema = z
|
|
135
|
+
.object({
|
|
133
136
|
data: z.array(z.lazy(() => ListData$inboundSchema)),
|
|
134
137
|
});
|
|
135
138
|
/** @internal */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as z from "zod/
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
2
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
3
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
4
|
import * as models from "../index.js";
|
|
@@ -16,45 +16,45 @@ export type ListEndpointsResponse = {
|
|
|
16
16
|
data: models.ListEndpointsResponse;
|
|
17
17
|
};
|
|
18
18
|
/** @internal */
|
|
19
|
-
export declare const ListEndpointsRequest$inboundSchema: z.ZodType<ListEndpointsRequest,
|
|
19
|
+
export declare const ListEndpointsRequest$inboundSchema: z.ZodType<ListEndpointsRequest, unknown>;
|
|
20
20
|
/** @internal */
|
|
21
21
|
export type ListEndpointsRequest$Outbound = {
|
|
22
22
|
author: string;
|
|
23
23
|
slug: string;
|
|
24
24
|
};
|
|
25
25
|
/** @internal */
|
|
26
|
-
export declare const ListEndpointsRequest$outboundSchema: z.ZodType<ListEndpointsRequest$Outbound,
|
|
26
|
+
export declare const ListEndpointsRequest$outboundSchema: z.ZodType<ListEndpointsRequest$Outbound, ListEndpointsRequest>;
|
|
27
27
|
/**
|
|
28
28
|
* @internal
|
|
29
29
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
30
30
|
*/
|
|
31
31
|
export declare namespace ListEndpointsRequest$ {
|
|
32
32
|
/** @deprecated use `ListEndpointsRequest$inboundSchema` instead. */
|
|
33
|
-
const inboundSchema: z.ZodType<ListEndpointsRequest, z.
|
|
33
|
+
const inboundSchema: z.ZodType<ListEndpointsRequest, unknown, z.core.$ZodTypeInternals<ListEndpointsRequest, unknown>>;
|
|
34
34
|
/** @deprecated use `ListEndpointsRequest$outboundSchema` instead. */
|
|
35
|
-
const outboundSchema: z.ZodType<ListEndpointsRequest$Outbound, z.
|
|
35
|
+
const outboundSchema: z.ZodType<ListEndpointsRequest$Outbound, ListEndpointsRequest, z.core.$ZodTypeInternals<ListEndpointsRequest$Outbound, ListEndpointsRequest>>;
|
|
36
36
|
/** @deprecated use `ListEndpointsRequest$Outbound` instead. */
|
|
37
37
|
type Outbound = ListEndpointsRequest$Outbound;
|
|
38
38
|
}
|
|
39
39
|
export declare function listEndpointsRequestToJSON(listEndpointsRequest: ListEndpointsRequest): string;
|
|
40
40
|
export declare function listEndpointsRequestFromJSON(jsonString: string): SafeParseResult<ListEndpointsRequest, SDKValidationError>;
|
|
41
41
|
/** @internal */
|
|
42
|
-
export declare const ListEndpointsResponse$inboundSchema: z.ZodType<ListEndpointsResponse,
|
|
42
|
+
export declare const ListEndpointsResponse$inboundSchema: z.ZodType<ListEndpointsResponse, unknown>;
|
|
43
43
|
/** @internal */
|
|
44
44
|
export type ListEndpointsResponse$Outbound = {
|
|
45
45
|
data: models.ListEndpointsResponse$Outbound;
|
|
46
46
|
};
|
|
47
47
|
/** @internal */
|
|
48
|
-
export declare const ListEndpointsResponse$outboundSchema: z.ZodType<ListEndpointsResponse$Outbound,
|
|
48
|
+
export declare const ListEndpointsResponse$outboundSchema: z.ZodType<ListEndpointsResponse$Outbound, ListEndpointsResponse>;
|
|
49
49
|
/**
|
|
50
50
|
* @internal
|
|
51
51
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
52
52
|
*/
|
|
53
53
|
export declare namespace ListEndpointsResponse$ {
|
|
54
54
|
/** @deprecated use `ListEndpointsResponse$inboundSchema` instead. */
|
|
55
|
-
const inboundSchema: z.ZodType<ListEndpointsResponse, z.
|
|
55
|
+
const inboundSchema: z.ZodType<ListEndpointsResponse, unknown, z.core.$ZodTypeInternals<ListEndpointsResponse, unknown>>;
|
|
56
56
|
/** @deprecated use `ListEndpointsResponse$outboundSchema` instead. */
|
|
57
|
-
const outboundSchema: z.ZodType<ListEndpointsResponse$Outbound, z.
|
|
57
|
+
const outboundSchema: z.ZodType<ListEndpointsResponse$Outbound, ListEndpointsResponse, z.core.$ZodTypeInternals<ListEndpointsResponse$Outbound, ListEndpointsResponse>>;
|
|
58
58
|
/** @deprecated use `ListEndpointsResponse$Outbound` instead. */
|
|
59
59
|
type Outbound = ListEndpointsResponse$Outbound;
|
|
60
60
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as z from "zod/
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
2
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
3
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
4
|
import * as models from "../index.js";
|
|
@@ -10,42 +10,42 @@ export type ListEndpointsZdrResponseBody = {
|
|
|
10
10
|
};
|
|
11
11
|
export type ListEndpointsZdrResponse = ListEndpointsZdrResponseBody | models.ErrorResponse;
|
|
12
12
|
/** @internal */
|
|
13
|
-
export declare const ListEndpointsZdrResponseBody$inboundSchema: z.ZodType<ListEndpointsZdrResponseBody,
|
|
13
|
+
export declare const ListEndpointsZdrResponseBody$inboundSchema: z.ZodType<ListEndpointsZdrResponseBody, unknown>;
|
|
14
14
|
/** @internal */
|
|
15
15
|
export type ListEndpointsZdrResponseBody$Outbound = {
|
|
16
16
|
data: Array<models.PublicEndpoint$Outbound>;
|
|
17
17
|
};
|
|
18
18
|
/** @internal */
|
|
19
|
-
export declare const ListEndpointsZdrResponseBody$outboundSchema: z.ZodType<ListEndpointsZdrResponseBody$Outbound,
|
|
19
|
+
export declare const ListEndpointsZdrResponseBody$outboundSchema: z.ZodType<ListEndpointsZdrResponseBody$Outbound, ListEndpointsZdrResponseBody>;
|
|
20
20
|
/**
|
|
21
21
|
* @internal
|
|
22
22
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
23
23
|
*/
|
|
24
24
|
export declare namespace ListEndpointsZdrResponseBody$ {
|
|
25
25
|
/** @deprecated use `ListEndpointsZdrResponseBody$inboundSchema` instead. */
|
|
26
|
-
const inboundSchema: z.ZodType<ListEndpointsZdrResponseBody, z.
|
|
26
|
+
const inboundSchema: z.ZodType<ListEndpointsZdrResponseBody, unknown, z.core.$ZodTypeInternals<ListEndpointsZdrResponseBody, unknown>>;
|
|
27
27
|
/** @deprecated use `ListEndpointsZdrResponseBody$outboundSchema` instead. */
|
|
28
|
-
const outboundSchema: z.ZodType<ListEndpointsZdrResponseBody$Outbound, z.
|
|
28
|
+
const outboundSchema: z.ZodType<ListEndpointsZdrResponseBody$Outbound, ListEndpointsZdrResponseBody, z.core.$ZodTypeInternals<ListEndpointsZdrResponseBody$Outbound, ListEndpointsZdrResponseBody>>;
|
|
29
29
|
/** @deprecated use `ListEndpointsZdrResponseBody$Outbound` instead. */
|
|
30
30
|
type Outbound = ListEndpointsZdrResponseBody$Outbound;
|
|
31
31
|
}
|
|
32
32
|
export declare function listEndpointsZdrResponseBodyToJSON(listEndpointsZdrResponseBody: ListEndpointsZdrResponseBody): string;
|
|
33
33
|
export declare function listEndpointsZdrResponseBodyFromJSON(jsonString: string): SafeParseResult<ListEndpointsZdrResponseBody, SDKValidationError>;
|
|
34
34
|
/** @internal */
|
|
35
|
-
export declare const ListEndpointsZdrResponse$inboundSchema: z.ZodType<ListEndpointsZdrResponse,
|
|
35
|
+
export declare const ListEndpointsZdrResponse$inboundSchema: z.ZodType<ListEndpointsZdrResponse, unknown>;
|
|
36
36
|
/** @internal */
|
|
37
37
|
export type ListEndpointsZdrResponse$Outbound = ListEndpointsZdrResponseBody$Outbound | models.ErrorResponse$Outbound;
|
|
38
38
|
/** @internal */
|
|
39
|
-
export declare const ListEndpointsZdrResponse$outboundSchema: z.ZodType<ListEndpointsZdrResponse$Outbound,
|
|
39
|
+
export declare const ListEndpointsZdrResponse$outboundSchema: z.ZodType<ListEndpointsZdrResponse$Outbound, ListEndpointsZdrResponse>;
|
|
40
40
|
/**
|
|
41
41
|
* @internal
|
|
42
42
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
43
43
|
*/
|
|
44
44
|
export declare namespace ListEndpointsZdrResponse$ {
|
|
45
45
|
/** @deprecated use `ListEndpointsZdrResponse$inboundSchema` instead. */
|
|
46
|
-
const inboundSchema: z.ZodType<ListEndpointsZdrResponse, z.
|
|
46
|
+
const inboundSchema: z.ZodType<ListEndpointsZdrResponse, unknown, z.core.$ZodTypeInternals<ListEndpointsZdrResponse, unknown>>;
|
|
47
47
|
/** @deprecated use `ListEndpointsZdrResponse$outboundSchema` instead. */
|
|
48
|
-
const outboundSchema: z.ZodType<ListEndpointsZdrResponse$Outbound, z.
|
|
48
|
+
const outboundSchema: z.ZodType<ListEndpointsZdrResponse$Outbound, ListEndpointsZdrResponse, z.core.$ZodTypeInternals<ListEndpointsZdrResponse$Outbound, ListEndpointsZdrResponse>>;
|
|
49
49
|
/** @deprecated use `ListEndpointsZdrResponse$Outbound` instead. */
|
|
50
50
|
type Outbound = ListEndpointsZdrResponse$Outbound;
|
|
51
51
|
}
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import * as z from "zod/
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
2
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
3
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
4
|
import * as models from "../index.js";
|
|
5
5
|
export type ListModelsCountResponse = models.ErrorResponse | models.ModelsCountResponse;
|
|
6
6
|
/** @internal */
|
|
7
|
-
export declare const ListModelsCountResponse$inboundSchema: z.ZodType<ListModelsCountResponse,
|
|
7
|
+
export declare const ListModelsCountResponse$inboundSchema: z.ZodType<ListModelsCountResponse, unknown>;
|
|
8
8
|
/** @internal */
|
|
9
9
|
export type ListModelsCountResponse$Outbound = models.ErrorResponse$Outbound | models.ModelsCountResponse$Outbound;
|
|
10
10
|
/** @internal */
|
|
11
|
-
export declare const ListModelsCountResponse$outboundSchema: z.ZodType<ListModelsCountResponse$Outbound,
|
|
11
|
+
export declare const ListModelsCountResponse$outboundSchema: z.ZodType<ListModelsCountResponse$Outbound, ListModelsCountResponse>;
|
|
12
12
|
/**
|
|
13
13
|
* @internal
|
|
14
14
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
15
15
|
*/
|
|
16
16
|
export declare namespace ListModelsCountResponse$ {
|
|
17
17
|
/** @deprecated use `ListModelsCountResponse$inboundSchema` instead. */
|
|
18
|
-
const inboundSchema: z.ZodType<ListModelsCountResponse, z.
|
|
18
|
+
const inboundSchema: z.ZodType<ListModelsCountResponse, unknown, z.core.$ZodTypeInternals<ListModelsCountResponse, unknown>>;
|
|
19
19
|
/** @deprecated use `ListModelsCountResponse$outboundSchema` instead. */
|
|
20
|
-
const outboundSchema: z.ZodType<ListModelsCountResponse$Outbound, z.
|
|
20
|
+
const outboundSchema: z.ZodType<ListModelsCountResponse$Outbound, ListModelsCountResponse, z.core.$ZodTypeInternals<ListModelsCountResponse$Outbound, ListModelsCountResponse>>;
|
|
21
21
|
/** @deprecated use `ListModelsCountResponse$Outbound` instead. */
|
|
22
22
|
type Outbound = ListModelsCountResponse$Outbound;
|
|
23
23
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as z from "zod/
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
2
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
3
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
4
|
import * as models from "../index.js";
|
|
@@ -7,42 +7,42 @@ export type ListModelsUserSecurity = {
|
|
|
7
7
|
};
|
|
8
8
|
export type ListModelsUserResponse = models.ErrorResponse | models.ModelsListResponse;
|
|
9
9
|
/** @internal */
|
|
10
|
-
export declare const ListModelsUserSecurity$inboundSchema: z.ZodType<ListModelsUserSecurity,
|
|
10
|
+
export declare const ListModelsUserSecurity$inboundSchema: z.ZodType<ListModelsUserSecurity, unknown>;
|
|
11
11
|
/** @internal */
|
|
12
12
|
export type ListModelsUserSecurity$Outbound = {
|
|
13
13
|
bearer: string;
|
|
14
14
|
};
|
|
15
15
|
/** @internal */
|
|
16
|
-
export declare const ListModelsUserSecurity$outboundSchema: z.ZodType<ListModelsUserSecurity$Outbound,
|
|
16
|
+
export declare const ListModelsUserSecurity$outboundSchema: z.ZodType<ListModelsUserSecurity$Outbound, ListModelsUserSecurity>;
|
|
17
17
|
/**
|
|
18
18
|
* @internal
|
|
19
19
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
20
20
|
*/
|
|
21
21
|
export declare namespace ListModelsUserSecurity$ {
|
|
22
22
|
/** @deprecated use `ListModelsUserSecurity$inboundSchema` instead. */
|
|
23
|
-
const inboundSchema: z.ZodType<ListModelsUserSecurity, z.
|
|
23
|
+
const inboundSchema: z.ZodType<ListModelsUserSecurity, unknown, z.core.$ZodTypeInternals<ListModelsUserSecurity, unknown>>;
|
|
24
24
|
/** @deprecated use `ListModelsUserSecurity$outboundSchema` instead. */
|
|
25
|
-
const outboundSchema: z.ZodType<ListModelsUserSecurity$Outbound, z.
|
|
25
|
+
const outboundSchema: z.ZodType<ListModelsUserSecurity$Outbound, ListModelsUserSecurity, z.core.$ZodTypeInternals<ListModelsUserSecurity$Outbound, ListModelsUserSecurity>>;
|
|
26
26
|
/** @deprecated use `ListModelsUserSecurity$Outbound` instead. */
|
|
27
27
|
type Outbound = ListModelsUserSecurity$Outbound;
|
|
28
28
|
}
|
|
29
29
|
export declare function listModelsUserSecurityToJSON(listModelsUserSecurity: ListModelsUserSecurity): string;
|
|
30
30
|
export declare function listModelsUserSecurityFromJSON(jsonString: string): SafeParseResult<ListModelsUserSecurity, SDKValidationError>;
|
|
31
31
|
/** @internal */
|
|
32
|
-
export declare const ListModelsUserResponse$inboundSchema: z.ZodType<ListModelsUserResponse,
|
|
32
|
+
export declare const ListModelsUserResponse$inboundSchema: z.ZodType<ListModelsUserResponse, unknown>;
|
|
33
33
|
/** @internal */
|
|
34
34
|
export type ListModelsUserResponse$Outbound = models.ErrorResponse$Outbound | models.ModelsListResponse$Outbound;
|
|
35
35
|
/** @internal */
|
|
36
|
-
export declare const ListModelsUserResponse$outboundSchema: z.ZodType<ListModelsUserResponse$Outbound,
|
|
36
|
+
export declare const ListModelsUserResponse$outboundSchema: z.ZodType<ListModelsUserResponse$Outbound, ListModelsUserResponse>;
|
|
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 ListModelsUserResponse$ {
|
|
42
42
|
/** @deprecated use `ListModelsUserResponse$inboundSchema` instead. */
|
|
43
|
-
const inboundSchema: z.ZodType<ListModelsUserResponse, z.
|
|
43
|
+
const inboundSchema: z.ZodType<ListModelsUserResponse, unknown, z.core.$ZodTypeInternals<ListModelsUserResponse, unknown>>;
|
|
44
44
|
/** @deprecated use `ListModelsUserResponse$outboundSchema` instead. */
|
|
45
|
-
const outboundSchema: z.ZodType<ListModelsUserResponse$Outbound, z.
|
|
45
|
+
const outboundSchema: z.ZodType<ListModelsUserResponse$Outbound, ListModelsUserResponse, z.core.$ZodTypeInternals<ListModelsUserResponse$Outbound, ListModelsUserResponse>>;
|
|
46
46
|
/** @deprecated use `ListModelsUserResponse$Outbound` instead. */
|
|
47
47
|
type Outbound = ListModelsUserResponse$Outbound;
|
|
48
48
|
}
|
|
@@ -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
|
/**
|
|
@@ -43,30 +43,30 @@ export type ListProvidersResponse = {
|
|
|
43
43
|
data: Array<ListProvidersData>;
|
|
44
44
|
};
|
|
45
45
|
/** @internal */
|
|
46
|
-
export declare const ErrorT$inboundSchema: z.ZodType<ErrorT,
|
|
46
|
+
export declare const ErrorT$inboundSchema: z.ZodType<ErrorT, unknown>;
|
|
47
47
|
/** @internal */
|
|
48
48
|
export type ErrorT$Outbound = {
|
|
49
49
|
code: number;
|
|
50
50
|
message: string;
|
|
51
51
|
};
|
|
52
52
|
/** @internal */
|
|
53
|
-
export declare const ErrorT$outboundSchema: z.ZodType<ErrorT$Outbound,
|
|
53
|
+
export declare const ErrorT$outboundSchema: z.ZodType<ErrorT$Outbound, ErrorT>;
|
|
54
54
|
/**
|
|
55
55
|
* @internal
|
|
56
56
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
57
57
|
*/
|
|
58
58
|
export declare namespace ErrorT$ {
|
|
59
59
|
/** @deprecated use `ErrorT$inboundSchema` instead. */
|
|
60
|
-
const inboundSchema: z.ZodType<ErrorT, z.
|
|
60
|
+
const inboundSchema: z.ZodType<ErrorT, unknown, z.core.$ZodTypeInternals<ErrorT, unknown>>;
|
|
61
61
|
/** @deprecated use `ErrorT$outboundSchema` instead. */
|
|
62
|
-
const outboundSchema: z.ZodType<ErrorT$Outbound, z.
|
|
62
|
+
const outboundSchema: z.ZodType<ErrorT$Outbound, ErrorT, z.core.$ZodTypeInternals<ErrorT$Outbound, ErrorT>>;
|
|
63
63
|
/** @deprecated use `ErrorT$Outbound` instead. */
|
|
64
64
|
type Outbound = ErrorT$Outbound;
|
|
65
65
|
}
|
|
66
66
|
export declare function errorToJSON(errorT: ErrorT): string;
|
|
67
67
|
export declare function errorFromJSON(jsonString: string): SafeParseResult<ErrorT, SDKValidationError>;
|
|
68
68
|
/** @internal */
|
|
69
|
-
export declare const ListProvidersData$inboundSchema: z.ZodType<ListProvidersData,
|
|
69
|
+
export declare const ListProvidersData$inboundSchema: z.ZodType<ListProvidersData, unknown>;
|
|
70
70
|
/** @internal */
|
|
71
71
|
export type ListProvidersData$Outbound = {
|
|
72
72
|
name: string;
|
|
@@ -76,38 +76,38 @@ export type ListProvidersData$Outbound = {
|
|
|
76
76
|
status_page_url?: string | null | undefined;
|
|
77
77
|
};
|
|
78
78
|
/** @internal */
|
|
79
|
-
export declare const ListProvidersData$outboundSchema: z.ZodType<ListProvidersData$Outbound,
|
|
79
|
+
export declare const ListProvidersData$outboundSchema: z.ZodType<ListProvidersData$Outbound, ListProvidersData>;
|
|
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 ListProvidersData$ {
|
|
85
85
|
/** @deprecated use `ListProvidersData$inboundSchema` instead. */
|
|
86
|
-
const inboundSchema: z.ZodType<ListProvidersData, z.
|
|
86
|
+
const inboundSchema: z.ZodType<ListProvidersData, unknown, z.core.$ZodTypeInternals<ListProvidersData, unknown>>;
|
|
87
87
|
/** @deprecated use `ListProvidersData$outboundSchema` instead. */
|
|
88
|
-
const outboundSchema: z.ZodType<ListProvidersData$Outbound, z.
|
|
88
|
+
const outboundSchema: z.ZodType<ListProvidersData$Outbound, ListProvidersData, z.core.$ZodTypeInternals<ListProvidersData$Outbound, ListProvidersData>>;
|
|
89
89
|
/** @deprecated use `ListProvidersData$Outbound` instead. */
|
|
90
90
|
type Outbound = ListProvidersData$Outbound;
|
|
91
91
|
}
|
|
92
92
|
export declare function listProvidersDataToJSON(listProvidersData: ListProvidersData): string;
|
|
93
93
|
export declare function listProvidersDataFromJSON(jsonString: string): SafeParseResult<ListProvidersData, SDKValidationError>;
|
|
94
94
|
/** @internal */
|
|
95
|
-
export declare const ListProvidersResponse$inboundSchema: z.ZodType<ListProvidersResponse,
|
|
95
|
+
export declare const ListProvidersResponse$inboundSchema: z.ZodType<ListProvidersResponse, unknown>;
|
|
96
96
|
/** @internal */
|
|
97
97
|
export type ListProvidersResponse$Outbound = {
|
|
98
98
|
data: Array<ListProvidersData$Outbound>;
|
|
99
99
|
};
|
|
100
100
|
/** @internal */
|
|
101
|
-
export declare const ListProvidersResponse$outboundSchema: z.ZodType<ListProvidersResponse$Outbound,
|
|
101
|
+
export declare const ListProvidersResponse$outboundSchema: z.ZodType<ListProvidersResponse$Outbound, ListProvidersResponse>;
|
|
102
102
|
/**
|
|
103
103
|
* @internal
|
|
104
104
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
105
105
|
*/
|
|
106
106
|
export declare namespace ListProvidersResponse$ {
|
|
107
107
|
/** @deprecated use `ListProvidersResponse$inboundSchema` instead. */
|
|
108
|
-
const inboundSchema: z.ZodType<ListProvidersResponse, z.
|
|
108
|
+
const inboundSchema: z.ZodType<ListProvidersResponse, unknown, z.core.$ZodTypeInternals<ListProvidersResponse, unknown>>;
|
|
109
109
|
/** @deprecated use `ListProvidersResponse$outboundSchema` instead. */
|
|
110
|
-
const outboundSchema: z.ZodType<ListProvidersResponse$Outbound, z.
|
|
110
|
+
const outboundSchema: z.ZodType<ListProvidersResponse$Outbound, ListProvidersResponse, z.core.$ZodTypeInternals<ListProvidersResponse$Outbound, ListProvidersResponse>>;
|
|
111
111
|
/** @deprecated use `ListProvidersResponse$Outbound` instead. */
|
|
112
112
|
type Outbound = ListProvidersResponse$Outbound;
|
|
113
113
|
}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
|
-
import * as z from "zod/
|
|
4
|
+
import * as z from "zod/v4";
|
|
5
5
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
6
6
|
import { safeParse } from "../../lib/schemas.js";
|
|
7
7
|
/** @internal */
|
|
8
|
-
export const ErrorT$inboundSchema = z
|
|
9
|
-
.object({
|
|
8
|
+
export const ErrorT$inboundSchema = z.object({
|
|
10
9
|
code: z.number(),
|
|
11
10
|
message: z.string(),
|
|
12
11
|
});
|
|
13
12
|
/** @internal */
|
|
14
|
-
export const ErrorT$outboundSchema = z
|
|
13
|
+
export const ErrorT$outboundSchema = z
|
|
14
|
+
.object({
|
|
15
15
|
code: z.number(),
|
|
16
16
|
message: z.string(),
|
|
17
17
|
});
|
|
@@ -1,24 +1,24 @@
|
|
|
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";
|
|
5
5
|
import * as models from "../index.js";
|
|
6
6
|
export type SendChatCompletionRequestResponse = models.ChatResponse | EventStream<models.ChatStreamingResponseChunk>;
|
|
7
7
|
/** @internal */
|
|
8
|
-
export declare const SendChatCompletionRequestResponse$inboundSchema: z.ZodType<SendChatCompletionRequestResponse,
|
|
8
|
+
export declare const SendChatCompletionRequestResponse$inboundSchema: z.ZodType<SendChatCompletionRequestResponse, unknown>;
|
|
9
9
|
/** @internal */
|
|
10
10
|
export type SendChatCompletionRequestResponse$Outbound = models.ChatResponse$Outbound | never;
|
|
11
11
|
/** @internal */
|
|
12
|
-
export declare const SendChatCompletionRequestResponse$outboundSchema: z.ZodType<SendChatCompletionRequestResponse$Outbound,
|
|
12
|
+
export declare const SendChatCompletionRequestResponse$outboundSchema: z.ZodType<SendChatCompletionRequestResponse$Outbound, SendChatCompletionRequestResponse>;
|
|
13
13
|
/**
|
|
14
14
|
* @internal
|
|
15
15
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
16
16
|
*/
|
|
17
17
|
export declare namespace SendChatCompletionRequestResponse$ {
|
|
18
18
|
/** @deprecated use `SendChatCompletionRequestResponse$inboundSchema` instead. */
|
|
19
|
-
const inboundSchema: z.ZodType<SendChatCompletionRequestResponse, z.
|
|
19
|
+
const inboundSchema: z.ZodType<SendChatCompletionRequestResponse, unknown, z.core.$ZodTypeInternals<SendChatCompletionRequestResponse, unknown>>;
|
|
20
20
|
/** @deprecated use `SendChatCompletionRequestResponse$outboundSchema` instead. */
|
|
21
|
-
const outboundSchema: z.ZodType<models.ChatResponse$Outbound, z.
|
|
21
|
+
const outboundSchema: z.ZodType<models.ChatResponse$Outbound, SendChatCompletionRequestResponse, z.core.$ZodTypeInternals<models.ChatResponse$Outbound, SendChatCompletionRequestResponse>>;
|
|
22
22
|
/** @deprecated use `SendChatCompletionRequestResponse$Outbound` instead. */
|
|
23
23
|
type Outbound = SendChatCompletionRequestResponse$Outbound;
|
|
24
24
|
}
|
|
@@ -1,15 +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 { EventStream } from "../../lib/event-streams.js";
|
|
6
6
|
import { safeParse } from "../../lib/schemas.js";
|
|
7
7
|
import * as models from "../index.js";
|
|
8
8
|
/** @internal */
|
|
9
9
|
export const SendChatCompletionRequestResponse$inboundSchema = z.union([
|
|
10
10
|
models.ChatResponse$inboundSchema,
|
|
11
|
-
z
|
|
12
|
-
.instanceof((ReadableStream))
|
|
11
|
+
z.custom(x => x instanceof ReadableStream)
|
|
13
12
|
.transform(stream => {
|
|
14
13
|
return new EventStream(stream, rawEvent => {
|
|
15
14
|
if (rawEvent.data === "[DONE]")
|