This PR updates the API docs action to fix two things:
Update it's dependencies to avoid vulnerabilities.
Fix the CI action which had trouble with one specific which was defined inline in the code. I extracted a new interface for it to define it explicitly.
This PR updates the API docs action to fix two things: