diff --git a/apps/mobile/data/schemas.ts b/apps/mobile/data/schemas.ts index 87f523746e..c4c2fd403b 100644 --- a/apps/mobile/data/schemas.ts +++ b/apps/mobile/data/schemas.ts @@ -551,7 +551,7 @@ export const EMPTY_MEMBER_LIST: MemberWithUser[] = []; const AgentInvocationTargetSchema: z.ZodType = z .object({ - target_type: z.enum(["workspace", "member", "space"]).catch("space"), + target_type: z.enum(["workspace", "member", "team"]).catch("team"), target_id: z .string() .nullable() diff --git a/apps/mobile/lib/agent-schema.test.ts b/apps/mobile/lib/agent-schema.test.ts index f99f0b43fa..fe1970ee78 100644 --- a/apps/mobile/lib/agent-schema.test.ts +++ b/apps/mobile/lib/agent-schema.test.ts @@ -35,7 +35,7 @@ describe("AgentSchema invocation permissions", () => { expect(parsed.permission_mode).toBe("private"); expect(parsed.invocation_targets).toEqual([ - { target_type: "space", target_id: null }, + { target_type: "team", target_id: null }, ]); }); });