@orq-ai/node 4.17.0-rc.45 → 4.17.0-rc.47
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/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/models/components/cachewritetokensdetails.d.ts +11 -0
- package/models/components/cachewritetokensdetails.d.ts.map +1 -0
- package/models/components/cachewritetokensdetails.js +57 -0
- package/models/components/cachewritetokensdetails.js.map +1 -0
- package/models/components/index.d.ts +2 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +2 -0
- package/models/components/index.js.map +1 -1
- package/models/components/inputtokensdetails.d.ts +2 -0
- package/models/components/inputtokensdetails.d.ts.map +1 -1
- package/models/components/inputtokensdetails.js +3 -0
- package/models/components/inputtokensdetails.js.map +1 -1
- package/models/components/litellmmodel.d.ts +2 -0
- package/models/components/litellmmodel.d.ts.map +1 -1
- package/models/components/litellmmodel.js +2 -0
- package/models/components/litellmmodel.js.map +1 -1
- package/models/components/modelconfigurationresponse.d.ts +1 -0
- package/models/components/modelconfigurationresponse.d.ts.map +1 -1
- package/models/components/modelconfigurationresponse.js +2 -0
- package/models/components/modelconfigurationresponse.js.map +1 -1
- package/models/components/modelmetadata.d.ts +2 -0
- package/models/components/modelmetadata.d.ts.map +1 -1
- package/models/components/modelmetadata.js +4 -0
- package/models/components/modelmetadata.js.map +1 -1
- package/models/components/openaipromptcacheoptions.d.ts +1 -0
- package/models/components/openaipromptcacheoptions.d.ts.map +1 -1
- package/models/components/openaipromptcacheoptions.js +1 -0
- package/models/components/openaipromptcacheoptions.js.map +1 -1
- package/models/components/pricing.d.ts +2 -0
- package/models/components/pricing.d.ts.map +1 -1
- package/models/components/pricing.js +4 -0
- package/models/components/pricing.js.map +1 -1
- package/models/components/pricingvariant.d.ts +2 -0
- package/models/components/pricingvariant.d.ts.map +1 -1
- package/models/components/pricingvariant.js +4 -0
- package/models/components/pricingvariant.js.map +1 -1
- package/models/components/privatemodelconfiguration.d.ts +15 -0
- package/models/components/privatemodelconfiguration.d.ts.map +1 -0
- package/models/components/privatemodelconfiguration.js +54 -0
- package/models/components/privatemodelconfiguration.js.map +1 -0
- package/models/components/reasoningpart.js +1 -1
- package/models/operations/createrouterresponse.d.ts +107 -8
- package/models/operations/createrouterresponse.d.ts.map +1 -1
- package/models/operations/createrouterresponse.js +81 -9
- package/models/operations/createrouterresponse.js.map +1 -1
- package/models/operations/createtool.js +4 -4
- package/models/operations/getalltools.js +4 -4
- package/models/operations/getv2humanevalsets.js +2 -2
- package/models/operations/getv2humanevalsetsid.js +2 -2
- package/models/operations/listdeploymentversions.js +1 -1
- package/models/operations/modelcreate.d.ts +3 -0
- package/models/operations/modelcreate.d.ts.map +1 -1
- package/models/operations/modelcreate.js.map +1 -1
- package/models/operations/modelcreateawsbedrock.d.ts +5 -0
- package/models/operations/modelcreateawsbedrock.d.ts.map +1 -1
- package/models/operations/modelcreateawsbedrock.js +1 -0
- package/models/operations/modelcreateawsbedrock.js.map +1 -1
- package/models/operations/modelcreateopenailike.d.ts +5 -0
- package/models/operations/modelcreateopenailike.d.ts.map +1 -1
- package/models/operations/modelcreateopenailike.js +1 -0
- package/models/operations/modelcreateopenailike.js.map +1 -1
- package/models/operations/modelcreatevertex.d.ts +5 -0
- package/models/operations/modelcreatevertex.d.ts.map +1 -1
- package/models/operations/modelcreatevertex.js +2 -0
- package/models/operations/modelcreatevertex.js.map +1 -1
- package/models/operations/modelupdate.d.ts +5 -0
- package/models/operations/modelupdate.d.ts.map +1 -1
- package/models/operations/modelupdate.js +2 -0
- package/models/operations/modelupdate.js.map +1 -1
- package/models/operations/modelupdateawsbedrock.d.ts +2 -0
- package/models/operations/modelupdateawsbedrock.d.ts.map +1 -1
- package/models/operations/modelupdateawsbedrock.js +1 -0
- package/models/operations/modelupdateawsbedrock.js.map +1 -1
- package/models/operations/modelupdateopenailike.d.ts +2 -0
- package/models/operations/modelupdateopenailike.d.ts.map +1 -1
- package/models/operations/modelupdateopenailike.js +1 -0
- package/models/operations/modelupdateopenailike.js.map +1 -1
- package/models/operations/patchv2humanevalsetsid.js +2 -2
- package/models/operations/postv2humanevalsets.js +2 -2
- package/models/operations/retrievetool.js +4 -4
- package/models/operations/runagent.js +1 -1
- package/models/operations/streamrunagent.js +1 -1
- package/models/operations/updatetool.js +4 -4
- package/package.json +1 -1
- package/src/lib/config.ts +2 -2
- package/src/models/components/cachewritetokensdetails.ts +39 -0
- package/src/models/components/index.ts +2 -0
- package/src/models/components/inputtokensdetails.ts +7 -0
- package/src/models/components/litellmmodel.ts +4 -0
- package/src/models/components/modelconfigurationresponse.ts +3 -0
- package/src/models/components/modelmetadata.ts +6 -0
- package/src/models/components/openaipromptcacheoptions.ts +1 -0
- package/src/models/components/pricing.ts +6 -0
- package/src/models/components/pricingvariant.ts +6 -0
- package/src/models/components/privatemodelconfiguration.ts +39 -0
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/operations/createrouterresponse.ts +222 -17
- package/src/models/operations/createtool.ts +4 -4
- package/src/models/operations/getalltools.ts +4 -4
- package/src/models/operations/getv2humanevalsets.ts +2 -2
- package/src/models/operations/getv2humanevalsetsid.ts +2 -2
- package/src/models/operations/listdeploymentversions.ts +1 -1
- package/src/models/operations/modelcreate.ts +3 -0
- package/src/models/operations/modelcreateawsbedrock.ts +6 -0
- package/src/models/operations/modelcreateopenailike.ts +6 -0
- package/src/models/operations/modelcreatevertex.ts +7 -0
- package/src/models/operations/modelupdate.ts +7 -0
- package/src/models/operations/modelupdateawsbedrock.ts +3 -0
- package/src/models/operations/modelupdateopenailike.ts +3 -0
- package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
- package/src/models/operations/postv2humanevalsets.ts +2 -2
- package/src/models/operations/retrievetool.ts +4 -4
- package/src/models/operations/runagent.ts +1 -1
- package/src/models/operations/streamrunagent.ts +1 -1
- package/src/models/operations/updatetool.ts +4 -4
|
@@ -164,7 +164,7 @@ function retrieveToolResponseBodyCodeToolFromJSON(jsonString) {
|
|
|
164
164
|
}
|
|
165
165
|
/** @internal */
|
|
166
166
|
exports.RetrieveToolResponseBodyCodeExecutionTool$inboundSchema = z.object({
|
|
167
|
-
_id: z.string().default("
|
|
167
|
+
_id: z.string().default("tool_01M5EC3XENB5NE1XGEG6KACERS"),
|
|
168
168
|
path: z.string(),
|
|
169
169
|
key: z.string(),
|
|
170
170
|
display_name: z.string().optional(),
|
|
@@ -253,7 +253,7 @@ function retrieveToolResponseBodyHttpFromJSON(jsonString) {
|
|
|
253
253
|
}
|
|
254
254
|
/** @internal */
|
|
255
255
|
exports.RetrieveToolResponseBodyHTTPTool$inboundSchema = z.object({
|
|
256
|
-
_id: z.string().default("
|
|
256
|
+
_id: z.string().default("tool_01M5EC3XEM8VP25QBKKQ799X72"),
|
|
257
257
|
path: z.string(),
|
|
258
258
|
key: z.string(),
|
|
259
259
|
display_name: z.string().optional(),
|
|
@@ -303,7 +303,7 @@ function retrieveToolResponseBodyJsonSchemaFromJSON(jsonString) {
|
|
|
303
303
|
}
|
|
304
304
|
/** @internal */
|
|
305
305
|
exports.RetrieveToolResponseBodyJSONSchemaTool$inboundSchema = z.object({
|
|
306
|
-
_id: z.string().default("
|
|
306
|
+
_id: z.string().default("tool_01M5EC3XEMMFJGA12RFJC08X3E"),
|
|
307
307
|
path: z.string(),
|
|
308
308
|
key: z.string(),
|
|
309
309
|
display_name: z.string().optional(),
|
|
@@ -357,7 +357,7 @@ function retrieveToolResponseBodyFunctionFromJSON(jsonString) {
|
|
|
357
357
|
}
|
|
358
358
|
/** @internal */
|
|
359
359
|
exports.RetrieveToolResponseBodyFunctionTool$inboundSchema = z.object({
|
|
360
|
-
_id: z.string().default("
|
|
360
|
+
_id: z.string().default("tool_01M5EC3XEK0H7CWY09HQYPQC75"),
|
|
361
361
|
path: z.string(),
|
|
362
362
|
key: z.string(),
|
|
363
363
|
display_name: z.string().optional(),
|
|
@@ -1102,7 +1102,7 @@ function agentToolInputRunSchemaToJSON(agentToolInputRunSchema) {
|
|
|
1102
1102
|
}
|
|
1103
1103
|
/** @internal */
|
|
1104
1104
|
exports.Tools$outboundSchema = z.object({
|
|
1105
|
-
id: z.string().default("
|
|
1105
|
+
id: z.string().default("01M5EC3XCBW9P1ZBKDKKRXA5SG"),
|
|
1106
1106
|
name: z.string(),
|
|
1107
1107
|
description: z.string().optional(),
|
|
1108
1108
|
schema: z.lazy(() => exports.AgentToolInputRunSchema$outboundSchema),
|
|
@@ -1068,7 +1068,7 @@ function streamRunAgentAgentToolInputRunAgentsSchemaToJSON(streamRunAgentAgentTo
|
|
|
1068
1068
|
}
|
|
1069
1069
|
/** @internal */
|
|
1070
1070
|
exports.AgentToolInputRunTools$outboundSchema = z.object({
|
|
1071
|
-
id: z.string().default("
|
|
1071
|
+
id: z.string().default("01M5EC3XCW2HJ6XPHVMHB7WS8P"),
|
|
1072
1072
|
name: z.string(),
|
|
1073
1073
|
description: z.string().optional(),
|
|
1074
1074
|
schema: z.lazy(() => exports.StreamRunAgentAgentToolInputRunAgentsSchema$outboundSchema),
|
|
@@ -536,7 +536,7 @@ function updateToolResponseBodyCodeToolFromJSON(jsonString) {
|
|
|
536
536
|
}
|
|
537
537
|
/** @internal */
|
|
538
538
|
exports.UpdateToolResponseBodyCodeExecutionTool$inboundSchema = z.object({
|
|
539
|
-
_id: z.string().default("
|
|
539
|
+
_id: z.string().default("tool_01M5EC3XEFGRVMAMW82TH0B2MR"),
|
|
540
540
|
path: z.string(),
|
|
541
541
|
key: z.string(),
|
|
542
542
|
display_name: z.string().optional(),
|
|
@@ -625,7 +625,7 @@ function updateToolResponseBodyHttpFromJSON(jsonString) {
|
|
|
625
625
|
}
|
|
626
626
|
/** @internal */
|
|
627
627
|
exports.UpdateToolResponseBodyHTTPTool$inboundSchema = z.object({
|
|
628
|
-
_id: z.string().default("
|
|
628
|
+
_id: z.string().default("tool_01M5EC3XEE69EJTVQC9X3RJV3D"),
|
|
629
629
|
path: z.string(),
|
|
630
630
|
key: z.string(),
|
|
631
631
|
display_name: z.string().optional(),
|
|
@@ -675,7 +675,7 @@ function updateToolResponseBodyJsonSchemaFromJSON(jsonString) {
|
|
|
675
675
|
}
|
|
676
676
|
/** @internal */
|
|
677
677
|
exports.UpdateToolResponseBodyJSONSchemaTool$inboundSchema = z.object({
|
|
678
|
-
_id: z.string().default("
|
|
678
|
+
_id: z.string().default("tool_01M5EC3XEDS07FG2BV1N741RDP"),
|
|
679
679
|
path: z.string(),
|
|
680
680
|
key: z.string(),
|
|
681
681
|
display_name: z.string().optional(),
|
|
@@ -729,7 +729,7 @@ function updateToolResponseBodyFunctionFromJSON(jsonString) {
|
|
|
729
729
|
}
|
|
730
730
|
/** @internal */
|
|
731
731
|
exports.UpdateToolResponseBodyFunctionTool$inboundSchema = z.object({
|
|
732
|
-
_id: z.string().default("
|
|
732
|
+
_id: z.string().default("tool_01M5EC3XEDKDCF7AKEEYH9ZH9R"),
|
|
733
733
|
path: z.string(),
|
|
734
734
|
key: z.string(),
|
|
735
735
|
display_name: z.string().optional(),
|
package/package.json
CHANGED
package/src/lib/config.ts
CHANGED
|
@@ -58,7 +58,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
58
58
|
export const SDK_METADATA = {
|
|
59
59
|
language: "typescript",
|
|
60
60
|
openapiDocVersion: "2.0",
|
|
61
|
-
sdkVersion: "4.17.0-rc.
|
|
61
|
+
sdkVersion: "4.17.0-rc.47",
|
|
62
62
|
genVersion: "2.950.2",
|
|
63
|
-
userAgent: "speakeasy-sdk/typescript 4.17.0-rc.
|
|
63
|
+
userAgent: "speakeasy-sdk/typescript 4.17.0-rc.47 2.950.2 2.0 @orq-ai/node",
|
|
64
64
|
} as const;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
export type CacheWriteTokensDetails = {
|
|
12
|
+
ttl12hTokens: number;
|
|
13
|
+
ttl30mTokens: number;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
/** @internal */
|
|
17
|
+
export const CacheWriteTokensDetails$inboundSchema: z.ZodType<
|
|
18
|
+
CacheWriteTokensDetails,
|
|
19
|
+
z.ZodTypeDef,
|
|
20
|
+
unknown
|
|
21
|
+
> = z.object({
|
|
22
|
+
ttl_12h_tokens: z.number().int(),
|
|
23
|
+
ttl_30m_tokens: z.number().int(),
|
|
24
|
+
}).transform((v) => {
|
|
25
|
+
return remap$(v, {
|
|
26
|
+
"ttl_12h_tokens": "ttl12hTokens",
|
|
27
|
+
"ttl_30m_tokens": "ttl30mTokens",
|
|
28
|
+
});
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
export function cacheWriteTokensDetailsFromJSON(
|
|
32
|
+
jsonString: string,
|
|
33
|
+
): SafeParseResult<CacheWriteTokensDetails, SDKValidationError> {
|
|
34
|
+
return safeParse(
|
|
35
|
+
jsonString,
|
|
36
|
+
(x) => CacheWriteTokensDetails$inboundSchema.parse(JSON.parse(x)),
|
|
37
|
+
`Failed to parse 'CacheWriteTokensDetails' from JSON`,
|
|
38
|
+
);
|
|
39
|
+
}
|
|
@@ -73,6 +73,7 @@ export * from "./budgetsortfield.js";
|
|
|
73
73
|
export * from "./budgetusage.js";
|
|
74
74
|
export * from "./bulkcreatedatapointsrequest.js";
|
|
75
75
|
export * from "./cacheconfig.js";
|
|
76
|
+
export * from "./cachewritetokensdetails.js";
|
|
76
77
|
export * from "./callsubagenttoolinput.js";
|
|
77
78
|
export * from "./capabilitiesresponse.js";
|
|
78
79
|
export * from "./chatkitresource.js";
|
|
@@ -488,6 +489,7 @@ export * from "./previewchunksmetadata.js";
|
|
|
488
489
|
export * from "./price.js";
|
|
489
490
|
export * from "./pricing.js";
|
|
490
491
|
export * from "./pricingvariant.js";
|
|
492
|
+
export * from "./privatemodelconfiguration.js";
|
|
491
493
|
export * from "./processingattempt.js";
|
|
492
494
|
export * from "./processingerror.js";
|
|
493
495
|
export * from "./project.js";
|
|
@@ -7,12 +7,17 @@ import { remap as remap$ } from "../../lib/primitives.js";
|
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
import {
|
|
11
|
+
CacheWriteTokensDetails,
|
|
12
|
+
CacheWriteTokensDetails$inboundSchema,
|
|
13
|
+
} from "./cachewritetokensdetails.js";
|
|
10
14
|
|
|
11
15
|
export type InputTokensDetails = {
|
|
12
16
|
cacheCreation1hTokens?: number | undefined;
|
|
13
17
|
cacheCreation5mTokens?: number | undefined;
|
|
14
18
|
cacheCreationTokens: number;
|
|
15
19
|
cacheWriteTokens: number;
|
|
20
|
+
cacheWriteTokensDetails?: CacheWriteTokensDetails | undefined;
|
|
16
21
|
cachedTokens: number;
|
|
17
22
|
};
|
|
18
23
|
|
|
@@ -26,6 +31,7 @@ export const InputTokensDetails$inboundSchema: z.ZodType<
|
|
|
26
31
|
cache_creation_5m_tokens: z.number().int().optional(),
|
|
27
32
|
cache_creation_tokens: z.number().int(),
|
|
28
33
|
cache_write_tokens: z.number().int(),
|
|
34
|
+
cache_write_tokens_details: CacheWriteTokensDetails$inboundSchema.optional(),
|
|
29
35
|
cached_tokens: z.number().int(),
|
|
30
36
|
}).transform((v) => {
|
|
31
37
|
return remap$(v, {
|
|
@@ -33,6 +39,7 @@ export const InputTokensDetails$inboundSchema: z.ZodType<
|
|
|
33
39
|
"cache_creation_5m_tokens": "cacheCreation5mTokens",
|
|
34
40
|
"cache_creation_tokens": "cacheCreationTokens",
|
|
35
41
|
"cache_write_tokens": "cacheWriteTokens",
|
|
42
|
+
"cache_write_tokens_details": "cacheWriteTokensDetails",
|
|
36
43
|
"cached_tokens": "cachedTokens",
|
|
37
44
|
});
|
|
38
45
|
});
|
|
@@ -17,6 +17,7 @@ import {
|
|
|
17
17
|
|
|
18
18
|
export type LiteLLMModel = {
|
|
19
19
|
litellmParams: LiteLLMParams;
|
|
20
|
+
modelId?: string | undefined;
|
|
20
21
|
modelInfo: LiteLLMModelInfo;
|
|
21
22
|
modelName: string;
|
|
22
23
|
};
|
|
@@ -24,6 +25,7 @@ export type LiteLLMModel = {
|
|
|
24
25
|
/** @internal */
|
|
25
26
|
export type LiteLLMModel$Outbound = {
|
|
26
27
|
litellm_params: LiteLLMParams$Outbound;
|
|
28
|
+
model_id?: string | undefined;
|
|
27
29
|
model_info: LiteLLMModelInfo$Outbound;
|
|
28
30
|
model_name: string;
|
|
29
31
|
};
|
|
@@ -35,11 +37,13 @@ export const LiteLLMModel$outboundSchema: z.ZodType<
|
|
|
35
37
|
LiteLLMModel
|
|
36
38
|
> = z.object({
|
|
37
39
|
litellmParams: LiteLLMParams$outboundSchema,
|
|
40
|
+
modelId: z.string().optional(),
|
|
38
41
|
modelInfo: LiteLLMModelInfo$outboundSchema,
|
|
39
42
|
modelName: z.string(),
|
|
40
43
|
}).transform((v) => {
|
|
41
44
|
return remap$(v, {
|
|
42
45
|
litellmParams: "litellm_params",
|
|
46
|
+
modelId: "model_id",
|
|
43
47
|
modelInfo: "model_info",
|
|
44
48
|
modelName: "model_name",
|
|
45
49
|
});
|
|
@@ -21,6 +21,7 @@ export type ModelConfigurationResponse = {
|
|
|
21
21
|
isOpenaiCompatible?: boolean | undefined;
|
|
22
22
|
isTunedModel?: boolean | undefined;
|
|
23
23
|
location?: string | undefined;
|
|
24
|
+
modelId?: string | undefined;
|
|
24
25
|
projectId?: string | undefined;
|
|
25
26
|
provider: string;
|
|
26
27
|
region?: string | undefined;
|
|
@@ -47,6 +48,7 @@ export const ModelConfigurationResponse$inboundSchema: z.ZodType<
|
|
|
47
48
|
is_openai_compatible: z.boolean().optional(),
|
|
48
49
|
is_tuned_model: z.boolean().optional(),
|
|
49
50
|
location: z.string().optional(),
|
|
51
|
+
model_id: z.string().optional(),
|
|
50
52
|
project_id: z.string().optional(),
|
|
51
53
|
provider: z.string(),
|
|
52
54
|
region: z.string().optional(),
|
|
@@ -65,6 +67,7 @@ export const ModelConfigurationResponse$inboundSchema: z.ZodType<
|
|
|
65
67
|
"integration_id": "integrationId",
|
|
66
68
|
"is_openai_compatible": "isOpenaiCompatible",
|
|
67
69
|
"is_tuned_model": "isTunedModel",
|
|
70
|
+
"model_id": "modelId",
|
|
68
71
|
"project_id": "projectId",
|
|
69
72
|
"should_use_beta_features": "shouldUseBetaFeatures",
|
|
70
73
|
"workspace_id": "workspaceId",
|
|
@@ -43,6 +43,7 @@ export type ModelMetadata = {
|
|
|
43
43
|
contextWindow?: number | undefined;
|
|
44
44
|
costEfficiencyRating?: number | undefined;
|
|
45
45
|
costPerImage?: number | undefined;
|
|
46
|
+
defaultSpeechResponseFormat?: string | undefined;
|
|
46
47
|
deprecationDate?: string | undefined;
|
|
47
48
|
embeddingDimensions?: number | undefined;
|
|
48
49
|
extendedContextPricingMode?: string | undefined;
|
|
@@ -179,6 +180,7 @@ export const ModelMetadata$inboundSchema: z.ZodType<
|
|
|
179
180
|
context_window: z.number().int().optional(),
|
|
180
181
|
cost_efficiency_rating: z.number().int().optional(),
|
|
181
182
|
cost_per_image: z.number().optional(),
|
|
183
|
+
default_speech_response_format: z.string().optional(),
|
|
182
184
|
deprecation_date: z.string().optional(),
|
|
183
185
|
embedding_dimensions: z.number().int().optional(),
|
|
184
186
|
extended_context_pricing_mode: z.string().optional(),
|
|
@@ -309,6 +311,7 @@ export const ModelMetadata$inboundSchema: z.ZodType<
|
|
|
309
311
|
"context_window": "contextWindow",
|
|
310
312
|
"cost_efficiency_rating": "costEfficiencyRating",
|
|
311
313
|
"cost_per_image": "costPerImage",
|
|
314
|
+
"default_speech_response_format": "defaultSpeechResponseFormat",
|
|
312
315
|
"deprecation_date": "deprecationDate",
|
|
313
316
|
"embedding_dimensions": "embeddingDimensions",
|
|
314
317
|
"extended_context_pricing_mode": "extendedContextPricingMode",
|
|
@@ -440,6 +443,7 @@ export type ModelMetadata$Outbound = {
|
|
|
440
443
|
context_window?: number | undefined;
|
|
441
444
|
cost_efficiency_rating?: number | undefined;
|
|
442
445
|
cost_per_image?: number | undefined;
|
|
446
|
+
default_speech_response_format?: string | undefined;
|
|
443
447
|
deprecation_date?: string | undefined;
|
|
444
448
|
embedding_dimensions?: number | undefined;
|
|
445
449
|
extended_context_pricing_mode?: string | undefined;
|
|
@@ -578,6 +582,7 @@ export const ModelMetadata$outboundSchema: z.ZodType<
|
|
|
578
582
|
contextWindow: z.number().int().optional(),
|
|
579
583
|
costEfficiencyRating: z.number().int().optional(),
|
|
580
584
|
costPerImage: z.number().optional(),
|
|
585
|
+
defaultSpeechResponseFormat: z.string().optional(),
|
|
581
586
|
deprecationDate: z.string().optional(),
|
|
582
587
|
embeddingDimensions: z.number().int().optional(),
|
|
583
588
|
extendedContextPricingMode: z.string().optional(),
|
|
@@ -708,6 +713,7 @@ export const ModelMetadata$outboundSchema: z.ZodType<
|
|
|
708
713
|
contextWindow: "context_window",
|
|
709
714
|
costEfficiencyRating: "cost_efficiency_rating",
|
|
710
715
|
costPerImage: "cost_per_image",
|
|
716
|
+
defaultSpeechResponseFormat: "default_speech_response_format",
|
|
711
717
|
deprecationDate: "deprecation_date",
|
|
712
718
|
embeddingDimensions: "embedding_dimensions",
|
|
713
719
|
extendedContextPricingMode: "extended_context_pricing_mode",
|
|
@@ -25,6 +25,7 @@ export type Pricing = {
|
|
|
25
25
|
audioOutput?: Price | undefined;
|
|
26
26
|
audioSession?: Price | undefined;
|
|
27
27
|
cacheRead?: Price | undefined;
|
|
28
|
+
cacheWrite12h?: Price | undefined;
|
|
28
29
|
cacheWrite1h?: Price | undefined;
|
|
29
30
|
cacheWrite30m?: Price | undefined;
|
|
30
31
|
cacheWrite5m?: Price | undefined;
|
|
@@ -44,6 +45,7 @@ export const Pricing$inboundSchema: z.ZodType<Pricing, z.ZodTypeDef, unknown> =
|
|
|
44
45
|
audio_output: Price$inboundSchema.optional(),
|
|
45
46
|
audio_session: Price$inboundSchema.optional(),
|
|
46
47
|
cache_read: Price$inboundSchema.optional(),
|
|
48
|
+
cache_write_12h: Price$inboundSchema.optional(),
|
|
47
49
|
cache_write_1h: Price$inboundSchema.optional(),
|
|
48
50
|
cache_write_30m: Price$inboundSchema.optional(),
|
|
49
51
|
cache_write_5m: Price$inboundSchema.optional(),
|
|
@@ -60,6 +62,7 @@ export const Pricing$inboundSchema: z.ZodType<Pricing, z.ZodTypeDef, unknown> =
|
|
|
60
62
|
"audio_output": "audioOutput",
|
|
61
63
|
"audio_session": "audioSession",
|
|
62
64
|
"cache_read": "cacheRead",
|
|
65
|
+
"cache_write_12h": "cacheWrite12h",
|
|
63
66
|
"cache_write_1h": "cacheWrite1h",
|
|
64
67
|
"cache_write_30m": "cacheWrite30m",
|
|
65
68
|
"cache_write_5m": "cacheWrite5m",
|
|
@@ -72,6 +75,7 @@ export type Pricing$Outbound = {
|
|
|
72
75
|
audio_output?: Price$Outbound | undefined;
|
|
73
76
|
audio_session?: Price$Outbound | undefined;
|
|
74
77
|
cache_read?: Price$Outbound | undefined;
|
|
78
|
+
cache_write_12h?: Price$Outbound | undefined;
|
|
75
79
|
cache_write_1h?: Price$Outbound | undefined;
|
|
76
80
|
cache_write_30m?: Price$Outbound | undefined;
|
|
77
81
|
cache_write_5m?: Price$Outbound | undefined;
|
|
@@ -94,6 +98,7 @@ export const Pricing$outboundSchema: z.ZodType<
|
|
|
94
98
|
audioOutput: Price$outboundSchema.optional(),
|
|
95
99
|
audioSession: Price$outboundSchema.optional(),
|
|
96
100
|
cacheRead: Price$outboundSchema.optional(),
|
|
101
|
+
cacheWrite12h: Price$outboundSchema.optional(),
|
|
97
102
|
cacheWrite1h: Price$outboundSchema.optional(),
|
|
98
103
|
cacheWrite30m: Price$outboundSchema.optional(),
|
|
99
104
|
cacheWrite5m: Price$outboundSchema.optional(),
|
|
@@ -110,6 +115,7 @@ export const Pricing$outboundSchema: z.ZodType<
|
|
|
110
115
|
audioOutput: "audio_output",
|
|
111
116
|
audioSession: "audio_session",
|
|
112
117
|
cacheRead: "cache_read",
|
|
118
|
+
cacheWrite12h: "cache_write_12h",
|
|
113
119
|
cacheWrite1h: "cache_write_1h",
|
|
114
120
|
cacheWrite30m: "cache_write_30m",
|
|
115
121
|
cacheWrite5m: "cache_write_5m",
|
|
@@ -19,6 +19,7 @@ export type PricingVariant = {
|
|
|
19
19
|
audioOutput?: Price | undefined;
|
|
20
20
|
audioSession?: Price | undefined;
|
|
21
21
|
cacheRead?: Price | undefined;
|
|
22
|
+
cacheWrite12h?: Price | undefined;
|
|
22
23
|
cacheWrite1h?: Price | undefined;
|
|
23
24
|
cacheWrite30m?: Price | undefined;
|
|
24
25
|
cacheWrite5m?: Price | undefined;
|
|
@@ -41,6 +42,7 @@ export const PricingVariant$inboundSchema: z.ZodType<
|
|
|
41
42
|
audio_output: Price$inboundSchema.optional(),
|
|
42
43
|
audio_session: Price$inboundSchema.optional(),
|
|
43
44
|
cache_read: Price$inboundSchema.optional(),
|
|
45
|
+
cache_write_12h: Price$inboundSchema.optional(),
|
|
44
46
|
cache_write_1h: Price$inboundSchema.optional(),
|
|
45
47
|
cache_write_30m: Price$inboundSchema.optional(),
|
|
46
48
|
cache_write_5m: Price$inboundSchema.optional(),
|
|
@@ -57,6 +59,7 @@ export const PricingVariant$inboundSchema: z.ZodType<
|
|
|
57
59
|
"audio_output": "audioOutput",
|
|
58
60
|
"audio_session": "audioSession",
|
|
59
61
|
"cache_read": "cacheRead",
|
|
62
|
+
"cache_write_12h": "cacheWrite12h",
|
|
60
63
|
"cache_write_1h": "cacheWrite1h",
|
|
61
64
|
"cache_write_30m": "cacheWrite30m",
|
|
62
65
|
"cache_write_5m": "cacheWrite5m",
|
|
@@ -69,6 +72,7 @@ export type PricingVariant$Outbound = {
|
|
|
69
72
|
audio_output?: Price$Outbound | undefined;
|
|
70
73
|
audio_session?: Price$Outbound | undefined;
|
|
71
74
|
cache_read?: Price$Outbound | undefined;
|
|
75
|
+
cache_write_12h?: Price$Outbound | undefined;
|
|
72
76
|
cache_write_1h?: Price$Outbound | undefined;
|
|
73
77
|
cache_write_30m?: Price$Outbound | undefined;
|
|
74
78
|
cache_write_5m?: Price$Outbound | undefined;
|
|
@@ -91,6 +95,7 @@ export const PricingVariant$outboundSchema: z.ZodType<
|
|
|
91
95
|
audioOutput: Price$outboundSchema.optional(),
|
|
92
96
|
audioSession: Price$outboundSchema.optional(),
|
|
93
97
|
cacheRead: Price$outboundSchema.optional(),
|
|
98
|
+
cacheWrite12h: Price$outboundSchema.optional(),
|
|
94
99
|
cacheWrite1h: Price$outboundSchema.optional(),
|
|
95
100
|
cacheWrite30m: Price$outboundSchema.optional(),
|
|
96
101
|
cacheWrite5m: Price$outboundSchema.optional(),
|
|
@@ -107,6 +112,7 @@ export const PricingVariant$outboundSchema: z.ZodType<
|
|
|
107
112
|
audioOutput: "audio_output",
|
|
108
113
|
audioSession: "audio_session",
|
|
109
114
|
cacheRead: "cache_read",
|
|
115
|
+
cacheWrite12h: "cache_write_12h",
|
|
110
116
|
cacheWrite1h: "cache_write_1h",
|
|
111
117
|
cacheWrite30m: "cache_write_30m",
|
|
112
118
|
cacheWrite5m: "cache_write_5m",
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
|
|
8
|
+
export type PrivateModelConfiguration = {
|
|
9
|
+
/**
|
|
10
|
+
* Model identifier sent to the provider.
|
|
11
|
+
*/
|
|
12
|
+
modelId: string;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
/** @internal */
|
|
16
|
+
export type PrivateModelConfiguration$Outbound = {
|
|
17
|
+
model_id: string;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
/** @internal */
|
|
21
|
+
export const PrivateModelConfiguration$outboundSchema: z.ZodType<
|
|
22
|
+
PrivateModelConfiguration$Outbound,
|
|
23
|
+
z.ZodTypeDef,
|
|
24
|
+
PrivateModelConfiguration
|
|
25
|
+
> = z.object({
|
|
26
|
+
modelId: z.string(),
|
|
27
|
+
}).transform((v) => {
|
|
28
|
+
return remap$(v, {
|
|
29
|
+
modelId: "model_id",
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
export function privateModelConfigurationToJSON(
|
|
34
|
+
privateModelConfiguration: PrivateModelConfiguration,
|
|
35
|
+
): string {
|
|
36
|
+
return JSON.stringify(
|
|
37
|
+
PrivateModelConfiguration$outboundSchema.parse(privateModelConfiguration),
|
|
38
|
+
);
|
|
39
|
+
}
|
|
@@ -40,7 +40,7 @@ export const ReasoningPart$inboundSchema: z.ZodType<
|
|
|
40
40
|
z.ZodTypeDef,
|
|
41
41
|
unknown
|
|
42
42
|
> = z.object({
|
|
43
|
-
_id: z.string().default("
|
|
43
|
+
_id: z.string().default("reasoning_01m5ec3xazmx11jcc5pf949f24"),
|
|
44
44
|
metadata: z.record(z.any()).optional(),
|
|
45
45
|
kind: z.literal("reasoning"),
|
|
46
46
|
reasoning: z.string(),
|