import { z } from 'zod';
const AgentTeamCreateSubagentLaunchV1Schema = z.object({
    kind: z.literal('agent_team_create'),
    teamId: z.string().min(1),
    description: z.string().min(1).max(2000).optional(),
}).passthrough();
const AgentTeamMemberCreateSubagentLaunchV1Schema = z.object({
    kind: z.literal('agent_team_member_create'),
    teamId: z.string().min(1),
    memberLabel: z.string().min(1).max(200),
    instructions: z.string().min(1).max(20_000),
    runInBackground: z.boolean().optional(),
}).passthrough();
export const SubagentLaunchV1Schema = z.discriminatedUnion('kind', [
    AgentTeamCreateSubagentLaunchV1Schema,
    AgentTeamMemberCreateSubagentLaunchV1Schema,
]);
export function parseSubagentLaunchV1(input) {
    const parsed = SubagentLaunchV1Schema.safeParse(input);
    return parsed.success ? parsed.data : null;
}
//# sourceMappingURL=subagentLaunchV1.js.map