// @generated by protoc-gen-es v2.11.0 with parameter "target=ts" // @generated from file routerrpc/router.proto (package routerrpc, syntax proto3) /* eslint-disable */ import type { GenEnum, GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv2"; import { enumDesc, fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv2"; import type { AliasMap, ChannelPoint, Failure_FailureCode, FeatureBit, HTLCAttemptSchema, PaymentFailureReason, PaymentSchema, Route, RouteHint } from "../lightning_pb"; import { file_lightning } from "../lightning_pb"; import type { Message } from "@bufbuild/protobuf"; /** * Describes the file routerrpc/router.proto. */ export const file_routerrpc_router: GenFile = /*@__PURE__*/ fileDesc("ChZyb3V0ZXJycGMvcm91dGVyLnByb3RvEglyb3V0ZXJycGMiywYKElNlbmRQYXltZW50UmVxdWVzdBIMCgRkZXN0GAEgASgMEgsKA2FtdBgCIAEoAxIUCgxwYXltZW50X2hhc2gYAyABKAwSGAoQZmluYWxfY2x0dl9kZWx0YRgEIAEoBRIXCg9wYXltZW50X3JlcXVlc3QYBSABKAkSFwoPdGltZW91dF9zZWNvbmRzGAYgASgFEhUKDWZlZV9saW1pdF9zYXQYByABKAMSEgoKY2x0dl9saW1pdBgJIAEoBRIlCgtyb3V0ZV9oaW50cxgKIAMoCzIQLmxucnBjLlJvdXRlSGludBJRChNkZXN0X2N1c3RvbV9yZWNvcmRzGAsgAygLMjQucm91dGVycnBjLlNlbmRQYXltZW50UmVxdWVzdC5EZXN0Q3VzdG9tUmVjb3Jkc0VudHJ5EhAKCGFtdF9tc2F0GAwgASgDEhYKDmZlZV9saW1pdF9tc2F0GA0gASgDEhcKD2xhc3RfaG9wX3B1YmtleRgOIAEoDBIaChJhbGxvd19zZWxmX3BheW1lbnQYDyABKAgSKAoNZGVzdF9mZWF0dXJlcxgQIAMoDjIRLmxucnBjLkZlYXR1cmVCaXQSEQoJbWF4X3BhcnRzGBEgASgNEhsKE25vX2luZmxpZ2h0X3VwZGF0ZXMYEiABKAgSGQoRb3V0Z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3V0ZXJycGMuRmluZEJhc2VBbGlhc1JlcXVlc3QaIC5yb3V0ZXJycGMuRmluZEJhc2VBbGlhc1Jlc3BvbnNlEnAKF0RlbGV0ZUZvcndhcmRpbmdIaXN0b3J5Eikucm91dGVycnBjLkRlbGV0ZUZvcndhcmRpbmdIaXN0b3J5UmVxdWVzdBoqLnJvdXRlcnJwYy5EZWxldGVGb3J3YXJkaW5nSGlzdG9yeVJlc3BvbnNlQjFaL2dpdGh1Yi5jb20vbGlnaHRuaW5nbmV0d29yay9sbmQvbG5ycGMvcm91dGVycnBjYgZwcm90bzM", [file_lightning]); /** * @generated from message routerrpc.SendPaymentRequest */ export type SendPaymentRequest = Message<"routerrpc.SendPaymentRequest"> & { /** * The identity pubkey of the payment recipient * * @generated from field: bytes dest = 1; */ dest: Uint8Array; /** * * Number of satoshis to send. * * The fields amt and amt_msat are mutually exclusive. * * @generated from field: int64 amt = 2; */ amt: bigint; /** * The hash to use within the payment's HTLC * * @generated from field: bytes payment_hash = 3; */ paymentHash: Uint8Array; /** * * The CLTV delta from the current height that should be used to set the * timelock for the final hop. * * @generated from field: int32 final_cltv_delta = 4; */ finalCltvDelta: number; /** * * A bare-bones invoice for a payment within the Lightning Network. With the * details of the invoice, the sender has all the data necessary to send a * payment to the recipient. The amount in the payment request may be zero. In * that case it is required to set the amt field as well. If no payment request * is specified, the following fields are required: dest, amt and payment_hash. * * @generated from field: string payment_request = 5; */ paymentRequest: string; /** * * An optional limit, expressed in seconds, on the time to wait before * attempting the first HTLC. Once HTLCs are in flight, the payment will * not be aborted until the HTLCs are either settled or failed. If the field * is not set or is explicitly set to zero, the default value of 60 seconds * will be applied. * * @generated from field: int32 timeout_seconds = 6; */ timeoutSeconds: number; /** * * The maximum number of satoshis that will be paid as a fee of the payment. * If this field is left to the default value of 0, only zero-fee routes will * be considered. This usually means single hop routes connecting directly to * the destination. To send the payment without a fee limit, use max int here. * * The fields fee_limit_sat and fee_limit_msat are mutually exclusive. * * @generated from field: int64 fee_limit_sat = 7; */ feeLimitSat: bigint; /** * * An optional maximum total time lock for the route. This should not * exceed lnd's `--max-cltv-expiry` setting. If zero, then the value of * `--max-cltv-expiry` is enforced. * * @generated from field: int32 cltv_limit = 9; */ cltvLimit: number; /** * * Optional route hints to reach the destination through private channels. * * @generated from field: repeated lnrpc.RouteHint route_hints = 10; */ routeHints: RouteHint[]; /** * * An optional field that can be used to pass an arbitrary set of TLV records * to a peer which understands the new records. This can be used to pass * application specific data during the payment attempt. Record types are * required to be in the custom range >= 65536. When using REST, the values * must be encoded as base64. * * @generated from field: map dest_custom_records = 11; */ destCustomRecords: { [key: string]: Uint8Array }; /** * * Number of millisatoshis to send. * * The fields amt and amt_msat are mutually exclusive. * * @generated from field: int64 amt_msat = 12; */ amtMsat: bigint; /** * * The maximum number of millisatoshis that will be paid as a fee of the * payment. If this field is left to the default value of 0, only zero-fee * routes will be considered. This usually means single hop routes connecting * directly to the destination. To send the payment without a fee limit, use * max int here. * * The fields fee_limit_sat and fee_limit_msat are mutually exclusive. * * @generated from field: int64 fee_limit_msat = 13; */ feeLimitMsat: bigint; /** * * The pubkey of the last hop of the route. If empty, any hop may be used. * * @generated from field: bytes last_hop_pubkey = 14; */ lastHopPubkey: Uint8Array; /** * If set, circular payments to self are permitted. * * @generated from field: bool allow_self_payment = 15; */ allowSelfPayment: boolean; /** * * Features assumed to be supported by the final node. All transitive feature * dependencies must also be set properly. For a given feature bit pair, either * optional or remote may be set, but not both. If this field is nil or empty, * the router will try to load destination features from the graph as a * fallback. * * @generated from field: repeated lnrpc.FeatureBit dest_features = 16; */ destFeatures: FeatureBit[]; /** * * The maximum number of partial payments that may be use to complete the full * amount. * * @generated from field: uint32 max_parts = 17; */ maxParts: number; /** * * If set, only the final payment update is streamed back. Intermediate updates * that show which htlcs are still in flight are suppressed. * * @generated from field: bool no_inflight_updates = 18; */ noInflightUpdates: boolean; /** * * The channel ids of the channels are allowed for the first hop. If empty, * any channel may be used. * * @generated from field: repeated uint64 outgoing_chan_ids = 19; */ outgoingChanIds: bigint[]; /** * * An optional payment addr to be included within the last hop of the route. * This is also called payment secret in specifications (e.g. BOLT 11). * * @generated from field: bytes payment_addr = 20; */ paymentAddr: Uint8Array; /** * * The largest payment split that should be attempted when making a payment if * splitting is necessary. Setting this value will effectively cause lnd to * split more aggressively, vs only when it thinks it needs to. Note that this * value is in milli-satoshis. * * @generated from field: uint64 max_shard_size_msat = 21; */ maxShardSizeMsat: bigint; /** * * If set, an AMP-payment will be attempted. * * @generated from field: bool amp = 22; */ amp: boolean; /** * * The time preference for this payment. Set to -1 to optimize for fees * only, to 1 to optimize for reliability only or a value inbetween for a mix. * * @generated from field: double time_pref = 23; */ timePref: number; /** * * If set, the payment loop can be interrupted by manually canceling the * payment context, even before the payment timeout is reached. Note that the * payment may still succeed after cancellation, as in-flight attempts can * still settle afterwards. Canceling will only prevent further attempts from * being sent. * * @generated from field: bool cancelable = 24; */ cancelable: boolean; /** * * An optional field that can be used to pass an arbitrary set of TLV records * to the first hop peer of this payment. This can be used to pass application * specific data during the payment attempt. Record types are required to be in * the custom range >= 65536. When using REST, the values must be encoded as * base64. * * @generated from field: map first_hop_custom_records = 25; */ firstHopCustomRecords: { [key: string]: Uint8Array }; }; /** * Describes the message routerrpc.SendPaymentRequest. * Use `create(SendPaymentRequestSchema)` to create a new message. */ export const SendPaymentRequestSchema: GenMessage = /*@__PURE__*/ messageDesc(file_routerrpc_router, 0); /** * @generated from message routerrpc.TrackPaymentRequest */ export type TrackPaymentRequest = Message<"routerrpc.TrackPaymentRequest"> & { /** * The hash of the payment to look up. * * @generated from field: bytes payment_hash = 1; */ paymentHash: Uint8Array; /** * * If set, only the final payment update is streamed back. Intermediate updates * that show which htlcs are still in flight are suppressed. * * @generated from field: bool no_inflight_updates = 2; */ noInflightUpdates: boolean; }; /** * Describes the message routerrpc.TrackPaymentRequest. * Use `create(TrackPaymentRequestSchema)` to create a new message. */ export const TrackPaymentRequestSchema: GenMessage = /*@__PURE__*/ messageDesc(file_routerrpc_router, 1); /** * @generated from message routerrpc.TrackPaymentsRequest */ export type TrackPaymentsRequest = Message<"routerrpc.TrackPaymentsRequest"> & { /** * * If set, only the final payment updates are streamed back. Intermediate * updates that show which htlcs are still in flight are suppressed. * * @generated from field: bool no_inflight_updates = 1; */ noInflightUpdates: boolean; }; /** * Describes the message routerrpc.TrackPaymentsRequest. * Use `create(TrackPaymentsRequestSchema)` to create a new message. */ export const TrackPaymentsRequestSchema: GenMessage = /*@__PURE__*/ messageDesc(file_routerrpc_router, 2); /** * @generated from message routerrpc.RouteFeeRequest */ export type RouteFeeRequest = Message<"routerrpc.RouteFeeRequest"> & { /** * * The destination one wishes to obtain a routing fee quote to. If set, this * parameter requires the amt_sat parameter also to be set. This parameter * combination triggers a graph based routing fee estimation as opposed to a * payment probe based estimate in case a payment request is provided. The * graph based estimation is an algorithm that is executed on the in memory * graph. Hence its runtime is significantly shorter than a payment probe * estimation that sends out actual payments to the network. * * @generated from field: bytes dest = 1; */ dest: Uint8Array; /** * * The amount one wishes to send to the target destination. It is only to be * used in combination with the dest parameter. * * @generated from field: int64 amt_sat = 2; */ amtSat: bigint; /** * * A payment request of the target node that the route fee request is intended * for. Its parameters are input to probe payments that estimate routing fees. * The timeout parameter can be specified to set a maximum time on the probing * attempt. Cannot be used in combination with dest and amt_sat. * * @generated from field: string payment_request = 3; */ paymentRequest: string; /** * * A user preference of how long a probe payment should maximally be allowed to * take, denoted in seconds. The probing payment loop is aborted if this * timeout is reached. Note that the probing process itself can take longer * than the timeout if the HTLC becomes delayed or stuck. Canceling the context * of this call will not cancel the payment loop, the duration is only * controlled by the timeout parameter. * * @generated from field: uint32 timeout = 4; */ timeout: number; }; /** * Describes the message routerrpc.RouteFeeRequest. * Use `create(RouteFeeRequestSchema)` to create a new message. */ export const RouteFeeRequestSchema: GenMessage = /*@__PURE__*/ messageDesc(file_routerrpc_router, 3); /** * @generated from message routerrpc.RouteFeeResponse */ export type RouteFeeResponse = Message<"routerrpc.RouteFeeResponse"> & { /** * * A lower bound of the estimated fee to the target destination within the * network, expressed in milli-satoshis. * * @generated from field: int64 routing_fee_msat = 1; */ routingFeeMsat: bigint; /** * * An estimate of the worst case time delay that can occur. Note that callers * will still need to factor in the final CLTV delta of the last hop into this * value. * * @generated from field: int64 time_lock_delay = 2; */ timeLockDelay: bigint; /** * * An indication whether a probing payment succeeded or whether and why it * failed. FAILURE_REASON_NONE indicates success. * * @generated from field: lnrpc.PaymentFailureReason failure_reason = 5; */ failureReason: PaymentFailureReason; }; /** * Describes the message routerrpc.RouteFeeResponse. * Use `create(RouteFeeResponseSchema)` to create a new message. */ export const RouteFeeResponseSchema: GenMessage = /*@__PURE__*/ messageDesc(file_routerrpc_router, 4); /** * @generated from message routerrpc.SendToRouteRequest */ export type SendToRouteRequest = Message<"routerrpc.SendToRouteRequest"> & { /** * The payment hash to use for the HTLC. * * @generated from field: bytes payment_hash = 1; */ paymentHash: Uint8Array; /** * Route that should be used to attempt to complete the payment. * * @generated from field: lnrpc.Route route = 2; */ route?: Route; /** * * Whether the payment should be marked as failed when a temporary error is * returned from the given route. Set it to true so the payment won't be * failed unless a terminal error is occurred, such as payment timeout, no * routes, incorrect payment details, or insufficient funds. * * @generated from field: bool skip_temp_err = 3; */ skipTempErr: boolean; /** * * An optional field that can be used to pass an arbitrary set of TLV records * to the first hop peer of this payment. This can be used to pass application * specific data during the payment attempt. Record types are required to be in * the custom range >= 65536. When using REST, the values must be encoded as * base64. * * @generated from field: map first_hop_custom_records = 4; */ firstHopCustomRecords: { [key: string]: Uint8Array }; }; /** * Describes the message routerrpc.SendToRouteRequest. * Use `create(SendToRouteRequestSchema)` to create a new message. */ export const SendToRouteRequestSchema: GenMessage = /*@__PURE__*/ messageDesc(file_routerrpc_router, 5); /** * @generated from message routerrpc.ResetMissionControlRequest */ export type ResetMissionControlRequest = Message<"routerrpc.ResetMissionControlRequest"> & { }; /** * Describes the message routerrpc.ResetMissionControlRequest. * Use `create(ResetMissionControlRequestSchema)` to create a new message. */ export const ResetMissionControlRequestSchema: GenMessage = /*@__PURE__*/ messageDesc(file_routerrpc_router, 6); /** * @generated from message routerrpc.ResetMissionControlResponse */ export type ResetMissionControlResponse = Message<"routerrpc.ResetMissionControlResponse"> & { }; /** * Describes the message routerrpc.ResetMissionControlResponse. * Use `create(ResetMissionControlResponseSchema)` to create a new message. */ export const ResetMissionControlResponseSchema: GenMessage = /*@__PURE__*/ messageDesc(file_routerrpc_router, 7); /** * @generated from message routerrpc.QueryMissionControlRequest */ export type QueryMissionControlRequest = Message<"routerrpc.QueryMissionControlRequest"> & { }; /** * Describes the message routerrpc.QueryMissionControlRequest. * Use `create(QueryMissionControlRequestSchema)` to create a new message. */ export const QueryMissionControlRequestSchema: GenMessage = /*@__PURE__*/ messageDesc(file_routerrpc_router, 8); /** * QueryMissionControlResponse contains mission control state. * * @generated from message routerrpc.QueryMissionControlResponse */ export type QueryMissionControlResponse = Message<"routerrpc.QueryMissionControlResponse"> & { /** * Node pair-level mission control state. * * @generated from field: repeated routerrpc.PairHistory pairs = 2; */ pairs: PairHistory[]; }; /** * Describes the message routerrpc.QueryMissionControlResponse. * Use `create(QueryMissionControlResponseSchema)` to create a new message. */ export const QueryMissionControlResponseSchema: GenMessage = /*@__PURE__*/ messageDesc(file_routerrpc_router, 9); /** * @generated from message routerrpc.XImportMissionControlRequest */ export type XImportMissionControlRequest = Message<"routerrpc.XImportMissionControlRequest"> & { /** * Node pair-level mission control state to be imported. * * @generated from field: repeated routerrpc.PairHistory pairs = 1; */ pairs: PairHistory[]; /** * Whether to force override MC pair history. Note that even with force * override the failure pair is imported before the success pair and both * still clamp existing failure/success amounts. * * @generated from field: bool force = 2; */ force: boolean; }; /** * Describes the message routerrpc.XImportMissionControlRequest. * Use `create(XImportMissionControlRequestSchema)` to create a new message. */ export const XImportMissionControlRequestSchema: GenMessage = /*@__PURE__*/ messageDesc(file_routerrpc_router, 10); /** * @generated from message routerrpc.XImportMissionControlResponse */ export type XImportMissionControlResponse = Message<"routerrpc.XImportMissionControlResponse"> & { }; /** * Describes the message routerrpc.XImportMissionControlResponse. * Use `create(XImportMissionControlResponseSchema)` to create a new message. */ export const XImportMissionControlResponseSchema: GenMessage = /*@__PURE__*/ messageDesc(file_routerrpc_router, 11); /** * PairHistory contains the mission control state for a particular node pair. * * @generated from message routerrpc.PairHistory */ export type PairHistory = Message<"routerrpc.PairHistory"> & { /** * The source node pubkey of the pair. * * @generated from field: bytes node_from = 1; */ nodeFrom: Uint8Array; /** * The destination node pubkey of the pair. * * @generated from field: bytes node_to = 2; */ nodeTo: Uint8Array; /** * @generated from field: routerrpc.PairData history = 7; */ history?: PairData; }; /** * Describes the message routerrpc.PairHistory. * Use `create(PairHistorySchema)` to create a new message. */ export const PairHistorySchema: GenMessage = /*@__PURE__*/ messageDesc(file_routerrpc_router, 12); /** * @generated from message routerrpc.PairData */ export type PairData = Message<"routerrpc.PairData"> & { /** * Time of last failure. * * @generated from field: int64 fail_time = 1; */ failTime: bigint; /** * * Lowest amount that failed to forward rounded to whole sats. This may be * set to zero if the failure is independent of amount. * * @generated from field: int64 fail_amt_sat = 2; */ failAmtSat: bigint; /** * * Lowest amount that failed to forward in millisats. This may be * set to zero if the failure is independent of amount. * * @generated from field: int64 fail_amt_msat = 4; */ failAmtMsat: bigint; /** * Time of last success. * * @generated from field: int64 success_time = 5; */ successTime: bigint; /** * Highest amount that we could successfully forward rounded to whole sats. * * @generated from field: int64 success_amt_sat = 6; */ successAmtSat: bigint; /** * Highest amount that we could successfully forward in millisats. * * @generated from field: int64 success_amt_msat = 7; */ successAmtMsat: bigint; }; /** * Describes the message routerrpc.PairData. * Use `create(PairDataSchema)` to create a new message. */ export const PairDataSchema: GenMessage = /*@__PURE__*/ messageDesc(file_routerrpc_router, 13); /** * @generated from message routerrpc.GetMissionControlConfigRequest */ export type GetMissionControlConfigRequest = Message<"routerrpc.GetMissionControlConfigRequest"> & { }; /** * Describes the message routerrpc.GetMissionControlConfigRequest. * Use `create(GetMissionControlConfigRequestSchema)` to create a new message. */ export const GetMissionControlConfigRequestSchema: GenMessage = /*@__PURE__*/ messageDesc(file_routerrpc_router, 14); /** * @generated from message routerrpc.GetMissionControlConfigResponse */ export type GetMissionControlConfigResponse = Message<"routerrpc.GetMissionControlConfigResponse"> & { /** * * Mission control's currently active config. * * @generated from field: routerrpc.MissionControlConfig config = 1; */ config?: MissionControlConfig; }; /** * Describes the message routerrpc.GetMissionControlConfigResponse. * Use `create(GetMissionControlConfigResponseSchema)` to create a new message. */ export const GetMissionControlConfigResponseSchema: GenMessage = /*@__PURE__*/ messageDesc(file_routerrpc_router, 15); /** * @generated from message routerrpc.SetMissionControlConfigRequest */ export type SetMissionControlConfigRequest = Message<"routerrpc.SetMissionControlConfigRequest"> & { /** * * The config to set for mission control. Note that all values *must* be set, * because the full config will be applied. * * @generated from field: routerrpc.MissionControlConfig config = 1; */ config?: MissionControlConfig; }; /** * Describes the message routerrpc.SetMissionControlConfigRequest. * Use `create(SetMissionControlConfigRequestSchema)` to create a new message. */ export const SetMissionControlConfigRequestSchema: GenMessage = /*@__PURE__*/ messageDesc(file_routerrpc_router, 16); /** * @generated from message routerrpc.SetMissionControlConfigResponse */ export type SetMissionControlConfigResponse = Message<"routerrpc.SetMissionControlConfigResponse"> & { }; /** * Describes the message routerrpc.SetMissionControlConfigResponse. * Use `create(SetMissionControlConfigResponseSchema)` to create a new message. */ export const SetMissionControlConfigResponseSchema: GenMessage = /*@__PURE__*/ messageDesc(file_routerrpc_router, 17); /** * @generated from message routerrpc.MissionControlConfig */ export type MissionControlConfig = Message<"routerrpc.MissionControlConfig"> & { /** * * Deprecated, use AprioriParameters. The amount of time mission control will * take to restore a penalized node or channel back to 50% success probability, * expressed in seconds. Setting this value to a higher value will penalize * failures for longer, making mission control less likely to route through * nodes and channels that we have previously recorded failures for. * * @generated from field: uint64 half_life_seconds = 1 [deprecated = true]; * @deprecated */ halfLifeSeconds: bigint; /** * * Deprecated, use AprioriParameters. The probability of success mission * control should assign to hop in a route where it has no other information * available. Higher values will make mission control more willing to try hops * that we have no information about, lower values will discourage trying these * hops. * * @generated from field: float hop_probability = 2 [deprecated = true]; * @deprecated */ hopProbability: number; /** * * Deprecated, use AprioriParameters. The importance that mission control * should place on historical results, expressed as a value in [0;1]. Setting * this value to 1 will ignore all historical payments and just use the hop * probability to assess the probability of success for each hop. A zero value * ignores hop probability completely and relies entirely on historical * results, unless none are available. * * @generated from field: float weight = 3 [deprecated = true]; * @deprecated */ weight: number; /** * * The maximum number of payment results that mission control will store. * * @generated from field: uint32 maximum_payment_results = 4; */ maximumPaymentResults: number; /** * * The minimum time that must have passed since the previously recorded failure * before we raise the failure amount. * * @generated from field: uint64 minimum_failure_relax_interval = 5; */ minimumFailureRelaxInterval: bigint; /** * * ProbabilityModel defines which probability estimator should be used in * pathfinding. Note that the bimodal estimator is experimental. * * @generated from field: routerrpc.MissionControlConfig.ProbabilityModel model = 6; */ model: MissionControlConfig_ProbabilityModel; /** * * EstimatorConfig is populated dependent on the estimator type. * * @generated from oneof routerrpc.MissionControlConfig.EstimatorConfig */ EstimatorConfig: { /** * @generated from field: routerrpc.AprioriParameters apriori = 7; */ value: AprioriParameters; case: "apriori"; } | { /** * @generated from field: routerrpc.BimodalParameters bimodal = 8; */ value: BimodalParameters; case: "bimodal"; } | { case: undefined; value?: undefined }; }; /** * Describes the message routerrpc.MissionControlConfig. * Use `create(MissionControlConfigSchema)` to create a new message. */ export const MissionControlConfigSchema: GenMessage = /*@__PURE__*/ messageDesc(file_routerrpc_router, 18); /** * @generated from enum routerrpc.MissionControlConfig.ProbabilityModel */ export enum MissionControlConfig_ProbabilityModel { /** * @generated from enum value: APRIORI = 0; */ APRIORI = 0, /** * @generated from enum value: BIMODAL = 1; */ BIMODAL = 1, } /** * Describes the enum routerrpc.MissionControlConfig.ProbabilityModel. */ export const MissionControlConfig_ProbabilityModelSchema: GenEnum = /*@__PURE__*/ enumDesc(file_routerrpc_router, 18, 0); /** * @generated from message routerrpc.BimodalParameters */ export type BimodalParameters = Message<"routerrpc.BimodalParameters"> & { /** * * NodeWeight defines how strongly other previous forwardings on channels of a * router should be taken into account when computing a channel's probability * to route. The allowed values are in the range [0, 1], where a value of 0 * means that only direct information about a channel is taken into account. * * @generated from field: double node_weight = 1; */ nodeWeight: number; /** * * ScaleMsat describes the scale over which channels statistically have some * liquidity left. The value determines how quickly the bimodal distribution * drops off from the edges of a channel. A larger value (compared to typical * channel capacities) means that the drop off is slow and that channel * balances are distributed more uniformly. A small value leads to the * assumption of very unbalanced channels. * * @generated from field: uint64 scale_msat = 2; */ scaleMsat: bigint; /** * * DecayTime describes the information decay of knowledge about previous * successes and failures in channels. The smaller the decay time, the quicker * we forget about past forwardings. * * @generated from field: uint64 decay_time = 3; */ decayTime: bigint; }; /** * Describes the message routerrpc.BimodalParameters. * Use `create(BimodalParametersSchema)` to create a new message. */ export const BimodalParametersSchema: GenMessage = /*@__PURE__*/ messageDesc(file_routerrpc_router, 19); /** * @generated from message routerrpc.AprioriParameters */ export type AprioriParameters = Message<"routerrpc.AprioriParameters"> & { /** * * The amount of time mission control will take to restore a penalized node * or channel back to 50% success probability, expressed in seconds. Setting * this value to a higher value will penalize failures for longer, making * mission control less likely to route through nodes and channels that we * have previously recorded failures for. * * @generated from field: uint64 half_life_seconds = 1; */ halfLifeSeconds: bigint; /** * * The probability of success mission control should assign to hop in a route * where it has no other information available. Higher values will make mission * control more willing to try hops that we have no information about, lower * values will discourage trying these hops. * * @generated from field: double hop_probability = 2; */ hopProbability: number; /** * * The importance that mission control should place on historical results, * expressed as a value in [0;1]. Setting this value to 1 will ignore all * historical payments and just use the hop probability to assess the * probability of success for each hop. A zero value ignores hop probability * completely and relies entirely on historical results, unless none are * available. * * @generated from field: double weight = 3; */ weight: number; /** * * The fraction of a channel's capacity that we consider to have liquidity. For * amounts that come close to or exceed the fraction, an additional penalty is * applied. A value of 1.0 disables the capacity factor. Allowed values are in * [0.75, 1.0]. * * @generated from field: double capacity_fraction = 4; */ capacityFraction: number; }; /** * Describes the message routerrpc.AprioriParameters. * Use `create(AprioriParametersSchema)` to create a new message. */ export const AprioriParametersSchema: GenMessage = /*@__PURE__*/ messageDesc(file_routerrpc_router, 20); /** * @generated from message routerrpc.QueryProbabilityRequest */ export type QueryProbabilityRequest = Message<"routerrpc.QueryProbabilityRequest"> & { /** * The source node pubkey of the pair. * * @generated from field: bytes from_node = 1; */ fromNode: Uint8Array; /** * The destination node pubkey of the pair. * * @generated from field: bytes to_node = 2; */ toNode: Uint8Array; /** * The amount for which to calculate a probability. * * @generated from field: int64 amt_msat = 3; */ amtMsat: bigint; }; /** * Describes the message routerrpc.QueryProbabilityRequest. * Use `create(QueryProbabilityRequestSchema)` to create a new message. */ export const QueryProbabilityRequestSchema: GenMessage = /*@__PURE__*/ messageDesc(file_routerrpc_router, 21); /** * @generated from message routerrpc.QueryProbabilityResponse */ export type QueryProbabilityResponse = Message<"routerrpc.QueryProbabilityResponse"> & { /** * The success probability for the requested pair. * * @generated from field: double probability = 1; */ probability: number; /** * The historical data for the requested pair. * * @generated from field: routerrpc.PairData history = 2; */ history?: PairData; }; /** * Describes the message routerrpc.QueryProbabilityResponse. * Use `create(QueryProbabilityResponseSchema)` to create a new message. */ export const QueryProbabilityResponseSchema: GenMessage = /*@__PURE__*/ messageDesc(file_routerrpc_router, 22); /** * @generated from message routerrpc.BuildRouteRequest */ export type BuildRouteRequest = Message<"routerrpc.BuildRouteRequest"> & { /** * * The amount to send expressed in msat. If set to zero, the minimum routable * amount is used. * * @generated from field: int64 amt_msat = 1; */ amtMsat: bigint; /** * * CLTV delta from the current height that should be used for the timelock * of the final hop * * @generated from field: int32 final_cltv_delta = 2; */ finalCltvDelta: number; /** * * The channel id of the channel that must be taken to the first hop. If zero, * any channel may be used. * * @generated from field: uint64 outgoing_chan_id = 3 [jstype = JS_STRING]; */ outgoingChanId: string; /** * * A list of hops that defines the route. This does not include the source hop * pubkey. * * @generated from field: repeated bytes hop_pubkeys = 4; */ hopPubkeys: Uint8Array[]; /** * * An optional payment addr to be included within the last hop of the route. * This is also called payment secret in specifications (e.g. BOLT 11). * * @generated from field: bytes payment_addr = 5; */ paymentAddr: Uint8Array; /** * * An optional field that can be used to pass an arbitrary set of TLV records * to the first hop peer of this payment. This can be used to pass application * specific data during the payment attempt. Record types are required to be in * the custom range >= 65536. When using REST, the values must be encoded as * base64. * * @generated from field: map first_hop_custom_records = 6; */ firstHopCustomRecords: { [key: string]: Uint8Array }; }; /** * Describes the message routerrpc.BuildRouteRequest. * Use `create(BuildRouteRequestSchema)` to create a new message. */ export const BuildRouteRequestSchema: GenMessage = /*@__PURE__*/ messageDesc(file_routerrpc_router, 23); /** * @generated from message routerrpc.BuildRouteResponse */ export type BuildRouteResponse = Message<"routerrpc.BuildRouteResponse"> & { /** * * Fully specified route that can be used to execute the payment. * * @generated from field: lnrpc.Route route = 1; */ route?: Route; }; /** * Describes the message routerrpc.BuildRouteResponse. * Use `create(BuildRouteResponseSchema)` to create a new message. */ export const BuildRouteResponseSchema: GenMessage = /*@__PURE__*/ messageDesc(file_routerrpc_router, 24); /** * @generated from message routerrpc.SubscribeHtlcEventsRequest */ export type SubscribeHtlcEventsRequest = Message<"routerrpc.SubscribeHtlcEventsRequest"> & { }; /** * Describes the message routerrpc.SubscribeHtlcEventsRequest. * Use `create(SubscribeHtlcEventsRequestSchema)` to create a new message. */ export const SubscribeHtlcEventsRequestSchema: GenMessage = /*@__PURE__*/ messageDesc(file_routerrpc_router, 25); /** * * HtlcEvent contains the htlc event that was processed. These are served on a * best-effort basis; events are not persisted, delivery is not guaranteed * (in the event of a crash in the switch, forward events may be lost) and * some events may be replayed upon restart. Events consumed from this package * should be de-duplicated by the htlc's unique combination of incoming and * outgoing channel id and htlc id. [EXPERIMENTAL] * * @generated from message routerrpc.HtlcEvent */ export type HtlcEvent = Message<"routerrpc.HtlcEvent"> & { /** * * The short channel id that the incoming htlc arrived at our node on. This * value is zero for sends. * * @generated from field: uint64 incoming_channel_id = 1; */ incomingChannelId: bigint; /** * * The short channel id that the outgoing htlc left our node on. This value * is zero for receives. * * @generated from field: uint64 outgoing_channel_id = 2; */ outgoingChannelId: bigint; /** * * Incoming id is the index of the incoming htlc in the incoming channel. * This value is zero for sends. * * @generated from field: uint64 incoming_htlc_id = 3; */ incomingHtlcId: bigint; /** * * Outgoing id is the index of the outgoing htlc in the outgoing channel. * This value is zero for receives. * * @generated from field: uint64 outgoing_htlc_id = 4; */ outgoingHtlcId: bigint; /** * * The time in unix nanoseconds that the event occurred. * * @generated from field: uint64 timestamp_ns = 5; */ timestampNs: bigint; /** * * The event type indicates whether the htlc was part of a send, receive or * forward. * * @generated from field: routerrpc.HtlcEvent.EventType event_type = 6; */ eventType: HtlcEvent_EventType; /** * @generated from oneof routerrpc.HtlcEvent.event */ event: { /** * @generated from field: routerrpc.ForwardEvent forward_event = 7; */ value: ForwardEvent; case: "forwardEvent"; } | { /** * @generated from field: routerrpc.ForwardFailEvent forward_fail_event = 8; */ value: ForwardFailEvent; case: "forwardFailEvent"; } | { /** * @generated from field: routerrpc.SettleEvent settle_event = 9; */ value: SettleEvent; case: "settleEvent"; } | { /** * @generated from field: routerrpc.LinkFailEvent link_fail_event = 10; */ value: LinkFailEvent; case: "linkFailEvent"; } | { /** * @generated from field: routerrpc.SubscribedEvent subscribed_event = 11; */ value: SubscribedEvent; case: "subscribedEvent"; } | { /** * @generated from field: routerrpc.FinalHtlcEvent final_htlc_event = 12; */ value: FinalHtlcEvent; case: "finalHtlcEvent"; } | { case: undefined; value?: undefined }; }; /** * Describes the message routerrpc.HtlcEvent. * Use `create(HtlcEventSchema)` to create a new message. */ export const HtlcEventSchema: GenMessage = /*@__PURE__*/ messageDesc(file_routerrpc_router, 26); /** * @generated from enum routerrpc.HtlcEvent.EventType */ export enum HtlcEvent_EventType { /** * @generated from enum value: UNKNOWN = 0; */ UNKNOWN = 0, /** * @generated from enum value: SEND = 1; */ SEND = 1, /** * @generated from enum value: RECEIVE = 2; */ RECEIVE = 2, /** * @generated from enum value: FORWARD = 3; */ FORWARD = 3, } /** * Describes the enum routerrpc.HtlcEvent.EventType. */ export const HtlcEvent_EventTypeSchema: GenEnum = /*@__PURE__*/ enumDesc(file_routerrpc_router, 26, 0); /** * @generated from message routerrpc.HtlcInfo */ export type HtlcInfo = Message<"routerrpc.HtlcInfo"> & { /** * The timelock on the incoming htlc. * * @generated from field: uint32 incoming_timelock = 1; */ incomingTimelock: number; /** * The timelock on the outgoing htlc. * * @generated from field: uint32 outgoing_timelock = 2; */ outgoingTimelock: number; /** * The amount of the incoming htlc. * * @generated from field: uint64 incoming_amt_msat = 3; */ incomingAmtMsat: bigint; /** * The amount of the outgoing htlc. * * @generated from field: uint64 outgoing_amt_msat = 4; */ outgoingAmtMsat: bigint; }; /** * Describes the message routerrpc.HtlcInfo. * Use `create(HtlcInfoSchema)` to create a new message. */ export const HtlcInfoSchema: GenMessage = /*@__PURE__*/ messageDesc(file_routerrpc_router, 27); /** * @generated from message routerrpc.ForwardEvent */ export type ForwardEvent = Message<"routerrpc.ForwardEvent"> & { /** * Info contains details about the htlc that was forwarded. * * @generated from field: routerrpc.HtlcInfo info = 1; */ info?: HtlcInfo; }; /** * Describes the message routerrpc.ForwardEvent. * Use `create(ForwardEventSchema)` to create a new message. */ export const ForwardEventSchema: GenMessage = /*@__PURE__*/ messageDesc(file_routerrpc_router, 28); /** * @generated from message routerrpc.ForwardFailEvent */ export type ForwardFailEvent = Message<"routerrpc.ForwardFailEvent"> & { }; /** * Describes the message routerrpc.ForwardFailEvent. * Use `create(ForwardFailEventSchema)` to create a new message. */ export const ForwardFailEventSchema: GenMessage = /*@__PURE__*/ messageDesc(file_routerrpc_router, 29); /** * @generated from message routerrpc.SettleEvent */ export type SettleEvent = Message<"routerrpc.SettleEvent"> & { /** * The revealed preimage. * * @generated from field: bytes preimage = 1; */ preimage: Uint8Array; }; /** * Describes the message routerrpc.SettleEvent. * Use `create(SettleEventSchema)` to create a new message. */ export const SettleEventSchema: GenMessage = /*@__PURE__*/ messageDesc(file_routerrpc_router, 30); /** * @generated from message routerrpc.FinalHtlcEvent */ export type FinalHtlcEvent = Message<"routerrpc.FinalHtlcEvent"> & { /** * @generated from field: bool settled = 1; */ settled: boolean; /** * @generated from field: bool offchain = 2; */ offchain: boolean; }; /** * Describes the message routerrpc.FinalHtlcEvent. * Use `create(FinalHtlcEventSchema)` to create a new message. */ export const FinalHtlcEventSchema: GenMessage = /*@__PURE__*/ messageDesc(file_routerrpc_router, 31); /** * @generated from message routerrpc.SubscribedEvent */ export type SubscribedEvent = Message<"routerrpc.SubscribedEvent"> & { }; /** * Describes the message routerrpc.SubscribedEvent. * Use `create(SubscribedEventSchema)` to create a new message. */ export const SubscribedEventSchema: GenMessage = /*@__PURE__*/ messageDesc(file_routerrpc_router, 32); /** * @generated from message routerrpc.LinkFailEvent */ export type LinkFailEvent = Message<"routerrpc.LinkFailEvent"> & { /** * Info contains details about the htlc that we failed. * * @generated from field: routerrpc.HtlcInfo info = 1; */ info?: HtlcInfo; /** * FailureCode is the BOLT error code for the failure. * * @generated from field: lnrpc.Failure.FailureCode wire_failure = 2; */ wireFailure: Failure_FailureCode; /** * * FailureDetail provides additional information about the reason for the * failure. This detail enriches the information provided by the wire message * and may be 'no detail' if the wire message requires no additional metadata. * * @generated from field: routerrpc.FailureDetail failure_detail = 3; */ failureDetail: FailureDetail; /** * A string representation of the link failure. * * @generated from field: string failure_string = 4; */ failureString: string; }; /** * Describes the message routerrpc.LinkFailEvent. * Use `create(LinkFailEventSchema)` to create a new message. */ export const LinkFailEventSchema: GenMessage = /*@__PURE__*/ messageDesc(file_routerrpc_router, 33); /** * @generated from message routerrpc.CircuitKey */ export type CircuitKey = Message<"routerrpc.CircuitKey"> & { /** * / The id of the channel that the is part of this circuit. * * @generated from field: uint64 chan_id = 1; */ chanId: bigint; /** * / The index of the incoming htlc in the incoming channel. * * @generated from field: uint64 htlc_id = 2; */ htlcId: bigint; }; /** * Describes the message routerrpc.CircuitKey. * Use `create(CircuitKeySchema)` to create a new message. */ export const CircuitKeySchema: GenMessage = /*@__PURE__*/ messageDesc(file_routerrpc_router, 34); /** * @generated from message routerrpc.ForwardHtlcInterceptRequest */ export type ForwardHtlcInterceptRequest = Message<"routerrpc.ForwardHtlcInterceptRequest"> & { /** * * The key of this forwarded htlc. It defines the incoming channel id and * the index in this channel. * * Interceptor clients should handle requests for the same circuit key * idempotently. Requests may be replayed after reconnect, and an htlc that was * previously offered off-chain may be offered again after it moves on-chain. * * @generated from field: routerrpc.CircuitKey incoming_circuit_key = 1; */ incomingCircuitKey?: CircuitKey; /** * The incoming htlc amount. * * @generated from field: uint64 incoming_amount_msat = 5; */ incomingAmountMsat: bigint; /** * The incoming htlc expiry. * * @generated from field: uint32 incoming_expiry = 6; */ incomingExpiry: number; /** * * The htlc payment hash. This value is not guaranteed to be unique per * request. * * @generated from field: bytes payment_hash = 2; */ paymentHash: Uint8Array; /** * The requested outgoing channel id for this forwarded htlc. Because of * non-strict forwarding, this isn't necessarily the channel over which the * packet will be forwarded eventually. A different channel to the same peer * may be selected as well. This is set to a sentinel value (all bits set) * if the outgoing_requested_node_id is specified for blinded routes. * * @generated from field: uint64 outgoing_requested_chan_id = 7; */ outgoingRequestedChanId: bigint; /** * The outgoing htlc amount. * * @generated from field: uint64 outgoing_amount_msat = 3; */ outgoingAmountMsat: bigint; /** * The outgoing htlc expiry. * * @generated from field: uint32 outgoing_expiry = 4; */ outgoingExpiry: number; /** * Any custom records that were present in the payload. * * @generated from field: map custom_records = 8; */ customRecords: { [key: string]: Uint8Array }; /** * The onion blob for the next hop * * @generated from field: bytes onion_blob = 9; */ onionBlob: Uint8Array; /** * The block height at which this htlc will be auto-failed to prevent the * channel from force-closing. For on-chain htlcs, this field is the * settlement deadline instead and no automatic fail-back is attempted. * * @generated from field: int32 auto_fail_height = 10; */ autoFailHeight: number; /** * The custom records of the peer's incoming p2p wire message. * * @generated from field: map in_wire_custom_records = 11; */ inWireCustomRecords: { [key: string]: Uint8Array }; /** * The requested outgoing node for a blinded forward. When non-empty, this * field contains exactly one 33-byte compressed public key and * outgoing_requested_chan_id is set to 18446744073709551615 * (0xffffffffffffffff). Clients MUST NOT interpret that value as an actual * channel ID; the presence of this field identifies a node-addressed * forward. * * The possible next-hop representations are: * node ID empty, channel ID 0: final receive; * node ID empty, ordinary channel ID: channel-addressed forward; * node ID present, channel ID MaxUint64: node-addressed forward. * * @generated from field: bytes outgoing_requested_node_id = 12; */ outgoingRequestedNodeId: Uint8Array; }; /** * Describes the message routerrpc.ForwardHtlcInterceptRequest. * Use `create(ForwardHtlcInterceptRequestSchema)` to create a new message. */ export const ForwardHtlcInterceptRequestSchema: GenMessage = /*@__PURE__*/ messageDesc(file_routerrpc_router, 35); /** * * * ForwardHtlcInterceptResponse enables the caller to resolve a previously hold * forward. The caller can choose either to: * - `Resume`: Execute the default behavior (usually forward). * - `ResumeModified`: Execute the default behavior (usually forward) with HTLC * field modifications. * - `Reject`: Fail the htlc backwards. * - `Settle`: Settle this htlc with a given preimage. * * Once the incoming channel has force-closed and the HTLC is being resolved * on-chain (see auto_fail_height), only `Settle` has any effect. The HTLC can no * longer be resumed or failed back off-chain, so `Resume`, `ResumeModified`, and * `Fail` return a stream-terminating error. The HTLC stays held until it is * settled with a preimage, the on-chain resolver completes, or it expires * on-chain. Clients should reconnect to receive any held HTLCs that remain * unresolved. * * @generated from message routerrpc.ForwardHtlcInterceptResponse */ export type ForwardHtlcInterceptResponse = Message<"routerrpc.ForwardHtlcInterceptResponse"> & { /** * * * The key of this forwarded htlc. It defines the incoming channel id and * the index in this channel. * * @generated from field: routerrpc.CircuitKey incoming_circuit_key = 1; */ incomingCircuitKey?: CircuitKey; /** * The resolve action for this intercepted htlc. * * @generated from field: routerrpc.ResolveHoldForwardAction action = 2; */ action: ResolveHoldForwardAction; /** * The preimage in case the resolve action is Settle. * * @generated from field: bytes preimage = 3; */ preimage: Uint8Array; /** * Encrypted failure message in case the resolve action is Fail. * * If failure_message is specified, the failure_code field must be set * to zero. * * @generated from field: bytes failure_message = 4; */ failureMessage: Uint8Array; /** * Return the specified failure code in case the resolve action is Fail. The * message data fields are populated automatically. * * If a non-zero failure_code is specified, failure_message must not be set. * * For backwards-compatibility reasons, TEMPORARY_CHANNEL_FAILURE is the * default value for this field. * * @generated from field: lnrpc.Failure.FailureCode failure_code = 5; */ failureCode: Failure_FailureCode; /** * The amount that was set on the p2p wire message of the incoming HTLC. * This field is ignored if the action is not RESUME_MODIFIED or the amount * is zero. * * @generated from field: uint64 in_amount_msat = 6; */ inAmountMsat: bigint; /** * The amount to set on the p2p wire message of the resumed HTLC. This field * is ignored if the action is not RESUME_MODIFIED or the amount is zero. * * @generated from field: uint64 out_amount_msat = 7; */ outAmountMsat: bigint; /** * Any custom records that should be set on the p2p wire message message of * the resumed HTLC. This field is ignored if the action is not * RESUME_MODIFIED. * * This map will merge with the existing set of custom records (if any), * replacing any conflicting types. Note that there currently is no support * for deleting existing custom records (they can only be replaced). * * @generated from field: map out_wire_custom_records = 8; */ outWireCustomRecords: { [key: string]: Uint8Array }; }; /** * Describes the message routerrpc.ForwardHtlcInterceptResponse. * Use `create(ForwardHtlcInterceptResponseSchema)` to create a new message. */ export const ForwardHtlcInterceptResponseSchema: GenMessage = /*@__PURE__*/ messageDesc(file_routerrpc_router, 36); /** * @generated from message routerrpc.UpdateChanStatusRequest */ export type UpdateChanStatusRequest = Message<"routerrpc.UpdateChanStatusRequest"> & { /** * @generated from field: lnrpc.ChannelPoint chan_point = 1; */ chanPoint?: ChannelPoint; /** * @generated from field: routerrpc.ChanStatusAction action = 2; */ action: ChanStatusAction; }; /** * Describes the message routerrpc.UpdateChanStatusRequest. * Use `create(UpdateChanStatusRequestSchema)` to create a new message. */ export const UpdateChanStatusRequestSchema: GenMessage = /*@__PURE__*/ messageDesc(file_routerrpc_router, 37); /** * @generated from message routerrpc.UpdateChanStatusResponse */ export type UpdateChanStatusResponse = Message<"routerrpc.UpdateChanStatusResponse"> & { }; /** * Describes the message routerrpc.UpdateChanStatusResponse. * Use `create(UpdateChanStatusResponseSchema)` to create a new message. */ export const UpdateChanStatusResponseSchema: GenMessage = /*@__PURE__*/ messageDesc(file_routerrpc_router, 38); /** * @generated from message routerrpc.AddAliasesRequest */ export type AddAliasesRequest = Message<"routerrpc.AddAliasesRequest"> & { /** * @generated from field: repeated lnrpc.AliasMap alias_maps = 1; */ aliasMaps: AliasMap[]; }; /** * Describes the message routerrpc.AddAliasesRequest. * Use `create(AddAliasesRequestSchema)` to create a new message. */ export const AddAliasesRequestSchema: GenMessage = /*@__PURE__*/ messageDesc(file_routerrpc_router, 39); /** * @generated from message routerrpc.AddAliasesResponse */ export type AddAliasesResponse = Message<"routerrpc.AddAliasesResponse"> & { /** * @generated from field: repeated lnrpc.AliasMap alias_maps = 1; */ aliasMaps: AliasMap[]; }; /** * Describes the message routerrpc.AddAliasesResponse. * Use `create(AddAliasesResponseSchema)` to create a new message. */ export const AddAliasesResponseSchema: GenMessage = /*@__PURE__*/ messageDesc(file_routerrpc_router, 40); /** * @generated from message routerrpc.DeleteAliasesRequest */ export type DeleteAliasesRequest = Message<"routerrpc.DeleteAliasesRequest"> & { /** * @generated from field: repeated lnrpc.AliasMap alias_maps = 1; */ aliasMaps: AliasMap[]; }; /** * Describes the message routerrpc.DeleteAliasesRequest. * Use `create(DeleteAliasesRequestSchema)` to create a new message. */ export const DeleteAliasesRequestSchema: GenMessage = /*@__PURE__*/ messageDesc(file_routerrpc_router, 41); /** * @generated from message routerrpc.DeleteAliasesResponse */ export type DeleteAliasesResponse = Message<"routerrpc.DeleteAliasesResponse"> & { /** * @generated from field: repeated lnrpc.AliasMap alias_maps = 1; */ aliasMaps: AliasMap[]; }; /** * Describes the message routerrpc.DeleteAliasesResponse. * Use `create(DeleteAliasesResponseSchema)` to create a new message. */ export const DeleteAliasesResponseSchema: GenMessage = /*@__PURE__*/ messageDesc(file_routerrpc_router, 42); /** * @generated from message routerrpc.FindBaseAliasRequest */ export type FindBaseAliasRequest = Message<"routerrpc.FindBaseAliasRequest"> & { /** * The alias we want to look up the base scid for. * * @generated from field: uint64 alias = 1; */ alias: bigint; }; /** * Describes the message routerrpc.FindBaseAliasRequest. * Use `create(FindBaseAliasRequestSchema)` to create a new message. */ export const FindBaseAliasRequestSchema: GenMessage = /*@__PURE__*/ messageDesc(file_routerrpc_router, 43); /** * @generated from message routerrpc.FindBaseAliasResponse */ export type FindBaseAliasResponse = Message<"routerrpc.FindBaseAliasResponse"> & { /** * The base scid that resulted from the base scid look up. * * @generated from field: uint64 base = 1; */ base: bigint; }; /** * Describes the message routerrpc.FindBaseAliasResponse. * Use `create(FindBaseAliasResponseSchema)` to create a new message. */ export const FindBaseAliasResponseSchema: GenMessage = /*@__PURE__*/ messageDesc(file_routerrpc_router, 44); /** * @generated from message routerrpc.DeleteForwardingHistoryRequest */ export type DeleteForwardingHistoryRequest = Message<"routerrpc.DeleteForwardingHistoryRequest"> & { /** * Specify the cutoff time for deletion using one of the following options. * Events with a timestamp at or before the cutoff are deleted. * * @generated from oneof routerrpc.DeleteForwardingHistoryRequest.time_spec */ timeSpec: { /** * Absolute Unix timestamp (seconds). Events at or before this time * are deleted. * * @generated from field: uint64 delete_before_time = 1; */ value: bigint; case: "deleteBeforeTime"; } | { /** * Relative duration string indicating how far back to delete, e.g. * "-30d" deletes events at or before 30 days ago. * Standard Go: "-24h", "-1.5h" * Custom units: "-1d", "-1w", "-1M", "-1y" * Supported: ns, us/µs, ms, s, m, h, d (days), w (weeks), * M (months=30.44d), y (years=365.25d). * Use negative values to specify time in the past. * * @generated from field: string delete_before_duration = 2; */ value: string; case: "deleteBeforeDuration"; } | { case: undefined; value?: undefined }; }; /** * Describes the message routerrpc.DeleteForwardingHistoryRequest. * Use `create(DeleteForwardingHistoryRequestSchema)` to create a new message. */ export const DeleteForwardingHistoryRequestSchema: GenMessage = /*@__PURE__*/ messageDesc(file_routerrpc_router, 45); /** * @generated from message routerrpc.DeleteForwardingHistoryResponse */ export type DeleteForwardingHistoryResponse = Message<"routerrpc.DeleteForwardingHistoryResponse"> & { /** * Number of forwarding events deleted. * * @generated from field: uint64 events_deleted = 1; */ eventsDeleted: bigint; /** * Total fees earned from deleted events (in millisatoshis). * This is the sum of (amt_in - amt_out) for all deleted events, which * can be used for accounting purposes. * * @generated from field: int64 total_fee_msat = 2; */ totalFeeMsat: bigint; /** * Status message. * * @generated from field: string status = 3; */ status: string; }; /** * Describes the message routerrpc.DeleteForwardingHistoryResponse. * Use `create(DeleteForwardingHistoryResponseSchema)` to create a new message. */ export const DeleteForwardingHistoryResponseSchema: GenMessage = /*@__PURE__*/ messageDesc(file_routerrpc_router, 46); /** * @generated from enum routerrpc.FailureDetail */ export enum FailureDetail { /** * @generated from enum value: UNKNOWN = 0; */ UNKNOWN = 0, /** * @generated from enum value: NO_DETAIL = 1; */ NO_DETAIL = 1, /** * @generated from enum value: ONION_DECODE = 2; */ ONION_DECODE = 2, /** * @generated from enum value: LINK_NOT_ELIGIBLE = 3; */ LINK_NOT_ELIGIBLE = 3, /** * @generated from enum value: ON_CHAIN_TIMEOUT = 4; */ ON_CHAIN_TIMEOUT = 4, /** * @generated from enum value: HTLC_EXCEEDS_MAX = 5; */ HTLC_EXCEEDS_MAX = 5, /** * @generated from enum value: INSUFFICIENT_BALANCE = 6; */ INSUFFICIENT_BALANCE = 6, /** * @generated from enum value: INCOMPLETE_FORWARD = 7; */ INCOMPLETE_FORWARD = 7, /** * @generated from enum value: HTLC_ADD_FAILED = 8; */ HTLC_ADD_FAILED = 8, /** * @generated from enum value: FORWARDS_DISABLED = 9; */ FORWARDS_DISABLED = 9, /** * @generated from enum value: INVOICE_CANCELED = 10; */ INVOICE_CANCELED = 10, /** * @generated from enum value: INVOICE_UNDERPAID = 11; */ INVOICE_UNDERPAID = 11, /** * @generated from enum value: INVOICE_EXPIRY_TOO_SOON = 12; */ INVOICE_EXPIRY_TOO_SOON = 12, /** * @generated from enum value: INVOICE_NOT_OPEN = 13; */ INVOICE_NOT_OPEN = 13, /** * @generated from enum value: MPP_INVOICE_TIMEOUT = 14; */ MPP_INVOICE_TIMEOUT = 14, /** * @generated from enum value: ADDRESS_MISMATCH = 15; */ ADDRESS_MISMATCH = 15, /** * @generated from enum value: SET_TOTAL_MISMATCH = 16; */ SET_TOTAL_MISMATCH = 16, /** * @generated from enum value: SET_TOTAL_TOO_LOW = 17; */ SET_TOTAL_TOO_LOW = 17, /** * @generated from enum value: SET_OVERPAID = 18; */ SET_OVERPAID = 18, /** * @generated from enum value: UNKNOWN_INVOICE = 19; */ UNKNOWN_INVOICE = 19, /** * @generated from enum value: INVALID_KEYSEND = 20; */ INVALID_KEYSEND = 20, /** * @generated from enum value: MPP_IN_PROGRESS = 21; */ MPP_IN_PROGRESS = 21, /** * @generated from enum value: CIRCULAR_ROUTE = 22; */ CIRCULAR_ROUTE = 22, /** * @generated from enum value: INVOICE_ALREADY_SETTLED = 23; */ INVOICE_ALREADY_SETTLED = 23, /** * @generated from enum value: HTLC_INVOICE_TYPE_MISMATCH = 24; */ HTLC_INVOICE_TYPE_MISMATCH = 24, /** * @generated from enum value: AMP_ERROR = 25; */ AMP_ERROR = 25, /** * @generated from enum value: AMP_RECONSTRUCTION = 26; */ AMP_RECONSTRUCTION = 26, /** * @generated from enum value: EXTERNAL_VALIDATION_FAILED = 27; */ EXTERNAL_VALIDATION_FAILED = 27, } /** * Describes the enum routerrpc.FailureDetail. */ export const FailureDetailSchema: GenEnum = /*@__PURE__*/ enumDesc(file_routerrpc_router, 0); /** * @generated from enum routerrpc.ResolveHoldForwardAction */ export enum ResolveHoldForwardAction { /** * SETTLE is an action that is used to settle an HTLC instead of forwarding * it. * * @generated from enum value: SETTLE = 0; */ SETTLE = 0, /** * FAIL is an action that is used to fail an HTLC backwards. * * @generated from enum value: FAIL = 1; */ FAIL = 1, /** * RESUME is an action that is used to resume a forward HTLC. * * @generated from enum value: RESUME = 2; */ RESUME = 2, /** * RESUME_MODIFIED is an action that is used to resume a hold forward HTLC * with modifications specified during interception. * * @generated from enum value: RESUME_MODIFIED = 3; */ RESUME_MODIFIED = 3, } /** * Describes the enum routerrpc.ResolveHoldForwardAction. */ export const ResolveHoldForwardActionSchema: GenEnum = /*@__PURE__*/ enumDesc(file_routerrpc_router, 1); /** * @generated from enum routerrpc.ChanStatusAction */ export enum ChanStatusAction { /** * @generated from enum value: ENABLE = 0; */ ENABLE = 0, /** * @generated from enum value: DISABLE = 1; */ DISABLE = 1, /** * @generated from enum value: AUTO = 2; */ AUTO = 2, } /** * Describes the enum routerrpc.ChanStatusAction. */ export const ChanStatusActionSchema: GenEnum = /*@__PURE__*/ enumDesc(file_routerrpc_router, 2); /** * Router is a service that offers advanced interaction with the router * subsystem of the daemon. * * @generated from service routerrpc.Router */ export const Router: GenService<{ /** * lncli: `sendpayment` * SendPaymentV2 attempts to route a payment described by the passed * PaymentRequest to the final destination. The call returns a stream of * payment updates. When using this RPC, make sure to set a fee limit, as the * default routing fee limit is 0 sats. Without a non-zero fee limit only * routes without fees will be attempted which often fails with * FAILURE_REASON_NO_ROUTE. * * @generated from rpc routerrpc.Router.SendPaymentV2 */ sendPaymentV2: { methodKind: "server_streaming"; input: typeof SendPaymentRequestSchema; output: typeof PaymentSchema; }, /** * lncli: `trackpayment` * TrackPaymentV2 returns an update stream for the payment identified by the * payment hash. * * @generated from rpc routerrpc.Router.TrackPaymentV2 */ trackPaymentV2: { methodKind: "server_streaming"; input: typeof TrackPaymentRequestSchema; output: typeof PaymentSchema; }, /** * * TrackPayments returns an update stream for every payment that is not in a * terminal state. Note that if payments are in-flight while starting a new * subscription, the start of the payment stream could produce out-of-order * and/or duplicate events. In order to get updates for every in-flight * payment attempt make sure to subscribe to this method before initiating any * payments. * * @generated from rpc routerrpc.Router.TrackPayments */ trackPayments: { methodKind: "server_streaming"; input: typeof TrackPaymentsRequestSchema; output: typeof PaymentSchema; }, /** * lncli: `estimateroutefee` * EstimateRouteFee allows callers to obtain a lower bound w.r.t how much it * may cost to send an HTLC to the target end destination. * * @generated from rpc routerrpc.Router.EstimateRouteFee */ estimateRouteFee: { methodKind: "unary"; input: typeof RouteFeeRequestSchema; output: typeof RouteFeeResponseSchema; }, /** * lncli: `sendtoroute` * SendToRouteV2 attempts to make a payment via the specified route. This * method differs from SendPayment in that it allows users to specify a full * route manually. This can be used for things like rebalancing, and atomic * swaps. * * @generated from rpc routerrpc.Router.SendToRouteV2 */ sendToRouteV2: { methodKind: "unary"; input: typeof SendToRouteRequestSchema; output: typeof HTLCAttemptSchema; }, /** * lncli: `resetmc` * ResetMissionControl clears all mission control state and starts with a clean * slate. * * @generated from rpc routerrpc.Router.ResetMissionControl */ resetMissionControl: { methodKind: "unary"; input: typeof ResetMissionControlRequestSchema; output: typeof ResetMissionControlResponseSchema; }, /** * lncli: `querymc` * QueryMissionControl exposes the internal mission control state to callers. * It is a development feature. * * @generated from rpc routerrpc.Router.QueryMissionControl */ queryMissionControl: { methodKind: "unary"; input: typeof QueryMissionControlRequestSchema; output: typeof QueryMissionControlResponseSchema; }, /** * lncli: `importmc` * XImportMissionControl is an experimental API that imports the state provided * to the internal mission control's state, using all results which are more * recent than our existing values. These values will only be imported * in-memory, and will not be persisted across restarts. * * @generated from rpc routerrpc.Router.XImportMissionControl */ xImportMissionControl: { methodKind: "unary"; input: typeof XImportMissionControlRequestSchema; output: typeof XImportMissionControlResponseSchema; }, /** * lncli: `getmccfg` * GetMissionControlConfig returns mission control's current config. * * @generated from rpc routerrpc.Router.GetMissionControlConfig */ getMissionControlConfig: { methodKind: "unary"; input: typeof GetMissionControlConfigRequestSchema; output: typeof GetMissionControlConfigResponseSchema; }, /** * lncli: `setmccfg` * SetMissionControlConfig will set mission control's config, if the config * provided is valid. * * @generated from rpc routerrpc.Router.SetMissionControlConfig */ setMissionControlConfig: { methodKind: "unary"; input: typeof SetMissionControlConfigRequestSchema; output: typeof SetMissionControlConfigResponseSchema; }, /** * lncli: `queryprob` * Deprecated. QueryProbability returns the current success probability * estimate for a given node pair and amount. The call returns a zero success * probability if no channel is available or if the amount violates min/max * HTLC constraints. * * @generated from rpc routerrpc.Router.QueryProbability */ queryProbability: { methodKind: "unary"; input: typeof QueryProbabilityRequestSchema; output: typeof QueryProbabilityResponseSchema; }, /** * lncli: `buildroute` * BuildRoute builds a fully specified route based on a list of hop public * keys. It retrieves the relevant channel policies from the graph in order to * calculate the correct fees and time locks. * Note that LND will use its default final_cltv_delta if no value is supplied. * Make sure to add the correct final_cltv_delta depending on the invoice * restriction. Moreover the caller has to make sure to provide the * payment_addr if the route is paying an invoice which signaled it. * * @generated from rpc routerrpc.Router.BuildRoute */ buildRoute: { methodKind: "unary"; input: typeof BuildRouteRequestSchema; output: typeof BuildRouteResponseSchema; }, /** * * SubscribeHtlcEvents creates a uni-directional stream from the server to * the client which delivers a stream of htlc events. * * @generated from rpc routerrpc.Router.SubscribeHtlcEvents */ subscribeHtlcEvents: { methodKind: "server_streaming"; input: typeof SubscribeHtlcEventsRequestSchema; output: typeof HtlcEventSchema; }, /** * * * HtlcInterceptor dispatches a bi-directional streaming RPC in which * Forwarded HTLC requests are sent to the client and the client responds with * a boolean that tells LND if this htlc should be intercepted. * In case of interception, the htlc can be either settled, cancelled or * resumed later by using the ResolveHoldForward endpoint. * * @generated from rpc routerrpc.Router.HtlcInterceptor */ htlcInterceptor: { methodKind: "bidi_streaming"; input: typeof ForwardHtlcInterceptResponseSchema; output: typeof ForwardHtlcInterceptRequestSchema; }, /** * lncli: `updatechanstatus` * UpdateChanStatus attempts to manually set the state of a channel * (enabled, disabled, or auto). A manual "disable" request will cause the * channel to stay disabled until a subsequent manual request of either * "enable" or "auto". * * @generated from rpc routerrpc.Router.UpdateChanStatus */ updateChanStatus: { methodKind: "unary"; input: typeof UpdateChanStatusRequestSchema; output: typeof UpdateChanStatusResponseSchema; }, /** * * XAddLocalChanAliases is an experimental API that creates a set of new * channel SCID alias mappings. The final total set of aliases in the manager * after the add operation is returned. This is only a locally stored alias, * and will not be communicated to the channel peer via any message. Therefore, * routing over such an alias will only work if the peer also calls this same * RPC on their end. If an alias already exists, an error is returned * * @generated from rpc routerrpc.Router.XAddLocalChanAliases */ xAddLocalChanAliases: { methodKind: "unary"; input: typeof AddAliasesRequestSchema; output: typeof AddAliasesResponseSchema; }, /** * * XDeleteLocalChanAliases is an experimental API that deletes a set of alias * mappings. The final total set of aliases in the manager after the delete * operation is returned. The deletion will not be communicated to the channel * peer via any message. * * @generated from rpc routerrpc.Router.XDeleteLocalChanAliases */ xDeleteLocalChanAliases: { methodKind: "unary"; input: typeof DeleteAliasesRequestSchema; output: typeof DeleteAliasesResponseSchema; }, /** * * XFindBaseLocalChanAlias is an experimental API that looks up the base scid * for a local chan alias that was registered during the current runtime. * * @generated from rpc routerrpc.Router.XFindBaseLocalChanAlias */ xFindBaseLocalChanAlias: { methodKind: "unary"; input: typeof FindBaseAliasRequestSchema; output: typeof FindBaseAliasResponseSchema; }, /** * lncli: `deletefwdhistory` * DeleteForwardingHistory allows the caller to delete forwarding history * events with a timestamp at or before a specified time. This is useful * for implementing data retention policies for privacy purposes. The call * deletes events in batches and returns statistics including the total number * of events deleted and the aggregate fees earned from those events. The * deletion is performed in a transaction-safe manner with configurable batch * sizes to avoid holding large database locks. * * @generated from rpc routerrpc.Router.DeleteForwardingHistory */ deleteForwardingHistory: { methodKind: "unary"; input: typeof DeleteForwardingHistoryRequestSchema; output: typeof DeleteForwardingHistoryResponseSchema; }, }> = /*@__PURE__*/ serviceDesc(file_routerrpc_router, 0);