import { z } from 'zod';
const AgentTeamDeleteSubagentCommandV1Schema = z.object({
    kind: z.literal('agent_team_delete'),
    teamId: z.string().min(1),
}).passthrough();
const AgentTeamMemberDeleteSubagentCommandV1Schema = z.object({
    kind: z.literal('agent_team_member_delete'),
    teamId: z.string().min(1),
    memberId: z.string().min(1),
    memberLabel: z.string().min(1).max(200).optional(),
}).passthrough();
export const SubagentCommandV1Schema = z.discriminatedUnion('kind', [
    AgentTeamDeleteSubagentCommandV1Schema,
    AgentTeamMemberDeleteSubagentCommandV1Schema,
]);
export function parseSubagentCommandV1(input) {
    const parsed = SubagentCommandV1Schema.safeParse(input);
    return parsed.success ? parsed.data : null;
}
//# sourceMappingURL=subagentCommandV1.js.map