def METHOD_NAME(grant: Grant, request):
    admin_url = request.build_absolute_uri(grant.get_admin_url())
    return publish_message(
        "NewGrantReply",
        body={"grant_id": grant.id, "admin_url": admin_url},
        deduplication_id=str(uuid4()),
    )