@orq-ai/node 4.16.13 → 4.16.15
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 +3 -3
- package/lib/config.js +3 -3
- package/models/components/reasoningpart.js +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/patchv2humanevalsetsid.js +2 -2
- package/models/operations/postv2feedbackevaluation.js +4 -4
- 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 +7 -7
- package/packages/orq-rc/src/funcs/humanReviewSetsCreate.ts +5 -0
- package/packages/orq-rc/src/funcs/humanReviewSetsDelete.ts +5 -0
- package/packages/orq-rc/src/funcs/humanReviewSetsGet.ts +5 -0
- package/packages/orq-rc/src/funcs/humanReviewSetsList.ts +5 -0
- package/packages/orq-rc/src/funcs/humanReviewSetsUpdate.ts +5 -0
- package/packages/orq-rc/src/funcs/mcpGatewaysList.ts +0 -1
- package/packages/orq-rc/src/lib/config.ts +3 -3
- package/packages/orq-rc/src/models/components/actionreviewrequestedstreamingevent.ts +6 -0
- package/packages/orq-rc/src/models/components/agentstartedstreamingevent.ts +6 -0
- package/packages/orq-rc/src/models/components/cachewritetokensdetails.ts +39 -0
- package/packages/orq-rc/src/models/components/filecontentpartschema.ts +1 -1
- package/packages/orq-rc/src/models/components/index.ts +2 -1
- package/packages/orq-rc/src/models/components/inputtokensdetails.ts +7 -0
- package/packages/orq-rc/src/models/components/litellmmodel.ts +4 -0
- package/packages/orq-rc/src/models/components/mcpgateway.ts +0 -6
- package/packages/orq-rc/src/models/components/mcptoolinput.ts +7 -7
- package/packages/orq-rc/src/models/components/modelconfigurationresponse.ts +3 -0
- package/packages/orq-rc/src/models/components/modelmetadata.ts +6 -0
- package/packages/orq-rc/src/models/components/openaipromptcacheoptions.ts +1 -0
- package/packages/orq-rc/src/models/components/pricing.ts +6 -0
- package/packages/orq-rc/src/models/components/pricingvariant.ts +6 -0
- package/packages/orq-rc/src/models/components/privatemodelconfiguration.ts +39 -0
- package/packages/orq-rc/src/models/components/publicresponseresource.ts +1 -1
- package/packages/orq-rc/src/models/components/reasoningpart.ts +1 -1
- package/packages/orq-rc/src/models/components/redactresponse.ts +1 -1
- package/packages/orq-rc/src/models/components/updatemcpgatewayrequest.ts +0 -7
- package/packages/orq-rc/src/models/operations/createagentrequest.ts +6 -0
- package/packages/orq-rc/src/models/operations/createprompt.ts +1 -1
- package/packages/orq-rc/src/models/operations/createrouterresponse.ts +225 -20
- package/packages/orq-rc/src/models/operations/createtool.ts +4 -4
- package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +1 -1
- package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +15 -18
- package/packages/orq-rc/src/models/operations/deployments.ts +1 -1
- package/packages/orq-rc/src/models/operations/deploymentstream.ts +11 -14
- package/packages/orq-rc/src/models/operations/getallprompts.ts +1 -1
- package/packages/orq-rc/src/models/operations/getalltools.ts +4 -4
- package/packages/orq-rc/src/models/operations/getoneprompt.ts +1 -1
- package/packages/orq-rc/src/models/operations/getpromptversion.ts +1 -1
- package/packages/orq-rc/src/models/operations/getv2humanevalsets.ts +2 -2
- package/packages/orq-rc/src/models/operations/getv2humanevalsetsid.ts +2 -2
- package/packages/orq-rc/src/models/operations/index.ts +0 -2
- package/packages/orq-rc/src/models/operations/listagents.ts +6 -0
- package/packages/orq-rc/src/models/operations/listdeploymentversions.ts +2 -2
- package/packages/orq-rc/src/models/operations/listpromptversions.ts +1 -1
- package/packages/orq-rc/src/models/operations/mcpgatewaylist.ts +0 -7
- package/packages/orq-rc/src/models/operations/modelcreate.ts +3 -0
- package/packages/orq-rc/src/models/operations/modelcreateawsbedrock.ts +6 -0
- package/packages/orq-rc/src/models/operations/modelcreateopenailike.ts +6 -0
- package/packages/orq-rc/src/models/operations/modelcreatevertex.ts +7 -0
- package/packages/orq-rc/src/models/operations/modelupdate.ts +7 -0
- package/packages/orq-rc/src/models/operations/modelupdateawsbedrock.ts +3 -0
- package/packages/orq-rc/src/models/operations/modelupdateopenailike.ts +3 -0
- package/packages/orq-rc/src/models/operations/patchv2humanevalsetsid.ts +2 -2
- package/packages/orq-rc/src/models/operations/postv2humanevalsets.ts +21 -35
- package/packages/orq-rc/src/models/operations/retrieveagentrequest.ts +6 -0
- package/packages/orq-rc/src/models/operations/retrieveresponse.ts +1 -1
- package/packages/orq-rc/src/models/operations/retrievetool.ts +4 -4
- package/packages/orq-rc/src/models/operations/runagent.ts +1 -1
- package/packages/orq-rc/src/models/operations/streamrunagent.ts +1 -1
- package/packages/orq-rc/src/models/operations/updateagent.ts +6 -0
- package/packages/orq-rc/src/models/operations/updateprompt.ts +1 -1
- package/packages/orq-rc/src/models/operations/updatetool.ts +4 -4
- package/packages/orq-rc/src/sdk/feedback.ts +0 -30
- package/packages/orq-rc/src/sdk/humanreviewsets.ts +25 -0
- package/packages/orq-rc/src/sdk/sdk.ts +5 -5
- package/src/lib/config.ts +3 -3
- package/src/models/components/reasoningpart.ts +1 -1
- 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/patchv2humanevalsetsid.ts +2 -2
- package/src/models/operations/postv2feedbackevaluation.ts +4 -4
- 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
- package/packages/orq-rc/src/funcs/feedbackCreateEvaluation.ts +0 -173
- package/packages/orq-rc/src/funcs/feedbackRemoveEvaluation.ts +0 -173
- package/packages/orq-rc/src/models/components/mcpgatewaystatus.ts +0 -21
- package/packages/orq-rc/src/models/operations/postv2feedbackevaluation.ts +0 -453
- package/packages/orq-rc/src/models/operations/postv2feedbackevaluationremove.ts +0 -43
|
@@ -463,7 +463,7 @@ export type GetOnePromptRole = ClosedEnum<typeof GetOnePromptRole>;
|
|
|
463
463
|
|
|
464
464
|
export type GetOnePrompt2File = {
|
|
465
465
|
/**
|
|
466
|
-
* The file data as a data URI string in the format
|
|
466
|
+
* The file data as a data URI string in the format `data:<mime-type>;base64,<base64-encoded-data>`. Example: `data:image/png;base64,iVBORw0KGgoAAAANS...`
|
|
467
467
|
*/
|
|
468
468
|
fileData?: string | undefined;
|
|
469
469
|
/**
|
|
@@ -471,7 +471,7 @@ export type GetPromptVersionRole = ClosedEnum<typeof GetPromptVersionRole>;
|
|
|
471
471
|
|
|
472
472
|
export type GetPromptVersion2File = {
|
|
473
473
|
/**
|
|
474
|
-
* The file data as a data URI string in the format
|
|
474
|
+
* The file data as a data URI string in the format `data:<mime-type>;base64,<base64-encoded-data>`. Example: `data:image/png;base64,iVBORw0KGgoAAAANS...`
|
|
475
475
|
*/
|
|
476
476
|
fileData?: string | undefined;
|
|
477
477
|
/**
|
|
@@ -140,7 +140,7 @@ export const GetV2HumanEvalSetsResponseBody2$inboundSchema: z.ZodType<
|
|
|
140
140
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
141
141
|
.optional(),
|
|
142
142
|
updated: z.string().datetime({ offset: true }).default(
|
|
143
|
-
"2026-10-
|
|
143
|
+
"2026-10-21T16:33:23.690Z",
|
|
144
144
|
).transform(v => new Date(v)),
|
|
145
145
|
filter_type: z.literal("name"),
|
|
146
146
|
filter_value: z.string(),
|
|
@@ -185,7 +185,7 @@ export const GetV2HumanEvalSetsResponseBody1$inboundSchema: z.ZodType<
|
|
|
185
185
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
186
186
|
.optional(),
|
|
187
187
|
updated: z.string().datetime({ offset: true }).default(
|
|
188
|
-
"2026-10-
|
|
188
|
+
"2026-10-21T16:33:23.690Z",
|
|
189
189
|
).transform(v => new Date(v)),
|
|
190
190
|
filter_type: z.literal("span_type"),
|
|
191
191
|
filter_values: z.array(z.string()),
|
|
@@ -141,7 +141,7 @@ export const GetV2HumanEvalSetsIdResponseBody2$inboundSchema: z.ZodType<
|
|
|
141
141
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
142
142
|
.optional(),
|
|
143
143
|
updated: z.string().datetime({ offset: true }).default(
|
|
144
|
-
"2026-10-
|
|
144
|
+
"2026-10-21T16:33:23.690Z",
|
|
145
145
|
).transform(v => new Date(v)),
|
|
146
146
|
filter_type: z.literal("name"),
|
|
147
147
|
filter_value: z.string(),
|
|
@@ -186,7 +186,7 @@ export const GetV2HumanEvalSetsIdResponseBody1$inboundSchema: z.ZodType<
|
|
|
186
186
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
187
187
|
.optional(),
|
|
188
188
|
updated: z.string().datetime({ offset: true }).default(
|
|
189
|
-
"2026-10-
|
|
189
|
+
"2026-10-21T16:33:23.690Z",
|
|
190
190
|
).transform(v => new Date(v)),
|
|
191
191
|
filter_type: z.literal("span_type"),
|
|
192
192
|
filter_values: z.array(z.string()),
|
|
@@ -211,8 +211,6 @@ export * from "./policyget.js";
|
|
|
211
211
|
export * from "./policylist.js";
|
|
212
212
|
export * from "./policyupdate.js";
|
|
213
213
|
export * from "./postv2feedback.js";
|
|
214
|
-
export * from "./postv2feedbackevaluation.js";
|
|
215
|
-
export * from "./postv2feedbackevaluationremove.js";
|
|
216
214
|
export * from "./postv2feedbackremove.js";
|
|
217
215
|
export * from "./postv2humanevalsets.js";
|
|
218
216
|
export * from "./postv2routerocr.js";
|
|
@@ -166,6 +166,10 @@ export type ListAgentsTools = {
|
|
|
166
166
|
* Nested tool ID for MCP tools (identifies specific tool within MCP server)
|
|
167
167
|
*/
|
|
168
168
|
toolId?: string | undefined;
|
|
169
|
+
/**
|
|
170
|
+
* Set by the API on MCP tools resolved from a whole MCP server or gateway; they are resolved again on every save.
|
|
171
|
+
*/
|
|
172
|
+
wholeServer?: boolean | undefined;
|
|
169
173
|
conditions?: Array<ListAgentsConditions> | undefined;
|
|
170
174
|
/**
|
|
171
175
|
* Tool execution timeout in seconds for this agent (max: 10 minutes). Overrides the timeout configured on the tool definition.
|
|
@@ -1528,6 +1532,7 @@ export const ListAgentsTools$inboundSchema: z.ZodType<
|
|
|
1528
1532
|
configuration: z.record(z.any()).optional(),
|
|
1529
1533
|
requires_approval: z.boolean().default(false),
|
|
1530
1534
|
tool_id: z.string().optional(),
|
|
1535
|
+
whole_server: z.boolean().optional(),
|
|
1531
1536
|
conditions: z.array(z.lazy(() => ListAgentsConditions$inboundSchema))
|
|
1532
1537
|
.optional(),
|
|
1533
1538
|
timeout: z.number().optional(),
|
|
@@ -1537,6 +1542,7 @@ export const ListAgentsTools$inboundSchema: z.ZodType<
|
|
|
1537
1542
|
"display_name": "displayName",
|
|
1538
1543
|
"requires_approval": "requiresApproval",
|
|
1539
1544
|
"tool_id": "toolId",
|
|
1545
|
+
"whole_server": "wholeServer",
|
|
1540
1546
|
});
|
|
1541
1547
|
});
|
|
1542
1548
|
|
|
@@ -489,7 +489,7 @@ export type ListDeploymentVersionsRole = ClosedEnum<
|
|
|
489
489
|
|
|
490
490
|
export type ListDeploymentVersions2File = {
|
|
491
491
|
/**
|
|
492
|
-
* The file data as a data URI string in the format
|
|
492
|
+
* The file data as a data URI string in the format `data:<mime-type>;base64,<base64-encoded-data>`. Example: `data:image/png;base64,iVBORw0KGgoAAAANS...`
|
|
493
493
|
*/
|
|
494
494
|
fileData?: string | undefined;
|
|
495
495
|
/**
|
|
@@ -2525,7 +2525,7 @@ export const ListDeploymentVersionsKnowledgeBases$inboundSchema: z.ZodType<
|
|
|
2525
2525
|
z.ZodTypeDef,
|
|
2526
2526
|
unknown
|
|
2527
2527
|
> = z.object({
|
|
2528
|
-
id: z.string().default("
|
|
2528
|
+
id: z.string().default("01M5FMZ1NRXNGEKJH1W65V2VQ5"),
|
|
2529
2529
|
knowledge_id: z.string(),
|
|
2530
2530
|
configuration: z.union([
|
|
2531
2531
|
z.lazy(() => KnowledgeBaseLastUserMessage$inboundSchema),
|
|
@@ -485,7 +485,7 @@ export type ListPromptVersionsRole = ClosedEnum<typeof ListPromptVersionsRole>;
|
|
|
485
485
|
|
|
486
486
|
export type ListPromptVersions2File = {
|
|
487
487
|
/**
|
|
488
|
-
* The file data as a data URI string in the format
|
|
488
|
+
* The file data as a data URI string in the format `data:<mime-type>;base64,<base64-encoded-data>`. Example: `data:image/png;base64,iVBORw0KGgoAAAANS...`
|
|
489
489
|
*/
|
|
490
490
|
fileData?: string | undefined;
|
|
491
491
|
/**
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
|
|
5
5
|
import * as z from "zod/v3";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
-
import * as components from "../components/index.js";
|
|
8
7
|
|
|
9
8
|
export type McpGatewayListRequest = {
|
|
10
9
|
/**
|
|
@@ -23,10 +22,6 @@ export type McpGatewayListRequest = {
|
|
|
23
22
|
* Case-insensitive match against the gateway key and display name.
|
|
24
23
|
*/
|
|
25
24
|
search?: string | undefined;
|
|
26
|
-
/**
|
|
27
|
-
* Returns only gateways in this status.
|
|
28
|
-
*/
|
|
29
|
-
status?: components.McpGatewayStatus | undefined;
|
|
30
25
|
};
|
|
31
26
|
|
|
32
27
|
/** @internal */
|
|
@@ -35,7 +30,6 @@ export type McpGatewayListRequest$Outbound = {
|
|
|
35
30
|
starting_after?: string | undefined;
|
|
36
31
|
ending_before?: string | undefined;
|
|
37
32
|
search?: string | undefined;
|
|
38
|
-
status?: string | undefined;
|
|
39
33
|
};
|
|
40
34
|
|
|
41
35
|
/** @internal */
|
|
@@ -48,7 +42,6 @@ export const McpGatewayListRequest$outboundSchema: z.ZodType<
|
|
|
48
42
|
startingAfter: z.string().optional(),
|
|
49
43
|
endingBefore: z.string().optional(),
|
|
50
44
|
search: z.string().optional(),
|
|
51
|
-
status: components.McpGatewayStatus$outboundSchema.optional(),
|
|
52
45
|
}).transform((v) => {
|
|
53
46
|
return remap$(v, {
|
|
54
47
|
startingAfter: "starting_after",
|
|
@@ -19,6 +19,9 @@ export type ModelCreateRequestBody = {
|
|
|
19
19
|
metadata: components.ModelMetadata;
|
|
20
20
|
modelDeveloper: string;
|
|
21
21
|
modelFamily: string;
|
|
22
|
+
/**
|
|
23
|
+
* Immutable workspace-unique slug when configuration.model_id is supplied.
|
|
24
|
+
*/
|
|
22
25
|
modelId: string;
|
|
23
26
|
modelType: string;
|
|
24
27
|
outputCost: number;
|
|
@@ -18,6 +18,7 @@ export type ModelCreateAwsBedrockRequestBody = {
|
|
|
18
18
|
benchmarkModel?: string | undefined;
|
|
19
19
|
cacheReadCost?: number | undefined;
|
|
20
20
|
cacheWriteCost?: number | undefined;
|
|
21
|
+
configuration?: components.PrivateModelConfiguration | undefined;
|
|
21
22
|
description?: string | undefined;
|
|
22
23
|
displayName: string;
|
|
23
24
|
hasReasoning?: boolean | undefined;
|
|
@@ -26,6 +27,9 @@ export type ModelCreateAwsBedrockRequestBody = {
|
|
|
26
27
|
maxTokens?: number | undefined;
|
|
27
28
|
modelDeveloper: string;
|
|
28
29
|
modelFamily?: string | undefined;
|
|
30
|
+
/**
|
|
31
|
+
* Immutable workspace-unique slug when configuration.model_id is supplied.
|
|
32
|
+
*/
|
|
29
33
|
modelId: string;
|
|
30
34
|
modelType?: string | undefined;
|
|
31
35
|
outputCost?: number | undefined;
|
|
@@ -88,6 +92,7 @@ export type ModelCreateAwsBedrockRequestBody$Outbound = {
|
|
|
88
92
|
benchmark_model?: string | undefined;
|
|
89
93
|
cache_read_cost?: number | undefined;
|
|
90
94
|
cache_write_cost?: number | undefined;
|
|
95
|
+
configuration?: components.PrivateModelConfiguration$Outbound | undefined;
|
|
91
96
|
description?: string | undefined;
|
|
92
97
|
display_name: string;
|
|
93
98
|
has_reasoning?: boolean | undefined;
|
|
@@ -124,6 +129,7 @@ export const ModelCreateAwsBedrockRequestBody$outboundSchema: z.ZodType<
|
|
|
124
129
|
benchmarkModel: z.string().optional(),
|
|
125
130
|
cacheReadCost: z.number().optional(),
|
|
126
131
|
cacheWriteCost: z.number().optional(),
|
|
132
|
+
configuration: components.PrivateModelConfiguration$outboundSchema.optional(),
|
|
127
133
|
description: z.string().optional(),
|
|
128
134
|
displayName: z.string(),
|
|
129
135
|
hasReasoning: z.boolean().optional(),
|
|
@@ -15,12 +15,16 @@ export type ModelCreateOpenAILikeRequestBody = {
|
|
|
15
15
|
benchmarkModel?: string | undefined;
|
|
16
16
|
cacheReadCost?: number | undefined;
|
|
17
17
|
cacheWriteCost?: number | undefined;
|
|
18
|
+
configuration?: components.PrivateModelConfiguration | undefined;
|
|
18
19
|
costPerImage?: number | undefined;
|
|
19
20
|
description?: string | undefined;
|
|
20
21
|
displayName: string;
|
|
21
22
|
hasReasoning?: boolean | undefined;
|
|
22
23
|
inputCost?: number | undefined;
|
|
23
24
|
maxTokens?: number | undefined;
|
|
25
|
+
/**
|
|
26
|
+
* Immutable workspace-unique slug when configuration.model_id is supplied.
|
|
27
|
+
*/
|
|
24
28
|
modelId: string;
|
|
25
29
|
modelType: string;
|
|
26
30
|
outputCost?: number | undefined;
|
|
@@ -77,6 +81,7 @@ export type ModelCreateOpenAILikeRequestBody$Outbound = {
|
|
|
77
81
|
benchmark_model?: string | undefined;
|
|
78
82
|
cache_read_cost?: number | undefined;
|
|
79
83
|
cache_write_cost?: number | undefined;
|
|
84
|
+
configuration?: components.PrivateModelConfiguration$Outbound | undefined;
|
|
80
85
|
cost_per_image?: number | undefined;
|
|
81
86
|
description?: string | undefined;
|
|
82
87
|
display_name: string;
|
|
@@ -105,6 +110,7 @@ export const ModelCreateOpenAILikeRequestBody$outboundSchema: z.ZodType<
|
|
|
105
110
|
benchmarkModel: z.string().optional(),
|
|
106
111
|
cacheReadCost: z.number().optional(),
|
|
107
112
|
cacheWriteCost: z.number().optional(),
|
|
113
|
+
configuration: components.PrivateModelConfiguration$outboundSchema.optional(),
|
|
108
114
|
costPerImage: z.number().optional(),
|
|
109
115
|
description: z.string().optional(),
|
|
110
116
|
displayName: z.string(),
|
|
@@ -13,6 +13,10 @@ export type ModelCreateVertexRequestBody = {
|
|
|
13
13
|
benchmarkModel?: string | undefined;
|
|
14
14
|
configuration: components.VertexConfiguration;
|
|
15
15
|
displayName: string;
|
|
16
|
+
/**
|
|
17
|
+
* Immutable private-model slug; defaults to display_name.
|
|
18
|
+
*/
|
|
19
|
+
modelId?: string | undefined;
|
|
16
20
|
};
|
|
17
21
|
|
|
18
22
|
/**
|
|
@@ -58,6 +62,7 @@ export type ModelCreateVertexRequestBody$Outbound = {
|
|
|
58
62
|
benchmark_model?: string | undefined;
|
|
59
63
|
configuration: components.VertexConfiguration$Outbound;
|
|
60
64
|
display_name: string;
|
|
65
|
+
model_id?: string | undefined;
|
|
61
66
|
};
|
|
62
67
|
|
|
63
68
|
/** @internal */
|
|
@@ -69,10 +74,12 @@ export const ModelCreateVertexRequestBody$outboundSchema: z.ZodType<
|
|
|
69
74
|
benchmarkModel: z.string().optional(),
|
|
70
75
|
configuration: components.VertexConfiguration$outboundSchema,
|
|
71
76
|
displayName: z.string(),
|
|
77
|
+
modelId: z.string().optional(),
|
|
72
78
|
}).transform((v) => {
|
|
73
79
|
return remap$(v, {
|
|
74
80
|
benchmarkModel: "benchmark_model",
|
|
75
81
|
displayName: "display_name",
|
|
82
|
+
modelId: "model_id",
|
|
76
83
|
});
|
|
77
84
|
});
|
|
78
85
|
|
|
@@ -15,6 +15,10 @@ export type ModelUpdateRequestBody = {
|
|
|
15
15
|
hasFunctions?: boolean | undefined;
|
|
16
16
|
inputCost?: number | undefined;
|
|
17
17
|
metadata?: components.ModelMetadata | undefined;
|
|
18
|
+
/**
|
|
19
|
+
* Immutable private-model slug.
|
|
20
|
+
*/
|
|
21
|
+
modelId?: string | undefined;
|
|
18
22
|
modelType?: string | undefined;
|
|
19
23
|
outputCost?: number | undefined;
|
|
20
24
|
parameters?: Array<components.UpdateModelParameter> | undefined;
|
|
@@ -73,6 +77,7 @@ export type ModelUpdateRequestBody$Outbound = {
|
|
|
73
77
|
has_functions?: boolean | undefined;
|
|
74
78
|
input_cost?: number | undefined;
|
|
75
79
|
metadata?: components.ModelMetadata$Outbound | undefined;
|
|
80
|
+
model_id?: string | undefined;
|
|
76
81
|
model_type?: string | undefined;
|
|
77
82
|
output_cost?: number | undefined;
|
|
78
83
|
parameters?: Array<components.UpdateModelParameter$Outbound> | undefined;
|
|
@@ -89,6 +94,7 @@ export const ModelUpdateRequestBody$outboundSchema: z.ZodType<
|
|
|
89
94
|
hasFunctions: z.boolean().optional(),
|
|
90
95
|
inputCost: z.number().optional(),
|
|
91
96
|
metadata: components.ModelMetadata$outboundSchema.optional(),
|
|
97
|
+
modelId: z.string().optional(),
|
|
92
98
|
modelType: z.string().optional(),
|
|
93
99
|
outputCost: z.number().optional(),
|
|
94
100
|
parameters: z.array(components.UpdateModelParameter$outboundSchema)
|
|
@@ -99,6 +105,7 @@ export const ModelUpdateRequestBody$outboundSchema: z.ZodType<
|
|
|
99
105
|
displayName: "display_name",
|
|
100
106
|
hasFunctions: "has_functions",
|
|
101
107
|
inputCost: "input_cost",
|
|
108
|
+
modelId: "model_id",
|
|
102
109
|
modelType: "model_type",
|
|
103
110
|
outputCost: "output_cost",
|
|
104
111
|
});
|
|
@@ -17,6 +17,7 @@ export type ModelUpdateAwsBedrockRequestBody = {
|
|
|
17
17
|
benchmarkModel?: string | undefined;
|
|
18
18
|
cacheReadCost?: number | undefined;
|
|
19
19
|
cacheWriteCost?: number | undefined;
|
|
20
|
+
configuration?: components.PrivateModelConfiguration | undefined;
|
|
20
21
|
description?: string | undefined;
|
|
21
22
|
displayName?: string | undefined;
|
|
22
23
|
hasReasoning?: boolean | undefined;
|
|
@@ -92,6 +93,7 @@ export type ModelUpdateAwsBedrockRequestBody$Outbound = {
|
|
|
92
93
|
benchmark_model?: string | undefined;
|
|
93
94
|
cache_read_cost?: number | undefined;
|
|
94
95
|
cache_write_cost?: number | undefined;
|
|
96
|
+
configuration?: components.PrivateModelConfiguration$Outbound | undefined;
|
|
95
97
|
description?: string | undefined;
|
|
96
98
|
display_name?: string | undefined;
|
|
97
99
|
has_reasoning?: boolean | undefined;
|
|
@@ -125,6 +127,7 @@ export const ModelUpdateAwsBedrockRequestBody$outboundSchema: z.ZodType<
|
|
|
125
127
|
benchmarkModel: z.string().optional(),
|
|
126
128
|
cacheReadCost: z.number().optional(),
|
|
127
129
|
cacheWriteCost: z.number().optional(),
|
|
130
|
+
configuration: components.PrivateModelConfiguration$outboundSchema.optional(),
|
|
128
131
|
description: z.string().optional(),
|
|
129
132
|
displayName: z.string().optional(),
|
|
130
133
|
hasReasoning: z.boolean().optional(),
|
|
@@ -14,6 +14,7 @@ export type ModelUpdateOpenAILikeRequestBody = {
|
|
|
14
14
|
benchmarkModel?: string | undefined;
|
|
15
15
|
cacheReadCost?: number | undefined;
|
|
16
16
|
cacheWriteCost?: number | undefined;
|
|
17
|
+
configuration?: components.PrivateModelConfiguration | undefined;
|
|
17
18
|
costPerImage?: number | undefined;
|
|
18
19
|
description?: string | undefined;
|
|
19
20
|
displayName: string;
|
|
@@ -83,6 +84,7 @@ export type ModelUpdateOpenAILikeRequestBody$Outbound = {
|
|
|
83
84
|
benchmark_model?: string | undefined;
|
|
84
85
|
cache_read_cost?: number | undefined;
|
|
85
86
|
cache_write_cost?: number | undefined;
|
|
87
|
+
configuration?: components.PrivateModelConfiguration$Outbound | undefined;
|
|
86
88
|
cost_per_image?: number | undefined;
|
|
87
89
|
description?: string | undefined;
|
|
88
90
|
display_name: string;
|
|
@@ -110,6 +112,7 @@ export const ModelUpdateOpenAILikeRequestBody$outboundSchema: z.ZodType<
|
|
|
110
112
|
benchmarkModel: z.string().optional(),
|
|
111
113
|
cacheReadCost: z.number().optional(),
|
|
112
114
|
cacheWriteCost: z.number().optional(),
|
|
115
|
+
configuration: components.PrivateModelConfiguration$outboundSchema.optional(),
|
|
113
116
|
costPerImage: z.number().optional(),
|
|
114
117
|
description: z.string().optional(),
|
|
115
118
|
displayName: z.string(),
|
|
@@ -318,7 +318,7 @@ export const PatchV2HumanEvalSetsIdResponseBody2$inboundSchema: z.ZodType<
|
|
|
318
318
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
319
319
|
.optional(),
|
|
320
320
|
updated: z.string().datetime({ offset: true }).default(
|
|
321
|
-
"2026-10-
|
|
321
|
+
"2026-10-21T16:33:23.690Z",
|
|
322
322
|
).transform(v => new Date(v)),
|
|
323
323
|
filter_type: z.literal("name"),
|
|
324
324
|
filter_value: z.string(),
|
|
@@ -364,7 +364,7 @@ export const PatchV2HumanEvalSetsIdResponseBody1$inboundSchema: z.ZodType<
|
|
|
364
364
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
365
365
|
.optional(),
|
|
366
366
|
updated: z.string().datetime({ offset: true }).default(
|
|
367
|
-
"2026-10-
|
|
367
|
+
"2026-10-21T16:33:23.690Z",
|
|
368
368
|
).transform(v => new Date(v)),
|
|
369
369
|
filter_type: z.literal("span_type"),
|
|
370
370
|
filter_values: z.array(z.string()),
|
|
@@ -8,7 +8,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
10
|
|
|
11
|
-
export type
|
|
11
|
+
export type RequestBody2 = {
|
|
12
12
|
/**
|
|
13
13
|
* Display name of the human review set
|
|
14
14
|
*/
|
|
@@ -32,7 +32,7 @@ export type PostV2HumanEvalSetsRequestBody2 = {
|
|
|
32
32
|
filterValue: string;
|
|
33
33
|
};
|
|
34
34
|
|
|
35
|
-
export type
|
|
35
|
+
export type RequestBody1 = {
|
|
36
36
|
/**
|
|
37
37
|
* Display name of the human review set
|
|
38
38
|
*/
|
|
@@ -56,9 +56,7 @@ export type PostV2HumanEvalSetsRequestBody1 = {
|
|
|
56
56
|
filterValues: Array<string>;
|
|
57
57
|
};
|
|
58
58
|
|
|
59
|
-
export type PostV2HumanEvalSetsRequestBody =
|
|
60
|
-
| PostV2HumanEvalSetsRequestBody1
|
|
61
|
-
| PostV2HumanEvalSetsRequestBody2;
|
|
59
|
+
export type PostV2HumanEvalSetsRequestBody = RequestBody1 | RequestBody2;
|
|
62
60
|
|
|
63
61
|
export type PostV2HumanEvalSetsResponseBody2 = {
|
|
64
62
|
/**
|
|
@@ -146,7 +144,7 @@ export type PostV2HumanEvalSetsResponseBody =
|
|
|
146
144
|
| PostV2HumanEvalSetsResponseBody2;
|
|
147
145
|
|
|
148
146
|
/** @internal */
|
|
149
|
-
export type
|
|
147
|
+
export type RequestBody2$Outbound = {
|
|
150
148
|
display_name: string;
|
|
151
149
|
description?: string | undefined;
|
|
152
150
|
human_eval_ids: Array<string>;
|
|
@@ -156,10 +154,10 @@ export type PostV2HumanEvalSetsRequestBody2$Outbound = {
|
|
|
156
154
|
};
|
|
157
155
|
|
|
158
156
|
/** @internal */
|
|
159
|
-
export const
|
|
160
|
-
|
|
157
|
+
export const RequestBody2$outboundSchema: z.ZodType<
|
|
158
|
+
RequestBody2$Outbound,
|
|
161
159
|
z.ZodTypeDef,
|
|
162
|
-
|
|
160
|
+
RequestBody2
|
|
163
161
|
> = z.object({
|
|
164
162
|
displayName: z.string(),
|
|
165
163
|
description: z.string().optional(),
|
|
@@ -177,18 +175,12 @@ export const PostV2HumanEvalSetsRequestBody2$outboundSchema: z.ZodType<
|
|
|
177
175
|
});
|
|
178
176
|
});
|
|
179
177
|
|
|
180
|
-
export function
|
|
181
|
-
|
|
182
|
-
): string {
|
|
183
|
-
return JSON.stringify(
|
|
184
|
-
PostV2HumanEvalSetsRequestBody2$outboundSchema.parse(
|
|
185
|
-
postV2HumanEvalSetsRequestBody2,
|
|
186
|
-
),
|
|
187
|
-
);
|
|
178
|
+
export function requestBody2ToJSON(requestBody2: RequestBody2): string {
|
|
179
|
+
return JSON.stringify(RequestBody2$outboundSchema.parse(requestBody2));
|
|
188
180
|
}
|
|
189
181
|
|
|
190
182
|
/** @internal */
|
|
191
|
-
export type
|
|
183
|
+
export type RequestBody1$Outbound = {
|
|
192
184
|
display_name: string;
|
|
193
185
|
description?: string | undefined;
|
|
194
186
|
human_eval_ids: Array<string>;
|
|
@@ -198,10 +190,10 @@ export type PostV2HumanEvalSetsRequestBody1$Outbound = {
|
|
|
198
190
|
};
|
|
199
191
|
|
|
200
192
|
/** @internal */
|
|
201
|
-
export const
|
|
202
|
-
|
|
193
|
+
export const RequestBody1$outboundSchema: z.ZodType<
|
|
194
|
+
RequestBody1$Outbound,
|
|
203
195
|
z.ZodTypeDef,
|
|
204
|
-
|
|
196
|
+
RequestBody1
|
|
205
197
|
> = z.object({
|
|
206
198
|
displayName: z.string(),
|
|
207
199
|
description: z.string().optional(),
|
|
@@ -219,20 +211,14 @@ export const PostV2HumanEvalSetsRequestBody1$outboundSchema: z.ZodType<
|
|
|
219
211
|
});
|
|
220
212
|
});
|
|
221
213
|
|
|
222
|
-
export function
|
|
223
|
-
|
|
224
|
-
): string {
|
|
225
|
-
return JSON.stringify(
|
|
226
|
-
PostV2HumanEvalSetsRequestBody1$outboundSchema.parse(
|
|
227
|
-
postV2HumanEvalSetsRequestBody1,
|
|
228
|
-
),
|
|
229
|
-
);
|
|
214
|
+
export function requestBody1ToJSON(requestBody1: RequestBody1): string {
|
|
215
|
+
return JSON.stringify(RequestBody1$outboundSchema.parse(requestBody1));
|
|
230
216
|
}
|
|
231
217
|
|
|
232
218
|
/** @internal */
|
|
233
219
|
export type PostV2HumanEvalSetsRequestBody$Outbound =
|
|
234
|
-
|
|
|
235
|
-
|
|
|
220
|
+
| RequestBody1$Outbound
|
|
221
|
+
| RequestBody2$Outbound;
|
|
236
222
|
|
|
237
223
|
/** @internal */
|
|
238
224
|
export const PostV2HumanEvalSetsRequestBody$outboundSchema: z.ZodType<
|
|
@@ -240,8 +226,8 @@ export const PostV2HumanEvalSetsRequestBody$outboundSchema: z.ZodType<
|
|
|
240
226
|
z.ZodTypeDef,
|
|
241
227
|
PostV2HumanEvalSetsRequestBody
|
|
242
228
|
> = z.union([
|
|
243
|
-
z.lazy(() =>
|
|
244
|
-
z.lazy(() =>
|
|
229
|
+
z.lazy(() => RequestBody1$outboundSchema),
|
|
230
|
+
z.lazy(() => RequestBody2$outboundSchema),
|
|
245
231
|
]);
|
|
246
232
|
|
|
247
233
|
export function postV2HumanEvalSetsRequestBodyToJSON(
|
|
@@ -271,7 +257,7 @@ export const PostV2HumanEvalSetsResponseBody2$inboundSchema: z.ZodType<
|
|
|
271
257
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
272
258
|
.optional(),
|
|
273
259
|
updated: z.string().datetime({ offset: true }).default(
|
|
274
|
-
"2026-10-
|
|
260
|
+
"2026-10-21T16:33:23.690Z",
|
|
275
261
|
).transform(v => new Date(v)),
|
|
276
262
|
filter_type: z.literal("name"),
|
|
277
263
|
filter_value: z.string(),
|
|
@@ -316,7 +302,7 @@ export const PostV2HumanEvalSetsResponseBody1$inboundSchema: z.ZodType<
|
|
|
316
302
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
317
303
|
.optional(),
|
|
318
304
|
updated: z.string().datetime({ offset: true }).default(
|
|
319
|
-
"2026-10-
|
|
305
|
+
"2026-10-21T16:33:23.690Z",
|
|
320
306
|
).transform(v => new Date(v)),
|
|
321
307
|
filter_type: z.literal("span_type"),
|
|
322
308
|
filter_values: z.array(z.string()),
|
|
@@ -146,6 +146,10 @@ export type RetrieveAgentRequestTools = {
|
|
|
146
146
|
* Nested tool ID for MCP tools (identifies specific tool within MCP server)
|
|
147
147
|
*/
|
|
148
148
|
toolId?: string | undefined;
|
|
149
|
+
/**
|
|
150
|
+
* Set by the API on MCP tools resolved from a whole MCP server or gateway; they are resolved again on every save.
|
|
151
|
+
*/
|
|
152
|
+
wholeServer?: boolean | undefined;
|
|
149
153
|
conditions?: Array<RetrieveAgentRequestConditions> | undefined;
|
|
150
154
|
/**
|
|
151
155
|
* Tool execution timeout in seconds for this agent (max: 10 minutes). Overrides the timeout configured on the tool definition.
|
|
@@ -1513,6 +1517,7 @@ export const RetrieveAgentRequestTools$inboundSchema: z.ZodType<
|
|
|
1513
1517
|
configuration: z.record(z.any()).optional(),
|
|
1514
1518
|
requires_approval: z.boolean().default(false),
|
|
1515
1519
|
tool_id: z.string().optional(),
|
|
1520
|
+
whole_server: z.boolean().optional(),
|
|
1516
1521
|
conditions: z.array(
|
|
1517
1522
|
z.lazy(() => RetrieveAgentRequestConditions$inboundSchema),
|
|
1518
1523
|
).optional(),
|
|
@@ -1523,6 +1528,7 @@ export const RetrieveAgentRequestTools$inboundSchema: z.ZodType<
|
|
|
1523
1528
|
"display_name": "displayName",
|
|
1524
1529
|
"requires_approval": "requiresApproval",
|
|
1525
1530
|
"tool_id": "toolId",
|
|
1531
|
+
"whole_server": "wholeServer",
|
|
1526
1532
|
});
|
|
1527
1533
|
});
|
|
1528
1534
|
|
|
@@ -68,7 +68,7 @@ export type RetrieveResponseResponseBody = {
|
|
|
68
68
|
maxToolCalls: number | null;
|
|
69
69
|
memory?: components.MemoryParam | undefined;
|
|
70
70
|
/**
|
|
71
|
-
* Developer-defined key-value pairs attached to the response (OpenAI spec: Map<string, string
|
|
71
|
+
* Developer-defined key-value pairs attached to the response (OpenAI spec: `Map<string, string>`).
|
|
72
72
|
*/
|
|
73
73
|
metadata: { [k: string]: string };
|
|
74
74
|
model: string;
|
|
@@ -624,7 +624,7 @@ export const RetrieveToolResponseBodyCodeExecutionTool$inboundSchema: z.ZodType<
|
|
|
624
624
|
z.ZodTypeDef,
|
|
625
625
|
unknown
|
|
626
626
|
> = z.object({
|
|
627
|
-
_id: z.string().default("
|
|
627
|
+
_id: z.string().default("tool_01M5FMZ1TCY9W962PNZ4YYQA8K"),
|
|
628
628
|
path: z.string(),
|
|
629
629
|
key: z.string(),
|
|
630
630
|
display_name: z.string().optional(),
|
|
@@ -820,7 +820,7 @@ export const RetrieveToolResponseBodyHTTPTool$inboundSchema: z.ZodType<
|
|
|
820
820
|
z.ZodTypeDef,
|
|
821
821
|
unknown
|
|
822
822
|
> = z.object({
|
|
823
|
-
_id: z.string().default("
|
|
823
|
+
_id: z.string().default("tool_01M5FMZ1TCGV7SFMAMANND0TB5"),
|
|
824
824
|
path: z.string(),
|
|
825
825
|
key: z.string(),
|
|
826
826
|
display_name: z.string().optional(),
|
|
@@ -916,7 +916,7 @@ export const RetrieveToolResponseBodyJSONSchemaTool$inboundSchema: z.ZodType<
|
|
|
916
916
|
z.ZodTypeDef,
|
|
917
917
|
unknown
|
|
918
918
|
> = z.object({
|
|
919
|
-
_id: z.string().default("
|
|
919
|
+
_id: z.string().default("tool_01M5FMZ1TB67W1J180S8ZVR79Q"),
|
|
920
920
|
path: z.string(),
|
|
921
921
|
key: z.string(),
|
|
922
922
|
display_name: z.string().optional(),
|
|
@@ -1022,7 +1022,7 @@ export const RetrieveToolResponseBodyFunctionTool$inboundSchema: z.ZodType<
|
|
|
1022
1022
|
z.ZodTypeDef,
|
|
1023
1023
|
unknown
|
|
1024
1024
|
> = z.object({
|
|
1025
|
-
_id: z.string().default("
|
|
1025
|
+
_id: z.string().default("tool_01M5FMZ1TBFXTFC057VTRG3WP8"),
|
|
1026
1026
|
path: z.string(),
|
|
1027
1027
|
key: z.string(),
|
|
1028
1028
|
display_name: z.string().optional(),
|
|
@@ -3904,7 +3904,7 @@ export const Tools$outboundSchema: z.ZodType<
|
|
|
3904
3904
|
z.ZodTypeDef,
|
|
3905
3905
|
Tools
|
|
3906
3906
|
> = z.object({
|
|
3907
|
-
id: z.string().default("
|
|
3907
|
+
id: z.string().default("01M5FMZ1R17MN78HV96MAREWMT"),
|
|
3908
3908
|
name: z.string(),
|
|
3909
3909
|
description: z.string().optional(),
|
|
3910
3910
|
schema: z.lazy(() => AgentToolInputRunSchema$outboundSchema),
|
|
@@ -3963,7 +3963,7 @@ export const AgentToolInputRunTools$outboundSchema: z.ZodType<
|
|
|
3963
3963
|
z.ZodTypeDef,
|
|
3964
3964
|
AgentToolInputRunTools
|
|
3965
3965
|
> = z.object({
|
|
3966
|
-
id: z.string().default("
|
|
3966
|
+
id: z.string().default("01M5FMZ1RJQNEVQYGR0WG4MK10"),
|
|
3967
3967
|
name: z.string(),
|
|
3968
3968
|
description: z.string().optional(),
|
|
3969
3969
|
schema: z.lazy(() =>
|
|
@@ -1347,6 +1347,10 @@ export type UpdateAgentTools = {
|
|
|
1347
1347
|
* Nested tool ID for MCP tools (identifies specific tool within MCP server)
|
|
1348
1348
|
*/
|
|
1349
1349
|
toolId?: string | undefined;
|
|
1350
|
+
/**
|
|
1351
|
+
* Set by the API on MCP tools resolved from a whole MCP server or gateway; they are resolved again on every save.
|
|
1352
|
+
*/
|
|
1353
|
+
wholeServer?: boolean | undefined;
|
|
1350
1354
|
conditions?: Array<UpdateAgentConditions> | undefined;
|
|
1351
1355
|
/**
|
|
1352
1356
|
* Tool execution timeout in seconds for this agent (max: 10 minutes). Overrides the timeout configured on the tool definition.
|
|
@@ -4617,6 +4621,7 @@ export const UpdateAgentTools$inboundSchema: z.ZodType<
|
|
|
4617
4621
|
configuration: z.record(z.any()).optional(),
|
|
4618
4622
|
requires_approval: z.boolean().default(false),
|
|
4619
4623
|
tool_id: z.string().optional(),
|
|
4624
|
+
whole_server: z.boolean().optional(),
|
|
4620
4625
|
conditions: z.array(z.lazy(() => UpdateAgentConditions$inboundSchema))
|
|
4621
4626
|
.optional(),
|
|
4622
4627
|
timeout: z.number().optional(),
|
|
@@ -4626,6 +4631,7 @@ export const UpdateAgentTools$inboundSchema: z.ZodType<
|
|
|
4626
4631
|
"display_name": "displayName",
|
|
4627
4632
|
"requires_approval": "requiresApproval",
|
|
4628
4633
|
"tool_id": "toolId",
|
|
4634
|
+
"whole_server": "wholeServer",
|
|
4629
4635
|
});
|
|
4630
4636
|
});
|
|
4631
4637
|
|
|
@@ -1472,7 +1472,7 @@ export type UpdatePromptRole = ClosedEnum<typeof UpdatePromptRole>;
|
|
|
1472
1472
|
|
|
1473
1473
|
export type UpdatePrompt2File = {
|
|
1474
1474
|
/**
|
|
1475
|
-
* The file data as a data URI string in the format
|
|
1475
|
+
* The file data as a data URI string in the format `data:<mime-type>;base64,<base64-encoded-data>`. Example: `data:image/png;base64,iVBORw0KGgoAAAANS...`
|
|
1476
1476
|
*/
|
|
1477
1477
|
fileData?: string | undefined;
|
|
1478
1478
|
/**
|