response to service
This commit is contained in:
parent
d2f2ac48eb
commit
1049586646
15 changed files with 354 additions and 51 deletions
|
|
@ -471,6 +471,12 @@ service LightningPub {
|
|||
option (http_route) = "/api/user/debit/reset";
|
||||
option (nostr) = true;
|
||||
}
|
||||
rpc RespondToDebit(structs.DebitResponse) returns (structs.Empty){
|
||||
option (auth_type) = "User";
|
||||
option (http_method) = "post";
|
||||
option (http_route) = "/api/user/debit/finish";
|
||||
option (nostr) = true;
|
||||
}
|
||||
rpc GetLiveDebitRequests(structs.Empty) returns (stream structs.LiveDebitRequest){
|
||||
option (auth_type) = "User";
|
||||
option (http_method) = "post";
|
||||
|
|
|
|||
|
|
@ -493,6 +493,7 @@ message DebitOperation {
|
|||
message DebitAuthorizationRequest {
|
||||
string authorize_npub = 1;
|
||||
repeated DebitRule rules = 2;
|
||||
optional string request_id = 3;
|
||||
}
|
||||
|
||||
message DebitAuthorization {
|
||||
|
|
@ -530,9 +531,19 @@ message DebitRule {
|
|||
}
|
||||
|
||||
message LiveDebitRequest {
|
||||
string npub = 1;
|
||||
string request_id = 1;
|
||||
string npub = 2;
|
||||
oneof debit {
|
||||
string invoice = 3;
|
||||
FrequencyRule frequency = 4;
|
||||
}
|
||||
}
|
||||
|
||||
message DebitResponse {
|
||||
string request_id = 1;
|
||||
string npub = 2;
|
||||
oneof response {
|
||||
Empty denied = 3;
|
||||
string invoice = 4;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue