Missing required parameter: message[3].content[0].type

Is the usage of “type” and “text” attributes somewhere documented? How is it supposed we should know this?