lnrpc: update grpc-gateway library to v2

This commit is contained in:
Oliver Gugger committed 2021-07-27 13:09:59 +02:00
1 parent 76e1223bf2
commit dd749fe580
70 files changed
+8799 -8287

No files matched your search

+53 -81
View File
@@ -4,6 +4,11 @@
"title": "routerrpc/router.proto",
"version": "version not set"
},
"tags": [
{
"name": "Router"
}
],
"consumes": [
"application/json"
],
@@ -14,7 +19,7 @@
"/v2/router/htlcevents": {
"get": {
"summary": "SubscribeHtlcEvents creates a uni-directional stream from the server to\nthe client which delivers a stream of htlc events.",
"operationId": "SubscribeHtlcEvents",
"operationId": "Router_SubscribeHtlcEvents",
"responses": {
"200": {
"description": "A successful response.(streaming responses)",
@@ -25,16 +30,16 @@
"$ref": "#/definitions/routerrpcHtlcEvent"
},
"error": {
"$ref": "#/definitions/runtimeStreamError"
"$ref": "#/definitions/rpcStatus"
}
},
"title": "Stream result of routerrpcHtlcEvent"
}
},
"default": {
"description": "An unexpected error response",
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/runtimeError"
"$ref": "#/definitions/rpcStatus"
}
}
},
@@ -46,7 +51,7 @@
"/v2/router/htlcinterceptor": {
"post": {
"summary": "*\nHtlcInterceptor dispatches a bi-directional streaming RPC in which\nForwarded HTLC requests are sent to the client and the client responds with\na boolean that tells LND if this htlc should be intercepted.\nIn case of interception, the htlc can be either settled, cancelled or\nresumed later by using the ResolveHoldForward endpoint.",
"operationId": "HtlcInterceptor",
"operationId": "Router_HtlcInterceptor",
"responses": {
"200": {
"description": "A successful response.(streaming responses)",
@@ -57,16 +62,16 @@
"$ref": "#/definitions/routerrpcForwardHtlcInterceptRequest"
},
"error": {
"$ref": "#/definitions/runtimeStreamError"
"$ref": "#/definitions/rpcStatus"
}
},
"title": "Stream result of routerrpcForwardHtlcInterceptRequest"
}
},
"default": {
"description": "An unexpected error response",
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/runtimeError"
"$ref": "#/definitions/rpcStatus"
}
}
},
@@ -89,7 +94,7 @@
"/v2/router/mc": {
"get": {
"summary": "QueryMissionControl exposes the internal mission control state to callers.\nIt is a development feature.",
"operationId": "QueryMissionControl",
"operationId": "Router_QueryMissionControl",
"responses": {
"200": {
"description": "A successful response.",
@@ -98,9 +103,9 @@
}
},
"default": {
"description": "An unexpected error response",
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/runtimeError"
"$ref": "#/definitions/rpcStatus"
}
}
},
@@ -112,7 +117,7 @@
"/v2/router/mc/probability/{from_node}/{to_node}/{amt_msat}": {
"get": {
"summary": "QueryProbability returns the current success probability estimate for a\ngiven node pair and amount.",
"operationId": "QueryProbability",
"operationId": "Router_QueryProbability",
"responses": {
"200": {
"description": "A successful response.",
@@ -121,9 +126,9 @@
}
},
"default": {
"description": "An unexpected error response",
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/runtimeError"
"$ref": "#/definitions/rpcStatus"
}
}
},
@@ -161,7 +166,7 @@
"/v2/router/mc/reset": {
"post": {
"summary": "ResetMissionControl clears all mission control state and starts with a clean\nslate.",
"operationId": "ResetMissionControl",
"operationId": "Router_ResetMissionControl",
"responses": {
"200": {
"description": "A successful response.",
@@ -170,9 +175,9 @@
}
},
"default": {
"description": "An unexpected error response",
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/runtimeError"
"$ref": "#/definitions/rpcStatus"
}
}
},
@@ -194,7 +199,7 @@
"/v2/router/mccfg": {
"get": {
"summary": "GetMissionControlConfig returns mission control's current config.",
"operationId": "GetMissionControlConfig",
"operationId": "Router_GetMissionControlConfig",
"responses": {
"200": {
"description": "A successful response.",
@@ -203,9 +208,9 @@
}
},
"default": {
"description": "An unexpected error response",
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/runtimeError"
"$ref": "#/definitions/rpcStatus"
}
}
},
@@ -215,7 +220,7 @@
},
"post": {
"summary": "SetMissionControlConfig will set mission control's config, if the config\nprovided is valid.",
"operationId": "SetMissionControlConfig",
"operationId": "Router_SetMissionControlConfig",
"responses": {
"200": {
"description": "A successful response.",
@@ -224,9 +229,9 @@
}
},
"default": {
"description": "An unexpected error response",
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/runtimeError"
"$ref": "#/definitions/rpcStatus"
}
}
},
@@ -248,7 +253,7 @@
"/v2/router/route": {
"post": {
"summary": "BuildRoute builds a fully specified route based on a list of hop public\nkeys. It retrieves the relevant channel policies from the graph in order to\ncalculate the correct fees and time locks.",
"operationId": "BuildRoute",
"operationId": "Router_BuildRoute",
"responses": {
"200": {
"description": "A successful response.",
@@ -257,9 +262,9 @@
}
},
"default": {
"description": "An unexpected error response",
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/runtimeError"
"$ref": "#/definitions/rpcStatus"
}
}
},
@@ -281,7 +286,7 @@
"/v2/router/route/estimatefee": {
"post": {
"summary": "EstimateRouteFee allows callers to obtain a lower bound w.r.t how much it\nmay cost to send an HTLC to the target end destination.",
"operationId": "EstimateRouteFee",
"operationId": "Router_EstimateRouteFee",
"responses": {
"200": {
"description": "A successful response.",
@@ -290,9 +295,9 @@
}
},
"default": {
"description": "An unexpected error response",
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/runtimeError"
"$ref": "#/definitions/rpcStatus"
}
}
},
@@ -314,7 +319,7 @@
"/v2/router/route/send": {
"post": {
"summary": "SendToRouteV2 attempts to make a payment via the specified route. This\nmethod differs from SendPayment in that it allows users to specify a full\nroute manually. This can be used for things like rebalancing, and atomic\nswaps.",
"operationId": "SendToRouteV2",
"operationId": "Router_SendToRouteV2",
"responses": {
"200": {
"description": "A successful response.",
@@ -323,9 +328,9 @@
}
},
"default": {
"description": "An unexpected error response",
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/runtimeError"
"$ref": "#/definitions/rpcStatus"
}
}
},
@@ -347,7 +352,7 @@
"/v2/router/send": {
"post": {
"summary": "SendPaymentV2 attempts to route a payment described by the passed\nPaymentRequest to the final destination. The call returns a stream of\npayment updates.",
"operationId": "SendPaymentV2",
"operationId": "Router_SendPaymentV2",
"responses": {
"200": {
"description": "A successful response.(streaming responses)",
@@ -358,16 +363,16 @@
"$ref": "#/definitions/lnrpcPayment"
},
"error": {
"$ref": "#/definitions/runtimeStreamError"
"$ref": "#/definitions/rpcStatus"
}
},
"title": "Stream result of lnrpcPayment"
}
},
"default": {
"description": "An unexpected error response",
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/runtimeError"
"$ref": "#/definitions/rpcStatus"
}
}
},
@@ -389,7 +394,7 @@
"/v2/router/track/{payment_hash}": {
"get": {
"summary": "TrackPaymentV2 returns an update stream for the payment identified by the\npayment hash.",
"operationId": "TrackPaymentV2",
"operationId": "Router_TrackPaymentV2",
"responses": {
"200": {
"description": "A successful response.(streaming responses)",
@@ -400,16 +405,16 @@
"$ref": "#/definitions/lnrpcPayment"
},
"error": {
"$ref": "#/definitions/runtimeStreamError"
"$ref": "#/definitions/rpcStatus"
}
},
"title": "Stream result of lnrpcPayment"
}
},
"default": {
"description": "An unexpected error response",
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/runtimeError"
"$ref": "#/definitions/rpcStatus"
}
}
},
@@ -427,8 +432,7 @@
"description": "If set, only the final payment update is streamed back. Intermediate updates\nthat show which htlcs are still in flight are suppressed.",
"in": "query",
"required": false,
"type": "boolean",
"format": "boolean"
"type": "boolean"
}
],
"tags": [
@@ -439,7 +443,7 @@
"/v2/router/updatechanstatus": {
"post": {
"summary": "UpdateChanStatus attempts to manually set the state of a channel\n(enabled, disabled, or auto). A manual \"disable\" request will cause the\nchannel to stay disabled until a subsequent manual request of either\n\"enable\" or \"auto\".",
"operationId": "UpdateChanStatus",
"operationId": "Router_UpdateChanStatus",
"responses": {
"200": {
"description": "A successful response.",
@@ -448,9 +452,9 @@
}
},
"default": {
"description": "An unexpected error response",
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/runtimeError"
"$ref": "#/definitions/rpcStatus"
}
}
},
@@ -472,7 +476,7 @@
"/v2/router/x/importhistory": {
"post": {
"summary": "XImportMissionControl is an experimental API that imports the state provided\nto the internal mission control's state, using all results which are more\nrecent than our existing values. These values will only be imported\nin-memory, and will not be persisted across restarts.",
"operationId": "XImportMissionControl",
"operationId": "Router_XImportMissionControl",
"responses": {
"200": {
"description": "A successful response.",
@@ -481,9 +485,9 @@
}
},
"default": {
"description": "An unexpected error response",
"description": "An unexpected error response.",
"schema": {
"$ref": "#/definitions/runtimeError"
"$ref": "#/definitions/rpcStatus"
}
}
},
@@ -798,7 +802,6 @@
},
"tlv_payload": {
"type": "boolean",
"format": "boolean",
"description": "If set to true, then this hop will be encoded using the new variable length\nTLV format. Note that if any custom tlv_records below are specified, then\nthis field MUST be set to true for them to be encoded properly."
},
"mpp_record": {
@@ -1597,7 +1600,6 @@
},
"allow_self_payment": {
"type": "boolean",
"format": "boolean",
"description": "If set, circular payments to self are permitted."
},
"dest_features": {
@@ -1614,7 +1616,6 @@
},
"no_inflight_updates": {
"type": "boolean",
"format": "boolean",
"description": "If set, only the final payment update is streamed back. Intermediate updates\nthat show which htlcs are still in flight are suppressed."
},
"max_shard_size_msat": {
@@ -1624,7 +1625,6 @@
},
"amp": {
"type": "boolean",
"format": "boolean",
"description": "If set, an AMP-payment will be attempted."
}
}
@@ -1708,12 +1708,9 @@
"routerrpcXImportMissionControlResponse": {
"type": "object"
},
"runtimeError": {
"rpcStatus": {
"type": "object",
"properties": {
"error": {
"type": "string"
},
"code": {
"type": "integer",
"format": "int32"
@@ -1728,31 +1725,6 @@
}
}
}
},
"runtimeStreamError": {
"type": "object",
"properties": {
"grpc_code": {
"type": "integer",
"format": "int32"
},
"http_code": {
"type": "integer",
"format": "int32"
},
"message": {
"type": "string"
},
"http_status": {
"type": "string"
},
"details": {
"type": "array",
"items": {
"$ref": "#/definitions/protobufAny"
}
}
}
}
}
}