lightning-terminal/litrpc/lit-accounts.yaml
cyberguru1 f5a1a020eb
proto: add AccountPayments to Accounts service
Define the AccountPayments RPC endpoint and its request/response
messages in lit-accounts.proto. This endpoint allows querying
paginated payment history for a specific account.

Also update the frontend JS/TS proto sanitization script to map the
imported lnd.proto file to its flat directory path, fixing app build.
2026-07-22 14:06:25 -05:00

25 lines
718 B
YAML

type: google.api.Service
config_version: 3
http:
rules:
# lit-accounts.proto
- selector: litrpc.Accounts.CreateAccount
post: "/v1/accounts"
body: "*"
- selector: litrpc.Accounts.UpdateAccount
post: "/v1/accounts/{id}"
body: "*"
- selector: litrpc.Accounts.ListAccounts
get: "/v1/accounts"
- selector: litrpc.Accounts.RemoveAccount
delete: "/v1/accounts/{id}"
- selector: litrpc.Accounts.CreditAccount
post: "/v1/accounts/credit/{account.id}"
body: "*"
- selector: litrpc.Accounts.DebitAccount
post: "/v1/accounts/debit/{account.id}"
body: "*"
- selector: litrpc.Accounts.AccountPayments
get: "/v1/accounts/payments"