@orq-ai/node 4.16.0-rc.26 → 4.16.0-rc.27
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/README.md +6 -6
- package/funcs/feedbackCreateEvaluation.d.ts +3 -0
- package/funcs/feedbackCreateEvaluation.d.ts.map +1 -1
- package/funcs/feedbackCreateEvaluation.js +3 -0
- package/funcs/feedbackCreateEvaluation.js.map +1 -1
- package/funcs/feedbackRemoveEvaluation.d.ts +3 -0
- package/funcs/feedbackRemoveEvaluation.d.ts.map +1 -1
- package/funcs/feedbackRemoveEvaluation.js +3 -0
- package/funcs/feedbackRemoveEvaluation.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/models/components/reasoningpart.js +1 -1
- package/models/operations/createannotation.d.ts +8 -8
- package/models/operations/createannotation.d.ts.map +1 -1
- package/models/operations/createannotation.js +9 -9
- package/models/operations/createannotation.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/patchv2humanevalsetsid.js +2 -2
- package/models/operations/postv2feedback.d.ts +15 -15
- package/models/operations/postv2feedback.d.ts.map +1 -1
- package/models/operations/postv2feedback.js +16 -15
- package/models/operations/postv2feedback.js.map +1 -1
- package/models/operations/postv2feedbackevaluation.js +4 -4
- package/models/operations/postv2feedbackremove.d.ts +8 -8
- package/models/operations/postv2feedbackremove.d.ts.map +1 -1
- package/models/operations/postv2feedbackremove.js +7 -8
- package/models/operations/postv2feedbackremove.js.map +1 -1
- 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/sdk/feedback.d.ts +7 -1
- package/sdk/feedback.d.ts.map +1 -1
- package/sdk/feedback.js +9 -3
- package/sdk/feedback.js.map +1 -1
- package/src/funcs/feedbackCreateEvaluation.ts +3 -0
- package/src/funcs/feedbackRemoveEvaluation.ts +3 -0
- package/src/lib/config.ts +2 -2
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/operations/createannotation.ts +15 -29
- 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/patchv2humanevalsetsid.ts +2 -2
- package/src/models/operations/postv2feedback.ts +31 -30
- package/src/models/operations/postv2feedbackevaluation.ts +4 -4
- package/src/models/operations/postv2feedbackremove.ts +17 -14
- 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/src/sdk/feedback.ts +14 -8
|
@@ -639,7 +639,7 @@ export const DataCodeExecutionTool$inboundSchema: z.ZodType<
|
|
|
639
639
|
z.ZodTypeDef,
|
|
640
640
|
unknown
|
|
641
641
|
> = z.object({
|
|
642
|
-
_id: z.string().default("
|
|
642
|
+
_id: z.string().default("tool_01M3NXAV8QPQT1BJKR9S30KZ1C"),
|
|
643
643
|
path: z.string(),
|
|
644
644
|
key: z.string(),
|
|
645
645
|
display_name: z.string().optional(),
|
|
@@ -821,7 +821,7 @@ export const DataHTTPTool$inboundSchema: z.ZodType<
|
|
|
821
821
|
z.ZodTypeDef,
|
|
822
822
|
unknown
|
|
823
823
|
> = z.object({
|
|
824
|
-
_id: z.string().default("
|
|
824
|
+
_id: z.string().default("tool_01M3NXAV8Q5VZCWEZX7ZPN743Q"),
|
|
825
825
|
path: z.string(),
|
|
826
826
|
key: z.string(),
|
|
827
827
|
display_name: z.string().optional(),
|
|
@@ -914,7 +914,7 @@ export const DataJSONSchemaTool$inboundSchema: z.ZodType<
|
|
|
914
914
|
z.ZodTypeDef,
|
|
915
915
|
unknown
|
|
916
916
|
> = z.object({
|
|
917
|
-
_id: z.string().default("
|
|
917
|
+
_id: z.string().default("tool_01M3NXAV8PJ5GRVE89GEFBRH20"),
|
|
918
918
|
path: z.string(),
|
|
919
919
|
key: z.string(),
|
|
920
920
|
display_name: z.string().optional(),
|
|
@@ -1012,7 +1012,7 @@ export const DataFunctionTool$inboundSchema: z.ZodType<
|
|
|
1012
1012
|
z.ZodTypeDef,
|
|
1013
1013
|
unknown
|
|
1014
1014
|
> = z.object({
|
|
1015
|
-
_id: z.string().default("
|
|
1015
|
+
_id: z.string().default("tool_01M3NXAV8N2QPD6HG8F6SWVX9E"),
|
|
1016
1016
|
path: z.string(),
|
|
1017
1017
|
key: z.string(),
|
|
1018
1018
|
display_name: z.string().optional(),
|
|
@@ -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-09-
|
|
143
|
+
"2026-09-29T06:23:41.380Z",
|
|
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-09-
|
|
188
|
+
"2026-09-29T06:23:41.380Z",
|
|
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-09-
|
|
144
|
+
"2026-09-29T06:23:41.380Z",
|
|
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-09-
|
|
189
|
+
"2026-09-29T06:23:41.380Z",
|
|
190
190
|
).transform(v => new Date(v)),
|
|
191
191
|
filter_type: z.literal("span_type"),
|
|
192
192
|
filter_values: z.array(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-09-
|
|
321
|
+
"2026-09-29T06:23:41.380Z",
|
|
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-09-
|
|
367
|
+
"2026-09-29T06:23:41.380Z",
|
|
368
368
|
).transform(v => new Date(v)),
|
|
369
369
|
filter_type: z.literal("span_type"),
|
|
370
370
|
filter_values: z.array(z.string()),
|
|
@@ -12,9 +12,9 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
|
12
12
|
/**
|
|
13
13
|
* The feedback value. For single selection of multiple choice, the value should be an array of strings. For `correction`, the value should be a string.
|
|
14
14
|
*/
|
|
15
|
-
export type
|
|
15
|
+
export type PostV2FeedbackValue = string | number | Array<string>;
|
|
16
16
|
|
|
17
|
-
export const
|
|
17
|
+
export const Product = {
|
|
18
18
|
Remoteconfigs: "remoteconfigs",
|
|
19
19
|
Deployments: "deployments",
|
|
20
20
|
Experiments: "experiments",
|
|
@@ -34,7 +34,7 @@ export const PostV2FeedbackProduct = {
|
|
|
34
34
|
AiChat: "ai-chat",
|
|
35
35
|
McpGateway: "mcp_gateway",
|
|
36
36
|
} as const;
|
|
37
|
-
export type
|
|
37
|
+
export type Product = ClosedEnum<typeof Product>;
|
|
38
38
|
|
|
39
39
|
export type PostV2FeedbackRequestBody = {
|
|
40
40
|
/**
|
|
@@ -53,15 +53,15 @@ export type PostV2FeedbackRequestBody = {
|
|
|
53
53
|
* The id returned by the [`get_config`](https://docs.orq.ai/reference/deployments/get-config) or [`invoke`](https://docs.orq.ai/reference/deployments/invoke) endpoints
|
|
54
54
|
*/
|
|
55
55
|
traceId: string;
|
|
56
|
-
product?:
|
|
56
|
+
product?: Product | undefined;
|
|
57
57
|
};
|
|
58
58
|
|
|
59
59
|
/**
|
|
60
60
|
* The feedback value. For single selection of multiple choice, the value should be an array of strings. For `correction`, the value should be a string.
|
|
61
61
|
*/
|
|
62
|
-
export type
|
|
62
|
+
export type PostV2FeedbackFeedbackValue = string | number | Array<string>;
|
|
63
63
|
|
|
64
|
-
export const
|
|
64
|
+
export const PostV2FeedbackProduct = {
|
|
65
65
|
Remoteconfigs: "remoteconfigs",
|
|
66
66
|
Deployments: "deployments",
|
|
67
67
|
Experiments: "experiments",
|
|
@@ -81,9 +81,7 @@ export const PostV2FeedbackFeedbackProduct = {
|
|
|
81
81
|
AiChat: "ai-chat",
|
|
82
82
|
McpGateway: "mcp_gateway",
|
|
83
83
|
} as const;
|
|
84
|
-
export type
|
|
85
|
-
typeof PostV2FeedbackFeedbackProduct
|
|
86
|
-
>;
|
|
84
|
+
export type PostV2FeedbackProduct = ClosedEnum<typeof PostV2FeedbackProduct>;
|
|
87
85
|
|
|
88
86
|
/**
|
|
89
87
|
* Feedback submitted successfully
|
|
@@ -105,27 +103,30 @@ export type PostV2FeedbackResponseBody = {
|
|
|
105
103
|
* The id returned by the [`get_config`](https://docs.orq.ai/reference/deployments/get-config) or [`invoke`](https://docs.orq.ai/reference/deployments/invoke) endpoints
|
|
106
104
|
*/
|
|
107
105
|
traceId: string;
|
|
108
|
-
product:
|
|
106
|
+
product: PostV2FeedbackProduct;
|
|
109
107
|
};
|
|
110
108
|
|
|
111
109
|
/** @internal */
|
|
112
|
-
export type
|
|
110
|
+
export type PostV2FeedbackValue$Outbound = string | number | Array<string>;
|
|
113
111
|
|
|
114
112
|
/** @internal */
|
|
115
|
-
export const
|
|
116
|
-
|
|
113
|
+
export const PostV2FeedbackValue$outboundSchema: z.ZodType<
|
|
114
|
+
PostV2FeedbackValue$Outbound,
|
|
117
115
|
z.ZodTypeDef,
|
|
118
|
-
|
|
116
|
+
PostV2FeedbackValue
|
|
119
117
|
> = z.union([z.string(), z.number(), z.array(z.string())]);
|
|
120
118
|
|
|
121
|
-
export function
|
|
122
|
-
|
|
119
|
+
export function postV2FeedbackValueToJSON(
|
|
120
|
+
postV2FeedbackValue: PostV2FeedbackValue,
|
|
121
|
+
): string {
|
|
122
|
+
return JSON.stringify(
|
|
123
|
+
PostV2FeedbackValue$outboundSchema.parse(postV2FeedbackValue),
|
|
124
|
+
);
|
|
123
125
|
}
|
|
124
126
|
|
|
125
127
|
/** @internal */
|
|
126
|
-
export const
|
|
127
|
-
|
|
128
|
-
> = z.nativeEnum(PostV2FeedbackProduct);
|
|
128
|
+
export const Product$outboundSchema: z.ZodNativeEnum<typeof Product> = z
|
|
129
|
+
.nativeEnum(Product);
|
|
129
130
|
|
|
130
131
|
/** @internal */
|
|
131
132
|
export type PostV2FeedbackRequestBody$Outbound = {
|
|
@@ -146,7 +147,7 @@ export const PostV2FeedbackRequestBody$outboundSchema: z.ZodType<
|
|
|
146
147
|
field: z.string(),
|
|
147
148
|
value: z.union([z.string(), z.number(), z.array(z.string())]),
|
|
148
149
|
traceId: z.string(),
|
|
149
|
-
product:
|
|
150
|
+
product: Product$outboundSchema.default("deployments"),
|
|
150
151
|
}).transform((v) => {
|
|
151
152
|
return remap$(v, {
|
|
152
153
|
field: "property",
|
|
@@ -163,26 +164,26 @@ export function postV2FeedbackRequestBodyToJSON(
|
|
|
163
164
|
}
|
|
164
165
|
|
|
165
166
|
/** @internal */
|
|
166
|
-
export const
|
|
167
|
-
|
|
167
|
+
export const PostV2FeedbackFeedbackValue$inboundSchema: z.ZodType<
|
|
168
|
+
PostV2FeedbackFeedbackValue,
|
|
168
169
|
z.ZodTypeDef,
|
|
169
170
|
unknown
|
|
170
171
|
> = z.union([z.string(), z.number(), z.array(z.string())]);
|
|
171
172
|
|
|
172
|
-
export function
|
|
173
|
+
export function postV2FeedbackFeedbackValueFromJSON(
|
|
173
174
|
jsonString: string,
|
|
174
|
-
): SafeParseResult<
|
|
175
|
+
): SafeParseResult<PostV2FeedbackFeedbackValue, SDKValidationError> {
|
|
175
176
|
return safeParse(
|
|
176
177
|
jsonString,
|
|
177
|
-
(x) =>
|
|
178
|
-
`Failed to parse '
|
|
178
|
+
(x) => PostV2FeedbackFeedbackValue$inboundSchema.parse(JSON.parse(x)),
|
|
179
|
+
`Failed to parse 'PostV2FeedbackFeedbackValue' from JSON`,
|
|
179
180
|
);
|
|
180
181
|
}
|
|
181
182
|
|
|
182
183
|
/** @internal */
|
|
183
|
-
export const
|
|
184
|
-
typeof
|
|
185
|
-
> = z.nativeEnum(
|
|
184
|
+
export const PostV2FeedbackProduct$inboundSchema: z.ZodNativeEnum<
|
|
185
|
+
typeof PostV2FeedbackProduct
|
|
186
|
+
> = z.nativeEnum(PostV2FeedbackProduct);
|
|
186
187
|
|
|
187
188
|
/** @internal */
|
|
188
189
|
export const PostV2FeedbackResponseBody$inboundSchema: z.ZodType<
|
|
@@ -194,7 +195,7 @@ export const PostV2FeedbackResponseBody$inboundSchema: z.ZodType<
|
|
|
194
195
|
property: z.string(),
|
|
195
196
|
value: z.union([z.string(), z.number(), z.array(z.string())]),
|
|
196
197
|
trace_id: z.string(),
|
|
197
|
-
product:
|
|
198
|
+
product: PostV2FeedbackProduct$inboundSchema.default("deployments"),
|
|
198
199
|
}).transform((v) => {
|
|
199
200
|
return remap$(v, {
|
|
200
201
|
"trace_id": "traceId",
|
|
@@ -245,7 +245,7 @@ export const RequestBody4$outboundSchema: z.ZodType<
|
|
|
245
245
|
PostV2FeedbackEvaluationRequestBodyFeedbackRequestSource$outboundSchema
|
|
246
246
|
.default("orq"),
|
|
247
247
|
explanation: z.string().optional(),
|
|
248
|
-
reviewedAt: z.date().default(() => new Date("2026-09-
|
|
248
|
+
reviewedAt: z.date().default(() => new Date("2026-09-29T06:23:48.040Z"))
|
|
249
249
|
.transform(v => v.toISOString()),
|
|
250
250
|
type: z.literal("string_array"),
|
|
251
251
|
values: z.array(z.string()),
|
|
@@ -299,7 +299,7 @@ export const Three$outboundSchema: z.ZodType<
|
|
|
299
299
|
source: PostV2FeedbackEvaluationRequestBodyFeedbackSource$outboundSchema
|
|
300
300
|
.default("orq"),
|
|
301
301
|
explanation: z.string().optional(),
|
|
302
|
-
reviewedAt: z.date().default(() => new Date("2026-09-
|
|
302
|
+
reviewedAt: z.date().default(() => new Date("2026-09-29T06:23:48.039Z"))
|
|
303
303
|
.transform(v => v.toISOString()),
|
|
304
304
|
type: z.literal("boolean"),
|
|
305
305
|
value: z.boolean(),
|
|
@@ -353,7 +353,7 @@ export const RequestBody2$outboundSchema: z.ZodType<
|
|
|
353
353
|
"orq",
|
|
354
354
|
),
|
|
355
355
|
explanation: z.string().optional(),
|
|
356
|
-
reviewedAt: z.date().default(() => new Date("2026-09-
|
|
356
|
+
reviewedAt: z.date().default(() => new Date("2026-09-29T06:23:48.039Z"))
|
|
357
357
|
.transform(v => v.toISOString()),
|
|
358
358
|
type: z.literal("number"),
|
|
359
359
|
value: z.number(),
|
|
@@ -405,7 +405,7 @@ export const RequestBody1$outboundSchema: z.ZodType<
|
|
|
405
405
|
humanReviewId: z.string().optional(),
|
|
406
406
|
source: RequestBodySource$outboundSchema.default("orq"),
|
|
407
407
|
explanation: z.string().optional(),
|
|
408
|
-
reviewedAt: z.date().default(() => new Date("2026-09-
|
|
408
|
+
reviewedAt: z.date().default(() => new Date("2026-09-29T06:23:48.039Z"))
|
|
409
409
|
.transform(v => v.toISOString()),
|
|
410
410
|
type: z.literal("string"),
|
|
411
411
|
value: z.string(),
|
|
@@ -9,7 +9,7 @@ import { ClosedEnum } from "../../types/enums.js";
|
|
|
9
9
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
10
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
11
|
|
|
12
|
-
export const
|
|
12
|
+
export const PostV2FeedbackRemoveProduct = {
|
|
13
13
|
Remoteconfigs: "remoteconfigs",
|
|
14
14
|
Deployments: "deployments",
|
|
15
15
|
Experiments: "experiments",
|
|
@@ -29,15 +29,17 @@ export const Product = {
|
|
|
29
29
|
AiChat: "ai-chat",
|
|
30
30
|
McpGateway: "mcp_gateway",
|
|
31
31
|
} as const;
|
|
32
|
-
export type
|
|
32
|
+
export type PostV2FeedbackRemoveProduct = ClosedEnum<
|
|
33
|
+
typeof PostV2FeedbackRemoveProduct
|
|
34
|
+
>;
|
|
33
35
|
|
|
34
36
|
export type PostV2FeedbackRemoveRequestBody = {
|
|
35
37
|
id: string;
|
|
36
38
|
traceId: string;
|
|
37
|
-
product:
|
|
39
|
+
product: PostV2FeedbackRemoveProduct;
|
|
38
40
|
};
|
|
39
41
|
|
|
40
|
-
export const
|
|
42
|
+
export const PostV2FeedbackRemoveFeedbackProduct = {
|
|
41
43
|
Remoteconfigs: "remoteconfigs",
|
|
42
44
|
Deployments: "deployments",
|
|
43
45
|
Experiments: "experiments",
|
|
@@ -57,8 +59,8 @@ export const PostV2FeedbackRemoveProduct = {
|
|
|
57
59
|
AiChat: "ai-chat",
|
|
58
60
|
McpGateway: "mcp_gateway",
|
|
59
61
|
} as const;
|
|
60
|
-
export type
|
|
61
|
-
typeof
|
|
62
|
+
export type PostV2FeedbackRemoveFeedbackProduct = ClosedEnum<
|
|
63
|
+
typeof PostV2FeedbackRemoveFeedbackProduct
|
|
62
64
|
>;
|
|
63
65
|
|
|
64
66
|
/**
|
|
@@ -67,12 +69,13 @@ export type PostV2FeedbackRemoveProduct = ClosedEnum<
|
|
|
67
69
|
export type PostV2FeedbackRemoveResponseBody = {
|
|
68
70
|
id: string;
|
|
69
71
|
traceId: string;
|
|
70
|
-
product:
|
|
72
|
+
product: PostV2FeedbackRemoveFeedbackProduct;
|
|
71
73
|
};
|
|
72
74
|
|
|
73
75
|
/** @internal */
|
|
74
|
-
export const
|
|
75
|
-
|
|
76
|
+
export const PostV2FeedbackRemoveProduct$outboundSchema: z.ZodNativeEnum<
|
|
77
|
+
typeof PostV2FeedbackRemoveProduct
|
|
78
|
+
> = z.nativeEnum(PostV2FeedbackRemoveProduct);
|
|
76
79
|
|
|
77
80
|
/** @internal */
|
|
78
81
|
export type PostV2FeedbackRemoveRequestBody$Outbound = {
|
|
@@ -89,7 +92,7 @@ export const PostV2FeedbackRemoveRequestBody$outboundSchema: z.ZodType<
|
|
|
89
92
|
> = z.object({
|
|
90
93
|
id: z.string(),
|
|
91
94
|
traceId: z.string(),
|
|
92
|
-
product:
|
|
95
|
+
product: PostV2FeedbackRemoveProduct$outboundSchema,
|
|
93
96
|
}).transform((v) => {
|
|
94
97
|
return remap$(v, {
|
|
95
98
|
traceId: "trace_id",
|
|
@@ -107,9 +110,9 @@ export function postV2FeedbackRemoveRequestBodyToJSON(
|
|
|
107
110
|
}
|
|
108
111
|
|
|
109
112
|
/** @internal */
|
|
110
|
-
export const
|
|
111
|
-
typeof
|
|
112
|
-
> = z.nativeEnum(
|
|
113
|
+
export const PostV2FeedbackRemoveFeedbackProduct$inboundSchema: z.ZodNativeEnum<
|
|
114
|
+
typeof PostV2FeedbackRemoveFeedbackProduct
|
|
115
|
+
> = z.nativeEnum(PostV2FeedbackRemoveFeedbackProduct);
|
|
113
116
|
|
|
114
117
|
/** @internal */
|
|
115
118
|
export const PostV2FeedbackRemoveResponseBody$inboundSchema: z.ZodType<
|
|
@@ -119,7 +122,7 @@ export const PostV2FeedbackRemoveResponseBody$inboundSchema: z.ZodType<
|
|
|
119
122
|
> = z.object({
|
|
120
123
|
id: z.string(),
|
|
121
124
|
trace_id: z.string(),
|
|
122
|
-
product:
|
|
125
|
+
product: PostV2FeedbackRemoveFeedbackProduct$inboundSchema,
|
|
123
126
|
}).transform((v) => {
|
|
124
127
|
return remap$(v, {
|
|
125
128
|
"trace_id": "traceId",
|
|
@@ -271,7 +271,7 @@ export const PostV2HumanEvalSetsResponseBody2$inboundSchema: z.ZodType<
|
|
|
271
271
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
272
272
|
.optional(),
|
|
273
273
|
updated: z.string().datetime({ offset: true }).default(
|
|
274
|
-
"2026-09-
|
|
274
|
+
"2026-09-29T06:23:41.380Z",
|
|
275
275
|
).transform(v => new Date(v)),
|
|
276
276
|
filter_type: z.literal("name"),
|
|
277
277
|
filter_value: z.string(),
|
|
@@ -316,7 +316,7 @@ export const PostV2HumanEvalSetsResponseBody1$inboundSchema: z.ZodType<
|
|
|
316
316
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
317
317
|
.optional(),
|
|
318
318
|
updated: z.string().datetime({ offset: true }).default(
|
|
319
|
-
"2026-09-
|
|
319
|
+
"2026-09-29T06:23:41.380Z",
|
|
320
320
|
).transform(v => new Date(v)),
|
|
321
321
|
filter_type: z.literal("span_type"),
|
|
322
322
|
filter_values: z.array(z.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_01M3NXAV985P9NZPK007480V0Q"),
|
|
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_01M3NXAV9795XXJX5EP044D22M"),
|
|
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_01M3NXAV96RBFREAJR2SW93BNG"),
|
|
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_01M3NXAV96WFDWDY7WA5P21YY6"),
|
|
1026
1026
|
path: z.string(),
|
|
1027
1027
|
key: z.string(),
|
|
1028
1028
|
display_name: z.string().optional(),
|
|
@@ -3890,7 +3890,7 @@ export const Tools$outboundSchema: z.ZodType<
|
|
|
3890
3890
|
z.ZodTypeDef,
|
|
3891
3891
|
Tools
|
|
3892
3892
|
> = z.object({
|
|
3893
|
-
id: z.string().default("
|
|
3893
|
+
id: z.string().default("01M3NXAV6ZVDN0Q2Y9HRX7HQJ8"),
|
|
3894
3894
|
name: z.string(),
|
|
3895
3895
|
description: z.string().optional(),
|
|
3896
3896
|
schema: z.lazy(() => AgentToolInputRunSchema$outboundSchema),
|
|
@@ -3949,7 +3949,7 @@ export const AgentToolInputRunTools$outboundSchema: z.ZodType<
|
|
|
3949
3949
|
z.ZodTypeDef,
|
|
3950
3950
|
AgentToolInputRunTools
|
|
3951
3951
|
> = z.object({
|
|
3952
|
-
id: z.string().default("
|
|
3952
|
+
id: z.string().default("01M3NXAV7G5QGJH65N9XKPWYF8"),
|
|
3953
3953
|
name: z.string(),
|
|
3954
3954
|
description: z.string().optional(),
|
|
3955
3955
|
schema: z.lazy(() =>
|
|
@@ -1764,7 +1764,7 @@ export const UpdateToolResponseBodyCodeExecutionTool$inboundSchema: z.ZodType<
|
|
|
1764
1764
|
z.ZodTypeDef,
|
|
1765
1765
|
unknown
|
|
1766
1766
|
> = z.object({
|
|
1767
|
-
_id: z.string().default("
|
|
1767
|
+
_id: z.string().default("tool_01M3NXAV90MW517XVNTQHHPZHK"),
|
|
1768
1768
|
path: z.string(),
|
|
1769
1769
|
key: z.string(),
|
|
1770
1770
|
display_name: z.string().optional(),
|
|
@@ -1959,7 +1959,7 @@ export const UpdateToolResponseBodyHTTPTool$inboundSchema: z.ZodType<
|
|
|
1959
1959
|
z.ZodTypeDef,
|
|
1960
1960
|
unknown
|
|
1961
1961
|
> = z.object({
|
|
1962
|
-
_id: z.string().default("
|
|
1962
|
+
_id: z.string().default("tool_01M3NXAV8ZRZ8F4EJG4W72DJCG"),
|
|
1963
1963
|
path: z.string(),
|
|
1964
1964
|
key: z.string(),
|
|
1965
1965
|
display_name: z.string().optional(),
|
|
@@ -2054,7 +2054,7 @@ export const UpdateToolResponseBodyJSONSchemaTool$inboundSchema: z.ZodType<
|
|
|
2054
2054
|
z.ZodTypeDef,
|
|
2055
2055
|
unknown
|
|
2056
2056
|
> = z.object({
|
|
2057
|
-
_id: z.string().default("
|
|
2057
|
+
_id: z.string().default("tool_01M3NXAV8ZCV7HFMS13XPBQV3T"),
|
|
2058
2058
|
path: z.string(),
|
|
2059
2059
|
key: z.string(),
|
|
2060
2060
|
display_name: z.string().optional(),
|
|
@@ -2157,7 +2157,7 @@ export const UpdateToolResponseBodyFunctionTool$inboundSchema: z.ZodType<
|
|
|
2157
2157
|
z.ZodTypeDef,
|
|
2158
2158
|
unknown
|
|
2159
2159
|
> = z.object({
|
|
2160
|
-
_id: z.string().default("
|
|
2160
|
+
_id: z.string().default("tool_01M3NXAV8Y3XTXM4030AE9YHMW"),
|
|
2161
2161
|
path: z.string(),
|
|
2162
2162
|
key: z.string(),
|
|
2163
2163
|
display_name: z.string().optional(),
|
package/src/sdk/feedback.ts
CHANGED
|
@@ -13,6 +13,9 @@ import * as operations from "../models/operations/index.js";
|
|
|
13
13
|
import { unwrapAsync } from "../types/fp.js";
|
|
14
14
|
|
|
15
15
|
export class Feedback extends ClientSDK {
|
|
16
|
+
/**
|
|
17
|
+
* @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
18
|
+
*/
|
|
16
19
|
async removeEvaluation(
|
|
17
20
|
request?: operations.PostV2FeedbackEvaluationRemoveRequestBody | undefined,
|
|
18
21
|
options?: RequestOptions,
|
|
@@ -24,6 +27,9 @@ export class Feedback extends ClientSDK {
|
|
|
24
27
|
));
|
|
25
28
|
}
|
|
26
29
|
|
|
30
|
+
/**
|
|
31
|
+
* @deprecated method: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
32
|
+
*/
|
|
27
33
|
async createEvaluation(
|
|
28
34
|
request?: operations.PostV2FeedbackEvaluationRequestBody | undefined,
|
|
29
35
|
options?: RequestOptions,
|
|
@@ -35,22 +41,22 @@ export class Feedback extends ClientSDK {
|
|
|
35
41
|
));
|
|
36
42
|
}
|
|
37
43
|
|
|
38
|
-
async
|
|
39
|
-
request?: operations.
|
|
44
|
+
async create(
|
|
45
|
+
request?: operations.PostV2FeedbackRequestBody | undefined,
|
|
40
46
|
options?: RequestOptions,
|
|
41
|
-
): Promise<operations.
|
|
42
|
-
return unwrapAsync(
|
|
47
|
+
): Promise<operations.PostV2FeedbackResponseBody> {
|
|
48
|
+
return unwrapAsync(feedbackCreate(
|
|
43
49
|
this,
|
|
44
50
|
request,
|
|
45
51
|
options,
|
|
46
52
|
));
|
|
47
53
|
}
|
|
48
54
|
|
|
49
|
-
async
|
|
50
|
-
request?: operations.
|
|
55
|
+
async remove(
|
|
56
|
+
request?: operations.PostV2FeedbackRemoveRequestBody | undefined,
|
|
51
57
|
options?: RequestOptions,
|
|
52
|
-
): Promise<operations.
|
|
53
|
-
return unwrapAsync(
|
|
58
|
+
): Promise<operations.PostV2FeedbackRemoveResponseBody> {
|
|
59
|
+
return unwrapAsync(feedbackRemove(
|
|
54
60
|
this,
|
|
55
61
|
request,
|
|
56
62
|
options,
|