@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
|
@@ -25,7 +25,7 @@ import * as operations from "../models/operations/index.js";
|
|
|
25
25
|
import { APICall, APIPromise } from "../types/async.js";
|
|
26
26
|
import { Result } from "../types/fp.js";
|
|
27
27
|
|
|
28
|
-
export function
|
|
28
|
+
export function feedbackPostV2Feedback(
|
|
29
29
|
client: OrqCore,
|
|
30
30
|
request?: operations.PostV2FeedbackRequestBody | undefined,
|
|
31
31
|
options?: RequestOptions,
|
|
@@ -33,7 +33,7 @@ export function postV2Feedback(
|
|
|
33
33
|
Result<
|
|
34
34
|
operations.PostV2FeedbackResponseBody,
|
|
35
35
|
| errors.PostV2FeedbackResponseBody
|
|
36
|
-
| errors.
|
|
36
|
+
| errors.PostV2FeedbackFeedbackResponseBody
|
|
37
37
|
| OrqError
|
|
38
38
|
| ResponseValidationError
|
|
39
39
|
| ConnectionError
|
|
@@ -60,7 +60,7 @@ async function $do(
|
|
|
60
60
|
Result<
|
|
61
61
|
operations.PostV2FeedbackResponseBody,
|
|
62
62
|
| errors.PostV2FeedbackResponseBody
|
|
63
|
-
| errors.
|
|
63
|
+
| errors.PostV2FeedbackFeedbackResponseBody
|
|
64
64
|
| OrqError
|
|
65
65
|
| ResponseValidationError
|
|
66
66
|
| ConnectionError
|
|
@@ -148,7 +148,7 @@ async function $do(
|
|
|
148
148
|
const [result] = await M.match<
|
|
149
149
|
operations.PostV2FeedbackResponseBody,
|
|
150
150
|
| errors.PostV2FeedbackResponseBody
|
|
151
|
-
| errors.
|
|
151
|
+
| errors.PostV2FeedbackFeedbackResponseBody
|
|
152
152
|
| OrqError
|
|
153
153
|
| ResponseValidationError
|
|
154
154
|
| ConnectionError
|
|
@@ -160,7 +160,7 @@ async function $do(
|
|
|
160
160
|
>(
|
|
161
161
|
M.json(200, operations.PostV2FeedbackResponseBody$inboundSchema),
|
|
162
162
|
M.jsonErr(400, errors.PostV2FeedbackResponseBody$inboundSchema),
|
|
163
|
-
M.jsonErr(404, errors.
|
|
163
|
+
M.jsonErr(404, errors.PostV2FeedbackFeedbackResponseBody$inboundSchema),
|
|
164
164
|
M.fail("4XX"),
|
|
165
165
|
M.fail("5XX"),
|
|
166
166
|
)(response, req, { extraFields: responseFields });
|
|
@@ -25,7 +25,7 @@ import * as operations from "../models/operations/index.js";
|
|
|
25
25
|
import { APICall, APIPromise } from "../types/async.js";
|
|
26
26
|
import { Result } from "../types/fp.js";
|
|
27
27
|
|
|
28
|
-
export function
|
|
28
|
+
export function feedbackPostV2FeedbackRemove(
|
|
29
29
|
client: OrqCore,
|
|
30
30
|
request?: operations.PostV2FeedbackRemoveRequestBody | undefined,
|
|
31
31
|
options?: RequestOptions,
|
|
@@ -30,7 +30,7 @@ import { Result } from "../types/fp.js";
|
|
|
30
30
|
* @remarks
|
|
31
31
|
* Retrieves the details of an existing guardrail rule by ID.
|
|
32
32
|
*/
|
|
33
|
-
export function
|
|
33
|
+
export function guardrailRulesRetrieve(
|
|
34
34
|
client: OrqCore,
|
|
35
35
|
request: operations.GuardrailRuleGetRequest,
|
|
36
36
|
options?: RequestOptions,
|
|
@@ -34,7 +34,7 @@ export function knowledgeCreateChunks(
|
|
|
34
34
|
options?: RequestOptions,
|
|
35
35
|
): APIPromise<
|
|
36
36
|
Result<
|
|
37
|
-
Array<operations.
|
|
37
|
+
Array<operations.ResponseBody>,
|
|
38
38
|
| OrqError
|
|
39
39
|
| ResponseValidationError
|
|
40
40
|
| ConnectionError
|
|
@@ -59,7 +59,7 @@ async function $do(
|
|
|
59
59
|
): Promise<
|
|
60
60
|
[
|
|
61
61
|
Result<
|
|
62
|
-
Array<operations.
|
|
62
|
+
Array<operations.ResponseBody>,
|
|
63
63
|
| OrqError
|
|
64
64
|
| ResponseValidationError
|
|
65
65
|
| ConnectionError
|
|
@@ -148,7 +148,7 @@ async function $do(
|
|
|
148
148
|
const response = doResult.value;
|
|
149
149
|
|
|
150
150
|
const [result] = await M.match<
|
|
151
|
-
Array<operations.
|
|
151
|
+
Array<operations.ResponseBody>,
|
|
152
152
|
| OrqError
|
|
153
153
|
| ResponseValidationError
|
|
154
154
|
| ConnectionError
|
|
@@ -158,7 +158,7 @@ async function $do(
|
|
|
158
158
|
| UnexpectedClientError
|
|
159
159
|
| SDKValidationError
|
|
160
160
|
>(
|
|
161
|
-
M.json(200, z.array(operations.
|
|
161
|
+
M.json(200, z.array(operations.ResponseBody$inboundSchema)),
|
|
162
162
|
M.fail("4XX"),
|
|
163
163
|
M.fail([500, "5XX"]),
|
|
164
164
|
)(response, req);
|
|
@@ -30,7 +30,7 @@ import { Result } from "../types/fp.js";
|
|
|
30
30
|
* @remarks
|
|
31
31
|
* Retrieves the details of an existing policy by ID.
|
|
32
32
|
*/
|
|
33
|
-
export function
|
|
33
|
+
export function policiesRetrieve(
|
|
34
34
|
client: OrqCore,
|
|
35
35
|
request: operations.PolicyGetRequest,
|
|
36
36
|
options?: RequestOptions,
|
|
@@ -30,7 +30,7 @@ import { Result } from "../types/fp.js";
|
|
|
30
30
|
* @remarks
|
|
31
31
|
* Retrieves the details of an existing routing rule by ID.
|
|
32
32
|
*/
|
|
33
|
-
export function
|
|
33
|
+
export function routingRulesRetrieve(
|
|
34
34
|
client: OrqCore,
|
|
35
35
|
request: operations.RoutingRuleGetRequest,
|
|
36
36
|
options?: RequestOptions,
|
package/src/lib/config.ts
CHANGED
|
@@ -68,7 +68,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
68
68
|
export const SDK_METADATA = {
|
|
69
69
|
language: "typescript",
|
|
70
70
|
openapiDocVersion: "2.0",
|
|
71
|
-
sdkVersion: "4.8.0-rc.
|
|
71
|
+
sdkVersion: "4.8.0-rc.18",
|
|
72
72
|
genVersion: "2.879.13",
|
|
73
|
-
userAgent: "speakeasy-sdk/typescript 4.8.0-rc.
|
|
73
|
+
userAgent: "speakeasy-sdk/typescript 4.8.0-rc.18 2.879.13 2.0 @orq-ai/node",
|
|
74
74
|
} as const;
|
|
@@ -40,7 +40,7 @@ export const ReasoningPart$inboundSchema: z.ZodType<
|
|
|
40
40
|
z.ZodTypeDef,
|
|
41
41
|
unknown
|
|
42
42
|
> = z.object({
|
|
43
|
-
_id: z.string().default("
|
|
43
|
+
_id: z.string().default("reasoning_01kp85vkg04dsv75paevg1w7rr"),
|
|
44
44
|
metadata: z.record(z.any()).optional(),
|
|
45
45
|
kind: z.literal("reasoning"),
|
|
46
46
|
reasoning: z.string(),
|
|
@@ -11,24 +11,19 @@ export * from "./deleteagent.js";
|
|
|
11
11
|
export * from "./deleteeval.js";
|
|
12
12
|
export * from "./deleteidentity.js";
|
|
13
13
|
export * from "./deleteprompt.js";
|
|
14
|
-
export * from "./deletev2humanevalsid.js";
|
|
15
14
|
export * from "./getevals.js";
|
|
16
15
|
export * from "./getpromptversion.js";
|
|
17
16
|
export * from "./getv2evaluatorsidversions.js";
|
|
18
|
-
export * from "./getv2humanevals.js";
|
|
19
|
-
export * from "./getv2humanevalsid.js";
|
|
20
17
|
export * from "./getv2toolstoolidversions.js";
|
|
21
18
|
export * from "./getv2toolstoolidversionsversionid.js";
|
|
22
19
|
export * from "./honoapierror.js";
|
|
23
20
|
export * from "./httpclienterrors.js";
|
|
24
21
|
export * from "./invokeeval.js";
|
|
25
22
|
export * from "./orqerror.js";
|
|
26
|
-
export * from "./patchv2humanevalsid.js";
|
|
27
23
|
export * from "./postv2agentsa2a.js";
|
|
28
24
|
export * from "./postv2agentskeycardrefresh.js";
|
|
29
25
|
export * from "./postv2feedback.js";
|
|
30
26
|
export * from "./postv2feedbackremove.js";
|
|
31
|
-
export * from "./postv2humanevals.js";
|
|
32
27
|
export * from "./responsevalidationerror.js";
|
|
33
28
|
export * from "./retrieveagentrequest.js";
|
|
34
29
|
export * from "./retrieveidentity.js";
|
|
@@ -8,26 +8,26 @@ import { OrqError } from "./orqerror.js";
|
|
|
8
8
|
/**
|
|
9
9
|
* Workspace ID is not found on the request
|
|
10
10
|
*/
|
|
11
|
-
export type
|
|
11
|
+
export type PostV2FeedbackFeedbackResponseBodyData = {
|
|
12
12
|
message: string;
|
|
13
13
|
};
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
16
|
* Workspace ID is not found on the request
|
|
17
17
|
*/
|
|
18
|
-
export class
|
|
18
|
+
export class PostV2FeedbackFeedbackResponseBody extends OrqError {
|
|
19
19
|
/** The original data that was passed to this error instance. */
|
|
20
|
-
data$:
|
|
20
|
+
data$: PostV2FeedbackFeedbackResponseBodyData;
|
|
21
21
|
|
|
22
22
|
constructor(
|
|
23
|
-
err:
|
|
23
|
+
err: PostV2FeedbackFeedbackResponseBodyData,
|
|
24
24
|
httpMeta: { response: Response; request: Request; body: string },
|
|
25
25
|
) {
|
|
26
26
|
const message = err.message || `API error occurred: ${JSON.stringify(err)}`;
|
|
27
27
|
super(message, httpMeta);
|
|
28
28
|
this.data$ = err;
|
|
29
29
|
|
|
30
|
-
this.name = "
|
|
30
|
+
this.name = "PostV2FeedbackFeedbackResponseBody";
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
33
|
|
|
@@ -58,8 +58,8 @@ export class PostV2FeedbackResponseBody extends OrqError {
|
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
/** @internal */
|
|
61
|
-
export const
|
|
62
|
-
|
|
61
|
+
export const PostV2FeedbackFeedbackResponseBody$inboundSchema: z.ZodType<
|
|
62
|
+
PostV2FeedbackFeedbackResponseBody,
|
|
63
63
|
z.ZodTypeDef,
|
|
64
64
|
unknown
|
|
65
65
|
> = z.object({
|
|
@@ -69,7 +69,7 @@ export const PostV2FeedbackResponseResponseBody$inboundSchema: z.ZodType<
|
|
|
69
69
|
body$: z.string(),
|
|
70
70
|
})
|
|
71
71
|
.transform((v) => {
|
|
72
|
-
return new
|
|
72
|
+
return new PostV2FeedbackFeedbackResponseBody(v, {
|
|
73
73
|
request: v.request$,
|
|
74
74
|
response: v.response$,
|
|
75
75
|
body: v.body$,
|
|
@@ -55,7 +55,7 @@ export const CreateChunkStatus = {
|
|
|
55
55
|
*/
|
|
56
56
|
export type CreateChunkStatus = ClosedEnum<typeof CreateChunkStatus>;
|
|
57
57
|
|
|
58
|
-
export type
|
|
58
|
+
export type ResponseBody = {
|
|
59
59
|
/**
|
|
60
60
|
* The unique identifier of the chunk
|
|
61
61
|
*/
|
|
@@ -189,8 +189,8 @@ export const CreateChunkStatus$inboundSchema: z.ZodNativeEnum<
|
|
|
189
189
|
> = z.nativeEnum(CreateChunkStatus);
|
|
190
190
|
|
|
191
191
|
/** @internal */
|
|
192
|
-
export const
|
|
193
|
-
|
|
192
|
+
export const ResponseBody$inboundSchema: z.ZodType<
|
|
193
|
+
ResponseBody,
|
|
194
194
|
z.ZodTypeDef,
|
|
195
195
|
unknown
|
|
196
196
|
> = z.object({
|
|
@@ -211,12 +211,12 @@ export const CreateChunkResponseBody$inboundSchema: z.ZodType<
|
|
|
211
211
|
});
|
|
212
212
|
});
|
|
213
213
|
|
|
214
|
-
export function
|
|
214
|
+
export function responseBodyFromJSON(
|
|
215
215
|
jsonString: string,
|
|
216
|
-
): SafeParseResult<
|
|
216
|
+
): SafeParseResult<ResponseBody, SDKValidationError> {
|
|
217
217
|
return safeParse(
|
|
218
218
|
jsonString,
|
|
219
|
-
(x) =>
|
|
220
|
-
`Failed to parse '
|
|
219
|
+
(x) => ResponseBody$inboundSchema.parse(JSON.parse(x)),
|
|
220
|
+
`Failed to parse 'ResponseBody' from JSON`,
|
|
221
221
|
);
|
|
222
222
|
}
|
|
@@ -134,7 +134,7 @@ export const CreateContactResponseBody$inboundSchema: z.ZodType<
|
|
|
134
134
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
135
135
|
.optional(),
|
|
136
136
|
updated: z.string().datetime({ offset: true }).default(
|
|
137
|
-
"2026-04-
|
|
137
|
+
"2026-04-15T08:59:03.464Z",
|
|
138
138
|
).transform(v => new Date(v)),
|
|
139
139
|
}).transform((v) => {
|
|
140
140
|
return remap$(v, {
|
|
@@ -138,7 +138,7 @@ export const CreateDatasetResponseBody$inboundSchema: z.ZodType<
|
|
|
138
138
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
139
139
|
.optional(),
|
|
140
140
|
updated: z.string().datetime({ offset: true }).default(
|
|
141
|
-
"2026-04-
|
|
141
|
+
"2026-04-15T08:59:03.464Z",
|
|
142
142
|
).transform(v => new Date(v)),
|
|
143
143
|
}).transform((v) => {
|
|
144
144
|
return remap$(v, {
|
|
@@ -2355,7 +2355,7 @@ export const Evaluations3$inboundSchema: z.ZodType<
|
|
|
2355
2355
|
),
|
|
2356
2356
|
reviewed_by_id: z.string(),
|
|
2357
2357
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
2358
|
-
"2026-04-
|
|
2358
|
+
"2026-04-15T08:59:20.586Z",
|
|
2359
2359
|
).transform(v => new Date(v)),
|
|
2360
2360
|
type: z.literal("string_array"),
|
|
2361
2361
|
values: z.array(z.string()),
|
|
@@ -2400,7 +2400,7 @@ export const Evaluations2$inboundSchema: z.ZodType<
|
|
|
2400
2400
|
source: CreateDatasetItemEvaluationsSource$inboundSchema.default("orq"),
|
|
2401
2401
|
reviewed_by_id: z.string(),
|
|
2402
2402
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
2403
|
-
"2026-04-
|
|
2403
|
+
"2026-04-15T08:59:20.586Z",
|
|
2404
2404
|
).transform(v => new Date(v)),
|
|
2405
2405
|
type: z.literal("number"),
|
|
2406
2406
|
value: z.number(),
|
|
@@ -2446,7 +2446,7 @@ export const Evaluations1$inboundSchema: z.ZodType<
|
|
|
2446
2446
|
source: EvaluationsSource$inboundSchema.default("orq"),
|
|
2447
2447
|
reviewed_by_id: z.string(),
|
|
2448
2448
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
2449
|
-
"2026-04-
|
|
2449
|
+
"2026-04-15T08:59:20.586Z",
|
|
2450
2450
|
).transform(v => new Date(v)),
|
|
2451
2451
|
type: z.literal("string"),
|
|
2452
2452
|
value: z.string(),
|
|
@@ -2529,7 +2529,7 @@ export const CreateDatasetItemResponseBody$inboundSchema: z.ZodType<
|
|
|
2529
2529
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
2530
2530
|
.optional(),
|
|
2531
2531
|
updated: z.string().datetime({ offset: true }).default(
|
|
2532
|
-
"2026-04-
|
|
2532
|
+
"2026-04-15T08:59:03.464Z",
|
|
2533
2533
|
).transform(v => new Date(v)),
|
|
2534
2534
|
}).transform((v) => {
|
|
2535
2535
|
return remap$(v, {
|
|
@@ -403,7 +403,7 @@ export const CreateDatasourceResponseBody$inboundSchema: z.ZodType<
|
|
|
403
403
|
z.ZodTypeDef,
|
|
404
404
|
unknown
|
|
405
405
|
> = z.object({
|
|
406
|
-
_id: z.string().default("
|
|
406
|
+
_id: z.string().default("01KP85VM258T59WGPSB6R0JY5R"),
|
|
407
407
|
display_name: z.string(),
|
|
408
408
|
description: z.string().optional(),
|
|
409
409
|
status: CreateDatasourceStatus$inboundSchema,
|
|
@@ -816,7 +816,7 @@ export type Seven = {
|
|
|
816
816
|
type: "contains_valid_link";
|
|
817
817
|
};
|
|
818
818
|
|
|
819
|
-
export type
|
|
819
|
+
export type Six = {
|
|
820
820
|
type: "contains_url";
|
|
821
821
|
};
|
|
822
822
|
|
|
@@ -850,7 +850,7 @@ export type FunctionParams =
|
|
|
850
850
|
| CreateEvalFunctionParams3
|
|
851
851
|
| CreateEvalFunctionParams4
|
|
852
852
|
| CreateEvalFunctionParams5
|
|
853
|
-
|
|
|
853
|
+
| Six
|
|
854
854
|
| Seven
|
|
855
855
|
| Eight
|
|
856
856
|
| Nine
|
|
@@ -896,7 +896,7 @@ export type CreateEvalResponseBodyFunction = {
|
|
|
896
896
|
| CreateEvalFunctionParams3
|
|
897
897
|
| CreateEvalFunctionParams4
|
|
898
898
|
| CreateEvalFunctionParams5
|
|
899
|
-
|
|
|
899
|
+
| Six
|
|
900
900
|
| Seven
|
|
901
901
|
| Eight
|
|
902
902
|
| Nine
|
|
@@ -1101,11 +1101,10 @@ export type ResponseBodyGuardrailConfig =
|
|
|
1101
1101
|
| CreateEvalGuardrailConfigEvalsResponseCategorical
|
|
1102
1102
|
| CreateEvalGuardrailConfigEvalsResponseNumber;
|
|
1103
1103
|
|
|
1104
|
-
export const
|
|
1104
|
+
export const ResponseBodyType = {
|
|
1105
1105
|
JsonSchema: "json_schema",
|
|
1106
1106
|
} as const;
|
|
1107
|
-
export type
|
|
1108
|
-
ClosedEnum<typeof CreateEvalResponseBodyEvalsResponse200ApplicationJson2Type>;
|
|
1107
|
+
export type ResponseBodyType = ClosedEnum<typeof ResponseBodyType>;
|
|
1109
1108
|
|
|
1110
1109
|
export type ResponseBodyJSON = {
|
|
1111
1110
|
id: string;
|
|
@@ -1118,7 +1117,7 @@ export type ResponseBodyJSON = {
|
|
|
1118
1117
|
| CreateEvalGuardrailConfigEvalsResponseNumber
|
|
1119
1118
|
| null
|
|
1120
1119
|
| undefined;
|
|
1121
|
-
type:
|
|
1120
|
+
type: ResponseBodyType;
|
|
1122
1121
|
schema: string;
|
|
1123
1122
|
key: string;
|
|
1124
1123
|
};
|
|
@@ -2777,8 +2776,8 @@ export const Typescript$inboundSchema: z.ZodType<
|
|
|
2777
2776
|
> = z.object({
|
|
2778
2777
|
_id: z.string(),
|
|
2779
2778
|
description: z.string(),
|
|
2780
|
-
created: z.string().default("2026-04-
|
|
2781
|
-
updated: z.string().default("2026-04-
|
|
2779
|
+
created: z.string().default("2026-04-15T08:59:05.964Z"),
|
|
2780
|
+
updated: z.string().default("2026-04-15T08:59:05.964Z"),
|
|
2782
2781
|
guardrail_config: z.nullable(
|
|
2783
2782
|
z.union([
|
|
2784
2783
|
z.lazy(() =>
|
|
@@ -2966,8 +2965,8 @@ export const Ragas$inboundSchema: z.ZodType<Ragas, z.ZodTypeDef, unknown> = z
|
|
|
2966
2965
|
.object({
|
|
2967
2966
|
_id: z.string(),
|
|
2968
2967
|
description: z.string(),
|
|
2969
|
-
created: z.string().default("2026-04-
|
|
2970
|
-
updated: z.string().default("2026-04-
|
|
2968
|
+
created: z.string().default("2026-04-15T08:59:05.964Z"),
|
|
2969
|
+
updated: z.string().default("2026-04-15T08:59:05.964Z"),
|
|
2971
2970
|
guardrail_config: z.nullable(
|
|
2972
2971
|
z.union([
|
|
2973
2972
|
z.lazy(() =>
|
|
@@ -3621,21 +3620,18 @@ export function sevenFromJSON(
|
|
|
3621
3620
|
}
|
|
3622
3621
|
|
|
3623
3622
|
/** @internal */
|
|
3624
|
-
export const
|
|
3625
|
-
|
|
3626
|
-
|
|
3627
|
-
|
|
3628
|
-
> = z.object({
|
|
3629
|
-
type: z.literal("contains_url"),
|
|
3630
|
-
});
|
|
3623
|
+
export const Six$inboundSchema: z.ZodType<Six, z.ZodTypeDef, unknown> = z
|
|
3624
|
+
.object({
|
|
3625
|
+
type: z.literal("contains_url"),
|
|
3626
|
+
});
|
|
3631
3627
|
|
|
3632
|
-
export function
|
|
3628
|
+
export function sixFromJSON(
|
|
3633
3629
|
jsonString: string,
|
|
3634
|
-
): SafeParseResult<
|
|
3630
|
+
): SafeParseResult<Six, SDKValidationError> {
|
|
3635
3631
|
return safeParse(
|
|
3636
3632
|
jsonString,
|
|
3637
|
-
(x) =>
|
|
3638
|
-
`Failed to parse '
|
|
3633
|
+
(x) => Six$inboundSchema.parse(JSON.parse(x)),
|
|
3634
|
+
`Failed to parse 'Six' from JSON`,
|
|
3639
3635
|
);
|
|
3640
3636
|
}
|
|
3641
3637
|
|
|
@@ -3749,7 +3745,7 @@ export const FunctionParams$inboundSchema: z.ZodType<
|
|
|
3749
3745
|
z.lazy(() => CreateEvalFunctionParams3$inboundSchema),
|
|
3750
3746
|
z.lazy(() => CreateEvalFunctionParams4$inboundSchema),
|
|
3751
3747
|
z.lazy(() => CreateEvalFunctionParams5$inboundSchema),
|
|
3752
|
-
z.lazy(() =>
|
|
3748
|
+
z.lazy(() => Six$inboundSchema),
|
|
3753
3749
|
z.lazy(() => Seven$inboundSchema),
|
|
3754
3750
|
z.lazy(() => Eight$inboundSchema),
|
|
3755
3751
|
z.lazy(() => Nine$inboundSchema),
|
|
@@ -3796,8 +3792,8 @@ export const CreateEvalResponseBodyFunction$inboundSchema: z.ZodType<
|
|
|
3796
3792
|
> = z.object({
|
|
3797
3793
|
_id: z.string(),
|
|
3798
3794
|
description: z.string(),
|
|
3799
|
-
created: z.string().default("2026-04-
|
|
3800
|
-
updated: z.string().default("2026-04-
|
|
3795
|
+
created: z.string().default("2026-04-15T08:59:05.964Z"),
|
|
3796
|
+
updated: z.string().default("2026-04-15T08:59:05.964Z"),
|
|
3801
3797
|
guardrail_config: z.nullable(
|
|
3802
3798
|
z.union([
|
|
3803
3799
|
z.lazy(() =>
|
|
@@ -3818,7 +3814,7 @@ export const CreateEvalResponseBodyFunction$inboundSchema: z.ZodType<
|
|
|
3818
3814
|
z.lazy(() => CreateEvalFunctionParams3$inboundSchema),
|
|
3819
3815
|
z.lazy(() => CreateEvalFunctionParams4$inboundSchema),
|
|
3820
3816
|
z.lazy(() => CreateEvalFunctionParams5$inboundSchema),
|
|
3821
|
-
z.lazy(() =>
|
|
3817
|
+
z.lazy(() => Six$inboundSchema),
|
|
3822
3818
|
z.lazy(() => Seven$inboundSchema),
|
|
3823
3819
|
z.lazy(() => Eight$inboundSchema),
|
|
3824
3820
|
z.lazy(() => Nine$inboundSchema),
|
|
@@ -4015,8 +4011,8 @@ export const ResponseBodyPython$inboundSchema: z.ZodType<
|
|
|
4015
4011
|
> = z.object({
|
|
4016
4012
|
_id: z.string(),
|
|
4017
4013
|
description: z.string(),
|
|
4018
|
-
created: z.string().default("2026-04-
|
|
4019
|
-
updated: z.string().default("2026-04-
|
|
4014
|
+
created: z.string().default("2026-04-15T08:59:05.964Z"),
|
|
4015
|
+
updated: z.string().default("2026-04-15T08:59:05.964Z"),
|
|
4020
4016
|
guardrail_config: z.nullable(
|
|
4021
4017
|
z.union([
|
|
4022
4018
|
z.lazy(() =>
|
|
@@ -4197,8 +4193,8 @@ export const ResponseBodyHTTP$inboundSchema: z.ZodType<
|
|
|
4197
4193
|
> = z.object({
|
|
4198
4194
|
_id: z.string(),
|
|
4199
4195
|
description: z.string(),
|
|
4200
|
-
created: z.string().default("2026-04-
|
|
4201
|
-
updated: z.string().default("2026-04-
|
|
4196
|
+
created: z.string().default("2026-04-15T08:59:05.964Z"),
|
|
4197
|
+
updated: z.string().default("2026-04-15T08:59:05.964Z"),
|
|
4202
4198
|
guardrail_config: z.nullable(
|
|
4203
4199
|
z.union([
|
|
4204
4200
|
z.lazy(() =>
|
|
@@ -4362,10 +4358,9 @@ export function responseBodyGuardrailConfigFromJSON(
|
|
|
4362
4358
|
}
|
|
4363
4359
|
|
|
4364
4360
|
/** @internal */
|
|
4365
|
-
export const
|
|
4366
|
-
|
|
4367
|
-
|
|
4368
|
-
> = z.nativeEnum(CreateEvalResponseBodyEvalsResponse200ApplicationJson2Type);
|
|
4361
|
+
export const ResponseBodyType$inboundSchema: z.ZodNativeEnum<
|
|
4362
|
+
typeof ResponseBodyType
|
|
4363
|
+
> = z.nativeEnum(ResponseBodyType);
|
|
4369
4364
|
|
|
4370
4365
|
/** @internal */
|
|
4371
4366
|
export const ResponseBodyJSON$inboundSchema: z.ZodType<
|
|
@@ -4375,8 +4370,8 @@ export const ResponseBodyJSON$inboundSchema: z.ZodType<
|
|
|
4375
4370
|
> = z.object({
|
|
4376
4371
|
_id: z.string(),
|
|
4377
4372
|
description: z.string(),
|
|
4378
|
-
created: z.string().default("2026-04-
|
|
4379
|
-
updated: z.string().default("2026-04-
|
|
4373
|
+
created: z.string().default("2026-04-15T08:59:05.964Z"),
|
|
4374
|
+
updated: z.string().default("2026-04-15T08:59:05.964Z"),
|
|
4380
4375
|
guardrail_config: z.nullable(
|
|
4381
4376
|
z.union([
|
|
4382
4377
|
z.lazy(() => CreateEvalGuardrailConfigEvalsResponseBoolean$inboundSchema),
|
|
@@ -4386,8 +4381,7 @@ export const ResponseBodyJSON$inboundSchema: z.ZodType<
|
|
|
4386
4381
|
z.lazy(() => CreateEvalGuardrailConfigEvalsResponseNumber$inboundSchema),
|
|
4387
4382
|
]),
|
|
4388
4383
|
).optional(),
|
|
4389
|
-
type:
|
|
4390
|
-
CreateEvalResponseBodyEvalsResponse200ApplicationJson2Type$inboundSchema,
|
|
4384
|
+
type: ResponseBodyType$inboundSchema,
|
|
4391
4385
|
schema: z.string(),
|
|
4392
4386
|
key: z.string(),
|
|
4393
4387
|
}).transform((v) => {
|
|
@@ -4747,8 +4741,8 @@ export const CreateEvalLlm2$inboundSchema: z.ZodType<
|
|
|
4747
4741
|
> = z.object({
|
|
4748
4742
|
_id: z.string(),
|
|
4749
4743
|
description: z.string(),
|
|
4750
|
-
created: z.string().default("2026-04-
|
|
4751
|
-
updated: z.string().default("2026-04-
|
|
4744
|
+
created: z.string().default("2026-04-15T08:59:05.964Z"),
|
|
4745
|
+
updated: z.string().default("2026-04-15T08:59:05.964Z"),
|
|
4752
4746
|
guardrail_config: z.nullable(
|
|
4753
4747
|
z.union([
|
|
4754
4748
|
z.lazy(() =>
|
|
@@ -4963,8 +4957,8 @@ export const CreateEvalLlm1$inboundSchema: z.ZodType<
|
|
|
4963
4957
|
> = z.object({
|
|
4964
4958
|
_id: z.string(),
|
|
4965
4959
|
description: z.string(),
|
|
4966
|
-
created: z.string().default("2026-04-
|
|
4967
|
-
updated: z.string().default("2026-04-
|
|
4960
|
+
created: z.string().default("2026-04-15T08:59:05.964Z"),
|
|
4961
|
+
updated: z.string().default("2026-04-15T08:59:05.964Z"),
|
|
4968
4962
|
guardrail_config: z.nullable(
|
|
4969
4963
|
z.union([
|
|
4970
4964
|
z.lazy(() =>
|
|
@@ -139,7 +139,7 @@ export const CreateIdentityResponseBody$inboundSchema: z.ZodType<
|
|
|
139
139
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
140
140
|
.optional(),
|
|
141
141
|
updated: z.string().datetime({ offset: true }).default(
|
|
142
|
-
"2026-04-
|
|
142
|
+
"2026-04-15T08:59:03.464Z",
|
|
143
143
|
).transform(v => new Date(v)),
|
|
144
144
|
}).transform((v) => {
|
|
145
145
|
return remap$(v, {
|
|
@@ -214,7 +214,7 @@ export type ResponseBodyExternalConfig = {
|
|
|
214
214
|
apiUrl: string;
|
|
215
215
|
};
|
|
216
216
|
|
|
217
|
-
export type
|
|
217
|
+
export type ResponseBody2 = {
|
|
218
218
|
/**
|
|
219
219
|
* The unique identifier of the knowledge base.
|
|
220
220
|
*/
|
|
@@ -335,7 +335,7 @@ export type ResponseBodyRetrievalSettings = {
|
|
|
335
335
|
agenticRagConfig?: ResponseBodyAgenticRagConfig | null | undefined;
|
|
336
336
|
};
|
|
337
337
|
|
|
338
|
-
export type
|
|
338
|
+
export type ResponseBody1 = {
|
|
339
339
|
/**
|
|
340
340
|
* The unique identifier of the knowledge base.
|
|
341
341
|
*/
|
|
@@ -386,9 +386,7 @@ export type CreateKnowledgeResponseBody1 = {
|
|
|
386
386
|
/**
|
|
387
387
|
* Knowledge successfully created
|
|
388
388
|
*/
|
|
389
|
-
export type CreateKnowledgeResponseBody =
|
|
390
|
-
| CreateKnowledgeResponseBody1
|
|
391
|
-
| CreateKnowledgeResponseBody2;
|
|
389
|
+
export type CreateKnowledgeResponseBody = ResponseBody1 | ResponseBody2;
|
|
392
390
|
|
|
393
391
|
/** @internal */
|
|
394
392
|
export const CreateKnowledgeRequestBodyKnowledgeType$outboundSchema:
|
|
@@ -766,8 +764,8 @@ export function responseBodyExternalConfigFromJSON(
|
|
|
766
764
|
}
|
|
767
765
|
|
|
768
766
|
/** @internal */
|
|
769
|
-
export const
|
|
770
|
-
|
|
767
|
+
export const ResponseBody2$inboundSchema: z.ZodType<
|
|
768
|
+
ResponseBody2,
|
|
771
769
|
z.ZodTypeDef,
|
|
772
770
|
unknown
|
|
773
771
|
> = z.object({
|
|
@@ -798,13 +796,13 @@ export const CreateKnowledgeResponseBody2$inboundSchema: z.ZodType<
|
|
|
798
796
|
});
|
|
799
797
|
});
|
|
800
798
|
|
|
801
|
-
export function
|
|
799
|
+
export function responseBody2FromJSON(
|
|
802
800
|
jsonString: string,
|
|
803
|
-
): SafeParseResult<
|
|
801
|
+
): SafeParseResult<ResponseBody2, SDKValidationError> {
|
|
804
802
|
return safeParse(
|
|
805
803
|
jsonString,
|
|
806
|
-
(x) =>
|
|
807
|
-
`Failed to parse '
|
|
804
|
+
(x) => ResponseBody2$inboundSchema.parse(JSON.parse(x)),
|
|
805
|
+
`Failed to parse 'ResponseBody2' from JSON`,
|
|
808
806
|
);
|
|
809
807
|
}
|
|
810
808
|
|
|
@@ -901,8 +899,8 @@ export function responseBodyRetrievalSettingsFromJSON(
|
|
|
901
899
|
}
|
|
902
900
|
|
|
903
901
|
/** @internal */
|
|
904
|
-
export const
|
|
905
|
-
|
|
902
|
+
export const ResponseBody1$inboundSchema: z.ZodType<
|
|
903
|
+
ResponseBody1,
|
|
906
904
|
z.ZodTypeDef,
|
|
907
905
|
unknown
|
|
908
906
|
> = z.object({
|
|
@@ -929,13 +927,13 @@ export const CreateKnowledgeResponseBody1$inboundSchema: z.ZodType<
|
|
|
929
927
|
});
|
|
930
928
|
});
|
|
931
929
|
|
|
932
|
-
export function
|
|
930
|
+
export function responseBody1FromJSON(
|
|
933
931
|
jsonString: string,
|
|
934
|
-
): SafeParseResult<
|
|
932
|
+
): SafeParseResult<ResponseBody1, SDKValidationError> {
|
|
935
933
|
return safeParse(
|
|
936
934
|
jsonString,
|
|
937
|
-
(x) =>
|
|
938
|
-
`Failed to parse '
|
|
935
|
+
(x) => ResponseBody1$inboundSchema.parse(JSON.parse(x)),
|
|
936
|
+
`Failed to parse 'ResponseBody1' from JSON`,
|
|
939
937
|
);
|
|
940
938
|
}
|
|
941
939
|
|
|
@@ -945,8 +943,8 @@ export const CreateKnowledgeResponseBody$inboundSchema: z.ZodType<
|
|
|
945
943
|
z.ZodTypeDef,
|
|
946
944
|
unknown
|
|
947
945
|
> = z.union([
|
|
948
|
-
z.lazy(() =>
|
|
949
|
-
z.lazy(() =>
|
|
946
|
+
z.lazy(() => ResponseBody1$inboundSchema),
|
|
947
|
+
z.lazy(() => ResponseBody2$inboundSchema),
|
|
950
948
|
]);
|
|
951
949
|
|
|
952
950
|
export function createKnowledgeResponseBodyFromJSON(
|