@orq-ai/node 4.11.0-rc.1 → 4.11.0-rc.2
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 +81 -70
- package/examples/{postV2FeedbackEvaluationRemove.example.ts → evalsAll.example.ts} +4 -2
- package/funcs/{agentsPostV2AgentsKeyCardRefresh.d.ts → agentsRefreshKeyCard.d.ts} +2 -2
- package/funcs/agentsRefreshKeyCard.d.ts.map +1 -0
- package/funcs/{agentsPostV2AgentsKeyCardRefresh.js → agentsRefreshKeyCard.js} +3 -3
- package/funcs/agentsRefreshKeyCard.js.map +1 -0
- package/funcs/{evalsGetV2EvaluatorsIdVersions.d.ts → evalsListVersions.d.ts} +2 -2
- package/funcs/evalsListVersions.d.ts.map +1 -0
- package/funcs/{evalsGetV2EvaluatorsIdVersions.js → evalsListVersions.js} +3 -3
- package/funcs/evalsListVersions.js.map +1 -0
- package/funcs/{feedbackPostV2FeedbackRemove.d.ts → feedbackCreate.d.ts} +2 -2
- package/funcs/feedbackCreate.d.ts.map +1 -0
- package/funcs/{feedbackPostV2Feedback.js → feedbackCreate.js} +3 -3
- package/funcs/feedbackCreate.js.map +1 -0
- package/funcs/{postV2FeedbackEvaluation.d.ts → feedbackCreateEvaluation.d.ts} +2 -2
- package/funcs/{postV2FeedbackEvaluation.d.ts.map → feedbackCreateEvaluation.d.ts.map} +1 -1
- package/funcs/{postV2FeedbackEvaluation.js → feedbackCreateEvaluation.js} +3 -3
- package/funcs/{postV2FeedbackEvaluation.js.map → feedbackCreateEvaluation.js.map} +1 -1
- package/funcs/{feedbackPostV2Feedback.d.ts → feedbackRemove.d.ts} +2 -2
- package/funcs/feedbackRemove.d.ts.map +1 -0
- package/funcs/{feedbackPostV2FeedbackRemove.js → feedbackRemove.js} +3 -3
- package/funcs/feedbackRemove.js.map +1 -0
- package/funcs/{humanReviewSetsDeleteV2HumanEvalSetsId.d.ts → feedbackRemoveEvaluation.d.ts} +2 -5
- package/funcs/feedbackRemoveEvaluation.d.ts.map +1 -0
- package/funcs/{postV2FeedbackEvaluationRemove.js → feedbackRemoveEvaluation.js} +3 -3
- package/funcs/feedbackRemoveEvaluation.js.map +1 -0
- package/funcs/guardrailRulesList.js +4 -0
- package/funcs/guardrailRulesList.js.map +1 -1
- package/funcs/guardrailRulesListUsedGuardrails.d.ts +17 -0
- package/funcs/guardrailRulesListUsedGuardrails.d.ts.map +1 -0
- package/funcs/guardrailRulesListUsedGuardrails.js +105 -0
- package/funcs/guardrailRulesListUsedGuardrails.js.map +1 -0
- package/funcs/{humanReviewSetsPostV2HumanEvalSets.d.ts → humanReviewSetsCreate.d.ts} +2 -2
- package/funcs/humanReviewSetsCreate.d.ts.map +1 -0
- package/funcs/{humanReviewSetsPostV2HumanEvalSets.js → humanReviewSetsCreate.js} +3 -3
- package/funcs/humanReviewSetsCreate.js.map +1 -0
- package/funcs/{humanReviewSetsGetV2HumanEvalSets.d.ts → humanReviewSetsDelete.d.ts} +3 -3
- package/funcs/humanReviewSetsDelete.d.ts.map +1 -0
- package/funcs/{humanReviewSetsDeleteV2HumanEvalSetsId.js → humanReviewSetsDelete.js} +3 -3
- package/funcs/humanReviewSetsDelete.js.map +1 -0
- package/funcs/{postV2FeedbackEvaluationRemove.d.ts → humanReviewSetsGet.d.ts} +5 -2
- package/funcs/humanReviewSetsGet.d.ts.map +1 -0
- package/funcs/{humanReviewSetsGetV2HumanEvalSetsId.js → humanReviewSetsGet.js} +3 -3
- package/funcs/humanReviewSetsGet.js.map +1 -0
- package/funcs/{humanReviewSetsGetV2HumanEvalSetsId.d.ts → humanReviewSetsList.d.ts} +3 -3
- package/funcs/humanReviewSetsList.d.ts.map +1 -0
- package/funcs/{humanReviewSetsGetV2HumanEvalSets.js → humanReviewSetsList.js} +3 -3
- package/funcs/humanReviewSetsList.js.map +1 -0
- package/funcs/{humanReviewSetsPatchV2HumanEvalSetsId.d.ts → humanReviewSetsUpdate.d.ts} +2 -2
- package/funcs/humanReviewSetsUpdate.d.ts.map +1 -0
- package/funcs/{humanReviewSetsPatchV2HumanEvalSetsId.js → humanReviewSetsUpdate.js} +3 -3
- package/funcs/humanReviewSetsUpdate.js.map +1 -0
- package/funcs/routingRulesList.js +3 -0
- package/funcs/routingRulesList.js.map +1 -1
- package/funcs/routingRulesListUsedModels.d.ts +17 -0
- package/funcs/routingRulesListUsedModels.d.ts.map +1 -0
- package/funcs/routingRulesListUsedModels.js +105 -0
- package/funcs/routingRulesListUsedModels.js.map +1 -0
- package/funcs/{toolsGetV2ToolsToolIdVersionsVersionId.d.ts → toolsGetVersion.d.ts} +2 -2
- package/funcs/toolsGetVersion.d.ts.map +1 -0
- package/funcs/{toolsGetV2ToolsToolIdVersionsVersionId.js → toolsGetVersion.js} +3 -3
- package/funcs/toolsGetVersion.js.map +1 -0
- package/funcs/{toolsGetV2ToolsToolIdVersions.d.ts → toolsListVersions.d.ts} +2 -2
- package/funcs/toolsListVersions.d.ts.map +1 -0
- package/funcs/{toolsGetV2ToolsToolIdVersions.js → toolsListVersions.js} +3 -3
- package/funcs/toolsListVersions.js.map +1 -0
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/models/components/createfilerequest.d.ts +1 -1
- package/models/components/reasoningpart.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 +4 -4
- package/models/operations/createeval.d.ts.map +1 -1
- package/models/operations/createeval.js +20 -20
- package/models/operations/createeval.js.map +1 -1
- package/models/operations/createknowledge.d.ts +10 -10
- 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/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/guardrailrulelist.d.ts +35 -0
- package/models/operations/guardrailrulelist.d.ts.map +1 -1
- package/models/operations/guardrailrulelist.js +18 -1
- package/models/operations/guardrailrulelist.js.map +1 -1
- package/models/operations/guardrailrulelistusedguardrails.d.ts +14 -0
- package/models/operations/guardrailrulelistusedguardrails.d.ts.map +1 -0
- package/models/operations/guardrailrulelistusedguardrails.js +56 -0
- package/models/operations/guardrailrulelistusedguardrails.js.map +1 -0
- package/models/operations/index.d.ts +2 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +2 -0
- 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/patchv2humanevalsetsid.js +2 -2
- package/models/operations/postv2feedbackevaluation.d.ts +14 -14
- package/models/operations/postv2feedbackevaluation.d.ts.map +1 -1
- package/models/operations/postv2feedbackevaluation.js +18 -18
- package/models/operations/postv2feedbackevaluation.js.map +1 -1
- 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/retrievetool.js +6 -6
- package/models/operations/routingrulelist.d.ts +15 -0
- package/models/operations/routingrulelist.d.ts.map +1 -1
- package/models/operations/routingrulelist.js +3 -0
- package/models/operations/routingrulelist.js.map +1 -1
- package/models/operations/routingrulelistusedmodels.d.ts +14 -0
- package/models/operations/routingrulelistusedmodels.d.ts.map +1 -0
- package/models/operations/routingrulelistusedmodels.js +51 -0
- package/models/operations/routingrulelistusedmodels.js.map +1 -0
- 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/updatetool.js +7 -7
- package/package.json +5 -5
- package/sdk/agents.d.ts +1 -1
- package/sdk/agents.d.ts.map +1 -1
- package/sdk/agents.js +3 -3
- package/sdk/agents.js.map +1 -1
- package/sdk/evals.d.ts +1 -1
- package/sdk/evals.d.ts.map +1 -1
- package/sdk/evals.js +3 -3
- package/sdk/evals.js.map +1 -1
- package/sdk/feedback.d.ts +10 -2
- package/sdk/feedback.d.ts.map +1 -1
- package/sdk/feedback.js +20 -6
- package/sdk/feedback.js.map +1 -1
- package/sdk/guardrailrules.d.ts +7 -0
- package/sdk/guardrailrules.d.ts.map +1 -1
- package/sdk/guardrailrules.js +10 -0
- package/sdk/guardrailrules.js.map +1 -1
- package/sdk/humanreviewsets.d.ts +5 -5
- package/sdk/humanreviewsets.d.ts.map +1 -1
- package/sdk/humanreviewsets.js +15 -15
- package/sdk/humanreviewsets.js.map +1 -1
- package/sdk/routingrules.d.ts +7 -0
- package/sdk/routingrules.d.ts.map +1 -1
- package/sdk/routingrules.js +10 -0
- package/sdk/routingrules.js.map +1 -1
- package/sdk/sdk.d.ts +1 -4
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +0 -9
- package/sdk/sdk.js.map +1 -1
- package/sdk/tools.d.ts +2 -2
- package/sdk/tools.d.ts.map +1 -1
- package/sdk/tools.js +6 -6
- package/sdk/tools.js.map +1 -1
- package/src/funcs/{agentsPostV2AgentsKeyCardRefresh.ts → agentsRefreshKeyCard.ts} +1 -1
- package/src/funcs/{evalsGetV2EvaluatorsIdVersions.ts → evalsListVersions.ts} +1 -1
- package/src/funcs/{feedbackPostV2Feedback.ts → feedbackCreate.ts} +1 -1
- package/src/funcs/{postV2FeedbackEvaluation.ts → feedbackCreateEvaluation.ts} +1 -1
- package/src/funcs/{feedbackPostV2FeedbackRemove.ts → feedbackRemove.ts} +1 -1
- package/src/funcs/{postV2FeedbackEvaluationRemove.ts → feedbackRemoveEvaluation.ts} +1 -1
- package/src/funcs/guardrailRulesList.ts +4 -0
- package/src/funcs/guardrailRulesListUsedGuardrails.ts +147 -0
- package/src/funcs/{humanReviewSetsPostV2HumanEvalSets.ts → humanReviewSetsCreate.ts} +1 -1
- package/src/funcs/{humanReviewSetsDeleteV2HumanEvalSetsId.ts → humanReviewSetsDelete.ts} +1 -1
- package/src/funcs/{humanReviewSetsGetV2HumanEvalSetsId.ts → humanReviewSetsGet.ts} +1 -1
- package/src/funcs/{humanReviewSetsGetV2HumanEvalSets.ts → humanReviewSetsList.ts} +1 -1
- package/src/funcs/{humanReviewSetsPatchV2HumanEvalSetsId.ts → humanReviewSetsUpdate.ts} +1 -1
- package/src/funcs/routingRulesList.ts +3 -0
- package/src/funcs/routingRulesListUsedModels.ts +144 -0
- package/src/funcs/{toolsGetV2ToolsToolIdVersionsVersionId.ts → toolsGetVersion.ts} +1 -1
- package/src/funcs/{toolsGetV2ToolsToolIdVersions.ts → toolsListVersions.ts} +1 -1
- package/src/lib/config.ts +2 -2
- package/src/models/components/createfilerequest.ts +1 -1
- package/src/models/components/reasoningpart.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 +23 -25
- package/src/models/operations/createknowledge.ts +19 -33
- 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/guardrailrulelist.ts +44 -0
- package/src/models/operations/guardrailrulelistusedguardrails.ts +48 -0
- package/src/models/operations/index.ts +2 -0
- 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/patchv2humanevalsetsid.ts +2 -2
- package/src/models/operations/postv2feedbackevaluation.ts +43 -31
- 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/retrievetool.ts +6 -6
- package/src/models/operations/routingrulelist.ts +18 -0
- package/src/models/operations/routingrulelistusedmodels.ts +37 -0
- 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/updatetool.ts +7 -7
- package/src/sdk/agents.ts +3 -3
- package/src/sdk/evals.ts +3 -3
- package/src/sdk/feedback.ts +36 -6
- package/src/sdk/guardrailrules.ts +16 -0
- package/src/sdk/humanreviewsets.ts +15 -15
- package/src/sdk/routingrules.ts +16 -0
- package/src/sdk/sdk.ts +1 -27
- package/src/sdk/tools.ts +6 -6
- package/funcs/agentsPostV2AgentsKeyCardRefresh.d.ts.map +0 -1
- package/funcs/agentsPostV2AgentsKeyCardRefresh.js.map +0 -1
- package/funcs/evalsGetV2EvaluatorsIdVersions.d.ts.map +0 -1
- package/funcs/evalsGetV2EvaluatorsIdVersions.js.map +0 -1
- package/funcs/feedbackPostV2Feedback.d.ts.map +0 -1
- package/funcs/feedbackPostV2Feedback.js.map +0 -1
- package/funcs/feedbackPostV2FeedbackRemove.d.ts.map +0 -1
- package/funcs/feedbackPostV2FeedbackRemove.js.map +0 -1
- package/funcs/humanReviewSetsDeleteV2HumanEvalSetsId.d.ts.map +0 -1
- package/funcs/humanReviewSetsDeleteV2HumanEvalSetsId.js.map +0 -1
- package/funcs/humanReviewSetsGetV2HumanEvalSets.d.ts.map +0 -1
- package/funcs/humanReviewSetsGetV2HumanEvalSets.js.map +0 -1
- package/funcs/humanReviewSetsGetV2HumanEvalSetsId.d.ts.map +0 -1
- package/funcs/humanReviewSetsGetV2HumanEvalSetsId.js.map +0 -1
- package/funcs/humanReviewSetsPatchV2HumanEvalSetsId.d.ts.map +0 -1
- package/funcs/humanReviewSetsPatchV2HumanEvalSetsId.js.map +0 -1
- package/funcs/humanReviewSetsPostV2HumanEvalSets.d.ts.map +0 -1
- package/funcs/humanReviewSetsPostV2HumanEvalSets.js.map +0 -1
- package/funcs/postV2FeedbackEvaluationRemove.d.ts.map +0 -1
- package/funcs/postV2FeedbackEvaluationRemove.js.map +0 -1
- package/funcs/toolsGetV2ToolsToolIdVersions.d.ts.map +0 -1
- package/funcs/toolsGetV2ToolsToolIdVersions.js.map +0 -1
- package/funcs/toolsGetV2ToolsToolIdVersionsVersionId.d.ts.map +0 -1
- package/funcs/toolsGetV2ToolsToolIdVersionsVersionId.js.map +0 -1
|
@@ -0,0 +1,48 @@
|
|
|
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 { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Used guardrails retrieved successfully
|
|
13
|
+
*/
|
|
14
|
+
export type GuardrailRuleListUsedGuardrailsResponseBody = {
|
|
15
|
+
guardrailIds: Array<string> | null;
|
|
16
|
+
object: string;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
/** @internal */
|
|
20
|
+
export const GuardrailRuleListUsedGuardrailsResponseBody$inboundSchema:
|
|
21
|
+
z.ZodType<
|
|
22
|
+
GuardrailRuleListUsedGuardrailsResponseBody,
|
|
23
|
+
z.ZodTypeDef,
|
|
24
|
+
unknown
|
|
25
|
+
> = z.object({
|
|
26
|
+
guardrail_ids: z.nullable(z.array(z.string())),
|
|
27
|
+
object: z.string(),
|
|
28
|
+
}).transform((v) => {
|
|
29
|
+
return remap$(v, {
|
|
30
|
+
"guardrail_ids": "guardrailIds",
|
|
31
|
+
});
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
export function guardrailRuleListUsedGuardrailsResponseBodyFromJSON(
|
|
35
|
+
jsonString: string,
|
|
36
|
+
): SafeParseResult<
|
|
37
|
+
GuardrailRuleListUsedGuardrailsResponseBody,
|
|
38
|
+
SDKValidationError
|
|
39
|
+
> {
|
|
40
|
+
return safeParse(
|
|
41
|
+
jsonString,
|
|
42
|
+
(x) =>
|
|
43
|
+
GuardrailRuleListUsedGuardrailsResponseBody$inboundSchema.parse(
|
|
44
|
+
JSON.parse(x),
|
|
45
|
+
),
|
|
46
|
+
`Failed to parse 'GuardrailRuleListUsedGuardrailsResponseBody' from JSON`,
|
|
47
|
+
);
|
|
48
|
+
}
|
|
@@ -81,6 +81,7 @@ export * from "./guardrailrulecreate.js";
|
|
|
81
81
|
export * from "./guardrailruledelete.js";
|
|
82
82
|
export * from "./guardrailruleget.js";
|
|
83
83
|
export * from "./guardrailrulelist.js";
|
|
84
|
+
export * from "./guardrailrulelistusedguardrails.js";
|
|
84
85
|
export * from "./guardrailruleupdate.js";
|
|
85
86
|
export * from "./invokeagent.js";
|
|
86
87
|
export * from "./invokeeval.js";
|
|
@@ -143,6 +144,7 @@ export * from "./routingrulecreate.js";
|
|
|
143
144
|
export * from "./routingruledelete.js";
|
|
144
145
|
export * from "./routingruleget.js";
|
|
145
146
|
export * from "./routingrulelist.js";
|
|
147
|
+
export * from "./routingrulelistusedmodels.js";
|
|
146
148
|
export * from "./routingruleupdate.js";
|
|
147
149
|
export * from "./runagent.js";
|
|
148
150
|
export * from "./searchknowledge.js";
|
|
@@ -1270,7 +1270,7 @@ export const ListDatasetDatapointsEvaluations3$inboundSchema: z.ZodType<
|
|
|
1270
1270
|
),
|
|
1271
1271
|
reviewed_by_id: z.string(),
|
|
1272
1272
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
1273
|
-
"2026-06-
|
|
1273
|
+
"2026-06-08T05:34:42.542Z",
|
|
1274
1274
|
).transform(v => new Date(v)),
|
|
1275
1275
|
type: z.literal("string_array"),
|
|
1276
1276
|
values: z.array(z.string()),
|
|
@@ -1320,7 +1320,7 @@ export const ListDatasetDatapointsEvaluations2$inboundSchema: z.ZodType<
|
|
|
1320
1320
|
source: ListDatasetDatapointsEvaluationsSource$inboundSchema.default("orq"),
|
|
1321
1321
|
reviewed_by_id: z.string(),
|
|
1322
1322
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
1323
|
-
"2026-06-
|
|
1323
|
+
"2026-06-08T05:34:42.541Z",
|
|
1324
1324
|
).transform(v => new Date(v)),
|
|
1325
1325
|
type: z.literal("number"),
|
|
1326
1326
|
value: z.number(),
|
|
@@ -1369,7 +1369,7 @@ export const ListDatasetDatapointsEvaluations1$inboundSchema: z.ZodType<
|
|
|
1369
1369
|
.default("orq"),
|
|
1370
1370
|
reviewed_by_id: z.string(),
|
|
1371
1371
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
1372
|
-
"2026-06-
|
|
1372
|
+
"2026-06-08T05:34:42.541Z",
|
|
1373
1373
|
).transform(v => new Date(v)),
|
|
1374
1374
|
type: z.literal("string"),
|
|
1375
1375
|
value: z.string(),
|
|
@@ -1448,7 +1448,7 @@ export const ListDatasetDatapointsData$inboundSchema: z.ZodType<
|
|
|
1448
1448
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
1449
1449
|
.optional(),
|
|
1450
1450
|
updated: z.string().datetime({ offset: true }).default(
|
|
1451
|
-
"2026-06-
|
|
1451
|
+
"2026-06-08T05:34:18.893Z",
|
|
1452
1452
|
).transform(v => new Date(v)),
|
|
1453
1453
|
}).transform((v) => {
|
|
1454
1454
|
return remap$(v, {
|
|
@@ -156,7 +156,7 @@ export const ListDatasetsData$inboundSchema: z.ZodType<
|
|
|
156
156
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
157
157
|
.optional(),
|
|
158
158
|
updated: z.string().datetime({ offset: true }).default(
|
|
159
|
-
"2026-06-
|
|
159
|
+
"2026-06-08T05:34:18.893Z",
|
|
160
160
|
).transform(v => new Date(v)),
|
|
161
161
|
}).transform((v) => {
|
|
162
162
|
return remap$(v, {
|
|
@@ -182,7 +182,7 @@ export const ListDatasourcesData$inboundSchema: z.ZodType<
|
|
|
182
182
|
z.ZodTypeDef,
|
|
183
183
|
unknown
|
|
184
184
|
> = z.object({
|
|
185
|
-
_id: z.string().default("
|
|
185
|
+
_id: z.string().default("01KTJVKQSG1KGTDHRW2H68DSGC"),
|
|
186
186
|
display_name: z.string(),
|
|
187
187
|
description: z.nullable(z.string()).optional(),
|
|
188
188
|
status: ListDatasourcesStatus$inboundSchema,
|
|
@@ -318,7 +318,7 @@ export const PatchV2HumanEvalSetsIdResponseBody2$inboundSchema: z.ZodType<
|
|
|
318
318
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
319
319
|
.optional(),
|
|
320
320
|
updated: z.string().datetime({ offset: true }).default(
|
|
321
|
-
"2026-06-
|
|
321
|
+
"2026-06-08T05:34:18.893Z",
|
|
322
322
|
).transform(v => new Date(v)),
|
|
323
323
|
filter_type: z.literal("name"),
|
|
324
324
|
filter_value: z.string(),
|
|
@@ -364,7 +364,7 @@ export const PatchV2HumanEvalSetsIdResponseBody1$inboundSchema: z.ZodType<
|
|
|
364
364
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
365
365
|
.optional(),
|
|
366
366
|
updated: z.string().datetime({ offset: true }).default(
|
|
367
|
-
"2026-06-
|
|
367
|
+
"2026-06-08T05:34:18.893Z",
|
|
368
368
|
).transform(v => new Date(v)),
|
|
369
369
|
filter_type: z.literal("span_type"),
|
|
370
370
|
filter_values: z.array(z.string()),
|
|
@@ -19,12 +19,12 @@ export type PostV2FeedbackEvaluationRequestBodyEvaluationType = ClosedEnum<
|
|
|
19
19
|
typeof PostV2FeedbackEvaluationRequestBodyEvaluationType
|
|
20
20
|
>;
|
|
21
21
|
|
|
22
|
-
export const
|
|
22
|
+
export const PostV2FeedbackEvaluationRequestBodyFeedbackSource = {
|
|
23
23
|
Orq: "orq",
|
|
24
24
|
External: "external",
|
|
25
25
|
} as const;
|
|
26
|
-
export type
|
|
27
|
-
typeof
|
|
26
|
+
export type PostV2FeedbackEvaluationRequestBodyFeedbackSource = ClosedEnum<
|
|
27
|
+
typeof PostV2FeedbackEvaluationRequestBodyFeedbackSource
|
|
28
28
|
>;
|
|
29
29
|
|
|
30
30
|
export type RequestBody3 = {
|
|
@@ -40,7 +40,7 @@ export type RequestBody3 = {
|
|
|
40
40
|
* The unique identifier of the human review
|
|
41
41
|
*/
|
|
42
42
|
humanReviewId: string;
|
|
43
|
-
source?:
|
|
43
|
+
source?: PostV2FeedbackEvaluationRequestBodyFeedbackSource | undefined;
|
|
44
44
|
/**
|
|
45
45
|
* The date and time the item was reviewed
|
|
46
46
|
*/
|
|
@@ -71,7 +71,7 @@ export type PostV2FeedbackEvaluationRequestBodySource = ClosedEnum<
|
|
|
71
71
|
typeof PostV2FeedbackEvaluationRequestBodySource
|
|
72
72
|
>;
|
|
73
73
|
|
|
74
|
-
export type
|
|
74
|
+
export type PostV2FeedbackEvaluationRequestBody2 = {
|
|
75
75
|
/**
|
|
76
76
|
* The unique identifier of the human evaluation
|
|
77
77
|
*/
|
|
@@ -111,7 +111,7 @@ export const RequestBodySource = {
|
|
|
111
111
|
} as const;
|
|
112
112
|
export type RequestBodySource = ClosedEnum<typeof RequestBodySource>;
|
|
113
113
|
|
|
114
|
-
export type
|
|
114
|
+
export type PostV2FeedbackEvaluationRequestBody1 = {
|
|
115
115
|
/**
|
|
116
116
|
* The unique identifier of the human evaluation
|
|
117
117
|
*/
|
|
@@ -135,8 +135,8 @@ export type RequestBody1 = {
|
|
|
135
135
|
};
|
|
136
136
|
|
|
137
137
|
export type PostV2FeedbackEvaluationRequestBody =
|
|
138
|
-
|
|
|
139
|
-
|
|
|
138
|
+
| PostV2FeedbackEvaluationRequestBody1
|
|
139
|
+
| PostV2FeedbackEvaluationRequestBody2
|
|
140
140
|
| RequestBody3;
|
|
141
141
|
|
|
142
142
|
/** @internal */
|
|
@@ -145,9 +145,9 @@ export const PostV2FeedbackEvaluationRequestBodyEvaluationType$outboundSchema:
|
|
|
145
145
|
.nativeEnum(PostV2FeedbackEvaluationRequestBodyEvaluationType);
|
|
146
146
|
|
|
147
147
|
/** @internal */
|
|
148
|
-
export const
|
|
149
|
-
z.ZodNativeEnum<typeof
|
|
150
|
-
.nativeEnum(
|
|
148
|
+
export const PostV2FeedbackEvaluationRequestBodyFeedbackSource$outboundSchema:
|
|
149
|
+
z.ZodNativeEnum<typeof PostV2FeedbackEvaluationRequestBodyFeedbackSource> = z
|
|
150
|
+
.nativeEnum(PostV2FeedbackEvaluationRequestBodyFeedbackSource);
|
|
151
151
|
|
|
152
152
|
/** @internal */
|
|
153
153
|
export type RequestBody3$Outbound = {
|
|
@@ -171,9 +171,9 @@ export const RequestBody3$outboundSchema: z.ZodType<
|
|
|
171
171
|
evaluationType:
|
|
172
172
|
PostV2FeedbackEvaluationRequestBodyEvaluationType$outboundSchema,
|
|
173
173
|
humanReviewId: z.string(),
|
|
174
|
-
source:
|
|
174
|
+
source: PostV2FeedbackEvaluationRequestBodyFeedbackSource$outboundSchema
|
|
175
175
|
.default("orq"),
|
|
176
|
-
reviewedAt: z.date().default(() => new Date("2026-06-
|
|
176
|
+
reviewedAt: z.date().default(() => new Date("2026-06-08T05:34:42.689Z"))
|
|
177
177
|
.transform(v => v.toISOString()),
|
|
178
178
|
type: z.literal("string_array"),
|
|
179
179
|
values: z.array(z.string()),
|
|
@@ -202,7 +202,7 @@ export const PostV2FeedbackEvaluationRequestBodySource$outboundSchema:
|
|
|
202
202
|
.nativeEnum(PostV2FeedbackEvaluationRequestBodySource);
|
|
203
203
|
|
|
204
204
|
/** @internal */
|
|
205
|
-
export type
|
|
205
|
+
export type PostV2FeedbackEvaluationRequestBody2$Outbound = {
|
|
206
206
|
id: string;
|
|
207
207
|
evaluation_type: string;
|
|
208
208
|
human_review_id: string;
|
|
@@ -214,10 +214,10 @@ export type RequestBody2$Outbound = {
|
|
|
214
214
|
};
|
|
215
215
|
|
|
216
216
|
/** @internal */
|
|
217
|
-
export const
|
|
218
|
-
|
|
217
|
+
export const PostV2FeedbackEvaluationRequestBody2$outboundSchema: z.ZodType<
|
|
218
|
+
PostV2FeedbackEvaluationRequestBody2$Outbound,
|
|
219
219
|
z.ZodTypeDef,
|
|
220
|
-
|
|
220
|
+
PostV2FeedbackEvaluationRequestBody2
|
|
221
221
|
> = z.object({
|
|
222
222
|
id: z.string(),
|
|
223
223
|
evaluationType: RequestBodyEvaluationType$outboundSchema,
|
|
@@ -225,7 +225,7 @@ export const RequestBody2$outboundSchema: z.ZodType<
|
|
|
225
225
|
source: PostV2FeedbackEvaluationRequestBodySource$outboundSchema.default(
|
|
226
226
|
"orq",
|
|
227
227
|
),
|
|
228
|
-
reviewedAt: z.date().default(() => new Date("2026-06-
|
|
228
|
+
reviewedAt: z.date().default(() => new Date("2026-06-08T05:34:42.688Z"))
|
|
229
229
|
.transform(v => v.toISOString()),
|
|
230
230
|
type: z.literal("number"),
|
|
231
231
|
value: z.number(),
|
|
@@ -239,8 +239,14 @@ export const RequestBody2$outboundSchema: z.ZodType<
|
|
|
239
239
|
});
|
|
240
240
|
});
|
|
241
241
|
|
|
242
|
-
export function
|
|
243
|
-
|
|
242
|
+
export function postV2FeedbackEvaluationRequestBody2ToJSON(
|
|
243
|
+
postV2FeedbackEvaluationRequestBody2: PostV2FeedbackEvaluationRequestBody2,
|
|
244
|
+
): string {
|
|
245
|
+
return JSON.stringify(
|
|
246
|
+
PostV2FeedbackEvaluationRequestBody2$outboundSchema.parse(
|
|
247
|
+
postV2FeedbackEvaluationRequestBody2,
|
|
248
|
+
),
|
|
249
|
+
);
|
|
244
250
|
}
|
|
245
251
|
|
|
246
252
|
/** @internal */
|
|
@@ -254,7 +260,7 @@ export const RequestBodySource$outboundSchema: z.ZodNativeEnum<
|
|
|
254
260
|
> = z.nativeEnum(RequestBodySource);
|
|
255
261
|
|
|
256
262
|
/** @internal */
|
|
257
|
-
export type
|
|
263
|
+
export type PostV2FeedbackEvaluationRequestBody1$Outbound = {
|
|
258
264
|
id: string;
|
|
259
265
|
evaluation_type: string;
|
|
260
266
|
human_review_id: string;
|
|
@@ -266,16 +272,16 @@ export type RequestBody1$Outbound = {
|
|
|
266
272
|
};
|
|
267
273
|
|
|
268
274
|
/** @internal */
|
|
269
|
-
export const
|
|
270
|
-
|
|
275
|
+
export const PostV2FeedbackEvaluationRequestBody1$outboundSchema: z.ZodType<
|
|
276
|
+
PostV2FeedbackEvaluationRequestBody1$Outbound,
|
|
271
277
|
z.ZodTypeDef,
|
|
272
|
-
|
|
278
|
+
PostV2FeedbackEvaluationRequestBody1
|
|
273
279
|
> = z.object({
|
|
274
280
|
id: z.string(),
|
|
275
281
|
evaluationType: EvaluationType$outboundSchema,
|
|
276
282
|
humanReviewId: z.string(),
|
|
277
283
|
source: RequestBodySource$outboundSchema.default("orq"),
|
|
278
|
-
reviewedAt: z.date().default(() => new Date("2026-06-
|
|
284
|
+
reviewedAt: z.date().default(() => new Date("2026-06-08T05:34:42.688Z"))
|
|
279
285
|
.transform(v => v.toISOString()),
|
|
280
286
|
type: z.literal("string"),
|
|
281
287
|
value: z.string(),
|
|
@@ -289,14 +295,20 @@ export const RequestBody1$outboundSchema: z.ZodType<
|
|
|
289
295
|
});
|
|
290
296
|
});
|
|
291
297
|
|
|
292
|
-
export function
|
|
293
|
-
|
|
298
|
+
export function postV2FeedbackEvaluationRequestBody1ToJSON(
|
|
299
|
+
postV2FeedbackEvaluationRequestBody1: PostV2FeedbackEvaluationRequestBody1,
|
|
300
|
+
): string {
|
|
301
|
+
return JSON.stringify(
|
|
302
|
+
PostV2FeedbackEvaluationRequestBody1$outboundSchema.parse(
|
|
303
|
+
postV2FeedbackEvaluationRequestBody1,
|
|
304
|
+
),
|
|
305
|
+
);
|
|
294
306
|
}
|
|
295
307
|
|
|
296
308
|
/** @internal */
|
|
297
309
|
export type PostV2FeedbackEvaluationRequestBody$Outbound =
|
|
298
|
-
|
|
|
299
|
-
|
|
|
310
|
+
| PostV2FeedbackEvaluationRequestBody1$Outbound
|
|
311
|
+
| PostV2FeedbackEvaluationRequestBody2$Outbound
|
|
300
312
|
| RequestBody3$Outbound;
|
|
301
313
|
|
|
302
314
|
/** @internal */
|
|
@@ -305,8 +317,8 @@ export const PostV2FeedbackEvaluationRequestBody$outboundSchema: z.ZodType<
|
|
|
305
317
|
z.ZodTypeDef,
|
|
306
318
|
PostV2FeedbackEvaluationRequestBody
|
|
307
319
|
> = z.union([
|
|
308
|
-
z.lazy(() =>
|
|
309
|
-
z.lazy(() =>
|
|
320
|
+
z.lazy(() => PostV2FeedbackEvaluationRequestBody1$outboundSchema),
|
|
321
|
+
z.lazy(() => PostV2FeedbackEvaluationRequestBody2$outboundSchema),
|
|
310
322
|
z.lazy(() => RequestBody3$outboundSchema),
|
|
311
323
|
]);
|
|
312
324
|
|
|
@@ -271,7 +271,7 @@ export const PostV2HumanEvalSetsResponseBody2$inboundSchema: z.ZodType<
|
|
|
271
271
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
272
272
|
.optional(),
|
|
273
273
|
updated: z.string().datetime({ offset: true }).default(
|
|
274
|
-
"2026-06-
|
|
274
|
+
"2026-06-08T05:34:18.893Z",
|
|
275
275
|
).transform(v => new Date(v)),
|
|
276
276
|
filter_type: z.literal("name"),
|
|
277
277
|
filter_value: z.string(),
|
|
@@ -316,7 +316,7 @@ export const PostV2HumanEvalSetsResponseBody1$inboundSchema: z.ZodType<
|
|
|
316
316
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
317
317
|
.optional(),
|
|
318
318
|
updated: z.string().datetime({ offset: true }).default(
|
|
319
|
-
"2026-06-
|
|
319
|
+
"2026-06-08T05:34:18.893Z",
|
|
320
320
|
).transform(v => new Date(v)),
|
|
321
321
|
filter_type: z.literal("span_type"),
|
|
322
322
|
filter_values: z.array(z.string()),
|
|
@@ -1207,7 +1207,7 @@ export const RetrieveDatapointEvaluations3$inboundSchema: z.ZodType<
|
|
|
1207
1207
|
.default("orq"),
|
|
1208
1208
|
reviewed_by_id: z.string(),
|
|
1209
1209
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
1210
|
-
"2026-06-
|
|
1210
|
+
"2026-06-08T05:34:42.550Z",
|
|
1211
1211
|
).transform(v => new Date(v)),
|
|
1212
1212
|
type: z.literal("string_array"),
|
|
1213
1213
|
values: z.array(z.string()),
|
|
@@ -1255,7 +1255,7 @@ export const RetrieveDatapointEvaluations2$inboundSchema: z.ZodType<
|
|
|
1255
1255
|
),
|
|
1256
1256
|
reviewed_by_id: z.string(),
|
|
1257
1257
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
1258
|
-
"2026-06-
|
|
1258
|
+
"2026-06-08T05:34:42.549Z",
|
|
1259
1259
|
).transform(v => new Date(v)),
|
|
1260
1260
|
type: z.literal("number"),
|
|
1261
1261
|
value: z.number(),
|
|
@@ -1300,7 +1300,7 @@ export const RetrieveDatapointEvaluations1$inboundSchema: z.ZodType<
|
|
|
1300
1300
|
source: RetrieveDatapointEvaluationsSource$inboundSchema.default("orq"),
|
|
1301
1301
|
reviewed_by_id: z.string(),
|
|
1302
1302
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
1303
|
-
"2026-06-
|
|
1303
|
+
"2026-06-08T05:34:42.548Z",
|
|
1304
1304
|
).transform(v => new Date(v)),
|
|
1305
1305
|
type: z.literal("string"),
|
|
1306
1306
|
value: z.string(),
|
|
@@ -1377,7 +1377,7 @@ export const RetrieveDatapointResponseBody$inboundSchema: z.ZodType<
|
|
|
1377
1377
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
1378
1378
|
.optional(),
|
|
1379
1379
|
updated: z.string().datetime({ offset: true }).default(
|
|
1380
|
-
"2026-06-
|
|
1380
|
+
"2026-06-08T05:34:18.893Z",
|
|
1381
1381
|
).transform(v => new Date(v)),
|
|
1382
1382
|
}).transform((v) => {
|
|
1383
1383
|
return remap$(v, {
|
|
@@ -126,7 +126,7 @@ export const RetrieveDatasetResponseBody$inboundSchema: z.ZodType<
|
|
|
126
126
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
127
127
|
.optional(),
|
|
128
128
|
updated: z.string().datetime({ offset: true }).default(
|
|
129
|
-
"2026-06-
|
|
129
|
+
"2026-06-08T05:34:18.893Z",
|
|
130
130
|
).transform(v => new Date(v)),
|
|
131
131
|
}).transform((v) => {
|
|
132
132
|
return remap$(v, {
|
|
@@ -118,7 +118,7 @@ export const RetrieveDatasourceResponseBody$inboundSchema: z.ZodType<
|
|
|
118
118
|
z.ZodTypeDef,
|
|
119
119
|
unknown
|
|
120
120
|
> = z.object({
|
|
121
|
-
_id: z.string().default("
|
|
121
|
+
_id: z.string().default("01KTJVKQSJ9EQX96R7AQB0ZHY1"),
|
|
122
122
|
display_name: z.string(),
|
|
123
123
|
description: z.nullable(z.string()).optional(),
|
|
124
124
|
status: RetrieveDatasourceStatus$inboundSchema,
|
|
@@ -753,7 +753,7 @@ export const RetrieveToolResponseBodyCodeExecutionTool$inboundSchema: z.ZodType<
|
|
|
753
753
|
z.ZodTypeDef,
|
|
754
754
|
unknown
|
|
755
755
|
> = z.object({
|
|
756
|
-
_id: z.string().default("
|
|
756
|
+
_id: z.string().default("tool_01KTJVKQP951RKHG017G39HFMK"),
|
|
757
757
|
path: z.string(),
|
|
758
758
|
key: z.string(),
|
|
759
759
|
display_name: z.string().optional(),
|
|
@@ -859,7 +859,7 @@ export const RetrieveToolResponseBodyTools$inboundSchema: z.ZodType<
|
|
|
859
859
|
z.ZodTypeDef,
|
|
860
860
|
unknown
|
|
861
861
|
> = z.object({
|
|
862
|
-
id: z.string().default("
|
|
862
|
+
id: z.string().default("01KTJVKQP88E83VAF201WB954A"),
|
|
863
863
|
name: z.string(),
|
|
864
864
|
description: z.string().optional(),
|
|
865
865
|
schema: z.lazy(() => RetrieveToolResponseBodyToolsSchema$inboundSchema),
|
|
@@ -917,7 +917,7 @@ export const RetrieveToolResponseBodyMCPTool$inboundSchema: z.ZodType<
|
|
|
917
917
|
z.ZodTypeDef,
|
|
918
918
|
unknown
|
|
919
919
|
> = z.object({
|
|
920
|
-
_id: z.string().default("
|
|
920
|
+
_id: z.string().default("tool_01KTJVKQP7JZYYR6Z1YTRWEZWX"),
|
|
921
921
|
path: z.string(),
|
|
922
922
|
key: z.string(),
|
|
923
923
|
display_name: z.string().optional(),
|
|
@@ -1108,7 +1108,7 @@ export const RetrieveToolResponseBodyHTTPTool$inboundSchema: z.ZodType<
|
|
|
1108
1108
|
z.ZodTypeDef,
|
|
1109
1109
|
unknown
|
|
1110
1110
|
> = z.object({
|
|
1111
|
-
_id: z.string().default("
|
|
1111
|
+
_id: z.string().default("tool_01KTJVKQP5AAZJ0X4DSFWY8VM1"),
|
|
1112
1112
|
path: z.string(),
|
|
1113
1113
|
key: z.string(),
|
|
1114
1114
|
display_name: z.string().optional(),
|
|
@@ -1204,7 +1204,7 @@ export const RetrieveToolResponseBodyJSONSchemaTool$inboundSchema: z.ZodType<
|
|
|
1204
1204
|
z.ZodTypeDef,
|
|
1205
1205
|
unknown
|
|
1206
1206
|
> = z.object({
|
|
1207
|
-
_id: z.string().default("
|
|
1207
|
+
_id: z.string().default("tool_01KTJVKQP3GD00QDQSNG0ZMKPQ"),
|
|
1208
1208
|
path: z.string(),
|
|
1209
1209
|
key: z.string(),
|
|
1210
1210
|
display_name: z.string().optional(),
|
|
@@ -1310,7 +1310,7 @@ export const RetrieveToolResponseBodyFunctionTool$inboundSchema: z.ZodType<
|
|
|
1310
1310
|
z.ZodTypeDef,
|
|
1311
1311
|
unknown
|
|
1312
1312
|
> = z.object({
|
|
1313
|
-
_id: z.string().default("
|
|
1313
|
+
_id: z.string().default("tool_01KTJVKQP287VVYXZH4K6R4F26"),
|
|
1314
1314
|
path: z.string(),
|
|
1315
1315
|
key: z.string(),
|
|
1316
1316
|
display_name: z.string().optional(),
|
|
@@ -23,6 +23,18 @@ export type RoutingRuleListRequest = {
|
|
|
23
23
|
* Optional filter by project ID.
|
|
24
24
|
*/
|
|
25
25
|
projectId?: string | undefined;
|
|
26
|
+
/**
|
|
27
|
+
* Optional search term matched against name and description.
|
|
28
|
+
*/
|
|
29
|
+
search?: string | undefined;
|
|
30
|
+
/**
|
|
31
|
+
* Filter by enabled status.
|
|
32
|
+
*/
|
|
33
|
+
enabled?: boolean | null | undefined;
|
|
34
|
+
/**
|
|
35
|
+
* Filter by referenced model refs (comma-separated).
|
|
36
|
+
*/
|
|
37
|
+
model?: Array<string> | null | undefined;
|
|
26
38
|
};
|
|
27
39
|
|
|
28
40
|
/**
|
|
@@ -40,6 +52,9 @@ export type RoutingRuleListRequest$Outbound = {
|
|
|
40
52
|
starting_after?: string | undefined;
|
|
41
53
|
ending_before?: string | undefined;
|
|
42
54
|
project_id?: string | undefined;
|
|
55
|
+
search?: string | undefined;
|
|
56
|
+
enabled?: boolean | null | undefined;
|
|
57
|
+
model?: Array<string> | null | undefined;
|
|
43
58
|
};
|
|
44
59
|
|
|
45
60
|
/** @internal */
|
|
@@ -52,6 +67,9 @@ export const RoutingRuleListRequest$outboundSchema: z.ZodType<
|
|
|
52
67
|
startingAfter: z.string().optional(),
|
|
53
68
|
endingBefore: z.string().optional(),
|
|
54
69
|
projectId: z.string().optional(),
|
|
70
|
+
search: z.string().optional(),
|
|
71
|
+
enabled: z.nullable(z.boolean()).optional(),
|
|
72
|
+
model: z.nullable(z.array(z.string())).optional(),
|
|
55
73
|
}).transform((v) => {
|
|
56
74
|
return remap$(v, {
|
|
57
75
|
startingAfter: "starting_after",
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Used models retrieved successfully
|
|
12
|
+
*/
|
|
13
|
+
export type RoutingRuleListUsedModelsResponseBody = {
|
|
14
|
+
models: Array<string> | null;
|
|
15
|
+
object: string;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
/** @internal */
|
|
19
|
+
export const RoutingRuleListUsedModelsResponseBody$inboundSchema: z.ZodType<
|
|
20
|
+
RoutingRuleListUsedModelsResponseBody,
|
|
21
|
+
z.ZodTypeDef,
|
|
22
|
+
unknown
|
|
23
|
+
> = z.object({
|
|
24
|
+
models: z.nullable(z.array(z.string())),
|
|
25
|
+
object: z.string(),
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
export function routingRuleListUsedModelsResponseBodyFromJSON(
|
|
29
|
+
jsonString: string,
|
|
30
|
+
): SafeParseResult<RoutingRuleListUsedModelsResponseBody, SDKValidationError> {
|
|
31
|
+
return safeParse(
|
|
32
|
+
jsonString,
|
|
33
|
+
(x) =>
|
|
34
|
+
RoutingRuleListUsedModelsResponseBody$inboundSchema.parse(JSON.parse(x)),
|
|
35
|
+
`Failed to parse 'RoutingRuleListUsedModelsResponseBody' from JSON`,
|
|
36
|
+
);
|
|
37
|
+
}
|
|
@@ -3626,7 +3626,7 @@ export const Tools$outboundSchema: z.ZodType<
|
|
|
3626
3626
|
z.ZodTypeDef,
|
|
3627
3627
|
Tools
|
|
3628
3628
|
> = z.object({
|
|
3629
|
-
id: z.string().default("
|
|
3629
|
+
id: z.string().default("01KTJVKQE8RPRXWZQK8846QBAA"),
|
|
3630
3630
|
name: z.string(),
|
|
3631
3631
|
description: z.string().optional(),
|
|
3632
3632
|
schema: z.lazy(() => AgentToolInputRunSchema$outboundSchema),
|
|
@@ -3675,7 +3675,7 @@ export const AgentToolInputRunTools$outboundSchema: z.ZodType<
|
|
|
3675
3675
|
z.ZodTypeDef,
|
|
3676
3676
|
AgentToolInputRunTools
|
|
3677
3677
|
> = z.object({
|
|
3678
|
-
id: z.string().default("
|
|
3678
|
+
id: z.string().default("01KTJVKQFR2AE5FZ0GKDGV6G7B"),
|
|
3679
3679
|
name: z.string(),
|
|
3680
3680
|
description: z.string().optional(),
|
|
3681
3681
|
schema: z.lazy(() =>
|
|
@@ -2358,7 +2358,7 @@ export const UpdateDatapointEvaluations3$inboundSchema: z.ZodType<
|
|
|
2358
2358
|
.default("orq"),
|
|
2359
2359
|
reviewed_by_id: z.string(),
|
|
2360
2360
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
2361
|
-
"2026-06-
|
|
2361
|
+
"2026-06-08T05:34:42.580Z",
|
|
2362
2362
|
).transform(v => new Date(v)),
|
|
2363
2363
|
type: z.literal("string_array"),
|
|
2364
2364
|
values: z.array(z.string()),
|
|
@@ -2404,7 +2404,7 @@ export const UpdateDatapointEvaluations2$inboundSchema: z.ZodType<
|
|
|
2404
2404
|
source: UpdateDatapointEvaluationsDatasetsSource$inboundSchema.default("orq"),
|
|
2405
2405
|
reviewed_by_id: z.string(),
|
|
2406
2406
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
2407
|
-
"2026-06-
|
|
2407
|
+
"2026-06-08T05:34:42.580Z",
|
|
2408
2408
|
).transform(v => new Date(v)),
|
|
2409
2409
|
type: z.literal("number"),
|
|
2410
2410
|
value: z.number(),
|
|
@@ -2449,7 +2449,7 @@ export const UpdateDatapointEvaluations1$inboundSchema: z.ZodType<
|
|
|
2449
2449
|
source: UpdateDatapointEvaluationsSource$inboundSchema.default("orq"),
|
|
2450
2450
|
reviewed_by_id: z.string(),
|
|
2451
2451
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
2452
|
-
"2026-06-
|
|
2452
|
+
"2026-06-08T05:34:42.579Z",
|
|
2453
2453
|
).transform(v => new Date(v)),
|
|
2454
2454
|
type: z.literal("string"),
|
|
2455
2455
|
value: z.string(),
|
|
@@ -2530,7 +2530,7 @@ export const UpdateDatapointResponseBody$inboundSchema: z.ZodType<
|
|
|
2530
2530
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
2531
2531
|
.optional(),
|
|
2532
2532
|
updated: z.string().datetime({ offset: true }).default(
|
|
2533
|
-
"2026-06-
|
|
2533
|
+
"2026-06-08T05:34:18.893Z",
|
|
2534
2534
|
).transform(v => new Date(v)),
|
|
2535
2535
|
}).transform((v) => {
|
|
2536
2536
|
return remap$(v, {
|
|
@@ -182,7 +182,7 @@ export const UpdateDatasetResponseBody$inboundSchema: z.ZodType<
|
|
|
182
182
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
183
183
|
.optional(),
|
|
184
184
|
updated: z.string().datetime({ offset: true }).default(
|
|
185
|
-
"2026-06-
|
|
185
|
+
"2026-06-08T05:34:18.893Z",
|
|
186
186
|
).transform(v => new Date(v)),
|
|
187
187
|
}).transform((v) => {
|
|
188
188
|
return remap$(v, {
|
|
@@ -152,7 +152,7 @@ export const UpdateDatasourceResponseBody$inboundSchema: z.ZodType<
|
|
|
152
152
|
z.ZodTypeDef,
|
|
153
153
|
unknown
|
|
154
154
|
> = z.object({
|
|
155
|
-
_id: z.string().default("
|
|
155
|
+
_id: z.string().default("01KTJVKQSP7EKB2Z7YAD59WSZ1"),
|
|
156
156
|
display_name: z.string(),
|
|
157
157
|
description: z.nullable(z.string()).optional(),
|
|
158
158
|
status: UpdateDatasourceStatus$inboundSchema,
|