Factory setting for retaining iPhone text messages

Wondering if anyone knows (or can point me to a definitive authority for) what the default “keep messages” setting is for the iPhone (i.e. 30-day, 1-year or forever)? Also, is the default-setting different for different versions of the iPhone?

I have gotten conflicting answers from Apple customer care and sales folks and via web searches.