File size: 968 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 |
syntax = "proto3";
option go_package = "github.com/target/goalert/pkg/sysapi";
package goalert.v1;
service SysAPI {
rpc AuthSubjects(AuthSubjectsRequest) returns (stream AuthSubject){}
rpc DeleteUser(DeleteUserRequest) returns (DeleteUserResponse){}
rpc UsersWithoutAuthProvider(UsersWithoutAuthProviderRequest) returns (stream UserInfo) {}
rpc SetAuthSubject(SetAuthSubjectRequest) returns (SetAuthSubjectResponse) {}
}
message UsersWithoutAuthProviderRequest {
string provider_id = 1;
}
message SetAuthSubjectRequest {
AuthSubject subject = 1;
}
message UserInfo {
string id = 1;
string name = 2;
string email = 3;
}
message SetAuthSubjectResponse {}
message DeleteUserRequest {
string user_id = 1;
}
message DeleteUserResponse{}
message AuthSubjectsRequest {
string provider_id = 1;
string user_id = 2;
}
message AuthSubject {
string user_id = 1;
string provider_id = 2;
string subject_id = 3;
}
|