waitForCompletion
Waits for a long-running operation to complete by polling status.
This method will:
Check if the response indicates a long-running operation (has jobId)
Poll the status endpoint at regular intervals
Return when the operation is complete (finished or failed)
Return
Final registration response when operation is complete
Parameters
response
Initial registration response (may contain jobId)
Throws
if polling fails or times out