@openrouter/sdk 0.13.58 → 0.13.60
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/esm/funcs/betaResponsesSend.d.ts +2 -4
- package/esm/funcs/byokList.js +1 -2
- package/esm/funcs/chatSend.d.ts +2 -4
- package/esm/funcs/datasetsGetAppRankings.js +1 -2
- package/esm/funcs/embeddingsListModels.js +1 -2
- package/esm/funcs/filesList.js +2 -3
- package/esm/funcs/guardrailsList.js +1 -2
- package/esm/funcs/guardrailsListGuardrailKeyAssignments.js +1 -2
- package/esm/funcs/guardrailsListGuardrailMemberAssignments.js +1 -2
- package/esm/funcs/guardrailsListKeyAssignments.js +1 -2
- package/esm/funcs/guardrailsListMemberAssignments.js +1 -2
- package/esm/funcs/imagesGenerate.d.ts +2 -4
- package/esm/funcs/modelsList.js +1 -2
- package/esm/funcs/modelsListForUser.js +1 -2
- package/esm/funcs/observabilityList.js +1 -2
- package/esm/funcs/organizationListMembers.js +1 -2
- package/esm/funcs/presetsList.js +1 -2
- package/esm/funcs/presetsListVersions.js +1 -2
- package/esm/funcs/workspacesList.js +1 -2
- package/esm/funcs/workspacesListMembers.js +1 -2
- package/esm/hooks/types.d.ts +1 -0
- package/esm/lib/config.d.ts +3 -3
- package/esm/lib/config.js +3 -3
- package/esm/lib/encodings.js +1 -1
- package/esm/lib/env.js +3 -3
- package/esm/lib/event-streams.d.ts +7 -2
- package/esm/lib/event-streams.js +30 -14
- package/esm/lib/matchers.js +1 -1
- package/esm/lib/primitives.d.ts +1 -0
- package/esm/lib/primitives.js +17 -0
- package/esm/lib/retries.js +7 -0
- package/esm/lib/sdks.js +50 -16
- package/esm/models/additionaltoolsitem.d.ts +7 -7
- package/esm/models/additionaltoolsitem.js +5 -5
- package/esm/models/advisornestedtool.d.ts +3 -3
- package/esm/models/advisornestedtool.js +2 -2
- package/esm/models/agentmessageitem.d.ts +3 -3
- package/esm/models/agentmessageitem.js +3 -3
- package/esm/models/badgatewayresponseerrordata.d.ts +1 -1
- package/esm/models/badgatewayresponseerrordata.js +1 -1
- package/esm/models/badrequestresponseerrordata.d.ts +1 -1
- package/esm/models/badrequestresponseerrordata.js +1 -1
- package/esm/models/baseinputsunion.d.ts +3 -3
- package/esm/models/baseinputsunion.js +0 -3
- package/esm/models/byokproviderslug.d.ts +1 -0
- package/esm/models/byokproviderslug.js +1 -0
- package/esm/models/chatassistantmessage.d.ts +4 -4
- package/esm/models/chatassistantmessage.js +4 -4
- package/esm/models/chatfunctiontool.d.ts +2 -2
- package/esm/models/chatfunctiontool.js +1 -1
- package/esm/models/chatjsonschemaconfig.d.ts +2 -2
- package/esm/models/chatjsonschemaconfig.js +1 -1
- package/esm/models/chatrequest.d.ts +4 -4
- package/esm/models/chatrequest.js +1 -3
- package/esm/models/chatstreamingresponse.js +3 -1
- package/esm/models/compactionitem.d.ts +1 -1
- package/esm/models/compactionitem.js +1 -1
- package/esm/models/compoundfilter.d.ts +2 -2
- package/esm/models/compoundfilter.js +2 -2
- package/esm/models/conflictresponseerrordata.d.ts +1 -1
- package/esm/models/conflictresponseerrordata.js +1 -1
- package/esm/models/contextcompactionitem.d.ts +1 -1
- package/esm/models/contextcompactionitem.js +1 -1
- package/esm/models/createobservabilitydestinationrequest.d.ts +2 -2
- package/esm/models/createobservabilitydestinationrequest.js +1 -1
- package/esm/models/debugevent.d.ts +1 -1
- package/esm/models/debugevent.js +1 -1
- package/esm/models/easyinputmessage.d.ts +8 -8
- package/esm/models/easyinputmessage.js +0 -4
- package/esm/models/edgenetworktimeoutresponseerrordata.d.ts +1 -1
- package/esm/models/edgenetworktimeoutresponseerrordata.js +1 -1
- package/esm/models/errors/badgatewayresponseerror.d.ts +2 -2
- package/esm/models/errors/badgatewayresponseerror.js +1 -2
- package/esm/models/errors/badrequestresponseerror.d.ts +2 -2
- package/esm/models/errors/badrequestresponseerror.js +1 -2
- package/esm/models/errors/conflictresponseerror.d.ts +2 -2
- package/esm/models/errors/conflictresponseerror.js +1 -2
- package/esm/models/errors/edgenetworktimeoutresponseerror.d.ts +2 -2
- package/esm/models/errors/edgenetworktimeoutresponseerror.js +1 -2
- package/esm/models/errors/forbiddenresponseerror.d.ts +2 -2
- package/esm/models/errors/forbiddenresponseerror.js +1 -2
- package/esm/models/errors/internalserverresponseerror.d.ts +2 -2
- package/esm/models/errors/internalserverresponseerror.js +1 -2
- package/esm/models/errors/notfoundresponseerror.d.ts +2 -2
- package/esm/models/errors/notfoundresponseerror.js +1 -2
- package/esm/models/errors/payloadtoolargeresponseerror.d.ts +2 -2
- package/esm/models/errors/payloadtoolargeresponseerror.js +1 -2
- package/esm/models/errors/paymentrequiredresponseerror.d.ts +2 -2
- package/esm/models/errors/paymentrequiredresponseerror.js +1 -2
- package/esm/models/errors/provideroverloadedresponseerror.d.ts +2 -2
- package/esm/models/errors/provideroverloadedresponseerror.js +1 -2
- package/esm/models/errors/requesttimeoutresponseerror.d.ts +2 -2
- package/esm/models/errors/requesttimeoutresponseerror.js +1 -2
- package/esm/models/errors/serviceunavailableresponseerror.d.ts +2 -2
- package/esm/models/errors/serviceunavailableresponseerror.js +1 -2
- package/esm/models/errors/toomanyrequestsresponseerror.d.ts +2 -2
- package/esm/models/errors/toomanyrequestsresponseerror.js +1 -2
- package/esm/models/errors/unauthorizedresponseerror.d.ts +2 -2
- package/esm/models/errors/unauthorizedresponseerror.js +1 -2
- package/esm/models/errors/unprocessableentityresponseerror.d.ts +2 -2
- package/esm/models/errors/unprocessableentityresponseerror.js +1 -2
- package/esm/models/filesearchservertool.d.ts +4 -4
- package/esm/models/filesearchservertool.js +1 -8
- package/esm/models/forbiddenresponseerrordata.d.ts +1 -1
- package/esm/models/forbiddenresponseerrordata.js +1 -1
- package/esm/models/formatjsonschemaconfig.d.ts +2 -2
- package/esm/models/formatjsonschemaconfig.js +2 -2
- package/esm/models/functioncalloutputitem.d.ts +2 -9
- package/esm/models/functioncalloutputitem.js +2 -8
- package/esm/models/fusionplugin.d.ts +28 -2
- package/esm/models/fusionplugin.js +28 -1
- package/esm/models/fusionservertoolconfig.d.ts +2 -2
- package/esm/models/fusionservertoolconfig.js +1 -1
- package/esm/models/generationcontentdata.d.ts +1 -1
- package/esm/models/generationcontentdata.js +1 -1
- package/esm/models/imageconfig.d.ts +2 -2
- package/esm/models/imageconfig.js +1 -1
- package/esm/models/imagegenerationproviderpreferences.d.ts +256 -250
- package/esm/models/imagegenerationproviderpreferences.js +126 -133
- package/esm/models/imagegenerationservertoolconfigunion.d.ts +2 -2
- package/esm/models/imagegenerationservertoolconfigunion.js +1 -1
- package/esm/models/imagestreamingresponse.js +3 -1
- package/esm/models/index.d.ts +0 -2
- package/esm/models/index.js +0 -2
- package/esm/models/inputsunion.d.ts +8 -8
- package/esm/models/inputsunion.js +0 -4
- package/esm/models/internalserverresponseerrordata.d.ts +1 -1
- package/esm/models/internalserverresponseerrordata.js +1 -1
- package/esm/models/listendpointsresponse.d.ts +2 -33
- package/esm/models/listendpointsresponse.js +2 -30
- package/esm/models/localshellcalloutputitem.d.ts +3 -10
- package/esm/models/localshellcalloutputitem.js +2 -9
- package/esm/models/mcplisttoolsitem.d.ts +4 -4
- package/esm/models/mcplisttoolsitem.js +2 -2
- package/esm/models/mcpservertool.d.ts +8 -8
- package/esm/models/mcpservertool.js +4 -24
- package/esm/models/messagesadvisortoolresultblock.d.ts +2 -2
- package/esm/models/messagesadvisortoolresultblock.js +1 -1
- package/esm/models/messagesfallbackparam.d.ts +1 -1
- package/esm/models/messagesfallbackparam.js +1 -1
- package/esm/models/messagesmessageparam.d.ts +4 -4
- package/esm/models/messagesmessageparam.js +2 -2
- package/esm/models/messagesoutputconfig.d.ts +2 -2
- package/esm/models/messagesoutputconfig.js +1 -1
- package/esm/models/messagesrequest.d.ts +10 -32
- package/esm/models/messagesrequest.js +7 -21
- package/esm/models/namespacefunctiontool.d.ts +4 -4
- package/esm/models/namespacefunctiontool.js +4 -6
- package/esm/models/notfoundresponseerrordata.d.ts +1 -1
- package/esm/models/notfoundresponseerrordata.js +1 -1
- package/esm/models/openairesponsefunctiontoolcalloutput.d.ts +3 -10
- package/esm/models/openairesponsefunctiontoolcalloutput.js +2 -11
- package/esm/models/openresponsesresult.d.ts +46 -2
- package/esm/models/openresponsesresult.js +69 -3
- package/esm/models/operations/listbyokkeys.d.ts +1 -0
- package/esm/models/operations/listbyokkeys.js +1 -0
- package/esm/models/outputcomputercallitem.d.ts +2 -2
- package/esm/models/outputcomputercallitem.js +2 -2
- package/esm/models/outputmemoryservertoolitem.d.ts +2 -2
- package/esm/models/outputmemoryservertoolitem.js +2 -2
- package/esm/models/outputmessage.d.ts +2 -2
- package/esm/models/outputmessage.js +0 -2
- package/esm/models/outputmessageitem.d.ts +2 -2
- package/esm/models/outputmessageitem.js +0 -2
- package/esm/models/payloadtoolargeresponseerrordata.d.ts +1 -1
- package/esm/models/payloadtoolargeresponseerrordata.js +1 -1
- package/esm/models/paymentrequiredresponseerrordata.d.ts +1 -1
- package/esm/models/paymentrequiredresponseerrordata.js +1 -1
- package/esm/models/pipelinestage.d.ts +1 -1
- package/esm/models/pipelinestage.js +1 -1
- package/esm/models/preferredmaxlatency.d.ts +2 -2
- package/esm/models/preferredmaxlatency.js +1 -1
- package/esm/models/preferredminthroughput.d.ts +2 -2
- package/esm/models/preferredminthroughput.js +1 -1
- package/esm/models/presetdesignatedversion.d.ts +1 -1
- package/esm/models/presetdesignatedversion.js +1 -1
- package/esm/models/providername.d.ts +2 -1
- package/esm/models/providername.js +2 -1
- package/esm/models/provideroptions.d.ts +252 -246
- package/esm/models/provideroptions.js +124 -123
- package/esm/models/provideroverloadedresponseerrordata.d.ts +1 -1
- package/esm/models/provideroverloadedresponseerrordata.js +1 -1
- package/esm/models/providerpreferences.d.ts +4 -4
- package/esm/models/providerpreferences.js +2 -10
- package/esm/models/providerresponse.d.ts +2 -1
- package/esm/models/providerresponse.js +2 -1
- package/esm/models/publicendpoint.d.ts +2 -16
- package/esm/models/publicendpoint.js +2 -15
- package/esm/models/quantization.d.ts +2 -0
- package/esm/models/quantization.js +2 -0
- package/esm/models/requesttimeoutresponseerrordata.d.ts +1 -1
- package/esm/models/requesttimeoutresponseerrordata.js +1 -1
- package/esm/models/responsesrequest.d.ts +37 -5
- package/esm/models/responsesrequest.js +24 -4
- package/esm/models/responsesstreamingresponse.js +3 -1
- package/esm/models/routerparams.d.ts +1 -1
- package/esm/models/serviceunavailableresponseerrordata.d.ts +1 -1
- package/esm/models/serviceunavailableresponseerrordata.js +1 -1
- package/esm/models/shellcallitem.d.ts +5 -12
- package/esm/models/shellcallitem.js +3 -10
- package/esm/models/shellcalloutputitem.d.ts +4 -11
- package/esm/models/shellcalloutputitem.js +3 -10
- package/esm/models/subagentnestedtool.d.ts +3 -3
- package/esm/models/subagentnestedtool.js +2 -2
- package/esm/models/toolchoiceallowed.d.ts +2 -2
- package/esm/models/toolchoiceallowed.js +2 -2
- package/esm/models/toomanyrequestsresponseerrordata.d.ts +1 -1
- package/esm/models/toomanyrequestsresponseerrordata.js +1 -1
- package/esm/models/traceconfig.d.ts +1 -1
- package/esm/models/traceconfig.js +1 -1
- package/esm/models/unauthorizedresponseerrordata.d.ts +1 -1
- package/esm/models/unauthorizedresponseerrordata.js +1 -1
- package/esm/models/unprocessableentityresponseerrordata.d.ts +1 -1
- package/esm/models/unprocessableentityresponseerrordata.js +1 -1
- package/esm/models/updateobservabilitydestinationrequest.d.ts +2 -2
- package/esm/models/updateobservabilitydestinationrequest.js +1 -1
- package/esm/models/videogenerationrequest.d.ts +252 -246
- package/esm/models/videogenerationrequest.js +124 -123
- package/esm/sdk/chat.d.ts +2 -4
- package/esm/sdk/images.d.ts +2 -3
- package/esm/sdk/responses.d.ts +2 -4
- package/esm/types/async.js +8 -7
- package/jsr.json +1 -1
- package/package.json +4 -4
- package/esm/lib/dlv.d.ts +0 -14
- package/esm/lib/dlv.js +0 -47
- package/esm/lib/is-plain-object.d.ts +0 -2
- package/esm/lib/is-plain-object.js +0 -39
- package/esm/models/reasoningconfig.d.ts +0 -35
- package/esm/models/reasoningconfig.js +0 -27
- package/esm/models/usage.d.ts +0 -52
- package/esm/models/usage.js +0 -75
|
@@ -6,15 +6,10 @@ import * as z from "zod/v4";
|
|
|
6
6
|
import { remap as remap$ } from "../lib/primitives.js";
|
|
7
7
|
import { safeParse } from "../lib/schemas.js";
|
|
8
8
|
import { discriminatedUnion } from "../types/discriminatedUnion.js";
|
|
9
|
-
import * as openEnums from "../types/enums.js";
|
|
10
9
|
import { InputFile$inboundSchema } from "./inputfile.js";
|
|
11
10
|
import { InputImage$inboundSchema } from "./inputimage.js";
|
|
12
11
|
import { InputText$inboundSchema } from "./inputtext.js";
|
|
13
|
-
|
|
14
|
-
InProgress: "in_progress",
|
|
15
|
-
Completed: "completed",
|
|
16
|
-
Incomplete: "incomplete",
|
|
17
|
-
};
|
|
12
|
+
import { ToolCallStatus$inboundSchema, } from "./toolcallstatus.js";
|
|
18
13
|
export const OpenAIResponseFunctionToolCallOutputType = {
|
|
19
14
|
FunctionCallOutput: "function_call_output",
|
|
20
15
|
};
|
|
@@ -40,9 +35,6 @@ export function openAIResponseFunctionToolCallOutputOutput2FromJSON(jsonString)
|
|
|
40
35
|
return safeParse(jsonString, (x) => OpenAIResponseFunctionToolCallOutputOutput2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OpenAIResponseFunctionToolCallOutputOutput2' from JSON`);
|
|
41
36
|
}
|
|
42
37
|
/** @internal */
|
|
43
|
-
export const OpenAIResponseFunctionToolCallOutputStatus$inboundSchema = openEnums
|
|
44
|
-
.inboundSchema(OpenAIResponseFunctionToolCallOutputStatus);
|
|
45
|
-
/** @internal */
|
|
46
38
|
export const OpenAIResponseFunctionToolCallOutputType$inboundSchema = z.enum(OpenAIResponseFunctionToolCallOutputType);
|
|
47
39
|
/** @internal */
|
|
48
40
|
export const OpenAIResponseFunctionToolCallOutput$inboundSchema = z.object({
|
|
@@ -56,8 +48,7 @@ export const OpenAIResponseFunctionToolCallOutput$inboundSchema = z.object({
|
|
|
56
48
|
input_text: InputText$inboundSchema,
|
|
57
49
|
})),
|
|
58
50
|
]),
|
|
59
|
-
status: z.nullable(
|
|
60
|
-
.optional(),
|
|
51
|
+
status: z.nullable(ToolCallStatus$inboundSchema).optional(),
|
|
61
52
|
type: OpenAIResponseFunctionToolCallOutputType$inboundSchema,
|
|
62
53
|
}).transform((v) => {
|
|
63
54
|
return remap$(v, {
|
|
@@ -24,11 +24,11 @@ import { OutputItems } from "./outputitems.js";
|
|
|
24
24
|
import { Preview20250311WebSearchServerTool } from "./preview20250311websearchservertool.js";
|
|
25
25
|
import { PreviewWebSearchServerTool } from "./previewwebsearchservertool.js";
|
|
26
26
|
import { ResponsesErrorField } from "./responseserrorfield.js";
|
|
27
|
+
import { ServerToolUseDetails } from "./servertoolusedetails.js";
|
|
27
28
|
import { ShellServerTool } from "./shellservertool.js";
|
|
28
29
|
import { StoredPromptTemplate } from "./storedprompttemplate.js";
|
|
29
30
|
import { TextExtendedConfig } from "./textextendedconfig.js";
|
|
30
31
|
import { Truncation } from "./truncation.js";
|
|
31
|
-
import { Usage } from "./usage.js";
|
|
32
32
|
import { WebSearchServerTool } from "./websearchservertool.js";
|
|
33
33
|
export declare const OpenResponsesResultObject: {
|
|
34
34
|
readonly Response: "response";
|
|
@@ -41,7 +41,7 @@ export type OpenResponsesResultToolFunction = {
|
|
|
41
41
|
description?: string | null | undefined;
|
|
42
42
|
name: string;
|
|
43
43
|
parameters: {
|
|
44
|
-
[k: string]: any
|
|
44
|
+
[k: string]: any;
|
|
45
45
|
} | null;
|
|
46
46
|
strict?: boolean | null | undefined;
|
|
47
47
|
type: "function";
|
|
@@ -75,6 +75,38 @@ export type OpenResponsesResultToolUnion = OpenResponsesResultToolFunction | (Pr
|
|
|
75
75
|
}) | (NamespaceTool & {
|
|
76
76
|
type: "namespace";
|
|
77
77
|
}) | discriminatedUnionTypes.Unknown<"type">;
|
|
78
|
+
export type InputTokensDetails = {
|
|
79
|
+
cacheWriteTokens?: number | null | undefined;
|
|
80
|
+
cachedTokens: number;
|
|
81
|
+
};
|
|
82
|
+
export type OutputTokensDetails = {
|
|
83
|
+
reasoningTokens: number;
|
|
84
|
+
};
|
|
85
|
+
export type UsageCostDetails = {
|
|
86
|
+
upstreamInferenceCost?: number | null | undefined;
|
|
87
|
+
upstreamInferenceInputCost: number;
|
|
88
|
+
upstreamInferenceOutputCost: number;
|
|
89
|
+
};
|
|
90
|
+
export type Usage = {
|
|
91
|
+
inputTokens: number;
|
|
92
|
+
inputTokensDetails: InputTokensDetails;
|
|
93
|
+
outputTokens: number;
|
|
94
|
+
outputTokensDetails: OutputTokensDetails;
|
|
95
|
+
totalTokens: number;
|
|
96
|
+
/**
|
|
97
|
+
* Cost of the completion
|
|
98
|
+
*/
|
|
99
|
+
cost?: number | null | undefined;
|
|
100
|
+
costDetails?: UsageCostDetails | undefined;
|
|
101
|
+
/**
|
|
102
|
+
* Whether a request was made using a Bring Your Own Key configuration
|
|
103
|
+
*/
|
|
104
|
+
isByok?: boolean | undefined;
|
|
105
|
+
/**
|
|
106
|
+
* Usage for server-side tool execution (e.g., web search)
|
|
107
|
+
*/
|
|
108
|
+
serverToolUseDetails?: ServerToolUseDetails | null | undefined;
|
|
109
|
+
};
|
|
78
110
|
/**
|
|
79
111
|
* Complete non-streaming response from the Responses API
|
|
80
112
|
*/
|
|
@@ -170,6 +202,18 @@ export declare function openResponsesResultToolFunctionFromJSON(jsonString: stri
|
|
|
170
202
|
export declare const OpenResponsesResultToolUnion$inboundSchema: z.ZodType<OpenResponsesResultToolUnion, unknown>;
|
|
171
203
|
export declare function openResponsesResultToolUnionFromJSON(jsonString: string): SafeParseResult<OpenResponsesResultToolUnion, SDKValidationError>;
|
|
172
204
|
/** @internal */
|
|
205
|
+
export declare const InputTokensDetails$inboundSchema: z.ZodType<InputTokensDetails, unknown>;
|
|
206
|
+
export declare function inputTokensDetailsFromJSON(jsonString: string): SafeParseResult<InputTokensDetails, SDKValidationError>;
|
|
207
|
+
/** @internal */
|
|
208
|
+
export declare const OutputTokensDetails$inboundSchema: z.ZodType<OutputTokensDetails, unknown>;
|
|
209
|
+
export declare function outputTokensDetailsFromJSON(jsonString: string): SafeParseResult<OutputTokensDetails, SDKValidationError>;
|
|
210
|
+
/** @internal */
|
|
211
|
+
export declare const UsageCostDetails$inboundSchema: z.ZodType<UsageCostDetails, unknown>;
|
|
212
|
+
export declare function usageCostDetailsFromJSON(jsonString: string): SafeParseResult<UsageCostDetails, SDKValidationError>;
|
|
213
|
+
/** @internal */
|
|
214
|
+
export declare const Usage$inboundSchema: z.ZodType<Usage, unknown>;
|
|
215
|
+
export declare function usageFromJSON(jsonString: string): SafeParseResult<Usage, SDKValidationError>;
|
|
216
|
+
/** @internal */
|
|
173
217
|
export declare const OpenResponsesResult$inboundSchema: z.ZodType<OpenResponsesResult, unknown>;
|
|
174
218
|
export declare function openResponsesResultFromJSON(jsonString: string): SafeParseResult<OpenResponsesResult, SDKValidationError>;
|
|
175
219
|
//# sourceMappingURL=openresponsesresult.d.ts.map
|
|
@@ -27,11 +27,11 @@ import { OutputItems$inboundSchema } from "./outputitems.js";
|
|
|
27
27
|
import { Preview20250311WebSearchServerTool$inboundSchema, } from "./preview20250311websearchservertool.js";
|
|
28
28
|
import { PreviewWebSearchServerTool$inboundSchema, } from "./previewwebsearchservertool.js";
|
|
29
29
|
import { ResponsesErrorField$inboundSchema, } from "./responseserrorfield.js";
|
|
30
|
+
import { ServerToolUseDetails$inboundSchema, } from "./servertoolusedetails.js";
|
|
30
31
|
import { ShellServerTool$inboundSchema, } from "./shellservertool.js";
|
|
31
32
|
import { StoredPromptTemplate$inboundSchema, } from "./storedprompttemplate.js";
|
|
32
33
|
import { TextExtendedConfig$inboundSchema, } from "./textextendedconfig.js";
|
|
33
34
|
import { Truncation$inboundSchema } from "./truncation.js";
|
|
34
|
-
import { Usage$inboundSchema } from "./usage.js";
|
|
35
35
|
import { WebSearchServerTool$inboundSchema, } from "./websearchservertool.js";
|
|
36
36
|
export const OpenResponsesResultObject = {
|
|
37
37
|
Response: "response",
|
|
@@ -42,7 +42,7 @@ export const OpenResponsesResultObject$inboundSchema = z.enum(OpenResponsesResul
|
|
|
42
42
|
export const OpenResponsesResultToolFunction$inboundSchema = z.object({
|
|
43
43
|
description: z.nullable(z.string()).optional(),
|
|
44
44
|
name: z.string(),
|
|
45
|
-
parameters: z.nullable(z.record(z.string(), z.
|
|
45
|
+
parameters: z.nullable(z.record(z.string(), z.any())),
|
|
46
46
|
strict: z.nullable(z.boolean()).optional(),
|
|
47
47
|
type: z.literal("function"),
|
|
48
48
|
});
|
|
@@ -71,6 +71,72 @@ export function openResponsesResultToolUnionFromJSON(jsonString) {
|
|
|
71
71
|
return safeParse(jsonString, (x) => OpenResponsesResultToolUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OpenResponsesResultToolUnion' from JSON`);
|
|
72
72
|
}
|
|
73
73
|
/** @internal */
|
|
74
|
+
export const InputTokensDetails$inboundSchema = z.object({
|
|
75
|
+
cache_write_tokens: z.nullable(z.int()).optional(),
|
|
76
|
+
cached_tokens: z.int(),
|
|
77
|
+
}).transform((v) => {
|
|
78
|
+
return remap$(v, {
|
|
79
|
+
"cache_write_tokens": "cacheWriteTokens",
|
|
80
|
+
"cached_tokens": "cachedTokens",
|
|
81
|
+
});
|
|
82
|
+
});
|
|
83
|
+
export function inputTokensDetailsFromJSON(jsonString) {
|
|
84
|
+
return safeParse(jsonString, (x) => InputTokensDetails$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'InputTokensDetails' from JSON`);
|
|
85
|
+
}
|
|
86
|
+
/** @internal */
|
|
87
|
+
export const OutputTokensDetails$inboundSchema = z.object({
|
|
88
|
+
reasoning_tokens: z.int(),
|
|
89
|
+
}).transform((v) => {
|
|
90
|
+
return remap$(v, {
|
|
91
|
+
"reasoning_tokens": "reasoningTokens",
|
|
92
|
+
});
|
|
93
|
+
});
|
|
94
|
+
export function outputTokensDetailsFromJSON(jsonString) {
|
|
95
|
+
return safeParse(jsonString, (x) => OutputTokensDetails$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OutputTokensDetails' from JSON`);
|
|
96
|
+
}
|
|
97
|
+
/** @internal */
|
|
98
|
+
export const UsageCostDetails$inboundSchema = z.object({
|
|
99
|
+
upstream_inference_cost: z.nullable(z.number()).optional(),
|
|
100
|
+
upstream_inference_input_cost: z.number(),
|
|
101
|
+
upstream_inference_output_cost: z.number(),
|
|
102
|
+
}).transform((v) => {
|
|
103
|
+
return remap$(v, {
|
|
104
|
+
"upstream_inference_cost": "upstreamInferenceCost",
|
|
105
|
+
"upstream_inference_input_cost": "upstreamInferenceInputCost",
|
|
106
|
+
"upstream_inference_output_cost": "upstreamInferenceOutputCost",
|
|
107
|
+
});
|
|
108
|
+
});
|
|
109
|
+
export function usageCostDetailsFromJSON(jsonString) {
|
|
110
|
+
return safeParse(jsonString, (x) => UsageCostDetails$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'UsageCostDetails' from JSON`);
|
|
111
|
+
}
|
|
112
|
+
/** @internal */
|
|
113
|
+
export const Usage$inboundSchema = z.object({
|
|
114
|
+
input_tokens: z.int(),
|
|
115
|
+
input_tokens_details: z.lazy(() => InputTokensDetails$inboundSchema),
|
|
116
|
+
output_tokens: z.int(),
|
|
117
|
+
output_tokens_details: z.lazy(() => OutputTokensDetails$inboundSchema),
|
|
118
|
+
total_tokens: z.int(),
|
|
119
|
+
cost: z.nullable(z.number()).optional(),
|
|
120
|
+
cost_details: z.lazy(() => UsageCostDetails$inboundSchema).optional(),
|
|
121
|
+
is_byok: z.boolean().optional(),
|
|
122
|
+
server_tool_use_details: z.nullable(ServerToolUseDetails$inboundSchema)
|
|
123
|
+
.optional(),
|
|
124
|
+
}).transform((v) => {
|
|
125
|
+
return remap$(v, {
|
|
126
|
+
"input_tokens": "inputTokens",
|
|
127
|
+
"input_tokens_details": "inputTokensDetails",
|
|
128
|
+
"output_tokens": "outputTokens",
|
|
129
|
+
"output_tokens_details": "outputTokensDetails",
|
|
130
|
+
"total_tokens": "totalTokens",
|
|
131
|
+
"cost_details": "costDetails",
|
|
132
|
+
"is_byok": "isByok",
|
|
133
|
+
"server_tool_use_details": "serverToolUseDetails",
|
|
134
|
+
});
|
|
135
|
+
});
|
|
136
|
+
export function usageFromJSON(jsonString) {
|
|
137
|
+
return safeParse(jsonString, (x) => Usage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Usage' from JSON`);
|
|
138
|
+
}
|
|
139
|
+
/** @internal */
|
|
74
140
|
export const OpenResponsesResult$inboundSchema = z.object({
|
|
75
141
|
background: z.nullable(z.boolean()).optional(),
|
|
76
142
|
completed_at: z.nullable(z.int()),
|
|
@@ -120,7 +186,7 @@ export const OpenResponsesResult$inboundSchema = z.object({
|
|
|
120
186
|
top_logprobs: z.nullable(z.int()).optional(),
|
|
121
187
|
top_p: z.nullable(z.number()),
|
|
122
188
|
truncation: z.nullable(Truncation$inboundSchema).optional(),
|
|
123
|
-
usage: z.nullable(Usage$inboundSchema).optional(),
|
|
189
|
+
usage: z.nullable(z.lazy(() => Usage$inboundSchema)).optional(),
|
|
124
190
|
user: z.nullable(z.string()).optional(),
|
|
125
191
|
error_type: ApiErrorType$inboundSchema.optional(),
|
|
126
192
|
openrouter_metadata: OpenRouterMetadata$inboundSchema.optional(),
|
|
@@ -111,6 +111,7 @@ export declare const Provider: {
|
|
|
111
111
|
readonly Stepfun: "stepfun";
|
|
112
112
|
readonly Streamlake: "streamlake";
|
|
113
113
|
readonly Switchpoint: "switchpoint";
|
|
114
|
+
readonly Tencent: "tencent";
|
|
114
115
|
readonly Tenstorrent: "tenstorrent";
|
|
115
116
|
readonly Together: "together";
|
|
116
117
|
readonly Upstage: "upstage";
|
|
@@ -18,7 +18,7 @@ export declare const OutputComputerCallItemType: {
|
|
|
18
18
|
};
|
|
19
19
|
export type OutputComputerCallItemType = ClosedEnum<typeof OutputComputerCallItemType>;
|
|
20
20
|
export type OutputComputerCallItem = {
|
|
21
|
-
action?: any |
|
|
21
|
+
action?: any | undefined;
|
|
22
22
|
callId: string;
|
|
23
23
|
id?: string | undefined;
|
|
24
24
|
pendingSafetyChecks: Array<PendingSafetyCheck>;
|
|
@@ -49,7 +49,7 @@ export declare const OutputComputerCallItemType$outboundSchema: z.ZodEnum<typeof
|
|
|
49
49
|
export declare const OutputComputerCallItem$inboundSchema: z.ZodType<OutputComputerCallItem, unknown>;
|
|
50
50
|
/** @internal */
|
|
51
51
|
export type OutputComputerCallItem$Outbound = {
|
|
52
|
-
action?: any |
|
|
52
|
+
action?: any | undefined;
|
|
53
53
|
call_id: string;
|
|
54
54
|
id?: string | undefined;
|
|
55
55
|
pending_safety_checks: Array<PendingSafetyCheck$Outbound>;
|
|
@@ -42,7 +42,7 @@ export const OutputComputerCallItemType$inboundSchema = z.enum(OutputComputerCal
|
|
|
42
42
|
export const OutputComputerCallItemType$outboundSchema = OutputComputerCallItemType$inboundSchema;
|
|
43
43
|
/** @internal */
|
|
44
44
|
export const OutputComputerCallItem$inboundSchema = z.object({
|
|
45
|
-
action: z.
|
|
45
|
+
action: z.any().optional(),
|
|
46
46
|
call_id: z.string(),
|
|
47
47
|
id: z.string().optional(),
|
|
48
48
|
pending_safety_checks: z.array(z.lazy(() => PendingSafetyCheck$inboundSchema)),
|
|
@@ -56,7 +56,7 @@ export const OutputComputerCallItem$inboundSchema = z.object({
|
|
|
56
56
|
});
|
|
57
57
|
/** @internal */
|
|
58
58
|
export const OutputComputerCallItem$outboundSchema = z.object({
|
|
59
|
-
action: z.
|
|
59
|
+
action: z.any().optional(),
|
|
60
60
|
callId: z.string(),
|
|
61
61
|
id: z.string().optional(),
|
|
62
62
|
pendingSafetyChecks: z.array(z.lazy(() => PendingSafetyCheck$outboundSchema)),
|
|
@@ -22,7 +22,7 @@ export type OutputMemoryServerToolItem = {
|
|
|
22
22
|
key?: string | undefined;
|
|
23
23
|
status: ToolCallStatus;
|
|
24
24
|
type: OutputMemoryServerToolItemType;
|
|
25
|
-
value?: any |
|
|
25
|
+
value?: any | undefined;
|
|
26
26
|
};
|
|
27
27
|
/** @internal */
|
|
28
28
|
export declare const ActionEnum$inboundSchema: z.ZodType<ActionEnum, unknown>;
|
|
@@ -41,7 +41,7 @@ export type OutputMemoryServerToolItem$Outbound = {
|
|
|
41
41
|
key?: string | undefined;
|
|
42
42
|
status: string;
|
|
43
43
|
type: string;
|
|
44
|
-
value?: any |
|
|
44
|
+
value?: any | undefined;
|
|
45
45
|
};
|
|
46
46
|
/** @internal */
|
|
47
47
|
export declare const OutputMemoryServerToolItem$outboundSchema: z.ZodType<OutputMemoryServerToolItem$Outbound, OutputMemoryServerToolItem>;
|
|
@@ -29,7 +29,7 @@ export const OutputMemoryServerToolItem$inboundSchema = z.object({
|
|
|
29
29
|
key: z.string().optional(),
|
|
30
30
|
status: ToolCallStatus$inboundSchema,
|
|
31
31
|
type: OutputMemoryServerToolItemType$inboundSchema,
|
|
32
|
-
value: z.
|
|
32
|
+
value: z.any().optional(),
|
|
33
33
|
});
|
|
34
34
|
/** @internal */
|
|
35
35
|
export const OutputMemoryServerToolItem$outboundSchema = z.object({
|
|
@@ -38,7 +38,7 @@ export const OutputMemoryServerToolItem$outboundSchema = z.object({
|
|
|
38
38
|
key: z.string().optional(),
|
|
39
39
|
status: ToolCallStatus$outboundSchema,
|
|
40
40
|
type: OutputMemoryServerToolItemType$outboundSchema,
|
|
41
|
-
value: z.
|
|
41
|
+
value: z.any().optional(),
|
|
42
42
|
});
|
|
43
43
|
export function outputMemoryServerToolItemToJSON(outputMemoryServerToolItem) {
|
|
44
44
|
return JSON.stringify(OutputMemoryServerToolItem$outboundSchema.parse(outputMemoryServerToolItem));
|
|
@@ -17,7 +17,7 @@ export type OutputMessagePhaseCommentary = ClosedEnum<typeof OutputMessagePhaseC
|
|
|
17
17
|
/**
|
|
18
18
|
* The phase of an assistant message. Use `commentary` for an intermediate assistant message and `final_answer` for the final assistant message. For follow-up requests with models like `gpt-5.3-codex` and later, preserve and resend phase on all assistant messages. Omitting it can degrade performance. Not used for user messages.
|
|
19
19
|
*/
|
|
20
|
-
export type OutputMessagePhaseUnion = OutputMessagePhaseCommentary | OutputMessagePhaseFinalAnswer
|
|
20
|
+
export type OutputMessagePhaseUnion = OutputMessagePhaseCommentary | OutputMessagePhaseFinalAnswer;
|
|
21
21
|
export declare const OutputMessageRole: {
|
|
22
22
|
readonly Assistant: "assistant";
|
|
23
23
|
};
|
|
@@ -45,7 +45,7 @@ export type OutputMessage = {
|
|
|
45
45
|
/**
|
|
46
46
|
* The phase of an assistant message. Use `commentary` for an intermediate assistant message and `final_answer` for the final assistant message. For follow-up requests with models like `gpt-5.3-codex` and later, preserve and resend phase on all assistant messages. Omitting it can degrade performance. Not used for user messages.
|
|
47
47
|
*/
|
|
48
|
-
phase?: OutputMessagePhaseCommentary | OutputMessagePhaseFinalAnswer |
|
|
48
|
+
phase?: OutputMessagePhaseCommentary | OutputMessagePhaseFinalAnswer | null | undefined;
|
|
49
49
|
role: OutputMessageRole;
|
|
50
50
|
status?: OutputMessageStatusCompleted | OutputMessageStatusIncomplete | OutputMessageStatusInProgress | undefined;
|
|
51
51
|
type: OutputMessageType;
|
|
@@ -44,7 +44,6 @@ export const OutputMessagePhaseCommentary$inboundSchema = z.enum(OutputMessagePh
|
|
|
44
44
|
export const OutputMessagePhaseUnion$inboundSchema = z.union([
|
|
45
45
|
OutputMessagePhaseCommentary$inboundSchema,
|
|
46
46
|
OutputMessagePhaseFinalAnswer$inboundSchema,
|
|
47
|
-
z.any(),
|
|
48
47
|
]);
|
|
49
48
|
export function outputMessagePhaseUnionFromJSON(jsonString) {
|
|
50
49
|
return safeParse(jsonString, (x) => OutputMessagePhaseUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OutputMessagePhaseUnion' from JSON`);
|
|
@@ -79,7 +78,6 @@ export const OutputMessage$inboundSchema = z
|
|
|
79
78
|
phase: z.nullable(z.union([
|
|
80
79
|
OutputMessagePhaseCommentary$inboundSchema,
|
|
81
80
|
OutputMessagePhaseFinalAnswer$inboundSchema,
|
|
82
|
-
z.any(),
|
|
83
81
|
])).optional(),
|
|
84
82
|
role: OutputMessageRole$inboundSchema,
|
|
85
83
|
status: z.union([
|
|
@@ -17,7 +17,7 @@ export type OutputMessageItemPhaseCommentary = ClosedEnum<typeof OutputMessageIt
|
|
|
17
17
|
/**
|
|
18
18
|
* The phase of an assistant message. Use `commentary` for an intermediate assistant message and `final_answer` for the final assistant message. For follow-up requests with models like `gpt-5.3-codex` and later, preserve and resend phase on all assistant messages. Omitting it can degrade performance. Not used for user messages.
|
|
19
19
|
*/
|
|
20
|
-
export type OutputMessageItemPhaseUnion = OutputMessageItemPhaseCommentary | OutputMessageItemPhaseFinalAnswer
|
|
20
|
+
export type OutputMessageItemPhaseUnion = OutputMessageItemPhaseCommentary | OutputMessageItemPhaseFinalAnswer;
|
|
21
21
|
export declare const OutputMessageItemRole: {
|
|
22
22
|
readonly Assistant: "assistant";
|
|
23
23
|
};
|
|
@@ -44,7 +44,7 @@ export type OutputMessageItem = {
|
|
|
44
44
|
/**
|
|
45
45
|
* The phase of an assistant message. Use `commentary` for an intermediate assistant message and `final_answer` for the final assistant message. For follow-up requests with models like `gpt-5.3-codex` and later, preserve and resend phase on all assistant messages. Omitting it can degrade performance. Not used for user messages.
|
|
46
46
|
*/
|
|
47
|
-
phase?: OutputMessageItemPhaseCommentary | OutputMessageItemPhaseFinalAnswer |
|
|
47
|
+
phase?: OutputMessageItemPhaseCommentary | OutputMessageItemPhaseFinalAnswer | null | undefined;
|
|
48
48
|
role: OutputMessageItemRole;
|
|
49
49
|
status?: OutputMessageItemStatusCompleted | OutputMessageItemStatusIncomplete | OutputMessageItemStatusInProgress | undefined;
|
|
50
50
|
type: "message";
|
|
@@ -41,7 +41,6 @@ export const OutputMessageItemPhaseCommentary$inboundSchema = z.enum(OutputMessa
|
|
|
41
41
|
export const OutputMessageItemPhaseUnion$inboundSchema = z.union([
|
|
42
42
|
OutputMessageItemPhaseCommentary$inboundSchema,
|
|
43
43
|
OutputMessageItemPhaseFinalAnswer$inboundSchema,
|
|
44
|
-
z.any(),
|
|
45
44
|
]);
|
|
46
45
|
export function outputMessageItemPhaseUnionFromJSON(jsonString) {
|
|
47
46
|
return safeParse(jsonString, (x) => OutputMessageItemPhaseUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'OutputMessageItemPhaseUnion' from JSON`);
|
|
@@ -73,7 +72,6 @@ export const OutputMessageItem$inboundSchema = z.object({
|
|
|
73
72
|
phase: z.nullable(z.union([
|
|
74
73
|
OutputMessageItemPhaseCommentary$inboundSchema,
|
|
75
74
|
OutputMessageItemPhaseFinalAnswer$inboundSchema,
|
|
76
|
-
z.any(),
|
|
77
75
|
])).optional(),
|
|
78
76
|
role: OutputMessageItemRole$inboundSchema,
|
|
79
77
|
status: z.union([
|
|
@@ -8,7 +8,7 @@ import { safeParse } from "../lib/schemas.js";
|
|
|
8
8
|
export const PayloadTooLargeResponseErrorData$inboundSchema = z.object({
|
|
9
9
|
code: z.int(),
|
|
10
10
|
message: z.string(),
|
|
11
|
-
metadata: z.nullable(z.record(z.string(), z.
|
|
11
|
+
metadata: z.nullable(z.record(z.string(), z.any())).optional(),
|
|
12
12
|
});
|
|
13
13
|
export function payloadTooLargeResponseErrorDataFromJSON(jsonString) {
|
|
14
14
|
return safeParse(jsonString, (x) => PayloadTooLargeResponseErrorData$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PayloadTooLargeResponseErrorData' from JSON`);
|
|
@@ -8,7 +8,7 @@ import { safeParse } from "../lib/schemas.js";
|
|
|
8
8
|
export const PaymentRequiredResponseErrorData$inboundSchema = z.object({
|
|
9
9
|
code: z.int(),
|
|
10
10
|
message: z.string(),
|
|
11
|
-
metadata: z.nullable(z.record(z.string(), z.
|
|
11
|
+
metadata: z.nullable(z.record(z.string(), z.any())).optional(),
|
|
12
12
|
});
|
|
13
13
|
export function paymentRequiredResponseErrorDataFromJSON(jsonString) {
|
|
14
14
|
return safeParse(jsonString, (x) => PaymentRequiredResponseErrorData$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PaymentRequiredResponseErrorData' from JSON`);
|
|
@@ -5,7 +5,7 @@ import { PipelineStageType } from "./pipelinestagetype.js";
|
|
|
5
5
|
export type PipelineStage = {
|
|
6
6
|
costUsd?: number | null | undefined;
|
|
7
7
|
data?: {
|
|
8
|
-
[k: string]: any
|
|
8
|
+
[k: string]: any;
|
|
9
9
|
} | undefined;
|
|
10
10
|
guardrailId?: string | undefined;
|
|
11
11
|
guardrailScope?: string | undefined;
|
|
@@ -10,7 +10,7 @@ import { PipelineStageType$inboundSchema, } from "./pipelinestagetype.js";
|
|
|
10
10
|
export const PipelineStage$inboundSchema = z
|
|
11
11
|
.object({
|
|
12
12
|
cost_usd: z.nullable(z.number()).optional(),
|
|
13
|
-
data: z.record(z.string(), z.
|
|
13
|
+
data: z.record(z.string(), z.any()).optional(),
|
|
14
14
|
guardrail_id: z.string().optional(),
|
|
15
15
|
guardrail_scope: z.string().optional(),
|
|
16
16
|
name: z.string(),
|
|
@@ -3,9 +3,9 @@ import { PercentileLatencyCutoffs, PercentileLatencyCutoffs$Outbound } from "./p
|
|
|
3
3
|
/**
|
|
4
4
|
* Preferred maximum latency (in seconds). Can be a number (applies to p50) or an object with percentile-specific cutoffs. Endpoints above the threshold(s) may still be used, but are deprioritized in routing. When using fallback models, this may cause a fallback model to be used instead of the primary model if it meets the threshold.
|
|
5
5
|
*/
|
|
6
|
-
export type PreferredMaxLatency = number | PercentileLatencyCutoffs
|
|
6
|
+
export type PreferredMaxLatency = number | PercentileLatencyCutoffs;
|
|
7
7
|
/** @internal */
|
|
8
|
-
export type PreferredMaxLatency$Outbound = number | PercentileLatencyCutoffs$Outbound
|
|
8
|
+
export type PreferredMaxLatency$Outbound = number | PercentileLatencyCutoffs$Outbound;
|
|
9
9
|
/** @internal */
|
|
10
10
|
export declare const PreferredMaxLatency$outboundSchema: z.ZodType<PreferredMaxLatency$Outbound, PreferredMaxLatency>;
|
|
11
11
|
export declare function preferredMaxLatencyToJSON(preferredMaxLatency: PreferredMaxLatency): string;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import * as z from "zod/v4";
|
|
6
6
|
import { PercentileLatencyCutoffs$outboundSchema, } from "./percentilelatencycutoffs.js";
|
|
7
7
|
/** @internal */
|
|
8
|
-
export const PreferredMaxLatency$outboundSchema = z.union([z.number(), PercentileLatencyCutoffs$outboundSchema
|
|
8
|
+
export const PreferredMaxLatency$outboundSchema = z.union([z.number(), PercentileLatencyCutoffs$outboundSchema]);
|
|
9
9
|
export function preferredMaxLatencyToJSON(preferredMaxLatency) {
|
|
10
10
|
return JSON.stringify(PreferredMaxLatency$outboundSchema.parse(preferredMaxLatency));
|
|
11
11
|
}
|
|
@@ -3,9 +3,9 @@ import { PercentileThroughputCutoffs, PercentileThroughputCutoffs$Outbound } fro
|
|
|
3
3
|
/**
|
|
4
4
|
* Preferred minimum throughput (in tokens per second). Can be a number (applies to p50) or an object with percentile-specific cutoffs. Endpoints below the threshold(s) may still be used, but are deprioritized in routing. When using fallback models, this may cause a fallback model to be used instead of the primary model if it meets the threshold.
|
|
5
5
|
*/
|
|
6
|
-
export type PreferredMinThroughput = number | PercentileThroughputCutoffs
|
|
6
|
+
export type PreferredMinThroughput = number | PercentileThroughputCutoffs;
|
|
7
7
|
/** @internal */
|
|
8
|
-
export type PreferredMinThroughput$Outbound = number | PercentileThroughputCutoffs$Outbound
|
|
8
|
+
export type PreferredMinThroughput$Outbound = number | PercentileThroughputCutoffs$Outbound;
|
|
9
9
|
/** @internal */
|
|
10
10
|
export declare const PreferredMinThroughput$outboundSchema: z.ZodType<PreferredMinThroughput$Outbound, PreferredMinThroughput>;
|
|
11
11
|
export declare function preferredMinThroughputToJSON(preferredMinThroughput: PreferredMinThroughput): string;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import * as z from "zod/v4";
|
|
6
6
|
import { PercentileThroughputCutoffs$outboundSchema, } from "./percentilethroughputcutoffs.js";
|
|
7
7
|
/** @internal */
|
|
8
|
-
export const PreferredMinThroughput$outboundSchema = z.union([z.number(), PercentileThroughputCutoffs$outboundSchema
|
|
8
|
+
export const PreferredMinThroughput$outboundSchema = z.union([z.number(), PercentileThroughputCutoffs$outboundSchema]);
|
|
9
9
|
export function preferredMinThroughputToJSON(preferredMinThroughput) {
|
|
10
10
|
return JSON.stringify(PreferredMinThroughput$outboundSchema.parse(preferredMinThroughput));
|
|
11
11
|
}
|
|
@@ -7,7 +7,7 @@ import { remap as remap$ } from "../lib/primitives.js";
|
|
|
7
7
|
import { safeParse } from "../lib/schemas.js";
|
|
8
8
|
/** @internal */
|
|
9
9
|
export const PresetDesignatedVersion$inboundSchema = z.object({
|
|
10
|
-
config: z.record(z.string(), z.
|
|
10
|
+
config: z.record(z.string(), z.any()),
|
|
11
11
|
created_at: z.string(),
|
|
12
12
|
creator_id: z.string(),
|
|
13
13
|
id: z.string(),
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import * as z from "zod/v4";
|
|
2
2
|
import { OpenEnum } from "../types/enums.js";
|
|
3
3
|
export declare const ProviderName: {
|
|
4
|
-
readonly Meta: "Meta";
|
|
5
4
|
readonly AkashML: "AkashML";
|
|
6
5
|
readonly Ai21: "AI21";
|
|
7
6
|
readonly AionLabs: "AionLabs";
|
|
@@ -52,6 +51,7 @@ export declare const ProviderName: {
|
|
|
52
51
|
readonly Liquid: "Liquid";
|
|
53
52
|
readonly Mara: "Mara";
|
|
54
53
|
readonly Mancer2: "Mancer 2";
|
|
54
|
+
readonly Meta: "Meta";
|
|
55
55
|
readonly Minimax: "Minimax";
|
|
56
56
|
readonly ModelRun: "ModelRun";
|
|
57
57
|
readonly Mistral: "Mistral";
|
|
@@ -84,6 +84,7 @@ export declare const ProviderName: {
|
|
|
84
84
|
readonly Stealth: "Stealth";
|
|
85
85
|
readonly StreamLake: "StreamLake";
|
|
86
86
|
readonly Switchpoint: "Switchpoint";
|
|
87
|
+
readonly Tencent: "Tencent";
|
|
87
88
|
readonly Tenstorrent: "Tenstorrent";
|
|
88
89
|
readonly Together: "Together";
|
|
89
90
|
readonly Upstage: "Upstage";
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import * as openEnums from "../types/enums.js";
|
|
6
6
|
export const ProviderName = {
|
|
7
|
-
Meta: "Meta",
|
|
8
7
|
AkashML: "AkashML",
|
|
9
8
|
Ai21: "AI21",
|
|
10
9
|
AionLabs: "AionLabs",
|
|
@@ -55,6 +54,7 @@ export const ProviderName = {
|
|
|
55
54
|
Liquid: "Liquid",
|
|
56
55
|
Mara: "Mara",
|
|
57
56
|
Mancer2: "Mancer 2",
|
|
57
|
+
Meta: "Meta",
|
|
58
58
|
Minimax: "Minimax",
|
|
59
59
|
ModelRun: "ModelRun",
|
|
60
60
|
Mistral: "Mistral",
|
|
@@ -87,6 +87,7 @@ export const ProviderName = {
|
|
|
87
87
|
Stealth: "Stealth",
|
|
88
88
|
StreamLake: "StreamLake",
|
|
89
89
|
Switchpoint: "Switchpoint",
|
|
90
|
+
Tencent: "Tencent",
|
|
90
91
|
Tenstorrent: "Tenstorrent",
|
|
91
92
|
Together: "Together",
|
|
92
93
|
Upstage: "Upstage",
|