@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
|
@@ -21,7 +21,7 @@ export type CreateFileRequest = {
|
|
|
21
21
|
*/
|
|
22
22
|
contentType?: string | undefined;
|
|
23
23
|
/**
|
|
24
|
-
* Project the file is created in. Optional
|
|
24
|
+
* Project the file is created in. Optional: project-scoped API keys default to the key's bound project; workspace-scoped callers default to the workspace's default project.
|
|
25
25
|
*/
|
|
26
26
|
projectId?: string | undefined;
|
|
27
27
|
};
|
|
@@ -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_01ktjvkq9rh90r4gx90qcjrnwv"),
|
|
44
44
|
metadata: z.record(z.any()).optional(),
|
|
45
45
|
kind: z.literal("reasoning"),
|
|
46
46
|
reasoning: z.string(),
|
|
@@ -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-06-
|
|
141
|
+
"2026-06-08T05:34:18.893Z",
|
|
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-06-
|
|
2358
|
+
"2026-06-08T05:34:42.557Z",
|
|
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-06-
|
|
2403
|
+
"2026-06-08T05:34:42.557Z",
|
|
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-06-
|
|
2449
|
+
"2026-06-08T05:34:42.556Z",
|
|
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-06-
|
|
2532
|
+
"2026-06-08T05:34:18.893Z",
|
|
2533
2533
|
).transform(v => new Date(v)),
|
|
2534
2534
|
}).transform((v) => {
|
|
2535
2535
|
return remap$(v, {
|
|
@@ -409,7 +409,7 @@ export const CreateDatasourceResponseBody$inboundSchema: z.ZodType<
|
|
|
409
409
|
z.ZodTypeDef,
|
|
410
410
|
unknown
|
|
411
411
|
> = z.object({
|
|
412
|
-
_id: z.string().default("
|
|
412
|
+
_id: z.string().default("01KTJVKQSKHEQGNGTCZ17Y5BQX"),
|
|
413
413
|
display_name: z.string(),
|
|
414
414
|
description: z.nullable(z.string()).optional(),
|
|
415
415
|
status: CreateDatasourceStatus$inboundSchema,
|
|
@@ -54,12 +54,10 @@ export const OutputType = {
|
|
|
54
54
|
} as const;
|
|
55
55
|
export type OutputType = ClosedEnum<typeof OutputType>;
|
|
56
56
|
|
|
57
|
-
export const
|
|
57
|
+
export const RequestBodyType = {
|
|
58
58
|
PythonEval: "python_eval",
|
|
59
59
|
} as const;
|
|
60
|
-
export type
|
|
61
|
-
typeof CreateEvalRequestBodyType
|
|
62
|
-
>;
|
|
60
|
+
export type RequestBodyType = ClosedEnum<typeof RequestBodyType>;
|
|
63
61
|
|
|
64
62
|
export type Python = {
|
|
65
63
|
guardrailConfig?:
|
|
@@ -70,7 +68,7 @@ export type Python = {
|
|
|
70
68
|
| undefined;
|
|
71
69
|
outputType?: OutputType | undefined;
|
|
72
70
|
code: string;
|
|
73
|
-
type:
|
|
71
|
+
type: RequestBodyType;
|
|
74
72
|
/**
|
|
75
73
|
* Entity storage path.
|
|
76
74
|
*
|
|
@@ -1299,9 +1297,9 @@ export const OutputType$outboundSchema: z.ZodNativeEnum<typeof OutputType> = z
|
|
|
1299
1297
|
.nativeEnum(OutputType);
|
|
1300
1298
|
|
|
1301
1299
|
/** @internal */
|
|
1302
|
-
export const
|
|
1303
|
-
typeof
|
|
1304
|
-
> = z.nativeEnum(
|
|
1300
|
+
export const RequestBodyType$outboundSchema: z.ZodNativeEnum<
|
|
1301
|
+
typeof RequestBodyType
|
|
1302
|
+
> = z.nativeEnum(RequestBodyType);
|
|
1305
1303
|
|
|
1306
1304
|
/** @internal */
|
|
1307
1305
|
export type Python$Outbound = {
|
|
@@ -1334,7 +1332,7 @@ export const Python$outboundSchema: z.ZodType<
|
|
|
1334
1332
|
).optional(),
|
|
1335
1333
|
outputType: OutputType$outboundSchema.optional(),
|
|
1336
1334
|
code: z.string(),
|
|
1337
|
-
type:
|
|
1335
|
+
type: RequestBodyType$outboundSchema,
|
|
1338
1336
|
path: z.string(),
|
|
1339
1337
|
description: z.string().default(""),
|
|
1340
1338
|
key: z.string(),
|
|
@@ -2190,8 +2188,8 @@ export const Typescript$inboundSchema: z.ZodType<
|
|
|
2190
2188
|
> = z.object({
|
|
2191
2189
|
_id: z.string(),
|
|
2192
2190
|
description: z.string(),
|
|
2193
|
-
created: z.string().default("2026-06-
|
|
2194
|
-
updated: z.string().default("2026-06-
|
|
2191
|
+
created: z.string().default("2026-06-08T05:34:20.335Z"),
|
|
2192
|
+
updated: z.string().default("2026-06-08T05:34:20.335Z"),
|
|
2195
2193
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
2196
2194
|
guardrail_config: z.nullable(
|
|
2197
2195
|
z.union([
|
|
@@ -2381,8 +2379,8 @@ export const Ragas$inboundSchema: z.ZodType<Ragas, z.ZodTypeDef, unknown> = z
|
|
|
2381
2379
|
.object({
|
|
2382
2380
|
_id: z.string(),
|
|
2383
2381
|
description: z.string(),
|
|
2384
|
-
created: z.string().default("2026-06-
|
|
2385
|
-
updated: z.string().default("2026-06-
|
|
2382
|
+
created: z.string().default("2026-06-08T05:34:20.335Z"),
|
|
2383
|
+
updated: z.string().default("2026-06-08T05:34:20.335Z"),
|
|
2386
2384
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
2387
2385
|
guardrail_config: z.nullable(
|
|
2388
2386
|
z.union([
|
|
@@ -3207,8 +3205,8 @@ export const CreateEvalResponseBodyFunction$inboundSchema: z.ZodType<
|
|
|
3207
3205
|
> = z.object({
|
|
3208
3206
|
_id: z.string(),
|
|
3209
3207
|
description: z.string(),
|
|
3210
|
-
created: z.string().default("2026-06-
|
|
3211
|
-
updated: z.string().default("2026-06-
|
|
3208
|
+
created: z.string().default("2026-06-08T05:34:20.335Z"),
|
|
3209
|
+
updated: z.string().default("2026-06-08T05:34:20.335Z"),
|
|
3212
3210
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
3213
3211
|
guardrail_config: z.nullable(
|
|
3214
3212
|
z.union([
|
|
@@ -3427,8 +3425,8 @@ export const ResponseBodyPython$inboundSchema: z.ZodType<
|
|
|
3427
3425
|
> = z.object({
|
|
3428
3426
|
_id: z.string(),
|
|
3429
3427
|
description: z.string(),
|
|
3430
|
-
created: z.string().default("2026-06-
|
|
3431
|
-
updated: z.string().default("2026-06-
|
|
3428
|
+
created: z.string().default("2026-06-08T05:34:20.335Z"),
|
|
3429
|
+
updated: z.string().default("2026-06-08T05:34:20.335Z"),
|
|
3432
3430
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
3433
3431
|
guardrail_config: z.nullable(
|
|
3434
3432
|
z.union([
|
|
@@ -3609,8 +3607,8 @@ export const CreateEvalResponseBodyHTTP$inboundSchema: z.ZodType<
|
|
|
3609
3607
|
> = z.object({
|
|
3610
3608
|
_id: z.string(),
|
|
3611
3609
|
description: z.string(),
|
|
3612
|
-
created: z.string().default("2026-06-
|
|
3613
|
-
updated: z.string().default("2026-06-
|
|
3610
|
+
created: z.string().default("2026-06-08T05:34:20.335Z"),
|
|
3611
|
+
updated: z.string().default("2026-06-08T05:34:20.335Z"),
|
|
3614
3612
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
3615
3613
|
guardrail_config: z.nullable(
|
|
3616
3614
|
z.union([
|
|
@@ -3769,8 +3767,8 @@ export const Json$inboundSchema: z.ZodType<Json, z.ZodTypeDef, unknown> = z
|
|
|
3769
3767
|
.object({
|
|
3770
3768
|
_id: z.string(),
|
|
3771
3769
|
description: z.string(),
|
|
3772
|
-
created: z.string().default("2026-06-
|
|
3773
|
-
updated: z.string().default("2026-06-
|
|
3770
|
+
created: z.string().default("2026-06-08T05:34:20.335Z"),
|
|
3771
|
+
updated: z.string().default("2026-06-08T05:34:20.335Z"),
|
|
3774
3772
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
3775
3773
|
guardrail_config: z.nullable(
|
|
3776
3774
|
z.union([
|
|
@@ -4140,8 +4138,8 @@ export const CreateEvalLlm2$inboundSchema: z.ZodType<
|
|
|
4140
4138
|
> = z.object({
|
|
4141
4139
|
_id: z.string(),
|
|
4142
4140
|
description: z.string(),
|
|
4143
|
-
created: z.string().default("2026-06-
|
|
4144
|
-
updated: z.string().default("2026-06-
|
|
4141
|
+
created: z.string().default("2026-06-08T05:34:20.335Z"),
|
|
4142
|
+
updated: z.string().default("2026-06-08T05:34:20.335Z"),
|
|
4145
4143
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
4146
4144
|
guardrail_config: z.nullable(
|
|
4147
4145
|
z.union([
|
|
@@ -4360,8 +4358,8 @@ export const CreateEvalLlm1$inboundSchema: z.ZodType<
|
|
|
4360
4358
|
> = z.object({
|
|
4361
4359
|
_id: z.string(),
|
|
4362
4360
|
description: z.string(),
|
|
4363
|
-
created: z.string().default("2026-06-
|
|
4364
|
-
updated: z.string().default("2026-06-
|
|
4361
|
+
created: z.string().default("2026-06-08T05:34:20.335Z"),
|
|
4362
|
+
updated: z.string().default("2026-06-08T05:34:20.335Z"),
|
|
4365
4363
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
4366
4364
|
guardrail_config: z.nullable(
|
|
4367
4365
|
z.union([
|
|
@@ -31,7 +31,7 @@ export type ExternalConfig = {
|
|
|
31
31
|
apiKey: string;
|
|
32
32
|
};
|
|
33
33
|
|
|
34
|
-
export type
|
|
34
|
+
export type RequestBody2 = {
|
|
35
35
|
type?: CreateKnowledgeRequestBodyKnowledgeType | undefined;
|
|
36
36
|
key: string;
|
|
37
37
|
description?: string | undefined;
|
|
@@ -115,7 +115,7 @@ export type RetrievalSettings = {
|
|
|
115
115
|
| undefined;
|
|
116
116
|
};
|
|
117
117
|
|
|
118
|
-
export type
|
|
118
|
+
export type RequestBody1 = {
|
|
119
119
|
type?: CreateKnowledgeRequestBodyType | undefined;
|
|
120
120
|
key: string;
|
|
121
121
|
description?: string | undefined;
|
|
@@ -139,9 +139,7 @@ export type CreateKnowledgeRequestBody1 = {
|
|
|
139
139
|
path: string;
|
|
140
140
|
};
|
|
141
141
|
|
|
142
|
-
export type CreateKnowledgeRequestBody =
|
|
143
|
-
| CreateKnowledgeRequestBody1
|
|
144
|
-
| CreateKnowledgeRequestBody2;
|
|
142
|
+
export type CreateKnowledgeRequestBody = RequestBody1 | RequestBody2;
|
|
145
143
|
|
|
146
144
|
export const CreateKnowledgeResponseBodyKnowledgeType = {
|
|
147
145
|
External: "external",
|
|
@@ -421,7 +419,7 @@ export function externalConfigToJSON(externalConfig: ExternalConfig): string {
|
|
|
421
419
|
}
|
|
422
420
|
|
|
423
421
|
/** @internal */
|
|
424
|
-
export type
|
|
422
|
+
export type RequestBody2$Outbound = {
|
|
425
423
|
type: string;
|
|
426
424
|
key: string;
|
|
427
425
|
description?: string | undefined;
|
|
@@ -429,10 +427,10 @@ export type CreateKnowledgeRequestBody2$Outbound = {
|
|
|
429
427
|
};
|
|
430
428
|
|
|
431
429
|
/** @internal */
|
|
432
|
-
export const
|
|
433
|
-
|
|
430
|
+
export const RequestBody2$outboundSchema: z.ZodType<
|
|
431
|
+
RequestBody2$Outbound,
|
|
434
432
|
z.ZodTypeDef,
|
|
435
|
-
|
|
433
|
+
RequestBody2
|
|
436
434
|
> = z.object({
|
|
437
435
|
type: CreateKnowledgeRequestBodyKnowledgeType$outboundSchema.default(
|
|
438
436
|
"external",
|
|
@@ -446,14 +444,8 @@ export const CreateKnowledgeRequestBody2$outboundSchema: z.ZodType<
|
|
|
446
444
|
});
|
|
447
445
|
});
|
|
448
446
|
|
|
449
|
-
export function
|
|
450
|
-
|
|
451
|
-
): string {
|
|
452
|
-
return JSON.stringify(
|
|
453
|
-
CreateKnowledgeRequestBody2$outboundSchema.parse(
|
|
454
|
-
createKnowledgeRequestBody2,
|
|
455
|
-
),
|
|
456
|
-
);
|
|
447
|
+
export function requestBody2ToJSON(requestBody2: RequestBody2): string {
|
|
448
|
+
return JSON.stringify(RequestBody2$outboundSchema.parse(requestBody2));
|
|
457
449
|
}
|
|
458
450
|
|
|
459
451
|
/** @internal */
|
|
@@ -575,7 +567,7 @@ export function retrievalSettingsToJSON(
|
|
|
575
567
|
}
|
|
576
568
|
|
|
577
569
|
/** @internal */
|
|
578
|
-
export type
|
|
570
|
+
export type RequestBody1$Outbound = {
|
|
579
571
|
type: string;
|
|
580
572
|
key: string;
|
|
581
573
|
description?: string | undefined;
|
|
@@ -585,10 +577,10 @@ export type CreateKnowledgeRequestBody1$Outbound = {
|
|
|
585
577
|
};
|
|
586
578
|
|
|
587
579
|
/** @internal */
|
|
588
|
-
export const
|
|
589
|
-
|
|
580
|
+
export const RequestBody1$outboundSchema: z.ZodType<
|
|
581
|
+
RequestBody1$Outbound,
|
|
590
582
|
z.ZodTypeDef,
|
|
591
|
-
|
|
583
|
+
RequestBody1
|
|
592
584
|
> = z.object({
|
|
593
585
|
type: CreateKnowledgeRequestBodyType$outboundSchema.default("internal"),
|
|
594
586
|
key: z.string(),
|
|
@@ -603,20 +595,14 @@ export const CreateKnowledgeRequestBody1$outboundSchema: z.ZodType<
|
|
|
603
595
|
});
|
|
604
596
|
});
|
|
605
597
|
|
|
606
|
-
export function
|
|
607
|
-
|
|
608
|
-
): string {
|
|
609
|
-
return JSON.stringify(
|
|
610
|
-
CreateKnowledgeRequestBody1$outboundSchema.parse(
|
|
611
|
-
createKnowledgeRequestBody1,
|
|
612
|
-
),
|
|
613
|
-
);
|
|
598
|
+
export function requestBody1ToJSON(requestBody1: RequestBody1): string {
|
|
599
|
+
return JSON.stringify(RequestBody1$outboundSchema.parse(requestBody1));
|
|
614
600
|
}
|
|
615
601
|
|
|
616
602
|
/** @internal */
|
|
617
603
|
export type CreateKnowledgeRequestBody$Outbound =
|
|
618
|
-
|
|
|
619
|
-
|
|
|
604
|
+
| RequestBody1$Outbound
|
|
605
|
+
| RequestBody2$Outbound;
|
|
620
606
|
|
|
621
607
|
/** @internal */
|
|
622
608
|
export const CreateKnowledgeRequestBody$outboundSchema: z.ZodType<
|
|
@@ -624,8 +610,8 @@ export const CreateKnowledgeRequestBody$outboundSchema: z.ZodType<
|
|
|
624
610
|
z.ZodTypeDef,
|
|
625
611
|
CreateKnowledgeRequestBody
|
|
626
612
|
> = z.union([
|
|
627
|
-
z.lazy(() =>
|
|
628
|
-
z.lazy(() =>
|
|
613
|
+
z.lazy(() => RequestBody1$outboundSchema),
|
|
614
|
+
z.lazy(() => RequestBody2$outboundSchema),
|
|
629
615
|
]);
|
|
630
616
|
|
|
631
617
|
export function createKnowledgeRequestBodyToJSON(
|
|
@@ -1898,7 +1898,7 @@ export const ResponseBodyCodeExecutionTool$inboundSchema: z.ZodType<
|
|
|
1898
1898
|
z.ZodTypeDef,
|
|
1899
1899
|
unknown
|
|
1900
1900
|
> = z.object({
|
|
1901
|
-
_id: z.string().default("
|
|
1901
|
+
_id: z.string().default("tool_01KTJVKQMV3TDHWK3ZP0A4E67T"),
|
|
1902
1902
|
path: z.string(),
|
|
1903
1903
|
key: z.string(),
|
|
1904
1904
|
display_name: z.string().optional(),
|
|
@@ -1995,7 +1995,7 @@ export const ResponseBodyTools$inboundSchema: z.ZodType<
|
|
|
1995
1995
|
z.ZodTypeDef,
|
|
1996
1996
|
unknown
|
|
1997
1997
|
> = z.object({
|
|
1998
|
-
id: z.string().default("
|
|
1998
|
+
id: z.string().default("01KTJVKQMTY8MJA6A4GHA4E28W"),
|
|
1999
1999
|
name: z.string(),
|
|
2000
2000
|
description: z.string().optional(),
|
|
2001
2001
|
schema: z.lazy(() => CreateToolResponseBodySchema$inboundSchema),
|
|
@@ -2051,7 +2051,7 @@ export const ResponseBodyMCPTool$inboundSchema: z.ZodType<
|
|
|
2051
2051
|
z.ZodTypeDef,
|
|
2052
2052
|
unknown
|
|
2053
2053
|
> = z.object({
|
|
2054
|
-
_id: z.string().default("
|
|
2054
|
+
_id: z.string().default("tool_01KTJVKQMS6RDFNDENWCK706F9"),
|
|
2055
2055
|
path: z.string(),
|
|
2056
2056
|
key: z.string(),
|
|
2057
2057
|
display_name: z.string().optional(),
|
|
@@ -2237,7 +2237,7 @@ export const ResponseBodyHTTPTool$inboundSchema: z.ZodType<
|
|
|
2237
2237
|
z.ZodTypeDef,
|
|
2238
2238
|
unknown
|
|
2239
2239
|
> = z.object({
|
|
2240
|
-
_id: z.string().default("
|
|
2240
|
+
_id: z.string().default("tool_01KTJVKQMQ7XRZFNRTBT2V364B"),
|
|
2241
2241
|
path: z.string(),
|
|
2242
2242
|
key: z.string(),
|
|
2243
2243
|
display_name: z.string().optional(),
|
|
@@ -2330,7 +2330,7 @@ export const ResponseBodyJSONSchemaTool$inboundSchema: z.ZodType<
|
|
|
2330
2330
|
z.ZodTypeDef,
|
|
2331
2331
|
unknown
|
|
2332
2332
|
> = z.object({
|
|
2333
|
-
_id: z.string().default("
|
|
2333
|
+
_id: z.string().default("tool_01KTJVKQMNCFVNA0T4QXP147E7"),
|
|
2334
2334
|
path: z.string(),
|
|
2335
2335
|
key: z.string(),
|
|
2336
2336
|
display_name: z.string().optional(),
|
|
@@ -2431,7 +2431,7 @@ export const ResponseBodyFunctionTool$inboundSchema: z.ZodType<
|
|
|
2431
2431
|
z.ZodTypeDef,
|
|
2432
2432
|
unknown
|
|
2433
2433
|
> = z.object({
|
|
2434
|
-
_id: z.string().default("
|
|
2434
|
+
_id: z.string().default("tool_01KTJVKQMJHDCWJQ3KMEZ18T6C"),
|
|
2435
2435
|
path: z.string(),
|
|
2436
2436
|
key: z.string(),
|
|
2437
2437
|
display_name: z.string().optional(),
|
|
@@ -767,7 +767,7 @@ export const DataCodeExecutionTool$inboundSchema: z.ZodType<
|
|
|
767
767
|
z.ZodTypeDef,
|
|
768
768
|
unknown
|
|
769
769
|
> = z.object({
|
|
770
|
-
_id: z.string().default("
|
|
770
|
+
_id: z.string().default("tool_01KTJVKQM5JY3RD8H5ZED9ZV0B"),
|
|
771
771
|
path: z.string(),
|
|
772
772
|
key: z.string(),
|
|
773
773
|
display_name: z.string().optional(),
|
|
@@ -864,7 +864,7 @@ export const DataTools$inboundSchema: z.ZodType<
|
|
|
864
864
|
z.ZodTypeDef,
|
|
865
865
|
unknown
|
|
866
866
|
> = z.object({
|
|
867
|
-
id: z.string().default("
|
|
867
|
+
id: z.string().default("01KTJVKQM4Q2BVAPVK3MHHK350"),
|
|
868
868
|
name: z.string(),
|
|
869
869
|
description: z.string().optional(),
|
|
870
870
|
schema: z.lazy(() => GetAllToolsDataSchema$inboundSchema),
|
|
@@ -917,7 +917,7 @@ export const DataMCPTool$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_01KTJVKQM228K32S47SZZXQK67"),
|
|
921
921
|
path: z.string(),
|
|
922
922
|
key: z.string(),
|
|
923
923
|
display_name: z.string().optional(),
|
|
@@ -1102,7 +1102,7 @@ export const DataHTTPTool$inboundSchema: z.ZodType<
|
|
|
1102
1102
|
z.ZodTypeDef,
|
|
1103
1103
|
unknown
|
|
1104
1104
|
> = z.object({
|
|
1105
|
-
_id: z.string().default("
|
|
1105
|
+
_id: z.string().default("tool_01KTJVKQM09GVDZZQ7GR03KP7H"),
|
|
1106
1106
|
path: z.string(),
|
|
1107
1107
|
key: z.string(),
|
|
1108
1108
|
display_name: z.string().optional(),
|
|
@@ -1195,7 +1195,7 @@ export const DataJSONSchemaTool$inboundSchema: z.ZodType<
|
|
|
1195
1195
|
z.ZodTypeDef,
|
|
1196
1196
|
unknown
|
|
1197
1197
|
> = z.object({
|
|
1198
|
-
_id: z.string().default("
|
|
1198
|
+
_id: z.string().default("tool_01KTJVKQKYDC69012XZ0CABGBB"),
|
|
1199
1199
|
path: z.string(),
|
|
1200
1200
|
key: z.string(),
|
|
1201
1201
|
display_name: z.string().optional(),
|
|
@@ -1297,7 +1297,7 @@ export const DataFunctionTool$inboundSchema: z.ZodType<
|
|
|
1297
1297
|
z.ZodTypeDef,
|
|
1298
1298
|
unknown
|
|
1299
1299
|
> = z.object({
|
|
1300
|
-
_id: z.string().default("
|
|
1300
|
+
_id: z.string().default("tool_01KTJVKQKWBX2FKE71QB8EVRKG"),
|
|
1301
1301
|
path: z.string(),
|
|
1302
1302
|
key: z.string(),
|
|
1303
1303
|
display_name: z.string().optional(),
|
|
@@ -1067,8 +1067,8 @@ export const DataTypescript$inboundSchema: z.ZodType<
|
|
|
1067
1067
|
> = z.object({
|
|
1068
1068
|
_id: z.string(),
|
|
1069
1069
|
description: z.string(),
|
|
1070
|
-
created: z.string().default("2026-06-
|
|
1071
|
-
updated: z.string().default("2026-06-
|
|
1070
|
+
created: z.string().default("2026-06-08T05:34:20.335Z"),
|
|
1071
|
+
updated: z.string().default("2026-06-08T05:34:20.335Z"),
|
|
1072
1072
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
1073
1073
|
guardrail_config: z.nullable(
|
|
1074
1074
|
z.union([
|
|
@@ -1249,8 +1249,8 @@ export const DataRagas$inboundSchema: z.ZodType<
|
|
|
1249
1249
|
> = z.object({
|
|
1250
1250
|
_id: z.string(),
|
|
1251
1251
|
description: z.string(),
|
|
1252
|
-
created: z.string().default("2026-06-
|
|
1253
|
-
updated: z.string().default("2026-06-
|
|
1252
|
+
created: z.string().default("2026-06-08T05:34:20.335Z"),
|
|
1253
|
+
updated: z.string().default("2026-06-08T05:34:20.335Z"),
|
|
1254
1254
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
1255
1255
|
guardrail_config: z.nullable(
|
|
1256
1256
|
z.union([
|
|
@@ -2081,8 +2081,8 @@ export const DataFunction$inboundSchema: z.ZodType<
|
|
|
2081
2081
|
> = z.object({
|
|
2082
2082
|
_id: z.string(),
|
|
2083
2083
|
description: z.string(),
|
|
2084
|
-
created: z.string().default("2026-06-
|
|
2085
|
-
updated: z.string().default("2026-06-
|
|
2084
|
+
created: z.string().default("2026-06-08T05:34:20.335Z"),
|
|
2085
|
+
updated: z.string().default("2026-06-08T05:34:20.335Z"),
|
|
2086
2086
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
2087
2087
|
guardrail_config: z.nullable(
|
|
2088
2088
|
z.union([
|
|
@@ -2265,8 +2265,8 @@ export const DataPython$inboundSchema: z.ZodType<
|
|
|
2265
2265
|
> = z.object({
|
|
2266
2266
|
_id: z.string(),
|
|
2267
2267
|
description: z.string(),
|
|
2268
|
-
created: z.string().default("2026-06-
|
|
2269
|
-
updated: z.string().default("2026-06-
|
|
2268
|
+
created: z.string().default("2026-06-08T05:34:20.335Z"),
|
|
2269
|
+
updated: z.string().default("2026-06-08T05:34:20.335Z"),
|
|
2270
2270
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
2271
2271
|
guardrail_config: z.nullable(
|
|
2272
2272
|
z.union([
|
|
@@ -2445,8 +2445,8 @@ export const DataHTTP$inboundSchema: z.ZodType<
|
|
|
2445
2445
|
> = z.object({
|
|
2446
2446
|
_id: z.string(),
|
|
2447
2447
|
description: z.string(),
|
|
2448
|
-
created: z.string().default("2026-06-
|
|
2449
|
-
updated: z.string().default("2026-06-
|
|
2448
|
+
created: z.string().default("2026-06-08T05:34:20.335Z"),
|
|
2449
|
+
updated: z.string().default("2026-06-08T05:34:20.335Z"),
|
|
2450
2450
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
2451
2451
|
guardrail_config: z.nullable(
|
|
2452
2452
|
z.union([
|
|
@@ -2637,8 +2637,8 @@ export const DataJSON$inboundSchema: z.ZodType<
|
|
|
2637
2637
|
> = z.object({
|
|
2638
2638
|
_id: z.string(),
|
|
2639
2639
|
description: z.string(),
|
|
2640
|
-
created: z.string().default("2026-06-
|
|
2641
|
-
updated: z.string().default("2026-06-
|
|
2640
|
+
created: z.string().default("2026-06-08T05:34:20.335Z"),
|
|
2641
|
+
updated: z.string().default("2026-06-08T05:34:20.335Z"),
|
|
2642
2642
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
2643
2643
|
guardrail_config: z.nullable(
|
|
2644
2644
|
z.union([
|
|
@@ -3005,8 +3005,8 @@ export const GetEvalsLlm2$inboundSchema: z.ZodType<
|
|
|
3005
3005
|
> = z.object({
|
|
3006
3006
|
_id: z.string(),
|
|
3007
3007
|
description: z.string(),
|
|
3008
|
-
created: z.string().default("2026-06-
|
|
3009
|
-
updated: z.string().default("2026-06-
|
|
3008
|
+
created: z.string().default("2026-06-08T05:34:20.335Z"),
|
|
3009
|
+
updated: z.string().default("2026-06-08T05:34:20.335Z"),
|
|
3010
3010
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
3011
3011
|
guardrail_config: z.nullable(
|
|
3012
3012
|
z.union([
|
|
@@ -3218,8 +3218,8 @@ export const GetEvalsLlm1$inboundSchema: z.ZodType<
|
|
|
3218
3218
|
> = z.object({
|
|
3219
3219
|
_id: z.string(),
|
|
3220
3220
|
description: z.string(),
|
|
3221
|
-
created: z.string().default("2026-06-
|
|
3222
|
-
updated: z.string().default("2026-06-
|
|
3221
|
+
created: z.string().default("2026-06-08T05:34:20.335Z"),
|
|
3222
|
+
updated: z.string().default("2026-06-08T05:34:20.335Z"),
|
|
3223
3223
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
3224
3224
|
guardrail_config: z.nullable(
|
|
3225
3225
|
z.union([
|
|
@@ -140,7 +140,7 @@ export const GetV2HumanEvalSetsResponseBody2$inboundSchema: z.ZodType<
|
|
|
140
140
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
141
141
|
.optional(),
|
|
142
142
|
updated: z.string().datetime({ offset: true }).default(
|
|
143
|
-
"2026-06-
|
|
143
|
+
"2026-06-08T05:34:18.893Z",
|
|
144
144
|
).transform(v => new Date(v)),
|
|
145
145
|
filter_type: z.literal("name"),
|
|
146
146
|
filter_value: z.string(),
|
|
@@ -185,7 +185,7 @@ export const GetV2HumanEvalSetsResponseBody1$inboundSchema: z.ZodType<
|
|
|
185
185
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
186
186
|
.optional(),
|
|
187
187
|
updated: z.string().datetime({ offset: true }).default(
|
|
188
|
-
"2026-06-
|
|
188
|
+
"2026-06-08T05:34:18.893Z",
|
|
189
189
|
).transform(v => new Date(v)),
|
|
190
190
|
filter_type: z.literal("span_type"),
|
|
191
191
|
filter_values: z.array(z.string()),
|
|
@@ -141,7 +141,7 @@ export const GetV2HumanEvalSetsIdResponseBody2$inboundSchema: z.ZodType<
|
|
|
141
141
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
142
142
|
.optional(),
|
|
143
143
|
updated: z.string().datetime({ offset: true }).default(
|
|
144
|
-
"2026-06-
|
|
144
|
+
"2026-06-08T05:34:18.893Z",
|
|
145
145
|
).transform(v => new Date(v)),
|
|
146
146
|
filter_type: z.literal("name"),
|
|
147
147
|
filter_value: z.string(),
|
|
@@ -186,7 +186,7 @@ export const GetV2HumanEvalSetsIdResponseBody1$inboundSchema: z.ZodType<
|
|
|
186
186
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
187
187
|
.optional(),
|
|
188
188
|
updated: z.string().datetime({ offset: true }).default(
|
|
189
|
-
"2026-06-
|
|
189
|
+
"2026-06-08T05:34:18.893Z",
|
|
190
190
|
).transform(v => new Date(v)),
|
|
191
191
|
filter_type: z.literal("span_type"),
|
|
192
192
|
filter_values: z.array(z.string()),
|
|
@@ -5,10 +5,24 @@
|
|
|
5
5
|
import * as z from "zod/v3";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
8
9
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
10
|
import * as components from "../components/index.js";
|
|
10
11
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
12
|
|
|
13
|
+
/**
|
|
14
|
+
* Field to sort by. Defaults to created_at (newest first).
|
|
15
|
+
*/
|
|
16
|
+
export const SortBy = {
|
|
17
|
+
CreatedAt: "created_at",
|
|
18
|
+
UpdatedAt: "updated_at",
|
|
19
|
+
DisplayName: "display_name",
|
|
20
|
+
} as const;
|
|
21
|
+
/**
|
|
22
|
+
* Field to sort by. Defaults to created_at (newest first).
|
|
23
|
+
*/
|
|
24
|
+
export type SortBy = ClosedEnum<typeof SortBy>;
|
|
25
|
+
|
|
12
26
|
export type GuardrailRuleListRequest = {
|
|
13
27
|
limit?: number | undefined;
|
|
14
28
|
/**
|
|
@@ -23,6 +37,22 @@ export type GuardrailRuleListRequest = {
|
|
|
23
37
|
* Optional filter by project ID.
|
|
24
38
|
*/
|
|
25
39
|
projectId?: string | undefined;
|
|
40
|
+
/**
|
|
41
|
+
* Filter by display name or description (case-insensitive).
|
|
42
|
+
*/
|
|
43
|
+
search?: string | undefined;
|
|
44
|
+
/**
|
|
45
|
+
* Field to sort by. Defaults to created_at (newest first).
|
|
46
|
+
*/
|
|
47
|
+
sortBy?: SortBy | undefined;
|
|
48
|
+
/**
|
|
49
|
+
* Filter by enabled status.
|
|
50
|
+
*/
|
|
51
|
+
enabled?: boolean | null | undefined;
|
|
52
|
+
/**
|
|
53
|
+
* Filter by referenced guardrail ids (comma-separated).
|
|
54
|
+
*/
|
|
55
|
+
guardrailId?: Array<string> | null | undefined;
|
|
26
56
|
};
|
|
27
57
|
|
|
28
58
|
/**
|
|
@@ -34,12 +64,20 @@ export type GuardrailRuleListResponseBody = {
|
|
|
34
64
|
object: string;
|
|
35
65
|
};
|
|
36
66
|
|
|
67
|
+
/** @internal */
|
|
68
|
+
export const SortBy$outboundSchema: z.ZodNativeEnum<typeof SortBy> = z
|
|
69
|
+
.nativeEnum(SortBy);
|
|
70
|
+
|
|
37
71
|
/** @internal */
|
|
38
72
|
export type GuardrailRuleListRequest$Outbound = {
|
|
39
73
|
limit: number;
|
|
40
74
|
starting_after?: string | undefined;
|
|
41
75
|
ending_before?: string | undefined;
|
|
42
76
|
project_id?: string | undefined;
|
|
77
|
+
search?: string | undefined;
|
|
78
|
+
sort_by?: string | undefined;
|
|
79
|
+
enabled?: boolean | null | undefined;
|
|
80
|
+
guardrail_id?: Array<string> | null | undefined;
|
|
43
81
|
};
|
|
44
82
|
|
|
45
83
|
/** @internal */
|
|
@@ -52,11 +90,17 @@ export const GuardrailRuleListRequest$outboundSchema: z.ZodType<
|
|
|
52
90
|
startingAfter: z.string().optional(),
|
|
53
91
|
endingBefore: z.string().optional(),
|
|
54
92
|
projectId: z.string().optional(),
|
|
93
|
+
search: z.string().optional(),
|
|
94
|
+
sortBy: SortBy$outboundSchema.optional(),
|
|
95
|
+
enabled: z.nullable(z.boolean()).optional(),
|
|
96
|
+
guardrailId: z.nullable(z.array(z.string())).optional(),
|
|
55
97
|
}).transform((v) => {
|
|
56
98
|
return remap$(v, {
|
|
57
99
|
startingAfter: "starting_after",
|
|
58
100
|
endingBefore: "ending_before",
|
|
59
101
|
projectId: "project_id",
|
|
102
|
+
sortBy: "sort_by",
|
|
103
|
+
guardrailId: "guardrail_id",
|
|
60
104
|
});
|
|
61
105
|
});
|
|
62
106
|
|