@orq-ai/node 4.18.0-rc.24 → 4.18.0-rc.26
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 +3 -3
- package/lib/config.js +3 -3
- package/models/components/actionreviewrequestedstreamingevent.d.ts +0 -3
- package/models/components/actionreviewrequestedstreamingevent.d.ts.map +1 -1
- package/models/components/actionreviewrequestedstreamingevent.js.map +1 -1
- package/models/components/agentstartedstreamingevent.d.ts +4 -7
- package/models/components/agentstartedstreamingevent.d.ts.map +1 -1
- package/models/components/agentstartedstreamingevent.js +7 -7
- package/models/components/agentstartedstreamingevent.js.map +1 -1
- package/models/components/agenttaskconfig.d.ts +6 -11
- package/models/components/agenttaskconfig.d.ts.map +1 -1
- package/models/components/agenttaskconfig.js +3 -17
- package/models/components/agenttaskconfig.js.map +1 -1
- package/models/components/cell.d.ts +17 -17
- package/models/components/cell.d.ts.map +1 -1
- package/models/components/cell.js +6 -12
- package/models/components/cell.js.map +1 -1
- package/models/components/mcptoolexposure.d.ts +5 -0
- package/models/components/mcptoolexposure.d.ts.map +1 -1
- package/models/components/mcptoolexposure.js +4 -0
- package/models/components/mcptoolexposure.js.map +1 -1
- package/models/components/metricsummary.d.ts +4 -1
- package/models/components/metricsummary.d.ts.map +1 -1
- package/models/components/metricsummary.js +1 -1
- package/models/components/metricsummary.js.map +1 -1
- package/models/components/patchevalcellrequest.d.ts +6 -8
- package/models/components/patchevalcellrequest.d.ts.map +1 -1
- package/models/components/patchevalcellrequest.js +2 -8
- package/models/components/patchevalcellrequest.js.map +1 -1
- package/models/components/patchreviewcellrequest.d.ts +6 -8
- package/models/components/patchreviewcellrequest.d.ts.map +1 -1
- package/models/components/patchreviewcellrequest.js +2 -8
- package/models/components/patchreviewcellrequest.js.map +1 -1
- package/models/components/patchtaskcellrequest.d.ts +6 -8
- package/models/components/patchtaskcellrequest.d.ts.map +1 -1
- package/models/components/patchtaskcellrequest.js +2 -8
- package/models/components/patchtaskcellrequest.js.map +1 -1
- package/models/components/prompttaskconfig.d.ts +36 -55
- package/models/components/prompttaskconfig.d.ts.map +1 -1
- package/models/components/prompttaskconfig.js +11 -76
- package/models/components/prompttaskconfig.js.map +1 -1
- package/models/components/queryrow.d.ts +5 -2
- package/models/components/queryrow.d.ts.map +1 -1
- package/models/components/queryrow.js +2 -4
- package/models/components/queryrow.js.map +1 -1
- package/models/components/reasoningpart.js +1 -1
- package/models/components/run.d.ts +9 -3
- package/models/components/run.d.ts.map +1 -1
- package/models/components/run.js +3 -3
- package/models/components/run.js.map +1 -1
- package/models/components/updateruncellrequest.d.ts +6 -8
- package/models/components/updateruncellrequest.d.ts.map +1 -1
- package/models/components/updateruncellrequest.js +2 -8
- package/models/components/updateruncellrequest.js.map +1 -1
- package/models/operations/createagentrequest.d.ts +0 -3
- package/models/operations/createagentrequest.d.ts.map +1 -1
- package/models/operations/createagentrequest.js.map +1 -1
- package/models/operations/createtool.js +4 -4
- package/models/operations/getalltools.js +4 -4
- package/models/operations/listagents.d.ts +0 -3
- package/models/operations/listagents.d.ts.map +1 -1
- package/models/operations/listagents.js.map +1 -1
- package/models/operations/listdeploymentversions.js +1 -1
- package/models/operations/retrieveagentrequest.d.ts +0 -3
- package/models/operations/retrieveagentrequest.d.ts.map +1 -1
- package/models/operations/retrieveagentrequest.js.map +1 -1
- package/models/operations/retrievetool.js +4 -4
- package/models/operations/runagent.js +1 -1
- package/models/operations/streamrunagent.js +1 -1
- package/models/operations/updateagent.d.ts +0 -3
- package/models/operations/updateagent.d.ts.map +1 -1
- package/models/operations/updateagent.js.map +1 -1
- package/models/operations/updatetool.js +4 -4
- package/package.json +3 -3
- package/src/lib/config.ts +3 -3
- package/src/models/components/actionreviewrequestedstreamingevent.ts +0 -3
- package/src/models/components/agentstartedstreamingevent.ts +30 -37
- package/src/models/components/agenttaskconfig.ts +4 -41
- package/src/models/components/cell.ts +22 -39
- package/src/models/components/mcptoolexposure.ts +9 -0
- package/src/models/components/metricsummary.ts +5 -2
- package/src/models/components/patchevalcellrequest.ts +3 -19
- package/src/models/components/patchreviewcellrequest.ts +3 -25
- package/src/models/components/patchtaskcellrequest.ts +3 -23
- package/src/models/components/prompttaskconfig.ts +26 -184
- package/src/models/components/queryrow.ts +11 -6
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/components/run.ts +14 -8
- package/src/models/components/updateruncellrequest.ts +3 -23
- package/src/models/operations/createagentrequest.ts +0 -3
- package/src/models/operations/createtool.ts +4 -4
- package/src/models/operations/getalltools.ts +4 -4
- package/src/models/operations/listagents.ts +0 -3
- package/src/models/operations/listdeploymentversions.ts +1 -1
- package/src/models/operations/retrieveagentrequest.ts +0 -3
- package/src/models/operations/retrievetool.ts +4 -4
- package/src/models/operations/runagent.ts +1 -1
- package/src/models/operations/streamrunagent.ts +1 -1
- package/src/models/operations/updateagent.ts +0 -3
- package/src/models/operations/updatetool.ts +4 -4
|
@@ -12,15 +12,6 @@ import { CellProgress, CellProgress$inboundSchema } from "./cellprogress.js";
|
|
|
12
12
|
import { CellStatus, CellStatus$inboundSchema } from "./cellstatus.js";
|
|
13
13
|
import { CellType, CellType$inboundSchema } from "./celltype.js";
|
|
14
14
|
|
|
15
|
-
/**
|
|
16
|
-
* Stored documents are returned as-is; strings are wrapped as {"text"},
|
|
17
|
-
*
|
|
18
|
-
* @remarks
|
|
19
|
-
* arrays as {"messages"} on messages cells and {"items"} elsewhere, other
|
|
20
|
-
* scalars as {"value"}.
|
|
21
|
-
*/
|
|
22
|
-
export type CellValue = {};
|
|
23
|
-
|
|
24
15
|
export type Cell = {
|
|
25
16
|
cellId?: string | undefined;
|
|
26
17
|
rowId?: string | undefined;
|
|
@@ -32,38 +23,30 @@ export type Cell = {
|
|
|
32
23
|
*
|
|
33
24
|
* @remarks
|
|
34
25
|
* arrays as {"messages"} on messages cells and {"items"} elsewhere, other
|
|
35
|
-
* scalars as {"value"}.
|
|
26
|
+
* scalars as {"value"}. Null for a cell that has no value yet.
|
|
27
|
+
*/
|
|
28
|
+
value?: { [k: string]: any } | null | undefined;
|
|
29
|
+
/**
|
|
30
|
+
* Null when the cell holds no trace, response or session references.
|
|
36
31
|
*/
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
32
|
+
artifacts?: ArtifactRefs | null | undefined;
|
|
33
|
+
/**
|
|
34
|
+
* Only present while the cell is running.
|
|
35
|
+
*/
|
|
36
|
+
progress?: CellProgress | null | undefined;
|
|
40
37
|
errorMessage?: string | undefined;
|
|
41
38
|
type?: CellType | undefined;
|
|
42
39
|
/**
|
|
43
40
|
* Task column an evaluator, metric or review cell belongs to.
|
|
44
41
|
*/
|
|
45
42
|
taskColumnId?: string | undefined;
|
|
46
|
-
|
|
47
|
-
|
|
43
|
+
/**
|
|
44
|
+
* Null on cells written before timestamps were recorded.
|
|
45
|
+
*/
|
|
46
|
+
createdAt?: Date | null | undefined;
|
|
47
|
+
updatedAt?: Date | null | undefined;
|
|
48
48
|
};
|
|
49
49
|
|
|
50
|
-
/** @internal */
|
|
51
|
-
export const CellValue$inboundSchema: z.ZodType<
|
|
52
|
-
CellValue,
|
|
53
|
-
z.ZodTypeDef,
|
|
54
|
-
unknown
|
|
55
|
-
> = z.object({});
|
|
56
|
-
|
|
57
|
-
export function cellValueFromJSON(
|
|
58
|
-
jsonString: string,
|
|
59
|
-
): SafeParseResult<CellValue, SDKValidationError> {
|
|
60
|
-
return safeParse(
|
|
61
|
-
jsonString,
|
|
62
|
-
(x) => CellValue$inboundSchema.parse(JSON.parse(x)),
|
|
63
|
-
`Failed to parse 'CellValue' from JSON`,
|
|
64
|
-
);
|
|
65
|
-
}
|
|
66
|
-
|
|
67
50
|
/** @internal */
|
|
68
51
|
export const Cell$inboundSchema: z.ZodType<Cell, z.ZodTypeDef, unknown> = z
|
|
69
52
|
.object({
|
|
@@ -72,17 +55,17 @@ export const Cell$inboundSchema: z.ZodType<Cell, z.ZodTypeDef, unknown> = z
|
|
|
72
55
|
column_id: z.string().optional(),
|
|
73
56
|
repeat_index: z.number().int().optional(),
|
|
74
57
|
status: CellStatus$inboundSchema.optional(),
|
|
75
|
-
value: z.
|
|
76
|
-
artifacts: ArtifactRefs$inboundSchema.optional(),
|
|
77
|
-
progress: CellProgress$inboundSchema.optional(),
|
|
58
|
+
value: z.nullable(z.record(z.any())).optional(),
|
|
59
|
+
artifacts: z.nullable(ArtifactRefs$inboundSchema).optional(),
|
|
60
|
+
progress: z.nullable(CellProgress$inboundSchema).optional(),
|
|
78
61
|
error_message: z.string().optional(),
|
|
79
62
|
type: CellType$inboundSchema.optional(),
|
|
80
63
|
task_column_id: z.string().optional(),
|
|
81
|
-
created_at: z.
|
|
82
|
-
new Date(v)
|
|
64
|
+
created_at: z.nullable(
|
|
65
|
+
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
83
66
|
).optional(),
|
|
84
|
-
updated_at: z.
|
|
85
|
-
new Date(v)
|
|
67
|
+
updated_at: z.nullable(
|
|
68
|
+
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
86
69
|
).optional(),
|
|
87
70
|
}).transform((v) => {
|
|
88
71
|
return remap$(v, {
|
|
@@ -23,6 +23,10 @@ export type McpToolExposure = {
|
|
|
23
23
|
* `McpTool.id` values to expose when mode is SELECTED; a tool renamed upstream gets a new id on the next sync.
|
|
24
24
|
*/
|
|
25
25
|
toolIds?: Array<string> | undefined;
|
|
26
|
+
/**
|
|
27
|
+
* `McpTool.id` values deliberately left unexposed when mode is SELECTED; an active tool in neither list is new to this selection.
|
|
28
|
+
*/
|
|
29
|
+
excludedToolIds?: Array<string> | undefined;
|
|
26
30
|
};
|
|
27
31
|
|
|
28
32
|
/** @internal */
|
|
@@ -34,10 +38,12 @@ export const McpToolExposure$inboundSchema: z.ZodType<
|
|
|
34
38
|
mode: McpToolExposureMode$inboundSchema,
|
|
35
39
|
read_only: z.boolean().optional(),
|
|
36
40
|
tool_ids: z.array(z.string()).optional(),
|
|
41
|
+
excluded_tool_ids: z.array(z.string()).optional(),
|
|
37
42
|
}).transform((v) => {
|
|
38
43
|
return remap$(v, {
|
|
39
44
|
"read_only": "readOnly",
|
|
40
45
|
"tool_ids": "toolIds",
|
|
46
|
+
"excluded_tool_ids": "excludedToolIds",
|
|
41
47
|
});
|
|
42
48
|
});
|
|
43
49
|
/** @internal */
|
|
@@ -45,6 +51,7 @@ export type McpToolExposure$Outbound = {
|
|
|
45
51
|
mode: string;
|
|
46
52
|
read_only?: boolean | undefined;
|
|
47
53
|
tool_ids?: Array<string> | undefined;
|
|
54
|
+
excluded_tool_ids?: Array<string> | undefined;
|
|
48
55
|
};
|
|
49
56
|
|
|
50
57
|
/** @internal */
|
|
@@ -56,10 +63,12 @@ export const McpToolExposure$outboundSchema: z.ZodType<
|
|
|
56
63
|
mode: McpToolExposureMode$outboundSchema,
|
|
57
64
|
readOnly: z.boolean().optional(),
|
|
58
65
|
toolIds: z.array(z.string()).optional(),
|
|
66
|
+
excludedToolIds: z.array(z.string()).optional(),
|
|
59
67
|
}).transform((v) => {
|
|
60
68
|
return remap$(v, {
|
|
61
69
|
readOnly: "read_only",
|
|
62
70
|
toolIds: "tool_ids",
|
|
71
|
+
excludedToolIds: "excluded_tool_ids",
|
|
63
72
|
});
|
|
64
73
|
});
|
|
65
74
|
|
|
@@ -27,7 +27,10 @@ export type MetricSummary = {
|
|
|
27
27
|
number?: NumberMetricSummary | undefined;
|
|
28
28
|
boolean?: BooleanMetricSummary | undefined;
|
|
29
29
|
categorical?: CategoricalMetricSummary | undefined;
|
|
30
|
-
|
|
30
|
+
/**
|
|
31
|
+
* Null unless a baseline run was requested.
|
|
32
|
+
*/
|
|
33
|
+
baseline?: MetricBaseline | null | undefined;
|
|
31
34
|
};
|
|
32
35
|
|
|
33
36
|
/** @internal */
|
|
@@ -39,7 +42,7 @@ export const MetricSummary$inboundSchema: z.ZodType<
|
|
|
39
42
|
number: NumberMetricSummary$inboundSchema.optional(),
|
|
40
43
|
boolean: BooleanMetricSummary$inboundSchema.optional(),
|
|
41
44
|
categorical: CategoricalMetricSummary$inboundSchema.optional(),
|
|
42
|
-
baseline: MetricBaseline$inboundSchema.optional(),
|
|
45
|
+
baseline: z.nullable(MetricBaseline$inboundSchema).optional(),
|
|
43
46
|
});
|
|
44
47
|
|
|
45
48
|
export function metricSummaryFromJSON(
|
|
@@ -4,29 +4,13 @@
|
|
|
4
4
|
|
|
5
5
|
import * as z from "zod/v3";
|
|
6
6
|
|
|
7
|
-
export type Value = {};
|
|
8
|
-
|
|
9
7
|
export type PatchEvalCellRequest = {
|
|
10
|
-
value?:
|
|
8
|
+
value?: { [k: string]: any } | undefined;
|
|
11
9
|
};
|
|
12
10
|
|
|
13
|
-
/** @internal */
|
|
14
|
-
export type Value$Outbound = {};
|
|
15
|
-
|
|
16
|
-
/** @internal */
|
|
17
|
-
export const Value$outboundSchema: z.ZodType<
|
|
18
|
-
Value$Outbound,
|
|
19
|
-
z.ZodTypeDef,
|
|
20
|
-
Value
|
|
21
|
-
> = z.object({});
|
|
22
|
-
|
|
23
|
-
export function valueToJSON(value: Value): string {
|
|
24
|
-
return JSON.stringify(Value$outboundSchema.parse(value));
|
|
25
|
-
}
|
|
26
|
-
|
|
27
11
|
/** @internal */
|
|
28
12
|
export type PatchEvalCellRequest$Outbound = {
|
|
29
|
-
value?:
|
|
13
|
+
value?: { [k: string]: any } | undefined;
|
|
30
14
|
};
|
|
31
15
|
|
|
32
16
|
/** @internal */
|
|
@@ -35,7 +19,7 @@ export const PatchEvalCellRequest$outboundSchema: z.ZodType<
|
|
|
35
19
|
z.ZodTypeDef,
|
|
36
20
|
PatchEvalCellRequest
|
|
37
21
|
> = z.object({
|
|
38
|
-
value: z.
|
|
22
|
+
value: z.record(z.any()).optional(),
|
|
39
23
|
});
|
|
40
24
|
|
|
41
25
|
export function patchEvalCellRequestToJSON(
|
|
@@ -4,35 +4,13 @@
|
|
|
4
4
|
|
|
5
5
|
import * as z from "zod/v3";
|
|
6
6
|
|
|
7
|
-
export type PatchReviewCellRequestValue = {};
|
|
8
|
-
|
|
9
7
|
export type PatchReviewCellRequest = {
|
|
10
|
-
value?:
|
|
8
|
+
value?: { [k: string]: any } | undefined;
|
|
11
9
|
};
|
|
12
10
|
|
|
13
|
-
/** @internal */
|
|
14
|
-
export type PatchReviewCellRequestValue$Outbound = {};
|
|
15
|
-
|
|
16
|
-
/** @internal */
|
|
17
|
-
export const PatchReviewCellRequestValue$outboundSchema: z.ZodType<
|
|
18
|
-
PatchReviewCellRequestValue$Outbound,
|
|
19
|
-
z.ZodTypeDef,
|
|
20
|
-
PatchReviewCellRequestValue
|
|
21
|
-
> = z.object({});
|
|
22
|
-
|
|
23
|
-
export function patchReviewCellRequestValueToJSON(
|
|
24
|
-
patchReviewCellRequestValue: PatchReviewCellRequestValue,
|
|
25
|
-
): string {
|
|
26
|
-
return JSON.stringify(
|
|
27
|
-
PatchReviewCellRequestValue$outboundSchema.parse(
|
|
28
|
-
patchReviewCellRequestValue,
|
|
29
|
-
),
|
|
30
|
-
);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
11
|
/** @internal */
|
|
34
12
|
export type PatchReviewCellRequest$Outbound = {
|
|
35
|
-
value?:
|
|
13
|
+
value?: { [k: string]: any } | undefined;
|
|
36
14
|
};
|
|
37
15
|
|
|
38
16
|
/** @internal */
|
|
@@ -41,7 +19,7 @@ export const PatchReviewCellRequest$outboundSchema: z.ZodType<
|
|
|
41
19
|
z.ZodTypeDef,
|
|
42
20
|
PatchReviewCellRequest
|
|
43
21
|
> = z.object({
|
|
44
|
-
value: z.
|
|
22
|
+
value: z.record(z.any()).optional(),
|
|
45
23
|
});
|
|
46
24
|
|
|
47
25
|
export function patchReviewCellRequestToJSON(
|
|
@@ -10,36 +10,16 @@ import {
|
|
|
10
10
|
ArtifactRefs$outboundSchema,
|
|
11
11
|
} from "./artifactrefs.js";
|
|
12
12
|
|
|
13
|
-
export type PatchTaskCellRequestValue = {};
|
|
14
|
-
|
|
15
13
|
export type PatchTaskCellRequest = {
|
|
16
14
|
repeatIndex?: number | undefined;
|
|
17
|
-
value?:
|
|
15
|
+
value?: { [k: string]: any } | undefined;
|
|
18
16
|
artifacts?: ArtifactRefs | undefined;
|
|
19
17
|
};
|
|
20
18
|
|
|
21
|
-
/** @internal */
|
|
22
|
-
export type PatchTaskCellRequestValue$Outbound = {};
|
|
23
|
-
|
|
24
|
-
/** @internal */
|
|
25
|
-
export const PatchTaskCellRequestValue$outboundSchema: z.ZodType<
|
|
26
|
-
PatchTaskCellRequestValue$Outbound,
|
|
27
|
-
z.ZodTypeDef,
|
|
28
|
-
PatchTaskCellRequestValue
|
|
29
|
-
> = z.object({});
|
|
30
|
-
|
|
31
|
-
export function patchTaskCellRequestValueToJSON(
|
|
32
|
-
patchTaskCellRequestValue: PatchTaskCellRequestValue,
|
|
33
|
-
): string {
|
|
34
|
-
return JSON.stringify(
|
|
35
|
-
PatchTaskCellRequestValue$outboundSchema.parse(patchTaskCellRequestValue),
|
|
36
|
-
);
|
|
37
|
-
}
|
|
38
|
-
|
|
39
19
|
/** @internal */
|
|
40
20
|
export type PatchTaskCellRequest$Outbound = {
|
|
41
21
|
repeat_index?: number | undefined;
|
|
42
|
-
value?:
|
|
22
|
+
value?: { [k: string]: any } | undefined;
|
|
43
23
|
artifacts?: ArtifactRefs$Outbound | undefined;
|
|
44
24
|
};
|
|
45
25
|
|
|
@@ -50,7 +30,7 @@ export const PatchTaskCellRequest$outboundSchema: z.ZodType<
|
|
|
50
30
|
PatchTaskCellRequest
|
|
51
31
|
> = z.object({
|
|
52
32
|
repeatIndex: z.number().int().optional(),
|
|
53
|
-
value: z.
|
|
33
|
+
value: z.record(z.any()).optional(),
|
|
54
34
|
artifacts: ArtifactRefs$outboundSchema.optional(),
|
|
55
35
|
}).transform((v) => {
|
|
56
36
|
return remap$(v, {
|
|
@@ -13,191 +13,35 @@ import {
|
|
|
13
13
|
MessagesSource$outboundSchema,
|
|
14
14
|
} from "./messagessource.js";
|
|
15
15
|
|
|
16
|
-
export type PromptConfig = {};
|
|
17
|
-
|
|
18
|
-
export type Tools = {};
|
|
19
|
-
|
|
20
|
-
export type KnowledgeBases = {};
|
|
21
|
-
|
|
22
|
-
export type PromptTaskConfigMetadata = {};
|
|
23
|
-
|
|
24
|
-
export type EntityConfiguration = {};
|
|
25
|
-
|
|
26
16
|
export type PromptTaskConfig = {
|
|
27
|
-
promptConfig
|
|
17
|
+
promptConfig: { [k: string]: any };
|
|
28
18
|
messagesSource?: MessagesSource | undefined;
|
|
29
19
|
engine?: string | undefined;
|
|
30
|
-
tools?: Array<
|
|
31
|
-
knowledgeBases?: Array<
|
|
32
|
-
|
|
33
|
-
|
|
20
|
+
tools?: Array<{ [k: string]: any }> | undefined;
|
|
21
|
+
knowledgeBases?: Array<{ [k: string]: any }> | undefined;
|
|
22
|
+
/**
|
|
23
|
+
* Null when the column was saved without metadata.
|
|
24
|
+
*/
|
|
25
|
+
metadata?: { [k: string]: any } | null | undefined;
|
|
26
|
+
/**
|
|
27
|
+
* Null when the column was saved without an entity configuration.
|
|
28
|
+
*/
|
|
29
|
+
entityConfiguration?: { [k: string]: any } | null | undefined;
|
|
34
30
|
};
|
|
35
31
|
|
|
36
|
-
/** @internal */
|
|
37
|
-
export const PromptConfig$inboundSchema: z.ZodType<
|
|
38
|
-
PromptConfig,
|
|
39
|
-
z.ZodTypeDef,
|
|
40
|
-
unknown
|
|
41
|
-
> = z.object({});
|
|
42
|
-
/** @internal */
|
|
43
|
-
export type PromptConfig$Outbound = {};
|
|
44
|
-
|
|
45
|
-
/** @internal */
|
|
46
|
-
export const PromptConfig$outboundSchema: z.ZodType<
|
|
47
|
-
PromptConfig$Outbound,
|
|
48
|
-
z.ZodTypeDef,
|
|
49
|
-
PromptConfig
|
|
50
|
-
> = z.object({});
|
|
51
|
-
|
|
52
|
-
export function promptConfigToJSON(promptConfig: PromptConfig): string {
|
|
53
|
-
return JSON.stringify(PromptConfig$outboundSchema.parse(promptConfig));
|
|
54
|
-
}
|
|
55
|
-
export function promptConfigFromJSON(
|
|
56
|
-
jsonString: string,
|
|
57
|
-
): SafeParseResult<PromptConfig, SDKValidationError> {
|
|
58
|
-
return safeParse(
|
|
59
|
-
jsonString,
|
|
60
|
-
(x) => PromptConfig$inboundSchema.parse(JSON.parse(x)),
|
|
61
|
-
`Failed to parse 'PromptConfig' from JSON`,
|
|
62
|
-
);
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
/** @internal */
|
|
66
|
-
export const Tools$inboundSchema: z.ZodType<Tools, z.ZodTypeDef, unknown> = z
|
|
67
|
-
.object({});
|
|
68
|
-
/** @internal */
|
|
69
|
-
export type Tools$Outbound = {};
|
|
70
|
-
|
|
71
|
-
/** @internal */
|
|
72
|
-
export const Tools$outboundSchema: z.ZodType<
|
|
73
|
-
Tools$Outbound,
|
|
74
|
-
z.ZodTypeDef,
|
|
75
|
-
Tools
|
|
76
|
-
> = z.object({});
|
|
77
|
-
|
|
78
|
-
export function toolsToJSON(tools: Tools): string {
|
|
79
|
-
return JSON.stringify(Tools$outboundSchema.parse(tools));
|
|
80
|
-
}
|
|
81
|
-
export function toolsFromJSON(
|
|
82
|
-
jsonString: string,
|
|
83
|
-
): SafeParseResult<Tools, SDKValidationError> {
|
|
84
|
-
return safeParse(
|
|
85
|
-
jsonString,
|
|
86
|
-
(x) => Tools$inboundSchema.parse(JSON.parse(x)),
|
|
87
|
-
`Failed to parse 'Tools' from JSON`,
|
|
88
|
-
);
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
/** @internal */
|
|
92
|
-
export const KnowledgeBases$inboundSchema: z.ZodType<
|
|
93
|
-
KnowledgeBases,
|
|
94
|
-
z.ZodTypeDef,
|
|
95
|
-
unknown
|
|
96
|
-
> = z.object({});
|
|
97
|
-
/** @internal */
|
|
98
|
-
export type KnowledgeBases$Outbound = {};
|
|
99
|
-
|
|
100
|
-
/** @internal */
|
|
101
|
-
export const KnowledgeBases$outboundSchema: z.ZodType<
|
|
102
|
-
KnowledgeBases$Outbound,
|
|
103
|
-
z.ZodTypeDef,
|
|
104
|
-
KnowledgeBases
|
|
105
|
-
> = z.object({});
|
|
106
|
-
|
|
107
|
-
export function knowledgeBasesToJSON(knowledgeBases: KnowledgeBases): string {
|
|
108
|
-
return JSON.stringify(KnowledgeBases$outboundSchema.parse(knowledgeBases));
|
|
109
|
-
}
|
|
110
|
-
export function knowledgeBasesFromJSON(
|
|
111
|
-
jsonString: string,
|
|
112
|
-
): SafeParseResult<KnowledgeBases, SDKValidationError> {
|
|
113
|
-
return safeParse(
|
|
114
|
-
jsonString,
|
|
115
|
-
(x) => KnowledgeBases$inboundSchema.parse(JSON.parse(x)),
|
|
116
|
-
`Failed to parse 'KnowledgeBases' from JSON`,
|
|
117
|
-
);
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
/** @internal */
|
|
121
|
-
export const PromptTaskConfigMetadata$inboundSchema: z.ZodType<
|
|
122
|
-
PromptTaskConfigMetadata,
|
|
123
|
-
z.ZodTypeDef,
|
|
124
|
-
unknown
|
|
125
|
-
> = z.object({});
|
|
126
|
-
/** @internal */
|
|
127
|
-
export type PromptTaskConfigMetadata$Outbound = {};
|
|
128
|
-
|
|
129
|
-
/** @internal */
|
|
130
|
-
export const PromptTaskConfigMetadata$outboundSchema: z.ZodType<
|
|
131
|
-
PromptTaskConfigMetadata$Outbound,
|
|
132
|
-
z.ZodTypeDef,
|
|
133
|
-
PromptTaskConfigMetadata
|
|
134
|
-
> = z.object({});
|
|
135
|
-
|
|
136
|
-
export function promptTaskConfigMetadataToJSON(
|
|
137
|
-
promptTaskConfigMetadata: PromptTaskConfigMetadata,
|
|
138
|
-
): string {
|
|
139
|
-
return JSON.stringify(
|
|
140
|
-
PromptTaskConfigMetadata$outboundSchema.parse(promptTaskConfigMetadata),
|
|
141
|
-
);
|
|
142
|
-
}
|
|
143
|
-
export function promptTaskConfigMetadataFromJSON(
|
|
144
|
-
jsonString: string,
|
|
145
|
-
): SafeParseResult<PromptTaskConfigMetadata, SDKValidationError> {
|
|
146
|
-
return safeParse(
|
|
147
|
-
jsonString,
|
|
148
|
-
(x) => PromptTaskConfigMetadata$inboundSchema.parse(JSON.parse(x)),
|
|
149
|
-
`Failed to parse 'PromptTaskConfigMetadata' from JSON`,
|
|
150
|
-
);
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
/** @internal */
|
|
154
|
-
export const EntityConfiguration$inboundSchema: z.ZodType<
|
|
155
|
-
EntityConfiguration,
|
|
156
|
-
z.ZodTypeDef,
|
|
157
|
-
unknown
|
|
158
|
-
> = z.object({});
|
|
159
|
-
/** @internal */
|
|
160
|
-
export type EntityConfiguration$Outbound = {};
|
|
161
|
-
|
|
162
|
-
/** @internal */
|
|
163
|
-
export const EntityConfiguration$outboundSchema: z.ZodType<
|
|
164
|
-
EntityConfiguration$Outbound,
|
|
165
|
-
z.ZodTypeDef,
|
|
166
|
-
EntityConfiguration
|
|
167
|
-
> = z.object({});
|
|
168
|
-
|
|
169
|
-
export function entityConfigurationToJSON(
|
|
170
|
-
entityConfiguration: EntityConfiguration,
|
|
171
|
-
): string {
|
|
172
|
-
return JSON.stringify(
|
|
173
|
-
EntityConfiguration$outboundSchema.parse(entityConfiguration),
|
|
174
|
-
);
|
|
175
|
-
}
|
|
176
|
-
export function entityConfigurationFromJSON(
|
|
177
|
-
jsonString: string,
|
|
178
|
-
): SafeParseResult<EntityConfiguration, SDKValidationError> {
|
|
179
|
-
return safeParse(
|
|
180
|
-
jsonString,
|
|
181
|
-
(x) => EntityConfiguration$inboundSchema.parse(JSON.parse(x)),
|
|
182
|
-
`Failed to parse 'EntityConfiguration' from JSON`,
|
|
183
|
-
);
|
|
184
|
-
}
|
|
185
|
-
|
|
186
32
|
/** @internal */
|
|
187
33
|
export const PromptTaskConfig$inboundSchema: z.ZodType<
|
|
188
34
|
PromptTaskConfig,
|
|
189
35
|
z.ZodTypeDef,
|
|
190
36
|
unknown
|
|
191
37
|
> = z.object({
|
|
192
|
-
prompt_config: z.
|
|
38
|
+
prompt_config: z.record(z.any()),
|
|
193
39
|
messages_source: MessagesSource$inboundSchema.optional(),
|
|
194
40
|
engine: z.string().optional(),
|
|
195
|
-
tools: z.array(z.
|
|
196
|
-
knowledge_bases: z.array(z.
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
entity_configuration: z.lazy(() => EntityConfiguration$inboundSchema)
|
|
200
|
-
.optional(),
|
|
41
|
+
tools: z.array(z.record(z.any())).optional(),
|
|
42
|
+
knowledge_bases: z.array(z.record(z.any())).optional(),
|
|
43
|
+
metadata: z.nullable(z.record(z.any())).optional(),
|
|
44
|
+
entity_configuration: z.nullable(z.record(z.any())).optional(),
|
|
201
45
|
}).transform((v) => {
|
|
202
46
|
return remap$(v, {
|
|
203
47
|
"prompt_config": "promptConfig",
|
|
@@ -208,13 +52,13 @@ export const PromptTaskConfig$inboundSchema: z.ZodType<
|
|
|
208
52
|
});
|
|
209
53
|
/** @internal */
|
|
210
54
|
export type PromptTaskConfig$Outbound = {
|
|
211
|
-
prompt_config
|
|
55
|
+
prompt_config: { [k: string]: any };
|
|
212
56
|
messages_source?: string | undefined;
|
|
213
57
|
engine?: string | undefined;
|
|
214
|
-
tools?: Array<
|
|
215
|
-
knowledge_bases?: Array<
|
|
216
|
-
metadata?:
|
|
217
|
-
entity_configuration?:
|
|
58
|
+
tools?: Array<{ [k: string]: any }> | undefined;
|
|
59
|
+
knowledge_bases?: Array<{ [k: string]: any }> | undefined;
|
|
60
|
+
metadata?: { [k: string]: any } | null | undefined;
|
|
61
|
+
entity_configuration?: { [k: string]: any } | null | undefined;
|
|
218
62
|
};
|
|
219
63
|
|
|
220
64
|
/** @internal */
|
|
@@ -223,15 +67,13 @@ export const PromptTaskConfig$outboundSchema: z.ZodType<
|
|
|
223
67
|
z.ZodTypeDef,
|
|
224
68
|
PromptTaskConfig
|
|
225
69
|
> = z.object({
|
|
226
|
-
promptConfig: z.
|
|
70
|
+
promptConfig: z.record(z.any()),
|
|
227
71
|
messagesSource: MessagesSource$outboundSchema.optional(),
|
|
228
72
|
engine: z.string().optional(),
|
|
229
|
-
tools: z.array(z.
|
|
230
|
-
knowledgeBases: z.array(z.
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
entityConfiguration: z.lazy(() => EntityConfiguration$outboundSchema)
|
|
234
|
-
.optional(),
|
|
73
|
+
tools: z.array(z.record(z.any())).optional(),
|
|
74
|
+
knowledgeBases: z.array(z.record(z.any())).optional(),
|
|
75
|
+
metadata: z.nullable(z.record(z.any())).optional(),
|
|
76
|
+
entityConfiguration: z.nullable(z.record(z.any())).optional(),
|
|
235
77
|
}).transform((v) => {
|
|
236
78
|
return remap$(v, {
|
|
237
79
|
promptConfig: "prompt_config",
|
|
@@ -15,8 +15,11 @@ export type QueryRow = {
|
|
|
15
15
|
displayName?: string | undefined;
|
|
16
16
|
cells?: Array<Cell> | undefined;
|
|
17
17
|
status?: RowStatus | undefined;
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
/**
|
|
19
|
+
* Null on rows written before timestamps were recorded.
|
|
20
|
+
*/
|
|
21
|
+
createdAt?: Date | null | undefined;
|
|
22
|
+
updatedAt?: Date | null | undefined;
|
|
20
23
|
};
|
|
21
24
|
|
|
22
25
|
/** @internal */
|
|
@@ -29,10 +32,12 @@ export const QueryRow$inboundSchema: z.ZodType<
|
|
|
29
32
|
display_name: z.string().optional(),
|
|
30
33
|
cells: z.array(Cell$inboundSchema).optional(),
|
|
31
34
|
status: RowStatus$inboundSchema.optional(),
|
|
32
|
-
created_at: z.
|
|
33
|
-
.
|
|
34
|
-
|
|
35
|
-
|
|
35
|
+
created_at: z.nullable(
|
|
36
|
+
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
37
|
+
).optional(),
|
|
38
|
+
updated_at: z.nullable(
|
|
39
|
+
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
40
|
+
).optional(),
|
|
36
41
|
}).transform((v) => {
|
|
37
42
|
return remap$(v, {
|
|
38
43
|
"row_id": "rowId",
|
|
@@ -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_01m6gzr1c5xp1r28dtxndt17qq"),
|
|
44
44
|
metadata: z.record(z.any()).optional(),
|
|
45
45
|
kind: z.literal("reasoning"),
|
|
46
46
|
reasoning: z.string(),
|
|
@@ -26,9 +26,15 @@ export type Run = {
|
|
|
26
26
|
rowCount?: number | undefined;
|
|
27
27
|
cellStatusCounts?: CellStatusCounts | undefined;
|
|
28
28
|
columns?: Array<Column> | undefined;
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
29
|
+
/**
|
|
30
|
+
* Null on runs created without settings, such as evaluatorq uploads.
|
|
31
|
+
*/
|
|
32
|
+
settings?: RunSettings | null | undefined;
|
|
33
|
+
/**
|
|
34
|
+
* Null until the run is executed.
|
|
35
|
+
*/
|
|
36
|
+
startedAt?: Date | null | undefined;
|
|
37
|
+
completedAt?: Date | null | undefined;
|
|
32
38
|
createdAt?: Date | undefined;
|
|
33
39
|
updatedAt?: Date | undefined;
|
|
34
40
|
/**
|
|
@@ -54,12 +60,12 @@ export const Run$inboundSchema: z.ZodType<Run, z.ZodTypeDef, unknown> = z
|
|
|
54
60
|
row_count: z.number().int().optional(),
|
|
55
61
|
cell_status_counts: CellStatusCounts$inboundSchema.optional(),
|
|
56
62
|
columns: z.array(Column$inboundSchema).optional(),
|
|
57
|
-
settings: RunSettings$inboundSchema.optional(),
|
|
58
|
-
started_at: z.
|
|
59
|
-
new Date(v)
|
|
63
|
+
settings: z.nullable(RunSettings$inboundSchema).optional(),
|
|
64
|
+
started_at: z.nullable(
|
|
65
|
+
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
60
66
|
).optional(),
|
|
61
|
-
completed_at: z.
|
|
62
|
-
new Date(v)
|
|
67
|
+
completed_at: z.nullable(
|
|
68
|
+
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
63
69
|
).optional(),
|
|
64
70
|
created_at: z.string().datetime({ offset: true }).transform(v =>
|
|
65
71
|
new Date(v)
|
|
@@ -4,33 +4,13 @@
|
|
|
4
4
|
|
|
5
5
|
import * as z from "zod/v3";
|
|
6
6
|
|
|
7
|
-
export type UpdateRunCellRequestValue = {};
|
|
8
|
-
|
|
9
7
|
export type UpdateRunCellRequest = {
|
|
10
|
-
value?:
|
|
8
|
+
value?: { [k: string]: any } | undefined;
|
|
11
9
|
};
|
|
12
10
|
|
|
13
|
-
/** @internal */
|
|
14
|
-
export type UpdateRunCellRequestValue$Outbound = {};
|
|
15
|
-
|
|
16
|
-
/** @internal */
|
|
17
|
-
export const UpdateRunCellRequestValue$outboundSchema: z.ZodType<
|
|
18
|
-
UpdateRunCellRequestValue$Outbound,
|
|
19
|
-
z.ZodTypeDef,
|
|
20
|
-
UpdateRunCellRequestValue
|
|
21
|
-
> = z.object({});
|
|
22
|
-
|
|
23
|
-
export function updateRunCellRequestValueToJSON(
|
|
24
|
-
updateRunCellRequestValue: UpdateRunCellRequestValue,
|
|
25
|
-
): string {
|
|
26
|
-
return JSON.stringify(
|
|
27
|
-
UpdateRunCellRequestValue$outboundSchema.parse(updateRunCellRequestValue),
|
|
28
|
-
);
|
|
29
|
-
}
|
|
30
|
-
|
|
31
11
|
/** @internal */
|
|
32
12
|
export type UpdateRunCellRequest$Outbound = {
|
|
33
|
-
value?:
|
|
13
|
+
value?: { [k: string]: any } | undefined;
|
|
34
14
|
};
|
|
35
15
|
|
|
36
16
|
/** @internal */
|
|
@@ -39,7 +19,7 @@ export const UpdateRunCellRequest$outboundSchema: z.ZodType<
|
|
|
39
19
|
z.ZodTypeDef,
|
|
40
20
|
UpdateRunCellRequest
|
|
41
21
|
> = z.object({
|
|
42
|
-
value: z.
|
|
22
|
+
value: z.record(z.any()).optional(),
|
|
43
23
|
});
|
|
44
24
|
|
|
45
25
|
export function updateRunCellRequestToJSON(
|