@orq-ai/node 4.8.0-rc.16 → 4.8.0-rc.18
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/FUNCTIONS.md +4 -4
- package/README.md +54 -79
- package/examples/{postV2Feedback.example.ts → postV2FeedbackEvaluationRemove.example.ts} +2 -4
- package/funcs/{evaluatorsGetV2EvaluatorsIdVersions.d.ts → evalsGetV2EvaluatorsIdVersions.d.ts} +2 -2
- package/funcs/evalsGetV2EvaluatorsIdVersions.d.ts.map +1 -0
- package/funcs/{evaluatorsGetV2EvaluatorsIdVersions.js → evalsGetV2EvaluatorsIdVersions.js} +3 -3
- package/funcs/evalsGetV2EvaluatorsIdVersions.js.map +1 -0
- package/funcs/{getV2HumanEvals.d.ts → feedbackPostV2Feedback.d.ts} +2 -2
- package/funcs/feedbackPostV2Feedback.d.ts.map +1 -0
- package/funcs/{postV2Feedback.js → feedbackPostV2Feedback.js} +4 -4
- package/funcs/feedbackPostV2Feedback.js.map +1 -0
- package/funcs/{deleteV2HumanEvalsId.d.ts → feedbackPostV2FeedbackRemove.d.ts} +2 -2
- package/funcs/feedbackPostV2FeedbackRemove.d.ts.map +1 -0
- package/funcs/{postV2FeedbackRemove.js → feedbackPostV2FeedbackRemove.js} +3 -3
- package/funcs/feedbackPostV2FeedbackRemove.js.map +1 -0
- package/funcs/{guardrailRulesGet.d.ts → guardrailRulesRetrieve.d.ts} +2 -2
- package/funcs/guardrailRulesRetrieve.d.ts.map +1 -0
- package/funcs/{guardrailRulesGet.js → guardrailRulesRetrieve.js} +3 -3
- package/funcs/guardrailRulesRetrieve.js.map +1 -0
- package/funcs/knowledgeCreateChunks.d.ts +1 -1
- package/funcs/knowledgeCreateChunks.d.ts.map +1 -1
- package/funcs/knowledgeCreateChunks.js +1 -1
- package/funcs/knowledgeCreateChunks.js.map +1 -1
- package/funcs/{patchV2HumanEvalsId.d.ts → policiesRetrieve.d.ts} +8 -3
- package/funcs/policiesRetrieve.d.ts.map +1 -0
- package/funcs/{policiesGet.js → policiesRetrieve.js} +3 -3
- package/funcs/policiesRetrieve.js.map +1 -0
- package/funcs/{routingRulesGet.d.ts → routingRulesRetrieve.d.ts} +2 -2
- package/funcs/routingRulesRetrieve.d.ts.map +1 -0
- package/funcs/{routingRulesGet.js → routingRulesRetrieve.js} +3 -3
- package/funcs/{guardrailRulesGet.js.map → routingRulesRetrieve.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/errors/index.d.ts +0 -5
- package/models/errors/index.d.ts.map +1 -1
- package/models/errors/index.js +0 -5
- package/models/errors/index.js.map +1 -1
- package/models/errors/postv2feedback.d.ts +5 -5
- package/models/errors/postv2feedback.js +6 -6
- package/models/operations/createchunk.d.ts +3 -3
- package/models/operations/createchunk.d.ts.map +1 -1
- package/models/operations/createchunk.js +5 -5
- package/models/operations/createchunk.js.map +1 -1
- package/models/operations/createcontact.js +1 -1
- package/models/operations/createdataset.js +1 -1
- package/models/operations/createdatasetitem.js +4 -4
- package/models/operations/createdatasource.js +1 -1
- package/models/operations/createeval.d.ts +9 -9
- package/models/operations/createeval.d.ts.map +1 -1
- package/models/operations/createeval.js +29 -28
- package/models/operations/createeval.js.map +1 -1
- package/models/operations/createidentity.js +1 -1
- package/models/operations/createknowledge.d.ts +7 -7
- package/models/operations/createknowledge.d.ts.map +1 -1
- package/models/operations/createknowledge.js +11 -11
- package/models/operations/createknowledge.js.map +1 -1
- package/models/operations/createresponse.d.ts +5 -5
- package/models/operations/createresponse.d.ts.map +1 -1
- package/models/operations/createresponse.js +8 -7
- package/models/operations/createresponse.js.map +1 -1
- package/models/operations/createtool.js +6 -6
- package/models/operations/getalltools.js +6 -6
- package/models/operations/getevals.js +16 -16
- package/models/operations/getv2humanevalsets.js +2 -2
- package/models/operations/getv2humanevalsetsid.js +2 -2
- package/models/operations/index.d.ts +0 -5
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +0 -5
- package/models/operations/index.js.map +1 -1
- package/models/operations/listdatasetdatapoints.js +4 -4
- package/models/operations/listdatasets.js +1 -1
- package/models/operations/listdatasources.js +1 -1
- package/models/operations/listidentities.js +1 -1
- package/models/operations/patchv2humanevalsetsid.js +2 -2
- package/models/operations/postv2feedbackevaluation.js +3 -3
- package/models/operations/postv2feedbackremove.d.ts +4 -4
- package/models/operations/postv2feedbackremove.js +4 -4
- package/models/operations/postv2humanevalsets.js +2 -2
- package/models/operations/retrievedatapoint.js +4 -4
- package/models/operations/retrievedataset.js +1 -1
- package/models/operations/retrievedatasource.js +1 -1
- package/models/operations/retrieveidentity.js +1 -1
- package/models/operations/retrievetool.js +6 -6
- package/models/operations/runagent.js +1 -1
- package/models/operations/streamrunagent.js +1 -1
- package/models/operations/updatedatapoint.js +4 -4
- package/models/operations/updatedataset.js +1 -1
- package/models/operations/updatedatasource.js +1 -1
- package/models/operations/updateeval.js +16 -16
- package/models/operations/updateidentity.js +1 -1
- package/models/operations/updatetool.js +7 -7
- package/package.json +1 -1
- package/sdk/evals.d.ts +7 -0
- package/sdk/evals.d.ts.map +1 -1
- package/sdk/evals.js +10 -0
- package/sdk/evals.js.map +1 -1
- package/sdk/feedback.d.ts +7 -0
- package/sdk/feedback.d.ts.map +1 -0
- package/sdk/feedback.js +20 -0
- package/sdk/feedback.js.map +1 -0
- package/sdk/guardrailrules.d.ts +1 -1
- package/sdk/guardrailrules.d.ts.map +1 -1
- package/sdk/guardrailrules.js +3 -3
- package/sdk/guardrailrules.js.map +1 -1
- package/sdk/knowledge.d.ts +1 -1
- package/sdk/knowledge.d.ts.map +1 -1
- package/sdk/policies.d.ts +1 -1
- package/sdk/policies.d.ts.map +1 -1
- package/sdk/policies.js +3 -3
- package/sdk/policies.js.map +1 -1
- package/sdk/routingrules.d.ts +1 -1
- package/sdk/routingrules.d.ts.map +1 -1
- package/sdk/routingrules.js +3 -3
- package/sdk/routingrules.js.map +1 -1
- package/sdk/sdk.d.ts +3 -10
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +4 -32
- package/sdk/sdk.js.map +1 -1
- package/src/funcs/{evaluatorsGetV2EvaluatorsIdVersions.ts → evalsGetV2EvaluatorsIdVersions.ts} +1 -1
- package/src/funcs/{postV2Feedback.ts → feedbackPostV2Feedback.ts} +5 -5
- package/src/funcs/{postV2FeedbackRemove.ts → feedbackPostV2FeedbackRemove.ts} +1 -1
- package/src/funcs/{guardrailRulesGet.ts → guardrailRulesRetrieve.ts} +1 -1
- package/src/funcs/knowledgeCreateChunks.ts +4 -4
- package/src/funcs/{policiesGet.ts → policiesRetrieve.ts} +1 -1
- package/src/funcs/{routingRulesGet.ts → routingRulesRetrieve.ts} +1 -1
- package/src/lib/config.ts +2 -2
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/errors/index.ts +0 -5
- package/src/models/errors/postv2feedback.ts +8 -8
- package/src/models/operations/createchunk.ts +7 -7
- package/src/models/operations/createcontact.ts +1 -1
- package/src/models/operations/createdataset.ts +1 -1
- package/src/models/operations/createdatasetitem.ts +4 -4
- package/src/models/operations/createdatasource.ts +1 -1
- package/src/models/operations/createeval.ts +36 -42
- package/src/models/operations/createidentity.ts +1 -1
- package/src/models/operations/createknowledge.ts +17 -19
- package/src/models/operations/createresponse.ts +11 -11
- package/src/models/operations/createtool.ts +6 -6
- package/src/models/operations/getalltools.ts +6 -6
- package/src/models/operations/getevals.ts +16 -16
- package/src/models/operations/getv2humanevalsets.ts +2 -2
- package/src/models/operations/getv2humanevalsetsid.ts +2 -2
- package/src/models/operations/index.ts +0 -5
- package/src/models/operations/listdatasetdatapoints.ts +4 -4
- package/src/models/operations/listdatasets.ts +1 -1
- package/src/models/operations/listdatasources.ts +1 -1
- package/src/models/operations/listidentities.ts +1 -1
- package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
- package/src/models/operations/postv2feedbackevaluation.ts +3 -3
- package/src/models/operations/postv2feedbackremove.ts +8 -8
- package/src/models/operations/postv2humanevalsets.ts +2 -2
- package/src/models/operations/retrievedatapoint.ts +4 -4
- package/src/models/operations/retrievedataset.ts +1 -1
- package/src/models/operations/retrievedatasource.ts +1 -1
- package/src/models/operations/retrieveidentity.ts +1 -1
- package/src/models/operations/retrievetool.ts +6 -6
- package/src/models/operations/runagent.ts +1 -1
- package/src/models/operations/streamrunagent.ts +1 -1
- package/src/models/operations/updatedatapoint.ts +4 -4
- package/src/models/operations/updatedataset.ts +1 -1
- package/src/models/operations/updatedatasource.ts +1 -1
- package/src/models/operations/updateeval.ts +16 -16
- package/src/models/operations/updateidentity.ts +1 -1
- package/src/models/operations/updatetool.ts +7 -7
- package/src/sdk/evals.ts +18 -0
- package/src/sdk/feedback.ts +33 -0
- package/src/sdk/guardrailrules.ts +3 -3
- package/src/sdk/knowledge.ts +1 -1
- package/src/sdk/policies.ts +3 -3
- package/src/sdk/routingrules.ts +3 -3
- package/src/sdk/sdk.ts +6 -90
- package/funcs/deleteV2HumanEvalsId.d.ts.map +0 -1
- package/funcs/deleteV2HumanEvalsId.js +0 -117
- package/funcs/deleteV2HumanEvalsId.js.map +0 -1
- package/funcs/evaluatorsGetV2EvaluatorsIdVersions.d.ts.map +0 -1
- package/funcs/evaluatorsGetV2EvaluatorsIdVersions.js.map +0 -1
- package/funcs/getV2HumanEvals.d.ts.map +0 -1
- package/funcs/getV2HumanEvals.js +0 -116
- package/funcs/getV2HumanEvals.js.map +0 -1
- package/funcs/getV2HumanEvalsId.d.ts +0 -12
- package/funcs/getV2HumanEvalsId.d.ts.map +0 -1
- package/funcs/getV2HumanEvalsId.js +0 -117
- package/funcs/getV2HumanEvalsId.js.map +0 -1
- package/funcs/guardrailRulesGet.d.ts.map +0 -1
- package/funcs/patchV2HumanEvalsId.d.ts.map +0 -1
- package/funcs/patchV2HumanEvalsId.js +0 -118
- package/funcs/patchV2HumanEvalsId.js.map +0 -1
- package/funcs/policiesGet.d.ts +0 -17
- package/funcs/policiesGet.d.ts.map +0 -1
- package/funcs/policiesGet.js.map +0 -1
- package/funcs/postV2Feedback.d.ts +0 -12
- package/funcs/postV2Feedback.d.ts.map +0 -1
- package/funcs/postV2Feedback.js.map +0 -1
- package/funcs/postV2FeedbackRemove.d.ts +0 -12
- package/funcs/postV2FeedbackRemove.d.ts.map +0 -1
- package/funcs/postV2FeedbackRemove.js.map +0 -1
- package/funcs/postV2HumanEvals.d.ts +0 -12
- package/funcs/postV2HumanEvals.d.ts.map +0 -1
- package/funcs/postV2HumanEvals.js +0 -114
- package/funcs/postV2HumanEvals.js.map +0 -1
- package/funcs/routingRulesGet.d.ts.map +0 -1
- package/funcs/routingRulesGet.js.map +0 -1
- package/models/errors/deletev2humanevalsid.d.ts +0 -23
- package/models/errors/deletev2humanevalsid.d.ts.map +0 -1
- package/models/errors/deletev2humanevalsid.js +0 -68
- package/models/errors/deletev2humanevalsid.js.map +0 -1
- package/models/errors/getv2humanevals.d.ts +0 -23
- package/models/errors/getv2humanevals.d.ts.map +0 -1
- package/models/errors/getv2humanevals.js +0 -68
- package/models/errors/getv2humanevals.js.map +0 -1
- package/models/errors/getv2humanevalsid.d.ts +0 -23
- package/models/errors/getv2humanevalsid.d.ts.map +0 -1
- package/models/errors/getv2humanevalsid.js +0 -68
- package/models/errors/getv2humanevalsid.js.map +0 -1
- package/models/errors/patchv2humanevalsid.d.ts +0 -23
- package/models/errors/patchv2humanevalsid.d.ts.map +0 -1
- package/models/errors/patchv2humanevalsid.js +0 -68
- package/models/errors/patchv2humanevalsid.js.map +0 -1
- package/models/errors/postv2humanevals.d.ts +0 -23
- package/models/errors/postv2humanevals.d.ts.map +0 -1
- package/models/errors/postv2humanevals.js +0 -68
- package/models/errors/postv2humanevals.js.map +0 -1
- package/models/operations/deletev2humanevalsid.d.ts +0 -27
- package/models/operations/deletev2humanevalsid.d.ts.map +0 -1
- package/models/operations/deletev2humanevalsid.js +0 -59
- package/models/operations/deletev2humanevalsid.js.map +0 -1
- package/models/operations/getv2humanevals.d.ts +0 -356
- package/models/operations/getv2humanevals.d.ts.map +0 -1
- package/models/operations/getv2humanevals.js +0 -274
- package/models/operations/getv2humanevals.js.map +0 -1
- package/models/operations/getv2humanevalsid.d.ts +0 -359
- package/models/operations/getv2humanevalsid.d.ts.map +0 -1
- package/models/operations/getv2humanevalsid.js +0 -271
- package/models/operations/getv2humanevalsid.js.map +0 -1
- package/models/operations/patchv2humanevalsid.d.ts +0 -703
- package/models/operations/patchv2humanevalsid.d.ts.map +0 -1
- package/models/operations/patchv2humanevalsid.js +0 -474
- package/models/operations/patchv2humanevalsid.js.map +0 -1
- package/models/operations/postv2humanevals.d.ts +0 -628
- package/models/operations/postv2humanevals.d.ts.map +0 -1
- package/models/operations/postv2humanevals.js +0 -427
- package/models/operations/postv2humanevals.js.map +0 -1
- package/sdk/evaluators.d.ts +0 -12
- package/sdk/evaluators.d.ts.map +0 -1
- package/sdk/evaluators.js +0 -22
- package/sdk/evaluators.js.map +0 -1
- package/src/funcs/deleteV2HumanEvalsId.ts +0 -169
- package/src/funcs/getV2HumanEvals.ts +0 -169
- package/src/funcs/getV2HumanEvalsId.ts +0 -168
- package/src/funcs/patchV2HumanEvalsId.ts +0 -170
- package/src/funcs/postV2HumanEvals.ts +0 -168
- package/src/models/errors/deletev2humanevalsid.ts +0 -51
- package/src/models/errors/getv2humanevals.ts +0 -51
- package/src/models/errors/getv2humanevalsid.ts +0 -51
- package/src/models/errors/patchv2humanevalsid.ts +0 -51
- package/src/models/errors/postv2humanevals.ts +0 -51
- package/src/models/operations/deletev2humanevalsid.ts +0 -67
- package/src/models/operations/getv2humanevals.ts +0 -696
- package/src/models/operations/getv2humanevalsid.ts +0 -707
- package/src/models/operations/patchv2humanevalsid.ts +0 -1362
- package/src/models/operations/postv2humanevals.ts +0 -1193
- package/src/sdk/evaluators.ts +0 -27
|
@@ -1,1193 +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 { safeParse } from "../../lib/schemas.js";
|
|
8
|
-
import { ClosedEnum } from "../../types/enums.js";
|
|
9
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
-
|
|
12
|
-
export type RequestBody6 = {
|
|
13
|
-
type: "text";
|
|
14
|
-
/**
|
|
15
|
-
* Unique key for the feedback. It is autogenerated by the system always
|
|
16
|
-
*/
|
|
17
|
-
key?: string | undefined;
|
|
18
|
-
/**
|
|
19
|
-
* Display name of the feedback item.
|
|
20
|
-
*/
|
|
21
|
-
displayName: string;
|
|
22
|
-
/**
|
|
23
|
-
* Detailed description of the feedback.
|
|
24
|
-
*/
|
|
25
|
-
description: string;
|
|
26
|
-
/**
|
|
27
|
-
* Optional project ID to scope this human review to a specific project
|
|
28
|
-
*/
|
|
29
|
-
projectId?: string | undefined;
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
export const RequestBodySentiment = {
|
|
33
|
-
Neutral: "neutral",
|
|
34
|
-
Positive: "positive",
|
|
35
|
-
Negative: "negative",
|
|
36
|
-
} as const;
|
|
37
|
-
export type RequestBodySentiment = ClosedEnum<typeof RequestBodySentiment>;
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* Model representing specific values and attributes of feedback.
|
|
41
|
-
*/
|
|
42
|
-
export type RequestBodyOptions = {
|
|
43
|
-
/**
|
|
44
|
-
* The value or content of the feedback.
|
|
45
|
-
*/
|
|
46
|
-
value: string;
|
|
47
|
-
sentiment: RequestBodySentiment;
|
|
48
|
-
/**
|
|
49
|
-
* Description of the feedback option.
|
|
50
|
-
*/
|
|
51
|
-
description: string;
|
|
52
|
-
icon: string;
|
|
53
|
-
};
|
|
54
|
-
|
|
55
|
-
export type Five = {
|
|
56
|
-
type: "single_select";
|
|
57
|
-
options: Array<RequestBodyOptions>;
|
|
58
|
-
/**
|
|
59
|
-
* Unique key for the feedback. It is autogenerated by the system always
|
|
60
|
-
*/
|
|
61
|
-
key?: string | undefined;
|
|
62
|
-
/**
|
|
63
|
-
* Display name of the feedback item.
|
|
64
|
-
*/
|
|
65
|
-
displayName: string;
|
|
66
|
-
/**
|
|
67
|
-
* Detailed description of the feedback.
|
|
68
|
-
*/
|
|
69
|
-
description: string;
|
|
70
|
-
/**
|
|
71
|
-
* Optional project ID to scope this human review to a specific project
|
|
72
|
-
*/
|
|
73
|
-
projectId?: string | undefined;
|
|
74
|
-
};
|
|
75
|
-
|
|
76
|
-
export const Sentiment = {
|
|
77
|
-
Neutral: "neutral",
|
|
78
|
-
Positive: "positive",
|
|
79
|
-
Negative: "negative",
|
|
80
|
-
} as const;
|
|
81
|
-
export type Sentiment = ClosedEnum<typeof Sentiment>;
|
|
82
|
-
|
|
83
|
-
/**
|
|
84
|
-
* Model representing specific values and attributes of feedback.
|
|
85
|
-
*/
|
|
86
|
-
export type Options = {
|
|
87
|
-
/**
|
|
88
|
-
* The value or content of the feedback.
|
|
89
|
-
*/
|
|
90
|
-
value: string;
|
|
91
|
-
sentiment: Sentiment;
|
|
92
|
-
/**
|
|
93
|
-
* Description of the feedback option.
|
|
94
|
-
*/
|
|
95
|
-
description: string;
|
|
96
|
-
icon: string;
|
|
97
|
-
};
|
|
98
|
-
|
|
99
|
-
export type RequestBody4 = {
|
|
100
|
-
type: "multi_select";
|
|
101
|
-
options: Array<Options>;
|
|
102
|
-
/**
|
|
103
|
-
* Unique key for the feedback. It is autogenerated by the system always
|
|
104
|
-
*/
|
|
105
|
-
key?: string | undefined;
|
|
106
|
-
/**
|
|
107
|
-
* Display name of the feedback item.
|
|
108
|
-
*/
|
|
109
|
-
displayName: string;
|
|
110
|
-
/**
|
|
111
|
-
* Detailed description of the feedback.
|
|
112
|
-
*/
|
|
113
|
-
description: string;
|
|
114
|
-
/**
|
|
115
|
-
* Optional project ID to scope this human review to a specific project
|
|
116
|
-
*/
|
|
117
|
-
projectId?: string | undefined;
|
|
118
|
-
};
|
|
119
|
-
|
|
120
|
-
/**
|
|
121
|
-
* The configuration for a range human review
|
|
122
|
-
*/
|
|
123
|
-
export type Config = {
|
|
124
|
-
/**
|
|
125
|
-
* The minimum value for the range
|
|
126
|
-
*/
|
|
127
|
-
min: number;
|
|
128
|
-
/**
|
|
129
|
-
* The maximum value for the range
|
|
130
|
-
*/
|
|
131
|
-
max: number;
|
|
132
|
-
};
|
|
133
|
-
|
|
134
|
-
export type PostV2HumanEvalsRequestBody3 = {
|
|
135
|
-
type: "range";
|
|
136
|
-
/**
|
|
137
|
-
* The configuration for a range human review
|
|
138
|
-
*/
|
|
139
|
-
config: Config;
|
|
140
|
-
/**
|
|
141
|
-
* Unique key for the feedback. It is autogenerated by the system always
|
|
142
|
-
*/
|
|
143
|
-
key?: string | undefined;
|
|
144
|
-
/**
|
|
145
|
-
* Display name of the feedback item.
|
|
146
|
-
*/
|
|
147
|
-
displayName: string;
|
|
148
|
-
/**
|
|
149
|
-
* Detailed description of the feedback.
|
|
150
|
-
*/
|
|
151
|
-
description: string;
|
|
152
|
-
/**
|
|
153
|
-
* Optional project ID to scope this human review to a specific project
|
|
154
|
-
*/
|
|
155
|
-
projectId?: string | undefined;
|
|
156
|
-
};
|
|
157
|
-
|
|
158
|
-
export type PostV2HumanEvalsRequestBody2 = {
|
|
159
|
-
type: "correction";
|
|
160
|
-
/**
|
|
161
|
-
* Unique key for the feedback. It is autogenerated by the system always
|
|
162
|
-
*/
|
|
163
|
-
key?: string | undefined;
|
|
164
|
-
/**
|
|
165
|
-
* Display name of the feedback item.
|
|
166
|
-
*/
|
|
167
|
-
displayName: string;
|
|
168
|
-
/**
|
|
169
|
-
* Detailed description of the feedback.
|
|
170
|
-
*/
|
|
171
|
-
description: string;
|
|
172
|
-
/**
|
|
173
|
-
* Optional project ID to scope this human review to a specific project
|
|
174
|
-
*/
|
|
175
|
-
projectId?: string | undefined;
|
|
176
|
-
};
|
|
177
|
-
|
|
178
|
-
export type PostV2HumanEvalsRequestBody1 = {
|
|
179
|
-
type: "boolean";
|
|
180
|
-
/**
|
|
181
|
-
* Unique key for the feedback. It is autogenerated by the system always
|
|
182
|
-
*/
|
|
183
|
-
key?: string | undefined;
|
|
184
|
-
/**
|
|
185
|
-
* Display name of the feedback item.
|
|
186
|
-
*/
|
|
187
|
-
displayName: string;
|
|
188
|
-
/**
|
|
189
|
-
* Detailed description of the feedback.
|
|
190
|
-
*/
|
|
191
|
-
description: string;
|
|
192
|
-
/**
|
|
193
|
-
* Optional project ID to scope this human review to a specific project
|
|
194
|
-
*/
|
|
195
|
-
projectId?: string | undefined;
|
|
196
|
-
};
|
|
197
|
-
|
|
198
|
-
export type PostV2HumanEvalsRequestBody =
|
|
199
|
-
| PostV2HumanEvalsRequestBody1
|
|
200
|
-
| PostV2HumanEvalsRequestBody2
|
|
201
|
-
| PostV2HumanEvalsRequestBody3
|
|
202
|
-
| RequestBody4
|
|
203
|
-
| Five
|
|
204
|
-
| RequestBody6;
|
|
205
|
-
|
|
206
|
-
export type PostV2HumanEvalsResponseBody6 = {
|
|
207
|
-
type: "text";
|
|
208
|
-
/**
|
|
209
|
-
* The id of the resource
|
|
210
|
-
*/
|
|
211
|
-
id: string;
|
|
212
|
-
/**
|
|
213
|
-
* Unique key for the feedback. It is autogenerated by the system always
|
|
214
|
-
*/
|
|
215
|
-
key: string;
|
|
216
|
-
/**
|
|
217
|
-
* Display name of the feedback item.
|
|
218
|
-
*/
|
|
219
|
-
displayName: string;
|
|
220
|
-
/**
|
|
221
|
-
* Detailed description of the feedback.
|
|
222
|
-
*/
|
|
223
|
-
description: string;
|
|
224
|
-
/**
|
|
225
|
-
* The id of the resource
|
|
226
|
-
*/
|
|
227
|
-
domainId?: string | undefined;
|
|
228
|
-
/**
|
|
229
|
-
* The id of the user who created the resource
|
|
230
|
-
*/
|
|
231
|
-
createdById?: string | undefined;
|
|
232
|
-
/**
|
|
233
|
-
* The id of the user who last updated the resource
|
|
234
|
-
*/
|
|
235
|
-
updatedById?: string | undefined;
|
|
236
|
-
/**
|
|
237
|
-
* The id of the resource
|
|
238
|
-
*/
|
|
239
|
-
workspaceId: string;
|
|
240
|
-
/**
|
|
241
|
-
* Optional project ID to scope this human review to a specific project
|
|
242
|
-
*/
|
|
243
|
-
projectId?: string | undefined;
|
|
244
|
-
};
|
|
245
|
-
|
|
246
|
-
export const PostV2HumanEvalsResponseBodyResponseSentiment = {
|
|
247
|
-
Neutral: "neutral",
|
|
248
|
-
Positive: "positive",
|
|
249
|
-
Negative: "negative",
|
|
250
|
-
} as const;
|
|
251
|
-
export type PostV2HumanEvalsResponseBodyResponseSentiment = ClosedEnum<
|
|
252
|
-
typeof PostV2HumanEvalsResponseBodyResponseSentiment
|
|
253
|
-
>;
|
|
254
|
-
|
|
255
|
-
/**
|
|
256
|
-
* Model representing specific values and attributes of feedback.
|
|
257
|
-
*/
|
|
258
|
-
export type PostV2HumanEvalsResponseBodyResponseOptions = {
|
|
259
|
-
/**
|
|
260
|
-
* The id of the resource
|
|
261
|
-
*/
|
|
262
|
-
id: string;
|
|
263
|
-
/**
|
|
264
|
-
* The value or content of the feedback.
|
|
265
|
-
*/
|
|
266
|
-
value: string;
|
|
267
|
-
sentiment: PostV2HumanEvalsResponseBodyResponseSentiment;
|
|
268
|
-
/**
|
|
269
|
-
* Description of the feedback option.
|
|
270
|
-
*/
|
|
271
|
-
description: string;
|
|
272
|
-
icon: string;
|
|
273
|
-
};
|
|
274
|
-
|
|
275
|
-
export type PostV2HumanEvalsResponseBody5 = {
|
|
276
|
-
type: "single_select";
|
|
277
|
-
options: Array<PostV2HumanEvalsResponseBodyResponseOptions>;
|
|
278
|
-
/**
|
|
279
|
-
* The id of the resource
|
|
280
|
-
*/
|
|
281
|
-
id: string;
|
|
282
|
-
/**
|
|
283
|
-
* Unique key for the feedback. It is autogenerated by the system always
|
|
284
|
-
*/
|
|
285
|
-
key: string;
|
|
286
|
-
/**
|
|
287
|
-
* Display name of the feedback item.
|
|
288
|
-
*/
|
|
289
|
-
displayName: string;
|
|
290
|
-
/**
|
|
291
|
-
* Detailed description of the feedback.
|
|
292
|
-
*/
|
|
293
|
-
description: string;
|
|
294
|
-
/**
|
|
295
|
-
* The id of the resource
|
|
296
|
-
*/
|
|
297
|
-
domainId?: string | undefined;
|
|
298
|
-
/**
|
|
299
|
-
* The id of the user who created the resource
|
|
300
|
-
*/
|
|
301
|
-
createdById?: string | undefined;
|
|
302
|
-
/**
|
|
303
|
-
* The id of the user who last updated the resource
|
|
304
|
-
*/
|
|
305
|
-
updatedById?: string | undefined;
|
|
306
|
-
/**
|
|
307
|
-
* The id of the resource
|
|
308
|
-
*/
|
|
309
|
-
workspaceId: string;
|
|
310
|
-
/**
|
|
311
|
-
* Optional project ID to scope this human review to a specific project
|
|
312
|
-
*/
|
|
313
|
-
projectId?: string | undefined;
|
|
314
|
-
};
|
|
315
|
-
|
|
316
|
-
export const PostV2HumanEvalsResponseBodySentiment = {
|
|
317
|
-
Neutral: "neutral",
|
|
318
|
-
Positive: "positive",
|
|
319
|
-
Negative: "negative",
|
|
320
|
-
} as const;
|
|
321
|
-
export type PostV2HumanEvalsResponseBodySentiment = ClosedEnum<
|
|
322
|
-
typeof PostV2HumanEvalsResponseBodySentiment
|
|
323
|
-
>;
|
|
324
|
-
|
|
325
|
-
/**
|
|
326
|
-
* Model representing specific values and attributes of feedback.
|
|
327
|
-
*/
|
|
328
|
-
export type PostV2HumanEvalsResponseBodyOptions = {
|
|
329
|
-
/**
|
|
330
|
-
* The id of the resource
|
|
331
|
-
*/
|
|
332
|
-
id: string;
|
|
333
|
-
/**
|
|
334
|
-
* The value or content of the feedback.
|
|
335
|
-
*/
|
|
336
|
-
value: string;
|
|
337
|
-
sentiment: PostV2HumanEvalsResponseBodySentiment;
|
|
338
|
-
/**
|
|
339
|
-
* Description of the feedback option.
|
|
340
|
-
*/
|
|
341
|
-
description: string;
|
|
342
|
-
icon: string;
|
|
343
|
-
};
|
|
344
|
-
|
|
345
|
-
export type PostV2HumanEvalsResponseBody4 = {
|
|
346
|
-
type: "multi_select";
|
|
347
|
-
options: Array<PostV2HumanEvalsResponseBodyOptions>;
|
|
348
|
-
/**
|
|
349
|
-
* The id of the resource
|
|
350
|
-
*/
|
|
351
|
-
id: string;
|
|
352
|
-
/**
|
|
353
|
-
* Unique key for the feedback. It is autogenerated by the system always
|
|
354
|
-
*/
|
|
355
|
-
key: string;
|
|
356
|
-
/**
|
|
357
|
-
* Display name of the feedback item.
|
|
358
|
-
*/
|
|
359
|
-
displayName: string;
|
|
360
|
-
/**
|
|
361
|
-
* Detailed description of the feedback.
|
|
362
|
-
*/
|
|
363
|
-
description: string;
|
|
364
|
-
/**
|
|
365
|
-
* The id of the resource
|
|
366
|
-
*/
|
|
367
|
-
domainId?: string | undefined;
|
|
368
|
-
/**
|
|
369
|
-
* The id of the user who created the resource
|
|
370
|
-
*/
|
|
371
|
-
createdById?: string | undefined;
|
|
372
|
-
/**
|
|
373
|
-
* The id of the user who last updated the resource
|
|
374
|
-
*/
|
|
375
|
-
updatedById?: string | undefined;
|
|
376
|
-
/**
|
|
377
|
-
* The id of the resource
|
|
378
|
-
*/
|
|
379
|
-
workspaceId: string;
|
|
380
|
-
/**
|
|
381
|
-
* Optional project ID to scope this human review to a specific project
|
|
382
|
-
*/
|
|
383
|
-
projectId?: string | undefined;
|
|
384
|
-
};
|
|
385
|
-
|
|
386
|
-
/**
|
|
387
|
-
* The configuration for a range human review
|
|
388
|
-
*/
|
|
389
|
-
export type PostV2HumanEvalsResponseBodyConfig = {
|
|
390
|
-
/**
|
|
391
|
-
* The minimum value for the range
|
|
392
|
-
*/
|
|
393
|
-
min: number;
|
|
394
|
-
/**
|
|
395
|
-
* The maximum value for the range
|
|
396
|
-
*/
|
|
397
|
-
max: number;
|
|
398
|
-
};
|
|
399
|
-
|
|
400
|
-
export type PostV2HumanEvalsResponseBody3 = {
|
|
401
|
-
type: "range";
|
|
402
|
-
/**
|
|
403
|
-
* The configuration for a range human review
|
|
404
|
-
*/
|
|
405
|
-
config: PostV2HumanEvalsResponseBodyConfig;
|
|
406
|
-
/**
|
|
407
|
-
* The id of the resource
|
|
408
|
-
*/
|
|
409
|
-
id: string;
|
|
410
|
-
/**
|
|
411
|
-
* Unique key for the feedback. It is autogenerated by the system always
|
|
412
|
-
*/
|
|
413
|
-
key: string;
|
|
414
|
-
/**
|
|
415
|
-
* Display name of the feedback item.
|
|
416
|
-
*/
|
|
417
|
-
displayName: string;
|
|
418
|
-
/**
|
|
419
|
-
* Detailed description of the feedback.
|
|
420
|
-
*/
|
|
421
|
-
description: string;
|
|
422
|
-
/**
|
|
423
|
-
* The id of the resource
|
|
424
|
-
*/
|
|
425
|
-
domainId?: string | undefined;
|
|
426
|
-
/**
|
|
427
|
-
* The id of the user who created the resource
|
|
428
|
-
*/
|
|
429
|
-
createdById?: string | undefined;
|
|
430
|
-
/**
|
|
431
|
-
* The id of the user who last updated the resource
|
|
432
|
-
*/
|
|
433
|
-
updatedById?: string | undefined;
|
|
434
|
-
/**
|
|
435
|
-
* The id of the resource
|
|
436
|
-
*/
|
|
437
|
-
workspaceId: string;
|
|
438
|
-
/**
|
|
439
|
-
* Optional project ID to scope this human review to a specific project
|
|
440
|
-
*/
|
|
441
|
-
projectId?: string | undefined;
|
|
442
|
-
};
|
|
443
|
-
|
|
444
|
-
export type PostV2HumanEvalsResponseBody2 = {
|
|
445
|
-
type: "correction";
|
|
446
|
-
/**
|
|
447
|
-
* The id of the resource
|
|
448
|
-
*/
|
|
449
|
-
id: string;
|
|
450
|
-
/**
|
|
451
|
-
* Unique key for the feedback. It is autogenerated by the system always
|
|
452
|
-
*/
|
|
453
|
-
key: string;
|
|
454
|
-
/**
|
|
455
|
-
* Display name of the feedback item.
|
|
456
|
-
*/
|
|
457
|
-
displayName: string;
|
|
458
|
-
/**
|
|
459
|
-
* Detailed description of the feedback.
|
|
460
|
-
*/
|
|
461
|
-
description: string;
|
|
462
|
-
/**
|
|
463
|
-
* The id of the resource
|
|
464
|
-
*/
|
|
465
|
-
domainId?: string | undefined;
|
|
466
|
-
/**
|
|
467
|
-
* The id of the user who created the resource
|
|
468
|
-
*/
|
|
469
|
-
createdById?: string | undefined;
|
|
470
|
-
/**
|
|
471
|
-
* The id of the user who last updated the resource
|
|
472
|
-
*/
|
|
473
|
-
updatedById?: string | undefined;
|
|
474
|
-
/**
|
|
475
|
-
* The id of the resource
|
|
476
|
-
*/
|
|
477
|
-
workspaceId: string;
|
|
478
|
-
/**
|
|
479
|
-
* Optional project ID to scope this human review to a specific project
|
|
480
|
-
*/
|
|
481
|
-
projectId?: string | undefined;
|
|
482
|
-
};
|
|
483
|
-
|
|
484
|
-
export type PostV2HumanEvalsResponseBody1 = {
|
|
485
|
-
type: "boolean";
|
|
486
|
-
/**
|
|
487
|
-
* The id of the resource
|
|
488
|
-
*/
|
|
489
|
-
id: string;
|
|
490
|
-
/**
|
|
491
|
-
* Unique key for the feedback. It is autogenerated by the system always
|
|
492
|
-
*/
|
|
493
|
-
key: string;
|
|
494
|
-
/**
|
|
495
|
-
* Display name of the feedback item.
|
|
496
|
-
*/
|
|
497
|
-
displayName: string;
|
|
498
|
-
/**
|
|
499
|
-
* Detailed description of the feedback.
|
|
500
|
-
*/
|
|
501
|
-
description: string;
|
|
502
|
-
/**
|
|
503
|
-
* The id of the resource
|
|
504
|
-
*/
|
|
505
|
-
domainId?: string | undefined;
|
|
506
|
-
/**
|
|
507
|
-
* The id of the user who created the resource
|
|
508
|
-
*/
|
|
509
|
-
createdById?: string | undefined;
|
|
510
|
-
/**
|
|
511
|
-
* The id of the user who last updated the resource
|
|
512
|
-
*/
|
|
513
|
-
updatedById?: string | undefined;
|
|
514
|
-
/**
|
|
515
|
-
* The id of the resource
|
|
516
|
-
*/
|
|
517
|
-
workspaceId: string;
|
|
518
|
-
/**
|
|
519
|
-
* Optional project ID to scope this human review to a specific project
|
|
520
|
-
*/
|
|
521
|
-
projectId?: string | undefined;
|
|
522
|
-
};
|
|
523
|
-
|
|
524
|
-
/**
|
|
525
|
-
* Successfully created a human review
|
|
526
|
-
*/
|
|
527
|
-
export type PostV2HumanEvalsResponseBody =
|
|
528
|
-
| PostV2HumanEvalsResponseBody1
|
|
529
|
-
| PostV2HumanEvalsResponseBody2
|
|
530
|
-
| PostV2HumanEvalsResponseBody3
|
|
531
|
-
| PostV2HumanEvalsResponseBody4
|
|
532
|
-
| PostV2HumanEvalsResponseBody5
|
|
533
|
-
| PostV2HumanEvalsResponseBody6;
|
|
534
|
-
|
|
535
|
-
/** @internal */
|
|
536
|
-
export type RequestBody6$Outbound = {
|
|
537
|
-
type: "text";
|
|
538
|
-
key: string;
|
|
539
|
-
display_name: string;
|
|
540
|
-
description: string;
|
|
541
|
-
project_id?: string | undefined;
|
|
542
|
-
};
|
|
543
|
-
|
|
544
|
-
/** @internal */
|
|
545
|
-
export const RequestBody6$outboundSchema: z.ZodType<
|
|
546
|
-
RequestBody6$Outbound,
|
|
547
|
-
z.ZodTypeDef,
|
|
548
|
-
RequestBody6
|
|
549
|
-
> = z.object({
|
|
550
|
-
type: z.literal("text"),
|
|
551
|
-
key: z.string().default("orq_01kp61vv9r"),
|
|
552
|
-
displayName: z.string(),
|
|
553
|
-
description: z.string(),
|
|
554
|
-
projectId: z.string().optional(),
|
|
555
|
-
}).transform((v) => {
|
|
556
|
-
return remap$(v, {
|
|
557
|
-
displayName: "display_name",
|
|
558
|
-
projectId: "project_id",
|
|
559
|
-
});
|
|
560
|
-
});
|
|
561
|
-
|
|
562
|
-
export function requestBody6ToJSON(requestBody6: RequestBody6): string {
|
|
563
|
-
return JSON.stringify(RequestBody6$outboundSchema.parse(requestBody6));
|
|
564
|
-
}
|
|
565
|
-
|
|
566
|
-
/** @internal */
|
|
567
|
-
export const RequestBodySentiment$outboundSchema: z.ZodNativeEnum<
|
|
568
|
-
typeof RequestBodySentiment
|
|
569
|
-
> = z.nativeEnum(RequestBodySentiment);
|
|
570
|
-
|
|
571
|
-
/** @internal */
|
|
572
|
-
export type RequestBodyOptions$Outbound = {
|
|
573
|
-
value: string;
|
|
574
|
-
sentiment: string;
|
|
575
|
-
description: string;
|
|
576
|
-
icon: string;
|
|
577
|
-
};
|
|
578
|
-
|
|
579
|
-
/** @internal */
|
|
580
|
-
export const RequestBodyOptions$outboundSchema: z.ZodType<
|
|
581
|
-
RequestBodyOptions$Outbound,
|
|
582
|
-
z.ZodTypeDef,
|
|
583
|
-
RequestBodyOptions
|
|
584
|
-
> = z.object({
|
|
585
|
-
value: z.string(),
|
|
586
|
-
sentiment: RequestBodySentiment$outboundSchema,
|
|
587
|
-
description: z.string(),
|
|
588
|
-
icon: z.string(),
|
|
589
|
-
});
|
|
590
|
-
|
|
591
|
-
export function requestBodyOptionsToJSON(
|
|
592
|
-
requestBodyOptions: RequestBodyOptions,
|
|
593
|
-
): string {
|
|
594
|
-
return JSON.stringify(
|
|
595
|
-
RequestBodyOptions$outboundSchema.parse(requestBodyOptions),
|
|
596
|
-
);
|
|
597
|
-
}
|
|
598
|
-
|
|
599
|
-
/** @internal */
|
|
600
|
-
export type Five$Outbound = {
|
|
601
|
-
type: "single_select";
|
|
602
|
-
options: Array<RequestBodyOptions$Outbound>;
|
|
603
|
-
key: string;
|
|
604
|
-
display_name: string;
|
|
605
|
-
description: string;
|
|
606
|
-
project_id?: string | undefined;
|
|
607
|
-
};
|
|
608
|
-
|
|
609
|
-
/** @internal */
|
|
610
|
-
export const Five$outboundSchema: z.ZodType<Five$Outbound, z.ZodTypeDef, Five> =
|
|
611
|
-
z.object({
|
|
612
|
-
type: z.literal("single_select"),
|
|
613
|
-
options: z.array(z.lazy(() => RequestBodyOptions$outboundSchema)),
|
|
614
|
-
key: z.string().default("orq_01kp61vv9r"),
|
|
615
|
-
displayName: z.string(),
|
|
616
|
-
description: z.string(),
|
|
617
|
-
projectId: z.string().optional(),
|
|
618
|
-
}).transform((v) => {
|
|
619
|
-
return remap$(v, {
|
|
620
|
-
displayName: "display_name",
|
|
621
|
-
projectId: "project_id",
|
|
622
|
-
});
|
|
623
|
-
});
|
|
624
|
-
|
|
625
|
-
export function fiveToJSON(five: Five): string {
|
|
626
|
-
return JSON.stringify(Five$outboundSchema.parse(five));
|
|
627
|
-
}
|
|
628
|
-
|
|
629
|
-
/** @internal */
|
|
630
|
-
export const Sentiment$outboundSchema: z.ZodNativeEnum<typeof Sentiment> = z
|
|
631
|
-
.nativeEnum(Sentiment);
|
|
632
|
-
|
|
633
|
-
/** @internal */
|
|
634
|
-
export type Options$Outbound = {
|
|
635
|
-
value: string;
|
|
636
|
-
sentiment: string;
|
|
637
|
-
description: string;
|
|
638
|
-
icon: string;
|
|
639
|
-
};
|
|
640
|
-
|
|
641
|
-
/** @internal */
|
|
642
|
-
export const Options$outboundSchema: z.ZodType<
|
|
643
|
-
Options$Outbound,
|
|
644
|
-
z.ZodTypeDef,
|
|
645
|
-
Options
|
|
646
|
-
> = z.object({
|
|
647
|
-
value: z.string(),
|
|
648
|
-
sentiment: Sentiment$outboundSchema,
|
|
649
|
-
description: z.string(),
|
|
650
|
-
icon: z.string(),
|
|
651
|
-
});
|
|
652
|
-
|
|
653
|
-
export function optionsToJSON(options: Options): string {
|
|
654
|
-
return JSON.stringify(Options$outboundSchema.parse(options));
|
|
655
|
-
}
|
|
656
|
-
|
|
657
|
-
/** @internal */
|
|
658
|
-
export type RequestBody4$Outbound = {
|
|
659
|
-
type: "multi_select";
|
|
660
|
-
options: Array<Options$Outbound>;
|
|
661
|
-
key: string;
|
|
662
|
-
display_name: string;
|
|
663
|
-
description: string;
|
|
664
|
-
project_id?: string | undefined;
|
|
665
|
-
};
|
|
666
|
-
|
|
667
|
-
/** @internal */
|
|
668
|
-
export const RequestBody4$outboundSchema: z.ZodType<
|
|
669
|
-
RequestBody4$Outbound,
|
|
670
|
-
z.ZodTypeDef,
|
|
671
|
-
RequestBody4
|
|
672
|
-
> = z.object({
|
|
673
|
-
type: z.literal("multi_select"),
|
|
674
|
-
options: z.array(z.lazy(() => Options$outboundSchema)),
|
|
675
|
-
key: z.string().default("orq_01kp61vv9q"),
|
|
676
|
-
displayName: z.string(),
|
|
677
|
-
description: z.string(),
|
|
678
|
-
projectId: z.string().optional(),
|
|
679
|
-
}).transform((v) => {
|
|
680
|
-
return remap$(v, {
|
|
681
|
-
displayName: "display_name",
|
|
682
|
-
projectId: "project_id",
|
|
683
|
-
});
|
|
684
|
-
});
|
|
685
|
-
|
|
686
|
-
export function requestBody4ToJSON(requestBody4: RequestBody4): string {
|
|
687
|
-
return JSON.stringify(RequestBody4$outboundSchema.parse(requestBody4));
|
|
688
|
-
}
|
|
689
|
-
|
|
690
|
-
/** @internal */
|
|
691
|
-
export type Config$Outbound = {
|
|
692
|
-
min: number;
|
|
693
|
-
max: number;
|
|
694
|
-
};
|
|
695
|
-
|
|
696
|
-
/** @internal */
|
|
697
|
-
export const Config$outboundSchema: z.ZodType<
|
|
698
|
-
Config$Outbound,
|
|
699
|
-
z.ZodTypeDef,
|
|
700
|
-
Config
|
|
701
|
-
> = z.object({
|
|
702
|
-
min: z.number().int(),
|
|
703
|
-
max: z.number().int(),
|
|
704
|
-
});
|
|
705
|
-
|
|
706
|
-
export function configToJSON(config: Config): string {
|
|
707
|
-
return JSON.stringify(Config$outboundSchema.parse(config));
|
|
708
|
-
}
|
|
709
|
-
|
|
710
|
-
/** @internal */
|
|
711
|
-
export type PostV2HumanEvalsRequestBody3$Outbound = {
|
|
712
|
-
type: "range";
|
|
713
|
-
config: Config$Outbound;
|
|
714
|
-
key: string;
|
|
715
|
-
display_name: string;
|
|
716
|
-
description: string;
|
|
717
|
-
project_id?: string | undefined;
|
|
718
|
-
};
|
|
719
|
-
|
|
720
|
-
/** @internal */
|
|
721
|
-
export const PostV2HumanEvalsRequestBody3$outboundSchema: z.ZodType<
|
|
722
|
-
PostV2HumanEvalsRequestBody3$Outbound,
|
|
723
|
-
z.ZodTypeDef,
|
|
724
|
-
PostV2HumanEvalsRequestBody3
|
|
725
|
-
> = z.object({
|
|
726
|
-
type: z.literal("range"),
|
|
727
|
-
config: z.lazy(() => Config$outboundSchema),
|
|
728
|
-
key: z.string().default("orq_01kp61vv9n"),
|
|
729
|
-
displayName: z.string(),
|
|
730
|
-
description: z.string(),
|
|
731
|
-
projectId: z.string().optional(),
|
|
732
|
-
}).transform((v) => {
|
|
733
|
-
return remap$(v, {
|
|
734
|
-
displayName: "display_name",
|
|
735
|
-
projectId: "project_id",
|
|
736
|
-
});
|
|
737
|
-
});
|
|
738
|
-
|
|
739
|
-
export function postV2HumanEvalsRequestBody3ToJSON(
|
|
740
|
-
postV2HumanEvalsRequestBody3: PostV2HumanEvalsRequestBody3,
|
|
741
|
-
): string {
|
|
742
|
-
return JSON.stringify(
|
|
743
|
-
PostV2HumanEvalsRequestBody3$outboundSchema.parse(
|
|
744
|
-
postV2HumanEvalsRequestBody3,
|
|
745
|
-
),
|
|
746
|
-
);
|
|
747
|
-
}
|
|
748
|
-
|
|
749
|
-
/** @internal */
|
|
750
|
-
export type PostV2HumanEvalsRequestBody2$Outbound = {
|
|
751
|
-
type: "correction";
|
|
752
|
-
key: string;
|
|
753
|
-
display_name: string;
|
|
754
|
-
description: string;
|
|
755
|
-
project_id?: string | undefined;
|
|
756
|
-
};
|
|
757
|
-
|
|
758
|
-
/** @internal */
|
|
759
|
-
export const PostV2HumanEvalsRequestBody2$outboundSchema: z.ZodType<
|
|
760
|
-
PostV2HumanEvalsRequestBody2$Outbound,
|
|
761
|
-
z.ZodTypeDef,
|
|
762
|
-
PostV2HumanEvalsRequestBody2
|
|
763
|
-
> = z.object({
|
|
764
|
-
type: z.literal("correction"),
|
|
765
|
-
key: z.string().default("orq_01kp61vv9m"),
|
|
766
|
-
displayName: z.string(),
|
|
767
|
-
description: z.string(),
|
|
768
|
-
projectId: z.string().optional(),
|
|
769
|
-
}).transform((v) => {
|
|
770
|
-
return remap$(v, {
|
|
771
|
-
displayName: "display_name",
|
|
772
|
-
projectId: "project_id",
|
|
773
|
-
});
|
|
774
|
-
});
|
|
775
|
-
|
|
776
|
-
export function postV2HumanEvalsRequestBody2ToJSON(
|
|
777
|
-
postV2HumanEvalsRequestBody2: PostV2HumanEvalsRequestBody2,
|
|
778
|
-
): string {
|
|
779
|
-
return JSON.stringify(
|
|
780
|
-
PostV2HumanEvalsRequestBody2$outboundSchema.parse(
|
|
781
|
-
postV2HumanEvalsRequestBody2,
|
|
782
|
-
),
|
|
783
|
-
);
|
|
784
|
-
}
|
|
785
|
-
|
|
786
|
-
/** @internal */
|
|
787
|
-
export type PostV2HumanEvalsRequestBody1$Outbound = {
|
|
788
|
-
type: "boolean";
|
|
789
|
-
key: string;
|
|
790
|
-
display_name: string;
|
|
791
|
-
description: string;
|
|
792
|
-
project_id?: string | undefined;
|
|
793
|
-
};
|
|
794
|
-
|
|
795
|
-
/** @internal */
|
|
796
|
-
export const PostV2HumanEvalsRequestBody1$outboundSchema: z.ZodType<
|
|
797
|
-
PostV2HumanEvalsRequestBody1$Outbound,
|
|
798
|
-
z.ZodTypeDef,
|
|
799
|
-
PostV2HumanEvalsRequestBody1
|
|
800
|
-
> = z.object({
|
|
801
|
-
type: z.literal("boolean"),
|
|
802
|
-
key: z.string().default("orq_01kp61vv9k"),
|
|
803
|
-
displayName: z.string(),
|
|
804
|
-
description: z.string(),
|
|
805
|
-
projectId: z.string().optional(),
|
|
806
|
-
}).transform((v) => {
|
|
807
|
-
return remap$(v, {
|
|
808
|
-
displayName: "display_name",
|
|
809
|
-
projectId: "project_id",
|
|
810
|
-
});
|
|
811
|
-
});
|
|
812
|
-
|
|
813
|
-
export function postV2HumanEvalsRequestBody1ToJSON(
|
|
814
|
-
postV2HumanEvalsRequestBody1: PostV2HumanEvalsRequestBody1,
|
|
815
|
-
): string {
|
|
816
|
-
return JSON.stringify(
|
|
817
|
-
PostV2HumanEvalsRequestBody1$outboundSchema.parse(
|
|
818
|
-
postV2HumanEvalsRequestBody1,
|
|
819
|
-
),
|
|
820
|
-
);
|
|
821
|
-
}
|
|
822
|
-
|
|
823
|
-
/** @internal */
|
|
824
|
-
export type PostV2HumanEvalsRequestBody$Outbound =
|
|
825
|
-
| PostV2HumanEvalsRequestBody1$Outbound
|
|
826
|
-
| PostV2HumanEvalsRequestBody2$Outbound
|
|
827
|
-
| PostV2HumanEvalsRequestBody3$Outbound
|
|
828
|
-
| RequestBody4$Outbound
|
|
829
|
-
| Five$Outbound
|
|
830
|
-
| RequestBody6$Outbound;
|
|
831
|
-
|
|
832
|
-
/** @internal */
|
|
833
|
-
export const PostV2HumanEvalsRequestBody$outboundSchema: z.ZodType<
|
|
834
|
-
PostV2HumanEvalsRequestBody$Outbound,
|
|
835
|
-
z.ZodTypeDef,
|
|
836
|
-
PostV2HumanEvalsRequestBody
|
|
837
|
-
> = z.union([
|
|
838
|
-
z.lazy(() => PostV2HumanEvalsRequestBody1$outboundSchema),
|
|
839
|
-
z.lazy(() => PostV2HumanEvalsRequestBody2$outboundSchema),
|
|
840
|
-
z.lazy(() => PostV2HumanEvalsRequestBody3$outboundSchema),
|
|
841
|
-
z.lazy(() => RequestBody4$outboundSchema),
|
|
842
|
-
z.lazy(() => Five$outboundSchema),
|
|
843
|
-
z.lazy(() => RequestBody6$outboundSchema),
|
|
844
|
-
]);
|
|
845
|
-
|
|
846
|
-
export function postV2HumanEvalsRequestBodyToJSON(
|
|
847
|
-
postV2HumanEvalsRequestBody: PostV2HumanEvalsRequestBody,
|
|
848
|
-
): string {
|
|
849
|
-
return JSON.stringify(
|
|
850
|
-
PostV2HumanEvalsRequestBody$outboundSchema.parse(
|
|
851
|
-
postV2HumanEvalsRequestBody,
|
|
852
|
-
),
|
|
853
|
-
);
|
|
854
|
-
}
|
|
855
|
-
|
|
856
|
-
/** @internal */
|
|
857
|
-
export const PostV2HumanEvalsResponseBody6$inboundSchema: z.ZodType<
|
|
858
|
-
PostV2HumanEvalsResponseBody6,
|
|
859
|
-
z.ZodTypeDef,
|
|
860
|
-
unknown
|
|
861
|
-
> = z.object({
|
|
862
|
-
type: z.literal("text"),
|
|
863
|
-
id: z.string(),
|
|
864
|
-
key: z.string().default("orq_01kp61vv9h"),
|
|
865
|
-
display_name: z.string(),
|
|
866
|
-
description: z.string(),
|
|
867
|
-
domain_id: z.string().optional(),
|
|
868
|
-
created_by_id: z.string().optional(),
|
|
869
|
-
updated_by_id: z.string().optional(),
|
|
870
|
-
workspace_id: z.string(),
|
|
871
|
-
project_id: z.string().optional(),
|
|
872
|
-
}).transform((v) => {
|
|
873
|
-
return remap$(v, {
|
|
874
|
-
"display_name": "displayName",
|
|
875
|
-
"domain_id": "domainId",
|
|
876
|
-
"created_by_id": "createdById",
|
|
877
|
-
"updated_by_id": "updatedById",
|
|
878
|
-
"workspace_id": "workspaceId",
|
|
879
|
-
"project_id": "projectId",
|
|
880
|
-
});
|
|
881
|
-
});
|
|
882
|
-
|
|
883
|
-
export function postV2HumanEvalsResponseBody6FromJSON(
|
|
884
|
-
jsonString: string,
|
|
885
|
-
): SafeParseResult<PostV2HumanEvalsResponseBody6, SDKValidationError> {
|
|
886
|
-
return safeParse(
|
|
887
|
-
jsonString,
|
|
888
|
-
(x) => PostV2HumanEvalsResponseBody6$inboundSchema.parse(JSON.parse(x)),
|
|
889
|
-
`Failed to parse 'PostV2HumanEvalsResponseBody6' from JSON`,
|
|
890
|
-
);
|
|
891
|
-
}
|
|
892
|
-
|
|
893
|
-
/** @internal */
|
|
894
|
-
export const PostV2HumanEvalsResponseBodyResponseSentiment$inboundSchema:
|
|
895
|
-
z.ZodNativeEnum<typeof PostV2HumanEvalsResponseBodyResponseSentiment> = z
|
|
896
|
-
.nativeEnum(PostV2HumanEvalsResponseBodyResponseSentiment);
|
|
897
|
-
|
|
898
|
-
/** @internal */
|
|
899
|
-
export const PostV2HumanEvalsResponseBodyResponseOptions$inboundSchema:
|
|
900
|
-
z.ZodType<
|
|
901
|
-
PostV2HumanEvalsResponseBodyResponseOptions,
|
|
902
|
-
z.ZodTypeDef,
|
|
903
|
-
unknown
|
|
904
|
-
> = z.object({
|
|
905
|
-
id: z.string(),
|
|
906
|
-
value: z.string(),
|
|
907
|
-
sentiment: PostV2HumanEvalsResponseBodyResponseSentiment$inboundSchema,
|
|
908
|
-
description: z.string(),
|
|
909
|
-
icon: z.string(),
|
|
910
|
-
});
|
|
911
|
-
|
|
912
|
-
export function postV2HumanEvalsResponseBodyResponseOptionsFromJSON(
|
|
913
|
-
jsonString: string,
|
|
914
|
-
): SafeParseResult<
|
|
915
|
-
PostV2HumanEvalsResponseBodyResponseOptions,
|
|
916
|
-
SDKValidationError
|
|
917
|
-
> {
|
|
918
|
-
return safeParse(
|
|
919
|
-
jsonString,
|
|
920
|
-
(x) =>
|
|
921
|
-
PostV2HumanEvalsResponseBodyResponseOptions$inboundSchema.parse(
|
|
922
|
-
JSON.parse(x),
|
|
923
|
-
),
|
|
924
|
-
`Failed to parse 'PostV2HumanEvalsResponseBodyResponseOptions' from JSON`,
|
|
925
|
-
);
|
|
926
|
-
}
|
|
927
|
-
|
|
928
|
-
/** @internal */
|
|
929
|
-
export const PostV2HumanEvalsResponseBody5$inboundSchema: z.ZodType<
|
|
930
|
-
PostV2HumanEvalsResponseBody5,
|
|
931
|
-
z.ZodTypeDef,
|
|
932
|
-
unknown
|
|
933
|
-
> = z.object({
|
|
934
|
-
type: z.literal("single_select"),
|
|
935
|
-
options: z.array(
|
|
936
|
-
z.lazy(() => PostV2HumanEvalsResponseBodyResponseOptions$inboundSchema),
|
|
937
|
-
),
|
|
938
|
-
id: z.string(),
|
|
939
|
-
key: z.string().default("orq_01kp61vv9g"),
|
|
940
|
-
display_name: z.string(),
|
|
941
|
-
description: z.string(),
|
|
942
|
-
domain_id: z.string().optional(),
|
|
943
|
-
created_by_id: z.string().optional(),
|
|
944
|
-
updated_by_id: z.string().optional(),
|
|
945
|
-
workspace_id: z.string(),
|
|
946
|
-
project_id: z.string().optional(),
|
|
947
|
-
}).transform((v) => {
|
|
948
|
-
return remap$(v, {
|
|
949
|
-
"display_name": "displayName",
|
|
950
|
-
"domain_id": "domainId",
|
|
951
|
-
"created_by_id": "createdById",
|
|
952
|
-
"updated_by_id": "updatedById",
|
|
953
|
-
"workspace_id": "workspaceId",
|
|
954
|
-
"project_id": "projectId",
|
|
955
|
-
});
|
|
956
|
-
});
|
|
957
|
-
|
|
958
|
-
export function postV2HumanEvalsResponseBody5FromJSON(
|
|
959
|
-
jsonString: string,
|
|
960
|
-
): SafeParseResult<PostV2HumanEvalsResponseBody5, SDKValidationError> {
|
|
961
|
-
return safeParse(
|
|
962
|
-
jsonString,
|
|
963
|
-
(x) => PostV2HumanEvalsResponseBody5$inboundSchema.parse(JSON.parse(x)),
|
|
964
|
-
`Failed to parse 'PostV2HumanEvalsResponseBody5' from JSON`,
|
|
965
|
-
);
|
|
966
|
-
}
|
|
967
|
-
|
|
968
|
-
/** @internal */
|
|
969
|
-
export const PostV2HumanEvalsResponseBodySentiment$inboundSchema:
|
|
970
|
-
z.ZodNativeEnum<typeof PostV2HumanEvalsResponseBodySentiment> = z.nativeEnum(
|
|
971
|
-
PostV2HumanEvalsResponseBodySentiment,
|
|
972
|
-
);
|
|
973
|
-
|
|
974
|
-
/** @internal */
|
|
975
|
-
export const PostV2HumanEvalsResponseBodyOptions$inboundSchema: z.ZodType<
|
|
976
|
-
PostV2HumanEvalsResponseBodyOptions,
|
|
977
|
-
z.ZodTypeDef,
|
|
978
|
-
unknown
|
|
979
|
-
> = z.object({
|
|
980
|
-
id: z.string(),
|
|
981
|
-
value: z.string(),
|
|
982
|
-
sentiment: PostV2HumanEvalsResponseBodySentiment$inboundSchema,
|
|
983
|
-
description: z.string(),
|
|
984
|
-
icon: z.string(),
|
|
985
|
-
});
|
|
986
|
-
|
|
987
|
-
export function postV2HumanEvalsResponseBodyOptionsFromJSON(
|
|
988
|
-
jsonString: string,
|
|
989
|
-
): SafeParseResult<PostV2HumanEvalsResponseBodyOptions, SDKValidationError> {
|
|
990
|
-
return safeParse(
|
|
991
|
-
jsonString,
|
|
992
|
-
(x) =>
|
|
993
|
-
PostV2HumanEvalsResponseBodyOptions$inboundSchema.parse(JSON.parse(x)),
|
|
994
|
-
`Failed to parse 'PostV2HumanEvalsResponseBodyOptions' from JSON`,
|
|
995
|
-
);
|
|
996
|
-
}
|
|
997
|
-
|
|
998
|
-
/** @internal */
|
|
999
|
-
export const PostV2HumanEvalsResponseBody4$inboundSchema: z.ZodType<
|
|
1000
|
-
PostV2HumanEvalsResponseBody4,
|
|
1001
|
-
z.ZodTypeDef,
|
|
1002
|
-
unknown
|
|
1003
|
-
> = z.object({
|
|
1004
|
-
type: z.literal("multi_select"),
|
|
1005
|
-
options: z.array(
|
|
1006
|
-
z.lazy(() => PostV2HumanEvalsResponseBodyOptions$inboundSchema),
|
|
1007
|
-
),
|
|
1008
|
-
id: z.string(),
|
|
1009
|
-
key: z.string().default("orq_01kp61vv9e"),
|
|
1010
|
-
display_name: z.string(),
|
|
1011
|
-
description: z.string(),
|
|
1012
|
-
domain_id: z.string().optional(),
|
|
1013
|
-
created_by_id: z.string().optional(),
|
|
1014
|
-
updated_by_id: z.string().optional(),
|
|
1015
|
-
workspace_id: z.string(),
|
|
1016
|
-
project_id: z.string().optional(),
|
|
1017
|
-
}).transform((v) => {
|
|
1018
|
-
return remap$(v, {
|
|
1019
|
-
"display_name": "displayName",
|
|
1020
|
-
"domain_id": "domainId",
|
|
1021
|
-
"created_by_id": "createdById",
|
|
1022
|
-
"updated_by_id": "updatedById",
|
|
1023
|
-
"workspace_id": "workspaceId",
|
|
1024
|
-
"project_id": "projectId",
|
|
1025
|
-
});
|
|
1026
|
-
});
|
|
1027
|
-
|
|
1028
|
-
export function postV2HumanEvalsResponseBody4FromJSON(
|
|
1029
|
-
jsonString: string,
|
|
1030
|
-
): SafeParseResult<PostV2HumanEvalsResponseBody4, SDKValidationError> {
|
|
1031
|
-
return safeParse(
|
|
1032
|
-
jsonString,
|
|
1033
|
-
(x) => PostV2HumanEvalsResponseBody4$inboundSchema.parse(JSON.parse(x)),
|
|
1034
|
-
`Failed to parse 'PostV2HumanEvalsResponseBody4' from JSON`,
|
|
1035
|
-
);
|
|
1036
|
-
}
|
|
1037
|
-
|
|
1038
|
-
/** @internal */
|
|
1039
|
-
export const PostV2HumanEvalsResponseBodyConfig$inboundSchema: z.ZodType<
|
|
1040
|
-
PostV2HumanEvalsResponseBodyConfig,
|
|
1041
|
-
z.ZodTypeDef,
|
|
1042
|
-
unknown
|
|
1043
|
-
> = z.object({
|
|
1044
|
-
min: z.number().int(),
|
|
1045
|
-
max: z.number().int(),
|
|
1046
|
-
});
|
|
1047
|
-
|
|
1048
|
-
export function postV2HumanEvalsResponseBodyConfigFromJSON(
|
|
1049
|
-
jsonString: string,
|
|
1050
|
-
): SafeParseResult<PostV2HumanEvalsResponseBodyConfig, SDKValidationError> {
|
|
1051
|
-
return safeParse(
|
|
1052
|
-
jsonString,
|
|
1053
|
-
(x) =>
|
|
1054
|
-
PostV2HumanEvalsResponseBodyConfig$inboundSchema.parse(JSON.parse(x)),
|
|
1055
|
-
`Failed to parse 'PostV2HumanEvalsResponseBodyConfig' from JSON`,
|
|
1056
|
-
);
|
|
1057
|
-
}
|
|
1058
|
-
|
|
1059
|
-
/** @internal */
|
|
1060
|
-
export const PostV2HumanEvalsResponseBody3$inboundSchema: z.ZodType<
|
|
1061
|
-
PostV2HumanEvalsResponseBody3,
|
|
1062
|
-
z.ZodTypeDef,
|
|
1063
|
-
unknown
|
|
1064
|
-
> = z.object({
|
|
1065
|
-
type: z.literal("range"),
|
|
1066
|
-
config: z.lazy(() => PostV2HumanEvalsResponseBodyConfig$inboundSchema),
|
|
1067
|
-
id: z.string(),
|
|
1068
|
-
key: z.string().default("orq_01kp61vv9c"),
|
|
1069
|
-
display_name: z.string(),
|
|
1070
|
-
description: z.string(),
|
|
1071
|
-
domain_id: z.string().optional(),
|
|
1072
|
-
created_by_id: z.string().optional(),
|
|
1073
|
-
updated_by_id: z.string().optional(),
|
|
1074
|
-
workspace_id: z.string(),
|
|
1075
|
-
project_id: z.string().optional(),
|
|
1076
|
-
}).transform((v) => {
|
|
1077
|
-
return remap$(v, {
|
|
1078
|
-
"display_name": "displayName",
|
|
1079
|
-
"domain_id": "domainId",
|
|
1080
|
-
"created_by_id": "createdById",
|
|
1081
|
-
"updated_by_id": "updatedById",
|
|
1082
|
-
"workspace_id": "workspaceId",
|
|
1083
|
-
"project_id": "projectId",
|
|
1084
|
-
});
|
|
1085
|
-
});
|
|
1086
|
-
|
|
1087
|
-
export function postV2HumanEvalsResponseBody3FromJSON(
|
|
1088
|
-
jsonString: string,
|
|
1089
|
-
): SafeParseResult<PostV2HumanEvalsResponseBody3, SDKValidationError> {
|
|
1090
|
-
return safeParse(
|
|
1091
|
-
jsonString,
|
|
1092
|
-
(x) => PostV2HumanEvalsResponseBody3$inboundSchema.parse(JSON.parse(x)),
|
|
1093
|
-
`Failed to parse 'PostV2HumanEvalsResponseBody3' from JSON`,
|
|
1094
|
-
);
|
|
1095
|
-
}
|
|
1096
|
-
|
|
1097
|
-
/** @internal */
|
|
1098
|
-
export const PostV2HumanEvalsResponseBody2$inboundSchema: z.ZodType<
|
|
1099
|
-
PostV2HumanEvalsResponseBody2,
|
|
1100
|
-
z.ZodTypeDef,
|
|
1101
|
-
unknown
|
|
1102
|
-
> = z.object({
|
|
1103
|
-
type: z.literal("correction"),
|
|
1104
|
-
id: z.string(),
|
|
1105
|
-
key: z.string().default("orq_01kp61vv9b"),
|
|
1106
|
-
display_name: z.string(),
|
|
1107
|
-
description: z.string(),
|
|
1108
|
-
domain_id: z.string().optional(),
|
|
1109
|
-
created_by_id: z.string().optional(),
|
|
1110
|
-
updated_by_id: z.string().optional(),
|
|
1111
|
-
workspace_id: z.string(),
|
|
1112
|
-
project_id: z.string().optional(),
|
|
1113
|
-
}).transform((v) => {
|
|
1114
|
-
return remap$(v, {
|
|
1115
|
-
"display_name": "displayName",
|
|
1116
|
-
"domain_id": "domainId",
|
|
1117
|
-
"created_by_id": "createdById",
|
|
1118
|
-
"updated_by_id": "updatedById",
|
|
1119
|
-
"workspace_id": "workspaceId",
|
|
1120
|
-
"project_id": "projectId",
|
|
1121
|
-
});
|
|
1122
|
-
});
|
|
1123
|
-
|
|
1124
|
-
export function postV2HumanEvalsResponseBody2FromJSON(
|
|
1125
|
-
jsonString: string,
|
|
1126
|
-
): SafeParseResult<PostV2HumanEvalsResponseBody2, SDKValidationError> {
|
|
1127
|
-
return safeParse(
|
|
1128
|
-
jsonString,
|
|
1129
|
-
(x) => PostV2HumanEvalsResponseBody2$inboundSchema.parse(JSON.parse(x)),
|
|
1130
|
-
`Failed to parse 'PostV2HumanEvalsResponseBody2' from JSON`,
|
|
1131
|
-
);
|
|
1132
|
-
}
|
|
1133
|
-
|
|
1134
|
-
/** @internal */
|
|
1135
|
-
export const PostV2HumanEvalsResponseBody1$inboundSchema: z.ZodType<
|
|
1136
|
-
PostV2HumanEvalsResponseBody1,
|
|
1137
|
-
z.ZodTypeDef,
|
|
1138
|
-
unknown
|
|
1139
|
-
> = z.object({
|
|
1140
|
-
type: z.literal("boolean"),
|
|
1141
|
-
id: z.string(),
|
|
1142
|
-
key: z.string().default("orq_01kp61vv99"),
|
|
1143
|
-
display_name: z.string(),
|
|
1144
|
-
description: z.string(),
|
|
1145
|
-
domain_id: z.string().optional(),
|
|
1146
|
-
created_by_id: z.string().optional(),
|
|
1147
|
-
updated_by_id: z.string().optional(),
|
|
1148
|
-
workspace_id: z.string(),
|
|
1149
|
-
project_id: z.string().optional(),
|
|
1150
|
-
}).transform((v) => {
|
|
1151
|
-
return remap$(v, {
|
|
1152
|
-
"display_name": "displayName",
|
|
1153
|
-
"domain_id": "domainId",
|
|
1154
|
-
"created_by_id": "createdById",
|
|
1155
|
-
"updated_by_id": "updatedById",
|
|
1156
|
-
"workspace_id": "workspaceId",
|
|
1157
|
-
"project_id": "projectId",
|
|
1158
|
-
});
|
|
1159
|
-
});
|
|
1160
|
-
|
|
1161
|
-
export function postV2HumanEvalsResponseBody1FromJSON(
|
|
1162
|
-
jsonString: string,
|
|
1163
|
-
): SafeParseResult<PostV2HumanEvalsResponseBody1, SDKValidationError> {
|
|
1164
|
-
return safeParse(
|
|
1165
|
-
jsonString,
|
|
1166
|
-
(x) => PostV2HumanEvalsResponseBody1$inboundSchema.parse(JSON.parse(x)),
|
|
1167
|
-
`Failed to parse 'PostV2HumanEvalsResponseBody1' from JSON`,
|
|
1168
|
-
);
|
|
1169
|
-
}
|
|
1170
|
-
|
|
1171
|
-
/** @internal */
|
|
1172
|
-
export const PostV2HumanEvalsResponseBody$inboundSchema: z.ZodType<
|
|
1173
|
-
PostV2HumanEvalsResponseBody,
|
|
1174
|
-
z.ZodTypeDef,
|
|
1175
|
-
unknown
|
|
1176
|
-
> = z.union([
|
|
1177
|
-
z.lazy(() => PostV2HumanEvalsResponseBody1$inboundSchema),
|
|
1178
|
-
z.lazy(() => PostV2HumanEvalsResponseBody2$inboundSchema),
|
|
1179
|
-
z.lazy(() => PostV2HumanEvalsResponseBody3$inboundSchema),
|
|
1180
|
-
z.lazy(() => PostV2HumanEvalsResponseBody4$inboundSchema),
|
|
1181
|
-
z.lazy(() => PostV2HumanEvalsResponseBody5$inboundSchema),
|
|
1182
|
-
z.lazy(() => PostV2HumanEvalsResponseBody6$inboundSchema),
|
|
1183
|
-
]);
|
|
1184
|
-
|
|
1185
|
-
export function postV2HumanEvalsResponseBodyFromJSON(
|
|
1186
|
-
jsonString: string,
|
|
1187
|
-
): SafeParseResult<PostV2HumanEvalsResponseBody, SDKValidationError> {
|
|
1188
|
-
return safeParse(
|
|
1189
|
-
jsonString,
|
|
1190
|
-
(x) => PostV2HumanEvalsResponseBody$inboundSchema.parse(JSON.parse(x)),
|
|
1191
|
-
`Failed to parse 'PostV2HumanEvalsResponseBody' from JSON`,
|
|
1192
|
-
);
|
|
1193
|
-
}
|