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