title vsw register

actor #green Alice
fontawesome f120 vsw #green
fontawesome f085 vsw Agent #lightgreen
fontawesome f085 repo Agent #lightblue
fontawesome f1c0 repo #blue

activate repo Agent #lightblue
activate repo #blue
activate vsw Agent #lightgreen
Alice->vsw:vsw register <repo-did>\n    \--email=alice@example.com
activate vsw #green
vsw->vsw Agent:POST /connections/receive-invitation
vsw Agent->>repo Agent:
box over vsw Agent,repo Agent:handshake
repo Agent->>vsw Agent:
vsw Agent-->vsw:connection
vsw->vsw Agent:POST /connections/{conn_id}/send-message
deactivate vsw
vsw Agent->>repo Agent:Message
repo Agent->repo:POST /webhooks/topic/basicmessage
repo-#blue>>Alice:Verifiation email with code
Alice->vsw:vsw register \--verify <code>
activate vsw #green
vsw->vsw Agent:POST /connections/{conn_id}/send-message
vsw Agent->>repo Agent:Message
repo Agent->repo:POST /webhooks/topic/basicmessage
abox over repo:Issue email credential
repo->repo Agent:POST /issue-credential/create
repo Agent->vsw Agent:
box over vsw Agent,repo Agent:Credential issuing process\nbetween agents
repo Agent-->repo:Response
repo->repo Agent:POST /connections/{conn_id}/send-message
repo Agent->vsw Agent:Message
vsw Agent->vsw:POST /webhooks/topic/basicmessage
vsw-->Alice:Success
deactivate vsw