@orq-ai/node 4.17.0-rc.40 → 4.17.0-rc.43
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 +77 -81
- package/funcs/humanReviewSetsCreate.d.ts +5 -0
- package/funcs/humanReviewSetsCreate.d.ts.map +1 -1
- package/funcs/humanReviewSetsCreate.js +5 -0
- package/funcs/humanReviewSetsCreate.js.map +1 -1
- package/funcs/humanReviewSetsDelete.d.ts +5 -0
- package/funcs/humanReviewSetsDelete.d.ts.map +1 -1
- package/funcs/humanReviewSetsDelete.js +5 -0
- package/funcs/humanReviewSetsDelete.js.map +1 -1
- package/funcs/humanReviewSetsGet.d.ts +5 -0
- package/funcs/humanReviewSetsGet.d.ts.map +1 -1
- package/funcs/humanReviewSetsGet.js +5 -0
- package/funcs/humanReviewSetsGet.js.map +1 -1
- package/funcs/humanReviewSetsList.d.ts +5 -0
- package/funcs/humanReviewSetsList.d.ts.map +1 -1
- package/funcs/humanReviewSetsList.js +5 -0
- package/funcs/humanReviewSetsList.js.map +1 -1
- package/funcs/humanReviewSetsUpdate.d.ts +5 -0
- package/funcs/humanReviewSetsUpdate.d.ts.map +1 -1
- package/funcs/humanReviewSetsUpdate.js +5 -0
- package/funcs/humanReviewSetsUpdate.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/createtool.js +4 -4
- package/models/operations/deploymentinvoke.d.ts +5 -5
- package/models/operations/deploymentinvoke.d.ts.map +1 -1
- package/models/operations/deploymentinvoke.js +8 -7
- package/models/operations/deploymentinvoke.js.map +1 -1
- package/models/operations/deploymentstream.d.ts +5 -5
- package/models/operations/deploymentstream.d.ts.map +1 -1
- package/models/operations/deploymentstream.js +7 -7
- package/models/operations/deploymentstream.js.map +1 -1
- package/models/operations/getalltools.js +4 -4
- package/models/operations/getv2humanevalsets.js +2 -2
- package/models/operations/getv2humanevalsetsid.js +2 -2
- package/models/operations/index.d.ts +0 -2
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +0 -2
- package/models/operations/index.js.map +1 -1
- package/models/operations/listdeploymentversions.js +1 -1
- package/models/operations/patchv2humanevalsetsid.js +2 -2
- package/models/operations/postv2humanevalsets.d.ts +10 -10
- package/models/operations/postv2humanevalsets.d.ts.map +1 -1
- package/models/operations/postv2humanevalsets.js +13 -13
- package/models/operations/postv2humanevalsets.js.map +1 -1
- 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/sdk/feedback.d.ts +0 -8
- package/sdk/feedback.d.ts.map +1 -1
- package/sdk/feedback.js +0 -14
- package/sdk/feedback.js.map +1 -1
- package/sdk/humanreviewsets.d.ts +25 -0
- package/sdk/humanreviewsets.d.ts.map +1 -1
- package/sdk/humanreviewsets.js +25 -0
- package/sdk/humanreviewsets.js.map +1 -1
- package/sdk/sdk.d.ts +2 -2
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +3 -3
- package/sdk/sdk.js.map +1 -1
- package/src/funcs/humanReviewSetsCreate.ts +5 -0
- package/src/funcs/humanReviewSetsDelete.ts +5 -0
- package/src/funcs/humanReviewSetsGet.ts +5 -0
- package/src/funcs/humanReviewSetsList.ts +5 -0
- package/src/funcs/humanReviewSetsUpdate.ts +5 -0
- package/src/lib/config.ts +2 -2
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/operations/createtool.ts +4 -4
- package/src/models/operations/deploymentinvoke.ts +15 -18
- package/src/models/operations/deploymentstream.ts +11 -14
- 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/index.ts +0 -2
- package/src/models/operations/listdeploymentversions.ts +1 -1
- package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
- package/src/models/operations/postv2humanevalsets.ts +21 -35
- 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 +0 -30
- package/src/sdk/humanreviewsets.ts +25 -0
- package/src/sdk/sdk.ts +5 -5
- package/funcs/feedbackCreateEvaluation.d.ts +0 -15
- package/funcs/feedbackCreateEvaluation.d.ts.map +0 -1
- package/funcs/feedbackCreateEvaluation.js +0 -120
- package/funcs/feedbackCreateEvaluation.js.map +0 -1
- package/funcs/feedbackRemoveEvaluation.d.ts +0 -15
- package/funcs/feedbackRemoveEvaluation.d.ts.map +0 -1
- package/funcs/feedbackRemoveEvaluation.js +0 -120
- package/funcs/feedbackRemoveEvaluation.js.map +0 -1
- package/models/operations/postv2feedbackevaluation.d.ts +0 -257
- package/models/operations/postv2feedbackevaluation.d.ts.map +0 -1
- package/models/operations/postv2feedbackevaluation.js +0 -210
- package/models/operations/postv2feedbackevaluation.js.map +0 -1
- package/models/operations/postv2feedbackevaluationremove.d.ts +0 -14
- package/models/operations/postv2feedbackevaluationremove.d.ts.map +0 -1
- package/models/operations/postv2feedbackevaluationremove.js +0 -55
- package/models/operations/postv2feedbackevaluationremove.js.map +0 -1
- package/src/funcs/feedbackCreateEvaluation.ts +0 -173
- package/src/funcs/feedbackRemoveEvaluation.ts +0 -173
- package/src/models/operations/postv2feedbackevaluation.ts +0 -453
- package/src/models/operations/postv2feedbackevaluationremove.ts +0 -43
|
@@ -1,453 +0,0 @@
|
|
|
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 { ClosedEnum } from "../../types/enums.js";
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* The type of evaluation
|
|
11
|
-
*/
|
|
12
|
-
export const PostV2FeedbackEvaluationRequestBodyFeedbackEvaluationType = {
|
|
13
|
-
HumanReview: "human_review",
|
|
14
|
-
} as const;
|
|
15
|
-
/**
|
|
16
|
-
* The type of evaluation
|
|
17
|
-
*/
|
|
18
|
-
export type PostV2FeedbackEvaluationRequestBodyFeedbackEvaluationType =
|
|
19
|
-
ClosedEnum<typeof PostV2FeedbackEvaluationRequestBodyFeedbackEvaluationType>;
|
|
20
|
-
|
|
21
|
-
export const PostV2FeedbackEvaluationRequestBodyFeedbackRequestSource = {
|
|
22
|
-
Orq: "orq",
|
|
23
|
-
External: "external",
|
|
24
|
-
} as const;
|
|
25
|
-
export type PostV2FeedbackEvaluationRequestBodyFeedbackRequestSource =
|
|
26
|
-
ClosedEnum<typeof PostV2FeedbackEvaluationRequestBodyFeedbackRequestSource>;
|
|
27
|
-
|
|
28
|
-
export type RequestBody4 = {
|
|
29
|
-
/**
|
|
30
|
-
* The unique identifier of the human evaluation
|
|
31
|
-
*/
|
|
32
|
-
id: string;
|
|
33
|
-
/**
|
|
34
|
-
* The type of evaluation
|
|
35
|
-
*/
|
|
36
|
-
evaluationType: PostV2FeedbackEvaluationRequestBodyFeedbackEvaluationType;
|
|
37
|
-
/**
|
|
38
|
-
* The unique identifier of the human review. Omitted on corrections, which inherit the parent evaluator output schema.
|
|
39
|
-
*/
|
|
40
|
-
humanReviewId?: string | undefined;
|
|
41
|
-
source?: PostV2FeedbackEvaluationRequestBodyFeedbackRequestSource | undefined;
|
|
42
|
-
/**
|
|
43
|
-
* Optional free-text explanation of the value
|
|
44
|
-
*/
|
|
45
|
-
explanation?: string | undefined;
|
|
46
|
-
/**
|
|
47
|
-
* Deprecated. The date and time the item was reviewed
|
|
48
|
-
*
|
|
49
|
-
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
50
|
-
*/
|
|
51
|
-
reviewedAt?: Date | undefined;
|
|
52
|
-
type: "string_array";
|
|
53
|
-
values: Array<string>;
|
|
54
|
-
traceId: string;
|
|
55
|
-
};
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* The type of evaluation
|
|
59
|
-
*/
|
|
60
|
-
export const PostV2FeedbackEvaluationRequestBodyEvaluationType = {
|
|
61
|
-
HumanReview: "human_review",
|
|
62
|
-
} as const;
|
|
63
|
-
/**
|
|
64
|
-
* The type of evaluation
|
|
65
|
-
*/
|
|
66
|
-
export type PostV2FeedbackEvaluationRequestBodyEvaluationType = ClosedEnum<
|
|
67
|
-
typeof PostV2FeedbackEvaluationRequestBodyEvaluationType
|
|
68
|
-
>;
|
|
69
|
-
|
|
70
|
-
export const PostV2FeedbackEvaluationRequestBodyFeedbackSource = {
|
|
71
|
-
Orq: "orq",
|
|
72
|
-
External: "external",
|
|
73
|
-
} as const;
|
|
74
|
-
export type PostV2FeedbackEvaluationRequestBodyFeedbackSource = ClosedEnum<
|
|
75
|
-
typeof PostV2FeedbackEvaluationRequestBodyFeedbackSource
|
|
76
|
-
>;
|
|
77
|
-
|
|
78
|
-
export type Three = {
|
|
79
|
-
/**
|
|
80
|
-
* The unique identifier of the human evaluation
|
|
81
|
-
*/
|
|
82
|
-
id: string;
|
|
83
|
-
/**
|
|
84
|
-
* The type of evaluation
|
|
85
|
-
*/
|
|
86
|
-
evaluationType: PostV2FeedbackEvaluationRequestBodyEvaluationType;
|
|
87
|
-
/**
|
|
88
|
-
* The unique identifier of the human review. Omitted on corrections, which inherit the parent evaluator output schema.
|
|
89
|
-
*/
|
|
90
|
-
humanReviewId?: string | undefined;
|
|
91
|
-
source?: PostV2FeedbackEvaluationRequestBodyFeedbackSource | undefined;
|
|
92
|
-
/**
|
|
93
|
-
* Optional free-text explanation of the value
|
|
94
|
-
*/
|
|
95
|
-
explanation?: string | undefined;
|
|
96
|
-
/**
|
|
97
|
-
* Deprecated. The date and time the item was reviewed
|
|
98
|
-
*
|
|
99
|
-
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
100
|
-
*/
|
|
101
|
-
reviewedAt?: Date | undefined;
|
|
102
|
-
type: "boolean";
|
|
103
|
-
value: boolean;
|
|
104
|
-
traceId: string;
|
|
105
|
-
};
|
|
106
|
-
|
|
107
|
-
/**
|
|
108
|
-
* The type of evaluation
|
|
109
|
-
*/
|
|
110
|
-
export const RequestBodyEvaluationType = {
|
|
111
|
-
HumanReview: "human_review",
|
|
112
|
-
} as const;
|
|
113
|
-
/**
|
|
114
|
-
* The type of evaluation
|
|
115
|
-
*/
|
|
116
|
-
export type RequestBodyEvaluationType = ClosedEnum<
|
|
117
|
-
typeof RequestBodyEvaluationType
|
|
118
|
-
>;
|
|
119
|
-
|
|
120
|
-
export const PostV2FeedbackEvaluationRequestBodySource = {
|
|
121
|
-
Orq: "orq",
|
|
122
|
-
External: "external",
|
|
123
|
-
} as const;
|
|
124
|
-
export type PostV2FeedbackEvaluationRequestBodySource = ClosedEnum<
|
|
125
|
-
typeof PostV2FeedbackEvaluationRequestBodySource
|
|
126
|
-
>;
|
|
127
|
-
|
|
128
|
-
export type RequestBody2 = {
|
|
129
|
-
/**
|
|
130
|
-
* The unique identifier of the human evaluation
|
|
131
|
-
*/
|
|
132
|
-
id: string;
|
|
133
|
-
/**
|
|
134
|
-
* The type of evaluation
|
|
135
|
-
*/
|
|
136
|
-
evaluationType: RequestBodyEvaluationType;
|
|
137
|
-
/**
|
|
138
|
-
* The unique identifier of the human review. Omitted on corrections, which inherit the parent evaluator output schema.
|
|
139
|
-
*/
|
|
140
|
-
humanReviewId?: string | undefined;
|
|
141
|
-
source?: PostV2FeedbackEvaluationRequestBodySource | undefined;
|
|
142
|
-
/**
|
|
143
|
-
* Optional free-text explanation of the value
|
|
144
|
-
*/
|
|
145
|
-
explanation?: string | undefined;
|
|
146
|
-
/**
|
|
147
|
-
* Deprecated. The date and time the item was reviewed
|
|
148
|
-
*
|
|
149
|
-
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
150
|
-
*/
|
|
151
|
-
reviewedAt?: Date | undefined;
|
|
152
|
-
type: "number";
|
|
153
|
-
value: number;
|
|
154
|
-
traceId: string;
|
|
155
|
-
};
|
|
156
|
-
|
|
157
|
-
/**
|
|
158
|
-
* The type of evaluation
|
|
159
|
-
*/
|
|
160
|
-
export const EvaluationType = {
|
|
161
|
-
HumanReview: "human_review",
|
|
162
|
-
} as const;
|
|
163
|
-
/**
|
|
164
|
-
* The type of evaluation
|
|
165
|
-
*/
|
|
166
|
-
export type EvaluationType = ClosedEnum<typeof EvaluationType>;
|
|
167
|
-
|
|
168
|
-
export const RequestBodySource = {
|
|
169
|
-
Orq: "orq",
|
|
170
|
-
External: "external",
|
|
171
|
-
} as const;
|
|
172
|
-
export type RequestBodySource = ClosedEnum<typeof RequestBodySource>;
|
|
173
|
-
|
|
174
|
-
export type RequestBody1 = {
|
|
175
|
-
/**
|
|
176
|
-
* The unique identifier of the human evaluation
|
|
177
|
-
*/
|
|
178
|
-
id: string;
|
|
179
|
-
/**
|
|
180
|
-
* The type of evaluation
|
|
181
|
-
*/
|
|
182
|
-
evaluationType: EvaluationType;
|
|
183
|
-
/**
|
|
184
|
-
* The unique identifier of the human review. Omitted on corrections, which inherit the parent evaluator output schema.
|
|
185
|
-
*/
|
|
186
|
-
humanReviewId?: string | undefined;
|
|
187
|
-
source?: RequestBodySource | undefined;
|
|
188
|
-
/**
|
|
189
|
-
* Optional free-text explanation of the value
|
|
190
|
-
*/
|
|
191
|
-
explanation?: string | undefined;
|
|
192
|
-
/**
|
|
193
|
-
* Deprecated. The date and time the item was reviewed
|
|
194
|
-
*
|
|
195
|
-
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
196
|
-
*/
|
|
197
|
-
reviewedAt?: Date | undefined;
|
|
198
|
-
type: "string";
|
|
199
|
-
value: string;
|
|
200
|
-
traceId: string;
|
|
201
|
-
};
|
|
202
|
-
|
|
203
|
-
export type PostV2FeedbackEvaluationRequestBody =
|
|
204
|
-
| RequestBody1
|
|
205
|
-
| RequestBody2
|
|
206
|
-
| Three
|
|
207
|
-
| RequestBody4;
|
|
208
|
-
|
|
209
|
-
/** @internal */
|
|
210
|
-
export const PostV2FeedbackEvaluationRequestBodyFeedbackEvaluationType$outboundSchema:
|
|
211
|
-
z.ZodNativeEnum<
|
|
212
|
-
typeof PostV2FeedbackEvaluationRequestBodyFeedbackEvaluationType
|
|
213
|
-
> = z.nativeEnum(PostV2FeedbackEvaluationRequestBodyFeedbackEvaluationType);
|
|
214
|
-
|
|
215
|
-
/** @internal */
|
|
216
|
-
export const PostV2FeedbackEvaluationRequestBodyFeedbackRequestSource$outboundSchema:
|
|
217
|
-
z.ZodNativeEnum<
|
|
218
|
-
typeof PostV2FeedbackEvaluationRequestBodyFeedbackRequestSource
|
|
219
|
-
> = z.nativeEnum(PostV2FeedbackEvaluationRequestBodyFeedbackRequestSource);
|
|
220
|
-
|
|
221
|
-
/** @internal */
|
|
222
|
-
export type RequestBody4$Outbound = {
|
|
223
|
-
id: string;
|
|
224
|
-
evaluation_type: string;
|
|
225
|
-
human_review_id?: string | undefined;
|
|
226
|
-
source: string;
|
|
227
|
-
explanation?: string | undefined;
|
|
228
|
-
reviewed_at: string;
|
|
229
|
-
type: "string_array";
|
|
230
|
-
values: Array<string>;
|
|
231
|
-
trace_id: string;
|
|
232
|
-
};
|
|
233
|
-
|
|
234
|
-
/** @internal */
|
|
235
|
-
export const RequestBody4$outboundSchema: z.ZodType<
|
|
236
|
-
RequestBody4$Outbound,
|
|
237
|
-
z.ZodTypeDef,
|
|
238
|
-
RequestBody4
|
|
239
|
-
> = z.object({
|
|
240
|
-
id: z.string(),
|
|
241
|
-
evaluationType:
|
|
242
|
-
PostV2FeedbackEvaluationRequestBodyFeedbackEvaluationType$outboundSchema,
|
|
243
|
-
humanReviewId: z.string().optional(),
|
|
244
|
-
source:
|
|
245
|
-
PostV2FeedbackEvaluationRequestBodyFeedbackRequestSource$outboundSchema
|
|
246
|
-
.default("orq"),
|
|
247
|
-
explanation: z.string().optional(),
|
|
248
|
-
reviewedAt: z.date().default(() => new Date("2026-10-19T23:53:34.587Z"))
|
|
249
|
-
.transform(v => v.toISOString()),
|
|
250
|
-
type: z.literal("string_array"),
|
|
251
|
-
values: z.array(z.string()),
|
|
252
|
-
traceId: z.string(),
|
|
253
|
-
}).transform((v) => {
|
|
254
|
-
return remap$(v, {
|
|
255
|
-
evaluationType: "evaluation_type",
|
|
256
|
-
humanReviewId: "human_review_id",
|
|
257
|
-
reviewedAt: "reviewed_at",
|
|
258
|
-
traceId: "trace_id",
|
|
259
|
-
});
|
|
260
|
-
});
|
|
261
|
-
|
|
262
|
-
export function requestBody4ToJSON(requestBody4: RequestBody4): string {
|
|
263
|
-
return JSON.stringify(RequestBody4$outboundSchema.parse(requestBody4));
|
|
264
|
-
}
|
|
265
|
-
|
|
266
|
-
/** @internal */
|
|
267
|
-
export const PostV2FeedbackEvaluationRequestBodyEvaluationType$outboundSchema:
|
|
268
|
-
z.ZodNativeEnum<typeof PostV2FeedbackEvaluationRequestBodyEvaluationType> = z
|
|
269
|
-
.nativeEnum(PostV2FeedbackEvaluationRequestBodyEvaluationType);
|
|
270
|
-
|
|
271
|
-
/** @internal */
|
|
272
|
-
export const PostV2FeedbackEvaluationRequestBodyFeedbackSource$outboundSchema:
|
|
273
|
-
z.ZodNativeEnum<typeof PostV2FeedbackEvaluationRequestBodyFeedbackSource> = z
|
|
274
|
-
.nativeEnum(PostV2FeedbackEvaluationRequestBodyFeedbackSource);
|
|
275
|
-
|
|
276
|
-
/** @internal */
|
|
277
|
-
export type Three$Outbound = {
|
|
278
|
-
id: string;
|
|
279
|
-
evaluation_type: string;
|
|
280
|
-
human_review_id?: string | undefined;
|
|
281
|
-
source: string;
|
|
282
|
-
explanation?: string | undefined;
|
|
283
|
-
reviewed_at: string;
|
|
284
|
-
type: "boolean";
|
|
285
|
-
value: boolean;
|
|
286
|
-
trace_id: string;
|
|
287
|
-
};
|
|
288
|
-
|
|
289
|
-
/** @internal */
|
|
290
|
-
export const Three$outboundSchema: z.ZodType<
|
|
291
|
-
Three$Outbound,
|
|
292
|
-
z.ZodTypeDef,
|
|
293
|
-
Three
|
|
294
|
-
> = z.object({
|
|
295
|
-
id: z.string(),
|
|
296
|
-
evaluationType:
|
|
297
|
-
PostV2FeedbackEvaluationRequestBodyEvaluationType$outboundSchema,
|
|
298
|
-
humanReviewId: z.string().optional(),
|
|
299
|
-
source: PostV2FeedbackEvaluationRequestBodyFeedbackSource$outboundSchema
|
|
300
|
-
.default("orq"),
|
|
301
|
-
explanation: z.string().optional(),
|
|
302
|
-
reviewedAt: z.date().default(() => new Date("2026-10-19T23:53:34.587Z"))
|
|
303
|
-
.transform(v => v.toISOString()),
|
|
304
|
-
type: z.literal("boolean"),
|
|
305
|
-
value: z.boolean(),
|
|
306
|
-
traceId: z.string(),
|
|
307
|
-
}).transform((v) => {
|
|
308
|
-
return remap$(v, {
|
|
309
|
-
evaluationType: "evaluation_type",
|
|
310
|
-
humanReviewId: "human_review_id",
|
|
311
|
-
reviewedAt: "reviewed_at",
|
|
312
|
-
traceId: "trace_id",
|
|
313
|
-
});
|
|
314
|
-
});
|
|
315
|
-
|
|
316
|
-
export function threeToJSON(three: Three): string {
|
|
317
|
-
return JSON.stringify(Three$outboundSchema.parse(three));
|
|
318
|
-
}
|
|
319
|
-
|
|
320
|
-
/** @internal */
|
|
321
|
-
export const RequestBodyEvaluationType$outboundSchema: z.ZodNativeEnum<
|
|
322
|
-
typeof RequestBodyEvaluationType
|
|
323
|
-
> = z.nativeEnum(RequestBodyEvaluationType);
|
|
324
|
-
|
|
325
|
-
/** @internal */
|
|
326
|
-
export const PostV2FeedbackEvaluationRequestBodySource$outboundSchema:
|
|
327
|
-
z.ZodNativeEnum<typeof PostV2FeedbackEvaluationRequestBodySource> = z
|
|
328
|
-
.nativeEnum(PostV2FeedbackEvaluationRequestBodySource);
|
|
329
|
-
|
|
330
|
-
/** @internal */
|
|
331
|
-
export type RequestBody2$Outbound = {
|
|
332
|
-
id: string;
|
|
333
|
-
evaluation_type: string;
|
|
334
|
-
human_review_id?: string | undefined;
|
|
335
|
-
source: string;
|
|
336
|
-
explanation?: string | undefined;
|
|
337
|
-
reviewed_at: string;
|
|
338
|
-
type: "number";
|
|
339
|
-
value: number;
|
|
340
|
-
trace_id: string;
|
|
341
|
-
};
|
|
342
|
-
|
|
343
|
-
/** @internal */
|
|
344
|
-
export const RequestBody2$outboundSchema: z.ZodType<
|
|
345
|
-
RequestBody2$Outbound,
|
|
346
|
-
z.ZodTypeDef,
|
|
347
|
-
RequestBody2
|
|
348
|
-
> = z.object({
|
|
349
|
-
id: z.string(),
|
|
350
|
-
evaluationType: RequestBodyEvaluationType$outboundSchema,
|
|
351
|
-
humanReviewId: z.string().optional(),
|
|
352
|
-
source: PostV2FeedbackEvaluationRequestBodySource$outboundSchema.default(
|
|
353
|
-
"orq",
|
|
354
|
-
),
|
|
355
|
-
explanation: z.string().optional(),
|
|
356
|
-
reviewedAt: z.date().default(() => new Date("2026-10-19T23:53:34.586Z"))
|
|
357
|
-
.transform(v => v.toISOString()),
|
|
358
|
-
type: z.literal("number"),
|
|
359
|
-
value: z.number(),
|
|
360
|
-
traceId: z.string(),
|
|
361
|
-
}).transform((v) => {
|
|
362
|
-
return remap$(v, {
|
|
363
|
-
evaluationType: "evaluation_type",
|
|
364
|
-
humanReviewId: "human_review_id",
|
|
365
|
-
reviewedAt: "reviewed_at",
|
|
366
|
-
traceId: "trace_id",
|
|
367
|
-
});
|
|
368
|
-
});
|
|
369
|
-
|
|
370
|
-
export function requestBody2ToJSON(requestBody2: RequestBody2): string {
|
|
371
|
-
return JSON.stringify(RequestBody2$outboundSchema.parse(requestBody2));
|
|
372
|
-
}
|
|
373
|
-
|
|
374
|
-
/** @internal */
|
|
375
|
-
export const EvaluationType$outboundSchema: z.ZodNativeEnum<
|
|
376
|
-
typeof EvaluationType
|
|
377
|
-
> = z.nativeEnum(EvaluationType);
|
|
378
|
-
|
|
379
|
-
/** @internal */
|
|
380
|
-
export const RequestBodySource$outboundSchema: z.ZodNativeEnum<
|
|
381
|
-
typeof RequestBodySource
|
|
382
|
-
> = z.nativeEnum(RequestBodySource);
|
|
383
|
-
|
|
384
|
-
/** @internal */
|
|
385
|
-
export type RequestBody1$Outbound = {
|
|
386
|
-
id: string;
|
|
387
|
-
evaluation_type: string;
|
|
388
|
-
human_review_id?: string | undefined;
|
|
389
|
-
source: string;
|
|
390
|
-
explanation?: string | undefined;
|
|
391
|
-
reviewed_at: string;
|
|
392
|
-
type: "string";
|
|
393
|
-
value: string;
|
|
394
|
-
trace_id: string;
|
|
395
|
-
};
|
|
396
|
-
|
|
397
|
-
/** @internal */
|
|
398
|
-
export const RequestBody1$outboundSchema: z.ZodType<
|
|
399
|
-
RequestBody1$Outbound,
|
|
400
|
-
z.ZodTypeDef,
|
|
401
|
-
RequestBody1
|
|
402
|
-
> = z.object({
|
|
403
|
-
id: z.string(),
|
|
404
|
-
evaluationType: EvaluationType$outboundSchema,
|
|
405
|
-
humanReviewId: z.string().optional(),
|
|
406
|
-
source: RequestBodySource$outboundSchema.default("orq"),
|
|
407
|
-
explanation: z.string().optional(),
|
|
408
|
-
reviewedAt: z.date().default(() => new Date("2026-10-19T23:53:34.586Z"))
|
|
409
|
-
.transform(v => v.toISOString()),
|
|
410
|
-
type: z.literal("string"),
|
|
411
|
-
value: z.string(),
|
|
412
|
-
traceId: z.string(),
|
|
413
|
-
}).transform((v) => {
|
|
414
|
-
return remap$(v, {
|
|
415
|
-
evaluationType: "evaluation_type",
|
|
416
|
-
humanReviewId: "human_review_id",
|
|
417
|
-
reviewedAt: "reviewed_at",
|
|
418
|
-
traceId: "trace_id",
|
|
419
|
-
});
|
|
420
|
-
});
|
|
421
|
-
|
|
422
|
-
export function requestBody1ToJSON(requestBody1: RequestBody1): string {
|
|
423
|
-
return JSON.stringify(RequestBody1$outboundSchema.parse(requestBody1));
|
|
424
|
-
}
|
|
425
|
-
|
|
426
|
-
/** @internal */
|
|
427
|
-
export type PostV2FeedbackEvaluationRequestBody$Outbound =
|
|
428
|
-
| RequestBody1$Outbound
|
|
429
|
-
| RequestBody2$Outbound
|
|
430
|
-
| Three$Outbound
|
|
431
|
-
| RequestBody4$Outbound;
|
|
432
|
-
|
|
433
|
-
/** @internal */
|
|
434
|
-
export const PostV2FeedbackEvaluationRequestBody$outboundSchema: z.ZodType<
|
|
435
|
-
PostV2FeedbackEvaluationRequestBody$Outbound,
|
|
436
|
-
z.ZodTypeDef,
|
|
437
|
-
PostV2FeedbackEvaluationRequestBody
|
|
438
|
-
> = z.union([
|
|
439
|
-
z.lazy(() => RequestBody1$outboundSchema),
|
|
440
|
-
z.lazy(() => RequestBody2$outboundSchema),
|
|
441
|
-
z.lazy(() => Three$outboundSchema),
|
|
442
|
-
z.lazy(() => RequestBody4$outboundSchema),
|
|
443
|
-
]);
|
|
444
|
-
|
|
445
|
-
export function postV2FeedbackEvaluationRequestBodyToJSON(
|
|
446
|
-
postV2FeedbackEvaluationRequestBody: PostV2FeedbackEvaluationRequestBody,
|
|
447
|
-
): string {
|
|
448
|
-
return JSON.stringify(
|
|
449
|
-
PostV2FeedbackEvaluationRequestBody$outboundSchema.parse(
|
|
450
|
-
postV2FeedbackEvaluationRequestBody,
|
|
451
|
-
),
|
|
452
|
-
);
|
|
453
|
-
}
|
|
@@ -1,43 +0,0 @@
|
|
|
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 PostV2FeedbackEvaluationRemoveRequestBody = {
|
|
9
|
-
id: string;
|
|
10
|
-
traceId: string;
|
|
11
|
-
};
|
|
12
|
-
|
|
13
|
-
/** @internal */
|
|
14
|
-
export type PostV2FeedbackEvaluationRemoveRequestBody$Outbound = {
|
|
15
|
-
id: string;
|
|
16
|
-
trace_id: string;
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
/** @internal */
|
|
20
|
-
export const PostV2FeedbackEvaluationRemoveRequestBody$outboundSchema:
|
|
21
|
-
z.ZodType<
|
|
22
|
-
PostV2FeedbackEvaluationRemoveRequestBody$Outbound,
|
|
23
|
-
z.ZodTypeDef,
|
|
24
|
-
PostV2FeedbackEvaluationRemoveRequestBody
|
|
25
|
-
> = z.object({
|
|
26
|
-
id: z.string(),
|
|
27
|
-
traceId: z.string(),
|
|
28
|
-
}).transform((v) => {
|
|
29
|
-
return remap$(v, {
|
|
30
|
-
traceId: "trace_id",
|
|
31
|
-
});
|
|
32
|
-
});
|
|
33
|
-
|
|
34
|
-
export function postV2FeedbackEvaluationRemoveRequestBodyToJSON(
|
|
35
|
-
postV2FeedbackEvaluationRemoveRequestBody:
|
|
36
|
-
PostV2FeedbackEvaluationRemoveRequestBody,
|
|
37
|
-
): string {
|
|
38
|
-
return JSON.stringify(
|
|
39
|
-
PostV2FeedbackEvaluationRemoveRequestBody$outboundSchema.parse(
|
|
40
|
-
postV2FeedbackEvaluationRemoveRequestBody,
|
|
41
|
-
),
|
|
42
|
-
);
|
|
43
|
-
}
|