TypeScript webhook function generation fails when using "Any Of"

If you create a webhook with response parsing logic that includes a parameter with an expected value type of “Any Of”…

…TypeScript generation for that webhook (to use in a Function) silently fails.

I was told by Palantir Support that this is a known bug, and to use fetch instead.

Is there an estimate for when the bug will be fixed?

This is not so much a bug as it is a known limitation of the code-gen implementation that generates webhook definitions in typescript functions. We will not be investing in adding support for this (at least in the short term), as the implementation would be non-trivial and introduce various complexities into the product.

Palantir Support was correct that you should use your source directly in the function to achieve this functionality.

Apologies for the inconvenience here!