ban and reset
This commit is contained in:
parent
08457d281d
commit
5474e5217d
14 changed files with 285 additions and 133 deletions
|
|
@ -441,18 +441,24 @@ service LightningPub {
|
|||
option (http_route) = "/api/user/debit/get";
|
||||
option (nostr) = true;
|
||||
}
|
||||
rpc RemoveAuthorizedDebit(structs.RemoveAuthorizedDebitRequest) returns (structs.Empty){
|
||||
option (auth_type) = "User";
|
||||
option (http_method) = "post";
|
||||
option (http_route) = "/api/user/debit/remove";
|
||||
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 BanDebit(structs.DebitOperation) returns (structs.Empty){
|
||||
option (auth_type) = "User";
|
||||
option (http_method) = "post";
|
||||
option (http_route) = "/api/user/debit/ban";
|
||||
option (nostr) = true;
|
||||
}
|
||||
rpc ResetDebit(structs.DebitOperation) returns (structs.Empty){
|
||||
option (auth_type) = "User";
|
||||
option (http_method) = "post";
|
||||
option (http_route) = "/api/user/debit/reset";
|
||||
option (nostr) = true;
|
||||
}
|
||||
rpc GetLiveDebitRequests(structs.Empty) returns (stream structs.LiveDebitRequest){
|
||||
option (auth_type) = "User";
|
||||
option (http_method) = "post";
|
||||
|
|
|
|||
|
|
@ -479,7 +479,9 @@ message GetInviteTokenStateResponse {
|
|||
bool used = 1;
|
||||
}
|
||||
|
||||
|
||||
message DebitOperation {
|
||||
string npub = 1;
|
||||
}
|
||||
|
||||
message DebitAuthorizationRequest {
|
||||
string authorize_npub = 1;
|
||||
|
|
@ -498,10 +500,6 @@ message DebitAuthorizations {
|
|||
repeated DebitAuthorization debits = 1;
|
||||
}
|
||||
|
||||
message RemoveAuthorizedDebitRequest {
|
||||
string npub = 1;
|
||||
}
|
||||
|
||||
message DebitExpirationRule {
|
||||
int64 expires_at_unix = 1;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue