How to edit navmesh at a runtime?

Is it possible to build/edit navmesh at a runtime?

I have a terrain built from cubes and it’s possible to change its geometry at a runtime, of course if the geometry is changed then the navmesh must be updated.

The NavMeshBuilder is editor class so I can’t use it, unfortunately I couldn’t find any API that could help me solve the problem.

You can’t edit the navmesh at runtime. Its editor time only.
So if you use dynamic geometry the unity inbuilt navmesh capability is not usable to you