@orq-ai/node 4.10.8 → 4.10.9
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/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/operations/createdataset.js +1 -1
- package/models/operations/createdatasetitem.js +4 -4
- package/models/operations/createdatasource.js +1 -1
- package/models/operations/createeval.js +16 -16
- 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/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.js +3 -3
- 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/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 +7 -7
- package/packages/orq-rc/examples/{postV2FeedbackEvaluationRemove.example.ts → evalsAll.example.ts} +4 -2
- package/packages/orq-rc/src/funcs/{agentsPostV2AgentsKeyCardRefresh.ts → agentsRefreshKeyCard.ts} +1 -1
- package/packages/orq-rc/src/funcs/{evalsGetV2EvaluatorsIdVersions.ts → evalsListVersions.ts} +1 -1
- package/packages/orq-rc/src/funcs/{feedbackPostV2Feedback.ts → feedbackCreate.ts} +1 -1
- package/packages/orq-rc/src/funcs/{postV2FeedbackEvaluation.ts → feedbackCreateEvaluation.ts} +1 -1
- package/packages/orq-rc/src/funcs/{feedbackPostV2FeedbackRemove.ts → feedbackRemove.ts} +1 -1
- package/packages/orq-rc/src/funcs/{postV2FeedbackEvaluationRemove.ts → feedbackRemoveEvaluation.ts} +1 -1
- package/packages/orq-rc/src/funcs/guardrailRulesList.ts +4 -0
- package/packages/orq-rc/src/funcs/guardrailRulesListUsedGuardrails.ts +147 -0
- package/packages/orq-rc/src/funcs/{humanReviewSetsPostV2HumanEvalSets.ts → humanReviewSetsCreate.ts} +1 -1
- package/packages/orq-rc/src/funcs/{humanReviewSetsDeleteV2HumanEvalSetsId.ts → humanReviewSetsDelete.ts} +1 -1
- package/packages/orq-rc/src/funcs/{humanReviewSetsGetV2HumanEvalSetsId.ts → humanReviewSetsGet.ts} +1 -1
- package/packages/orq-rc/src/funcs/{humanReviewSetsGetV2HumanEvalSets.ts → humanReviewSetsList.ts} +1 -1
- package/packages/orq-rc/src/funcs/{humanReviewSetsPatchV2HumanEvalSetsId.ts → humanReviewSetsUpdate.ts} +1 -1
- package/packages/orq-rc/src/funcs/routingRulesList.ts +3 -0
- package/packages/orq-rc/src/funcs/routingRulesListUsedModels.ts +144 -0
- package/packages/orq-rc/src/funcs/{toolsGetV2ToolsToolIdVersionsVersionId.ts → toolsGetVersion.ts} +1 -1
- package/packages/orq-rc/src/funcs/{toolsGetV2ToolsToolIdVersions.ts → toolsListVersions.ts} +1 -1
- package/packages/orq-rc/src/lib/config.ts +2 -2
- package/packages/orq-rc/src/models/components/createfilerequest.ts +1 -1
- package/packages/orq-rc/src/models/components/reasoningpart.ts +1 -1
- package/packages/orq-rc/src/models/operations/createdataset.ts +1 -1
- package/packages/orq-rc/src/models/operations/createdatasetitem.ts +4 -4
- package/packages/orq-rc/src/models/operations/createdatasource.ts +1 -1
- package/packages/orq-rc/src/models/operations/createeval.ts +23 -25
- package/packages/orq-rc/src/models/operations/createknowledge.ts +19 -33
- package/packages/orq-rc/src/models/operations/createtool.ts +6 -6
- package/packages/orq-rc/src/models/operations/getalltools.ts +6 -6
- package/packages/orq-rc/src/models/operations/getevals.ts +16 -16
- package/packages/orq-rc/src/models/operations/getv2humanevalsets.ts +2 -2
- package/packages/orq-rc/src/models/operations/getv2humanevalsetsid.ts +2 -2
- package/packages/orq-rc/src/models/operations/guardrailrulelist.ts +44 -0
- package/packages/orq-rc/src/models/operations/guardrailrulelistusedguardrails.ts +48 -0
- package/packages/orq-rc/src/models/operations/index.ts +2 -0
- package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +4 -4
- package/packages/orq-rc/src/models/operations/listdatasets.ts +1 -1
- package/packages/orq-rc/src/models/operations/listdatasources.ts +1 -1
- package/packages/orq-rc/src/models/operations/patchv2humanevalsetsid.ts +2 -2
- package/packages/orq-rc/src/models/operations/postv2feedbackevaluation.ts +43 -31
- package/packages/orq-rc/src/models/operations/postv2humanevalsets.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +4 -4
- package/packages/orq-rc/src/models/operations/retrievedataset.ts +1 -1
- package/packages/orq-rc/src/models/operations/retrievedatasource.ts +1 -1
- package/packages/orq-rc/src/models/operations/retrievetool.ts +6 -6
- package/packages/orq-rc/src/models/operations/routingrulelist.ts +18 -0
- package/packages/orq-rc/src/models/operations/routingrulelistusedmodels.ts +37 -0
- package/packages/orq-rc/src/models/operations/runagent.ts +1 -1
- package/packages/orq-rc/src/models/operations/streamrunagent.ts +1 -1
- package/packages/orq-rc/src/models/operations/updatedatapoint.ts +4 -4
- package/packages/orq-rc/src/models/operations/updatedataset.ts +1 -1
- package/packages/orq-rc/src/models/operations/updatedatasource.ts +1 -1
- package/packages/orq-rc/src/models/operations/updateeval.ts +16 -16
- package/packages/orq-rc/src/models/operations/updatetool.ts +7 -7
- package/packages/orq-rc/src/sdk/agents.ts +3 -3
- package/packages/orq-rc/src/sdk/evals.ts +3 -3
- package/packages/orq-rc/src/sdk/feedback.ts +36 -6
- package/packages/orq-rc/src/sdk/guardrailrules.ts +16 -0
- package/packages/orq-rc/src/sdk/humanreviewsets.ts +15 -15
- package/packages/orq-rc/src/sdk/routingrules.ts +16 -0
- package/packages/orq-rc/src/sdk/sdk.ts +1 -27
- package/packages/orq-rc/src/sdk/tools.ts +6 -6
- package/sdk/feedback.d.ts +2 -2
- package/sdk/feedback.js +2 -2
- package/src/lib/config.ts +2 -2
- 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 +16 -16
- 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/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 +3 -3
- 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/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/feedback.ts +2 -2
|
@@ -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
|
|
|
@@ -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,
|