@openrouter/sdk 0.0.1-beta.11 → 0.0.1-beta.14
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/FUNCTIONS.md +109 -1
- package/REACT_QUERY.md +109 -1
- package/README.md +686 -15
- package/esm/funcs/analyticsGetUserActivity.d.ts +1 -1
- package/esm/funcs/analyticsGetUserActivity.js +2 -2
- package/esm/funcs/apiKeysCreate.d.ts +1 -1
- package/esm/funcs/apiKeysCreate.js +2 -2
- package/esm/funcs/apiKeysDelete.d.ts +1 -1
- package/esm/funcs/apiKeysDelete.js +2 -2
- package/esm/funcs/apiKeysGet.d.ts +1 -1
- package/esm/funcs/apiKeysGet.js +2 -2
- package/esm/funcs/apiKeysGetCurrentKeyMetadata.d.ts +1 -1
- package/esm/funcs/apiKeysGetCurrentKeyMetadata.js +2 -2
- package/esm/funcs/apiKeysList.d.ts +1 -1
- package/esm/funcs/apiKeysList.js +2 -2
- package/esm/funcs/apiKeysUpdate.d.ts +1 -1
- package/esm/funcs/apiKeysUpdate.js +2 -2
- package/esm/funcs/betaResponsesSend.d.ts +9 -1
- package/esm/funcs/betaResponsesSend.js +38 -14
- package/esm/funcs/chatSend.d.ts +1 -1
- package/esm/funcs/creditsCreateCoinbaseCharge.d.ts +1 -1
- package/esm/funcs/creditsCreateCoinbaseCharge.js +15 -5
- package/esm/funcs/creditsGetCredits.d.ts +1 -1
- package/esm/funcs/creditsGetCredits.js +2 -2
- package/esm/funcs/endpointsList.d.ts +1 -1
- package/esm/funcs/endpointsList.js +2 -2
- package/esm/funcs/endpointsListZdrEndpoints.d.ts +2 -1
- package/esm/funcs/endpointsListZdrEndpoints.js +6 -2
- package/esm/funcs/generationsGetGeneration.d.ts +1 -1
- package/esm/funcs/generationsGetGeneration.js +13 -2
- package/esm/funcs/modelsCount.d.ts +3 -2
- package/esm/funcs/modelsCount.js +7 -3
- package/esm/funcs/modelsList.d.ts +3 -1
- package/esm/funcs/modelsList.js +8 -7
- package/esm/funcs/modelsListForUser.d.ts +3 -1
- package/esm/funcs/modelsListForUser.js +7 -3
- package/esm/funcs/oAuthCreateAuthCode.d.ts +18 -0
- package/esm/funcs/oAuthCreateAuthCode.js +82 -0
- package/esm/funcs/oAuthCreateAuthorizationUrl.d.ts +2 -2
- package/esm/funcs/oAuthExchangeAuthCodeForAPIKey.d.ts +18 -0
- package/esm/funcs/oAuthExchangeAuthCodeForAPIKey.js +82 -0
- package/esm/funcs/parametersGetParameters.d.ts +1 -1
- package/esm/funcs/parametersGetParameters.js +2 -2
- package/esm/funcs/providersList.d.ts +1 -1
- package/esm/funcs/providersList.js +1 -1
- package/esm/lib/config.d.ts +2 -2
- package/esm/lib/config.js +2 -2
- package/esm/lib/event-streams.d.ts +1 -1
- package/esm/models/badgatewayresponseerrordata.d.ts +40 -0
- package/esm/models/badgatewayresponseerrordata.js +35 -0
- package/esm/models/badrequestresponseerrordata.d.ts +40 -0
- package/esm/models/badrequestresponseerrordata.js +35 -0
- package/esm/models/chatmessagecontentitemaudio.d.ts +10 -10
- package/esm/models/chatmessagecontentitemaudio.js +14 -14
- package/esm/models/chatstreamingresponsechunk.d.ts +15 -15
- package/esm/models/chatstreamingresponsechunk.js +15 -15
- package/esm/models/createchargerequest.d.ts +31 -2
- package/esm/models/createchargerequest.js +47 -2
- package/esm/models/defaultparameters.d.ts +36 -0
- package/esm/models/defaultparameters.js +46 -0
- package/esm/models/edgenetworktimeoutresponseerrordata.d.ts +40 -0
- package/esm/models/edgenetworktimeoutresponseerrordata.js +35 -0
- package/esm/models/endpointstatus.d.ts +26 -0
- package/esm/models/endpointstatus.js +36 -0
- package/esm/models/errors/badgatewayresponseerror.d.ts +52 -0
- package/esm/models/errors/badgatewayresponseerror.js +63 -0
- package/esm/models/errors/badrequestresponseerror.d.ts +52 -0
- package/esm/models/errors/badrequestresponseerror.js +63 -0
- package/esm/models/errors/edgenetworktimeoutresponseerror.d.ts +52 -0
- package/esm/models/errors/edgenetworktimeoutresponseerror.js +63 -0
- package/esm/models/errors/forbiddenresponseerror.d.ts +52 -0
- package/esm/models/errors/forbiddenresponseerror.js +63 -0
- package/esm/models/errors/index.d.ts +14 -2
- package/esm/models/errors/index.js +14 -2
- package/esm/models/errors/internalserverresponseerror.d.ts +52 -0
- package/esm/models/errors/internalserverresponseerror.js +63 -0
- package/esm/models/errors/notfoundresponseerror.d.ts +52 -0
- package/esm/models/errors/{errorresponse.js → notfoundresponseerror.js} +16 -17
- package/esm/models/errors/payloadtoolargeresponseerror.d.ts +52 -0
- package/esm/models/errors/payloadtoolargeresponseerror.js +63 -0
- package/esm/models/errors/paymentrequiredresponseerror.d.ts +52 -0
- package/esm/models/errors/paymentrequiredresponseerror.js +63 -0
- package/esm/models/errors/provideroverloadedresponseerror.d.ts +52 -0
- package/esm/models/errors/provideroverloadedresponseerror.js +63 -0
- package/esm/models/errors/requesttimeoutresponseerror.d.ts +52 -0
- package/esm/models/errors/requesttimeoutresponseerror.js +63 -0
- package/esm/models/errors/serviceunavailableresponseerror.d.ts +52 -0
- package/esm/models/errors/serviceunavailableresponseerror.js +63 -0
- package/esm/models/errors/toomanyrequestsresponseerror.d.ts +52 -0
- package/esm/models/errors/toomanyrequestsresponseerror.js +63 -0
- package/esm/models/errors/unauthorizedresponseerror.d.ts +52 -0
- package/esm/models/errors/unauthorizedresponseerror.js +63 -0
- package/esm/models/errors/unprocessableentityresponseerror.d.ts +52 -0
- package/esm/models/errors/unprocessableentityresponseerror.js +63 -0
- package/esm/models/forbiddenresponseerrordata.d.ts +40 -0
- package/esm/models/forbiddenresponseerrordata.js +35 -0
- package/esm/models/index.d.ts +37 -1
- package/esm/models/index.js +37 -1
- package/esm/models/inputmodality.d.ts +24 -0
- package/esm/models/inputmodality.js +34 -0
- package/esm/models/instructtype.d.ts +48 -0
- package/esm/models/instructtype.js +55 -0
- package/esm/models/internalserverresponseerrordata.d.ts +40 -0
- package/esm/models/internalserverresponseerrordata.js +35 -0
- package/esm/models/listendpointsresponse.d.ts +126 -2
- package/esm/models/listendpointsresponse.js +115 -2
- package/esm/models/model.d.ts +101 -0
- package/esm/models/model.js +82 -0
- package/esm/models/modelarchitecture.d.ts +104 -0
- package/esm/models/modelarchitecture.js +107 -0
- package/esm/models/modelgroup.d.ts +45 -0
- package/esm/models/modelgroup.js +53 -0
- package/esm/models/modelscountresponse.d.ts +40 -2
- package/esm/models/modelscountresponse.js +31 -2
- package/esm/models/modelslistresponse.d.ts +10 -2
- package/esm/models/modelslistresponse.js +7 -2
- package/esm/models/notfoundresponseerrordata.d.ts +40 -0
- package/esm/models/notfoundresponseerrordata.js +35 -0
- package/esm/models/openairesponsesincludable.d.ts +25 -0
- package/esm/models/openairesponsesincludable.js +35 -0
- package/esm/models/openairesponsesinputunion.d.ts +78 -78
- package/esm/models/openairesponsesinputunion.js +124 -126
- package/esm/models/openresponseseasyinputmessage.d.ts +246 -0
- package/esm/models/openresponseseasyinputmessage.js +283 -0
- package/esm/models/openresponsesfunctioncalloutput.d.ts +64 -0
- package/esm/models/openresponsesfunctioncalloutput.js +67 -0
- package/esm/models/openresponsesfunctiontoolcall.d.ts +66 -0
- package/esm/models/openresponsesfunctiontoolcall.js +69 -0
- package/esm/models/openresponsesinput.d.ts +60 -0
- package/esm/models/openresponsesinput.js +113 -0
- package/esm/models/openresponsesinputmessageitem.d.ts +193 -0
- package/esm/models/openresponsesinputmessageitem.js +210 -0
- package/esm/models/openresponsesnonstreamingresponse.d.ts +13 -13
- package/esm/models/openresponsesnonstreamingresponse.js +13 -13
- package/esm/models/openresponsesreasoning.d.ts +179 -0
- package/esm/models/openresponsesreasoning.js +194 -0
- package/esm/models/openresponsesreasoningconfig.d.ts +40 -0
- package/esm/models/openresponsesreasoningconfig.js +48 -0
- package/esm/models/openresponsesrequest.d.ts +736 -2
- package/esm/models/openresponsesrequest.js +789 -2
- package/esm/models/openresponsesresponsetext.d.ts +59 -0
- package/esm/models/openresponsesresponsetext.js +64 -0
- package/esm/models/operations/createauthkeyscode.d.ts +145 -0
- package/esm/models/operations/createauthkeyscode.js +146 -0
- package/esm/models/operations/createresponses.d.ts +58 -0
- package/esm/models/operations/createresponses.js +80 -0
- package/esm/models/operations/exchangeauthcodeforapikey.d.ts +104 -0
- package/esm/models/operations/exchangeauthcodeforapikey.js +111 -0
- package/esm/models/operations/getmodels.d.ts +0 -26
- package/esm/models/operations/getmodels.js +0 -38
- package/esm/models/operations/index.d.ts +3 -2
- package/esm/models/operations/index.js +3 -2
- package/esm/models/operations/listendpointszdr.d.ts +3 -24
- package/esm/models/operations/listendpointszdr.js +2 -29
- package/esm/models/operations/listmodelsuser.d.ts +0 -22
- package/esm/models/operations/listmodelsuser.js +0 -28
- package/esm/models/operations/listproviders.d.ts +0 -36
- package/esm/models/operations/listproviders.js +0 -28
- package/esm/models/operations/sendchatcompletionrequest.d.ts +1 -1
- package/esm/models/operations/sendchatcompletionrequest.js +2 -1
- package/esm/models/outputmodality.d.ts +23 -0
- package/esm/models/outputmodality.js +33 -0
- package/esm/models/parameter.d.ts +43 -0
- package/esm/models/parameter.js +54 -0
- package/esm/models/payloadtoolargeresponseerrordata.d.ts +40 -0
- package/esm/models/payloadtoolargeresponseerrordata.js +35 -0
- package/esm/models/paymentrequiredresponseerrordata.d.ts +40 -0
- package/esm/models/paymentrequiredresponseerrordata.js +35 -0
- package/esm/models/perrequestlimits.d.ts +40 -0
- package/esm/models/perrequestlimits.js +44 -0
- package/esm/models/providername.d.ts +106 -0
- package/esm/models/providername.js +116 -0
- package/esm/models/provideroverloadedresponseerrordata.d.ts +40 -0
- package/esm/models/provideroverloadedresponseerrordata.js +35 -0
- package/esm/models/publicendpoint.d.ts +140 -2
- package/esm/models/publicendpoint.js +156 -2
- package/esm/models/publicpricing.d.ts +87 -0
- package/esm/models/publicpricing.js +73 -0
- package/esm/models/quantization.d.ts +29 -0
- package/esm/models/quantization.js +39 -0
- package/esm/models/requesttimeoutresponseerrordata.d.ts +40 -0
- package/esm/models/requesttimeoutresponseerrordata.js +35 -0
- package/esm/models/responseserrorfield.d.ts +10 -10
- package/esm/models/responseserrorfield.js +14 -14
- package/esm/models/responsetextconfig.d.ts +10 -10
- package/esm/models/responsetextconfig.js +14 -15
- package/esm/models/serviceunavailableresponseerrordata.d.ts +40 -0
- package/esm/models/serviceunavailableresponseerrordata.js +35 -0
- package/esm/models/toomanyrequestsresponseerrordata.d.ts +40 -0
- package/esm/models/toomanyrequestsresponseerrordata.js +35 -0
- package/esm/models/topproviderinfo.d.ts +45 -0
- package/esm/models/topproviderinfo.js +48 -0
- package/esm/models/unauthorizedresponseerrordata.d.ts +40 -0
- package/esm/models/unauthorizedresponseerrordata.js +35 -0
- package/esm/models/unprocessableentityresponseerrordata.d.ts +40 -0
- package/esm/models/unprocessableentityresponseerrordata.js +35 -0
- package/esm/react-query/betaResponsesSend.d.ts +1 -1
- package/esm/react-query/index.d.ts +2 -0
- package/esm/react-query/index.js +2 -0
- package/esm/react-query/modelsCount.d.ts +2 -2
- package/esm/react-query/modelsList.d.ts +2 -7
- package/esm/react-query/modelsList.js +0 -2
- package/esm/react-query/modelsListForUser.d.ts +2 -1
- package/esm/react-query/oAuthCreateAuthCode.d.ts +23 -0
- package/esm/react-query/oAuthCreateAuthCode.js +42 -0
- package/esm/react-query/oAuthExchangeAuthCodeForAPIKey.d.ts +23 -0
- package/esm/react-query/oAuthExchangeAuthCodeForAPIKey.js +42 -0
- package/esm/sdk/chat.d.ts +1 -1
- package/esm/sdk/models.d.ts +4 -3
- package/esm/sdk/oauth.d.ts +46 -0
- package/esm/sdk/oauth.js +67 -0
- package/esm/sdk/responses.d.ts +8 -1
- package/esm/sdk/responses.js +0 -6
- package/esm/sdk/sdk.d.ts +3 -0
- package/esm/sdk/sdk.js +4 -0
- package/jsr.json +1 -1
- package/package.json +3 -1
- package/vitest.config.ts +8 -1
- package/esm/models/errorresponse.d.ts +0 -155
- package/esm/models/errorresponse.js +0 -167
- package/esm/models/errors/errorresponse.d.ts +0 -46
- package/esm/models/errors/listproviders.d.ts +0 -49
- package/esm/models/errors/listproviders.js +0 -51
- package/esm/models/operations/createapialpharesponses.d.ts +0 -58
- package/esm/models/operations/createapialpharesponses.js +0 -83
- package/esm/models/operations/listmodelscount.d.ts +0 -26
- package/esm/models/operations/listmodelscount.js +0 -34
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import { OpenEnum } from "../types/enums.js";
|
|
3
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
4
|
+
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
5
|
+
import { InputModality } from "./inputmodality.js";
|
|
6
|
+
import { ModelGroup } from "./modelgroup.js";
|
|
7
|
+
import { OutputModality } from "./outputmodality.js";
|
|
8
|
+
/**
|
|
9
|
+
* Instruction format type
|
|
10
|
+
*/
|
|
11
|
+
export declare const ModelArchitectureInstructType: {
|
|
12
|
+
readonly None: "none";
|
|
13
|
+
readonly Airoboros: "airoboros";
|
|
14
|
+
readonly Alpaca: "alpaca";
|
|
15
|
+
readonly AlpacaModif: "alpaca-modif";
|
|
16
|
+
readonly Chatml: "chatml";
|
|
17
|
+
readonly Claude: "claude";
|
|
18
|
+
readonly CodeLlama: "code-llama";
|
|
19
|
+
readonly Gemma: "gemma";
|
|
20
|
+
readonly Llama2: "llama2";
|
|
21
|
+
readonly Llama3: "llama3";
|
|
22
|
+
readonly Mistral: "mistral";
|
|
23
|
+
readonly Nemotron: "nemotron";
|
|
24
|
+
readonly Neural: "neural";
|
|
25
|
+
readonly Openchat: "openchat";
|
|
26
|
+
readonly Phi3: "phi3";
|
|
27
|
+
readonly Rwkv: "rwkv";
|
|
28
|
+
readonly Vicuna: "vicuna";
|
|
29
|
+
readonly Zephyr: "zephyr";
|
|
30
|
+
readonly DeepseekR1: "deepseek-r1";
|
|
31
|
+
readonly DeepseekV31: "deepseek-v3.1";
|
|
32
|
+
readonly Qwq: "qwq";
|
|
33
|
+
readonly Qwen3: "qwen3";
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* Instruction format type
|
|
37
|
+
*/
|
|
38
|
+
export type ModelArchitectureInstructType = OpenEnum<typeof ModelArchitectureInstructType>;
|
|
39
|
+
/**
|
|
40
|
+
* Model architecture information
|
|
41
|
+
*/
|
|
42
|
+
export type ModelArchitecture = {
|
|
43
|
+
/**
|
|
44
|
+
* Tokenizer type used by the model
|
|
45
|
+
*/
|
|
46
|
+
tokenizer?: ModelGroup | undefined;
|
|
47
|
+
/**
|
|
48
|
+
* Instruction format type
|
|
49
|
+
*/
|
|
50
|
+
instructType?: ModelArchitectureInstructType | null | undefined;
|
|
51
|
+
/**
|
|
52
|
+
* Primary modality of the model
|
|
53
|
+
*/
|
|
54
|
+
modality: string | null;
|
|
55
|
+
/**
|
|
56
|
+
* Supported input modalities
|
|
57
|
+
*/
|
|
58
|
+
inputModalities: Array<InputModality>;
|
|
59
|
+
/**
|
|
60
|
+
* Supported output modalities
|
|
61
|
+
*/
|
|
62
|
+
outputModalities: Array<OutputModality>;
|
|
63
|
+
};
|
|
64
|
+
/** @internal */
|
|
65
|
+
export declare const ModelArchitectureInstructType$inboundSchema: z.ZodType<ModelArchitectureInstructType, unknown>;
|
|
66
|
+
/** @internal */
|
|
67
|
+
export declare const ModelArchitectureInstructType$outboundSchema: z.ZodType<ModelArchitectureInstructType, ModelArchitectureInstructType>;
|
|
68
|
+
/**
|
|
69
|
+
* @internal
|
|
70
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
71
|
+
*/
|
|
72
|
+
export declare namespace ModelArchitectureInstructType$ {
|
|
73
|
+
/** @deprecated use `ModelArchitectureInstructType$inboundSchema` instead. */
|
|
74
|
+
const inboundSchema: z.ZodType<ModelArchitectureInstructType, unknown, z.core.$ZodTypeInternals<ModelArchitectureInstructType, unknown>>;
|
|
75
|
+
/** @deprecated use `ModelArchitectureInstructType$outboundSchema` instead. */
|
|
76
|
+
const outboundSchema: z.ZodType<ModelArchitectureInstructType, ModelArchitectureInstructType, z.core.$ZodTypeInternals<ModelArchitectureInstructType, ModelArchitectureInstructType>>;
|
|
77
|
+
}
|
|
78
|
+
/** @internal */
|
|
79
|
+
export declare const ModelArchitecture$inboundSchema: z.ZodType<ModelArchitecture, unknown>;
|
|
80
|
+
/** @internal */
|
|
81
|
+
export type ModelArchitecture$Outbound = {
|
|
82
|
+
tokenizer?: string | undefined;
|
|
83
|
+
instruct_type?: string | null | undefined;
|
|
84
|
+
modality: string | null;
|
|
85
|
+
input_modalities: Array<string>;
|
|
86
|
+
output_modalities: Array<string>;
|
|
87
|
+
};
|
|
88
|
+
/** @internal */
|
|
89
|
+
export declare const ModelArchitecture$outboundSchema: z.ZodType<ModelArchitecture$Outbound, ModelArchitecture>;
|
|
90
|
+
/**
|
|
91
|
+
* @internal
|
|
92
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
93
|
+
*/
|
|
94
|
+
export declare namespace ModelArchitecture$ {
|
|
95
|
+
/** @deprecated use `ModelArchitecture$inboundSchema` instead. */
|
|
96
|
+
const inboundSchema: z.ZodType<ModelArchitecture, unknown, z.core.$ZodTypeInternals<ModelArchitecture, unknown>>;
|
|
97
|
+
/** @deprecated use `ModelArchitecture$outboundSchema` instead. */
|
|
98
|
+
const outboundSchema: z.ZodType<ModelArchitecture$Outbound, ModelArchitecture, z.core.$ZodTypeInternals<ModelArchitecture$Outbound, ModelArchitecture>>;
|
|
99
|
+
/** @deprecated use `ModelArchitecture$Outbound` instead. */
|
|
100
|
+
type Outbound = ModelArchitecture$Outbound;
|
|
101
|
+
}
|
|
102
|
+
export declare function modelArchitectureToJSON(modelArchitecture: ModelArchitecture): string;
|
|
103
|
+
export declare function modelArchitectureFromJSON(jsonString: string): SafeParseResult<ModelArchitecture, SDKValidationError>;
|
|
104
|
+
//# sourceMappingURL=modelarchitecture.d.ts.map
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import * as z from "zod/v4";
|
|
5
|
+
import { remap as remap$ } from "../lib/primitives.js";
|
|
6
|
+
import { safeParse } from "../lib/schemas.js";
|
|
7
|
+
import { catchUnrecognizedEnum, } from "../types/enums.js";
|
|
8
|
+
import { InputModality$inboundSchema, InputModality$outboundSchema, } from "./inputmodality.js";
|
|
9
|
+
import { ModelGroup$inboundSchema, ModelGroup$outboundSchema, } from "./modelgroup.js";
|
|
10
|
+
import { OutputModality$inboundSchema, OutputModality$outboundSchema, } from "./outputmodality.js";
|
|
11
|
+
/**
|
|
12
|
+
* Instruction format type
|
|
13
|
+
*/
|
|
14
|
+
export const ModelArchitectureInstructType = {
|
|
15
|
+
None: "none",
|
|
16
|
+
Airoboros: "airoboros",
|
|
17
|
+
Alpaca: "alpaca",
|
|
18
|
+
AlpacaModif: "alpaca-modif",
|
|
19
|
+
Chatml: "chatml",
|
|
20
|
+
Claude: "claude",
|
|
21
|
+
CodeLlama: "code-llama",
|
|
22
|
+
Gemma: "gemma",
|
|
23
|
+
Llama2: "llama2",
|
|
24
|
+
Llama3: "llama3",
|
|
25
|
+
Mistral: "mistral",
|
|
26
|
+
Nemotron: "nemotron",
|
|
27
|
+
Neural: "neural",
|
|
28
|
+
Openchat: "openchat",
|
|
29
|
+
Phi3: "phi3",
|
|
30
|
+
Rwkv: "rwkv",
|
|
31
|
+
Vicuna: "vicuna",
|
|
32
|
+
Zephyr: "zephyr",
|
|
33
|
+
DeepseekR1: "deepseek-r1",
|
|
34
|
+
DeepseekV31: "deepseek-v3.1",
|
|
35
|
+
Qwq: "qwq",
|
|
36
|
+
Qwen3: "qwen3",
|
|
37
|
+
};
|
|
38
|
+
/** @internal */
|
|
39
|
+
export const ModelArchitectureInstructType$inboundSchema = z
|
|
40
|
+
.union([
|
|
41
|
+
z.enum(ModelArchitectureInstructType),
|
|
42
|
+
z.string().transform(catchUnrecognizedEnum),
|
|
43
|
+
]);
|
|
44
|
+
/** @internal */
|
|
45
|
+
export const ModelArchitectureInstructType$outboundSchema = z.union([
|
|
46
|
+
z.enum(ModelArchitectureInstructType),
|
|
47
|
+
z.string().and(z.custom()),
|
|
48
|
+
]);
|
|
49
|
+
/**
|
|
50
|
+
* @internal
|
|
51
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
52
|
+
*/
|
|
53
|
+
export var ModelArchitectureInstructType$;
|
|
54
|
+
(function (ModelArchitectureInstructType$) {
|
|
55
|
+
/** @deprecated use `ModelArchitectureInstructType$inboundSchema` instead. */
|
|
56
|
+
ModelArchitectureInstructType$.inboundSchema = ModelArchitectureInstructType$inboundSchema;
|
|
57
|
+
/** @deprecated use `ModelArchitectureInstructType$outboundSchema` instead. */
|
|
58
|
+
ModelArchitectureInstructType$.outboundSchema = ModelArchitectureInstructType$outboundSchema;
|
|
59
|
+
})(ModelArchitectureInstructType$ || (ModelArchitectureInstructType$ = {}));
|
|
60
|
+
/** @internal */
|
|
61
|
+
export const ModelArchitecture$inboundSchema = z.object({
|
|
62
|
+
tokenizer: ModelGroup$inboundSchema.optional(),
|
|
63
|
+
instruct_type: z.nullable(ModelArchitectureInstructType$inboundSchema)
|
|
64
|
+
.optional(),
|
|
65
|
+
modality: z.nullable(z.string()),
|
|
66
|
+
input_modalities: z.array(InputModality$inboundSchema),
|
|
67
|
+
output_modalities: z.array(OutputModality$inboundSchema),
|
|
68
|
+
}).transform((v) => {
|
|
69
|
+
return remap$(v, {
|
|
70
|
+
"instruct_type": "instructType",
|
|
71
|
+
"input_modalities": "inputModalities",
|
|
72
|
+
"output_modalities": "outputModalities",
|
|
73
|
+
});
|
|
74
|
+
});
|
|
75
|
+
/** @internal */
|
|
76
|
+
export const ModelArchitecture$outboundSchema = z.object({
|
|
77
|
+
tokenizer: ModelGroup$outboundSchema.optional(),
|
|
78
|
+
instructType: z.nullable(ModelArchitectureInstructType$outboundSchema)
|
|
79
|
+
.optional(),
|
|
80
|
+
modality: z.nullable(z.string()),
|
|
81
|
+
inputModalities: z.array(InputModality$outboundSchema),
|
|
82
|
+
outputModalities: z.array(OutputModality$outboundSchema),
|
|
83
|
+
}).transform((v) => {
|
|
84
|
+
return remap$(v, {
|
|
85
|
+
instructType: "instruct_type",
|
|
86
|
+
inputModalities: "input_modalities",
|
|
87
|
+
outputModalities: "output_modalities",
|
|
88
|
+
});
|
|
89
|
+
});
|
|
90
|
+
/**
|
|
91
|
+
* @internal
|
|
92
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
93
|
+
*/
|
|
94
|
+
export var ModelArchitecture$;
|
|
95
|
+
(function (ModelArchitecture$) {
|
|
96
|
+
/** @deprecated use `ModelArchitecture$inboundSchema` instead. */
|
|
97
|
+
ModelArchitecture$.inboundSchema = ModelArchitecture$inboundSchema;
|
|
98
|
+
/** @deprecated use `ModelArchitecture$outboundSchema` instead. */
|
|
99
|
+
ModelArchitecture$.outboundSchema = ModelArchitecture$outboundSchema;
|
|
100
|
+
})(ModelArchitecture$ || (ModelArchitecture$ = {}));
|
|
101
|
+
export function modelArchitectureToJSON(modelArchitecture) {
|
|
102
|
+
return JSON.stringify(ModelArchitecture$outboundSchema.parse(modelArchitecture));
|
|
103
|
+
}
|
|
104
|
+
export function modelArchitectureFromJSON(jsonString) {
|
|
105
|
+
return safeParse(jsonString, (x) => ModelArchitecture$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ModelArchitecture' from JSON`);
|
|
106
|
+
}
|
|
107
|
+
//# sourceMappingURL=modelarchitecture.js.map
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import { OpenEnum } from "../types/enums.js";
|
|
3
|
+
/**
|
|
4
|
+
* Tokenizer type used by the model
|
|
5
|
+
*/
|
|
6
|
+
export declare const ModelGroup: {
|
|
7
|
+
readonly Router: "Router";
|
|
8
|
+
readonly Media: "Media";
|
|
9
|
+
readonly Other: "Other";
|
|
10
|
+
readonly Gpt: "GPT";
|
|
11
|
+
readonly Claude: "Claude";
|
|
12
|
+
readonly Gemini: "Gemini";
|
|
13
|
+
readonly Grok: "Grok";
|
|
14
|
+
readonly Cohere: "Cohere";
|
|
15
|
+
readonly Nova: "Nova";
|
|
16
|
+
readonly Qwen: "Qwen";
|
|
17
|
+
readonly Yi: "Yi";
|
|
18
|
+
readonly DeepSeek: "DeepSeek";
|
|
19
|
+
readonly Mistral: "Mistral";
|
|
20
|
+
readonly Llama2: "Llama2";
|
|
21
|
+
readonly Llama3: "Llama3";
|
|
22
|
+
readonly Llama4: "Llama4";
|
|
23
|
+
readonly PaLM: "PaLM";
|
|
24
|
+
readonly Rwkv: "RWKV";
|
|
25
|
+
readonly Qwen3: "Qwen3";
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* Tokenizer type used by the model
|
|
29
|
+
*/
|
|
30
|
+
export type ModelGroup = OpenEnum<typeof ModelGroup>;
|
|
31
|
+
/** @internal */
|
|
32
|
+
export declare const ModelGroup$inboundSchema: z.ZodType<ModelGroup, unknown>;
|
|
33
|
+
/** @internal */
|
|
34
|
+
export declare const ModelGroup$outboundSchema: z.ZodType<ModelGroup, ModelGroup>;
|
|
35
|
+
/**
|
|
36
|
+
* @internal
|
|
37
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
38
|
+
*/
|
|
39
|
+
export declare namespace ModelGroup$ {
|
|
40
|
+
/** @deprecated use `ModelGroup$inboundSchema` instead. */
|
|
41
|
+
const inboundSchema: z.ZodType<ModelGroup, unknown, z.core.$ZodTypeInternals<ModelGroup, unknown>>;
|
|
42
|
+
/** @deprecated use `ModelGroup$outboundSchema` instead. */
|
|
43
|
+
const outboundSchema: z.ZodType<ModelGroup, ModelGroup, z.core.$ZodTypeInternals<ModelGroup, ModelGroup>>;
|
|
44
|
+
}
|
|
45
|
+
//# sourceMappingURL=modelgroup.d.ts.map
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import * as z from "zod/v4";
|
|
5
|
+
import { catchUnrecognizedEnum, } from "../types/enums.js";
|
|
6
|
+
/**
|
|
7
|
+
* Tokenizer type used by the model
|
|
8
|
+
*/
|
|
9
|
+
export const ModelGroup = {
|
|
10
|
+
Router: "Router",
|
|
11
|
+
Media: "Media",
|
|
12
|
+
Other: "Other",
|
|
13
|
+
Gpt: "GPT",
|
|
14
|
+
Claude: "Claude",
|
|
15
|
+
Gemini: "Gemini",
|
|
16
|
+
Grok: "Grok",
|
|
17
|
+
Cohere: "Cohere",
|
|
18
|
+
Nova: "Nova",
|
|
19
|
+
Qwen: "Qwen",
|
|
20
|
+
Yi: "Yi",
|
|
21
|
+
DeepSeek: "DeepSeek",
|
|
22
|
+
Mistral: "Mistral",
|
|
23
|
+
Llama2: "Llama2",
|
|
24
|
+
Llama3: "Llama3",
|
|
25
|
+
Llama4: "Llama4",
|
|
26
|
+
PaLM: "PaLM",
|
|
27
|
+
Rwkv: "RWKV",
|
|
28
|
+
Qwen3: "Qwen3",
|
|
29
|
+
};
|
|
30
|
+
/** @internal */
|
|
31
|
+
export const ModelGroup$inboundSchema = z
|
|
32
|
+
.union([
|
|
33
|
+
z.enum(ModelGroup),
|
|
34
|
+
z.string().transform(catchUnrecognizedEnum),
|
|
35
|
+
]);
|
|
36
|
+
/** @internal */
|
|
37
|
+
export const ModelGroup$outboundSchema = z
|
|
38
|
+
.union([
|
|
39
|
+
z.enum(ModelGroup),
|
|
40
|
+
z.string().and(z.custom()),
|
|
41
|
+
]);
|
|
42
|
+
/**
|
|
43
|
+
* @internal
|
|
44
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
45
|
+
*/
|
|
46
|
+
export var ModelGroup$;
|
|
47
|
+
(function (ModelGroup$) {
|
|
48
|
+
/** @deprecated use `ModelGroup$inboundSchema` instead. */
|
|
49
|
+
ModelGroup$.inboundSchema = ModelGroup$inboundSchema;
|
|
50
|
+
/** @deprecated use `ModelGroup$outboundSchema` instead. */
|
|
51
|
+
ModelGroup$.outboundSchema = ModelGroup$outboundSchema;
|
|
52
|
+
})(ModelGroup$ || (ModelGroup$ = {}));
|
|
53
|
+
//# sourceMappingURL=modelgroup.js.map
|
|
@@ -4,11 +4,49 @@ import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
|
4
4
|
/**
|
|
5
5
|
* Model count data
|
|
6
6
|
*/
|
|
7
|
-
export type
|
|
7
|
+
export type ModelsCountResponseData = {
|
|
8
|
+
/**
|
|
9
|
+
* Total number of available models
|
|
10
|
+
*/
|
|
11
|
+
count: number;
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* Model count data
|
|
15
|
+
*/
|
|
16
|
+
export type ModelsCountResponse = {
|
|
17
|
+
/**
|
|
18
|
+
* Model count data
|
|
19
|
+
*/
|
|
20
|
+
data: ModelsCountResponseData;
|
|
21
|
+
};
|
|
22
|
+
/** @internal */
|
|
23
|
+
export declare const ModelsCountResponseData$inboundSchema: z.ZodType<ModelsCountResponseData, unknown>;
|
|
24
|
+
/** @internal */
|
|
25
|
+
export type ModelsCountResponseData$Outbound = {
|
|
26
|
+
count: number;
|
|
27
|
+
};
|
|
28
|
+
/** @internal */
|
|
29
|
+
export declare const ModelsCountResponseData$outboundSchema: z.ZodType<ModelsCountResponseData$Outbound, ModelsCountResponseData>;
|
|
30
|
+
/**
|
|
31
|
+
* @internal
|
|
32
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
33
|
+
*/
|
|
34
|
+
export declare namespace ModelsCountResponseData$ {
|
|
35
|
+
/** @deprecated use `ModelsCountResponseData$inboundSchema` instead. */
|
|
36
|
+
const inboundSchema: z.ZodType<ModelsCountResponseData, unknown, z.core.$ZodTypeInternals<ModelsCountResponseData, unknown>>;
|
|
37
|
+
/** @deprecated use `ModelsCountResponseData$outboundSchema` instead. */
|
|
38
|
+
const outboundSchema: z.ZodType<ModelsCountResponseData$Outbound, ModelsCountResponseData, z.core.$ZodTypeInternals<ModelsCountResponseData$Outbound, ModelsCountResponseData>>;
|
|
39
|
+
/** @deprecated use `ModelsCountResponseData$Outbound` instead. */
|
|
40
|
+
type Outbound = ModelsCountResponseData$Outbound;
|
|
41
|
+
}
|
|
42
|
+
export declare function modelsCountResponseDataToJSON(modelsCountResponseData: ModelsCountResponseData): string;
|
|
43
|
+
export declare function modelsCountResponseDataFromJSON(jsonString: string): SafeParseResult<ModelsCountResponseData, SDKValidationError>;
|
|
8
44
|
/** @internal */
|
|
9
45
|
export declare const ModelsCountResponse$inboundSchema: z.ZodType<ModelsCountResponse, unknown>;
|
|
10
46
|
/** @internal */
|
|
11
|
-
export type ModelsCountResponse$Outbound = {
|
|
47
|
+
export type ModelsCountResponse$Outbound = {
|
|
48
|
+
data: ModelsCountResponseData$Outbound;
|
|
49
|
+
};
|
|
12
50
|
/** @internal */
|
|
13
51
|
export declare const ModelsCountResponse$outboundSchema: z.ZodType<ModelsCountResponse$Outbound, ModelsCountResponse>;
|
|
14
52
|
/**
|
|
@@ -4,9 +4,38 @@
|
|
|
4
4
|
import * as z from "zod/v4";
|
|
5
5
|
import { safeParse } from "../lib/schemas.js";
|
|
6
6
|
/** @internal */
|
|
7
|
-
export const
|
|
7
|
+
export const ModelsCountResponseData$inboundSchema = z.object({
|
|
8
|
+
count: z.number(),
|
|
9
|
+
});
|
|
8
10
|
/** @internal */
|
|
9
|
-
export const
|
|
11
|
+
export const ModelsCountResponseData$outboundSchema = z.object({
|
|
12
|
+
count: z.number(),
|
|
13
|
+
});
|
|
14
|
+
/**
|
|
15
|
+
* @internal
|
|
16
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
17
|
+
*/
|
|
18
|
+
export var ModelsCountResponseData$;
|
|
19
|
+
(function (ModelsCountResponseData$) {
|
|
20
|
+
/** @deprecated use `ModelsCountResponseData$inboundSchema` instead. */
|
|
21
|
+
ModelsCountResponseData$.inboundSchema = ModelsCountResponseData$inboundSchema;
|
|
22
|
+
/** @deprecated use `ModelsCountResponseData$outboundSchema` instead. */
|
|
23
|
+
ModelsCountResponseData$.outboundSchema = ModelsCountResponseData$outboundSchema;
|
|
24
|
+
})(ModelsCountResponseData$ || (ModelsCountResponseData$ = {}));
|
|
25
|
+
export function modelsCountResponseDataToJSON(modelsCountResponseData) {
|
|
26
|
+
return JSON.stringify(ModelsCountResponseData$outboundSchema.parse(modelsCountResponseData));
|
|
27
|
+
}
|
|
28
|
+
export function modelsCountResponseDataFromJSON(jsonString) {
|
|
29
|
+
return safeParse(jsonString, (x) => ModelsCountResponseData$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ModelsCountResponseData' from JSON`);
|
|
30
|
+
}
|
|
31
|
+
/** @internal */
|
|
32
|
+
export const ModelsCountResponse$inboundSchema = z.object({
|
|
33
|
+
data: z.lazy(() => ModelsCountResponseData$inboundSchema),
|
|
34
|
+
});
|
|
35
|
+
/** @internal */
|
|
36
|
+
export const ModelsCountResponse$outboundSchema = z.object({
|
|
37
|
+
data: z.lazy(() => ModelsCountResponseData$outboundSchema),
|
|
38
|
+
});
|
|
10
39
|
/**
|
|
11
40
|
* @internal
|
|
12
41
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
@@ -1,14 +1,22 @@
|
|
|
1
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
|
+
import { Model, Model$Outbound } from "./model.js";
|
|
4
5
|
/**
|
|
5
6
|
* List of available models
|
|
6
7
|
*/
|
|
7
|
-
export type ModelsListResponse = {
|
|
8
|
+
export type ModelsListResponse = {
|
|
9
|
+
/**
|
|
10
|
+
* List of available models
|
|
11
|
+
*/
|
|
12
|
+
data: Array<Model>;
|
|
13
|
+
};
|
|
8
14
|
/** @internal */
|
|
9
15
|
export declare const ModelsListResponse$inboundSchema: z.ZodType<ModelsListResponse, unknown>;
|
|
10
16
|
/** @internal */
|
|
11
|
-
export type ModelsListResponse$Outbound = {
|
|
17
|
+
export type ModelsListResponse$Outbound = {
|
|
18
|
+
data: Array<Model$Outbound>;
|
|
19
|
+
};
|
|
12
20
|
/** @internal */
|
|
13
21
|
export declare const ModelsListResponse$outboundSchema: z.ZodType<ModelsListResponse$Outbound, ModelsListResponse>;
|
|
14
22
|
/**
|
|
@@ -3,10 +3,15 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as z from "zod/v4";
|
|
5
5
|
import { safeParse } from "../lib/schemas.js";
|
|
6
|
+
import { Model$inboundSchema, Model$outboundSchema, } from "./model.js";
|
|
6
7
|
/** @internal */
|
|
7
|
-
export const ModelsListResponse$inboundSchema = z.object({
|
|
8
|
+
export const ModelsListResponse$inboundSchema = z.object({
|
|
9
|
+
data: z.array(Model$inboundSchema),
|
|
10
|
+
});
|
|
8
11
|
/** @internal */
|
|
9
|
-
export const ModelsListResponse$outboundSchema = z.object({
|
|
12
|
+
export const ModelsListResponse$outboundSchema = z.object({
|
|
13
|
+
data: z.array(Model$outboundSchema),
|
|
14
|
+
});
|
|
10
15
|
/**
|
|
11
16
|
* @internal
|
|
12
17
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
4
|
+
/**
|
|
5
|
+
* Error data for NotFoundResponse
|
|
6
|
+
*/
|
|
7
|
+
export type NotFoundResponseErrorData = {
|
|
8
|
+
code: number;
|
|
9
|
+
message: string;
|
|
10
|
+
metadata?: {
|
|
11
|
+
[k: string]: any | null;
|
|
12
|
+
} | null | undefined;
|
|
13
|
+
};
|
|
14
|
+
/** @internal */
|
|
15
|
+
export declare const NotFoundResponseErrorData$inboundSchema: z.ZodType<NotFoundResponseErrorData, unknown>;
|
|
16
|
+
/** @internal */
|
|
17
|
+
export type NotFoundResponseErrorData$Outbound = {
|
|
18
|
+
code: number;
|
|
19
|
+
message: string;
|
|
20
|
+
metadata?: {
|
|
21
|
+
[k: string]: any | null;
|
|
22
|
+
} | null | undefined;
|
|
23
|
+
};
|
|
24
|
+
/** @internal */
|
|
25
|
+
export declare const NotFoundResponseErrorData$outboundSchema: z.ZodType<NotFoundResponseErrorData$Outbound, NotFoundResponseErrorData>;
|
|
26
|
+
/**
|
|
27
|
+
* @internal
|
|
28
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
29
|
+
*/
|
|
30
|
+
export declare namespace NotFoundResponseErrorData$ {
|
|
31
|
+
/** @deprecated use `NotFoundResponseErrorData$inboundSchema` instead. */
|
|
32
|
+
const inboundSchema: z.ZodType<NotFoundResponseErrorData, unknown, z.core.$ZodTypeInternals<NotFoundResponseErrorData, unknown>>;
|
|
33
|
+
/** @deprecated use `NotFoundResponseErrorData$outboundSchema` instead. */
|
|
34
|
+
const outboundSchema: z.ZodType<NotFoundResponseErrorData$Outbound, NotFoundResponseErrorData, z.core.$ZodTypeInternals<NotFoundResponseErrorData$Outbound, NotFoundResponseErrorData>>;
|
|
35
|
+
/** @deprecated use `NotFoundResponseErrorData$Outbound` instead. */
|
|
36
|
+
type Outbound = NotFoundResponseErrorData$Outbound;
|
|
37
|
+
}
|
|
38
|
+
export declare function notFoundResponseErrorDataToJSON(notFoundResponseErrorData: NotFoundResponseErrorData): string;
|
|
39
|
+
export declare function notFoundResponseErrorDataFromJSON(jsonString: string): SafeParseResult<NotFoundResponseErrorData, SDKValidationError>;
|
|
40
|
+
//# sourceMappingURL=notfoundresponseerrordata.d.ts.map
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import * as z from "zod/v4";
|
|
5
|
+
import { safeParse } from "../lib/schemas.js";
|
|
6
|
+
/** @internal */
|
|
7
|
+
export const NotFoundResponseErrorData$inboundSchema = z.object({
|
|
8
|
+
code: z.number().int(),
|
|
9
|
+
message: z.string(),
|
|
10
|
+
metadata: z.nullable(z.record(z.string(), z.nullable(z.any()))).optional(),
|
|
11
|
+
});
|
|
12
|
+
/** @internal */
|
|
13
|
+
export const NotFoundResponseErrorData$outboundSchema = z.object({
|
|
14
|
+
code: z.number().int(),
|
|
15
|
+
message: z.string(),
|
|
16
|
+
metadata: z.nullable(z.record(z.string(), z.nullable(z.any()))).optional(),
|
|
17
|
+
});
|
|
18
|
+
/**
|
|
19
|
+
* @internal
|
|
20
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
21
|
+
*/
|
|
22
|
+
export var NotFoundResponseErrorData$;
|
|
23
|
+
(function (NotFoundResponseErrorData$) {
|
|
24
|
+
/** @deprecated use `NotFoundResponseErrorData$inboundSchema` instead. */
|
|
25
|
+
NotFoundResponseErrorData$.inboundSchema = NotFoundResponseErrorData$inboundSchema;
|
|
26
|
+
/** @deprecated use `NotFoundResponseErrorData$outboundSchema` instead. */
|
|
27
|
+
NotFoundResponseErrorData$.outboundSchema = NotFoundResponseErrorData$outboundSchema;
|
|
28
|
+
})(NotFoundResponseErrorData$ || (NotFoundResponseErrorData$ = {}));
|
|
29
|
+
export function notFoundResponseErrorDataToJSON(notFoundResponseErrorData) {
|
|
30
|
+
return JSON.stringify(NotFoundResponseErrorData$outboundSchema.parse(notFoundResponseErrorData));
|
|
31
|
+
}
|
|
32
|
+
export function notFoundResponseErrorDataFromJSON(jsonString) {
|
|
33
|
+
return safeParse(jsonString, (x) => NotFoundResponseErrorData$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'NotFoundResponseErrorData' from JSON`);
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=notfoundresponseerrordata.js.map
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import { OpenEnum } from "../types/enums.js";
|
|
3
|
+
export declare const OpenAIResponsesIncludable: {
|
|
4
|
+
readonly FileSearchCallResults: "file_search_call.results";
|
|
5
|
+
readonly MessageInputImageImageUrl: "message.input_image.image_url";
|
|
6
|
+
readonly ComputerCallOutputOutputImageUrl: "computer_call_output.output.image_url";
|
|
7
|
+
readonly ReasoningEncryptedContent: "reasoning.encrypted_content";
|
|
8
|
+
readonly CodeInterpreterCallOutputs: "code_interpreter_call.outputs";
|
|
9
|
+
};
|
|
10
|
+
export type OpenAIResponsesIncludable = OpenEnum<typeof OpenAIResponsesIncludable>;
|
|
11
|
+
/** @internal */
|
|
12
|
+
export declare const OpenAIResponsesIncludable$inboundSchema: z.ZodType<OpenAIResponsesIncludable, unknown>;
|
|
13
|
+
/** @internal */
|
|
14
|
+
export declare const OpenAIResponsesIncludable$outboundSchema: z.ZodType<OpenAIResponsesIncludable, OpenAIResponsesIncludable>;
|
|
15
|
+
/**
|
|
16
|
+
* @internal
|
|
17
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
18
|
+
*/
|
|
19
|
+
export declare namespace OpenAIResponsesIncludable$ {
|
|
20
|
+
/** @deprecated use `OpenAIResponsesIncludable$inboundSchema` instead. */
|
|
21
|
+
const inboundSchema: z.ZodType<OpenAIResponsesIncludable, unknown, z.core.$ZodTypeInternals<OpenAIResponsesIncludable, unknown>>;
|
|
22
|
+
/** @deprecated use `OpenAIResponsesIncludable$outboundSchema` instead. */
|
|
23
|
+
const outboundSchema: z.ZodType<OpenAIResponsesIncludable, OpenAIResponsesIncludable, z.core.$ZodTypeInternals<OpenAIResponsesIncludable, OpenAIResponsesIncludable>>;
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=openairesponsesincludable.d.ts.map
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
import * as z from "zod/v4";
|
|
5
|
+
import { catchUnrecognizedEnum, } from "../types/enums.js";
|
|
6
|
+
export const OpenAIResponsesIncludable = {
|
|
7
|
+
FileSearchCallResults: "file_search_call.results",
|
|
8
|
+
MessageInputImageImageUrl: "message.input_image.image_url",
|
|
9
|
+
ComputerCallOutputOutputImageUrl: "computer_call_output.output.image_url",
|
|
10
|
+
ReasoningEncryptedContent: "reasoning.encrypted_content",
|
|
11
|
+
CodeInterpreterCallOutputs: "code_interpreter_call.outputs",
|
|
12
|
+
};
|
|
13
|
+
/** @internal */
|
|
14
|
+
export const OpenAIResponsesIncludable$inboundSchema = z
|
|
15
|
+
.union([
|
|
16
|
+
z.enum(OpenAIResponsesIncludable),
|
|
17
|
+
z.string().transform(catchUnrecognizedEnum),
|
|
18
|
+
]);
|
|
19
|
+
/** @internal */
|
|
20
|
+
export const OpenAIResponsesIncludable$outboundSchema = z.union([
|
|
21
|
+
z.enum(OpenAIResponsesIncludable),
|
|
22
|
+
z.string().and(z.custom()),
|
|
23
|
+
]);
|
|
24
|
+
/**
|
|
25
|
+
* @internal
|
|
26
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
27
|
+
*/
|
|
28
|
+
export var OpenAIResponsesIncludable$;
|
|
29
|
+
(function (OpenAIResponsesIncludable$) {
|
|
30
|
+
/** @deprecated use `OpenAIResponsesIncludable$inboundSchema` instead. */
|
|
31
|
+
OpenAIResponsesIncludable$.inboundSchema = OpenAIResponsesIncludable$inboundSchema;
|
|
32
|
+
/** @deprecated use `OpenAIResponsesIncludable$outboundSchema` instead. */
|
|
33
|
+
OpenAIResponsesIncludable$.outboundSchema = OpenAIResponsesIncludable$outboundSchema;
|
|
34
|
+
})(OpenAIResponsesIncludable$ || (OpenAIResponsesIncludable$ = {}));
|
|
35
|
+
//# sourceMappingURL=openairesponsesincludable.js.map
|