waitForCompletion

Waits for a long-running operation to complete by polling status.

This method will:

  1. Check if the response indicates a long-running operation (has jobId)

  2. Poll the status endpoint at regular intervals

  3. 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