@orq-ai/node 4.1.0-rc.4 → 4.1.0-rc.5
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/bin/mcp-server.js +25494 -27422
- package/bin/mcp-server.js.map +64 -47
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.js +1 -1
- package/models/components/actionreviewedstreamingevent.d.ts +76 -0
- package/models/components/actionreviewedstreamingevent.d.ts.map +1 -0
- package/models/components/actionreviewedstreamingevent.js +127 -0
- package/models/components/actionreviewedstreamingevent.js.map +1 -0
- package/models/components/actionreviewrequestedstreamingevent.d.ts +135 -0
- package/models/components/actionreviewrequestedstreamingevent.d.ts.map +1 -0
- package/models/components/actionreviewrequestedstreamingevent.js +180 -0
- package/models/components/actionreviewrequestedstreamingevent.js.map +1 -0
- package/models/components/agenterroredstreamingevent.d.ts +58 -0
- package/models/components/agenterroredstreamingevent.d.ts.map +1 -0
- package/models/components/agenterroredstreamingevent.js +91 -0
- package/models/components/agenterroredstreamingevent.js.map +1 -0
- package/models/components/agentexecutionstartedstreamingevent.d.ts +62 -0
- package/models/components/agentexecutionstartedstreamingevent.d.ts.map +1 -0
- package/models/components/agentexecutionstartedstreamingevent.js +103 -0
- package/models/components/agentexecutionstartedstreamingevent.js.map +1 -0
- package/models/components/agenthandedoffstreamingevent.d.ts +51 -0
- package/models/components/agenthandedoffstreamingevent.d.ts.map +1 -0
- package/models/components/agenthandedoffstreamingevent.js +96 -0
- package/models/components/agenthandedoffstreamingevent.js.map +1 -0
- package/models/components/agentinactivestreamingevent.d.ts +309 -0
- package/models/components/agentinactivestreamingevent.d.ts.map +1 -0
- package/models/components/agentinactivestreamingevent.js +385 -0
- package/models/components/agentinactivestreamingevent.js.map +1 -0
- package/models/components/agentmessagecreatedstreamingevent.d.ts +141 -0
- package/models/components/agentmessagecreatedstreamingevent.d.ts.map +1 -0
- package/models/components/agentmessagecreatedstreamingevent.js +190 -0
- package/models/components/agentmessagecreatedstreamingevent.js.map +1 -0
- package/models/components/agentstartedstreamingevent.d.ts +382 -0
- package/models/components/agentstartedstreamingevent.d.ts.map +1 -0
- package/models/components/agentstartedstreamingevent.js +441 -0
- package/models/components/agentstartedstreamingevent.js.map +1 -0
- package/models/components/agentthoughtstreamingevent.d.ts +542 -0
- package/models/components/agentthoughtstreamingevent.d.ts.map +1 -0
- package/models/components/agentthoughtstreamingevent.js +626 -0
- package/models/components/agentthoughtstreamingevent.js.map +1 -0
- package/models/components/errorstreamingevent.d.ts +51 -0
- package/models/components/errorstreamingevent.d.ts.map +1 -0
- package/models/components/errorstreamingevent.js +87 -0
- package/models/components/errorstreamingevent.js.map +1 -0
- package/models/components/executionnamedstreamingevent.d.ts +51 -0
- package/models/components/executionnamedstreamingevent.d.ts.map +1 -0
- package/models/components/executionnamedstreamingevent.js +96 -0
- package/models/components/executionnamedstreamingevent.js.map +1 -0
- package/models/components/executionreviewedstreamingevent.d.ts +45 -0
- package/models/components/executionreviewedstreamingevent.d.ts.map +1 -0
- package/models/components/executionreviewedstreamingevent.js +81 -0
- package/models/components/executionreviewedstreamingevent.js.map +1 -0
- package/models/components/executionreviewrequiredstreamingevent.d.ts +45 -0
- package/models/components/executionreviewrequiredstreamingevent.d.ts.map +1 -0
- package/models/components/executionreviewrequiredstreamingevent.js +82 -0
- package/models/components/executionreviewrequiredstreamingevent.js.map +1 -0
- package/models/components/filepart.d.ts +1 -1
- package/models/components/index.d.ts +17 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +17 -0
- package/models/components/index.js.map +1 -1
- package/models/components/invokedeploymentrequest.d.ts +13 -13
- package/models/components/invokedeploymentrequest.d.ts.map +1 -1
- package/models/components/invokedeploymentrequest.js +17 -17
- package/models/components/invokedeploymentrequest.js.map +1 -1
- package/models/components/timeoutstreamingevent.d.ts +49 -0
- package/models/components/timeoutstreamingevent.d.ts.map +1 -0
- package/models/components/timeoutstreamingevent.js +85 -0
- package/models/components/timeoutstreamingevent.js.map +1 -0
- package/models/components/toolexecutionfailedstreamingevent.d.ts +144 -0
- package/models/components/toolexecutionfailedstreamingevent.d.ts.map +1 -0
- package/models/components/toolexecutionfailedstreamingevent.js +223 -0
- package/models/components/toolexecutionfailedstreamingevent.js.map +1 -0
- package/models/components/toolexecutionfinishedstreamingevent.d.ts +129 -0
- package/models/components/toolexecutionfinishedstreamingevent.d.ts.map +1 -0
- package/models/components/toolexecutionfinishedstreamingevent.js +205 -0
- package/models/components/toolexecutionfinishedstreamingevent.js.map +1 -0
- package/models/components/toolexecutionstartedstreamingevent.d.ts +139 -0
- package/models/components/toolexecutionstartedstreamingevent.d.ts.map +1 -0
- package/models/components/toolexecutionstartedstreamingevent.js +217 -0
- package/models/components/toolexecutionstartedstreamingevent.js.map +1 -0
- package/models/components/toolresultpart.d.ts +1 -1
- package/models/operations/createagentresponserequest.d.ts +4 -137
- package/models/operations/createagentresponserequest.d.ts.map +1 -1
- package/models/operations/createagentresponserequest.js +9 -138
- package/models/operations/createagentresponserequest.js.map +1 -1
- package/models/operations/createbudget.js +2 -2
- package/models/operations/createcontact.js +2 -2
- package/models/operations/createdataset.js +2 -2
- package/models/operations/createdatasetitem.js +8 -8
- package/models/operations/createdatasource.js +2 -2
- package/models/operations/createeval.d.ts +80 -145
- package/models/operations/createeval.d.ts.map +1 -1
- package/models/operations/createeval.js +190 -266
- package/models/operations/createeval.js.map +1 -1
- package/models/operations/createtool.js +12 -12
- package/models/operations/fileget.js +2 -2
- package/models/operations/filelist.js +2 -2
- package/models/operations/fileupload.js +2 -2
- package/models/operations/getalltools.js +12 -12
- package/models/operations/getbudget.js +2 -2
- package/models/operations/getevals.d.ts +14 -79
- package/models/operations/getevals.d.ts.map +1 -1
- package/models/operations/getevals.js +49 -132
- package/models/operations/getevals.js.map +1 -1
- package/models/operations/invokeagent.d.ts +14 -147
- package/models/operations/invokeagent.d.ts.map +1 -1
- package/models/operations/invokeagent.js +19 -148
- package/models/operations/invokeagent.js.map +1 -1
- package/models/operations/listbudgets.js +2 -2
- package/models/operations/listcontacts.js +2 -2
- package/models/operations/listdatasetdatapoints.js +8 -8
- package/models/operations/listdatasets.js +2 -2
- package/models/operations/listdatasources.js +2 -2
- package/models/operations/listknowledgebases.d.ts +16 -16
- package/models/operations/listknowledgebases.d.ts.map +1 -1
- package/models/operations/listknowledgebases.js +27 -25
- package/models/operations/listknowledgebases.js.map +1 -1
- package/models/operations/retrievecontact.js +2 -2
- package/models/operations/retrievedatapoint.js +8 -8
- package/models/operations/retrievedataset.js +2 -2
- package/models/operations/retrievedatasource.js +2 -2
- package/models/operations/retrievetool.js +12 -12
- package/models/operations/runagent.d.ts +4 -137
- package/models/operations/runagent.d.ts.map +1 -1
- package/models/operations/runagent.js +17 -145
- package/models/operations/runagent.js.map +1 -1
- package/models/operations/streamagent.d.ts +241 -2491
- package/models/operations/streamagent.d.ts.map +1 -1
- package/models/operations/streamagent.js +172 -2826
- package/models/operations/streamagent.js.map +1 -1
- package/models/operations/streamrunagent.d.ts +889 -3139
- package/models/operations/streamrunagent.d.ts.map +1 -1
- package/models/operations/streamrunagent.js +175 -2825
- package/models/operations/streamrunagent.js.map +1 -1
- package/models/operations/updatebudget.js +2 -2
- package/models/operations/updatecontact.js +2 -2
- package/models/operations/updatedatapoint.js +8 -8
- package/models/operations/updatedataset.js +2 -2
- package/models/operations/updatedatasource.js +2 -2
- package/models/operations/updateeval.d.ts +14 -79
- package/models/operations/updateeval.d.ts.map +1 -1
- package/models/operations/updateeval.js +51 -134
- package/models/operations/updateeval.js.map +1 -1
- package/models/operations/updatetool.js +14 -14
- package/package.json +1 -1
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/components/actionreviewedstreamingevent.ts +189 -0
- package/src/models/components/actionreviewrequestedstreamingevent.ts +326 -0
- package/src/models/components/agenterroredstreamingevent.ts +142 -0
- package/src/models/components/agentexecutionstartedstreamingevent.ts +145 -0
- package/src/models/components/agenthandedoffstreamingevent.ts +142 -0
- package/src/models/components/agentinactivestreamingevent.ts +857 -0
- package/src/models/components/agentmessagecreatedstreamingevent.ts +396 -0
- package/src/models/components/agentstartedstreamingevent.ts +909 -0
- package/src/models/components/agentthoughtstreamingevent.ts +1419 -0
- package/src/models/components/errorstreamingevent.ts +129 -0
- package/src/models/components/executionnamedstreamingevent.ts +142 -0
- package/src/models/components/executionreviewedstreamingevent.ts +122 -0
- package/src/models/components/executionreviewrequiredstreamingevent.ts +130 -0
- package/src/models/components/filepart.ts +1 -1
- package/src/models/components/index.ts +17 -0
- package/src/models/components/invokedeploymentrequest.ts +32 -27
- package/src/models/components/timeoutstreamingevent.ts +125 -0
- package/src/models/components/toolexecutionfailedstreamingevent.ts +406 -0
- package/src/models/components/toolexecutionfinishedstreamingevent.ts +373 -0
- package/src/models/components/toolexecutionstartedstreamingevent.ts +350 -0
- package/src/models/components/toolresultpart.ts +1 -1
- package/src/models/operations/createagentresponserequest.ts +20 -321
- package/src/models/operations/createbudget.ts +2 -2
- package/src/models/operations/createcontact.ts +2 -2
- package/src/models/operations/createdataset.ts +2 -2
- package/src/models/operations/createdatasetitem.ts +8 -8
- package/src/models/operations/createdatasource.ts +2 -2
- package/src/models/operations/createeval.ts +318 -615
- package/src/models/operations/createtool.ts +12 -12
- package/src/models/operations/fileget.ts +2 -2
- package/src/models/operations/filelist.ts +2 -2
- package/src/models/operations/fileupload.ts +2 -2
- package/src/models/operations/getalltools.ts +12 -12
- package/src/models/operations/getbudget.ts +2 -2
- package/src/models/operations/getevals.ts +52 -287
- package/src/models/operations/invokeagent.ts +36 -373
- package/src/models/operations/listbudgets.ts +2 -2
- package/src/models/operations/listcontacts.ts +2 -2
- package/src/models/operations/listdatasetdatapoints.ts +8 -8
- package/src/models/operations/listdatasets.ts +2 -2
- package/src/models/operations/listdatasources.ts +2 -2
- package/src/models/operations/listknowledgebases.ts +82 -102
- package/src/models/operations/retrievecontact.ts +2 -2
- package/src/models/operations/retrievedatapoint.ts +8 -8
- package/src/models/operations/retrievedataset.ts +2 -2
- package/src/models/operations/retrievedatasource.ts +2 -2
- package/src/models/operations/retrievetool.ts +12 -12
- package/src/models/operations/runagent.ts +17 -365
- package/src/models/operations/streamagent.ts +794 -6985
- package/src/models/operations/streamrunagent.ts +3939 -9983
- package/src/models/operations/updatebudget.ts +2 -2
- package/src/models/operations/updatecontact.ts +2 -2
- package/src/models/operations/updatedatapoint.ts +8 -8
- package/src/models/operations/updatedataset.ts +2 -2
- package/src/models/operations/updatedatasource.ts +2 -2
- package/src/models/operations/updateeval.ts +52 -287
- package/src/models/operations/updatetool.ts +14 -14
|
@@ -37,77 +37,13 @@ export type RoleUserMessage = ClosedEnum<typeof RoleUserMessage>;
|
|
|
37
37
|
*/
|
|
38
38
|
export type CreateAgentResponseRequestRole = RoleUserMessage | RoleToolMessage;
|
|
39
39
|
|
|
40
|
-
export const PublicMessagePartKind = {
|
|
41
|
-
ToolResult: "tool_result",
|
|
42
|
-
} as const;
|
|
43
|
-
export type PublicMessagePartKind = ClosedEnum<typeof PublicMessagePartKind>;
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
* Tool execution result part. Use this ONLY when providing results for a pending tool call from the agent. The tool_call_id must match the ID from the agent's tool call request.
|
|
47
|
-
*/
|
|
48
|
-
export type ToolResultPart = {
|
|
49
|
-
kind: PublicMessagePartKind;
|
|
50
|
-
toolCallId: string;
|
|
51
|
-
result?: any | undefined;
|
|
52
|
-
metadata?: { [k: string]: any } | undefined;
|
|
53
|
-
};
|
|
54
|
-
|
|
55
|
-
export const Kind = {
|
|
56
|
-
File: "file",
|
|
57
|
-
} as const;
|
|
58
|
-
export type Kind = ClosedEnum<typeof Kind>;
|
|
59
|
-
|
|
60
|
-
/**
|
|
61
|
-
* File in URI format. Check in the model's documentation for the supported mime types for the URI format
|
|
62
|
-
*/
|
|
63
|
-
export type FileInURIFormat = {
|
|
64
|
-
/**
|
|
65
|
-
* URL for the File content
|
|
66
|
-
*/
|
|
67
|
-
uri: string;
|
|
68
|
-
/**
|
|
69
|
-
* Optional mimeType for the file
|
|
70
|
-
*/
|
|
71
|
-
mimeType?: string | undefined;
|
|
72
|
-
/**
|
|
73
|
-
* Optional name for the file
|
|
74
|
-
*/
|
|
75
|
-
name?: string | undefined;
|
|
76
|
-
};
|
|
77
|
-
|
|
78
|
-
/**
|
|
79
|
-
* Binary in base64 format. Check in the model's documentation for the supported mime types for the binary format.
|
|
80
|
-
*/
|
|
81
|
-
export type BinaryFormat = {
|
|
82
|
-
/**
|
|
83
|
-
* base64 encoded content of the file
|
|
84
|
-
*/
|
|
85
|
-
bytes: string;
|
|
86
|
-
/**
|
|
87
|
-
* Optional mimeType for the file
|
|
88
|
-
*/
|
|
89
|
-
mimeType?: string | undefined;
|
|
90
|
-
/**
|
|
91
|
-
* Optional name for the file
|
|
92
|
-
*/
|
|
93
|
-
name?: string | undefined;
|
|
94
|
-
};
|
|
95
|
-
|
|
96
|
-
export type PublicMessagePartFile = BinaryFormat | FileInURIFormat;
|
|
97
|
-
|
|
98
|
-
/**
|
|
99
|
-
* File attachment part. Use this to send files (images, documents, etc.) to the agent for processing.
|
|
100
|
-
*/
|
|
101
|
-
export type FilePart = {
|
|
102
|
-
kind: Kind;
|
|
103
|
-
file: BinaryFormat | FileInURIFormat;
|
|
104
|
-
metadata?: { [k: string]: any } | undefined;
|
|
105
|
-
};
|
|
106
|
-
|
|
107
40
|
/**
|
|
108
41
|
* Message part that can be provided by users. Use "text" for regular messages, "file" for attachments, or "tool_result" when responding to tool call requests.
|
|
109
42
|
*/
|
|
110
|
-
export type PublicMessagePart =
|
|
43
|
+
export type PublicMessagePart =
|
|
44
|
+
| components.TextPart
|
|
45
|
+
| components.FilePart
|
|
46
|
+
| components.ToolResultPart;
|
|
111
47
|
|
|
112
48
|
/**
|
|
113
49
|
* The A2A message to send to the agent (user input or tool results)
|
|
@@ -124,7 +60,9 @@ export type A2AMessage = {
|
|
|
124
60
|
/**
|
|
125
61
|
* A2A message parts (text, file, or tool_result only)
|
|
126
62
|
*/
|
|
127
|
-
parts: Array<
|
|
63
|
+
parts: Array<
|
|
64
|
+
components.TextPart | components.FilePart | components.ToolResultPart
|
|
65
|
+
>;
|
|
128
66
|
};
|
|
129
67
|
|
|
130
68
|
/**
|
|
@@ -375,247 +313,6 @@ export function createAgentResponseRequestRoleFromJSON(
|
|
|
375
313
|
);
|
|
376
314
|
}
|
|
377
315
|
|
|
378
|
-
/** @internal */
|
|
379
|
-
export const PublicMessagePartKind$inboundSchema: z.ZodNativeEnum<
|
|
380
|
-
typeof PublicMessagePartKind
|
|
381
|
-
> = z.nativeEnum(PublicMessagePartKind);
|
|
382
|
-
/** @internal */
|
|
383
|
-
export const PublicMessagePartKind$outboundSchema: z.ZodNativeEnum<
|
|
384
|
-
typeof PublicMessagePartKind
|
|
385
|
-
> = PublicMessagePartKind$inboundSchema;
|
|
386
|
-
|
|
387
|
-
/** @internal */
|
|
388
|
-
export const ToolResultPart$inboundSchema: z.ZodType<
|
|
389
|
-
ToolResultPart,
|
|
390
|
-
z.ZodTypeDef,
|
|
391
|
-
unknown
|
|
392
|
-
> = z.object({
|
|
393
|
-
kind: PublicMessagePartKind$inboundSchema,
|
|
394
|
-
tool_call_id: z.string(),
|
|
395
|
-
result: z.any().optional(),
|
|
396
|
-
metadata: z.record(z.any()).optional(),
|
|
397
|
-
}).transform((v) => {
|
|
398
|
-
return remap$(v, {
|
|
399
|
-
"tool_call_id": "toolCallId",
|
|
400
|
-
});
|
|
401
|
-
});
|
|
402
|
-
/** @internal */
|
|
403
|
-
export type ToolResultPart$Outbound = {
|
|
404
|
-
kind: string;
|
|
405
|
-
tool_call_id: string;
|
|
406
|
-
result?: any | undefined;
|
|
407
|
-
metadata?: { [k: string]: any } | undefined;
|
|
408
|
-
};
|
|
409
|
-
|
|
410
|
-
/** @internal */
|
|
411
|
-
export const ToolResultPart$outboundSchema: z.ZodType<
|
|
412
|
-
ToolResultPart$Outbound,
|
|
413
|
-
z.ZodTypeDef,
|
|
414
|
-
ToolResultPart
|
|
415
|
-
> = z.object({
|
|
416
|
-
kind: PublicMessagePartKind$outboundSchema,
|
|
417
|
-
toolCallId: z.string(),
|
|
418
|
-
result: z.any().optional(),
|
|
419
|
-
metadata: z.record(z.any()).optional(),
|
|
420
|
-
}).transform((v) => {
|
|
421
|
-
return remap$(v, {
|
|
422
|
-
toolCallId: "tool_call_id",
|
|
423
|
-
});
|
|
424
|
-
});
|
|
425
|
-
|
|
426
|
-
export function toolResultPartToJSON(toolResultPart: ToolResultPart): string {
|
|
427
|
-
return JSON.stringify(ToolResultPart$outboundSchema.parse(toolResultPart));
|
|
428
|
-
}
|
|
429
|
-
export function toolResultPartFromJSON(
|
|
430
|
-
jsonString: string,
|
|
431
|
-
): SafeParseResult<ToolResultPart, SDKValidationError> {
|
|
432
|
-
return safeParse(
|
|
433
|
-
jsonString,
|
|
434
|
-
(x) => ToolResultPart$inboundSchema.parse(JSON.parse(x)),
|
|
435
|
-
`Failed to parse 'ToolResultPart' from JSON`,
|
|
436
|
-
);
|
|
437
|
-
}
|
|
438
|
-
|
|
439
|
-
/** @internal */
|
|
440
|
-
export const Kind$inboundSchema: z.ZodNativeEnum<typeof Kind> = z.nativeEnum(
|
|
441
|
-
Kind,
|
|
442
|
-
);
|
|
443
|
-
/** @internal */
|
|
444
|
-
export const Kind$outboundSchema: z.ZodNativeEnum<typeof Kind> =
|
|
445
|
-
Kind$inboundSchema;
|
|
446
|
-
|
|
447
|
-
/** @internal */
|
|
448
|
-
export const FileInURIFormat$inboundSchema: z.ZodType<
|
|
449
|
-
FileInURIFormat,
|
|
450
|
-
z.ZodTypeDef,
|
|
451
|
-
unknown
|
|
452
|
-
> = z.object({
|
|
453
|
-
uri: z.string(),
|
|
454
|
-
mimeType: z.string().optional(),
|
|
455
|
-
name: z.string().optional(),
|
|
456
|
-
});
|
|
457
|
-
/** @internal */
|
|
458
|
-
export type FileInURIFormat$Outbound = {
|
|
459
|
-
uri: string;
|
|
460
|
-
mimeType?: string | undefined;
|
|
461
|
-
name?: string | undefined;
|
|
462
|
-
};
|
|
463
|
-
|
|
464
|
-
/** @internal */
|
|
465
|
-
export const FileInURIFormat$outboundSchema: z.ZodType<
|
|
466
|
-
FileInURIFormat$Outbound,
|
|
467
|
-
z.ZodTypeDef,
|
|
468
|
-
FileInURIFormat
|
|
469
|
-
> = z.object({
|
|
470
|
-
uri: z.string(),
|
|
471
|
-
mimeType: z.string().optional(),
|
|
472
|
-
name: z.string().optional(),
|
|
473
|
-
});
|
|
474
|
-
|
|
475
|
-
export function fileInURIFormatToJSON(
|
|
476
|
-
fileInURIFormat: FileInURIFormat,
|
|
477
|
-
): string {
|
|
478
|
-
return JSON.stringify(FileInURIFormat$outboundSchema.parse(fileInURIFormat));
|
|
479
|
-
}
|
|
480
|
-
export function fileInURIFormatFromJSON(
|
|
481
|
-
jsonString: string,
|
|
482
|
-
): SafeParseResult<FileInURIFormat, SDKValidationError> {
|
|
483
|
-
return safeParse(
|
|
484
|
-
jsonString,
|
|
485
|
-
(x) => FileInURIFormat$inboundSchema.parse(JSON.parse(x)),
|
|
486
|
-
`Failed to parse 'FileInURIFormat' from JSON`,
|
|
487
|
-
);
|
|
488
|
-
}
|
|
489
|
-
|
|
490
|
-
/** @internal */
|
|
491
|
-
export const BinaryFormat$inboundSchema: z.ZodType<
|
|
492
|
-
BinaryFormat,
|
|
493
|
-
z.ZodTypeDef,
|
|
494
|
-
unknown
|
|
495
|
-
> = z.object({
|
|
496
|
-
bytes: z.string(),
|
|
497
|
-
mimeType: z.string().optional(),
|
|
498
|
-
name: z.string().optional(),
|
|
499
|
-
});
|
|
500
|
-
/** @internal */
|
|
501
|
-
export type BinaryFormat$Outbound = {
|
|
502
|
-
bytes: string;
|
|
503
|
-
mimeType?: string | undefined;
|
|
504
|
-
name?: string | undefined;
|
|
505
|
-
};
|
|
506
|
-
|
|
507
|
-
/** @internal */
|
|
508
|
-
export const BinaryFormat$outboundSchema: z.ZodType<
|
|
509
|
-
BinaryFormat$Outbound,
|
|
510
|
-
z.ZodTypeDef,
|
|
511
|
-
BinaryFormat
|
|
512
|
-
> = z.object({
|
|
513
|
-
bytes: z.string(),
|
|
514
|
-
mimeType: z.string().optional(),
|
|
515
|
-
name: z.string().optional(),
|
|
516
|
-
});
|
|
517
|
-
|
|
518
|
-
export function binaryFormatToJSON(binaryFormat: BinaryFormat): string {
|
|
519
|
-
return JSON.stringify(BinaryFormat$outboundSchema.parse(binaryFormat));
|
|
520
|
-
}
|
|
521
|
-
export function binaryFormatFromJSON(
|
|
522
|
-
jsonString: string,
|
|
523
|
-
): SafeParseResult<BinaryFormat, SDKValidationError> {
|
|
524
|
-
return safeParse(
|
|
525
|
-
jsonString,
|
|
526
|
-
(x) => BinaryFormat$inboundSchema.parse(JSON.parse(x)),
|
|
527
|
-
`Failed to parse 'BinaryFormat' from JSON`,
|
|
528
|
-
);
|
|
529
|
-
}
|
|
530
|
-
|
|
531
|
-
/** @internal */
|
|
532
|
-
export const PublicMessagePartFile$inboundSchema: z.ZodType<
|
|
533
|
-
PublicMessagePartFile,
|
|
534
|
-
z.ZodTypeDef,
|
|
535
|
-
unknown
|
|
536
|
-
> = z.union([
|
|
537
|
-
z.lazy(() => BinaryFormat$inboundSchema),
|
|
538
|
-
z.lazy(() => FileInURIFormat$inboundSchema),
|
|
539
|
-
]);
|
|
540
|
-
/** @internal */
|
|
541
|
-
export type PublicMessagePartFile$Outbound =
|
|
542
|
-
| BinaryFormat$Outbound
|
|
543
|
-
| FileInURIFormat$Outbound;
|
|
544
|
-
|
|
545
|
-
/** @internal */
|
|
546
|
-
export const PublicMessagePartFile$outboundSchema: z.ZodType<
|
|
547
|
-
PublicMessagePartFile$Outbound,
|
|
548
|
-
z.ZodTypeDef,
|
|
549
|
-
PublicMessagePartFile
|
|
550
|
-
> = z.union([
|
|
551
|
-
z.lazy(() => BinaryFormat$outboundSchema),
|
|
552
|
-
z.lazy(() => FileInURIFormat$outboundSchema),
|
|
553
|
-
]);
|
|
554
|
-
|
|
555
|
-
export function publicMessagePartFileToJSON(
|
|
556
|
-
publicMessagePartFile: PublicMessagePartFile,
|
|
557
|
-
): string {
|
|
558
|
-
return JSON.stringify(
|
|
559
|
-
PublicMessagePartFile$outboundSchema.parse(publicMessagePartFile),
|
|
560
|
-
);
|
|
561
|
-
}
|
|
562
|
-
export function publicMessagePartFileFromJSON(
|
|
563
|
-
jsonString: string,
|
|
564
|
-
): SafeParseResult<PublicMessagePartFile, SDKValidationError> {
|
|
565
|
-
return safeParse(
|
|
566
|
-
jsonString,
|
|
567
|
-
(x) => PublicMessagePartFile$inboundSchema.parse(JSON.parse(x)),
|
|
568
|
-
`Failed to parse 'PublicMessagePartFile' from JSON`,
|
|
569
|
-
);
|
|
570
|
-
}
|
|
571
|
-
|
|
572
|
-
/** @internal */
|
|
573
|
-
export const FilePart$inboundSchema: z.ZodType<
|
|
574
|
-
FilePart,
|
|
575
|
-
z.ZodTypeDef,
|
|
576
|
-
unknown
|
|
577
|
-
> = z.object({
|
|
578
|
-
kind: Kind$inboundSchema,
|
|
579
|
-
file: z.union([
|
|
580
|
-
z.lazy(() => BinaryFormat$inboundSchema),
|
|
581
|
-
z.lazy(() => FileInURIFormat$inboundSchema),
|
|
582
|
-
]),
|
|
583
|
-
metadata: z.record(z.any()).optional(),
|
|
584
|
-
});
|
|
585
|
-
/** @internal */
|
|
586
|
-
export type FilePart$Outbound = {
|
|
587
|
-
kind: string;
|
|
588
|
-
file: BinaryFormat$Outbound | FileInURIFormat$Outbound;
|
|
589
|
-
metadata?: { [k: string]: any } | undefined;
|
|
590
|
-
};
|
|
591
|
-
|
|
592
|
-
/** @internal */
|
|
593
|
-
export const FilePart$outboundSchema: z.ZodType<
|
|
594
|
-
FilePart$Outbound,
|
|
595
|
-
z.ZodTypeDef,
|
|
596
|
-
FilePart
|
|
597
|
-
> = z.object({
|
|
598
|
-
kind: Kind$outboundSchema,
|
|
599
|
-
file: z.union([
|
|
600
|
-
z.lazy(() => BinaryFormat$outboundSchema),
|
|
601
|
-
z.lazy(() => FileInURIFormat$outboundSchema),
|
|
602
|
-
]),
|
|
603
|
-
metadata: z.record(z.any()).optional(),
|
|
604
|
-
});
|
|
605
|
-
|
|
606
|
-
export function filePartToJSON(filePart: FilePart): string {
|
|
607
|
-
return JSON.stringify(FilePart$outboundSchema.parse(filePart));
|
|
608
|
-
}
|
|
609
|
-
export function filePartFromJSON(
|
|
610
|
-
jsonString: string,
|
|
611
|
-
): SafeParseResult<FilePart, SDKValidationError> {
|
|
612
|
-
return safeParse(
|
|
613
|
-
jsonString,
|
|
614
|
-
(x) => FilePart$inboundSchema.parse(JSON.parse(x)),
|
|
615
|
-
`Failed to parse 'FilePart' from JSON`,
|
|
616
|
-
);
|
|
617
|
-
}
|
|
618
|
-
|
|
619
316
|
/** @internal */
|
|
620
317
|
export const PublicMessagePart$inboundSchema: z.ZodType<
|
|
621
318
|
PublicMessagePart,
|
|
@@ -623,14 +320,14 @@ export const PublicMessagePart$inboundSchema: z.ZodType<
|
|
|
623
320
|
unknown
|
|
624
321
|
> = z.union([
|
|
625
322
|
components.TextPart$inboundSchema,
|
|
626
|
-
|
|
627
|
-
|
|
323
|
+
components.FilePart$inboundSchema,
|
|
324
|
+
components.ToolResultPart$inboundSchema,
|
|
628
325
|
]);
|
|
629
326
|
/** @internal */
|
|
630
327
|
export type PublicMessagePart$Outbound =
|
|
631
328
|
| components.TextPart$Outbound
|
|
632
|
-
| FilePart$Outbound
|
|
633
|
-
| ToolResultPart$Outbound;
|
|
329
|
+
| components.FilePart$Outbound
|
|
330
|
+
| components.ToolResultPart$Outbound;
|
|
634
331
|
|
|
635
332
|
/** @internal */
|
|
636
333
|
export const PublicMessagePart$outboundSchema: z.ZodType<
|
|
@@ -639,8 +336,8 @@ export const PublicMessagePart$outboundSchema: z.ZodType<
|
|
|
639
336
|
PublicMessagePart
|
|
640
337
|
> = z.union([
|
|
641
338
|
components.TextPart$outboundSchema,
|
|
642
|
-
|
|
643
|
-
|
|
339
|
+
components.FilePart$outboundSchema,
|
|
340
|
+
components.ToolResultPart$outboundSchema,
|
|
644
341
|
]);
|
|
645
342
|
|
|
646
343
|
export function publicMessagePartToJSON(
|
|
@@ -671,8 +368,8 @@ export const A2AMessage$inboundSchema: z.ZodType<
|
|
|
671
368
|
parts: z.array(
|
|
672
369
|
z.union([
|
|
673
370
|
components.TextPart$inboundSchema,
|
|
674
|
-
|
|
675
|
-
|
|
371
|
+
components.FilePart$inboundSchema,
|
|
372
|
+
components.ToolResultPart$inboundSchema,
|
|
676
373
|
]),
|
|
677
374
|
),
|
|
678
375
|
});
|
|
@@ -681,7 +378,9 @@ export type A2AMessage$Outbound = {
|
|
|
681
378
|
messageId?: string | undefined;
|
|
682
379
|
role: string | string;
|
|
683
380
|
parts: Array<
|
|
684
|
-
components.TextPart$Outbound
|
|
381
|
+
| components.TextPart$Outbound
|
|
382
|
+
| components.FilePart$Outbound
|
|
383
|
+
| components.ToolResultPart$Outbound
|
|
685
384
|
>;
|
|
686
385
|
};
|
|
687
386
|
|
|
@@ -699,8 +398,8 @@ export const A2AMessage$outboundSchema: z.ZodType<
|
|
|
699
398
|
parts: z.array(
|
|
700
399
|
z.union([
|
|
701
400
|
components.TextPart$outboundSchema,
|
|
702
|
-
|
|
703
|
-
|
|
401
|
+
components.FilePart$outboundSchema,
|
|
402
|
+
components.ToolResultPart$outboundSchema,
|
|
704
403
|
]),
|
|
705
404
|
),
|
|
706
405
|
});
|
|
@@ -516,7 +516,7 @@ export const CreateBudgetResponseBody$inboundSchema: z.ZodType<
|
|
|
516
516
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
517
517
|
.optional(),
|
|
518
518
|
updated: z.string().datetime({ offset: true }).default(
|
|
519
|
-
"2025-11-
|
|
519
|
+
"2025-11-25T16:34:40.403Z",
|
|
520
520
|
).transform(v => new Date(v)),
|
|
521
521
|
}).transform((v) => {
|
|
522
522
|
return remap$(v, {
|
|
@@ -553,7 +553,7 @@ export const CreateBudgetResponseBody$outboundSchema: z.ZodType<
|
|
|
553
553
|
isActive: z.boolean(),
|
|
554
554
|
consumption: z.lazy(() => Consumption$outboundSchema).optional(),
|
|
555
555
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
556
|
-
updated: z.date().default(() => new Date("2025-11-
|
|
556
|
+
updated: z.date().default(() => new Date("2025-11-25T16:34:40.403Z"))
|
|
557
557
|
.transform(v => v.toISOString()),
|
|
558
558
|
}).transform((v) => {
|
|
559
559
|
return remap$(v, {
|
|
@@ -167,7 +167,7 @@ export const CreateContactResponseBody$inboundSchema: z.ZodType<
|
|
|
167
167
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
168
168
|
.optional(),
|
|
169
169
|
updated: z.string().datetime({ offset: true }).default(
|
|
170
|
-
"2025-11-
|
|
170
|
+
"2025-11-25T16:34:40.058Z",
|
|
171
171
|
).transform(v => new Date(v)),
|
|
172
172
|
}).transform((v) => {
|
|
173
173
|
return remap$(v, {
|
|
@@ -207,7 +207,7 @@ export const CreateContactResponseBody$outboundSchema: z.ZodType<
|
|
|
207
207
|
tags: z.array(z.string()).optional(),
|
|
208
208
|
metadata: z.record(z.any()).optional(),
|
|
209
209
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
210
|
-
updated: z.date().default(() => new Date("2025-11-
|
|
210
|
+
updated: z.date().default(() => new Date("2025-11-25T16:34:40.058Z"))
|
|
211
211
|
.transform(v => v.toISOString()),
|
|
212
212
|
}).transform((v) => {
|
|
213
213
|
return remap$(v, {
|
|
@@ -187,7 +187,7 @@ export const CreateDatasetResponseBody$inboundSchema: z.ZodType<
|
|
|
187
187
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
188
188
|
.optional(),
|
|
189
189
|
updated: z.string().datetime({ offset: true }).default(
|
|
190
|
-
"2025-11-
|
|
190
|
+
"2025-11-25T16:34:40.058Z",
|
|
191
191
|
).transform(v => new Date(v)),
|
|
192
192
|
}).transform((v) => {
|
|
193
193
|
return remap$(v, {
|
|
@@ -226,7 +226,7 @@ export const CreateDatasetResponseBody$outboundSchema: z.ZodType<
|
|
|
226
226
|
createdById: z.string().optional(),
|
|
227
227
|
updatedById: z.string().optional(),
|
|
228
228
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
229
|
-
updated: z.date().default(() => new Date("2025-11-
|
|
229
|
+
updated: z.date().default(() => new Date("2025-11-25T16:34:40.058Z"))
|
|
230
230
|
.transform(v => v.toISOString()),
|
|
231
231
|
}).transform((v) => {
|
|
232
232
|
return remap$(v, {
|
|
@@ -4929,7 +4929,7 @@ export const Evaluations3$inboundSchema: z.ZodType<
|
|
|
4929
4929
|
source: CreateDatasetItemEvaluationsSource$inboundSchema.default("orq"),
|
|
4930
4930
|
reviewed_by_id: z.string(),
|
|
4931
4931
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
4932
|
-
"2025-11-
|
|
4932
|
+
"2025-11-25T16:34:51.487Z",
|
|
4933
4933
|
).transform(v => new Date(v)),
|
|
4934
4934
|
type: CreateDatasetItemEvaluationsDatasetsType$inboundSchema,
|
|
4935
4935
|
values: z.array(z.string()),
|
|
@@ -4964,7 +4964,7 @@ export const Evaluations3$outboundSchema: z.ZodType<
|
|
|
4964
4964
|
humanReviewId: z.string(),
|
|
4965
4965
|
source: CreateDatasetItemEvaluationsSource$outboundSchema.default("orq"),
|
|
4966
4966
|
reviewedById: z.string(),
|
|
4967
|
-
reviewedAt: z.date().default(() => new Date("2025-11-
|
|
4967
|
+
reviewedAt: z.date().default(() => new Date("2025-11-25T16:34:51.487Z"))
|
|
4968
4968
|
.transform(v => v.toISOString()),
|
|
4969
4969
|
type: CreateDatasetItemEvaluationsDatasetsType$outboundSchema,
|
|
4970
4970
|
values: z.array(z.string()),
|
|
@@ -5029,7 +5029,7 @@ export const Evaluations2$inboundSchema: z.ZodType<
|
|
|
5029
5029
|
source: EvaluationsSource$inboundSchema.default("orq"),
|
|
5030
5030
|
reviewed_by_id: z.string(),
|
|
5031
5031
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
5032
|
-
"2025-11-
|
|
5032
|
+
"2025-11-25T16:34:51.487Z",
|
|
5033
5033
|
).transform(v => new Date(v)),
|
|
5034
5034
|
type: CreateDatasetItemEvaluationsType$inboundSchema,
|
|
5035
5035
|
value: z.number(),
|
|
@@ -5064,7 +5064,7 @@ export const Evaluations2$outboundSchema: z.ZodType<
|
|
|
5064
5064
|
humanReviewId: z.string(),
|
|
5065
5065
|
source: EvaluationsSource$outboundSchema.default("orq"),
|
|
5066
5066
|
reviewedById: z.string(),
|
|
5067
|
-
reviewedAt: z.date().default(() => new Date("2025-11-
|
|
5067
|
+
reviewedAt: z.date().default(() => new Date("2025-11-25T16:34:51.487Z"))
|
|
5068
5068
|
.transform(v => v.toISOString()),
|
|
5069
5069
|
type: CreateDatasetItemEvaluationsType$outboundSchema,
|
|
5070
5070
|
value: z.number(),
|
|
@@ -5127,7 +5127,7 @@ export const Evaluations1$inboundSchema: z.ZodType<
|
|
|
5127
5127
|
source: Source$inboundSchema.default("orq"),
|
|
5128
5128
|
reviewed_by_id: z.string(),
|
|
5129
5129
|
reviewed_at: z.string().datetime({ offset: true }).default(
|
|
5130
|
-
"2025-11-
|
|
5130
|
+
"2025-11-25T16:34:51.486Z",
|
|
5131
5131
|
).transform(v => new Date(v)),
|
|
5132
5132
|
type: EvaluationsType$inboundSchema,
|
|
5133
5133
|
value: z.string(),
|
|
@@ -5162,7 +5162,7 @@ export const Evaluations1$outboundSchema: z.ZodType<
|
|
|
5162
5162
|
humanReviewId: z.string(),
|
|
5163
5163
|
source: Source$outboundSchema.default("orq"),
|
|
5164
5164
|
reviewedById: z.string(),
|
|
5165
|
-
reviewedAt: z.date().default(() => new Date("2025-11-
|
|
5165
|
+
reviewedAt: z.date().default(() => new Date("2025-11-25T16:34:51.486Z"))
|
|
5166
5166
|
.transform(v => v.toISOString()),
|
|
5167
5167
|
type: EvaluationsType$outboundSchema,
|
|
5168
5168
|
value: z.string(),
|
|
@@ -5267,7 +5267,7 @@ export const CreateDatasetItemResponseBody$inboundSchema: z.ZodType<
|
|
|
5267
5267
|
created: z.string().datetime({ offset: true }).transform(v => new Date(v))
|
|
5268
5268
|
.optional(),
|
|
5269
5269
|
updated: z.string().datetime({ offset: true }).default(
|
|
5270
|
-
"2025-11-
|
|
5270
|
+
"2025-11-25T16:34:40.058Z",
|
|
5271
5271
|
).transform(v => new Date(v)),
|
|
5272
5272
|
}).transform((v) => {
|
|
5273
5273
|
return remap$(v, {
|
|
@@ -5345,7 +5345,7 @@ export const CreateDatasetItemResponseBody$outboundSchema: z.ZodType<
|
|
|
5345
5345
|
createdById: z.string().optional(),
|
|
5346
5346
|
updatedById: z.string().optional(),
|
|
5347
5347
|
created: z.date().transform(v => v.toISOString()).optional(),
|
|
5348
|
-
updated: z.date().default(() => new Date("2025-11-
|
|
5348
|
+
updated: z.date().default(() => new Date("2025-11-25T16:34:40.058Z"))
|
|
5349
5349
|
.transform(v => v.toISOString()),
|
|
5350
5350
|
}).transform((v) => {
|
|
5351
5351
|
return remap$(v, {
|
|
@@ -608,7 +608,7 @@ export const CreateDatasourceResponseBody$inboundSchema: z.ZodType<
|
|
|
608
608
|
z.ZodTypeDef,
|
|
609
609
|
unknown
|
|
610
610
|
> = z.object({
|
|
611
|
-
_id: z.string().default("
|
|
611
|
+
_id: z.string().default("01KAXXWBC4W5MV2A78AQMQ789P"),
|
|
612
612
|
display_name: z.string(),
|
|
613
613
|
description: z.string().optional(),
|
|
614
614
|
status: CreateDatasourceStatus$inboundSchema,
|
|
@@ -651,7 +651,7 @@ export const CreateDatasourceResponseBody$outboundSchema: z.ZodType<
|
|
|
651
651
|
z.ZodTypeDef,
|
|
652
652
|
CreateDatasourceResponseBody
|
|
653
653
|
> = z.object({
|
|
654
|
-
id: z.string().default("
|
|
654
|
+
id: z.string().default("01KAXXWBC4W5MV2A78AQMQ789P"),
|
|
655
655
|
displayName: z.string(),
|
|
656
656
|
description: z.string().optional(),
|
|
657
657
|
status: CreateDatasourceStatus$outboundSchema,
|