@orq-ai/node 4.8.0-rc.16 → 4.8.0-rc.17
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,707 +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 GetV2HumanEvalsIdRequest = {
|
|
13
|
-
/**
|
|
14
|
-
* The id of the resource
|
|
15
|
-
*/
|
|
16
|
-
id: string;
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
export type GetV2HumanEvalsIdResponseBody6 = {
|
|
20
|
-
type: "text";
|
|
21
|
-
/**
|
|
22
|
-
* The id of the resource
|
|
23
|
-
*/
|
|
24
|
-
id: string;
|
|
25
|
-
/**
|
|
26
|
-
* Unique key for the feedback. It is autogenerated by the system always
|
|
27
|
-
*/
|
|
28
|
-
key: string;
|
|
29
|
-
/**
|
|
30
|
-
* Display name of the feedback item.
|
|
31
|
-
*/
|
|
32
|
-
displayName: string;
|
|
33
|
-
/**
|
|
34
|
-
* Detailed description of the feedback.
|
|
35
|
-
*/
|
|
36
|
-
description: string;
|
|
37
|
-
/**
|
|
38
|
-
* The id of the resource
|
|
39
|
-
*/
|
|
40
|
-
domainId?: string | undefined;
|
|
41
|
-
/**
|
|
42
|
-
* The id of the user who created the resource
|
|
43
|
-
*/
|
|
44
|
-
createdById?: string | undefined;
|
|
45
|
-
/**
|
|
46
|
-
* The id of the user who last updated the resource
|
|
47
|
-
*/
|
|
48
|
-
updatedById?: string | undefined;
|
|
49
|
-
/**
|
|
50
|
-
* The id of the resource
|
|
51
|
-
*/
|
|
52
|
-
workspaceId: string;
|
|
53
|
-
/**
|
|
54
|
-
* Optional project ID to scope this human review to a specific project
|
|
55
|
-
*/
|
|
56
|
-
projectId?: string | undefined;
|
|
57
|
-
};
|
|
58
|
-
|
|
59
|
-
export const GetV2HumanEvalsIdResponseBodyResponseSentiment = {
|
|
60
|
-
Neutral: "neutral",
|
|
61
|
-
Positive: "positive",
|
|
62
|
-
Negative: "negative",
|
|
63
|
-
} as const;
|
|
64
|
-
export type GetV2HumanEvalsIdResponseBodyResponseSentiment = ClosedEnum<
|
|
65
|
-
typeof GetV2HumanEvalsIdResponseBodyResponseSentiment
|
|
66
|
-
>;
|
|
67
|
-
|
|
68
|
-
/**
|
|
69
|
-
* Model representing specific values and attributes of feedback.
|
|
70
|
-
*/
|
|
71
|
-
export type GetV2HumanEvalsIdResponseBodyResponseOptions = {
|
|
72
|
-
/**
|
|
73
|
-
* The id of the resource
|
|
74
|
-
*/
|
|
75
|
-
id: string;
|
|
76
|
-
/**
|
|
77
|
-
* The value or content of the feedback.
|
|
78
|
-
*/
|
|
79
|
-
value: string;
|
|
80
|
-
sentiment: GetV2HumanEvalsIdResponseBodyResponseSentiment;
|
|
81
|
-
/**
|
|
82
|
-
* Description of the feedback option.
|
|
83
|
-
*/
|
|
84
|
-
description: string;
|
|
85
|
-
icon: string;
|
|
86
|
-
};
|
|
87
|
-
|
|
88
|
-
export type GetV2HumanEvalsIdResponseBody5 = {
|
|
89
|
-
type: "single_select";
|
|
90
|
-
options: Array<GetV2HumanEvalsIdResponseBodyResponseOptions>;
|
|
91
|
-
/**
|
|
92
|
-
* The id of the resource
|
|
93
|
-
*/
|
|
94
|
-
id: string;
|
|
95
|
-
/**
|
|
96
|
-
* Unique key for the feedback. It is autogenerated by the system always
|
|
97
|
-
*/
|
|
98
|
-
key: string;
|
|
99
|
-
/**
|
|
100
|
-
* Display name of the feedback item.
|
|
101
|
-
*/
|
|
102
|
-
displayName: string;
|
|
103
|
-
/**
|
|
104
|
-
* Detailed description of the feedback.
|
|
105
|
-
*/
|
|
106
|
-
description: string;
|
|
107
|
-
/**
|
|
108
|
-
* The id of the resource
|
|
109
|
-
*/
|
|
110
|
-
domainId?: string | undefined;
|
|
111
|
-
/**
|
|
112
|
-
* The id of the user who created the resource
|
|
113
|
-
*/
|
|
114
|
-
createdById?: string | undefined;
|
|
115
|
-
/**
|
|
116
|
-
* The id of the user who last updated the resource
|
|
117
|
-
*/
|
|
118
|
-
updatedById?: string | undefined;
|
|
119
|
-
/**
|
|
120
|
-
* The id of the resource
|
|
121
|
-
*/
|
|
122
|
-
workspaceId: string;
|
|
123
|
-
/**
|
|
124
|
-
* Optional project ID to scope this human review to a specific project
|
|
125
|
-
*/
|
|
126
|
-
projectId?: string | undefined;
|
|
127
|
-
};
|
|
128
|
-
|
|
129
|
-
export const GetV2HumanEvalsIdResponseBodySentiment = {
|
|
130
|
-
Neutral: "neutral",
|
|
131
|
-
Positive: "positive",
|
|
132
|
-
Negative: "negative",
|
|
133
|
-
} as const;
|
|
134
|
-
export type GetV2HumanEvalsIdResponseBodySentiment = ClosedEnum<
|
|
135
|
-
typeof GetV2HumanEvalsIdResponseBodySentiment
|
|
136
|
-
>;
|
|
137
|
-
|
|
138
|
-
/**
|
|
139
|
-
* Model representing specific values and attributes of feedback.
|
|
140
|
-
*/
|
|
141
|
-
export type GetV2HumanEvalsIdResponseBodyOptions = {
|
|
142
|
-
/**
|
|
143
|
-
* The id of the resource
|
|
144
|
-
*/
|
|
145
|
-
id: string;
|
|
146
|
-
/**
|
|
147
|
-
* The value or content of the feedback.
|
|
148
|
-
*/
|
|
149
|
-
value: string;
|
|
150
|
-
sentiment: GetV2HumanEvalsIdResponseBodySentiment;
|
|
151
|
-
/**
|
|
152
|
-
* Description of the feedback option.
|
|
153
|
-
*/
|
|
154
|
-
description: string;
|
|
155
|
-
icon: string;
|
|
156
|
-
};
|
|
157
|
-
|
|
158
|
-
export type GetV2HumanEvalsIdResponseBody4 = {
|
|
159
|
-
type: "multi_select";
|
|
160
|
-
options: Array<GetV2HumanEvalsIdResponseBodyOptions>;
|
|
161
|
-
/**
|
|
162
|
-
* The id of the resource
|
|
163
|
-
*/
|
|
164
|
-
id: string;
|
|
165
|
-
/**
|
|
166
|
-
* Unique key for the feedback. It is autogenerated by the system always
|
|
167
|
-
*/
|
|
168
|
-
key: string;
|
|
169
|
-
/**
|
|
170
|
-
* Display name of the feedback item.
|
|
171
|
-
*/
|
|
172
|
-
displayName: string;
|
|
173
|
-
/**
|
|
174
|
-
* Detailed description of the feedback.
|
|
175
|
-
*/
|
|
176
|
-
description: string;
|
|
177
|
-
/**
|
|
178
|
-
* The id of the resource
|
|
179
|
-
*/
|
|
180
|
-
domainId?: string | undefined;
|
|
181
|
-
/**
|
|
182
|
-
* The id of the user who created the resource
|
|
183
|
-
*/
|
|
184
|
-
createdById?: string | undefined;
|
|
185
|
-
/**
|
|
186
|
-
* The id of the user who last updated the resource
|
|
187
|
-
*/
|
|
188
|
-
updatedById?: string | undefined;
|
|
189
|
-
/**
|
|
190
|
-
* The id of the resource
|
|
191
|
-
*/
|
|
192
|
-
workspaceId: string;
|
|
193
|
-
/**
|
|
194
|
-
* Optional project ID to scope this human review to a specific project
|
|
195
|
-
*/
|
|
196
|
-
projectId?: string | undefined;
|
|
197
|
-
};
|
|
198
|
-
|
|
199
|
-
/**
|
|
200
|
-
* The configuration for a range human review
|
|
201
|
-
*/
|
|
202
|
-
export type GetV2HumanEvalsIdResponseBodyConfig = {
|
|
203
|
-
/**
|
|
204
|
-
* The minimum value for the range
|
|
205
|
-
*/
|
|
206
|
-
min: number;
|
|
207
|
-
/**
|
|
208
|
-
* The maximum value for the range
|
|
209
|
-
*/
|
|
210
|
-
max: number;
|
|
211
|
-
};
|
|
212
|
-
|
|
213
|
-
export type GetV2HumanEvalsIdResponseBody3 = {
|
|
214
|
-
type: "range";
|
|
215
|
-
/**
|
|
216
|
-
* The configuration for a range human review
|
|
217
|
-
*/
|
|
218
|
-
config: GetV2HumanEvalsIdResponseBodyConfig;
|
|
219
|
-
/**
|
|
220
|
-
* The id of the resource
|
|
221
|
-
*/
|
|
222
|
-
id: string;
|
|
223
|
-
/**
|
|
224
|
-
* Unique key for the feedback. It is autogenerated by the system always
|
|
225
|
-
*/
|
|
226
|
-
key: string;
|
|
227
|
-
/**
|
|
228
|
-
* Display name of the feedback item.
|
|
229
|
-
*/
|
|
230
|
-
displayName: string;
|
|
231
|
-
/**
|
|
232
|
-
* Detailed description of the feedback.
|
|
233
|
-
*/
|
|
234
|
-
description: string;
|
|
235
|
-
/**
|
|
236
|
-
* The id of the resource
|
|
237
|
-
*/
|
|
238
|
-
domainId?: string | undefined;
|
|
239
|
-
/**
|
|
240
|
-
* The id of the user who created the resource
|
|
241
|
-
*/
|
|
242
|
-
createdById?: string | undefined;
|
|
243
|
-
/**
|
|
244
|
-
* The id of the user who last updated the resource
|
|
245
|
-
*/
|
|
246
|
-
updatedById?: string | undefined;
|
|
247
|
-
/**
|
|
248
|
-
* The id of the resource
|
|
249
|
-
*/
|
|
250
|
-
workspaceId: string;
|
|
251
|
-
/**
|
|
252
|
-
* Optional project ID to scope this human review to a specific project
|
|
253
|
-
*/
|
|
254
|
-
projectId?: string | undefined;
|
|
255
|
-
};
|
|
256
|
-
|
|
257
|
-
export type GetV2HumanEvalsIdResponseBody2 = {
|
|
258
|
-
type: "correction";
|
|
259
|
-
/**
|
|
260
|
-
* The id of the resource
|
|
261
|
-
*/
|
|
262
|
-
id: string;
|
|
263
|
-
/**
|
|
264
|
-
* Unique key for the feedback. It is autogenerated by the system always
|
|
265
|
-
*/
|
|
266
|
-
key: string;
|
|
267
|
-
/**
|
|
268
|
-
* Display name of the feedback item.
|
|
269
|
-
*/
|
|
270
|
-
displayName: string;
|
|
271
|
-
/**
|
|
272
|
-
* Detailed description of the feedback.
|
|
273
|
-
*/
|
|
274
|
-
description: string;
|
|
275
|
-
/**
|
|
276
|
-
* The id of the resource
|
|
277
|
-
*/
|
|
278
|
-
domainId?: string | undefined;
|
|
279
|
-
/**
|
|
280
|
-
* The id of the user who created the resource
|
|
281
|
-
*/
|
|
282
|
-
createdById?: string | undefined;
|
|
283
|
-
/**
|
|
284
|
-
* The id of the user who last updated the resource
|
|
285
|
-
*/
|
|
286
|
-
updatedById?: string | undefined;
|
|
287
|
-
/**
|
|
288
|
-
* The id of the resource
|
|
289
|
-
*/
|
|
290
|
-
workspaceId: string;
|
|
291
|
-
/**
|
|
292
|
-
* Optional project ID to scope this human review to a specific project
|
|
293
|
-
*/
|
|
294
|
-
projectId?: string | undefined;
|
|
295
|
-
};
|
|
296
|
-
|
|
297
|
-
export type GetV2HumanEvalsIdResponseBody1 = {
|
|
298
|
-
type: "boolean";
|
|
299
|
-
/**
|
|
300
|
-
* The id of the resource
|
|
301
|
-
*/
|
|
302
|
-
id: string;
|
|
303
|
-
/**
|
|
304
|
-
* Unique key for the feedback. It is autogenerated by the system always
|
|
305
|
-
*/
|
|
306
|
-
key: string;
|
|
307
|
-
/**
|
|
308
|
-
* Display name of the feedback item.
|
|
309
|
-
*/
|
|
310
|
-
displayName: string;
|
|
311
|
-
/**
|
|
312
|
-
* Detailed description of the feedback.
|
|
313
|
-
*/
|
|
314
|
-
description: string;
|
|
315
|
-
/**
|
|
316
|
-
* The id of the resource
|
|
317
|
-
*/
|
|
318
|
-
domainId?: string | undefined;
|
|
319
|
-
/**
|
|
320
|
-
* The id of the user who created the resource
|
|
321
|
-
*/
|
|
322
|
-
createdById?: string | undefined;
|
|
323
|
-
/**
|
|
324
|
-
* The id of the user who last updated the resource
|
|
325
|
-
*/
|
|
326
|
-
updatedById?: string | undefined;
|
|
327
|
-
/**
|
|
328
|
-
* The id of the resource
|
|
329
|
-
*/
|
|
330
|
-
workspaceId: string;
|
|
331
|
-
/**
|
|
332
|
-
* Optional project ID to scope this human review to a specific project
|
|
333
|
-
*/
|
|
334
|
-
projectId?: string | undefined;
|
|
335
|
-
};
|
|
336
|
-
|
|
337
|
-
/**
|
|
338
|
-
* Returns a single human review
|
|
339
|
-
*/
|
|
340
|
-
export type GetV2HumanEvalsIdResponseBody =
|
|
341
|
-
| GetV2HumanEvalsIdResponseBody1
|
|
342
|
-
| GetV2HumanEvalsIdResponseBody2
|
|
343
|
-
| GetV2HumanEvalsIdResponseBody3
|
|
344
|
-
| GetV2HumanEvalsIdResponseBody4
|
|
345
|
-
| GetV2HumanEvalsIdResponseBody5
|
|
346
|
-
| GetV2HumanEvalsIdResponseBody6;
|
|
347
|
-
|
|
348
|
-
/** @internal */
|
|
349
|
-
export type GetV2HumanEvalsIdRequest$Outbound = {
|
|
350
|
-
id: string;
|
|
351
|
-
};
|
|
352
|
-
|
|
353
|
-
/** @internal */
|
|
354
|
-
export const GetV2HumanEvalsIdRequest$outboundSchema: z.ZodType<
|
|
355
|
-
GetV2HumanEvalsIdRequest$Outbound,
|
|
356
|
-
z.ZodTypeDef,
|
|
357
|
-
GetV2HumanEvalsIdRequest
|
|
358
|
-
> = z.object({
|
|
359
|
-
id: z.string(),
|
|
360
|
-
});
|
|
361
|
-
|
|
362
|
-
export function getV2HumanEvalsIdRequestToJSON(
|
|
363
|
-
getV2HumanEvalsIdRequest: GetV2HumanEvalsIdRequest,
|
|
364
|
-
): string {
|
|
365
|
-
return JSON.stringify(
|
|
366
|
-
GetV2HumanEvalsIdRequest$outboundSchema.parse(getV2HumanEvalsIdRequest),
|
|
367
|
-
);
|
|
368
|
-
}
|
|
369
|
-
|
|
370
|
-
/** @internal */
|
|
371
|
-
export const GetV2HumanEvalsIdResponseBody6$inboundSchema: z.ZodType<
|
|
372
|
-
GetV2HumanEvalsIdResponseBody6,
|
|
373
|
-
z.ZodTypeDef,
|
|
374
|
-
unknown
|
|
375
|
-
> = z.object({
|
|
376
|
-
type: z.literal("text"),
|
|
377
|
-
id: z.string(),
|
|
378
|
-
key: z.string().default("orq_01kp61vv97"),
|
|
379
|
-
display_name: z.string(),
|
|
380
|
-
description: z.string(),
|
|
381
|
-
domain_id: z.string().optional(),
|
|
382
|
-
created_by_id: z.string().optional(),
|
|
383
|
-
updated_by_id: z.string().optional(),
|
|
384
|
-
workspace_id: z.string(),
|
|
385
|
-
project_id: z.string().optional(),
|
|
386
|
-
}).transform((v) => {
|
|
387
|
-
return remap$(v, {
|
|
388
|
-
"display_name": "displayName",
|
|
389
|
-
"domain_id": "domainId",
|
|
390
|
-
"created_by_id": "createdById",
|
|
391
|
-
"updated_by_id": "updatedById",
|
|
392
|
-
"workspace_id": "workspaceId",
|
|
393
|
-
"project_id": "projectId",
|
|
394
|
-
});
|
|
395
|
-
});
|
|
396
|
-
|
|
397
|
-
export function getV2HumanEvalsIdResponseBody6FromJSON(
|
|
398
|
-
jsonString: string,
|
|
399
|
-
): SafeParseResult<GetV2HumanEvalsIdResponseBody6, SDKValidationError> {
|
|
400
|
-
return safeParse(
|
|
401
|
-
jsonString,
|
|
402
|
-
(x) => GetV2HumanEvalsIdResponseBody6$inboundSchema.parse(JSON.parse(x)),
|
|
403
|
-
`Failed to parse 'GetV2HumanEvalsIdResponseBody6' from JSON`,
|
|
404
|
-
);
|
|
405
|
-
}
|
|
406
|
-
|
|
407
|
-
/** @internal */
|
|
408
|
-
export const GetV2HumanEvalsIdResponseBodyResponseSentiment$inboundSchema:
|
|
409
|
-
z.ZodNativeEnum<typeof GetV2HumanEvalsIdResponseBodyResponseSentiment> = z
|
|
410
|
-
.nativeEnum(GetV2HumanEvalsIdResponseBodyResponseSentiment);
|
|
411
|
-
|
|
412
|
-
/** @internal */
|
|
413
|
-
export const GetV2HumanEvalsIdResponseBodyResponseOptions$inboundSchema:
|
|
414
|
-
z.ZodType<
|
|
415
|
-
GetV2HumanEvalsIdResponseBodyResponseOptions,
|
|
416
|
-
z.ZodTypeDef,
|
|
417
|
-
unknown
|
|
418
|
-
> = z.object({
|
|
419
|
-
id: z.string(),
|
|
420
|
-
value: z.string(),
|
|
421
|
-
sentiment: GetV2HumanEvalsIdResponseBodyResponseSentiment$inboundSchema,
|
|
422
|
-
description: z.string(),
|
|
423
|
-
icon: z.string(),
|
|
424
|
-
});
|
|
425
|
-
|
|
426
|
-
export function getV2HumanEvalsIdResponseBodyResponseOptionsFromJSON(
|
|
427
|
-
jsonString: string,
|
|
428
|
-
): SafeParseResult<
|
|
429
|
-
GetV2HumanEvalsIdResponseBodyResponseOptions,
|
|
430
|
-
SDKValidationError
|
|
431
|
-
> {
|
|
432
|
-
return safeParse(
|
|
433
|
-
jsonString,
|
|
434
|
-
(x) =>
|
|
435
|
-
GetV2HumanEvalsIdResponseBodyResponseOptions$inboundSchema.parse(
|
|
436
|
-
JSON.parse(x),
|
|
437
|
-
),
|
|
438
|
-
`Failed to parse 'GetV2HumanEvalsIdResponseBodyResponseOptions' from JSON`,
|
|
439
|
-
);
|
|
440
|
-
}
|
|
441
|
-
|
|
442
|
-
/** @internal */
|
|
443
|
-
export const GetV2HumanEvalsIdResponseBody5$inboundSchema: z.ZodType<
|
|
444
|
-
GetV2HumanEvalsIdResponseBody5,
|
|
445
|
-
z.ZodTypeDef,
|
|
446
|
-
unknown
|
|
447
|
-
> = z.object({
|
|
448
|
-
type: z.literal("single_select"),
|
|
449
|
-
options: z.array(
|
|
450
|
-
z.lazy(() => GetV2HumanEvalsIdResponseBodyResponseOptions$inboundSchema),
|
|
451
|
-
),
|
|
452
|
-
id: z.string(),
|
|
453
|
-
key: z.string().default("orq_01kp61vv97"),
|
|
454
|
-
display_name: z.string(),
|
|
455
|
-
description: z.string(),
|
|
456
|
-
domain_id: z.string().optional(),
|
|
457
|
-
created_by_id: z.string().optional(),
|
|
458
|
-
updated_by_id: z.string().optional(),
|
|
459
|
-
workspace_id: z.string(),
|
|
460
|
-
project_id: z.string().optional(),
|
|
461
|
-
}).transform((v) => {
|
|
462
|
-
return remap$(v, {
|
|
463
|
-
"display_name": "displayName",
|
|
464
|
-
"domain_id": "domainId",
|
|
465
|
-
"created_by_id": "createdById",
|
|
466
|
-
"updated_by_id": "updatedById",
|
|
467
|
-
"workspace_id": "workspaceId",
|
|
468
|
-
"project_id": "projectId",
|
|
469
|
-
});
|
|
470
|
-
});
|
|
471
|
-
|
|
472
|
-
export function getV2HumanEvalsIdResponseBody5FromJSON(
|
|
473
|
-
jsonString: string,
|
|
474
|
-
): SafeParseResult<GetV2HumanEvalsIdResponseBody5, SDKValidationError> {
|
|
475
|
-
return safeParse(
|
|
476
|
-
jsonString,
|
|
477
|
-
(x) => GetV2HumanEvalsIdResponseBody5$inboundSchema.parse(JSON.parse(x)),
|
|
478
|
-
`Failed to parse 'GetV2HumanEvalsIdResponseBody5' from JSON`,
|
|
479
|
-
);
|
|
480
|
-
}
|
|
481
|
-
|
|
482
|
-
/** @internal */
|
|
483
|
-
export const GetV2HumanEvalsIdResponseBodySentiment$inboundSchema:
|
|
484
|
-
z.ZodNativeEnum<typeof GetV2HumanEvalsIdResponseBodySentiment> = z.nativeEnum(
|
|
485
|
-
GetV2HumanEvalsIdResponseBodySentiment,
|
|
486
|
-
);
|
|
487
|
-
|
|
488
|
-
/** @internal */
|
|
489
|
-
export const GetV2HumanEvalsIdResponseBodyOptions$inboundSchema: z.ZodType<
|
|
490
|
-
GetV2HumanEvalsIdResponseBodyOptions,
|
|
491
|
-
z.ZodTypeDef,
|
|
492
|
-
unknown
|
|
493
|
-
> = z.object({
|
|
494
|
-
id: z.string(),
|
|
495
|
-
value: z.string(),
|
|
496
|
-
sentiment: GetV2HumanEvalsIdResponseBodySentiment$inboundSchema,
|
|
497
|
-
description: z.string(),
|
|
498
|
-
icon: z.string(),
|
|
499
|
-
});
|
|
500
|
-
|
|
501
|
-
export function getV2HumanEvalsIdResponseBodyOptionsFromJSON(
|
|
502
|
-
jsonString: string,
|
|
503
|
-
): SafeParseResult<GetV2HumanEvalsIdResponseBodyOptions, SDKValidationError> {
|
|
504
|
-
return safeParse(
|
|
505
|
-
jsonString,
|
|
506
|
-
(x) =>
|
|
507
|
-
GetV2HumanEvalsIdResponseBodyOptions$inboundSchema.parse(JSON.parse(x)),
|
|
508
|
-
`Failed to parse 'GetV2HumanEvalsIdResponseBodyOptions' from JSON`,
|
|
509
|
-
);
|
|
510
|
-
}
|
|
511
|
-
|
|
512
|
-
/** @internal */
|
|
513
|
-
export const GetV2HumanEvalsIdResponseBody4$inboundSchema: z.ZodType<
|
|
514
|
-
GetV2HumanEvalsIdResponseBody4,
|
|
515
|
-
z.ZodTypeDef,
|
|
516
|
-
unknown
|
|
517
|
-
> = z.object({
|
|
518
|
-
type: z.literal("multi_select"),
|
|
519
|
-
options: z.array(
|
|
520
|
-
z.lazy(() => GetV2HumanEvalsIdResponseBodyOptions$inboundSchema),
|
|
521
|
-
),
|
|
522
|
-
id: z.string(),
|
|
523
|
-
key: z.string().default("orq_01kp61vv96"),
|
|
524
|
-
display_name: z.string(),
|
|
525
|
-
description: z.string(),
|
|
526
|
-
domain_id: z.string().optional(),
|
|
527
|
-
created_by_id: z.string().optional(),
|
|
528
|
-
updated_by_id: z.string().optional(),
|
|
529
|
-
workspace_id: z.string(),
|
|
530
|
-
project_id: z.string().optional(),
|
|
531
|
-
}).transform((v) => {
|
|
532
|
-
return remap$(v, {
|
|
533
|
-
"display_name": "displayName",
|
|
534
|
-
"domain_id": "domainId",
|
|
535
|
-
"created_by_id": "createdById",
|
|
536
|
-
"updated_by_id": "updatedById",
|
|
537
|
-
"workspace_id": "workspaceId",
|
|
538
|
-
"project_id": "projectId",
|
|
539
|
-
});
|
|
540
|
-
});
|
|
541
|
-
|
|
542
|
-
export function getV2HumanEvalsIdResponseBody4FromJSON(
|
|
543
|
-
jsonString: string,
|
|
544
|
-
): SafeParseResult<GetV2HumanEvalsIdResponseBody4, SDKValidationError> {
|
|
545
|
-
return safeParse(
|
|
546
|
-
jsonString,
|
|
547
|
-
(x) => GetV2HumanEvalsIdResponseBody4$inboundSchema.parse(JSON.parse(x)),
|
|
548
|
-
`Failed to parse 'GetV2HumanEvalsIdResponseBody4' from JSON`,
|
|
549
|
-
);
|
|
550
|
-
}
|
|
551
|
-
|
|
552
|
-
/** @internal */
|
|
553
|
-
export const GetV2HumanEvalsIdResponseBodyConfig$inboundSchema: z.ZodType<
|
|
554
|
-
GetV2HumanEvalsIdResponseBodyConfig,
|
|
555
|
-
z.ZodTypeDef,
|
|
556
|
-
unknown
|
|
557
|
-
> = z.object({
|
|
558
|
-
min: z.number().int(),
|
|
559
|
-
max: z.number().int(),
|
|
560
|
-
});
|
|
561
|
-
|
|
562
|
-
export function getV2HumanEvalsIdResponseBodyConfigFromJSON(
|
|
563
|
-
jsonString: string,
|
|
564
|
-
): SafeParseResult<GetV2HumanEvalsIdResponseBodyConfig, SDKValidationError> {
|
|
565
|
-
return safeParse(
|
|
566
|
-
jsonString,
|
|
567
|
-
(x) =>
|
|
568
|
-
GetV2HumanEvalsIdResponseBodyConfig$inboundSchema.parse(JSON.parse(x)),
|
|
569
|
-
`Failed to parse 'GetV2HumanEvalsIdResponseBodyConfig' from JSON`,
|
|
570
|
-
);
|
|
571
|
-
}
|
|
572
|
-
|
|
573
|
-
/** @internal */
|
|
574
|
-
export const GetV2HumanEvalsIdResponseBody3$inboundSchema: z.ZodType<
|
|
575
|
-
GetV2HumanEvalsIdResponseBody3,
|
|
576
|
-
z.ZodTypeDef,
|
|
577
|
-
unknown
|
|
578
|
-
> = z.object({
|
|
579
|
-
type: z.literal("range"),
|
|
580
|
-
config: z.lazy(() => GetV2HumanEvalsIdResponseBodyConfig$inboundSchema),
|
|
581
|
-
id: z.string(),
|
|
582
|
-
key: z.string().default("orq_01kp61vv94"),
|
|
583
|
-
display_name: z.string(),
|
|
584
|
-
description: z.string(),
|
|
585
|
-
domain_id: z.string().optional(),
|
|
586
|
-
created_by_id: z.string().optional(),
|
|
587
|
-
updated_by_id: z.string().optional(),
|
|
588
|
-
workspace_id: z.string(),
|
|
589
|
-
project_id: z.string().optional(),
|
|
590
|
-
}).transform((v) => {
|
|
591
|
-
return remap$(v, {
|
|
592
|
-
"display_name": "displayName",
|
|
593
|
-
"domain_id": "domainId",
|
|
594
|
-
"created_by_id": "createdById",
|
|
595
|
-
"updated_by_id": "updatedById",
|
|
596
|
-
"workspace_id": "workspaceId",
|
|
597
|
-
"project_id": "projectId",
|
|
598
|
-
});
|
|
599
|
-
});
|
|
600
|
-
|
|
601
|
-
export function getV2HumanEvalsIdResponseBody3FromJSON(
|
|
602
|
-
jsonString: string,
|
|
603
|
-
): SafeParseResult<GetV2HumanEvalsIdResponseBody3, SDKValidationError> {
|
|
604
|
-
return safeParse(
|
|
605
|
-
jsonString,
|
|
606
|
-
(x) => GetV2HumanEvalsIdResponseBody3$inboundSchema.parse(JSON.parse(x)),
|
|
607
|
-
`Failed to parse 'GetV2HumanEvalsIdResponseBody3' from JSON`,
|
|
608
|
-
);
|
|
609
|
-
}
|
|
610
|
-
|
|
611
|
-
/** @internal */
|
|
612
|
-
export const GetV2HumanEvalsIdResponseBody2$inboundSchema: z.ZodType<
|
|
613
|
-
GetV2HumanEvalsIdResponseBody2,
|
|
614
|
-
z.ZodTypeDef,
|
|
615
|
-
unknown
|
|
616
|
-
> = z.object({
|
|
617
|
-
type: z.literal("correction"),
|
|
618
|
-
id: z.string(),
|
|
619
|
-
key: z.string().default("orq_01kp61vv92"),
|
|
620
|
-
display_name: z.string(),
|
|
621
|
-
description: z.string(),
|
|
622
|
-
domain_id: z.string().optional(),
|
|
623
|
-
created_by_id: z.string().optional(),
|
|
624
|
-
updated_by_id: z.string().optional(),
|
|
625
|
-
workspace_id: z.string(),
|
|
626
|
-
project_id: z.string().optional(),
|
|
627
|
-
}).transform((v) => {
|
|
628
|
-
return remap$(v, {
|
|
629
|
-
"display_name": "displayName",
|
|
630
|
-
"domain_id": "domainId",
|
|
631
|
-
"created_by_id": "createdById",
|
|
632
|
-
"updated_by_id": "updatedById",
|
|
633
|
-
"workspace_id": "workspaceId",
|
|
634
|
-
"project_id": "projectId",
|
|
635
|
-
});
|
|
636
|
-
});
|
|
637
|
-
|
|
638
|
-
export function getV2HumanEvalsIdResponseBody2FromJSON(
|
|
639
|
-
jsonString: string,
|
|
640
|
-
): SafeParseResult<GetV2HumanEvalsIdResponseBody2, SDKValidationError> {
|
|
641
|
-
return safeParse(
|
|
642
|
-
jsonString,
|
|
643
|
-
(x) => GetV2HumanEvalsIdResponseBody2$inboundSchema.parse(JSON.parse(x)),
|
|
644
|
-
`Failed to parse 'GetV2HumanEvalsIdResponseBody2' from JSON`,
|
|
645
|
-
);
|
|
646
|
-
}
|
|
647
|
-
|
|
648
|
-
/** @internal */
|
|
649
|
-
export const GetV2HumanEvalsIdResponseBody1$inboundSchema: z.ZodType<
|
|
650
|
-
GetV2HumanEvalsIdResponseBody1,
|
|
651
|
-
z.ZodTypeDef,
|
|
652
|
-
unknown
|
|
653
|
-
> = z.object({
|
|
654
|
-
type: z.literal("boolean"),
|
|
655
|
-
id: z.string(),
|
|
656
|
-
key: z.string().default("orq_01kp61vv91"),
|
|
657
|
-
display_name: z.string(),
|
|
658
|
-
description: z.string(),
|
|
659
|
-
domain_id: z.string().optional(),
|
|
660
|
-
created_by_id: z.string().optional(),
|
|
661
|
-
updated_by_id: z.string().optional(),
|
|
662
|
-
workspace_id: z.string(),
|
|
663
|
-
project_id: z.string().optional(),
|
|
664
|
-
}).transform((v) => {
|
|
665
|
-
return remap$(v, {
|
|
666
|
-
"display_name": "displayName",
|
|
667
|
-
"domain_id": "domainId",
|
|
668
|
-
"created_by_id": "createdById",
|
|
669
|
-
"updated_by_id": "updatedById",
|
|
670
|
-
"workspace_id": "workspaceId",
|
|
671
|
-
"project_id": "projectId",
|
|
672
|
-
});
|
|
673
|
-
});
|
|
674
|
-
|
|
675
|
-
export function getV2HumanEvalsIdResponseBody1FromJSON(
|
|
676
|
-
jsonString: string,
|
|
677
|
-
): SafeParseResult<GetV2HumanEvalsIdResponseBody1, SDKValidationError> {
|
|
678
|
-
return safeParse(
|
|
679
|
-
jsonString,
|
|
680
|
-
(x) => GetV2HumanEvalsIdResponseBody1$inboundSchema.parse(JSON.parse(x)),
|
|
681
|
-
`Failed to parse 'GetV2HumanEvalsIdResponseBody1' from JSON`,
|
|
682
|
-
);
|
|
683
|
-
}
|
|
684
|
-
|
|
685
|
-
/** @internal */
|
|
686
|
-
export const GetV2HumanEvalsIdResponseBody$inboundSchema: z.ZodType<
|
|
687
|
-
GetV2HumanEvalsIdResponseBody,
|
|
688
|
-
z.ZodTypeDef,
|
|
689
|
-
unknown
|
|
690
|
-
> = z.union([
|
|
691
|
-
z.lazy(() => GetV2HumanEvalsIdResponseBody1$inboundSchema),
|
|
692
|
-
z.lazy(() => GetV2HumanEvalsIdResponseBody2$inboundSchema),
|
|
693
|
-
z.lazy(() => GetV2HumanEvalsIdResponseBody3$inboundSchema),
|
|
694
|
-
z.lazy(() => GetV2HumanEvalsIdResponseBody4$inboundSchema),
|
|
695
|
-
z.lazy(() => GetV2HumanEvalsIdResponseBody5$inboundSchema),
|
|
696
|
-
z.lazy(() => GetV2HumanEvalsIdResponseBody6$inboundSchema),
|
|
697
|
-
]);
|
|
698
|
-
|
|
699
|
-
export function getV2HumanEvalsIdResponseBodyFromJSON(
|
|
700
|
-
jsonString: string,
|
|
701
|
-
): SafeParseResult<GetV2HumanEvalsIdResponseBody, SDKValidationError> {
|
|
702
|
-
return safeParse(
|
|
703
|
-
jsonString,
|
|
704
|
-
(x) => GetV2HumanEvalsIdResponseBody$inboundSchema.parse(JSON.parse(x)),
|
|
705
|
-
`Failed to parse 'GetV2HumanEvalsIdResponseBody' from JSON`,
|
|
706
|
-
);
|
|
707
|
-
}
|