@orq-ai/node 4.18.0-rc.23 → 4.18.0-rc.25
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/funcs/routerClassifyCreate.d.ts +1 -1
- package/funcs/routerClassifyCreate.js +1 -1
- package/funcs/routerDecisionsCreate.d.ts +1 -1
- package/funcs/routerDecisionsCreate.js +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/models/components/agentstartedstreamingevent.d.ts +4 -4
- 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/externalagent.d.ts +3 -5
- package/models/components/externalagent.d.ts.map +1 -1
- package/models/components/externalagent.js +2 -8
- package/models/components/externalagent.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/memorystoreembeddingconfig.d.ts +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 +30 -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/redactedreasoningpartschema.d.ts +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/testexternalagentconnectionresponse.d.ts +3 -5
- package/models/components/testexternalagentconnectionresponse.d.ts.map +1 -1
- package/models/components/testexternalagentconnectionresponse.js +2 -9
- package/models/components/testexternalagentconnectionresponse.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/createimagevariation.d.ts +1 -1
- package/models/operations/createtool.js +4 -4
- package/models/operations/getalltools.js +4 -4
- package/models/operations/listdeploymentversions.js +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/updatetool.js +4 -4
- package/package.json +1 -1
- package/sdk/classify.d.ts +1 -1
- package/sdk/classify.js +1 -1
- package/sdk/decisions.d.ts +1 -1
- package/sdk/decisions.js +1 -1
- package/src/funcs/routerClassifyCreate.ts +1 -1
- package/src/funcs/routerDecisionsCreate.ts +1 -1
- package/src/lib/config.ts +2 -2
- package/src/models/components/agentstartedstreamingevent.ts +30 -34
- package/src/models/components/agenttaskconfig.ts +4 -41
- package/src/models/components/cell.ts +22 -39
- package/src/models/components/externalagent.ts +2 -21
- package/src/models/components/mcptoolexposure.ts +9 -0
- package/src/models/components/memorystoreembeddingconfig.ts +1 -1
- 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 +20 -184
- package/src/models/components/queryrow.ts +11 -6
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/components/redactedreasoningpartschema.ts +1 -1
- package/src/models/components/run.ts +14 -8
- package/src/models/components/testexternalagentconnectionresponse.ts +2 -18
- package/src/models/components/updateruncellrequest.ts +3 -23
- package/src/models/operations/createimagevariation.ts +1 -1
- package/src/models/operations/createtool.ts +4 -4
- package/src/models/operations/getalltools.ts +4 -4
- package/src/models/operations/listdeploymentversions.ts +1 -1
- 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/updatetool.ts +4 -4
- package/src/sdk/classify.ts +1 -1
- package/src/sdk/decisions.ts +1 -1
|
@@ -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, {
|
|
@@ -12,8 +12,6 @@ import {
|
|
|
12
12
|
ExternalAgentHeader$inboundSchema,
|
|
13
13
|
} from "./externalagentheader.js";
|
|
14
14
|
|
|
15
|
-
export type CachedCard = {};
|
|
16
|
-
|
|
17
15
|
export type ExternalAgent = {
|
|
18
16
|
agentId: string;
|
|
19
17
|
key: string;
|
|
@@ -26,7 +24,7 @@ export type ExternalAgent = {
|
|
|
26
24
|
headers: { [k: string]: ExternalAgentHeader };
|
|
27
25
|
protocolVersion: string;
|
|
28
26
|
preferredTransport: string;
|
|
29
|
-
cachedCard:
|
|
27
|
+
cachedCard: { [k: string]: any };
|
|
30
28
|
cardRefreshedAt?: Date | undefined;
|
|
31
29
|
createdAt: Date;
|
|
32
30
|
updatedAt: Date;
|
|
@@ -35,23 +33,6 @@ export type ExternalAgent = {
|
|
|
35
33
|
version: string;
|
|
36
34
|
};
|
|
37
35
|
|
|
38
|
-
/** @internal */
|
|
39
|
-
export const CachedCard$inboundSchema: z.ZodType<
|
|
40
|
-
CachedCard,
|
|
41
|
-
z.ZodTypeDef,
|
|
42
|
-
unknown
|
|
43
|
-
> = z.object({});
|
|
44
|
-
|
|
45
|
-
export function cachedCardFromJSON(
|
|
46
|
-
jsonString: string,
|
|
47
|
-
): SafeParseResult<CachedCard, SDKValidationError> {
|
|
48
|
-
return safeParse(
|
|
49
|
-
jsonString,
|
|
50
|
-
(x) => CachedCard$inboundSchema.parse(JSON.parse(x)),
|
|
51
|
-
`Failed to parse 'CachedCard' from JSON`,
|
|
52
|
-
);
|
|
53
|
-
}
|
|
54
|
-
|
|
55
36
|
/** @internal */
|
|
56
37
|
export const ExternalAgent$inboundSchema: z.ZodType<
|
|
57
38
|
ExternalAgent,
|
|
@@ -69,7 +50,7 @@ export const ExternalAgent$inboundSchema: z.ZodType<
|
|
|
69
50
|
headers: z.record(ExternalAgentHeader$inboundSchema),
|
|
70
51
|
protocol_version: z.string(),
|
|
71
52
|
preferred_transport: z.string(),
|
|
72
|
-
cached_card: z.
|
|
53
|
+
cached_card: z.record(z.any()),
|
|
73
54
|
card_refreshed_at: z.string().datetime({ offset: true }).transform(v =>
|
|
74
55
|
new Date(v)
|
|
75
56
|
).optional(),
|
|
@@ -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
|
|
|
@@ -9,7 +9,7 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
|
9
9
|
|
|
10
10
|
export type MemoryStoreEmbeddingConfig = {
|
|
11
11
|
/**
|
|
12
|
-
* The embeddings model to use for the
|
|
12
|
+
* The embeddings model to use for the memory store in the format "provider/model" for public models or "workspaceKey@provider/model" for private workspace models. This model is used to embed entries when they are written to the memory store. Refer to the [Supported models](/ai-gateway/supported-models) to browse available models.
|
|
13
13
|
*/
|
|
14
14
|
model: string;
|
|
15
15
|
};
|
|
@@ -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,29 @@ 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 } | undefined;
|
|
28
18
|
messagesSource?: MessagesSource | undefined;
|
|
29
19
|
engine?: string | undefined;
|
|
30
|
-
tools?: Array<
|
|
31
|
-
knowledgeBases?: Array<
|
|
32
|
-
metadata?:
|
|
33
|
-
entityConfiguration?:
|
|
20
|
+
tools?: Array<{ [k: string]: any }> | undefined;
|
|
21
|
+
knowledgeBases?: Array<{ [k: string]: any }> | undefined;
|
|
22
|
+
metadata?: { [k: string]: any } | undefined;
|
|
23
|
+
entityConfiguration?: { [k: string]: any } | undefined;
|
|
34
24
|
};
|
|
35
25
|
|
|
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
26
|
/** @internal */
|
|
187
27
|
export const PromptTaskConfig$inboundSchema: z.ZodType<
|
|
188
28
|
PromptTaskConfig,
|
|
189
29
|
z.ZodTypeDef,
|
|
190
30
|
unknown
|
|
191
31
|
> = z.object({
|
|
192
|
-
prompt_config: z.
|
|
32
|
+
prompt_config: z.record(z.any()).optional(),
|
|
193
33
|
messages_source: MessagesSource$inboundSchema.optional(),
|
|
194
34
|
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(),
|
|
35
|
+
tools: z.array(z.record(z.any())).optional(),
|
|
36
|
+
knowledge_bases: z.array(z.record(z.any())).optional(),
|
|
37
|
+
metadata: z.record(z.any()).optional(),
|
|
38
|
+
entity_configuration: z.record(z.any()).optional(),
|
|
201
39
|
}).transform((v) => {
|
|
202
40
|
return remap$(v, {
|
|
203
41
|
"prompt_config": "promptConfig",
|
|
@@ -208,13 +46,13 @@ export const PromptTaskConfig$inboundSchema: z.ZodType<
|
|
|
208
46
|
});
|
|
209
47
|
/** @internal */
|
|
210
48
|
export type PromptTaskConfig$Outbound = {
|
|
211
|
-
prompt_config?:
|
|
49
|
+
prompt_config?: { [k: string]: any } | undefined;
|
|
212
50
|
messages_source?: string | undefined;
|
|
213
51
|
engine?: string | undefined;
|
|
214
|
-
tools?: Array<
|
|
215
|
-
knowledge_bases?: Array<
|
|
216
|
-
metadata?:
|
|
217
|
-
entity_configuration?:
|
|
52
|
+
tools?: Array<{ [k: string]: any }> | undefined;
|
|
53
|
+
knowledge_bases?: Array<{ [k: string]: any }> | undefined;
|
|
54
|
+
metadata?: { [k: string]: any } | undefined;
|
|
55
|
+
entity_configuration?: { [k: string]: any } | undefined;
|
|
218
56
|
};
|
|
219
57
|
|
|
220
58
|
/** @internal */
|
|
@@ -223,15 +61,13 @@ export const PromptTaskConfig$outboundSchema: z.ZodType<
|
|
|
223
61
|
z.ZodTypeDef,
|
|
224
62
|
PromptTaskConfig
|
|
225
63
|
> = z.object({
|
|
226
|
-
promptConfig: z.
|
|
64
|
+
promptConfig: z.record(z.any()).optional(),
|
|
227
65
|
messagesSource: MessagesSource$outboundSchema.optional(),
|
|
228
66
|
engine: z.string().optional(),
|
|
229
|
-
tools: z.array(z.
|
|
230
|
-
knowledgeBases: z.array(z.
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
entityConfiguration: z.lazy(() => EntityConfiguration$outboundSchema)
|
|
234
|
-
.optional(),
|
|
67
|
+
tools: z.array(z.record(z.any())).optional(),
|
|
68
|
+
knowledgeBases: z.array(z.record(z.any())).optional(),
|
|
69
|
+
metadata: z.record(z.any()).optional(),
|
|
70
|
+
entityConfiguration: z.record(z.any()).optional(),
|
|
235
71
|
}).transform((v) => {
|
|
236
72
|
return remap$(v, {
|
|
237
73
|
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_01m6fxgg8kkwk3wqd4d3gdqndd"),
|
|
44
44
|
metadata: z.record(z.any()).optional(),
|
|
45
45
|
kind: z.literal("reasoning"),
|
|
46
46
|
reasoning: z.string(),
|
|
@@ -12,7 +12,7 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
|
12
12
|
*/
|
|
13
13
|
export type RedactedReasoningPartSchema = {
|
|
14
14
|
/**
|
|
15
|
-
* The type of the content part. Always `
|
|
15
|
+
* The type of the content part. Always `redacted_reasoning`.
|
|
16
16
|
*/
|
|
17
17
|
type: "redacted_reasoning";
|
|
18
18
|
/**
|