@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 { OpenEnum } from "../../types/enums.js";
|
|
3
3
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
4
4
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
@@ -159,43 +159,43 @@ export type GetGenerationResponse = {
|
|
|
159
159
|
data: GetGenerationData;
|
|
160
160
|
};
|
|
161
161
|
/** @internal */
|
|
162
|
-
export declare const GetGenerationRequest$inboundSchema: z.ZodType<GetGenerationRequest,
|
|
162
|
+
export declare const GetGenerationRequest$inboundSchema: z.ZodType<GetGenerationRequest, unknown>;
|
|
163
163
|
/** @internal */
|
|
164
164
|
export type GetGenerationRequest$Outbound = {
|
|
165
165
|
id: string;
|
|
166
166
|
};
|
|
167
167
|
/** @internal */
|
|
168
|
-
export declare const GetGenerationRequest$outboundSchema: z.ZodType<GetGenerationRequest$Outbound,
|
|
168
|
+
export declare const GetGenerationRequest$outboundSchema: z.ZodType<GetGenerationRequest$Outbound, GetGenerationRequest>;
|
|
169
169
|
/**
|
|
170
170
|
* @internal
|
|
171
171
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
172
172
|
*/
|
|
173
173
|
export declare namespace GetGenerationRequest$ {
|
|
174
174
|
/** @deprecated use `GetGenerationRequest$inboundSchema` instead. */
|
|
175
|
-
const inboundSchema: z.ZodType<GetGenerationRequest, z.
|
|
175
|
+
const inboundSchema: z.ZodType<GetGenerationRequest, unknown, z.core.$ZodTypeInternals<GetGenerationRequest, unknown>>;
|
|
176
176
|
/** @deprecated use `GetGenerationRequest$outboundSchema` instead. */
|
|
177
|
-
const outboundSchema: z.ZodType<GetGenerationRequest$Outbound, z.
|
|
177
|
+
const outboundSchema: z.ZodType<GetGenerationRequest$Outbound, GetGenerationRequest, z.core.$ZodTypeInternals<GetGenerationRequest$Outbound, GetGenerationRequest>>;
|
|
178
178
|
/** @deprecated use `GetGenerationRequest$Outbound` instead. */
|
|
179
179
|
type Outbound = GetGenerationRequest$Outbound;
|
|
180
180
|
}
|
|
181
181
|
export declare function getGenerationRequestToJSON(getGenerationRequest: GetGenerationRequest): string;
|
|
182
182
|
export declare function getGenerationRequestFromJSON(jsonString: string): SafeParseResult<GetGenerationRequest, SDKValidationError>;
|
|
183
183
|
/** @internal */
|
|
184
|
-
export declare const ApiType$inboundSchema: z.ZodType<ApiType,
|
|
184
|
+
export declare const ApiType$inboundSchema: z.ZodType<ApiType, unknown>;
|
|
185
185
|
/** @internal */
|
|
186
|
-
export declare const ApiType$outboundSchema: z.ZodType<ApiType,
|
|
186
|
+
export declare const ApiType$outboundSchema: z.ZodType<ApiType, ApiType>;
|
|
187
187
|
/**
|
|
188
188
|
* @internal
|
|
189
189
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
190
190
|
*/
|
|
191
191
|
export declare namespace ApiType$ {
|
|
192
192
|
/** @deprecated use `ApiType$inboundSchema` instead. */
|
|
193
|
-
const inboundSchema: z.ZodType<ApiType, z.
|
|
193
|
+
const inboundSchema: z.ZodType<ApiType, unknown, z.core.$ZodTypeInternals<ApiType, unknown>>;
|
|
194
194
|
/** @deprecated use `ApiType$outboundSchema` instead. */
|
|
195
|
-
const outboundSchema: z.ZodType<ApiType, z.
|
|
195
|
+
const outboundSchema: z.ZodType<ApiType, ApiType, z.core.$ZodTypeInternals<ApiType, ApiType>>;
|
|
196
196
|
}
|
|
197
197
|
/** @internal */
|
|
198
|
-
export declare const GetGenerationData$inboundSchema: z.ZodType<GetGenerationData,
|
|
198
|
+
export declare const GetGenerationData$inboundSchema: z.ZodType<GetGenerationData, unknown>;
|
|
199
199
|
/** @internal */
|
|
200
200
|
export type GetGenerationData$Outbound = {
|
|
201
201
|
id: string;
|
|
@@ -232,38 +232,38 @@ export type GetGenerationData$Outbound = {
|
|
|
232
232
|
api_type: string | null;
|
|
233
233
|
};
|
|
234
234
|
/** @internal */
|
|
235
|
-
export declare const GetGenerationData$outboundSchema: z.ZodType<GetGenerationData$Outbound,
|
|
235
|
+
export declare const GetGenerationData$outboundSchema: z.ZodType<GetGenerationData$Outbound, GetGenerationData>;
|
|
236
236
|
/**
|
|
237
237
|
* @internal
|
|
238
238
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
239
239
|
*/
|
|
240
240
|
export declare namespace GetGenerationData$ {
|
|
241
241
|
/** @deprecated use `GetGenerationData$inboundSchema` instead. */
|
|
242
|
-
const inboundSchema: z.ZodType<GetGenerationData, z.
|
|
242
|
+
const inboundSchema: z.ZodType<GetGenerationData, unknown, z.core.$ZodTypeInternals<GetGenerationData, unknown>>;
|
|
243
243
|
/** @deprecated use `GetGenerationData$outboundSchema` instead. */
|
|
244
|
-
const outboundSchema: z.ZodType<GetGenerationData$Outbound, z.
|
|
244
|
+
const outboundSchema: z.ZodType<GetGenerationData$Outbound, GetGenerationData, z.core.$ZodTypeInternals<GetGenerationData$Outbound, GetGenerationData>>;
|
|
245
245
|
/** @deprecated use `GetGenerationData$Outbound` instead. */
|
|
246
246
|
type Outbound = GetGenerationData$Outbound;
|
|
247
247
|
}
|
|
248
248
|
export declare function getGenerationDataToJSON(getGenerationData: GetGenerationData): string;
|
|
249
249
|
export declare function getGenerationDataFromJSON(jsonString: string): SafeParseResult<GetGenerationData, SDKValidationError>;
|
|
250
250
|
/** @internal */
|
|
251
|
-
export declare const GetGenerationResponse$inboundSchema: z.ZodType<GetGenerationResponse,
|
|
251
|
+
export declare const GetGenerationResponse$inboundSchema: z.ZodType<GetGenerationResponse, unknown>;
|
|
252
252
|
/** @internal */
|
|
253
253
|
export type GetGenerationResponse$Outbound = {
|
|
254
254
|
data: GetGenerationData$Outbound;
|
|
255
255
|
};
|
|
256
256
|
/** @internal */
|
|
257
|
-
export declare const GetGenerationResponse$outboundSchema: z.ZodType<GetGenerationResponse$Outbound,
|
|
257
|
+
export declare const GetGenerationResponse$outboundSchema: z.ZodType<GetGenerationResponse$Outbound, GetGenerationResponse>;
|
|
258
258
|
/**
|
|
259
259
|
* @internal
|
|
260
260
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
261
261
|
*/
|
|
262
262
|
export declare namespace GetGenerationResponse$ {
|
|
263
263
|
/** @deprecated use `GetGenerationResponse$inboundSchema` instead. */
|
|
264
|
-
const inboundSchema: z.ZodType<GetGenerationResponse, z.
|
|
264
|
+
const inboundSchema: z.ZodType<GetGenerationResponse, unknown, z.core.$ZodTypeInternals<GetGenerationResponse, unknown>>;
|
|
265
265
|
/** @deprecated use `GetGenerationResponse$outboundSchema` instead. */
|
|
266
|
-
const outboundSchema: z.ZodType<GetGenerationResponse$Outbound, z.
|
|
266
|
+
const outboundSchema: z.ZodType<GetGenerationResponse$Outbound, GetGenerationResponse, z.core.$ZodTypeInternals<GetGenerationResponse$Outbound, GetGenerationResponse>>;
|
|
267
267
|
/** @deprecated use `GetGenerationResponse$Outbound` instead. */
|
|
268
268
|
type Outbound = GetGenerationResponse$Outbound;
|
|
269
269
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
|
-
import * as z from "zod/
|
|
4
|
+
import * as z from "zod/v4";
|
|
5
5
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
6
6
|
import { safeParse } from "../../lib/schemas.js";
|
|
7
7
|
import { catchUnrecognizedEnum, } from "../../types/enums.js";
|
|
@@ -40,12 +40,12 @@ export function getGenerationRequestFromJSON(jsonString) {
|
|
|
40
40
|
/** @internal */
|
|
41
41
|
export const ApiType$inboundSchema = z
|
|
42
42
|
.union([
|
|
43
|
-
z.
|
|
43
|
+
z.enum(ApiType),
|
|
44
44
|
z.string().transform(catchUnrecognizedEnum),
|
|
45
45
|
]);
|
|
46
46
|
/** @internal */
|
|
47
47
|
export const ApiType$outboundSchema = z.union([
|
|
48
|
-
z.
|
|
48
|
+
z.enum(ApiType),
|
|
49
49
|
z.string().and(z.custom()),
|
|
50
50
|
]);
|
|
51
51
|
/**
|
|
@@ -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 GetKeyRequest = {
|
|
@@ -94,29 +94,29 @@ export type GetKeyResponse = {
|
|
|
94
94
|
data: GetKeyData;
|
|
95
95
|
};
|
|
96
96
|
/** @internal */
|
|
97
|
-
export declare const GetKeyRequest$inboundSchema: z.ZodType<GetKeyRequest,
|
|
97
|
+
export declare const GetKeyRequest$inboundSchema: z.ZodType<GetKeyRequest, unknown>;
|
|
98
98
|
/** @internal */
|
|
99
99
|
export type GetKeyRequest$Outbound = {
|
|
100
100
|
hash: string;
|
|
101
101
|
};
|
|
102
102
|
/** @internal */
|
|
103
|
-
export declare const GetKeyRequest$outboundSchema: z.ZodType<GetKeyRequest$Outbound,
|
|
103
|
+
export declare const GetKeyRequest$outboundSchema: z.ZodType<GetKeyRequest$Outbound, GetKeyRequest>;
|
|
104
104
|
/**
|
|
105
105
|
* @internal
|
|
106
106
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
107
107
|
*/
|
|
108
108
|
export declare namespace GetKeyRequest$ {
|
|
109
109
|
/** @deprecated use `GetKeyRequest$inboundSchema` instead. */
|
|
110
|
-
const inboundSchema: z.ZodType<GetKeyRequest, z.
|
|
110
|
+
const inboundSchema: z.ZodType<GetKeyRequest, unknown, z.core.$ZodTypeInternals<GetKeyRequest, unknown>>;
|
|
111
111
|
/** @deprecated use `GetKeyRequest$outboundSchema` instead. */
|
|
112
|
-
const outboundSchema: z.ZodType<GetKeyRequest$Outbound, z.
|
|
112
|
+
const outboundSchema: z.ZodType<GetKeyRequest$Outbound, GetKeyRequest, z.core.$ZodTypeInternals<GetKeyRequest$Outbound, GetKeyRequest>>;
|
|
113
113
|
/** @deprecated use `GetKeyRequest$Outbound` instead. */
|
|
114
114
|
type Outbound = GetKeyRequest$Outbound;
|
|
115
115
|
}
|
|
116
116
|
export declare function getKeyRequestToJSON(getKeyRequest: GetKeyRequest): string;
|
|
117
117
|
export declare function getKeyRequestFromJSON(jsonString: string): SafeParseResult<GetKeyRequest, SDKValidationError>;
|
|
118
118
|
/** @internal */
|
|
119
|
-
export declare const GetKeyData$inboundSchema: z.ZodType<GetKeyData,
|
|
119
|
+
export declare const GetKeyData$inboundSchema: z.ZodType<GetKeyData, unknown>;
|
|
120
120
|
/** @internal */
|
|
121
121
|
export type GetKeyData$Outbound = {
|
|
122
122
|
hash: string;
|
|
@@ -139,38 +139,38 @@ export type GetKeyData$Outbound = {
|
|
|
139
139
|
updated_at: string | null;
|
|
140
140
|
};
|
|
141
141
|
/** @internal */
|
|
142
|
-
export declare const GetKeyData$outboundSchema: z.ZodType<GetKeyData$Outbound,
|
|
142
|
+
export declare const GetKeyData$outboundSchema: z.ZodType<GetKeyData$Outbound, GetKeyData>;
|
|
143
143
|
/**
|
|
144
144
|
* @internal
|
|
145
145
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
146
146
|
*/
|
|
147
147
|
export declare namespace GetKeyData$ {
|
|
148
148
|
/** @deprecated use `GetKeyData$inboundSchema` instead. */
|
|
149
|
-
const inboundSchema: z.ZodType<GetKeyData, z.
|
|
149
|
+
const inboundSchema: z.ZodType<GetKeyData, unknown, z.core.$ZodTypeInternals<GetKeyData, unknown>>;
|
|
150
150
|
/** @deprecated use `GetKeyData$outboundSchema` instead. */
|
|
151
|
-
const outboundSchema: z.ZodType<GetKeyData$Outbound, z.
|
|
151
|
+
const outboundSchema: z.ZodType<GetKeyData$Outbound, GetKeyData, z.core.$ZodTypeInternals<GetKeyData$Outbound, GetKeyData>>;
|
|
152
152
|
/** @deprecated use `GetKeyData$Outbound` instead. */
|
|
153
153
|
type Outbound = GetKeyData$Outbound;
|
|
154
154
|
}
|
|
155
155
|
export declare function getKeyDataToJSON(getKeyData: GetKeyData): string;
|
|
156
156
|
export declare function getKeyDataFromJSON(jsonString: string): SafeParseResult<GetKeyData, SDKValidationError>;
|
|
157
157
|
/** @internal */
|
|
158
|
-
export declare const GetKeyResponse$inboundSchema: z.ZodType<GetKeyResponse,
|
|
158
|
+
export declare const GetKeyResponse$inboundSchema: z.ZodType<GetKeyResponse, unknown>;
|
|
159
159
|
/** @internal */
|
|
160
160
|
export type GetKeyResponse$Outbound = {
|
|
161
161
|
data: GetKeyData$Outbound;
|
|
162
162
|
};
|
|
163
163
|
/** @internal */
|
|
164
|
-
export declare const GetKeyResponse$outboundSchema: z.ZodType<GetKeyResponse$Outbound,
|
|
164
|
+
export declare const GetKeyResponse$outboundSchema: z.ZodType<GetKeyResponse$Outbound, GetKeyResponse>;
|
|
165
165
|
/**
|
|
166
166
|
* @internal
|
|
167
167
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
168
168
|
*/
|
|
169
169
|
export declare namespace GetKeyResponse$ {
|
|
170
170
|
/** @deprecated use `GetKeyResponse$inboundSchema` instead. */
|
|
171
|
-
const inboundSchema: z.ZodType<GetKeyResponse, z.
|
|
171
|
+
const inboundSchema: z.ZodType<GetKeyResponse, unknown, z.core.$ZodTypeInternals<GetKeyResponse, unknown>>;
|
|
172
172
|
/** @deprecated use `GetKeyResponse$outboundSchema` instead. */
|
|
173
|
-
const outboundSchema: z.ZodType<GetKeyResponse$Outbound, z.
|
|
173
|
+
const outboundSchema: z.ZodType<GetKeyResponse$Outbound, GetKeyResponse, z.core.$ZodTypeInternals<GetKeyResponse$Outbound, GetKeyResponse>>;
|
|
174
174
|
/** @deprecated use `GetKeyResponse$Outbound` instead. */
|
|
175
175
|
type Outbound = GetKeyResponse$Outbound;
|
|
176
176
|
}
|
|
@@ -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 GetKeyRequest$inboundSchema = z
|
|
8
|
+
export const GetKeyRequest$inboundSchema = z
|
|
9
|
+
.object({
|
|
9
10
|
hash: z.string(),
|
|
10
11
|
});
|
|
11
12
|
/** @internal */
|
|
@@ -30,7 +31,8 @@ export function getKeyRequestFromJSON(jsonString) {
|
|
|
30
31
|
return safeParse(jsonString, (x) => GetKeyRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetKeyRequest' from JSON`);
|
|
31
32
|
}
|
|
32
33
|
/** @internal */
|
|
33
|
-
export const GetKeyData$inboundSchema = z
|
|
34
|
+
export const GetKeyData$inboundSchema = z
|
|
35
|
+
.object({
|
|
34
36
|
hash: z.string(),
|
|
35
37
|
name: z.string(),
|
|
36
38
|
label: z.string(),
|
|
@@ -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,7 +10,7 @@ export type GetModelsRequest = {
|
|
|
10
10
|
};
|
|
11
11
|
export type GetModelsResponse = models.ErrorResponse | models.ModelsListResponse | string;
|
|
12
12
|
/** @internal */
|
|
13
|
-
export declare const GetModelsRequest$inboundSchema: z.ZodType<GetModelsRequest,
|
|
13
|
+
export declare const GetModelsRequest$inboundSchema: z.ZodType<GetModelsRequest, unknown>;
|
|
14
14
|
/** @internal */
|
|
15
15
|
export type GetModelsRequest$Outbound = {
|
|
16
16
|
category?: string | undefined;
|
|
@@ -19,36 +19,36 @@ export type GetModelsRequest$Outbound = {
|
|
|
19
19
|
use_rss_chat_links?: string | undefined;
|
|
20
20
|
};
|
|
21
21
|
/** @internal */
|
|
22
|
-
export declare const GetModelsRequest$outboundSchema: z.ZodType<GetModelsRequest$Outbound,
|
|
22
|
+
export declare const GetModelsRequest$outboundSchema: z.ZodType<GetModelsRequest$Outbound, GetModelsRequest>;
|
|
23
23
|
/**
|
|
24
24
|
* @internal
|
|
25
25
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
26
26
|
*/
|
|
27
27
|
export declare namespace GetModelsRequest$ {
|
|
28
28
|
/** @deprecated use `GetModelsRequest$inboundSchema` instead. */
|
|
29
|
-
const inboundSchema: z.ZodType<GetModelsRequest, z.
|
|
29
|
+
const inboundSchema: z.ZodType<GetModelsRequest, unknown, z.core.$ZodTypeInternals<GetModelsRequest, unknown>>;
|
|
30
30
|
/** @deprecated use `GetModelsRequest$outboundSchema` instead. */
|
|
31
|
-
const outboundSchema: z.ZodType<GetModelsRequest$Outbound, z.
|
|
31
|
+
const outboundSchema: z.ZodType<GetModelsRequest$Outbound, GetModelsRequest, z.core.$ZodTypeInternals<GetModelsRequest$Outbound, GetModelsRequest>>;
|
|
32
32
|
/** @deprecated use `GetModelsRequest$Outbound` instead. */
|
|
33
33
|
type Outbound = GetModelsRequest$Outbound;
|
|
34
34
|
}
|
|
35
35
|
export declare function getModelsRequestToJSON(getModelsRequest: GetModelsRequest): string;
|
|
36
36
|
export declare function getModelsRequestFromJSON(jsonString: string): SafeParseResult<GetModelsRequest, SDKValidationError>;
|
|
37
37
|
/** @internal */
|
|
38
|
-
export declare const GetModelsResponse$inboundSchema: z.ZodType<GetModelsResponse,
|
|
38
|
+
export declare const GetModelsResponse$inboundSchema: z.ZodType<GetModelsResponse, unknown>;
|
|
39
39
|
/** @internal */
|
|
40
40
|
export type GetModelsResponse$Outbound = models.ErrorResponse$Outbound | models.ModelsListResponse$Outbound | string;
|
|
41
41
|
/** @internal */
|
|
42
|
-
export declare const GetModelsResponse$outboundSchema: z.ZodType<GetModelsResponse$Outbound,
|
|
42
|
+
export declare const GetModelsResponse$outboundSchema: z.ZodType<GetModelsResponse$Outbound, GetModelsResponse>;
|
|
43
43
|
/**
|
|
44
44
|
* @internal
|
|
45
45
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
46
46
|
*/
|
|
47
47
|
export declare namespace GetModelsResponse$ {
|
|
48
48
|
/** @deprecated use `GetModelsResponse$inboundSchema` instead. */
|
|
49
|
-
const inboundSchema: z.ZodType<GetModelsResponse, z.
|
|
49
|
+
const inboundSchema: z.ZodType<GetModelsResponse, unknown, z.core.$ZodTypeInternals<GetModelsResponse, unknown>>;
|
|
50
50
|
/** @deprecated use `GetModelsResponse$outboundSchema` instead. */
|
|
51
|
-
const outboundSchema: z.ZodType<GetModelsResponse$Outbound, z.
|
|
51
|
+
const outboundSchema: z.ZodType<GetModelsResponse$Outbound, GetModelsResponse, z.core.$ZodTypeInternals<GetModelsResponse$Outbound, GetModelsResponse>>;
|
|
52
52
|
/** @deprecated use `GetModelsResponse$Outbound` instead. */
|
|
53
53
|
type Outbound = GetModelsResponse$Outbound;
|
|
54
54
|
}
|
|
@@ -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 * as models from "../index.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as z from "zod/
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
2
|
import { OpenEnum } from "../../types/enums.js";
|
|
3
3
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
4
4
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
@@ -129,43 +129,43 @@ export type GetParametersResponse = {
|
|
|
129
129
|
data: GetParametersData;
|
|
130
130
|
};
|
|
131
131
|
/** @internal */
|
|
132
|
-
export declare const GetParametersSecurity$inboundSchema: z.ZodType<GetParametersSecurity,
|
|
132
|
+
export declare const GetParametersSecurity$inboundSchema: z.ZodType<GetParametersSecurity, unknown>;
|
|
133
133
|
/** @internal */
|
|
134
134
|
export type GetParametersSecurity$Outbound = {
|
|
135
135
|
bearer: string;
|
|
136
136
|
};
|
|
137
137
|
/** @internal */
|
|
138
|
-
export declare const GetParametersSecurity$outboundSchema: z.ZodType<GetParametersSecurity$Outbound,
|
|
138
|
+
export declare const GetParametersSecurity$outboundSchema: z.ZodType<GetParametersSecurity$Outbound, GetParametersSecurity>;
|
|
139
139
|
/**
|
|
140
140
|
* @internal
|
|
141
141
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
142
142
|
*/
|
|
143
143
|
export declare namespace GetParametersSecurity$ {
|
|
144
144
|
/** @deprecated use `GetParametersSecurity$inboundSchema` instead. */
|
|
145
|
-
const inboundSchema: z.ZodType<GetParametersSecurity, z.
|
|
145
|
+
const inboundSchema: z.ZodType<GetParametersSecurity, unknown, z.core.$ZodTypeInternals<GetParametersSecurity, unknown>>;
|
|
146
146
|
/** @deprecated use `GetParametersSecurity$outboundSchema` instead. */
|
|
147
|
-
const outboundSchema: z.ZodType<GetParametersSecurity$Outbound, z.
|
|
147
|
+
const outboundSchema: z.ZodType<GetParametersSecurity$Outbound, GetParametersSecurity, z.core.$ZodTypeInternals<GetParametersSecurity$Outbound, GetParametersSecurity>>;
|
|
148
148
|
/** @deprecated use `GetParametersSecurity$Outbound` instead. */
|
|
149
149
|
type Outbound = GetParametersSecurity$Outbound;
|
|
150
150
|
}
|
|
151
151
|
export declare function getParametersSecurityToJSON(getParametersSecurity: GetParametersSecurity): string;
|
|
152
152
|
export declare function getParametersSecurityFromJSON(jsonString: string): SafeParseResult<GetParametersSecurity, SDKValidationError>;
|
|
153
153
|
/** @internal */
|
|
154
|
-
export declare const Provider$inboundSchema: z.ZodType<Provider,
|
|
154
|
+
export declare const Provider$inboundSchema: z.ZodType<Provider, unknown>;
|
|
155
155
|
/** @internal */
|
|
156
|
-
export declare const Provider$outboundSchema: z.ZodType<Provider,
|
|
156
|
+
export declare const Provider$outboundSchema: z.ZodType<Provider, Provider>;
|
|
157
157
|
/**
|
|
158
158
|
* @internal
|
|
159
159
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
160
160
|
*/
|
|
161
161
|
export declare namespace Provider$ {
|
|
162
162
|
/** @deprecated use `Provider$inboundSchema` instead. */
|
|
163
|
-
const inboundSchema: z.ZodType<Provider, z.
|
|
163
|
+
const inboundSchema: z.ZodType<Provider, unknown, z.core.$ZodTypeInternals<Provider, unknown>>;
|
|
164
164
|
/** @deprecated use `Provider$outboundSchema` instead. */
|
|
165
|
-
const outboundSchema: z.ZodType<Provider, z.
|
|
165
|
+
const outboundSchema: z.ZodType<Provider, Provider, z.core.$ZodTypeInternals<Provider, Provider>>;
|
|
166
166
|
}
|
|
167
167
|
/** @internal */
|
|
168
|
-
export declare const GetParametersRequest$inboundSchema: z.ZodType<GetParametersRequest,
|
|
168
|
+
export declare const GetParametersRequest$inboundSchema: z.ZodType<GetParametersRequest, unknown>;
|
|
169
169
|
/** @internal */
|
|
170
170
|
export type GetParametersRequest$Outbound = {
|
|
171
171
|
author: string;
|
|
@@ -173,75 +173,75 @@ export type GetParametersRequest$Outbound = {
|
|
|
173
173
|
provider?: string | undefined;
|
|
174
174
|
};
|
|
175
175
|
/** @internal */
|
|
176
|
-
export declare const GetParametersRequest$outboundSchema: z.ZodType<GetParametersRequest$Outbound,
|
|
176
|
+
export declare const GetParametersRequest$outboundSchema: z.ZodType<GetParametersRequest$Outbound, GetParametersRequest>;
|
|
177
177
|
/**
|
|
178
178
|
* @internal
|
|
179
179
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
180
180
|
*/
|
|
181
181
|
export declare namespace GetParametersRequest$ {
|
|
182
182
|
/** @deprecated use `GetParametersRequest$inboundSchema` instead. */
|
|
183
|
-
const inboundSchema: z.ZodType<GetParametersRequest, z.
|
|
183
|
+
const inboundSchema: z.ZodType<GetParametersRequest, unknown, z.core.$ZodTypeInternals<GetParametersRequest, unknown>>;
|
|
184
184
|
/** @deprecated use `GetParametersRequest$outboundSchema` instead. */
|
|
185
|
-
const outboundSchema: z.ZodType<GetParametersRequest$Outbound, z.
|
|
185
|
+
const outboundSchema: z.ZodType<GetParametersRequest$Outbound, GetParametersRequest, z.core.$ZodTypeInternals<GetParametersRequest$Outbound, GetParametersRequest>>;
|
|
186
186
|
/** @deprecated use `GetParametersRequest$Outbound` instead. */
|
|
187
187
|
type Outbound = GetParametersRequest$Outbound;
|
|
188
188
|
}
|
|
189
189
|
export declare function getParametersRequestToJSON(getParametersRequest: GetParametersRequest): string;
|
|
190
190
|
export declare function getParametersRequestFromJSON(jsonString: string): SafeParseResult<GetParametersRequest, SDKValidationError>;
|
|
191
191
|
/** @internal */
|
|
192
|
-
export declare const SupportedParameter$inboundSchema: z.ZodType<SupportedParameter,
|
|
192
|
+
export declare const SupportedParameter$inboundSchema: z.ZodType<SupportedParameter, unknown>;
|
|
193
193
|
/** @internal */
|
|
194
|
-
export declare const SupportedParameter$outboundSchema: z.ZodType<SupportedParameter,
|
|
194
|
+
export declare const SupportedParameter$outboundSchema: z.ZodType<SupportedParameter, SupportedParameter>;
|
|
195
195
|
/**
|
|
196
196
|
* @internal
|
|
197
197
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
198
198
|
*/
|
|
199
199
|
export declare namespace SupportedParameter$ {
|
|
200
200
|
/** @deprecated use `SupportedParameter$inboundSchema` instead. */
|
|
201
|
-
const inboundSchema: z.ZodType<SupportedParameter, z.
|
|
201
|
+
const inboundSchema: z.ZodType<SupportedParameter, unknown, z.core.$ZodTypeInternals<SupportedParameter, unknown>>;
|
|
202
202
|
/** @deprecated use `SupportedParameter$outboundSchema` instead. */
|
|
203
|
-
const outboundSchema: z.ZodType<SupportedParameter, z.
|
|
203
|
+
const outboundSchema: z.ZodType<SupportedParameter, SupportedParameter, z.core.$ZodTypeInternals<SupportedParameter, SupportedParameter>>;
|
|
204
204
|
}
|
|
205
205
|
/** @internal */
|
|
206
|
-
export declare const GetParametersData$inboundSchema: z.ZodType<GetParametersData,
|
|
206
|
+
export declare const GetParametersData$inboundSchema: z.ZodType<GetParametersData, unknown>;
|
|
207
207
|
/** @internal */
|
|
208
208
|
export type GetParametersData$Outbound = {
|
|
209
209
|
model: string;
|
|
210
210
|
supported_parameters: Array<string>;
|
|
211
211
|
};
|
|
212
212
|
/** @internal */
|
|
213
|
-
export declare const GetParametersData$outboundSchema: z.ZodType<GetParametersData$Outbound,
|
|
213
|
+
export declare const GetParametersData$outboundSchema: z.ZodType<GetParametersData$Outbound, GetParametersData>;
|
|
214
214
|
/**
|
|
215
215
|
* @internal
|
|
216
216
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
217
217
|
*/
|
|
218
218
|
export declare namespace GetParametersData$ {
|
|
219
219
|
/** @deprecated use `GetParametersData$inboundSchema` instead. */
|
|
220
|
-
const inboundSchema: z.ZodType<GetParametersData, z.
|
|
220
|
+
const inboundSchema: z.ZodType<GetParametersData, unknown, z.core.$ZodTypeInternals<GetParametersData, unknown>>;
|
|
221
221
|
/** @deprecated use `GetParametersData$outboundSchema` instead. */
|
|
222
|
-
const outboundSchema: z.ZodType<GetParametersData$Outbound, z.
|
|
222
|
+
const outboundSchema: z.ZodType<GetParametersData$Outbound, GetParametersData, z.core.$ZodTypeInternals<GetParametersData$Outbound, GetParametersData>>;
|
|
223
223
|
/** @deprecated use `GetParametersData$Outbound` instead. */
|
|
224
224
|
type Outbound = GetParametersData$Outbound;
|
|
225
225
|
}
|
|
226
226
|
export declare function getParametersDataToJSON(getParametersData: GetParametersData): string;
|
|
227
227
|
export declare function getParametersDataFromJSON(jsonString: string): SafeParseResult<GetParametersData, SDKValidationError>;
|
|
228
228
|
/** @internal */
|
|
229
|
-
export declare const GetParametersResponse$inboundSchema: z.ZodType<GetParametersResponse,
|
|
229
|
+
export declare const GetParametersResponse$inboundSchema: z.ZodType<GetParametersResponse, unknown>;
|
|
230
230
|
/** @internal */
|
|
231
231
|
export type GetParametersResponse$Outbound = {
|
|
232
232
|
data: GetParametersData$Outbound;
|
|
233
233
|
};
|
|
234
234
|
/** @internal */
|
|
235
|
-
export declare const GetParametersResponse$outboundSchema: z.ZodType<GetParametersResponse$Outbound,
|
|
235
|
+
export declare const GetParametersResponse$outboundSchema: z.ZodType<GetParametersResponse$Outbound, GetParametersResponse>;
|
|
236
236
|
/**
|
|
237
237
|
* @internal
|
|
238
238
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
239
239
|
*/
|
|
240
240
|
export declare namespace GetParametersResponse$ {
|
|
241
241
|
/** @deprecated use `GetParametersResponse$inboundSchema` instead. */
|
|
242
|
-
const inboundSchema: z.ZodType<GetParametersResponse, z.
|
|
242
|
+
const inboundSchema: z.ZodType<GetParametersResponse, unknown, z.core.$ZodTypeInternals<GetParametersResponse, unknown>>;
|
|
243
243
|
/** @deprecated use `GetParametersResponse$outboundSchema` instead. */
|
|
244
|
-
const outboundSchema: z.ZodType<GetParametersResponse$Outbound, z.
|
|
244
|
+
const outboundSchema: z.ZodType<GetParametersResponse$Outbound, GetParametersResponse, z.core.$ZodTypeInternals<GetParametersResponse$Outbound, GetParametersResponse>>;
|
|
245
245
|
/** @deprecated use `GetParametersResponse$Outbound` instead. */
|
|
246
246
|
type Outbound = GetParametersResponse$Outbound;
|
|
247
247
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
|
-
import * as z from "zod/
|
|
4
|
+
import * as z from "zod/v4";
|
|
5
5
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
6
6
|
import { safeParse } from "../../lib/schemas.js";
|
|
7
7
|
import { catchUnrecognizedEnum, } from "../../types/enums.js";
|
|
@@ -127,12 +127,12 @@ export function getParametersSecurityFromJSON(jsonString) {
|
|
|
127
127
|
/** @internal */
|
|
128
128
|
export const Provider$inboundSchema = z
|
|
129
129
|
.union([
|
|
130
|
-
z.
|
|
130
|
+
z.enum(Provider),
|
|
131
131
|
z.string().transform(catchUnrecognizedEnum),
|
|
132
132
|
]);
|
|
133
133
|
/** @internal */
|
|
134
134
|
export const Provider$outboundSchema = z.union([
|
|
135
|
-
z.
|
|
135
|
+
z.enum(Provider),
|
|
136
136
|
z.string().and(z.custom()),
|
|
137
137
|
]);
|
|
138
138
|
/**
|
|
@@ -178,12 +178,12 @@ export function getParametersRequestFromJSON(jsonString) {
|
|
|
178
178
|
/** @internal */
|
|
179
179
|
export const SupportedParameter$inboundSchema = z
|
|
180
180
|
.union([
|
|
181
|
-
z.
|
|
181
|
+
z.enum(SupportedParameter),
|
|
182
182
|
z.string().transform(catchUnrecognizedEnum),
|
|
183
183
|
]);
|
|
184
184
|
/** @internal */
|
|
185
185
|
export const SupportedParameter$outboundSchema = z.union([
|
|
186
|
-
z.
|
|
186
|
+
z.enum(SupportedParameter),
|
|
187
187
|
z.string().and(z.custom()),
|
|
188
188
|
]);
|
|
189
189
|
/**
|
|
@@ -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";
|
|
@@ -18,44 +18,44 @@ export type GetUserActivityResponse = {
|
|
|
18
18
|
data: Array<models.ActivityItem>;
|
|
19
19
|
};
|
|
20
20
|
/** @internal */
|
|
21
|
-
export declare const GetUserActivityRequest$inboundSchema: z.ZodType<GetUserActivityRequest,
|
|
21
|
+
export declare const GetUserActivityRequest$inboundSchema: z.ZodType<GetUserActivityRequest, unknown>;
|
|
22
22
|
/** @internal */
|
|
23
23
|
export type GetUserActivityRequest$Outbound = {
|
|
24
24
|
date?: string | undefined;
|
|
25
25
|
};
|
|
26
26
|
/** @internal */
|
|
27
|
-
export declare const GetUserActivityRequest$outboundSchema: z.ZodType<GetUserActivityRequest$Outbound,
|
|
27
|
+
export declare const GetUserActivityRequest$outboundSchema: z.ZodType<GetUserActivityRequest$Outbound, GetUserActivityRequest>;
|
|
28
28
|
/**
|
|
29
29
|
* @internal
|
|
30
30
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
31
31
|
*/
|
|
32
32
|
export declare namespace GetUserActivityRequest$ {
|
|
33
33
|
/** @deprecated use `GetUserActivityRequest$inboundSchema` instead. */
|
|
34
|
-
const inboundSchema: z.ZodType<GetUserActivityRequest, z.
|
|
34
|
+
const inboundSchema: z.ZodType<GetUserActivityRequest, unknown, z.core.$ZodTypeInternals<GetUserActivityRequest, unknown>>;
|
|
35
35
|
/** @deprecated use `GetUserActivityRequest$outboundSchema` instead. */
|
|
36
|
-
const outboundSchema: z.ZodType<GetUserActivityRequest$Outbound, z.
|
|
36
|
+
const outboundSchema: z.ZodType<GetUserActivityRequest$Outbound, GetUserActivityRequest, z.core.$ZodTypeInternals<GetUserActivityRequest$Outbound, GetUserActivityRequest>>;
|
|
37
37
|
/** @deprecated use `GetUserActivityRequest$Outbound` instead. */
|
|
38
38
|
type Outbound = GetUserActivityRequest$Outbound;
|
|
39
39
|
}
|
|
40
40
|
export declare function getUserActivityRequestToJSON(getUserActivityRequest: GetUserActivityRequest): string;
|
|
41
41
|
export declare function getUserActivityRequestFromJSON(jsonString: string): SafeParseResult<GetUserActivityRequest, SDKValidationError>;
|
|
42
42
|
/** @internal */
|
|
43
|
-
export declare const GetUserActivityResponse$inboundSchema: z.ZodType<GetUserActivityResponse,
|
|
43
|
+
export declare const GetUserActivityResponse$inboundSchema: z.ZodType<GetUserActivityResponse, unknown>;
|
|
44
44
|
/** @internal */
|
|
45
45
|
export type GetUserActivityResponse$Outbound = {
|
|
46
46
|
data: Array<models.ActivityItem$Outbound>;
|
|
47
47
|
};
|
|
48
48
|
/** @internal */
|
|
49
|
-
export declare const GetUserActivityResponse$outboundSchema: z.ZodType<GetUserActivityResponse$Outbound,
|
|
49
|
+
export declare const GetUserActivityResponse$outboundSchema: z.ZodType<GetUserActivityResponse$Outbound, GetUserActivityResponse>;
|
|
50
50
|
/**
|
|
51
51
|
* @internal
|
|
52
52
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
53
53
|
*/
|
|
54
54
|
export declare namespace GetUserActivityResponse$ {
|
|
55
55
|
/** @deprecated use `GetUserActivityResponse$inboundSchema` instead. */
|
|
56
|
-
const inboundSchema: z.ZodType<GetUserActivityResponse, z.
|
|
56
|
+
const inboundSchema: z.ZodType<GetUserActivityResponse, unknown, z.core.$ZodTypeInternals<GetUserActivityResponse, unknown>>;
|
|
57
57
|
/** @deprecated use `GetUserActivityResponse$outboundSchema` instead. */
|
|
58
|
-
const outboundSchema: z.ZodType<GetUserActivityResponse$Outbound, z.
|
|
58
|
+
const outboundSchema: z.ZodType<GetUserActivityResponse$Outbound, GetUserActivityResponse, z.core.$ZodTypeInternals<GetUserActivityResponse$Outbound, GetUserActivityResponse>>;
|
|
59
59
|
/** @deprecated use `GetUserActivityResponse$Outbound` instead. */
|
|
60
60
|
type Outbound = GetUserActivityResponse$Outbound;
|
|
61
61
|
}
|