I am trying to write a Function on an Object that makes Foundry REST API calls. Is there an example or recommended internal Typescript API that I can import to make Foundry REST API calls?
You can't make REST calls from Functions. This is for a few reasons:
If you are trying to access data that is available on other Objects, you could pass those Objects into the Function and use Objects.search()
to search for the relevant object sets as a workaround.