From 278ed1026b75014adf2850c4bc030a753dcdd98e Mon Sep 17 00:00:00 2001 From: JC Brand Date: Tue, 5 May 2026 13:38:04 +0200 Subject: [PATCH] chore: update to tapd 0.7.2 and lnd 0.21.0-beta.rc1 --- package.json | 6 +- protos/lightning.proto | 137 +++++++++++++++++- protos/priceoraclerpc/price_oracle.proto | 8 + protos/routerrpc/router.proto | 57 +++++++- protos/universerpc/universe.proto | 15 ++ src/types/index.ts | 10 ++ src/types/lnrpc/ChannelCommitUpdate.ts | 11 ++ src/types/lnrpc/ChannelEventUpdate.ts | 10 +- src/types/lnrpc/CommitmentType.ts | 3 + src/types/lnrpc/EstimateFeeRequest.ts | 3 + src/types/lnrpc/EstimateFeeResponse.ts | 3 + src/types/lnrpc/GetDebugInfoRequest.ts | 2 + src/types/lnrpc/GetInfoResponse.ts | 5 + src/types/lnrpc/GraphCacheStatus.ts | 20 +++ src/types/lnrpc/Lightning.ts | 24 +++ src/types/lnrpc/ListPaymentsRequest.ts | 2 + src/types/lnrpc/OnionMessageUpdate.ts | 21 +++ src/types/lnrpc/PendingChannelsResponse.ts | 4 + src/types/lnrpc/SendOnionMessageRequest.ts | 14 ++ src/types/lnrpc/SendOnionMessageResponse.ts | 10 ++ .../lnrpc/SubscribeOnionMessagesRequest.ts | 8 + src/types/lnrpc/index.ts | 6 + .../priceoraclerpc/QueryAssetRatesRequest.ts | 2 + .../DeleteForwardingHistoryRequest.ts | 15 ++ .../DeleteForwardingHistoryResponse.ts | 15 ++ src/types/routerrpc/FailureDetail.ts | 15 ++ src/types/routerrpc/Router.ts | 14 ++ src/types/routerrpc/index.ts | 2 + src/types/tapchannel.ts | 8 + src/types/universe.ts | 2 + .../universerpc/DeleteAssetLeafRequest.ts | 11 ++ .../universerpc/DeleteAssetLeafResponse.ts | 8 + src/types/universerpc/Universe.ts | 14 ++ src/types/universerpc/index.ts | 2 + 34 files changed, 476 insertions(+), 11 deletions(-) create mode 100644 src/types/lnrpc/ChannelCommitUpdate.ts create mode 100644 src/types/lnrpc/GraphCacheStatus.ts create mode 100644 src/types/lnrpc/OnionMessageUpdate.ts create mode 100644 src/types/lnrpc/SendOnionMessageRequest.ts create mode 100644 src/types/lnrpc/SendOnionMessageResponse.ts create mode 100644 src/types/lnrpc/SubscribeOnionMessagesRequest.ts create mode 100644 src/types/routerrpc/DeleteForwardingHistoryRequest.ts create mode 100644 src/types/routerrpc/DeleteForwardingHistoryResponse.ts create mode 100644 src/types/universerpc/DeleteAssetLeafRequest.ts create mode 100644 src/types/universerpc/DeleteAssetLeafResponse.ts diff --git a/package.json b/package.json index 1b5667c..e5fdb83 100644 --- a/package.json +++ b/package.json @@ -1,12 +1,12 @@ { "name": "@lightningpolar/tapd-api", - "version": "0.7.0-alpha", + "version": "0.7.2", "description": "Bitcoin Taproot Assets Protocol API client for Lightning Labs tapd daemon", "main": "dist/index.js", "types": "dist/index.d.ts", "config": { - "tapd_release_tag": "v0.7.0", - "lnd_release_tag": "v0.20.0-beta" + "tapd_release_tag": "v0.7.2", + "lnd_release_tag": "v0.21.0-beta.rc1" }, "files": [ "dist", diff --git a/protos/lightning.proto b/protos/lightning.proto index 9c9abdd..b60f45e 100644 --- a/protos/lightning.proto +++ b/protos/lightning.proto @@ -597,6 +597,18 @@ service Lightning { rpc SubscribeCustomMessages (SubscribeCustomMessagesRequest) returns (stream CustomMessage); + /* lncli: `sendonion` + SendOnionMessage sends an onion message to a peer. + */ + rpc SendOnionMessage (SendOnionMessageRequest) + returns (SendOnionMessageResponse); + + /* lncli: `subscribeonion` + SubscribeOnionMessages subscribes to a stream of incoming onion messages. + */ + rpc SubscribeOnionMessages (SubscribeOnionMessagesRequest) + returns (stream OnionMessageUpdate); + /* lncli: `listaliases` ListAliases returns the set of all aliases that have ever existed with their confirmed SCID (if it exists) and/or the base SCID (in the case of @@ -642,7 +654,8 @@ message CustomMessage { } message SendCustomMessageRequest { - // Peer to send the message to + // Peer to which the message will be sent. Represented as a byte-encoded + // public key bytes peer = 1; // Message type. This value needs to be in the custom range (>= 32768). @@ -660,6 +673,67 @@ message SendCustomMessageResponse { string status = 1; } +message SubscribeOnionMessagesRequest { +} + +message OnionMessageUpdate { + // Peer from which this message originates. Represented as a byte-encoded + // public key. + bytes peer = 1; + + // PathKey is used to derive the blinded node id by tweaking the hop's + // static public key. The hop uses the corresponding blinded private key + // together with the sender's ephemeral key to perform ECDH and obtain the + // shared secret for decrypting the onion payload. Separately, for + // decrypting `encrypted_recipient_data`, the recipient performs ECDH + // between its static node private key and the path_key to derive the + // decryption key. + bytes path_key = 2; + + // Serialized Sphinx onion packet (BOLT 4) containing the layered, per-hop + // encrypted payloads and routing instructions used to forward this message + // along its designated path. + bytes onion = 3; + + // reply_path is the blinded path that should be used when replying to a + // received message. + BlindedPath reply_path = 4; + + // encrypted_recipient_data is the encrypted data that contains the + // forwarding information for an onion message. It contains either + // next_node_id or short_channel_id for each non-final node. It MAY contain + // the path_id for the final node. + bytes encrypted_recipient_data = 5; + + // Custom onion message tlv records. These are customized fields that are + // not defined by LND and cannot be extracted. + map custom_records = 6; +} + +message SendOnionMessageRequest { + // Peer to send the message to + bytes peer = 1; + + // PathKey is used to derive the blinded node id by tweaking the hop's + // static public key. The hop uses the corresponding blinded private key + // together with the sender's ephemeral key to perform ECDH and obtain the + // shared secret for decrypting the onion payload. Separately, for + // decrypting `encrypted_recipient_data`, the recipient performs ECDH + // between its static node private key and the path_key to derive the + // decryption key. + bytes path_key = 2; + + // Serialized Sphinx onion packet (BOLT 4) containing the layered, per-hop + // encrypted payloads and routing instructions used to forward this message + // along its designated path. + bytes onion = 3; +} + +message SendOnionMessageResponse { + // The status of the onion message send operation. + string status = 1; +} + message Utxo { // The type of address AddressType address_type = 1; @@ -1159,6 +1233,9 @@ message EstimateFeeRequest { // The strategy to use for selecting coins during fees estimation. CoinSelectionStrategy coin_selection_strategy = 5; + + // A list of selected inputs for the transaction. + repeated OutPoint inputs = 6; } message EstimateFeeResponse { @@ -1171,6 +1248,9 @@ message EstimateFeeResponse { // The fee rate in satoshi/vbyte. uint64 sat_per_vbyte = 3; + + // A list of selected inputs for the transaction the estimate is for. + repeated OutPoint inputs = 4; } message SendManyRequest { @@ -1436,10 +1516,18 @@ enum CommitmentType { /* A channel that uses musig2 for the funding output, and the new tapscript - features where relevant. + features where relevant. This is the staging version using development + scripts. */ SIMPLE_TAPROOT = 5; + /* + A channel that uses musig2 for the funding output, and the new tapscript + features where relevant. This is the production version using final scripts + and feature bits 80/81. + */ + SIMPLE_TAPROOT_FINAL = 7; + /* Identical to the SIMPLE_TAPROOT channel type, but with extra functionality. This channel type also commits to additional meta data in the tapscript @@ -1978,6 +2066,13 @@ message PeerEvent { message GetInfoRequest { } +enum GraphCacheStatus { + GRAPH_CACHE_STATUS_DISABLED = 0; + GRAPH_CACHE_STATUS_LOADING = 1; + GRAPH_CACHE_STATUS_LOADED = 2; + GRAPH_CACHE_STATUS_FAILED = 3; +} + message GetInfoResponse { // The version of the LND software that the node is running. string version = 14; @@ -2052,9 +2147,19 @@ message GetInfoResponse { // Indicates whether final htlc resolutions are stored on disk. bool store_final_htlc_resolutions = 22; + + // Whether the wallet is fully synced to the best chain. This indicates the + // wallet's internal sync state with the backing chain source. + bool wallet_synced = 23; + + // The current status of the in-memory graph cache. + GraphCacheStatus graph_cache_status = 24; } message GetDebugInfoRequest { + // If set to true, the log file content will be included in the response. + // By default, only the config information is returned. + bool include_log = 1; } message GetDebugInfoResponse { @@ -2890,6 +2995,24 @@ message PendingChannelsResponse { // The raw hex encoded bytes of the closing transaction. Included if // include_raw_tx in the request is true. string closing_tx_hex = 5; + + /* + Remaining number of confirmations until the channel closure is + considered final and removed from waiting close. Channel closes + require multiple confirmations for reorg protection — the exact + number scales with channel capacity. A closing transaction that + gets reorganized out of the chain resets this counter. When the + closing transaction is not yet confirmed, this value equals the + total number of confirmations required. + */ + uint32 blocks_til_close_confirmed = 6; + + /* + The block height at which the closing transaction was first confirmed. + This will be zero if the closing transaction has not yet confirmed, or + if this information is not available for older channels. + */ + uint32 close_height = 7; } message Commitments { @@ -2994,6 +3117,10 @@ message PendingChannelsResponse { message ChannelEventSubscription { } +message ChannelCommitUpdate { + Channel channel = 1; +} + message ChannelEventUpdate { oneof channel { Channel open_channel = 1; @@ -3003,6 +3130,7 @@ message ChannelEventUpdate { PendingUpdate pending_open_channel = 6; ChannelPoint fully_resolved_channel = 7; ChannelPoint channel_funding_timeout = 8; + ChannelCommitUpdate updated_channel = 9; } enum UpdateType { @@ -3013,6 +3141,7 @@ message ChannelEventUpdate { PENDING_OPEN_CHANNEL = 4; FULLY_RESOLVED_CHANNEL = 5; CHANNEL_FUNDING_TIMEOUT = 6; + CHANNEL_UPDATE = 7; } UpdateType type = 5; @@ -4461,6 +4590,10 @@ message ListPaymentsRequest { // If set, returns all payments with a creation date less than or equal to // it. Measured in seconds since the unix epoch. uint64 creation_date_end = 7; + + // If set, omit hop-level route data for HTLC attempts to reduce query + // cost and response size. + bool omit_hops = 8; } message ListPaymentsResponse { diff --git a/protos/priceoraclerpc/price_oracle.proto b/protos/priceoraclerpc/price_oracle.proto index 128ca4a..436bf2a 100644 --- a/protos/priceoraclerpc/price_oracle.proto +++ b/protos/priceoraclerpc/price_oracle.proto @@ -213,6 +213,14 @@ message QueryAssetRatesRequest { // is available. The maximum length of this field is 32'768 bytes. This // field will only be set by tapd v0.7.0 and later. string metadata = 9; + + // node_id is the 33-byte public key of the local node making the + // request to the price oracle. This identifies the tapd node that is + // querying rates, as opposed to the counterparty_id field which + // identifies the peer on the other side of the transaction. This field + // is set by default and can be disabled via the + // --experimental.rfq.priceoracledisablenodeid configuration option. + bytes node_id = 10; } // QueryAssetRatesOkResponse is the successful response to a diff --git a/protos/routerrpc/router.proto b/protos/routerrpc/router.proto index 9e305e3..5ddf922 100644 --- a/protos/routerrpc/router.proto +++ b/protos/routerrpc/router.proto @@ -27,7 +27,7 @@ option go_package = "github.com/lightningnetwork/lnd/lnrpc/routerrpc"; // Router is a service that offers advanced interaction with the router // subsystem of the daemon. service Router { - /* + /* 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 @@ -53,7 +53,7 @@ service Router { */ rpc TrackPayments (TrackPaymentsRequest) returns (stream lnrpc.Payment); - /* + /* 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. */ @@ -70,7 +70,7 @@ service Router { option deprecated = true; } - /* + /* 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 @@ -202,6 +202,18 @@ service Router { */ rpc XFindBaseLocalChanAlias (FindBaseAliasRequest) returns (FindBaseAliasResponse); + + /* 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. + */ + rpc DeleteForwardingHistory (DeleteForwardingHistoryRequest) + returns (DeleteForwardingHistoryResponse); } message SendPaymentRequest { @@ -911,6 +923,11 @@ enum FailureDetail { INVALID_KEYSEND = 20; MPP_IN_PROGRESS = 21; CIRCULAR_ROUTE = 22; + INVOICE_ALREADY_SETTLED = 23; + HTLC_INVOICE_TYPE_MISMATCH = 24; + AMP_ERROR = 25; + AMP_RECONSTRUCTION = 26; + EXTERNAL_VALIDATION_FAILED = 27; } enum PaymentState { @@ -1133,4 +1150,36 @@ message FindBaseAliasRequest { message FindBaseAliasResponse { // The base scid that resulted from the base scid look up. uint64 base = 1; -} \ No newline at end of file +} + +message DeleteForwardingHistoryRequest { + // Specify the cutoff time for deletion using one of the following options. + // Events with a timestamp at or before the cutoff are deleted. + oneof time_spec { + // Absolute Unix timestamp (seconds). Events at or before this time + // are deleted. + uint64 delete_before_time = 1; + + // 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. + string delete_before_duration = 2; + } +} + +message DeleteForwardingHistoryResponse { + // Number of forwarding events deleted. + uint64 events_deleted = 1; + + // 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. + int64 total_fee_msat = 2; + + // Status message. + string status = 3; +} diff --git a/protos/universerpc/universe.proto b/protos/universerpc/universe.proto index bfe4143..fbc4e09 100644 --- a/protos/universerpc/universe.proto +++ b/protos/universerpc/universe.proto @@ -33,6 +33,13 @@ service Universe { */ rpc DeleteAssetRoot (DeleteRootQuery) returns (DeleteRootResponse); + /* tapcli: `universe delete-leaf` + DeleteAssetLeaf deletes a single Universe leaf, identified by its + universe ID and leaf key (outpoint + script key). + */ + rpc DeleteAssetLeaf (DeleteAssetLeafRequest) + returns (DeleteAssetLeafResponse); + /* tapcli: `universe keys` AssetLeafKeys queries for the set of Universe keys associated with a given asset_id or group_key. Each key takes the form: (outpoint, script_key), @@ -316,6 +323,14 @@ message DeleteRootQuery { message DeleteRootResponse { } +message DeleteAssetLeafRequest { + // The universe key identifying the leaf to delete. + UniverseKey key = 1; +} + +message DeleteAssetLeafResponse { +} + message Outpoint { // The output as a hex encoded (and reversed!) string. string hash_str = 1; diff --git a/src/types/index.ts b/src/types/index.ts index 25e3a12..992d8b5 100644 --- a/src/types/index.ts +++ b/src/types/index.ts @@ -60,6 +60,7 @@ export * from './lnrpc/ChannelBalanceRequest'; export * from './lnrpc/ChannelBalanceResponse'; export * from './lnrpc/ChannelCloseSummary'; export * from './lnrpc/ChannelCloseUpdate'; +export * from './lnrpc/ChannelCommitUpdate'; export * from './lnrpc/ChannelConstraints'; export * from './lnrpc/ChannelEdge'; export * from './lnrpc/ChannelEdgeUpdate'; @@ -124,6 +125,7 @@ export * from './lnrpc/GetInfoResponse'; export * from './lnrpc/GetRecoveryInfoRequest'; export * from './lnrpc/GetRecoveryInfoResponse'; export * from './lnrpc/GetTransactionsRequest'; +export * from './lnrpc/GraphCacheStatus'; export * from './lnrpc/GraphTopologySubscription'; export * from './lnrpc/GraphTopologyUpdate'; export * from './lnrpc/HTLC'; @@ -180,6 +182,7 @@ export * from './lnrpc/NodeMetricsRequest'; export * from './lnrpc/NodeMetricsResponse'; export * from './lnrpc/NodePair'; export * from './lnrpc/NodeUpdate'; +export * from './lnrpc/OnionMessageUpdate'; export * from './lnrpc/Op'; export * from './lnrpc/OpenChannelRequest'; export * from './lnrpc/OpenStatusUpdate'; @@ -222,6 +225,8 @@ export * from './lnrpc/SendCustomMessageRequest'; export * from './lnrpc/SendCustomMessageResponse'; export * from './lnrpc/SendManyRequest'; export * from './lnrpc/SendManyResponse'; +export * from './lnrpc/SendOnionMessageRequest'; +export * from './lnrpc/SendOnionMessageResponse'; export * from './lnrpc/SendRequest'; export * from './lnrpc/SendResponse'; export * from './lnrpc/SendToRouteRequest'; @@ -232,6 +237,7 @@ export * from './lnrpc/StopRequest'; export * from './lnrpc/StopResponse'; export * from './lnrpc/StreamAuth'; export * from './lnrpc/SubscribeCustomMessagesRequest'; +export * from './lnrpc/SubscribeOnionMessagesRequest'; export * from './lnrpc/TimestampedError'; export * from './lnrpc/Transaction'; export * from './lnrpc/TransactionDetails'; @@ -306,6 +312,8 @@ export * from './routerrpc/ChanStatusAction'; export * from './routerrpc/CircuitKey'; export * from './routerrpc/DeleteAliasesRequest'; export * from './routerrpc/DeleteAliasesResponse'; +export * from './routerrpc/DeleteForwardingHistoryRequest'; +export * from './routerrpc/DeleteForwardingHistoryResponse'; export * from './routerrpc/FailureDetail'; export * from './routerrpc/FinalHtlcEvent'; export * from './routerrpc/FindBaseAliasRequest'; @@ -463,6 +471,8 @@ export * from './universerpc/AssetStatsAsset'; export * from './universerpc/AssetStatsQuery'; export * from './universerpc/AssetStatsSnapshot'; export * from './universerpc/AssetTypeFilter'; +export * from './universerpc/DeleteAssetLeafRequest'; +export * from './universerpc/DeleteAssetLeafResponse'; export * from './universerpc/DeleteFederationServerRequest'; export * from './universerpc/DeleteFederationServerResponse'; export * from './universerpc/DeleteRootQuery'; diff --git a/src/types/lnrpc/ChannelCommitUpdate.ts b/src/types/lnrpc/ChannelCommitUpdate.ts new file mode 100644 index 0000000..207a852 --- /dev/null +++ b/src/types/lnrpc/ChannelCommitUpdate.ts @@ -0,0 +1,11 @@ +// Original file: protos/lightning.proto + +import type { ChannelPartial as _lnrpc_ChannelPartial, Channel as _lnrpc_Channel } from '../lnrpc/Channel'; + +export interface ChannelCommitUpdatePartial { + 'channel'?: (_lnrpc_ChannelPartial | null); +} + +export interface ChannelCommitUpdate { + 'channel': (_lnrpc_Channel | null); +} diff --git a/src/types/lnrpc/ChannelEventUpdate.ts b/src/types/lnrpc/ChannelEventUpdate.ts index dda8d92..7411c07 100644 --- a/src/types/lnrpc/ChannelEventUpdate.ts +++ b/src/types/lnrpc/ChannelEventUpdate.ts @@ -4,6 +4,7 @@ import type { ChannelPartial as _lnrpc_ChannelPartial, Channel as _lnrpc_Channel import type { ChannelCloseSummaryPartial as _lnrpc_ChannelCloseSummaryPartial, ChannelCloseSummary as _lnrpc_ChannelCloseSummary } from '../lnrpc/ChannelCloseSummary'; import type { ChannelPointPartial as _lnrpc_ChannelPointPartial, ChannelPoint as _lnrpc_ChannelPoint } from '../lnrpc/ChannelPoint'; import type { PendingUpdatePartial as _lnrpc_PendingUpdatePartial, PendingUpdate as _lnrpc_PendingUpdate } from '../lnrpc/PendingUpdate'; +import type { ChannelCommitUpdatePartial as _lnrpc_ChannelCommitUpdatePartial, ChannelCommitUpdate as _lnrpc_ChannelCommitUpdate } from '../lnrpc/ChannelCommitUpdate'; // Original file: protos/lightning.proto @@ -15,6 +16,7 @@ export const _lnrpc_ChannelEventUpdate_UpdateType = { PENDING_OPEN_CHANNEL: 'PENDING_OPEN_CHANNEL', FULLY_RESOLVED_CHANNEL: 'FULLY_RESOLVED_CHANNEL', CHANNEL_FUNDING_TIMEOUT: 'CHANNEL_FUNDING_TIMEOUT', + CHANNEL_UPDATE: 'CHANNEL_UPDATE', } as const; export type _lnrpc_ChannelEventUpdate_UpdateTypePartial = @@ -32,6 +34,8 @@ export type _lnrpc_ChannelEventUpdate_UpdateTypePartial = | 5 | 'CHANNEL_FUNDING_TIMEOUT' | 6 + | 'CHANNEL_UPDATE' + | 7 export type _lnrpc_ChannelEventUpdate_UpdateType = typeof _lnrpc_ChannelEventUpdate_UpdateType[keyof typeof _lnrpc_ChannelEventUpdate_UpdateType] @@ -44,7 +48,8 @@ export interface ChannelEventUpdatePartial { 'pendingOpenChannel'?: (_lnrpc_PendingUpdatePartial | null); 'fullyResolvedChannel'?: (_lnrpc_ChannelPointPartial | null); 'channelFundingTimeout'?: (_lnrpc_ChannelPointPartial | null); - 'channel'?: "openChannel"|"closedChannel"|"activeChannel"|"inactiveChannel"|"pendingOpenChannel"|"fullyResolvedChannel"|"channelFundingTimeout"; + 'updatedChannel'?: (_lnrpc_ChannelCommitUpdatePartial | null); + 'channel'?: "openChannel"|"closedChannel"|"activeChannel"|"inactiveChannel"|"pendingOpenChannel"|"fullyResolvedChannel"|"channelFundingTimeout"|"updatedChannel"; } export interface ChannelEventUpdate { @@ -56,5 +61,6 @@ export interface ChannelEventUpdate { 'pendingOpenChannel'?: (_lnrpc_PendingUpdate | null); 'fullyResolvedChannel'?: (_lnrpc_ChannelPoint | null); 'channelFundingTimeout'?: (_lnrpc_ChannelPoint | null); - 'channel': "openChannel"|"closedChannel"|"activeChannel"|"inactiveChannel"|"pendingOpenChannel"|"fullyResolvedChannel"|"channelFundingTimeout"; + 'updatedChannel'?: (_lnrpc_ChannelCommitUpdate | null); + 'channel': "openChannel"|"closedChannel"|"activeChannel"|"inactiveChannel"|"pendingOpenChannel"|"fullyResolvedChannel"|"channelFundingTimeout"|"updatedChannel"; } diff --git a/src/types/lnrpc/CommitmentType.ts b/src/types/lnrpc/CommitmentType.ts index 9b07a2e..a6f4ea0 100644 --- a/src/types/lnrpc/CommitmentType.ts +++ b/src/types/lnrpc/CommitmentType.ts @@ -7,6 +7,7 @@ export const CommitmentType = { ANCHORS: 'ANCHORS', SCRIPT_ENFORCED_LEASE: 'SCRIPT_ENFORCED_LEASE', SIMPLE_TAPROOT: 'SIMPLE_TAPROOT', + SIMPLE_TAPROOT_FINAL: 'SIMPLE_TAPROOT_FINAL', SIMPLE_TAPROOT_OVERLAY: 'SIMPLE_TAPROOT_OVERLAY', } as const; @@ -23,6 +24,8 @@ export type CommitmentTypePartial = | 4 | 'SIMPLE_TAPROOT' | 5 + | 'SIMPLE_TAPROOT_FINAL' + | 7 | 'SIMPLE_TAPROOT_OVERLAY' | 6 diff --git a/src/types/lnrpc/EstimateFeeRequest.ts b/src/types/lnrpc/EstimateFeeRequest.ts index aed0233..a278666 100644 --- a/src/types/lnrpc/EstimateFeeRequest.ts +++ b/src/types/lnrpc/EstimateFeeRequest.ts @@ -1,6 +1,7 @@ // Original file: protos/lightning.proto import type { CoinSelectionStrategyPartial as _lnrpc_CoinSelectionStrategyPartial, CoinSelectionStrategy as _lnrpc_CoinSelectionStrategy } from '../lnrpc/CoinSelectionStrategy'; +import type { OutPointPartial as _lnrpc_OutPointPartial, OutPoint as _lnrpc_OutPoint } from '../lnrpc/OutPoint'; import type { Long } from '@grpc/proto-loader'; export interface EstimateFeeRequestPartial { @@ -9,6 +10,7 @@ export interface EstimateFeeRequestPartial { 'minConfs'?: (number); 'spendUnconfirmed'?: (boolean); 'coinSelectionStrategy'?: (_lnrpc_CoinSelectionStrategyPartial); + 'inputs'?: (_lnrpc_OutPointPartial)[]; } export interface EstimateFeeRequest { @@ -17,4 +19,5 @@ export interface EstimateFeeRequest { 'minConfs': (number); 'spendUnconfirmed': (boolean); 'coinSelectionStrategy': (_lnrpc_CoinSelectionStrategy); + 'inputs': (_lnrpc_OutPoint)[]; } diff --git a/src/types/lnrpc/EstimateFeeResponse.ts b/src/types/lnrpc/EstimateFeeResponse.ts index c2a51ad..e8ff143 100644 --- a/src/types/lnrpc/EstimateFeeResponse.ts +++ b/src/types/lnrpc/EstimateFeeResponse.ts @@ -1,15 +1,18 @@ // Original file: protos/lightning.proto +import type { OutPointPartial as _lnrpc_OutPointPartial, OutPoint as _lnrpc_OutPoint } from '../lnrpc/OutPoint'; import type { Long } from '@grpc/proto-loader'; export interface EstimateFeeResponsePartial { 'feeSat'?: (number | string | Long); 'feerateSatPerByte'?: (number | string | Long); 'satPerVbyte'?: (number | string | Long); + 'inputs'?: (_lnrpc_OutPointPartial)[]; } export interface EstimateFeeResponse { 'feeSat': (string); 'feerateSatPerByte': (string); 'satPerVbyte': (string); + 'inputs': (_lnrpc_OutPoint)[]; } diff --git a/src/types/lnrpc/GetDebugInfoRequest.ts b/src/types/lnrpc/GetDebugInfoRequest.ts index 7174b6d..7b51ad5 100644 --- a/src/types/lnrpc/GetDebugInfoRequest.ts +++ b/src/types/lnrpc/GetDebugInfoRequest.ts @@ -2,7 +2,9 @@ export interface GetDebugInfoRequestPartial { + 'includeLog'?: (boolean); } export interface GetDebugInfoRequest { + 'includeLog': (boolean); } diff --git a/src/types/lnrpc/GetInfoResponse.ts b/src/types/lnrpc/GetInfoResponse.ts index 8f6e8d5..c90ecdc 100644 --- a/src/types/lnrpc/GetInfoResponse.ts +++ b/src/types/lnrpc/GetInfoResponse.ts @@ -2,6 +2,7 @@ import type { ChainPartial as _lnrpc_ChainPartial, Chain as _lnrpc_Chain } from '../lnrpc/Chain'; import type { FeaturePartial as _lnrpc_FeaturePartial, Feature as _lnrpc_Feature } from '../lnrpc/Feature'; +import type { GraphCacheStatusPartial as _lnrpc_GraphCacheStatusPartial, GraphCacheStatus as _lnrpc_GraphCacheStatus } from '../lnrpc/GraphCacheStatus'; import type { Long } from '@grpc/proto-loader'; export interface GetInfoResponsePartial { @@ -25,6 +26,8 @@ export interface GetInfoResponsePartial { 'commitHash'?: (string); 'requireHtlcInterceptor'?: (boolean); 'storeFinalHtlcResolutions'?: (boolean); + 'walletSynced'?: (boolean); + 'graphCacheStatus'?: (_lnrpc_GraphCacheStatusPartial); } export interface GetInfoResponse { @@ -48,4 +51,6 @@ export interface GetInfoResponse { 'commitHash': (string); 'requireHtlcInterceptor': (boolean); 'storeFinalHtlcResolutions': (boolean); + 'walletSynced': (boolean); + 'graphCacheStatus': (_lnrpc_GraphCacheStatus); } diff --git a/src/types/lnrpc/GraphCacheStatus.ts b/src/types/lnrpc/GraphCacheStatus.ts new file mode 100644 index 0000000..c21c3b9 --- /dev/null +++ b/src/types/lnrpc/GraphCacheStatus.ts @@ -0,0 +1,20 @@ +// Original file: protos/lightning.proto + +export const GraphCacheStatus = { + GRAPH_CACHE_STATUS_DISABLED: 'GRAPH_CACHE_STATUS_DISABLED', + GRAPH_CACHE_STATUS_LOADING: 'GRAPH_CACHE_STATUS_LOADING', + GRAPH_CACHE_STATUS_LOADED: 'GRAPH_CACHE_STATUS_LOADED', + GRAPH_CACHE_STATUS_FAILED: 'GRAPH_CACHE_STATUS_FAILED', +} as const; + +export type GraphCacheStatusPartial = + | 'GRAPH_CACHE_STATUS_DISABLED' + | 0 + | 'GRAPH_CACHE_STATUS_LOADING' + | 1 + | 'GRAPH_CACHE_STATUS_LOADED' + | 2 + | 'GRAPH_CACHE_STATUS_FAILED' + | 3 + +export type GraphCacheStatus = typeof GraphCacheStatus[keyof typeof GraphCacheStatus] diff --git a/src/types/lnrpc/Lightning.ts b/src/types/lnrpc/Lightning.ts index 048b976..105a2b2 100644 --- a/src/types/lnrpc/Lightning.ts +++ b/src/types/lnrpc/Lightning.ts @@ -91,6 +91,7 @@ import type { NodeInfoPartial as _lnrpc_NodeInfoPartial, NodeInfo as _lnrpc_Node import type { NodeInfoRequestPartial as _lnrpc_NodeInfoRequestPartial, NodeInfoRequest as _lnrpc_NodeInfoRequest } from '../lnrpc/NodeInfoRequest'; import type { NodeMetricsRequestPartial as _lnrpc_NodeMetricsRequestPartial, NodeMetricsRequest as _lnrpc_NodeMetricsRequest } from '../lnrpc/NodeMetricsRequest'; import type { NodeMetricsResponsePartial as _lnrpc_NodeMetricsResponsePartial, NodeMetricsResponse as _lnrpc_NodeMetricsResponse } from '../lnrpc/NodeMetricsResponse'; +import type { OnionMessageUpdatePartial as _lnrpc_OnionMessageUpdatePartial, OnionMessageUpdate as _lnrpc_OnionMessageUpdate } from '../lnrpc/OnionMessageUpdate'; import type { OpenChannelRequestPartial as _lnrpc_OpenChannelRequestPartial, OpenChannelRequest as _lnrpc_OpenChannelRequest } from '../lnrpc/OpenChannelRequest'; import type { OpenStatusUpdatePartial as _lnrpc_OpenStatusUpdatePartial, OpenStatusUpdate as _lnrpc_OpenStatusUpdate } from '../lnrpc/OpenStatusUpdate'; import type { PayReqPartial as _lnrpc_PayReqPartial, PayReq as _lnrpc_PayReq } from '../lnrpc/PayReq'; @@ -114,6 +115,8 @@ import type { SendCustomMessageRequestPartial as _lnrpc_SendCustomMessageRequest import type { SendCustomMessageResponsePartial as _lnrpc_SendCustomMessageResponsePartial, SendCustomMessageResponse as _lnrpc_SendCustomMessageResponse } from '../lnrpc/SendCustomMessageResponse'; import type { SendManyRequestPartial as _lnrpc_SendManyRequestPartial, SendManyRequest as _lnrpc_SendManyRequest } from '../lnrpc/SendManyRequest'; import type { SendManyResponsePartial as _lnrpc_SendManyResponsePartial, SendManyResponse as _lnrpc_SendManyResponse } from '../lnrpc/SendManyResponse'; +import type { SendOnionMessageRequestPartial as _lnrpc_SendOnionMessageRequestPartial, SendOnionMessageRequest as _lnrpc_SendOnionMessageRequest } from '../lnrpc/SendOnionMessageRequest'; +import type { SendOnionMessageResponsePartial as _lnrpc_SendOnionMessageResponsePartial, SendOnionMessageResponse as _lnrpc_SendOnionMessageResponse } from '../lnrpc/SendOnionMessageResponse'; import type { SendRequestPartial as _lnrpc_SendRequestPartial, SendRequest as _lnrpc_SendRequest } from '../lnrpc/SendRequest'; import type { SendResponsePartial as _lnrpc_SendResponsePartial, SendResponse as _lnrpc_SendResponse } from '../lnrpc/SendResponse'; import type { SendToRouteRequestPartial as _lnrpc_SendToRouteRequestPartial, SendToRouteRequest as _lnrpc_SendToRouteRequest } from '../lnrpc/SendToRouteRequest'; @@ -122,6 +125,7 @@ import type { SignMessageResponsePartial as _lnrpc_SignMessageResponsePartial, S import type { StopRequestPartial as _lnrpc_StopRequestPartial, StopRequest as _lnrpc_StopRequest } from '../lnrpc/StopRequest'; import type { StopResponsePartial as _lnrpc_StopResponsePartial, StopResponse as _lnrpc_StopResponse } from '../lnrpc/StopResponse'; import type { SubscribeCustomMessagesRequestPartial as _lnrpc_SubscribeCustomMessagesRequestPartial, SubscribeCustomMessagesRequest as _lnrpc_SubscribeCustomMessagesRequest } from '../lnrpc/SubscribeCustomMessagesRequest'; +import type { SubscribeOnionMessagesRequestPartial as _lnrpc_SubscribeOnionMessagesRequestPartial, SubscribeOnionMessagesRequest as _lnrpc_SubscribeOnionMessagesRequest } from '../lnrpc/SubscribeOnionMessagesRequest'; import type { TransactionPartial as _lnrpc_TransactionPartial, Transaction as _lnrpc_Transaction } from '../lnrpc/Transaction'; import type { TransactionDetailsPartial as _lnrpc_TransactionDetailsPartial, TransactionDetails as _lnrpc_TransactionDetails } from '../lnrpc/TransactionDetails'; import type { VerifyChanBackupResponsePartial as _lnrpc_VerifyChanBackupResponsePartial, VerifyChanBackupResponse as _lnrpc_VerifyChanBackupResponse } from '../lnrpc/VerifyChanBackupResponse'; @@ -583,6 +587,15 @@ export interface LightningClient extends grpc.Client { sendMany(argument: _lnrpc_SendManyRequestPartial, options: grpc.CallOptions, callback: grpc.requestCallback<_lnrpc_SendManyResponse>): grpc.ClientUnaryCall; sendMany(argument: _lnrpc_SendManyRequestPartial, callback: grpc.requestCallback<_lnrpc_SendManyResponse>): grpc.ClientUnaryCall; + SendOnionMessage(argument: _lnrpc_SendOnionMessageRequestPartial, metadata: grpc.Metadata, options: grpc.CallOptions, callback: grpc.requestCallback<_lnrpc_SendOnionMessageResponse>): grpc.ClientUnaryCall; + SendOnionMessage(argument: _lnrpc_SendOnionMessageRequestPartial, metadata: grpc.Metadata, callback: grpc.requestCallback<_lnrpc_SendOnionMessageResponse>): grpc.ClientUnaryCall; + SendOnionMessage(argument: _lnrpc_SendOnionMessageRequestPartial, options: grpc.CallOptions, callback: grpc.requestCallback<_lnrpc_SendOnionMessageResponse>): grpc.ClientUnaryCall; + SendOnionMessage(argument: _lnrpc_SendOnionMessageRequestPartial, callback: grpc.requestCallback<_lnrpc_SendOnionMessageResponse>): grpc.ClientUnaryCall; + sendOnionMessage(argument: _lnrpc_SendOnionMessageRequestPartial, metadata: grpc.Metadata, options: grpc.CallOptions, callback: grpc.requestCallback<_lnrpc_SendOnionMessageResponse>): grpc.ClientUnaryCall; + sendOnionMessage(argument: _lnrpc_SendOnionMessageRequestPartial, metadata: grpc.Metadata, callback: grpc.requestCallback<_lnrpc_SendOnionMessageResponse>): grpc.ClientUnaryCall; + sendOnionMessage(argument: _lnrpc_SendOnionMessageRequestPartial, options: grpc.CallOptions, callback: grpc.requestCallback<_lnrpc_SendOnionMessageResponse>): grpc.ClientUnaryCall; + sendOnionMessage(argument: _lnrpc_SendOnionMessageRequestPartial, callback: grpc.requestCallback<_lnrpc_SendOnionMessageResponse>): grpc.ClientUnaryCall; + SendPayment(metadata: grpc.Metadata, options?: grpc.CallOptions): grpc.ClientDuplexStream<_lnrpc_SendRequestPartial, _lnrpc_SendResponse>; SendPayment(options?: grpc.CallOptions): grpc.ClientDuplexStream<_lnrpc_SendRequestPartial, _lnrpc_SendResponse>; sendPayment(metadata: grpc.Metadata, options?: grpc.CallOptions): grpc.ClientDuplexStream<_lnrpc_SendRequestPartial, _lnrpc_SendResponse>; @@ -654,6 +667,11 @@ export interface LightningClient extends grpc.Client { subscribeInvoices(argument: _lnrpc_InvoiceSubscriptionPartial, metadata: grpc.Metadata, options?: grpc.CallOptions): grpc.ClientReadableStream<_lnrpc_Invoice>; subscribeInvoices(argument: _lnrpc_InvoiceSubscriptionPartial, options?: grpc.CallOptions): grpc.ClientReadableStream<_lnrpc_Invoice>; + SubscribeOnionMessages(argument: _lnrpc_SubscribeOnionMessagesRequestPartial, metadata: grpc.Metadata, options?: grpc.CallOptions): grpc.ClientReadableStream<_lnrpc_OnionMessageUpdate>; + SubscribeOnionMessages(argument: _lnrpc_SubscribeOnionMessagesRequestPartial, options?: grpc.CallOptions): grpc.ClientReadableStream<_lnrpc_OnionMessageUpdate>; + subscribeOnionMessages(argument: _lnrpc_SubscribeOnionMessagesRequestPartial, metadata: grpc.Metadata, options?: grpc.CallOptions): grpc.ClientReadableStream<_lnrpc_OnionMessageUpdate>; + subscribeOnionMessages(argument: _lnrpc_SubscribeOnionMessagesRequestPartial, options?: grpc.CallOptions): grpc.ClientReadableStream<_lnrpc_OnionMessageUpdate>; + SubscribePeerEvents(argument: _lnrpc_PeerEventSubscriptionPartial, metadata: grpc.Metadata, options?: grpc.CallOptions): grpc.ClientReadableStream<_lnrpc_PeerEvent>; SubscribePeerEvents(argument: _lnrpc_PeerEventSubscriptionPartial, options?: grpc.CallOptions): grpc.ClientReadableStream<_lnrpc_PeerEvent>; subscribePeerEvents(argument: _lnrpc_PeerEventSubscriptionPartial, metadata: grpc.Metadata, options?: grpc.CallOptions): grpc.ClientReadableStream<_lnrpc_PeerEvent>; @@ -807,6 +825,8 @@ export interface LightningHandlers extends grpc.UntypedServiceImplementation { SendMany: grpc.handleUnaryCall<_lnrpc_SendManyRequest, _lnrpc_SendManyResponsePartial>; + SendOnionMessage: grpc.handleUnaryCall<_lnrpc_SendOnionMessageRequest, _lnrpc_SendOnionMessageResponsePartial>; + SendPayment: grpc.handleBidiStreamingCall<_lnrpc_SendRequest, _lnrpc_SendResponsePartial>; SendPaymentSync: grpc.handleUnaryCall<_lnrpc_SendRequest, _lnrpc_SendResponsePartial>; @@ -829,6 +849,8 @@ export interface LightningHandlers extends grpc.UntypedServiceImplementation { SubscribeInvoices: grpc.handleServerStreamingCall<_lnrpc_InvoiceSubscription, _lnrpc_InvoicePartial>; + SubscribeOnionMessages: grpc.handleServerStreamingCall<_lnrpc_SubscribeOnionMessagesRequest, _lnrpc_OnionMessageUpdatePartial>; + SubscribePeerEvents: grpc.handleServerStreamingCall<_lnrpc_PeerEventSubscription, _lnrpc_PeerEventPartial>; SubscribeTransactions: grpc.handleServerStreamingCall<_lnrpc_GetTransactionsRequest, _lnrpc_TransactionPartial>; @@ -896,6 +918,7 @@ export interface LightningDefinition extends grpc.ServiceDefinition { SendCoins: MethodDefinition<_lnrpc_SendCoinsRequestPartial, _lnrpc_SendCoinsResponsePartial, _lnrpc_SendCoinsRequest, _lnrpc_SendCoinsResponse> SendCustomMessage: MethodDefinition<_lnrpc_SendCustomMessageRequestPartial, _lnrpc_SendCustomMessageResponsePartial, _lnrpc_SendCustomMessageRequest, _lnrpc_SendCustomMessageResponse> SendMany: MethodDefinition<_lnrpc_SendManyRequestPartial, _lnrpc_SendManyResponsePartial, _lnrpc_SendManyRequest, _lnrpc_SendManyResponse> + SendOnionMessage: MethodDefinition<_lnrpc_SendOnionMessageRequestPartial, _lnrpc_SendOnionMessageResponsePartial, _lnrpc_SendOnionMessageRequest, _lnrpc_SendOnionMessageResponse> SendPayment: MethodDefinition<_lnrpc_SendRequestPartial, _lnrpc_SendResponsePartial, _lnrpc_SendRequest, _lnrpc_SendResponse> SendPaymentSync: MethodDefinition<_lnrpc_SendRequestPartial, _lnrpc_SendResponsePartial, _lnrpc_SendRequest, _lnrpc_SendResponse> SendToRoute: MethodDefinition<_lnrpc_SendToRouteRequestPartial, _lnrpc_SendResponsePartial, _lnrpc_SendToRouteRequest, _lnrpc_SendResponse> @@ -907,6 +930,7 @@ export interface LightningDefinition extends grpc.ServiceDefinition { SubscribeChannelGraph: MethodDefinition<_lnrpc_GraphTopologySubscriptionPartial, _lnrpc_GraphTopologyUpdatePartial, _lnrpc_GraphTopologySubscription, _lnrpc_GraphTopologyUpdate> SubscribeCustomMessages: MethodDefinition<_lnrpc_SubscribeCustomMessagesRequestPartial, _lnrpc_CustomMessagePartial, _lnrpc_SubscribeCustomMessagesRequest, _lnrpc_CustomMessage> SubscribeInvoices: MethodDefinition<_lnrpc_InvoiceSubscriptionPartial, _lnrpc_InvoicePartial, _lnrpc_InvoiceSubscription, _lnrpc_Invoice> + SubscribeOnionMessages: MethodDefinition<_lnrpc_SubscribeOnionMessagesRequestPartial, _lnrpc_OnionMessageUpdatePartial, _lnrpc_SubscribeOnionMessagesRequest, _lnrpc_OnionMessageUpdate> SubscribePeerEvents: MethodDefinition<_lnrpc_PeerEventSubscriptionPartial, _lnrpc_PeerEventPartial, _lnrpc_PeerEventSubscription, _lnrpc_PeerEvent> SubscribeTransactions: MethodDefinition<_lnrpc_GetTransactionsRequestPartial, _lnrpc_TransactionPartial, _lnrpc_GetTransactionsRequest, _lnrpc_Transaction> UpdateChannelPolicy: MethodDefinition<_lnrpc_PolicyUpdateRequestPartial, _lnrpc_PolicyUpdateResponsePartial, _lnrpc_PolicyUpdateRequest, _lnrpc_PolicyUpdateResponse> diff --git a/src/types/lnrpc/ListPaymentsRequest.ts b/src/types/lnrpc/ListPaymentsRequest.ts index 93f7592..430b024 100644 --- a/src/types/lnrpc/ListPaymentsRequest.ts +++ b/src/types/lnrpc/ListPaymentsRequest.ts @@ -10,6 +10,7 @@ export interface ListPaymentsRequestPartial { 'countTotalPayments'?: (boolean); 'creationDateStart'?: (number | string | Long); 'creationDateEnd'?: (number | string | Long); + 'omitHops'?: (boolean); } export interface ListPaymentsRequest { @@ -20,4 +21,5 @@ export interface ListPaymentsRequest { 'countTotalPayments': (boolean); 'creationDateStart': (string); 'creationDateEnd': (string); + 'omitHops': (boolean); } diff --git a/src/types/lnrpc/OnionMessageUpdate.ts b/src/types/lnrpc/OnionMessageUpdate.ts new file mode 100644 index 0000000..a6913f2 --- /dev/null +++ b/src/types/lnrpc/OnionMessageUpdate.ts @@ -0,0 +1,21 @@ +// Original file: protos/lightning.proto + +import type { BlindedPathPartial as _lnrpc_BlindedPathPartial, BlindedPath as _lnrpc_BlindedPath } from '../lnrpc/BlindedPath'; + +export interface OnionMessageUpdatePartial { + 'peer'?: (Buffer | Uint8Array | string); + 'pathKey'?: (Buffer | Uint8Array | string); + 'onion'?: (Buffer | Uint8Array | string); + 'replyPath'?: (_lnrpc_BlindedPathPartial | null); + 'encryptedRecipientData'?: (Buffer | Uint8Array | string); + 'customRecords'?: ({[key: number]: Buffer | Uint8Array | string}); +} + +export interface OnionMessageUpdate { + 'peer': (Buffer); + 'pathKey': (Buffer); + 'onion': (Buffer); + 'replyPath': (_lnrpc_BlindedPath | null); + 'encryptedRecipientData': (Buffer); + 'customRecords': ({[key: number]: Buffer}); +} diff --git a/src/types/lnrpc/PendingChannelsResponse.ts b/src/types/lnrpc/PendingChannelsResponse.ts index e44a8f3..ce65742 100644 --- a/src/types/lnrpc/PendingChannelsResponse.ts +++ b/src/types/lnrpc/PendingChannelsResponse.ts @@ -133,6 +133,8 @@ export interface _lnrpc_PendingChannelsResponse_WaitingCloseChannelPartial { 'commitments'?: (_lnrpc_PendingChannelsResponse_CommitmentsPartial | null); 'closingTxid'?: (string); 'closingTxHex'?: (string); + 'blocksTilCloseConfirmed'?: (number); + 'closeHeight'?: (number); } export interface _lnrpc_PendingChannelsResponse_WaitingCloseChannel { @@ -141,6 +143,8 @@ export interface _lnrpc_PendingChannelsResponse_WaitingCloseChannel { 'commitments': (_lnrpc_PendingChannelsResponse_Commitments | null); 'closingTxid': (string); 'closingTxHex': (string); + 'blocksTilCloseConfirmed': (number); + 'closeHeight': (number); } export interface PendingChannelsResponsePartial { diff --git a/src/types/lnrpc/SendOnionMessageRequest.ts b/src/types/lnrpc/SendOnionMessageRequest.ts new file mode 100644 index 0000000..3cc75fb --- /dev/null +++ b/src/types/lnrpc/SendOnionMessageRequest.ts @@ -0,0 +1,14 @@ +// Original file: protos/lightning.proto + + +export interface SendOnionMessageRequestPartial { + 'peer'?: (Buffer | Uint8Array | string); + 'pathKey'?: (Buffer | Uint8Array | string); + 'onion'?: (Buffer | Uint8Array | string); +} + +export interface SendOnionMessageRequest { + 'peer': (Buffer); + 'pathKey': (Buffer); + 'onion': (Buffer); +} diff --git a/src/types/lnrpc/SendOnionMessageResponse.ts b/src/types/lnrpc/SendOnionMessageResponse.ts new file mode 100644 index 0000000..3741fa0 --- /dev/null +++ b/src/types/lnrpc/SendOnionMessageResponse.ts @@ -0,0 +1,10 @@ +// Original file: protos/lightning.proto + + +export interface SendOnionMessageResponsePartial { + 'status'?: (string); +} + +export interface SendOnionMessageResponse { + 'status': (string); +} diff --git a/src/types/lnrpc/SubscribeOnionMessagesRequest.ts b/src/types/lnrpc/SubscribeOnionMessagesRequest.ts new file mode 100644 index 0000000..ede6d63 --- /dev/null +++ b/src/types/lnrpc/SubscribeOnionMessagesRequest.ts @@ -0,0 +1,8 @@ +// Original file: protos/lightning.proto + + +export interface SubscribeOnionMessagesRequestPartial { +} + +export interface SubscribeOnionMessagesRequest { +} diff --git a/src/types/lnrpc/index.ts b/src/types/lnrpc/index.ts index 5dcb9a0..38c05c2 100644 --- a/src/types/lnrpc/index.ts +++ b/src/types/lnrpc/index.ts @@ -32,6 +32,7 @@ export * from './ChannelBalanceRequest'; export * from './ChannelBalanceResponse'; export * from './ChannelCloseSummary'; export * from './ChannelCloseUpdate'; +export * from './ChannelCommitUpdate'; export * from './ChannelConstraints'; export * from './ChannelEdge'; export * from './ChannelEdgeUpdate'; @@ -96,6 +97,7 @@ export * from './GetInfoResponse'; export * from './GetRecoveryInfoRequest'; export * from './GetRecoveryInfoResponse'; export * from './GetTransactionsRequest'; +export * from './GraphCacheStatus'; export * from './GraphTopologySubscription'; export * from './GraphTopologyUpdate'; export * from './HTLC'; @@ -152,6 +154,7 @@ export * from './NodeMetricsRequest'; export * from './NodeMetricsResponse'; export * from './NodePair'; export * from './NodeUpdate'; +export * from './OnionMessageUpdate'; export * from './Op'; export * from './OpenChannelRequest'; export * from './OpenStatusUpdate'; @@ -194,6 +197,8 @@ export * from './SendCustomMessageRequest'; export * from './SendCustomMessageResponse'; export * from './SendManyRequest'; export * from './SendManyResponse'; +export * from './SendOnionMessageRequest'; +export * from './SendOnionMessageResponse'; export * from './SendRequest'; export * from './SendResponse'; export * from './SendToRouteRequest'; @@ -204,6 +209,7 @@ export * from './StopRequest'; export * from './StopResponse'; export * from './StreamAuth'; export * from './SubscribeCustomMessagesRequest'; +export * from './SubscribeOnionMessagesRequest'; export * from './TimestampedError'; export * from './Transaction'; export * from './TransactionDetails'; diff --git a/src/types/priceoraclerpc/QueryAssetRatesRequest.ts b/src/types/priceoraclerpc/QueryAssetRatesRequest.ts index 476fe4e..8f62c60 100644 --- a/src/types/priceoraclerpc/QueryAssetRatesRequest.ts +++ b/src/types/priceoraclerpc/QueryAssetRatesRequest.ts @@ -16,6 +16,7 @@ export interface QueryAssetRatesRequestPartial { 'intent'?: (_priceoraclerpc_IntentPartial); 'counterpartyId'?: (Buffer | Uint8Array | string); 'metadata'?: (string); + 'nodeId'?: (Buffer | Uint8Array | string); } export interface QueryAssetRatesRequest { @@ -28,4 +29,5 @@ export interface QueryAssetRatesRequest { 'intent': (_priceoraclerpc_Intent); 'counterpartyId': (Buffer); 'metadata': (string); + 'nodeId': (Buffer); } diff --git a/src/types/routerrpc/DeleteForwardingHistoryRequest.ts b/src/types/routerrpc/DeleteForwardingHistoryRequest.ts new file mode 100644 index 0000000..f14d812 --- /dev/null +++ b/src/types/routerrpc/DeleteForwardingHistoryRequest.ts @@ -0,0 +1,15 @@ +// Original file: protos/routerrpc/router.proto + +import type { Long } from '@grpc/proto-loader'; + +export interface DeleteForwardingHistoryRequestPartial { + 'deleteBeforeTime'?: (number | string | Long); + 'deleteBeforeDuration'?: (string); + 'timeSpec'?: "deleteBeforeTime"|"deleteBeforeDuration"; +} + +export interface DeleteForwardingHistoryRequest { + 'deleteBeforeTime'?: (string); + 'deleteBeforeDuration'?: (string); + 'timeSpec': "deleteBeforeTime"|"deleteBeforeDuration"; +} diff --git a/src/types/routerrpc/DeleteForwardingHistoryResponse.ts b/src/types/routerrpc/DeleteForwardingHistoryResponse.ts new file mode 100644 index 0000000..8a695c1 --- /dev/null +++ b/src/types/routerrpc/DeleteForwardingHistoryResponse.ts @@ -0,0 +1,15 @@ +// Original file: protos/routerrpc/router.proto + +import type { Long } from '@grpc/proto-loader'; + +export interface DeleteForwardingHistoryResponsePartial { + 'eventsDeleted'?: (number | string | Long); + 'totalFeeMsat'?: (number | string | Long); + 'status'?: (string); +} + +export interface DeleteForwardingHistoryResponse { + 'eventsDeleted': (string); + 'totalFeeMsat': (string); + 'status': (string); +} diff --git a/src/types/routerrpc/FailureDetail.ts b/src/types/routerrpc/FailureDetail.ts index 5b5c277..be56122 100644 --- a/src/types/routerrpc/FailureDetail.ts +++ b/src/types/routerrpc/FailureDetail.ts @@ -24,6 +24,11 @@ export const FailureDetail = { INVALID_KEYSEND: 'INVALID_KEYSEND', MPP_IN_PROGRESS: 'MPP_IN_PROGRESS', CIRCULAR_ROUTE: 'CIRCULAR_ROUTE', + INVOICE_ALREADY_SETTLED: 'INVOICE_ALREADY_SETTLED', + HTLC_INVOICE_TYPE_MISMATCH: 'HTLC_INVOICE_TYPE_MISMATCH', + AMP_ERROR: 'AMP_ERROR', + AMP_RECONSTRUCTION: 'AMP_RECONSTRUCTION', + EXTERNAL_VALIDATION_FAILED: 'EXTERNAL_VALIDATION_FAILED', } as const; export type FailureDetailPartial = @@ -73,5 +78,15 @@ export type FailureDetailPartial = | 21 | 'CIRCULAR_ROUTE' | 22 + | 'INVOICE_ALREADY_SETTLED' + | 23 + | 'HTLC_INVOICE_TYPE_MISMATCH' + | 24 + | 'AMP_ERROR' + | 25 + | 'AMP_RECONSTRUCTION' + | 26 + | 'EXTERNAL_VALIDATION_FAILED' + | 27 export type FailureDetail = typeof FailureDetail[keyof typeof FailureDetail] diff --git a/src/types/routerrpc/Router.ts b/src/types/routerrpc/Router.ts index 325ab85..7510268 100644 --- a/src/types/routerrpc/Router.ts +++ b/src/types/routerrpc/Router.ts @@ -8,6 +8,8 @@ import type { BuildRouteRequestPartial as _routerrpc_BuildRouteRequestPartial, B import type { BuildRouteResponsePartial as _routerrpc_BuildRouteResponsePartial, BuildRouteResponse as _routerrpc_BuildRouteResponse } from '../routerrpc/BuildRouteResponse'; import type { DeleteAliasesRequestPartial as _routerrpc_DeleteAliasesRequestPartial, DeleteAliasesRequest as _routerrpc_DeleteAliasesRequest } from '../routerrpc/DeleteAliasesRequest'; import type { DeleteAliasesResponsePartial as _routerrpc_DeleteAliasesResponsePartial, DeleteAliasesResponse as _routerrpc_DeleteAliasesResponse } from '../routerrpc/DeleteAliasesResponse'; +import type { DeleteForwardingHistoryRequestPartial as _routerrpc_DeleteForwardingHistoryRequestPartial, DeleteForwardingHistoryRequest as _routerrpc_DeleteForwardingHistoryRequest } from '../routerrpc/DeleteForwardingHistoryRequest'; +import type { DeleteForwardingHistoryResponsePartial as _routerrpc_DeleteForwardingHistoryResponsePartial, DeleteForwardingHistoryResponse as _routerrpc_DeleteForwardingHistoryResponse } from '../routerrpc/DeleteForwardingHistoryResponse'; import type { FindBaseAliasRequestPartial as _routerrpc_FindBaseAliasRequestPartial, FindBaseAliasRequest as _routerrpc_FindBaseAliasRequest } from '../routerrpc/FindBaseAliasRequest'; import type { FindBaseAliasResponsePartial as _routerrpc_FindBaseAliasResponsePartial, FindBaseAliasResponse as _routerrpc_FindBaseAliasResponse } from '../routerrpc/FindBaseAliasResponse'; import type { ForwardHtlcInterceptRequestPartial as _routerrpc_ForwardHtlcInterceptRequestPartial, ForwardHtlcInterceptRequest as _routerrpc_ForwardHtlcInterceptRequest } from '../routerrpc/ForwardHtlcInterceptRequest'; @@ -49,6 +51,15 @@ export interface RouterClient extends grpc.Client { buildRoute(argument: _routerrpc_BuildRouteRequestPartial, options: grpc.CallOptions, callback: grpc.requestCallback<_routerrpc_BuildRouteResponse>): grpc.ClientUnaryCall; buildRoute(argument: _routerrpc_BuildRouteRequestPartial, callback: grpc.requestCallback<_routerrpc_BuildRouteResponse>): grpc.ClientUnaryCall; + DeleteForwardingHistory(argument: _routerrpc_DeleteForwardingHistoryRequestPartial, metadata: grpc.Metadata, options: grpc.CallOptions, callback: grpc.requestCallback<_routerrpc_DeleteForwardingHistoryResponse>): grpc.ClientUnaryCall; + DeleteForwardingHistory(argument: _routerrpc_DeleteForwardingHistoryRequestPartial, metadata: grpc.Metadata, callback: grpc.requestCallback<_routerrpc_DeleteForwardingHistoryResponse>): grpc.ClientUnaryCall; + DeleteForwardingHistory(argument: _routerrpc_DeleteForwardingHistoryRequestPartial, options: grpc.CallOptions, callback: grpc.requestCallback<_routerrpc_DeleteForwardingHistoryResponse>): grpc.ClientUnaryCall; + DeleteForwardingHistory(argument: _routerrpc_DeleteForwardingHistoryRequestPartial, callback: grpc.requestCallback<_routerrpc_DeleteForwardingHistoryResponse>): grpc.ClientUnaryCall; + deleteForwardingHistory(argument: _routerrpc_DeleteForwardingHistoryRequestPartial, metadata: grpc.Metadata, options: grpc.CallOptions, callback: grpc.requestCallback<_routerrpc_DeleteForwardingHistoryResponse>): grpc.ClientUnaryCall; + deleteForwardingHistory(argument: _routerrpc_DeleteForwardingHistoryRequestPartial, metadata: grpc.Metadata, callback: grpc.requestCallback<_routerrpc_DeleteForwardingHistoryResponse>): grpc.ClientUnaryCall; + deleteForwardingHistory(argument: _routerrpc_DeleteForwardingHistoryRequestPartial, options: grpc.CallOptions, callback: grpc.requestCallback<_routerrpc_DeleteForwardingHistoryResponse>): grpc.ClientUnaryCall; + deleteForwardingHistory(argument: _routerrpc_DeleteForwardingHistoryRequestPartial, callback: grpc.requestCallback<_routerrpc_DeleteForwardingHistoryResponse>): grpc.ClientUnaryCall; + EstimateRouteFee(argument: _routerrpc_RouteFeeRequestPartial, metadata: grpc.Metadata, options: grpc.CallOptions, callback: grpc.requestCallback<_routerrpc_RouteFeeResponse>): grpc.ClientUnaryCall; EstimateRouteFee(argument: _routerrpc_RouteFeeRequestPartial, metadata: grpc.Metadata, callback: grpc.requestCallback<_routerrpc_RouteFeeResponse>): grpc.ClientUnaryCall; EstimateRouteFee(argument: _routerrpc_RouteFeeRequestPartial, options: grpc.CallOptions, callback: grpc.requestCallback<_routerrpc_RouteFeeResponse>): grpc.ClientUnaryCall; @@ -206,6 +217,8 @@ export interface RouterClient extends grpc.Client { export interface RouterHandlers extends grpc.UntypedServiceImplementation { BuildRoute: grpc.handleUnaryCall<_routerrpc_BuildRouteRequest, _routerrpc_BuildRouteResponsePartial>; + DeleteForwardingHistory: grpc.handleUnaryCall<_routerrpc_DeleteForwardingHistoryRequest, _routerrpc_DeleteForwardingHistoryResponsePartial>; + EstimateRouteFee: grpc.handleUnaryCall<_routerrpc_RouteFeeRequest, _routerrpc_RouteFeeResponsePartial>; GetMissionControlConfig: grpc.handleUnaryCall<_routerrpc_GetMissionControlConfigRequest, _routerrpc_GetMissionControlConfigResponsePartial>; @@ -250,6 +263,7 @@ export interface RouterHandlers extends grpc.UntypedServiceImplementation { export interface RouterDefinition extends grpc.ServiceDefinition { BuildRoute: MethodDefinition<_routerrpc_BuildRouteRequestPartial, _routerrpc_BuildRouteResponsePartial, _routerrpc_BuildRouteRequest, _routerrpc_BuildRouteResponse> + DeleteForwardingHistory: MethodDefinition<_routerrpc_DeleteForwardingHistoryRequestPartial, _routerrpc_DeleteForwardingHistoryResponsePartial, _routerrpc_DeleteForwardingHistoryRequest, _routerrpc_DeleteForwardingHistoryResponse> EstimateRouteFee: MethodDefinition<_routerrpc_RouteFeeRequestPartial, _routerrpc_RouteFeeResponsePartial, _routerrpc_RouteFeeRequest, _routerrpc_RouteFeeResponse> GetMissionControlConfig: MethodDefinition<_routerrpc_GetMissionControlConfigRequestPartial, _routerrpc_GetMissionControlConfigResponsePartial, _routerrpc_GetMissionControlConfigRequest, _routerrpc_GetMissionControlConfigResponse> HtlcInterceptor: MethodDefinition<_routerrpc_ForwardHtlcInterceptResponsePartial, _routerrpc_ForwardHtlcInterceptRequestPartial, _routerrpc_ForwardHtlcInterceptResponse, _routerrpc_ForwardHtlcInterceptRequest> diff --git a/src/types/routerrpc/index.ts b/src/types/routerrpc/index.ts index 079b4de..0e884a2 100644 --- a/src/types/routerrpc/index.ts +++ b/src/types/routerrpc/index.ts @@ -8,6 +8,8 @@ export * from './ChanStatusAction'; export * from './CircuitKey'; export * from './DeleteAliasesRequest'; export * from './DeleteAliasesResponse'; +export * from './DeleteForwardingHistoryRequest'; +export * from './DeleteForwardingHistoryResponse'; export * from './FailureDetail'; export * from './FinalHtlcEvent'; export * from './FindBaseAliasRequest'; diff --git a/src/types/tapchannel.ts b/src/types/tapchannel.ts index f5bc0ab..b8c3392 100644 --- a/src/types/tapchannel.ts +++ b/src/types/tapchannel.ts @@ -47,6 +47,7 @@ export interface ProtoGrpcType { ChannelBalanceResponse: MessageTypeDefinition ChannelCloseSummary: MessageTypeDefinition ChannelCloseUpdate: MessageTypeDefinition + ChannelCommitUpdate: MessageTypeDefinition ChannelConstraints: MessageTypeDefinition ChannelEdge: MessageTypeDefinition ChannelEdgeUpdate: MessageTypeDefinition @@ -111,6 +112,7 @@ export interface ProtoGrpcType { GetRecoveryInfoRequest: MessageTypeDefinition GetRecoveryInfoResponse: MessageTypeDefinition GetTransactionsRequest: MessageTypeDefinition + GraphCacheStatus: EnumTypeDefinition GraphTopologySubscription: MessageTypeDefinition GraphTopologyUpdate: MessageTypeDefinition HTLC: MessageTypeDefinition @@ -167,6 +169,7 @@ export interface ProtoGrpcType { NodeMetricsResponse: MessageTypeDefinition NodePair: MessageTypeDefinition NodeUpdate: MessageTypeDefinition + OnionMessageUpdate: MessageTypeDefinition Op: MessageTypeDefinition OpenChannelRequest: MessageTypeDefinition OpenStatusUpdate: MessageTypeDefinition @@ -209,6 +212,8 @@ export interface ProtoGrpcType { SendCustomMessageResponse: MessageTypeDefinition SendManyRequest: MessageTypeDefinition SendManyResponse: MessageTypeDefinition + SendOnionMessageRequest: MessageTypeDefinition + SendOnionMessageResponse: MessageTypeDefinition SendRequest: MessageTypeDefinition SendResponse: MessageTypeDefinition SendToRouteRequest: MessageTypeDefinition @@ -219,6 +224,7 @@ export interface ProtoGrpcType { StopResponse: MessageTypeDefinition StreamAuth: MessageTypeDefinition SubscribeCustomMessagesRequest: MessageTypeDefinition + SubscribeOnionMessagesRequest: MessageTypeDefinition TimestampedError: MessageTypeDefinition Transaction: MessageTypeDefinition TransactionDetails: MessageTypeDefinition @@ -268,6 +274,8 @@ export interface ProtoGrpcType { CircuitKey: MessageTypeDefinition DeleteAliasesRequest: MessageTypeDefinition DeleteAliasesResponse: MessageTypeDefinition + DeleteForwardingHistoryRequest: MessageTypeDefinition + DeleteForwardingHistoryResponse: MessageTypeDefinition FailureDetail: EnumTypeDefinition FinalHtlcEvent: MessageTypeDefinition FindBaseAliasRequest: MessageTypeDefinition diff --git a/src/types/universe.ts b/src/types/universe.ts index b3a28c8..4938afa 100644 --- a/src/types/universe.ts +++ b/src/types/universe.ts @@ -125,6 +125,8 @@ export interface ProtoGrpcType { AssetStatsQuery: MessageTypeDefinition AssetStatsSnapshot: MessageTypeDefinition AssetTypeFilter: EnumTypeDefinition + DeleteAssetLeafRequest: MessageTypeDefinition + DeleteAssetLeafResponse: MessageTypeDefinition DeleteFederationServerRequest: MessageTypeDefinition DeleteFederationServerResponse: MessageTypeDefinition DeleteRootQuery: MessageTypeDefinition diff --git a/src/types/universerpc/DeleteAssetLeafRequest.ts b/src/types/universerpc/DeleteAssetLeafRequest.ts new file mode 100644 index 0000000..90cf6c3 --- /dev/null +++ b/src/types/universerpc/DeleteAssetLeafRequest.ts @@ -0,0 +1,11 @@ +// Original file: protos/universerpc/universe.proto + +import type { UniverseKeyPartial as _universerpc_UniverseKeyPartial, UniverseKey as _universerpc_UniverseKey } from '../universerpc/UniverseKey'; + +export interface DeleteAssetLeafRequestPartial { + 'key'?: (_universerpc_UniverseKeyPartial | null); +} + +export interface DeleteAssetLeafRequest { + 'key': (_universerpc_UniverseKey | null); +} diff --git a/src/types/universerpc/DeleteAssetLeafResponse.ts b/src/types/universerpc/DeleteAssetLeafResponse.ts new file mode 100644 index 0000000..2648586 --- /dev/null +++ b/src/types/universerpc/DeleteAssetLeafResponse.ts @@ -0,0 +1,8 @@ +// Original file: protos/universerpc/universe.proto + + +export interface DeleteAssetLeafResponsePartial { +} + +export interface DeleteAssetLeafResponse { +} diff --git a/src/types/universerpc/Universe.ts b/src/types/universerpc/Universe.ts index d8f2d0f..aa21d81 100644 --- a/src/types/universerpc/Universe.ts +++ b/src/types/universerpc/Universe.ts @@ -13,6 +13,8 @@ import type { AssetRootQueryPartial as _universerpc_AssetRootQueryPartial, Asset import type { AssetRootRequestPartial as _universerpc_AssetRootRequestPartial, AssetRootRequest as _universerpc_AssetRootRequest } from '../universerpc/AssetRootRequest'; import type { AssetRootResponsePartial as _universerpc_AssetRootResponsePartial, AssetRootResponse as _universerpc_AssetRootResponse } from '../universerpc/AssetRootResponse'; import type { AssetStatsQueryPartial as _universerpc_AssetStatsQueryPartial, AssetStatsQuery as _universerpc_AssetStatsQuery } from '../universerpc/AssetStatsQuery'; +import type { DeleteAssetLeafRequestPartial as _universerpc_DeleteAssetLeafRequestPartial, DeleteAssetLeafRequest as _universerpc_DeleteAssetLeafRequest } from '../universerpc/DeleteAssetLeafRequest'; +import type { DeleteAssetLeafResponsePartial as _universerpc_DeleteAssetLeafResponsePartial, DeleteAssetLeafResponse as _universerpc_DeleteAssetLeafResponse } from '../universerpc/DeleteAssetLeafResponse'; import type { DeleteFederationServerRequestPartial as _universerpc_DeleteFederationServerRequestPartial, DeleteFederationServerRequest as _universerpc_DeleteFederationServerRequest } from '../universerpc/DeleteFederationServerRequest'; import type { DeleteFederationServerResponsePartial as _universerpc_DeleteFederationServerResponsePartial, DeleteFederationServerResponse as _universerpc_DeleteFederationServerResponse } from '../universerpc/DeleteFederationServerResponse'; import type { DeleteRootQueryPartial as _universerpc_DeleteRootQueryPartial, DeleteRootQuery as _universerpc_DeleteRootQuery } from '../universerpc/DeleteRootQuery'; @@ -87,6 +89,15 @@ export interface UniverseClient extends grpc.Client { assetRoots(argument: _universerpc_AssetRootRequestPartial, options: grpc.CallOptions, callback: grpc.requestCallback<_universerpc_AssetRootResponse>): grpc.ClientUnaryCall; assetRoots(argument: _universerpc_AssetRootRequestPartial, callback: grpc.requestCallback<_universerpc_AssetRootResponse>): grpc.ClientUnaryCall; + DeleteAssetLeaf(argument: _universerpc_DeleteAssetLeafRequestPartial, metadata: grpc.Metadata, options: grpc.CallOptions, callback: grpc.requestCallback<_universerpc_DeleteAssetLeafResponse>): grpc.ClientUnaryCall; + DeleteAssetLeaf(argument: _universerpc_DeleteAssetLeafRequestPartial, metadata: grpc.Metadata, callback: grpc.requestCallback<_universerpc_DeleteAssetLeafResponse>): grpc.ClientUnaryCall; + DeleteAssetLeaf(argument: _universerpc_DeleteAssetLeafRequestPartial, options: grpc.CallOptions, callback: grpc.requestCallback<_universerpc_DeleteAssetLeafResponse>): grpc.ClientUnaryCall; + DeleteAssetLeaf(argument: _universerpc_DeleteAssetLeafRequestPartial, callback: grpc.requestCallback<_universerpc_DeleteAssetLeafResponse>): grpc.ClientUnaryCall; + deleteAssetLeaf(argument: _universerpc_DeleteAssetLeafRequestPartial, metadata: grpc.Metadata, options: grpc.CallOptions, callback: grpc.requestCallback<_universerpc_DeleteAssetLeafResponse>): grpc.ClientUnaryCall; + deleteAssetLeaf(argument: _universerpc_DeleteAssetLeafRequestPartial, metadata: grpc.Metadata, callback: grpc.requestCallback<_universerpc_DeleteAssetLeafResponse>): grpc.ClientUnaryCall; + deleteAssetLeaf(argument: _universerpc_DeleteAssetLeafRequestPartial, options: grpc.CallOptions, callback: grpc.requestCallback<_universerpc_DeleteAssetLeafResponse>): grpc.ClientUnaryCall; + deleteAssetLeaf(argument: _universerpc_DeleteAssetLeafRequestPartial, callback: grpc.requestCallback<_universerpc_DeleteAssetLeafResponse>): grpc.ClientUnaryCall; + DeleteAssetRoot(argument: _universerpc_DeleteRootQueryPartial, metadata: grpc.Metadata, options: grpc.CallOptions, callback: grpc.requestCallback<_universerpc_DeleteRootResponse>): grpc.ClientUnaryCall; DeleteAssetRoot(argument: _universerpc_DeleteRootQueryPartial, metadata: grpc.Metadata, callback: grpc.requestCallback<_universerpc_DeleteRootResponse>): grpc.ClientUnaryCall; DeleteAssetRoot(argument: _universerpc_DeleteRootQueryPartial, options: grpc.CallOptions, callback: grpc.requestCallback<_universerpc_DeleteRootResponse>): grpc.ClientUnaryCall; @@ -278,6 +289,8 @@ export interface UniverseHandlers extends grpc.UntypedServiceImplementation { AssetRoots: grpc.handleUnaryCall<_universerpc_AssetRootRequest, _universerpc_AssetRootResponsePartial>; + DeleteAssetLeaf: grpc.handleUnaryCall<_universerpc_DeleteAssetLeafRequest, _universerpc_DeleteAssetLeafResponsePartial>; + DeleteAssetRoot: grpc.handleUnaryCall<_universerpc_DeleteRootQuery, _universerpc_DeleteRootResponsePartial>; DeleteFederationServer: grpc.handleUnaryCall<_universerpc_DeleteFederationServerRequest, _universerpc_DeleteFederationServerResponsePartial>; @@ -325,6 +338,7 @@ export interface UniverseDefinition extends grpc.ServiceDefinition { AssetLeafKeys: MethodDefinition<_universerpc_AssetLeafKeysRequestPartial, _universerpc_AssetLeafKeyResponsePartial, _universerpc_AssetLeafKeysRequest, _universerpc_AssetLeafKeyResponse> AssetLeaves: MethodDefinition<_universerpc_IDPartial, _universerpc_AssetLeafResponsePartial, _universerpc_ID, _universerpc_AssetLeafResponse> AssetRoots: MethodDefinition<_universerpc_AssetRootRequestPartial, _universerpc_AssetRootResponsePartial, _universerpc_AssetRootRequest, _universerpc_AssetRootResponse> + DeleteAssetLeaf: MethodDefinition<_universerpc_DeleteAssetLeafRequestPartial, _universerpc_DeleteAssetLeafResponsePartial, _universerpc_DeleteAssetLeafRequest, _universerpc_DeleteAssetLeafResponse> DeleteAssetRoot: MethodDefinition<_universerpc_DeleteRootQueryPartial, _universerpc_DeleteRootResponsePartial, _universerpc_DeleteRootQuery, _universerpc_DeleteRootResponse> DeleteFederationServer: MethodDefinition<_universerpc_DeleteFederationServerRequestPartial, _universerpc_DeleteFederationServerResponsePartial, _universerpc_DeleteFederationServerRequest, _universerpc_DeleteFederationServerResponse> FetchSupplyCommit: MethodDefinition<_universerpc_FetchSupplyCommitRequestPartial, _universerpc_FetchSupplyCommitResponsePartial, _universerpc_FetchSupplyCommitRequest, _universerpc_FetchSupplyCommitResponse> diff --git a/src/types/universerpc/index.ts b/src/types/universerpc/index.ts index db9421d..b6e79cd 100644 --- a/src/types/universerpc/index.ts +++ b/src/types/universerpc/index.ts @@ -16,6 +16,8 @@ export * from './AssetStatsAsset'; export * from './AssetStatsQuery'; export * from './AssetStatsSnapshot'; export * from './AssetTypeFilter'; +export * from './DeleteAssetLeafRequest'; +export * from './DeleteAssetLeafResponse'; export * from './DeleteFederationServerRequest'; export * from './DeleteFederationServerResponse'; export * from './DeleteRootQuery';