Skip to content

Commit

Permalink
docs: Adding readonly category for all get & list commands except l…
Browse files Browse the repository at this point in the history
…istdatastore
  • Loading branch information
ShahanaFarooqui committed Jul 23, 2024
1 parent 88024fa commit ef0ca16
Show file tree
Hide file tree
Showing 21 changed files with 120 additions and 0 deletions.
57 changes: 57 additions & 0 deletions contrib/msggen/msggen/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -11407,6 +11407,9 @@
"description": [
"The **getinfo** gives a summary of the current running node."
],
"categories": [
"readonly"
],
"request": {
"required": [],
"properties": {}
Expand Down Expand Up @@ -11838,6 +11841,9 @@
"description": [
"The **getlog** the RPC command to show logs, with optional log *level*."
],
"categories": [
"readonly"
],
"request": {
"required": [],
"properties": {
Expand Down Expand Up @@ -12098,6 +12104,9 @@
"",
"There are two considerations for how good a route is: how low the fees are, and how long your payment will get stuck in a delayed output if a node goes down during the process. ."
],
"categories": [
"readonly"
],
"request": {
"required": [
"id",
Expand Down Expand Up @@ -13369,6 +13378,9 @@
"",
"Only one of *short_channel_id*, *source* or *destination* can be supplied. If nothing is supplied, data on all lightning channels known to this node, are returned. These can be local channels or public channels broadcast on the gossip network."
],
"categories": [
"readonly"
],
"request": {
"required": [],
"properties": {
Expand Down Expand Up @@ -13613,6 +13625,9 @@
"description": [
"The **listclosedchannels** RPC command returns data on channels which are otherwise forgotten (more than 100 blocks after they're completely resolved onchain)."
],
"categories": [
"readonly"
],
"request": {
"required": [],
"properties": {
Expand Down Expand Up @@ -13898,6 +13913,9 @@
"description": [
"The **listconfigs** RPC command to list all configuration options, or with *config* only one."
],
"categories": [
"readonly"
],
"request": {
"required": [],
"properties": {
Expand Down Expand Up @@ -16948,6 +16966,9 @@
"description": [
"The **listforwards** RPC command displays all htlcs that have been attempted to be forwarded by the Core Lightning node."
],
"categories": [
"readonly"
],
"request": {
"required": [],
"properties": {
Expand Down Expand Up @@ -17396,6 +17417,9 @@
"description": [
"The **listfunds** RPC command displays all funds available, either in unspent outputs (UTXOs) in the internal wallet or funds locked in currently open channels."
],
"categories": [
"readonly"
],
"request": {
"required": [],
"properties": {
Expand Down Expand Up @@ -17774,6 +17798,9 @@
"description": [
"The **listhtlcs** RPC command gets all HTLCs (which, generally, we remember for as long as a channel is open, even if they've completed long ago)."
],
"categories": [
"readonly"
],
"request": {
"required": [],
"properties": {
Expand Down Expand Up @@ -18036,6 +18063,9 @@
"description": [
"The **listinvoicerequests** RPC command gets the status of a specific `invoice_request`, if it exists, or the status of all `invoice_requests` if given no argument."
],
"categories": [
"readonly"
],
"request": {
"required": [],
"properties": {
Expand Down Expand Up @@ -18157,6 +18187,9 @@
"",
"Only one of the query parameters can be used from *label*, *invstring*, *payment_hash*, or *offer_id*."
],
"categories": [
"readonly"
],
"request": {
"required": [],
"properties": {
Expand Down Expand Up @@ -18483,6 +18516,9 @@
"description": [
"The **listnodes** command returns nodes the node has learned about via gossip messages, or a single one if the node *id* was specified."
],
"categories": [
"readonly"
],
"request": {
"required": [],
"properties": {
Expand Down Expand Up @@ -18818,6 +18854,9 @@
"description": [
"The **listoffers** RPC command list all offers, or with `offer_id`, only the offer with that offer_id (if it exists)."
],
"categories": [
"readonly"
],
"request": {
"required": [],
"properties": {
Expand Down Expand Up @@ -18963,6 +19002,9 @@
"description": [
"The **listpay** RPC command gets the status of all *pay* commands, or a single one if either *bolt11* or *payment_hash* was specified."
],
"categories": [
"readonly"
],
"request": {
"required": [],
"properties": {
Expand Down Expand Up @@ -19236,6 +19278,9 @@
"",
"If no *id* is supplied, then channel data on all lightning nodes that are connected, or not connected but have open channels with this node, are returned."
],
"categories": [
"readonly"
],
"request": {
"required": [],
"properties": {
Expand Down Expand Up @@ -20848,6 +20893,9 @@
"",
"The channel will remain open for a set blocktime, after which if the connection has not been re-established, the channel will close and the node will no longer appear in the command output."
],
"categories": [
"readonly"
],
"request": {
"required": [],
"properties": {
Expand Down Expand Up @@ -21206,6 +21254,9 @@
"",
"Note that there may be more than one concurrent *sendpay* command per *pay*, so this command should be used with caution."
],
"categories": [
"readonly"
],
"request": {
"required": [],
"properties": {
Expand Down Expand Up @@ -21608,6 +21659,9 @@
"",
"If *table* is given, only that table is in the resulting list, otherwise all tables are listed."
],
"categories": [
"readonly"
],
"request": {
"required": [],
"properties": {
Expand Down Expand Up @@ -21884,6 +21938,9 @@
"description": [
"The **listtransactions** command returns transactions tracked in the wallet. This includes deposits, withdrawals and transactions related to channels. A transaction may have multiple types, e.g., a transaction may both be a close and a deposit if it closes the channel and returns funds to the wallet."
],
"categories": [
"readonly"
],
"request": {
"required": [],
"properties": {}
Expand Down
6 changes: 6 additions & 0 deletions doc/rpc-schema-draft.json
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,12 @@
"type": "string"
}
},
"categories": {
"type": "array",
"items": {
"type": "string"
}
},
"request": {
"$ref": "#/definitions/schemaRequest"
},
Expand Down
3 changes: 3 additions & 0 deletions doc/schemas/lightning-getinfo.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
"description": [
"The **getinfo** gives a summary of the current running node."
],
"categories": [
"readonly"
],
"request": {
"required": [],
"properties": {}
Expand Down
3 changes: 3 additions & 0 deletions doc/schemas/lightning-getlog.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
"description": [
"The **getlog** the RPC command to show logs, with optional log *level*."
],
"categories": [
"readonly"
],
"request": {
"required": [],
"properties": {
Expand Down
3 changes: 3 additions & 0 deletions doc/schemas/lightning-getroute.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
"",
"There are two considerations for how good a route is: how low the fees are, and how long your payment will get stuck in a delayed output if a node goes down during the process. ."
],
"categories": [
"readonly"
],
"request": {
"required": [
"id",
Expand Down
3 changes: 3 additions & 0 deletions doc/schemas/lightning-listchannels.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
"",
"Only one of *short_channel_id*, *source* or *destination* can be supplied. If nothing is supplied, data on all lightning channels known to this node, are returned. These can be local channels or public channels broadcast on the gossip network."
],
"categories": [
"readonly"
],
"request": {
"required": [],
"properties": {
Expand Down
3 changes: 3 additions & 0 deletions doc/schemas/lightning-listclosedchannels.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
"description": [
"The **listclosedchannels** RPC command returns data on channels which are otherwise forgotten (more than 100 blocks after they're completely resolved onchain)."
],
"categories": [
"readonly"
],
"request": {
"required": [],
"properties": {
Expand Down
3 changes: 3 additions & 0 deletions doc/schemas/lightning-listconfigs.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
"description": [
"The **listconfigs** RPC command to list all configuration options, or with *config* only one."
],
"categories": [
"readonly"
],
"request": {
"required": [],
"properties": {
Expand Down
3 changes: 3 additions & 0 deletions doc/schemas/lightning-listforwards.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
"description": [
"The **listforwards** RPC command displays all htlcs that have been attempted to be forwarded by the Core Lightning node."
],
"categories": [
"readonly"
],
"request": {
"required": [],
"properties": {
Expand Down
3 changes: 3 additions & 0 deletions doc/schemas/lightning-listfunds.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
"description": [
"The **listfunds** RPC command displays all funds available, either in unspent outputs (UTXOs) in the internal wallet or funds locked in currently open channels."
],
"categories": [
"readonly"
],
"request": {
"required": [],
"properties": {
Expand Down
3 changes: 3 additions & 0 deletions doc/schemas/lightning-listhtlcs.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
"description": [
"The **listhtlcs** RPC command gets all HTLCs (which, generally, we remember for as long as a channel is open, even if they've completed long ago)."
],
"categories": [
"readonly"
],
"request": {
"required": [],
"properties": {
Expand Down
3 changes: 3 additions & 0 deletions doc/schemas/lightning-listinvoicerequests.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
"description": [
"The **listinvoicerequests** RPC command gets the status of a specific `invoice_request`, if it exists, or the status of all `invoice_requests` if given no argument."
],
"categories": [
"readonly"
],
"request": {
"required": [],
"properties": {
Expand Down
3 changes: 3 additions & 0 deletions doc/schemas/lightning-listinvoices.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
"",
"Only one of the query parameters can be used from *label*, *invstring*, *payment_hash*, or *offer_id*."
],
"categories": [
"readonly"
],
"request": {
"required": [],
"properties": {
Expand Down
3 changes: 3 additions & 0 deletions doc/schemas/lightning-listnodes.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
"description": [
"The **listnodes** command returns nodes the node has learned about via gossip messages, or a single one if the node *id* was specified."
],
"categories": [
"readonly"
],
"request": {
"required": [],
"properties": {
Expand Down
3 changes: 3 additions & 0 deletions doc/schemas/lightning-listoffers.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
"description": [
"The **listoffers** RPC command list all offers, or with `offer_id`, only the offer with that offer_id (if it exists)."
],
"categories": [
"readonly"
],
"request": {
"required": [],
"properties": {
Expand Down
3 changes: 3 additions & 0 deletions doc/schemas/lightning-listpays.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
"description": [
"The **listpay** RPC command gets the status of all *pay* commands, or a single one if either *bolt11* or *payment_hash* was specified."
],
"categories": [
"readonly"
],
"request": {
"required": [],
"properties": {
Expand Down
3 changes: 3 additions & 0 deletions doc/schemas/lightning-listpeerchannels.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
"",
"If no *id* is supplied, then channel data on all lightning nodes that are connected, or not connected but have open channels with this node, are returned."
],
"categories": [
"readonly"
],
"request": {
"required": [],
"properties": {
Expand Down
3 changes: 3 additions & 0 deletions doc/schemas/lightning-listpeers.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
"",
"The channel will remain open for a set blocktime, after which if the connection has not been re-established, the channel will close and the node will no longer appear in the command output."
],
"categories": [
"readonly"
],
"request": {
"required": [],
"properties": {
Expand Down
3 changes: 3 additions & 0 deletions doc/schemas/lightning-listsendpays.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
"",
"Note that there may be more than one concurrent *sendpay* command per *pay*, so this command should be used with caution."
],
"categories": [
"readonly"
],
"request": {
"required": [],
"properties": {
Expand Down
3 changes: 3 additions & 0 deletions doc/schemas/lightning-listsqlschemas.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
"",
"If *table* is given, only that table is in the resulting list, otherwise all tables are listed."
],
"categories": [
"readonly"
],
"request": {
"required": [],
"properties": {
Expand Down
3 changes: 3 additions & 0 deletions doc/schemas/lightning-listtransactions.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
"description": [
"The **listtransactions** command returns transactions tracked in the wallet. This includes deposits, withdrawals and transactions related to channels. A transaction may have multiple types, e.g., a transaction may both be a close and a deposit if it closes the channel and returns funds to the wallet."
],
"categories": [
"readonly"
],
"request": {
"required": [],
"properties": {}
Expand Down

0 comments on commit ef0ca16

Please sign in to comment.