syntax = "proto3";

package com.wixpress.authorization;

import "wix/api/validations.proto";
import "wix/api/annotations.proto";

service LegacyAuthorizationService {
    option (.wix.api.service_exposure) = PRIVATE;

    rpc getPermissions(GetPermissionsRequest) returns (GetPermissionsResponse);
}

message GetPermissionsRequest {
    string role = 1;
}

message GetPermissionsResponse {
    repeated LegacyPermission permissions = 1;
}

message LegacyPermission {
    string scope = 1;
    string action = 2;
}