I was able to get this working. It seems that only the Hubspot definition of the type needs to be correct. If I pass a number as a token, then it appears to be coerced into a string, but then converted back to a number by Hubspot. A Date type is just a Unix epoch as a number.