[Toy story] what defines a toy?

r/

I know that all toys in the toy story universe are alive, but when does something stop being a toy?

By example, we are shown they are kept alive even when their parts are separated, but when they are no longer in sid’s room and instead in some sort of place where nobody plays with them do they count as toys?

Also what defines a toy? Does it only need to be made with the intention of somebody playing with it? So if i make a doll only for my collection and not for playing with it, does it still gain life or does it keep as a inanimate object?