grant reset
This commit is contained in:
parent
70001b287c
commit
7a0013527b
13 changed files with 183 additions and 8 deletions
|
|
@ -598,18 +598,24 @@ service LightningPub {
|
|||
option (http_route) = "/api/user/manage/get";
|
||||
option (nostr) = true;
|
||||
}
|
||||
rpc AuthorizeDebit(structs.DebitAuthorizationRequest) returns (structs.DebitAuthorization){
|
||||
option (auth_type) = "User";
|
||||
option (http_method) = "post";
|
||||
option (http_route) = "/api/user/debit/authorize";
|
||||
option (nostr) = true;
|
||||
}
|
||||
rpc AuthorizeManage(structs.ManageAuthorizationRequest) returns (structs.ManageAuthorization){
|
||||
option (auth_type) = "User";
|
||||
option (http_method) = "post";
|
||||
option (http_route) = "/api/user/manage/authorize";
|
||||
option (nostr) = true;
|
||||
}
|
||||
rpc ResetManage(structs.ManageOperation) returns (structs.Empty){
|
||||
option (auth_type) = "User";
|
||||
option (http_method) = "post";
|
||||
option (http_route) = "/api/user/manage/reset";
|
||||
option (nostr) = true;
|
||||
}
|
||||
rpc AuthorizeDebit(structs.DebitAuthorizationRequest) returns (structs.DebitAuthorization){
|
||||
option (auth_type) = "User";
|
||||
option (http_method) = "post";
|
||||
option (http_route) = "/api/user/debit/authorize";
|
||||
option (nostr) = true;
|
||||
}
|
||||
rpc EditDebit(structs.DebitAuthorizationRequest) returns (structs.Empty){
|
||||
option (auth_type) = "User";
|
||||
option (http_method) = "post";
|
||||
|
|
|
|||
|
|
@ -675,6 +675,10 @@ message DebitAuthorizationRequest {
|
|||
optional string request_id = 3;
|
||||
}
|
||||
|
||||
message ManageOperation {
|
||||
string npub = 1;
|
||||
}
|
||||
|
||||
message ManageAuthorizationRequest {
|
||||
string authorize_npub = 1;
|
||||
optional string request_id = 2;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue