@orq-ai/node 4.18.0-rc.24 → 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/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/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 +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/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/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 +3 -3
- 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/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 +20 -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/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
|
@@ -164,7 +164,7 @@ function retrieveToolResponseBodyCodeToolFromJSON(jsonString) {
|
|
|
164
164
|
}
|
|
165
165
|
/** @internal */
|
|
166
166
|
exports.RetrieveToolResponseBodyCodeExecutionTool$inboundSchema = z.object({
|
|
167
|
-
_id: z.string().default("
|
|
167
|
+
_id: z.string().default("tool_01M6FXGGAVWVXZEXMVM2F0YH6M"),
|
|
168
168
|
path: z.string(),
|
|
169
169
|
key: z.string(),
|
|
170
170
|
display_name: z.string().optional(),
|
|
@@ -253,7 +253,7 @@ function retrieveToolResponseBodyHttpFromJSON(jsonString) {
|
|
|
253
253
|
}
|
|
254
254
|
/** @internal */
|
|
255
255
|
exports.RetrieveToolResponseBodyHTTPTool$inboundSchema = z.object({
|
|
256
|
-
_id: z.string().default("
|
|
256
|
+
_id: z.string().default("tool_01M6FXGGAVPHR2XC1YHCQBZB7J"),
|
|
257
257
|
path: z.string(),
|
|
258
258
|
key: z.string(),
|
|
259
259
|
display_name: z.string().optional(),
|
|
@@ -303,7 +303,7 @@ function retrieveToolResponseBodyJsonSchemaFromJSON(jsonString) {
|
|
|
303
303
|
}
|
|
304
304
|
/** @internal */
|
|
305
305
|
exports.RetrieveToolResponseBodyJSONSchemaTool$inboundSchema = z.object({
|
|
306
|
-
_id: z.string().default("
|
|
306
|
+
_id: z.string().default("tool_01M6FXGGAT0GK138HCF35XX7F0"),
|
|
307
307
|
path: z.string(),
|
|
308
308
|
key: z.string(),
|
|
309
309
|
display_name: z.string().optional(),
|
|
@@ -357,7 +357,7 @@ function retrieveToolResponseBodyFunctionFromJSON(jsonString) {
|
|
|
357
357
|
}
|
|
358
358
|
/** @internal */
|
|
359
359
|
exports.RetrieveToolResponseBodyFunctionTool$inboundSchema = z.object({
|
|
360
|
-
_id: z.string().default("
|
|
360
|
+
_id: z.string().default("tool_01M6FXGGATT3FBRMR86GQCCWXY"),
|
|
361
361
|
path: z.string(),
|
|
362
362
|
key: z.string(),
|
|
363
363
|
display_name: z.string().optional(),
|
|
@@ -1108,7 +1108,7 @@ function agentToolInputRunSchemaToJSON(agentToolInputRunSchema) {
|
|
|
1108
1108
|
}
|
|
1109
1109
|
/** @internal */
|
|
1110
1110
|
exports.Tools$outboundSchema = z.object({
|
|
1111
|
-
id: z.string().default("
|
|
1111
|
+
id: z.string().default("01M6FXGG9KF08R86C7601NJTEP"),
|
|
1112
1112
|
name: z.string(),
|
|
1113
1113
|
description: z.string().optional(),
|
|
1114
1114
|
schema: z.lazy(() => exports.AgentToolInputRunSchema$outboundSchema),
|
|
@@ -1074,7 +1074,7 @@ function streamRunAgentAgentToolInputRunAgentsSchemaToJSON(streamRunAgentAgentTo
|
|
|
1074
1074
|
}
|
|
1075
1075
|
/** @internal */
|
|
1076
1076
|
exports.AgentToolInputRunTools$outboundSchema = z.object({
|
|
1077
|
-
id: z.string().default("
|
|
1077
|
+
id: z.string().default("01M6FXGG9XAADWM4MZ7D76BDSQ"),
|
|
1078
1078
|
name: z.string(),
|
|
1079
1079
|
description: z.string().optional(),
|
|
1080
1080
|
schema: z.lazy(() => exports.StreamRunAgentAgentToolInputRunAgentsSchema$outboundSchema),
|
|
@@ -536,7 +536,7 @@ function updateToolResponseBodyCodeToolFromJSON(jsonString) {
|
|
|
536
536
|
}
|
|
537
537
|
/** @internal */
|
|
538
538
|
exports.UpdateToolResponseBodyCodeExecutionTool$inboundSchema = z.object({
|
|
539
|
-
_id: z.string().default("
|
|
539
|
+
_id: z.string().default("tool_01M6FXGGARDWTVWYT0M6XAJTB2"),
|
|
540
540
|
path: z.string(),
|
|
541
541
|
key: z.string(),
|
|
542
542
|
display_name: z.string().optional(),
|
|
@@ -625,7 +625,7 @@ function updateToolResponseBodyHttpFromJSON(jsonString) {
|
|
|
625
625
|
}
|
|
626
626
|
/** @internal */
|
|
627
627
|
exports.UpdateToolResponseBodyHTTPTool$inboundSchema = z.object({
|
|
628
|
-
_id: z.string().default("
|
|
628
|
+
_id: z.string().default("tool_01M6FXGGARDNNN37DAV09VDN1H"),
|
|
629
629
|
path: z.string(),
|
|
630
630
|
key: z.string(),
|
|
631
631
|
display_name: z.string().optional(),
|
|
@@ -675,7 +675,7 @@ function updateToolResponseBodyJsonSchemaFromJSON(jsonString) {
|
|
|
675
675
|
}
|
|
676
676
|
/** @internal */
|
|
677
677
|
exports.UpdateToolResponseBodyJSONSchemaTool$inboundSchema = z.object({
|
|
678
|
-
_id: z.string().default("
|
|
678
|
+
_id: z.string().default("tool_01M6FXGGARYEE2Q9GTH39NV5ZW"),
|
|
679
679
|
path: z.string(),
|
|
680
680
|
key: z.string(),
|
|
681
681
|
display_name: z.string().optional(),
|
|
@@ -729,7 +729,7 @@ function updateToolResponseBodyFunctionFromJSON(jsonString) {
|
|
|
729
729
|
}
|
|
730
730
|
/** @internal */
|
|
731
731
|
exports.UpdateToolResponseBodyFunctionTool$inboundSchema = z.object({
|
|
732
|
-
_id: z.string().default("
|
|
732
|
+
_id: z.string().default("tool_01M6FXGGAQMRXH984ZGWFTRP54"),
|
|
733
733
|
path: z.string(),
|
|
734
734
|
key: z.string(),
|
|
735
735
|
display_name: z.string().optional(),
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@orq-ai/node",
|
|
3
|
-
"version": "4.18.0-rc.
|
|
3
|
+
"version": "4.18.0-rc.25",
|
|
4
4
|
"author": "Orq",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
7
|
-
"types": "./index.d.ts",
|
|
8
7
|
"import": "./index.js",
|
|
9
|
-
"require": "./index.js"
|
|
8
|
+
"require": "./index.js",
|
|
9
|
+
"types": "./index.d.ts"
|
|
10
10
|
},
|
|
11
11
|
"./*": "./*",
|
|
12
12
|
"./langchain": {
|
package/src/lib/config.ts
CHANGED
|
@@ -58,7 +58,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
58
58
|
export const SDK_METADATA = {
|
|
59
59
|
language: "typescript",
|
|
60
60
|
openapiDocVersion: "2.0",
|
|
61
|
-
sdkVersion: "4.18.0-rc.
|
|
61
|
+
sdkVersion: "4.18.0-rc.25",
|
|
62
62
|
genVersion: "2.954.8",
|
|
63
|
-
userAgent: "speakeasy-sdk/typescript 4.18.0-rc.
|
|
63
|
+
userAgent: "speakeasy-sdk/typescript 4.18.0-rc.25 2.954.8 2.0 @orq-ai/node",
|
|
64
64
|
} as const;
|
|
@@ -82,7 +82,7 @@ export type AgentStartedStreamingEventConditions = {
|
|
|
82
82
|
value: string;
|
|
83
83
|
};
|
|
84
84
|
|
|
85
|
-
export type
|
|
85
|
+
export type Tools = {
|
|
86
86
|
/**
|
|
87
87
|
* The id of the resource
|
|
88
88
|
*/
|
|
@@ -204,7 +204,7 @@ export type Settings = {
|
|
|
204
204
|
* When enabled, this agent is exposed as a selectable target in AI Chat for users to consume.
|
|
205
205
|
*/
|
|
206
206
|
chatExposed?: boolean | undefined;
|
|
207
|
-
tools?: Array<
|
|
207
|
+
tools?: Array<Tools> | undefined;
|
|
208
208
|
/**
|
|
209
209
|
* Configuration for an evaluator applied to the agent
|
|
210
210
|
*/
|
|
@@ -341,41 +341,38 @@ export function agentStartedStreamingEventConditionsFromJSON(
|
|
|
341
341
|
}
|
|
342
342
|
|
|
343
343
|
/** @internal */
|
|
344
|
-
export const
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
"tool_id": "toolId",
|
|
368
|
-
"whole_server": "wholeServer",
|
|
344
|
+
export const Tools$inboundSchema: z.ZodType<Tools, z.ZodTypeDef, unknown> = z
|
|
345
|
+
.object({
|
|
346
|
+
id: z.string(),
|
|
347
|
+
key: z.string().optional(),
|
|
348
|
+
action_type: z.string(),
|
|
349
|
+
display_name: z.string().optional(),
|
|
350
|
+
description: z.string().optional(),
|
|
351
|
+
configuration: z.record(z.any()).optional(),
|
|
352
|
+
requires_approval: z.boolean().default(false),
|
|
353
|
+
tool_id: z.string().optional(),
|
|
354
|
+
whole_server: z.boolean().optional(),
|
|
355
|
+
conditions: z.array(
|
|
356
|
+
z.lazy(() => AgentStartedStreamingEventConditions$inboundSchema),
|
|
357
|
+
).optional(),
|
|
358
|
+
timeout: z.number().optional(),
|
|
359
|
+
}).transform((v) => {
|
|
360
|
+
return remap$(v, {
|
|
361
|
+
"action_type": "actionType",
|
|
362
|
+
"display_name": "displayName",
|
|
363
|
+
"requires_approval": "requiresApproval",
|
|
364
|
+
"tool_id": "toolId",
|
|
365
|
+
"whole_server": "wholeServer",
|
|
366
|
+
});
|
|
369
367
|
});
|
|
370
|
-
});
|
|
371
368
|
|
|
372
|
-
export function
|
|
369
|
+
export function toolsFromJSON(
|
|
373
370
|
jsonString: string,
|
|
374
|
-
): SafeParseResult<
|
|
371
|
+
): SafeParseResult<Tools, SDKValidationError> {
|
|
375
372
|
return safeParse(
|
|
376
373
|
jsonString,
|
|
377
|
-
(x) =>
|
|
378
|
-
`Failed to parse '
|
|
374
|
+
(x) => Tools$inboundSchema.parse(JSON.parse(x)),
|
|
375
|
+
`Failed to parse 'Tools' from JSON`,
|
|
379
376
|
);
|
|
380
377
|
}
|
|
381
378
|
|
|
@@ -456,8 +453,7 @@ export const Settings$inboundSchema: z.ZodType<
|
|
|
456
453
|
"respect_tool",
|
|
457
454
|
),
|
|
458
455
|
chat_exposed: z.boolean().optional(),
|
|
459
|
-
tools: z.array(z.lazy(() =>
|
|
460
|
-
.optional(),
|
|
456
|
+
tools: z.array(z.lazy(() => Tools$inboundSchema)).optional(),
|
|
461
457
|
evaluators: z.array(z.lazy(() => Evaluators$inboundSchema)).optional(),
|
|
462
458
|
guardrails: z.array(z.lazy(() => Guardrails$inboundSchema)).optional(),
|
|
463
459
|
}).transform((v) => {
|
|
@@ -13,50 +13,15 @@ import {
|
|
|
13
13
|
MessagesSource$outboundSchema,
|
|
14
14
|
} from "./messagessource.js";
|
|
15
15
|
|
|
16
|
-
export type AgentTaskConfigMessages = {};
|
|
17
|
-
|
|
18
16
|
export type AgentTaskConfig = {
|
|
19
17
|
agentKey?: string | undefined;
|
|
20
18
|
messagesSource?: MessagesSource | undefined;
|
|
21
|
-
messages?: Array<
|
|
19
|
+
messages?: Array<{ [k: string]: any }> | undefined;
|
|
22
20
|
engine?: string | undefined;
|
|
23
21
|
parentId?: string | undefined;
|
|
24
22
|
agentTag?: string | undefined;
|
|
25
23
|
};
|
|
26
24
|
|
|
27
|
-
/** @internal */
|
|
28
|
-
export const AgentTaskConfigMessages$inboundSchema: z.ZodType<
|
|
29
|
-
AgentTaskConfigMessages,
|
|
30
|
-
z.ZodTypeDef,
|
|
31
|
-
unknown
|
|
32
|
-
> = z.object({});
|
|
33
|
-
/** @internal */
|
|
34
|
-
export type AgentTaskConfigMessages$Outbound = {};
|
|
35
|
-
|
|
36
|
-
/** @internal */
|
|
37
|
-
export const AgentTaskConfigMessages$outboundSchema: z.ZodType<
|
|
38
|
-
AgentTaskConfigMessages$Outbound,
|
|
39
|
-
z.ZodTypeDef,
|
|
40
|
-
AgentTaskConfigMessages
|
|
41
|
-
> = z.object({});
|
|
42
|
-
|
|
43
|
-
export function agentTaskConfigMessagesToJSON(
|
|
44
|
-
agentTaskConfigMessages: AgentTaskConfigMessages,
|
|
45
|
-
): string {
|
|
46
|
-
return JSON.stringify(
|
|
47
|
-
AgentTaskConfigMessages$outboundSchema.parse(agentTaskConfigMessages),
|
|
48
|
-
);
|
|
49
|
-
}
|
|
50
|
-
export function agentTaskConfigMessagesFromJSON(
|
|
51
|
-
jsonString: string,
|
|
52
|
-
): SafeParseResult<AgentTaskConfigMessages, SDKValidationError> {
|
|
53
|
-
return safeParse(
|
|
54
|
-
jsonString,
|
|
55
|
-
(x) => AgentTaskConfigMessages$inboundSchema.parse(JSON.parse(x)),
|
|
56
|
-
`Failed to parse 'AgentTaskConfigMessages' from JSON`,
|
|
57
|
-
);
|
|
58
|
-
}
|
|
59
|
-
|
|
60
25
|
/** @internal */
|
|
61
26
|
export const AgentTaskConfig$inboundSchema: z.ZodType<
|
|
62
27
|
AgentTaskConfig,
|
|
@@ -65,8 +30,7 @@ export const AgentTaskConfig$inboundSchema: z.ZodType<
|
|
|
65
30
|
> = z.object({
|
|
66
31
|
agent_key: z.string().optional(),
|
|
67
32
|
messages_source: MessagesSource$inboundSchema.optional(),
|
|
68
|
-
messages: z.array(z.
|
|
69
|
-
.optional(),
|
|
33
|
+
messages: z.array(z.record(z.any())).optional(),
|
|
70
34
|
engine: z.string().optional(),
|
|
71
35
|
parent_id: z.string().optional(),
|
|
72
36
|
agent_tag: z.string().optional(),
|
|
@@ -82,7 +46,7 @@ export const AgentTaskConfig$inboundSchema: z.ZodType<
|
|
|
82
46
|
export type AgentTaskConfig$Outbound = {
|
|
83
47
|
agent_key?: string | undefined;
|
|
84
48
|
messages_source?: string | undefined;
|
|
85
|
-
messages?: Array<
|
|
49
|
+
messages?: Array<{ [k: string]: any }> | undefined;
|
|
86
50
|
engine?: string | undefined;
|
|
87
51
|
parent_id?: string | undefined;
|
|
88
52
|
agent_tag?: string | undefined;
|
|
@@ -96,8 +60,7 @@ export const AgentTaskConfig$outboundSchema: z.ZodType<
|
|
|
96
60
|
> = z.object({
|
|
97
61
|
agentKey: z.string().optional(),
|
|
98
62
|
messagesSource: MessagesSource$outboundSchema.optional(),
|
|
99
|
-
messages: z.array(z.
|
|
100
|
-
.optional(),
|
|
63
|
+
messages: z.array(z.record(z.any())).optional(),
|
|
101
64
|
engine: z.string().optional(),
|
|
102
65
|
parentId: z.string().optional(),
|
|
103
66
|
agentTag: z.string().optional(),
|
|
@@ -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, {
|