Update files
This commit is contained in:
@@ -251,6 +251,7 @@ export const AgentSnapshotPayloadSchema = z.object({
|
||||
attentionReason: z.enum(["finished", "error", "permission"]).nullable().optional(),
|
||||
attentionTimestamp: z.string().nullable().optional(),
|
||||
parentAgentId: z.string().nullable().optional(),
|
||||
archivedAt: z.string().nullable().optional(),
|
||||
});
|
||||
|
||||
export type AgentSnapshotPayload = z.infer<typeof AgentSnapshotPayloadSchema>;
|
||||
@@ -312,6 +313,12 @@ export const DeleteAgentRequestMessageSchema = z.object({
|
||||
requestId: z.string(),
|
||||
});
|
||||
|
||||
export const ArchiveAgentRequestMessageSchema = z.object({
|
||||
type: z.literal("archive_agent_request"),
|
||||
agentId: z.string(),
|
||||
requestId: z.string(),
|
||||
});
|
||||
|
||||
export const SetVoiceConversationMessageSchema = z.object({
|
||||
type: z.literal("set_voice_conversation"),
|
||||
enabled: z.boolean(),
|
||||
@@ -723,6 +730,7 @@ export const SessionInboundMessageSchema = z.discriminatedUnion("type", [
|
||||
ListVoiceConversationsRequestMessageSchema,
|
||||
DeleteVoiceConversationRequestMessageSchema,
|
||||
DeleteAgentRequestMessageSchema,
|
||||
ArchiveAgentRequestMessageSchema,
|
||||
SetVoiceConversationMessageSchema,
|
||||
SendAgentMessageSchema,
|
||||
DictationStreamStartMessageSchema,
|
||||
@@ -1034,6 +1042,15 @@ export const AgentDeletedMessageSchema = z.object({
|
||||
}),
|
||||
});
|
||||
|
||||
export const AgentArchivedMessageSchema = z.object({
|
||||
type: z.literal("agent_archived"),
|
||||
payload: z.object({
|
||||
agentId: z.string(),
|
||||
archivedAt: z.string(),
|
||||
requestId: z.string(),
|
||||
}),
|
||||
});
|
||||
|
||||
export const GitDiffResponseSchema = z.object({
|
||||
type: z.literal("git_diff_response"),
|
||||
payload: z.object({
|
||||
@@ -1417,6 +1434,7 @@ export const SessionOutboundMessageSchema = z.discriminatedUnion("type", [
|
||||
AgentPermissionRequestMessageSchema,
|
||||
AgentPermissionResolvedMessageSchema,
|
||||
AgentDeletedMessageSchema,
|
||||
AgentArchivedMessageSchema,
|
||||
GitDiffResponseSchema,
|
||||
CheckoutStatusResponseSchema,
|
||||
CheckoutDiffResponseSchema,
|
||||
|
||||
Reference in New Issue
Block a user