IDEA has 14 different field types. To access it in the script you would use the field.type function which would return an integer indicating which field type it is. I noticed something interesting about the field types, 4 of the types are for editable fields, so when you are creating the field you would use the editable field type but once they are created and you use IDEA to see what type of field it is IDEA views them as normal IDEA field types. Something to remember if you are using any editable types in your script.
Here is a breakdown of the field types.