@lightsparkdev/lightspark-sdk 1.9.14 → 1.9.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +17 -0
- package/dist/{chunk-K62FULET.js → chunk-TWQHQTN7.js} +50 -34
- package/dist/{index-DfbWBZ5s.d.cts → index-C753xMTP.d.cts} +13 -5
- package/dist/{index-J9dgrFWx.d.ts → index-COyfARTo.d.ts} +13 -5
- package/dist/index.cjs +128 -73
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +68 -25
- package/dist/objects/index.d.cts +1 -1
- package/dist/objects/index.d.ts +1 -1
- package/dist/objects/index.js +1 -1
- package/package.json +3 -3
- package/src/client.ts +36 -6
- package/src/graphql/FailHtlcs.ts +19 -0
- package/src/graphql/RequestWithdrawal.ts +2 -0
package/dist/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AuthProvider } from '@lightsparkdev/core';
|
|
2
|
-
import { W as WebhookEventType, L as LightsparkClient } from './index-
|
|
3
|
-
export { A as Account, a as AccountToApiTokensConnection, b as AccountToChannelsConnection, c as AccountToNodesConnection, d as AccountToPaymentRequestsConnection, e as AccountToTransactionsConnection, f as AccountToWalletsConnection, g as AccountToWithdrawalRequestsConnection, h as ApiToken, j as AuditLogActor, B as Balances, l as BlockchainBalance, C as CancelInvoiceInput, m as CancelInvoiceOutput, n as CancelUmaInvitationInput, o as CancelUmaInvitationOutput, p as Channel, q as ChannelClosingTransaction, s as ChannelFees, t as ChannelOpeningTransaction, v as ChannelSnapshot, x as ChannelStatus, y as ChannelToTransactionsConnection, z as ClaimUmaInvitationInput, D as ClaimUmaInvitationOutput, E as ClaimUmaInvitationWithIncentivesInput, F as ClaimUmaInvitationWithIncentivesOutput, G as ComplianceProvider, H as Connection, I as CreateApiTokenInput, J as CreateApiTokenOutput, K as CreateInvitationWithIncentivesInput, M as CreateInvitationWithIncentivesOutput, N as CreateInvoiceInput, O as CreateInvoiceOutput, P as CreateLnurlInvoiceInput, Q as CreateNodeWalletAddressInput, R as CreateNodeWalletAddressOutput, S as CreateOfferInput, T as CreateOfferOutput, U as CreateTestModeInvoiceInput, V as CreateTestModeInvoiceOutput, X as CreateTestModePaymentInput, Y as CreateTestModePaymentoutput, Z as CreateUmaInvitationInput, _ as CreateUmaInvitationOutput, $ as CreateUmaInvoiceInput, a0 as CurrencyAmount, a1 as CurrencyAmountInput, a2 as CurrencyUnit, a3 as DailyLiquidityForecast, a4 as DeclineToSignMessagesInput, a5 as DeclineToSignMessagesOutput, a6 as DeleteApiTokenInput, a7 as DeleteApiTokenOutput, a8 as Deposit, aa as Entity, ab as FailHtlcsInput, ac as FailHtlcsOutput, ad as FeeEstimate, ae as FundNodeInput, af as FundNodeOutput, ag as GraphNode, ah as Hop, aj as HtlcAttemptFailureCode, ak as IdAndSignature, al as IncentivesIneligibilityReason, am as IncentivesStatus, an as IncomingPayment, ao as IncomingPaymentAttempt, aq as IncomingPaymentAttemptStatus, av as IncomingPaymentToAttemptsConnection, ar as IncomingPaymentsForInvoiceQueryInput, as as IncomingPaymentsForInvoiceQueryOutput, at as IncomingPaymentsForPaymentHashQueryInput, au as IncomingPaymentsForPaymentHashQueryOutput, aw as Invoice, ay as InvoiceData, az as InvoiceForPaymentHashInput, aA as InvoiceForPaymentHashOutput, aB as InvoiceType, aC as LightningFeeEstimateForInvoiceInput, aD as LightningFeeEstimateForNodeInput, aE as LightningFeeEstimateOutput, aF as LightningPaymentDirection, aG as LightningTransaction, aI as LightsparkNode, aK as LightsparkNodeOwner, aM as LightsparkNodeStatus, aN as LightsparkNodeToChannelsConnection, aO as LightsparkNodeToDailyLiquidityForecastsConnection, aP as LightsparkNodeWithOSK, aQ as LightsparkNodeWithRemoteSigning, aR as LookupUmaAddressInput, aS as MultiSigAddressValidationParameters, aT as Node, aV as NodeAddress, aW as NodeAddressType, aX as NodeToAddressesConnection, aY as Offer, a_ as OfferData, b0 as OnChainFeeTarget, b1 as OnChainTransaction, b3 as OutgoingPayment, b4 as OutgoingPaymentAttempt, b5 as OutgoingPaymentAttemptStatus, b6 as OutgoingPaymentAttemptToHopsConnection, b7 as OutgoingPaymentForIdempotencyKeyInput, b8 as OutgoingPaymentForIdempotencyKeyOutput, bd as OutgoingPaymentToAttemptsConnection, b9 as OutgoingPaymentsForInvoiceQueryInput, ba as OutgoingPaymentsForInvoiceQueryOutput, bb as OutgoingPaymentsForPaymentHashQueryInput, bc as OutgoingPaymentsForPaymentHashQueryOutput, be as PageInfo, bf as PayInvoiceInput, bg as PayInvoiceOutput, bn as PayOfferInput, bo as PayOfferOutput, bp as PayTestModeInvoiceInput, bq as PayUmaInvoiceInput, bh as PaymentDirection, bi as PaymentFailureReason, bj as PaymentRequest, bl as PaymentRequestData, bm as PaymentRequestStatus, br as Permission, bs as PostTransactionData, bt as RegionCode, bu as RegisterPaymentInput, bv as RegisterPaymentOutput, bw as ReleaseChannelPerCommitmentSecretInput, bx as ReleaseChannelPerCommitmentSecretOutput, by as ReleasePaymentPreimageInput, bz as ReleasePaymentPreimageOutput, bA as RemoteSigningSubEventType, bB as RequestInitiator, bC as RequestWithdrawalInput, bD as RequestWithdrawalOutput, bE as RichText, bF as RiskRating, bG as RoutingTransaction, bI as RoutingTransactionFailureReason, bJ as ScreenNodeInput, bK as ScreenNodeOutput, bL as Secret, bM as SendPaymentInput, bN as SendPaymentOutput, bO as SetInvoicePaymentHashInput, bP as SetInvoicePaymentHashOutput, bV as SignInvoiceInput, bW as SignInvoiceOutput, bX as SignMessagesInput, bY as SignMessagesOutput, bQ as Signable, bS as SignablePayload, bU as SignablePayloadStatus, bZ as SingleNodeDashboard, b_ as Transaction, c0 as TransactionFailures, c1 as TransactionStatus, c2 as TransactionType, c3 as TransactionUpdate, c4 as UmaCurrency, c6 as UmaCurrencyAmount, c7 as UmaInvitation, c9 as UmaInvitationStatus, ca as UpdateChannelPerCommitmentPointInput, cb as UpdateChannelPerCommitmentPointOutput, cc as UpdateNodeSharedSecretInput, cd as UpdateNodeSharedSecretOutput, ce as Wallet, cf as WalletStatus, cg as WalletToPaymentRequestsConnection, ch as WalletToTransactionsConnection, ci as WalletToWithdrawalRequestsConnection, cj as Withdrawal, cl as WithdrawalFeeEstimateInput, cm as WithdrawalFeeEstimateOutput, cn as WithdrawalMode, co as WithdrawalRequest, cp as WithdrawalRequestStatus, cq as WithdrawalRequestToChannelClosingTransactionsConnection, cr as WithdrawalRequestToChannelOpeningTransactionsConnection, cs as WithdrawalRequestToWithdrawalsConnection, i as getApiTokenQuery, k as getAuditLogActorQuery, r as getChannelClosingTransactionQuery, u as getChannelOpeningTransactionQuery, w as getChannelSnapshotQuery, a9 as getDepositQuery, ai as getHopQuery, ap as getIncomingPaymentAttemptQuery, ax as getInvoiceQuery, aH as getLightningTransactionQuery, aL as getLightsparkNodeOwnerQuery, aJ as getLightsparkNodeQuery, aU as getNodeQuery, a$ as getOfferDataQuery, aZ as getOfferQuery, b2 as getOnChainTransactionQuery, bk as getPaymentRequestQuery, bH as getRoutingTransactionQuery, bT as getSignablePayloadQuery, bR as getSignableQuery, b$ as getTransactionQuery, c5 as getUmaCurrencyQuery, c8 as getUmaInvitationQuery, ck as getWithdrawalQuery } from './index-
|
|
2
|
+
import { W as WebhookEventType, L as LightsparkClient } from './index-C753xMTP.cjs';
|
|
3
|
+
export { A as Account, a as AccountToApiTokensConnection, b as AccountToChannelsConnection, c as AccountToNodesConnection, d as AccountToPaymentRequestsConnection, e as AccountToTransactionsConnection, f as AccountToWalletsConnection, g as AccountToWithdrawalRequestsConnection, h as ApiToken, j as AuditLogActor, B as Balances, l as BlockchainBalance, C as CancelInvoiceInput, m as CancelInvoiceOutput, n as CancelUmaInvitationInput, o as CancelUmaInvitationOutput, p as Channel, q as ChannelClosingTransaction, s as ChannelFees, t as ChannelOpeningTransaction, v as ChannelSnapshot, x as ChannelStatus, y as ChannelToTransactionsConnection, z as ClaimUmaInvitationInput, D as ClaimUmaInvitationOutput, E as ClaimUmaInvitationWithIncentivesInput, F as ClaimUmaInvitationWithIncentivesOutput, G as ComplianceProvider, H as Connection, I as CreateApiTokenInput, J as CreateApiTokenOutput, K as CreateInvitationWithIncentivesInput, M as CreateInvitationWithIncentivesOutput, N as CreateInvoiceInput, O as CreateInvoiceOutput, P as CreateLnurlInvoiceInput, Q as CreateNodeWalletAddressInput, R as CreateNodeWalletAddressOutput, S as CreateOfferInput, T as CreateOfferOutput, U as CreateTestModeInvoiceInput, V as CreateTestModeInvoiceOutput, X as CreateTestModePaymentInput, Y as CreateTestModePaymentoutput, Z as CreateUmaInvitationInput, _ as CreateUmaInvitationOutput, $ as CreateUmaInvoiceInput, a0 as CurrencyAmount, a1 as CurrencyAmountInput, a2 as CurrencyUnit, a3 as DailyLiquidityForecast, a4 as DeclineToSignMessagesInput, a5 as DeclineToSignMessagesOutput, a6 as DeleteApiTokenInput, a7 as DeleteApiTokenOutput, a8 as Deposit, aa as Entity, ab as FailHtlcsInput, ac as FailHtlcsOutput, ad as FeeEstimate, ae as FundNodeInput, af as FundNodeOutput, ag as GraphNode, ah as Hop, aj as HtlcAttemptFailureCode, ak as IdAndSignature, al as IncentivesIneligibilityReason, am as IncentivesStatus, an as IncomingPayment, ao as IncomingPaymentAttempt, aq as IncomingPaymentAttemptStatus, av as IncomingPaymentToAttemptsConnection, ar as IncomingPaymentsForInvoiceQueryInput, as as IncomingPaymentsForInvoiceQueryOutput, at as IncomingPaymentsForPaymentHashQueryInput, au as IncomingPaymentsForPaymentHashQueryOutput, aw as Invoice, ay as InvoiceData, az as InvoiceForPaymentHashInput, aA as InvoiceForPaymentHashOutput, aB as InvoiceType, aC as LightningFeeEstimateForInvoiceInput, aD as LightningFeeEstimateForNodeInput, aE as LightningFeeEstimateOutput, aF as LightningPaymentDirection, aG as LightningTransaction, aI as LightsparkNode, aK as LightsparkNodeOwner, aM as LightsparkNodeStatus, aN as LightsparkNodeToChannelsConnection, aO as LightsparkNodeToDailyLiquidityForecastsConnection, aP as LightsparkNodeWithOSK, aQ as LightsparkNodeWithRemoteSigning, aR as LookupUmaAddressInput, aS as MultiSigAddressValidationParameters, aT as Node, aV as NodeAddress, aW as NodeAddressType, aX as NodeToAddressesConnection, aY as Offer, a_ as OfferData, b0 as OnChainFeeTarget, b1 as OnChainTransaction, b3 as OutgoingPayment, b4 as OutgoingPaymentAttempt, b5 as OutgoingPaymentAttemptStatus, b6 as OutgoingPaymentAttemptToHopsConnection, b7 as OutgoingPaymentForIdempotencyKeyInput, b8 as OutgoingPaymentForIdempotencyKeyOutput, bd as OutgoingPaymentToAttemptsConnection, b9 as OutgoingPaymentsForInvoiceQueryInput, ba as OutgoingPaymentsForInvoiceQueryOutput, bb as OutgoingPaymentsForPaymentHashQueryInput, bc as OutgoingPaymentsForPaymentHashQueryOutput, be as PageInfo, bf as PayInvoiceInput, bg as PayInvoiceOutput, bn as PayOfferInput, bo as PayOfferOutput, bp as PayTestModeInvoiceInput, bq as PayUmaInvoiceInput, bh as PaymentDirection, bi as PaymentFailureReason, bj as PaymentRequest, bl as PaymentRequestData, bm as PaymentRequestStatus, br as Permission, bs as PostTransactionData, bt as RegionCode, bu as RegisterPaymentInput, bv as RegisterPaymentOutput, bw as ReleaseChannelPerCommitmentSecretInput, bx as ReleaseChannelPerCommitmentSecretOutput, by as ReleasePaymentPreimageInput, bz as ReleasePaymentPreimageOutput, bA as RemoteSigningSubEventType, bB as RequestInitiator, bC as RequestWithdrawalInput, bD as RequestWithdrawalOutput, bE as RichText, bF as RiskRating, bG as RoutingTransaction, bI as RoutingTransactionFailureReason, bJ as ScreenNodeInput, bK as ScreenNodeOutput, bL as Secret, bM as SendPaymentInput, bN as SendPaymentOutput, bO as SetInvoicePaymentHashInput, bP as SetInvoicePaymentHashOutput, bV as SignInvoiceInput, bW as SignInvoiceOutput, bX as SignMessagesInput, bY as SignMessagesOutput, bQ as Signable, bS as SignablePayload, bU as SignablePayloadStatus, bZ as SingleNodeDashboard, b_ as Transaction, c0 as TransactionFailures, c1 as TransactionStatus, c2 as TransactionType, c3 as TransactionUpdate, c4 as UmaCurrency, c6 as UmaCurrencyAmount, c7 as UmaInvitation, c9 as UmaInvitationStatus, ca as UpdateChannelPerCommitmentPointInput, cb as UpdateChannelPerCommitmentPointOutput, cc as UpdateNodeSharedSecretInput, cd as UpdateNodeSharedSecretOutput, ce as Wallet, cf as WalletStatus, cg as WalletToPaymentRequestsConnection, ch as WalletToTransactionsConnection, ci as WalletToWithdrawalRequestsConnection, cj as Withdrawal, cl as WithdrawalFeeEstimateInput, cm as WithdrawalFeeEstimateOutput, cn as WithdrawalMode, co as WithdrawalRequest, cp as WithdrawalRequestStatus, cq as WithdrawalRequestToChannelClosingTransactionsConnection, cr as WithdrawalRequestToChannelOpeningTransactionsConnection, cs as WithdrawalRequestToWithdrawalsConnection, i as getApiTokenQuery, k as getAuditLogActorQuery, r as getChannelClosingTransactionQuery, u as getChannelOpeningTransactionQuery, w as getChannelSnapshotQuery, a9 as getDepositQuery, ai as getHopQuery, ap as getIncomingPaymentAttemptQuery, ax as getInvoiceQuery, aH as getLightningTransactionQuery, aL as getLightsparkNodeOwnerQuery, aJ as getLightsparkNodeQuery, aU as getNodeQuery, a$ as getOfferDataQuery, aZ as getOfferQuery, b2 as getOnChainTransactionQuery, bk as getPaymentRequestQuery, bH as getRoutingTransactionQuery, bT as getSignablePayloadQuery, bR as getSignableQuery, b$ as getTransactionQuery, c5 as getUmaCurrencyQuery, c8 as getUmaInvitationQuery, ck as getWithdrawalQuery } from './index-C753xMTP.cjs';
|
|
4
4
|
import { B as BitcoinNetwork } from './BitcoinNetwork-CIfB1c0X.cjs';
|
|
5
5
|
import 'zen-observable';
|
|
6
6
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AuthProvider } from '@lightsparkdev/core';
|
|
2
|
-
import { W as WebhookEventType, L as LightsparkClient } from './index-
|
|
3
|
-
export { A as Account, a as AccountToApiTokensConnection, b as AccountToChannelsConnection, c as AccountToNodesConnection, d as AccountToPaymentRequestsConnection, e as AccountToTransactionsConnection, f as AccountToWalletsConnection, g as AccountToWithdrawalRequestsConnection, h as ApiToken, j as AuditLogActor, B as Balances, l as BlockchainBalance, C as CancelInvoiceInput, m as CancelInvoiceOutput, n as CancelUmaInvitationInput, o as CancelUmaInvitationOutput, p as Channel, q as ChannelClosingTransaction, s as ChannelFees, t as ChannelOpeningTransaction, v as ChannelSnapshot, x as ChannelStatus, y as ChannelToTransactionsConnection, z as ClaimUmaInvitationInput, D as ClaimUmaInvitationOutput, E as ClaimUmaInvitationWithIncentivesInput, F as ClaimUmaInvitationWithIncentivesOutput, G as ComplianceProvider, H as Connection, I as CreateApiTokenInput, J as CreateApiTokenOutput, K as CreateInvitationWithIncentivesInput, M as CreateInvitationWithIncentivesOutput, N as CreateInvoiceInput, O as CreateInvoiceOutput, P as CreateLnurlInvoiceInput, Q as CreateNodeWalletAddressInput, R as CreateNodeWalletAddressOutput, S as CreateOfferInput, T as CreateOfferOutput, U as CreateTestModeInvoiceInput, V as CreateTestModeInvoiceOutput, X as CreateTestModePaymentInput, Y as CreateTestModePaymentoutput, Z as CreateUmaInvitationInput, _ as CreateUmaInvitationOutput, $ as CreateUmaInvoiceInput, a0 as CurrencyAmount, a1 as CurrencyAmountInput, a2 as CurrencyUnit, a3 as DailyLiquidityForecast, a4 as DeclineToSignMessagesInput, a5 as DeclineToSignMessagesOutput, a6 as DeleteApiTokenInput, a7 as DeleteApiTokenOutput, a8 as Deposit, aa as Entity, ab as FailHtlcsInput, ac as FailHtlcsOutput, ad as FeeEstimate, ae as FundNodeInput, af as FundNodeOutput, ag as GraphNode, ah as Hop, aj as HtlcAttemptFailureCode, ak as IdAndSignature, al as IncentivesIneligibilityReason, am as IncentivesStatus, an as IncomingPayment, ao as IncomingPaymentAttempt, aq as IncomingPaymentAttemptStatus, av as IncomingPaymentToAttemptsConnection, ar as IncomingPaymentsForInvoiceQueryInput, as as IncomingPaymentsForInvoiceQueryOutput, at as IncomingPaymentsForPaymentHashQueryInput, au as IncomingPaymentsForPaymentHashQueryOutput, aw as Invoice, ay as InvoiceData, az as InvoiceForPaymentHashInput, aA as InvoiceForPaymentHashOutput, aB as InvoiceType, aC as LightningFeeEstimateForInvoiceInput, aD as LightningFeeEstimateForNodeInput, aE as LightningFeeEstimateOutput, aF as LightningPaymentDirection, aG as LightningTransaction, aI as LightsparkNode, aK as LightsparkNodeOwner, aM as LightsparkNodeStatus, aN as LightsparkNodeToChannelsConnection, aO as LightsparkNodeToDailyLiquidityForecastsConnection, aP as LightsparkNodeWithOSK, aQ as LightsparkNodeWithRemoteSigning, aR as LookupUmaAddressInput, aS as MultiSigAddressValidationParameters, aT as Node, aV as NodeAddress, aW as NodeAddressType, aX as NodeToAddressesConnection, aY as Offer, a_ as OfferData, b0 as OnChainFeeTarget, b1 as OnChainTransaction, b3 as OutgoingPayment, b4 as OutgoingPaymentAttempt, b5 as OutgoingPaymentAttemptStatus, b6 as OutgoingPaymentAttemptToHopsConnection, b7 as OutgoingPaymentForIdempotencyKeyInput, b8 as OutgoingPaymentForIdempotencyKeyOutput, bd as OutgoingPaymentToAttemptsConnection, b9 as OutgoingPaymentsForInvoiceQueryInput, ba as OutgoingPaymentsForInvoiceQueryOutput, bb as OutgoingPaymentsForPaymentHashQueryInput, bc as OutgoingPaymentsForPaymentHashQueryOutput, be as PageInfo, bf as PayInvoiceInput, bg as PayInvoiceOutput, bn as PayOfferInput, bo as PayOfferOutput, bp as PayTestModeInvoiceInput, bq as PayUmaInvoiceInput, bh as PaymentDirection, bi as PaymentFailureReason, bj as PaymentRequest, bl as PaymentRequestData, bm as PaymentRequestStatus, br as Permission, bs as PostTransactionData, bt as RegionCode, bu as RegisterPaymentInput, bv as RegisterPaymentOutput, bw as ReleaseChannelPerCommitmentSecretInput, bx as ReleaseChannelPerCommitmentSecretOutput, by as ReleasePaymentPreimageInput, bz as ReleasePaymentPreimageOutput, bA as RemoteSigningSubEventType, bB as RequestInitiator, bC as RequestWithdrawalInput, bD as RequestWithdrawalOutput, bE as RichText, bF as RiskRating, bG as RoutingTransaction, bI as RoutingTransactionFailureReason, bJ as ScreenNodeInput, bK as ScreenNodeOutput, bL as Secret, bM as SendPaymentInput, bN as SendPaymentOutput, bO as SetInvoicePaymentHashInput, bP as SetInvoicePaymentHashOutput, bV as SignInvoiceInput, bW as SignInvoiceOutput, bX as SignMessagesInput, bY as SignMessagesOutput, bQ as Signable, bS as SignablePayload, bU as SignablePayloadStatus, bZ as SingleNodeDashboard, b_ as Transaction, c0 as TransactionFailures, c1 as TransactionStatus, c2 as TransactionType, c3 as TransactionUpdate, c4 as UmaCurrency, c6 as UmaCurrencyAmount, c7 as UmaInvitation, c9 as UmaInvitationStatus, ca as UpdateChannelPerCommitmentPointInput, cb as UpdateChannelPerCommitmentPointOutput, cc as UpdateNodeSharedSecretInput, cd as UpdateNodeSharedSecretOutput, ce as Wallet, cf as WalletStatus, cg as WalletToPaymentRequestsConnection, ch as WalletToTransactionsConnection, ci as WalletToWithdrawalRequestsConnection, cj as Withdrawal, cl as WithdrawalFeeEstimateInput, cm as WithdrawalFeeEstimateOutput, cn as WithdrawalMode, co as WithdrawalRequest, cp as WithdrawalRequestStatus, cq as WithdrawalRequestToChannelClosingTransactionsConnection, cr as WithdrawalRequestToChannelOpeningTransactionsConnection, cs as WithdrawalRequestToWithdrawalsConnection, i as getApiTokenQuery, k as getAuditLogActorQuery, r as getChannelClosingTransactionQuery, u as getChannelOpeningTransactionQuery, w as getChannelSnapshotQuery, a9 as getDepositQuery, ai as getHopQuery, ap as getIncomingPaymentAttemptQuery, ax as getInvoiceQuery, aH as getLightningTransactionQuery, aL as getLightsparkNodeOwnerQuery, aJ as getLightsparkNodeQuery, aU as getNodeQuery, a$ as getOfferDataQuery, aZ as getOfferQuery, b2 as getOnChainTransactionQuery, bk as getPaymentRequestQuery, bH as getRoutingTransactionQuery, bT as getSignablePayloadQuery, bR as getSignableQuery, b$ as getTransactionQuery, c5 as getUmaCurrencyQuery, c8 as getUmaInvitationQuery, ck as getWithdrawalQuery } from './index-
|
|
2
|
+
import { W as WebhookEventType, L as LightsparkClient } from './index-COyfARTo.js';
|
|
3
|
+
export { A as Account, a as AccountToApiTokensConnection, b as AccountToChannelsConnection, c as AccountToNodesConnection, d as AccountToPaymentRequestsConnection, e as AccountToTransactionsConnection, f as AccountToWalletsConnection, g as AccountToWithdrawalRequestsConnection, h as ApiToken, j as AuditLogActor, B as Balances, l as BlockchainBalance, C as CancelInvoiceInput, m as CancelInvoiceOutput, n as CancelUmaInvitationInput, o as CancelUmaInvitationOutput, p as Channel, q as ChannelClosingTransaction, s as ChannelFees, t as ChannelOpeningTransaction, v as ChannelSnapshot, x as ChannelStatus, y as ChannelToTransactionsConnection, z as ClaimUmaInvitationInput, D as ClaimUmaInvitationOutput, E as ClaimUmaInvitationWithIncentivesInput, F as ClaimUmaInvitationWithIncentivesOutput, G as ComplianceProvider, H as Connection, I as CreateApiTokenInput, J as CreateApiTokenOutput, K as CreateInvitationWithIncentivesInput, M as CreateInvitationWithIncentivesOutput, N as CreateInvoiceInput, O as CreateInvoiceOutput, P as CreateLnurlInvoiceInput, Q as CreateNodeWalletAddressInput, R as CreateNodeWalletAddressOutput, S as CreateOfferInput, T as CreateOfferOutput, U as CreateTestModeInvoiceInput, V as CreateTestModeInvoiceOutput, X as CreateTestModePaymentInput, Y as CreateTestModePaymentoutput, Z as CreateUmaInvitationInput, _ as CreateUmaInvitationOutput, $ as CreateUmaInvoiceInput, a0 as CurrencyAmount, a1 as CurrencyAmountInput, a2 as CurrencyUnit, a3 as DailyLiquidityForecast, a4 as DeclineToSignMessagesInput, a5 as DeclineToSignMessagesOutput, a6 as DeleteApiTokenInput, a7 as DeleteApiTokenOutput, a8 as Deposit, aa as Entity, ab as FailHtlcsInput, ac as FailHtlcsOutput, ad as FeeEstimate, ae as FundNodeInput, af as FundNodeOutput, ag as GraphNode, ah as Hop, aj as HtlcAttemptFailureCode, ak as IdAndSignature, al as IncentivesIneligibilityReason, am as IncentivesStatus, an as IncomingPayment, ao as IncomingPaymentAttempt, aq as IncomingPaymentAttemptStatus, av as IncomingPaymentToAttemptsConnection, ar as IncomingPaymentsForInvoiceQueryInput, as as IncomingPaymentsForInvoiceQueryOutput, at as IncomingPaymentsForPaymentHashQueryInput, au as IncomingPaymentsForPaymentHashQueryOutput, aw as Invoice, ay as InvoiceData, az as InvoiceForPaymentHashInput, aA as InvoiceForPaymentHashOutput, aB as InvoiceType, aC as LightningFeeEstimateForInvoiceInput, aD as LightningFeeEstimateForNodeInput, aE as LightningFeeEstimateOutput, aF as LightningPaymentDirection, aG as LightningTransaction, aI as LightsparkNode, aK as LightsparkNodeOwner, aM as LightsparkNodeStatus, aN as LightsparkNodeToChannelsConnection, aO as LightsparkNodeToDailyLiquidityForecastsConnection, aP as LightsparkNodeWithOSK, aQ as LightsparkNodeWithRemoteSigning, aR as LookupUmaAddressInput, aS as MultiSigAddressValidationParameters, aT as Node, aV as NodeAddress, aW as NodeAddressType, aX as NodeToAddressesConnection, aY as Offer, a_ as OfferData, b0 as OnChainFeeTarget, b1 as OnChainTransaction, b3 as OutgoingPayment, b4 as OutgoingPaymentAttempt, b5 as OutgoingPaymentAttemptStatus, b6 as OutgoingPaymentAttemptToHopsConnection, b7 as OutgoingPaymentForIdempotencyKeyInput, b8 as OutgoingPaymentForIdempotencyKeyOutput, bd as OutgoingPaymentToAttemptsConnection, b9 as OutgoingPaymentsForInvoiceQueryInput, ba as OutgoingPaymentsForInvoiceQueryOutput, bb as OutgoingPaymentsForPaymentHashQueryInput, bc as OutgoingPaymentsForPaymentHashQueryOutput, be as PageInfo, bf as PayInvoiceInput, bg as PayInvoiceOutput, bn as PayOfferInput, bo as PayOfferOutput, bp as PayTestModeInvoiceInput, bq as PayUmaInvoiceInput, bh as PaymentDirection, bi as PaymentFailureReason, bj as PaymentRequest, bl as PaymentRequestData, bm as PaymentRequestStatus, br as Permission, bs as PostTransactionData, bt as RegionCode, bu as RegisterPaymentInput, bv as RegisterPaymentOutput, bw as ReleaseChannelPerCommitmentSecretInput, bx as ReleaseChannelPerCommitmentSecretOutput, by as ReleasePaymentPreimageInput, bz as ReleasePaymentPreimageOutput, bA as RemoteSigningSubEventType, bB as RequestInitiator, bC as RequestWithdrawalInput, bD as RequestWithdrawalOutput, bE as RichText, bF as RiskRating, bG as RoutingTransaction, bI as RoutingTransactionFailureReason, bJ as ScreenNodeInput, bK as ScreenNodeOutput, bL as Secret, bM as SendPaymentInput, bN as SendPaymentOutput, bO as SetInvoicePaymentHashInput, bP as SetInvoicePaymentHashOutput, bV as SignInvoiceInput, bW as SignInvoiceOutput, bX as SignMessagesInput, bY as SignMessagesOutput, bQ as Signable, bS as SignablePayload, bU as SignablePayloadStatus, bZ as SingleNodeDashboard, b_ as Transaction, c0 as TransactionFailures, c1 as TransactionStatus, c2 as TransactionType, c3 as TransactionUpdate, c4 as UmaCurrency, c6 as UmaCurrencyAmount, c7 as UmaInvitation, c9 as UmaInvitationStatus, ca as UpdateChannelPerCommitmentPointInput, cb as UpdateChannelPerCommitmentPointOutput, cc as UpdateNodeSharedSecretInput, cd as UpdateNodeSharedSecretOutput, ce as Wallet, cf as WalletStatus, cg as WalletToPaymentRequestsConnection, ch as WalletToTransactionsConnection, ci as WalletToWithdrawalRequestsConnection, cj as Withdrawal, cl as WithdrawalFeeEstimateInput, cm as WithdrawalFeeEstimateOutput, cn as WithdrawalMode, co as WithdrawalRequest, cp as WithdrawalRequestStatus, cq as WithdrawalRequestToChannelClosingTransactionsConnection, cr as WithdrawalRequestToChannelOpeningTransactionsConnection, cs as WithdrawalRequestToWithdrawalsConnection, i as getApiTokenQuery, k as getAuditLogActorQuery, r as getChannelClosingTransactionQuery, u as getChannelOpeningTransactionQuery, w as getChannelSnapshotQuery, a9 as getDepositQuery, ai as getHopQuery, ap as getIncomingPaymentAttemptQuery, ax as getInvoiceQuery, aH as getLightningTransactionQuery, aL as getLightsparkNodeOwnerQuery, aJ as getLightsparkNodeQuery, aU as getNodeQuery, a$ as getOfferDataQuery, aZ as getOfferQuery, b2 as getOnChainTransactionQuery, bk as getPaymentRequestQuery, bH as getRoutingTransactionQuery, bT as getSignablePayloadQuery, bR as getSignableQuery, b$ as getTransactionQuery, c5 as getUmaCurrencyQuery, c8 as getUmaInvitationQuery, ck as getWithdrawalQuery } from './index-COyfARTo.js';
|
|
4
4
|
import { B as BitcoinNetwork } from './BitcoinNetwork-CIfB1c0X.js';
|
|
5
5
|
import 'zen-observable';
|
|
6
6
|
|
package/dist/index.js
CHANGED
|
@@ -17,6 +17,7 @@ import {
|
|
|
17
17
|
FRAGMENT12,
|
|
18
18
|
FRAGMENT13,
|
|
19
19
|
FRAGMENT14,
|
|
20
|
+
FRAGMENT15,
|
|
20
21
|
FRAGMENT2,
|
|
21
22
|
FRAGMENT3,
|
|
22
23
|
FRAGMENT4,
|
|
@@ -25,6 +26,7 @@ import {
|
|
|
25
26
|
FRAGMENT7,
|
|
26
27
|
FRAGMENT8,
|
|
27
28
|
FRAGMENT9,
|
|
29
|
+
FailHtlcsOutputFromJson,
|
|
28
30
|
FeeEstimateFromJson,
|
|
29
31
|
GraphNode_default,
|
|
30
32
|
HtlcAttemptFailureCode_default,
|
|
@@ -97,7 +99,7 @@ import {
|
|
|
97
99
|
getUmaCurrencyQuery,
|
|
98
100
|
getUmaInvitationQuery,
|
|
99
101
|
getWithdrawalQuery
|
|
100
|
-
} from "./chunk-
|
|
102
|
+
} from "./chunk-TWQHQTN7.js";
|
|
101
103
|
import {
|
|
102
104
|
BitcoinNetwork_default
|
|
103
105
|
} from "./chunk-K6SAUSAX.js";
|
|
@@ -155,7 +157,7 @@ import {
|
|
|
155
157
|
// package.json
|
|
156
158
|
var package_default = {
|
|
157
159
|
name: "@lightsparkdev/lightspark-sdk",
|
|
158
|
-
version: "1.9.
|
|
160
|
+
version: "1.9.16",
|
|
159
161
|
description: "Lightspark JS SDK",
|
|
160
162
|
author: "Lightspark Inc.",
|
|
161
163
|
keywords: [
|
|
@@ -225,8 +227,8 @@ var package_default = {
|
|
|
225
227
|
},
|
|
226
228
|
license: "Apache-2.0",
|
|
227
229
|
dependencies: {
|
|
228
|
-
"@lightsparkdev/core": "1.4.
|
|
229
|
-
"@lightsparkdev/crypto-wasm": "0.1.
|
|
230
|
+
"@lightsparkdev/core": "1.4.9",
|
|
231
|
+
"@lightsparkdev/crypto-wasm": "0.1.23",
|
|
230
232
|
dayjs: "^1.11.7",
|
|
231
233
|
dotenv: "^16.3.1",
|
|
232
234
|
graphql: "^16.6.0",
|
|
@@ -792,6 +794,23 @@ var DeleteApiToken = `
|
|
|
792
794
|
}
|
|
793
795
|
`;
|
|
794
796
|
|
|
797
|
+
// src/graphql/FailHtlcs.ts
|
|
798
|
+
var FailHtlcs = `
|
|
799
|
+
mutation FailHtlcs(
|
|
800
|
+
$invoice_id: ID!,
|
|
801
|
+
$cancel_invoice: Boolean!
|
|
802
|
+
) {
|
|
803
|
+
fail_htlcs(input: {
|
|
804
|
+
invoice_id: $invoice_id,
|
|
805
|
+
cancel_invoice: $cancel_invoice
|
|
806
|
+
}) {
|
|
807
|
+
...FailHtlcsOutputFragment
|
|
808
|
+
}
|
|
809
|
+
}
|
|
810
|
+
|
|
811
|
+
${FRAGMENT8}
|
|
812
|
+
`;
|
|
813
|
+
|
|
795
814
|
// src/graphql/FetchUmaInvitation.ts
|
|
796
815
|
var FetchUmaInvitation = `
|
|
797
816
|
query FetchUmaInvitation(
|
|
@@ -871,7 +890,7 @@ var LightningFeeEstimateForInvoice = `
|
|
|
871
890
|
}
|
|
872
891
|
}
|
|
873
892
|
|
|
874
|
-
${
|
|
893
|
+
${FRAGMENT9}
|
|
875
894
|
`;
|
|
876
895
|
|
|
877
896
|
// src/graphql/LightningFeeEstimateForNode.ts
|
|
@@ -890,7 +909,7 @@ var LightningFeeEstimateForNode = `
|
|
|
890
909
|
}
|
|
891
910
|
}
|
|
892
911
|
|
|
893
|
-
${
|
|
912
|
+
${FRAGMENT9}
|
|
894
913
|
`;
|
|
895
914
|
|
|
896
915
|
// src/graphql/LookupUmaAddress.ts
|
|
@@ -993,7 +1012,7 @@ query OutgoingPaymentsForInvoice(
|
|
|
993
1012
|
}
|
|
994
1013
|
}
|
|
995
1014
|
|
|
996
|
-
${
|
|
1015
|
+
${FRAGMENT10}
|
|
997
1016
|
`;
|
|
998
1017
|
|
|
999
1018
|
// src/graphql/OutgoingPaymentsForPaymentHash.ts
|
|
@@ -1012,7 +1031,7 @@ query OutgoingPaymentsForPaymentHash(
|
|
|
1012
1031
|
}
|
|
1013
1032
|
}
|
|
1014
1033
|
|
|
1015
|
-
${
|
|
1034
|
+
${FRAGMENT10}
|
|
1016
1035
|
`;
|
|
1017
1036
|
|
|
1018
1037
|
// src/graphql/PayInvoice.ts
|
|
@@ -1041,7 +1060,7 @@ var PayInvoice = `
|
|
|
1041
1060
|
}
|
|
1042
1061
|
}
|
|
1043
1062
|
|
|
1044
|
-
${
|
|
1063
|
+
${FRAGMENT10}
|
|
1045
1064
|
`;
|
|
1046
1065
|
|
|
1047
1066
|
// src/graphql/PayOffer.ts
|
|
@@ -1070,7 +1089,7 @@ var PayOffer = `
|
|
|
1070
1089
|
}
|
|
1071
1090
|
}
|
|
1072
1091
|
|
|
1073
|
-
${
|
|
1092
|
+
${FRAGMENT10}
|
|
1074
1093
|
`;
|
|
1075
1094
|
|
|
1076
1095
|
// src/graphql/PayUmaInvoice.ts
|
|
@@ -1099,7 +1118,7 @@ var PayUmaInvoice = `
|
|
|
1099
1118
|
}
|
|
1100
1119
|
}
|
|
1101
1120
|
|
|
1102
|
-
${
|
|
1121
|
+
${FRAGMENT10}
|
|
1103
1122
|
`;
|
|
1104
1123
|
|
|
1105
1124
|
// src/graphql/PaymentRequestsForNode.ts
|
|
@@ -1130,7 +1149,7 @@ query PaymentRequestsForNode(
|
|
|
1130
1149
|
}
|
|
1131
1150
|
}
|
|
1132
1151
|
|
|
1133
|
-
${
|
|
1152
|
+
${FRAGMENT11}
|
|
1134
1153
|
`;
|
|
1135
1154
|
|
|
1136
1155
|
// src/graphql/RegisterPayment.ts
|
|
@@ -1161,12 +1180,14 @@ var RequestWithdrawal = `
|
|
|
1161
1180
|
$bitcoin_address: String!
|
|
1162
1181
|
$amount_sats: Long!
|
|
1163
1182
|
$withdrawal_mode: WithdrawalMode!
|
|
1183
|
+
$idempotency_key: String
|
|
1164
1184
|
) {
|
|
1165
1185
|
request_withdrawal(input: {
|
|
1166
1186
|
node_id: $node_id
|
|
1167
1187
|
bitcoin_address: $bitcoin_address
|
|
1168
1188
|
amount_sats: $amount_sats
|
|
1169
1189
|
withdrawal_mode: $withdrawal_mode
|
|
1190
|
+
idempotency_key: $idempotency_key
|
|
1170
1191
|
}) {
|
|
1171
1192
|
request {
|
|
1172
1193
|
...WithdrawalRequestFragment
|
|
@@ -1174,7 +1195,7 @@ var RequestWithdrawal = `
|
|
|
1174
1195
|
}
|
|
1175
1196
|
}
|
|
1176
1197
|
|
|
1177
|
-
${
|
|
1198
|
+
${FRAGMENT12}
|
|
1178
1199
|
`;
|
|
1179
1200
|
|
|
1180
1201
|
// src/graphql/ScreenNode.ts
|
|
@@ -1216,7 +1237,7 @@ var SendPayment = `
|
|
|
1216
1237
|
}
|
|
1217
1238
|
}
|
|
1218
1239
|
|
|
1219
|
-
${
|
|
1240
|
+
${FRAGMENT10}
|
|
1220
1241
|
`;
|
|
1221
1242
|
|
|
1222
1243
|
// src/graphql/SingleNodeDashboard.ts
|
|
@@ -1327,7 +1348,7 @@ query SingleNodeDashboard(
|
|
|
1327
1348
|
}
|
|
1328
1349
|
}
|
|
1329
1350
|
|
|
1330
|
-
${
|
|
1351
|
+
${FRAGMENT13}
|
|
1331
1352
|
${FRAGMENT}
|
|
1332
1353
|
`;
|
|
1333
1354
|
|
|
@@ -1342,7 +1363,7 @@ subscription TransactionSubscription(
|
|
|
1342
1363
|
}
|
|
1343
1364
|
}
|
|
1344
1365
|
|
|
1345
|
-
${
|
|
1366
|
+
${FRAGMENT14}
|
|
1346
1367
|
`;
|
|
1347
1368
|
|
|
1348
1369
|
// src/graphql/TransactionsForNode.ts
|
|
@@ -1380,7 +1401,7 @@ query TransactionsForNode(
|
|
|
1380
1401
|
}
|
|
1381
1402
|
}
|
|
1382
1403
|
|
|
1383
|
-
${
|
|
1404
|
+
${FRAGMENT13}
|
|
1384
1405
|
${FRAGMENT}
|
|
1385
1406
|
`;
|
|
1386
1407
|
|
|
@@ -1400,7 +1421,7 @@ var WithdrawalFeeEstimate = `
|
|
|
1400
1421
|
}
|
|
1401
1422
|
}
|
|
1402
1423
|
|
|
1403
|
-
${
|
|
1424
|
+
${FRAGMENT15}
|
|
1404
1425
|
`;
|
|
1405
1426
|
|
|
1406
1427
|
// src/logger.ts
|
|
@@ -1901,6 +1922,24 @@ var LightsparkClient = class {
|
|
|
1901
1922
|
}
|
|
1902
1923
|
return InvoiceFromJson(invoiceJson);
|
|
1903
1924
|
}
|
|
1925
|
+
/**
|
|
1926
|
+
* Fails all pending HTLCs (Hash Time Locked Contracts) for a given invoice.
|
|
1927
|
+
*
|
|
1928
|
+
* @param invoiceId The ID of the invoice for which to fail HTLCs.
|
|
1929
|
+
* @param cancelInvoice Whether to also cancel the invoice after failing the HTLCs.
|
|
1930
|
+
* @returns The output containing the invoice ID, or undefined if the operation failed.
|
|
1931
|
+
*/
|
|
1932
|
+
async failHtlcs(invoiceId, cancelInvoice) {
|
|
1933
|
+
const response = await this.requester.makeRawRequest(FailHtlcs, {
|
|
1934
|
+
invoice_id: invoiceId,
|
|
1935
|
+
cancel_invoice: cancelInvoice
|
|
1936
|
+
});
|
|
1937
|
+
const output = response.fail_htlcs;
|
|
1938
|
+
if (!output) {
|
|
1939
|
+
return void 0;
|
|
1940
|
+
}
|
|
1941
|
+
return FailHtlcsOutputFromJson(output);
|
|
1942
|
+
}
|
|
1904
1943
|
/**
|
|
1905
1944
|
* Decodes an encoded lightning invoice string.
|
|
1906
1945
|
*
|
|
@@ -2276,15 +2315,19 @@ var LightsparkClient = class {
|
|
|
2276
2315
|
* @param bitcoinAddress The Bitcoin address to withdraw funds to.
|
|
2277
2316
|
* @param mode The mode to use for the withdrawal. See `WithdrawalMode` for more information.
|
|
2278
2317
|
*/
|
|
2279
|
-
async requestWithdrawal(nodeId, amountSats, bitcoinAddress, mode) {
|
|
2318
|
+
async requestWithdrawal(nodeId, amountSats, bitcoinAddress, mode, idempotencyKey = void 0) {
|
|
2319
|
+
const variables = {
|
|
2320
|
+
node_id: nodeId,
|
|
2321
|
+
amount_sats: amountSats,
|
|
2322
|
+
bitcoin_address: bitcoinAddress,
|
|
2323
|
+
withdrawal_mode: mode
|
|
2324
|
+
};
|
|
2325
|
+
if (idempotencyKey !== void 0) {
|
|
2326
|
+
variables.idempotency_key = idempotencyKey;
|
|
2327
|
+
}
|
|
2280
2328
|
const response = await this.requester.makeRawRequest(
|
|
2281
2329
|
RequestWithdrawal,
|
|
2282
|
-
|
|
2283
|
-
node_id: nodeId,
|
|
2284
|
-
amount_sats: amountSats,
|
|
2285
|
-
bitcoin_address: bitcoinAddress,
|
|
2286
|
-
withdrawal_mode: mode
|
|
2287
|
-
},
|
|
2330
|
+
variables,
|
|
2288
2331
|
nodeId
|
|
2289
2332
|
);
|
|
2290
2333
|
return WithdrawalRequestFromJson(response.request_withdrawal.request);
|
package/dist/objects/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { A as Account, a as AccountToApiTokensConnection, b as AccountToChannelsConnection, c as AccountToNodesConnection, d as AccountToPaymentRequestsConnection, e as AccountToTransactionsConnection, f as AccountToWalletsConnection, g as AccountToWithdrawalRequestsConnection, h as ApiToken, j as AuditLogActor, B as Balances, l as BlockchainBalance, C as CancelInvoiceInput, m as CancelInvoiceOutput, n as CancelUmaInvitationInput, o as CancelUmaInvitationOutput, p as Channel, q as ChannelClosingTransaction, s as ChannelFees, t as ChannelOpeningTransaction, v as ChannelSnapshot, x as ChannelStatus, y as ChannelToTransactionsConnection, z as ClaimUmaInvitationInput, D as ClaimUmaInvitationOutput, E as ClaimUmaInvitationWithIncentivesInput, F as ClaimUmaInvitationWithIncentivesOutput, G as ComplianceProvider, H as Connection, I as CreateApiTokenInput, J as CreateApiTokenOutput, K as CreateInvitationWithIncentivesInput, M as CreateInvitationWithIncentivesOutput, N as CreateInvoiceInput, O as CreateInvoiceOutput, P as CreateLnurlInvoiceInput, Q as CreateNodeWalletAddressInput, R as CreateNodeWalletAddressOutput, S as CreateOfferInput, T as CreateOfferOutput, U as CreateTestModeInvoiceInput, V as CreateTestModeInvoiceOutput, X as CreateTestModePaymentInput, Y as CreateTestModePaymentoutput, Z as CreateUmaInvitationInput, _ as CreateUmaInvitationOutput, $ as CreateUmaInvoiceInput, a0 as CurrencyAmount, a1 as CurrencyAmountInput, a2 as CurrencyUnit, a3 as DailyLiquidityForecast, a4 as DeclineToSignMessagesInput, a5 as DeclineToSignMessagesOutput, a6 as DeleteApiTokenInput, a7 as DeleteApiTokenOutput, a8 as Deposit, aa as Entity, ab as FailHtlcsInput, ac as FailHtlcsOutput, ad as FeeEstimate, ae as FundNodeInput, af as FundNodeOutput, ag as GraphNode, ah as Hop, aj as HtlcAttemptFailureCode, ak as IdAndSignature, al as IncentivesIneligibilityReason, am as IncentivesStatus, an as IncomingPayment, ao as IncomingPaymentAttempt, aq as IncomingPaymentAttemptStatus, av as IncomingPaymentToAttemptsConnection, ar as IncomingPaymentsForInvoiceQueryInput, as as IncomingPaymentsForInvoiceQueryOutput, at as IncomingPaymentsForPaymentHashQueryInput, au as IncomingPaymentsForPaymentHashQueryOutput, aw as Invoice, ay as InvoiceData, az as InvoiceForPaymentHashInput, aA as InvoiceForPaymentHashOutput, aB as InvoiceType, aC as LightningFeeEstimateForInvoiceInput, aD as LightningFeeEstimateForNodeInput, aE as LightningFeeEstimateOutput, aF as LightningPaymentDirection, aG as LightningTransaction, aI as LightsparkNode, aK as LightsparkNodeOwner, aM as LightsparkNodeStatus, aN as LightsparkNodeToChannelsConnection, aO as LightsparkNodeToDailyLiquidityForecastsConnection, aP as LightsparkNodeWithOSK, aQ as LightsparkNodeWithRemoteSigning, aR as LookupUmaAddressInput, aS as MultiSigAddressValidationParameters, aT as Node, aV as NodeAddress, aW as NodeAddressType, aX as NodeToAddressesConnection, aY as Offer, a_ as OfferData, b0 as OnChainFeeTarget, b1 as OnChainTransaction, b3 as OutgoingPayment, b4 as OutgoingPaymentAttempt, b5 as OutgoingPaymentAttemptStatus, b6 as OutgoingPaymentAttemptToHopsConnection, b7 as OutgoingPaymentForIdempotencyKeyInput, b8 as OutgoingPaymentForIdempotencyKeyOutput, bd as OutgoingPaymentToAttemptsConnection, b9 as OutgoingPaymentsForInvoiceQueryInput, ba as OutgoingPaymentsForInvoiceQueryOutput, bb as OutgoingPaymentsForPaymentHashQueryInput, bc as OutgoingPaymentsForPaymentHashQueryOutput, be as PageInfo, bf as PayInvoiceInput, bg as PayInvoiceOutput, bn as PayOfferInput, bo as PayOfferOutput, bp as PayTestModeInvoiceInput, bq as PayUmaInvoiceInput, bh as PaymentDirection, bi as PaymentFailureReason, bj as PaymentRequest, bl as PaymentRequestData, bm as PaymentRequestStatus, br as Permission, bs as PostTransactionData, bt as RegionCode, bu as RegisterPaymentInput, bv as RegisterPaymentOutput, bw as ReleaseChannelPerCommitmentSecretInput, bx as ReleaseChannelPerCommitmentSecretOutput, by as ReleasePaymentPreimageInput, bz as ReleasePaymentPreimageOutput, bA as RemoteSigningSubEventType, bB as RequestInitiator, bC as RequestWithdrawalInput, bD as RequestWithdrawalOutput, bE as RichText, bF as RiskRating, bG as RoutingTransaction, bI as RoutingTransactionFailureReason, bJ as ScreenNodeInput, bK as ScreenNodeOutput, bL as Secret, bM as SendPaymentInput, bN as SendPaymentOutput, bO as SetInvoicePaymentHashInput, bP as SetInvoicePaymentHashOutput, bV as SignInvoiceInput, bW as SignInvoiceOutput, bX as SignMessagesInput, bY as SignMessagesOutput, bQ as Signable, bS as SignablePayload, bU as SignablePayloadStatus, bZ as SingleNodeDashboard, b_ as Transaction, c0 as TransactionFailures, c1 as TransactionStatus, c2 as TransactionType, c3 as TransactionUpdate, c4 as UmaCurrency, c6 as UmaCurrencyAmount, c7 as UmaInvitation, c9 as UmaInvitationStatus, ca as UpdateChannelPerCommitmentPointInput, cb as UpdateChannelPerCommitmentPointOutput, cc as UpdateNodeSharedSecretInput, cd as UpdateNodeSharedSecretOutput, ce as Wallet, cf as WalletStatus, cg as WalletToPaymentRequestsConnection, ch as WalletToTransactionsConnection, ci as WalletToWithdrawalRequestsConnection, W as WebhookEventType, cj as Withdrawal, cl as WithdrawalFeeEstimateInput, cm as WithdrawalFeeEstimateOutput, cn as WithdrawalMode, co as WithdrawalRequest, cp as WithdrawalRequestStatus, cq as WithdrawalRequestToChannelClosingTransactionsConnection, cr as WithdrawalRequestToChannelOpeningTransactionsConnection, cs as WithdrawalRequestToWithdrawalsConnection, i as getApiTokenQuery, k as getAuditLogActorQuery, r as getChannelClosingTransactionQuery, u as getChannelOpeningTransactionQuery, w as getChannelSnapshotQuery, a9 as getDepositQuery, ai as getHopQuery, ap as getIncomingPaymentAttemptQuery, ax as getInvoiceQuery, aH as getLightningTransactionQuery, aL as getLightsparkNodeOwnerQuery, aJ as getLightsparkNodeQuery, aU as getNodeQuery, a$ as getOfferDataQuery, aZ as getOfferQuery, b2 as getOnChainTransactionQuery, bk as getPaymentRequestQuery, bH as getRoutingTransactionQuery, bT as getSignablePayloadQuery, bR as getSignableQuery, b$ as getTransactionQuery, c5 as getUmaCurrencyQuery, c8 as getUmaInvitationQuery, ck as getWithdrawalQuery } from '../index-
|
|
1
|
+
export { A as Account, a as AccountToApiTokensConnection, b as AccountToChannelsConnection, c as AccountToNodesConnection, d as AccountToPaymentRequestsConnection, e as AccountToTransactionsConnection, f as AccountToWalletsConnection, g as AccountToWithdrawalRequestsConnection, h as ApiToken, j as AuditLogActor, B as Balances, l as BlockchainBalance, C as CancelInvoiceInput, m as CancelInvoiceOutput, n as CancelUmaInvitationInput, o as CancelUmaInvitationOutput, p as Channel, q as ChannelClosingTransaction, s as ChannelFees, t as ChannelOpeningTransaction, v as ChannelSnapshot, x as ChannelStatus, y as ChannelToTransactionsConnection, z as ClaimUmaInvitationInput, D as ClaimUmaInvitationOutput, E as ClaimUmaInvitationWithIncentivesInput, F as ClaimUmaInvitationWithIncentivesOutput, G as ComplianceProvider, H as Connection, I as CreateApiTokenInput, J as CreateApiTokenOutput, K as CreateInvitationWithIncentivesInput, M as CreateInvitationWithIncentivesOutput, N as CreateInvoiceInput, O as CreateInvoiceOutput, P as CreateLnurlInvoiceInput, Q as CreateNodeWalletAddressInput, R as CreateNodeWalletAddressOutput, S as CreateOfferInput, T as CreateOfferOutput, U as CreateTestModeInvoiceInput, V as CreateTestModeInvoiceOutput, X as CreateTestModePaymentInput, Y as CreateTestModePaymentoutput, Z as CreateUmaInvitationInput, _ as CreateUmaInvitationOutput, $ as CreateUmaInvoiceInput, a0 as CurrencyAmount, a1 as CurrencyAmountInput, a2 as CurrencyUnit, a3 as DailyLiquidityForecast, a4 as DeclineToSignMessagesInput, a5 as DeclineToSignMessagesOutput, a6 as DeleteApiTokenInput, a7 as DeleteApiTokenOutput, a8 as Deposit, aa as Entity, ab as FailHtlcsInput, ac as FailHtlcsOutput, ad as FeeEstimate, ae as FundNodeInput, af as FundNodeOutput, ag as GraphNode, ah as Hop, aj as HtlcAttemptFailureCode, ak as IdAndSignature, al as IncentivesIneligibilityReason, am as IncentivesStatus, an as IncomingPayment, ao as IncomingPaymentAttempt, aq as IncomingPaymentAttemptStatus, av as IncomingPaymentToAttemptsConnection, ar as IncomingPaymentsForInvoiceQueryInput, as as IncomingPaymentsForInvoiceQueryOutput, at as IncomingPaymentsForPaymentHashQueryInput, au as IncomingPaymentsForPaymentHashQueryOutput, aw as Invoice, ay as InvoiceData, az as InvoiceForPaymentHashInput, aA as InvoiceForPaymentHashOutput, aB as InvoiceType, aC as LightningFeeEstimateForInvoiceInput, aD as LightningFeeEstimateForNodeInput, aE as LightningFeeEstimateOutput, aF as LightningPaymentDirection, aG as LightningTransaction, aI as LightsparkNode, aK as LightsparkNodeOwner, aM as LightsparkNodeStatus, aN as LightsparkNodeToChannelsConnection, aO as LightsparkNodeToDailyLiquidityForecastsConnection, aP as LightsparkNodeWithOSK, aQ as LightsparkNodeWithRemoteSigning, aR as LookupUmaAddressInput, aS as MultiSigAddressValidationParameters, aT as Node, aV as NodeAddress, aW as NodeAddressType, aX as NodeToAddressesConnection, aY as Offer, a_ as OfferData, b0 as OnChainFeeTarget, b1 as OnChainTransaction, b3 as OutgoingPayment, b4 as OutgoingPaymentAttempt, b5 as OutgoingPaymentAttemptStatus, b6 as OutgoingPaymentAttemptToHopsConnection, b7 as OutgoingPaymentForIdempotencyKeyInput, b8 as OutgoingPaymentForIdempotencyKeyOutput, bd as OutgoingPaymentToAttemptsConnection, b9 as OutgoingPaymentsForInvoiceQueryInput, ba as OutgoingPaymentsForInvoiceQueryOutput, bb as OutgoingPaymentsForPaymentHashQueryInput, bc as OutgoingPaymentsForPaymentHashQueryOutput, be as PageInfo, bf as PayInvoiceInput, bg as PayInvoiceOutput, bn as PayOfferInput, bo as PayOfferOutput, bp as PayTestModeInvoiceInput, bq as PayUmaInvoiceInput, bh as PaymentDirection, bi as PaymentFailureReason, bj as PaymentRequest, bl as PaymentRequestData, bm as PaymentRequestStatus, br as Permission, bs as PostTransactionData, bt as RegionCode, bu as RegisterPaymentInput, bv as RegisterPaymentOutput, bw as ReleaseChannelPerCommitmentSecretInput, bx as ReleaseChannelPerCommitmentSecretOutput, by as ReleasePaymentPreimageInput, bz as ReleasePaymentPreimageOutput, bA as RemoteSigningSubEventType, bB as RequestInitiator, bC as RequestWithdrawalInput, bD as RequestWithdrawalOutput, bE as RichText, bF as RiskRating, bG as RoutingTransaction, bI as RoutingTransactionFailureReason, bJ as ScreenNodeInput, bK as ScreenNodeOutput, bL as Secret, bM as SendPaymentInput, bN as SendPaymentOutput, bO as SetInvoicePaymentHashInput, bP as SetInvoicePaymentHashOutput, bV as SignInvoiceInput, bW as SignInvoiceOutput, bX as SignMessagesInput, bY as SignMessagesOutput, bQ as Signable, bS as SignablePayload, bU as SignablePayloadStatus, bZ as SingleNodeDashboard, b_ as Transaction, c0 as TransactionFailures, c1 as TransactionStatus, c2 as TransactionType, c3 as TransactionUpdate, c4 as UmaCurrency, c6 as UmaCurrencyAmount, c7 as UmaInvitation, c9 as UmaInvitationStatus, ca as UpdateChannelPerCommitmentPointInput, cb as UpdateChannelPerCommitmentPointOutput, cc as UpdateNodeSharedSecretInput, cd as UpdateNodeSharedSecretOutput, ce as Wallet, cf as WalletStatus, cg as WalletToPaymentRequestsConnection, ch as WalletToTransactionsConnection, ci as WalletToWithdrawalRequestsConnection, W as WebhookEventType, cj as Withdrawal, cl as WithdrawalFeeEstimateInput, cm as WithdrawalFeeEstimateOutput, cn as WithdrawalMode, co as WithdrawalRequest, cp as WithdrawalRequestStatus, cq as WithdrawalRequestToChannelClosingTransactionsConnection, cr as WithdrawalRequestToChannelOpeningTransactionsConnection, cs as WithdrawalRequestToWithdrawalsConnection, i as getApiTokenQuery, k as getAuditLogActorQuery, r as getChannelClosingTransactionQuery, u as getChannelOpeningTransactionQuery, w as getChannelSnapshotQuery, a9 as getDepositQuery, ai as getHopQuery, ap as getIncomingPaymentAttemptQuery, ax as getInvoiceQuery, aH as getLightningTransactionQuery, aL as getLightsparkNodeOwnerQuery, aJ as getLightsparkNodeQuery, aU as getNodeQuery, a$ as getOfferDataQuery, aZ as getOfferQuery, b2 as getOnChainTransactionQuery, bk as getPaymentRequestQuery, bH as getRoutingTransactionQuery, bT as getSignablePayloadQuery, bR as getSignableQuery, b$ as getTransactionQuery, c5 as getUmaCurrencyQuery, c8 as getUmaInvitationQuery, ck as getWithdrawalQuery } from '../index-C753xMTP.cjs';
|
|
2
2
|
export { B as BitcoinNetwork } from '../BitcoinNetwork-CIfB1c0X.cjs';
|
|
3
3
|
import '@lightsparkdev/core';
|
|
4
4
|
import 'zen-observable';
|
package/dist/objects/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { A as Account, a as AccountToApiTokensConnection, b as AccountToChannelsConnection, c as AccountToNodesConnection, d as AccountToPaymentRequestsConnection, e as AccountToTransactionsConnection, f as AccountToWalletsConnection, g as AccountToWithdrawalRequestsConnection, h as ApiToken, j as AuditLogActor, B as Balances, l as BlockchainBalance, C as CancelInvoiceInput, m as CancelInvoiceOutput, n as CancelUmaInvitationInput, o as CancelUmaInvitationOutput, p as Channel, q as ChannelClosingTransaction, s as ChannelFees, t as ChannelOpeningTransaction, v as ChannelSnapshot, x as ChannelStatus, y as ChannelToTransactionsConnection, z as ClaimUmaInvitationInput, D as ClaimUmaInvitationOutput, E as ClaimUmaInvitationWithIncentivesInput, F as ClaimUmaInvitationWithIncentivesOutput, G as ComplianceProvider, H as Connection, I as CreateApiTokenInput, J as CreateApiTokenOutput, K as CreateInvitationWithIncentivesInput, M as CreateInvitationWithIncentivesOutput, N as CreateInvoiceInput, O as CreateInvoiceOutput, P as CreateLnurlInvoiceInput, Q as CreateNodeWalletAddressInput, R as CreateNodeWalletAddressOutput, S as CreateOfferInput, T as CreateOfferOutput, U as CreateTestModeInvoiceInput, V as CreateTestModeInvoiceOutput, X as CreateTestModePaymentInput, Y as CreateTestModePaymentoutput, Z as CreateUmaInvitationInput, _ as CreateUmaInvitationOutput, $ as CreateUmaInvoiceInput, a0 as CurrencyAmount, a1 as CurrencyAmountInput, a2 as CurrencyUnit, a3 as DailyLiquidityForecast, a4 as DeclineToSignMessagesInput, a5 as DeclineToSignMessagesOutput, a6 as DeleteApiTokenInput, a7 as DeleteApiTokenOutput, a8 as Deposit, aa as Entity, ab as FailHtlcsInput, ac as FailHtlcsOutput, ad as FeeEstimate, ae as FundNodeInput, af as FundNodeOutput, ag as GraphNode, ah as Hop, aj as HtlcAttemptFailureCode, ak as IdAndSignature, al as IncentivesIneligibilityReason, am as IncentivesStatus, an as IncomingPayment, ao as IncomingPaymentAttempt, aq as IncomingPaymentAttemptStatus, av as IncomingPaymentToAttemptsConnection, ar as IncomingPaymentsForInvoiceQueryInput, as as IncomingPaymentsForInvoiceQueryOutput, at as IncomingPaymentsForPaymentHashQueryInput, au as IncomingPaymentsForPaymentHashQueryOutput, aw as Invoice, ay as InvoiceData, az as InvoiceForPaymentHashInput, aA as InvoiceForPaymentHashOutput, aB as InvoiceType, aC as LightningFeeEstimateForInvoiceInput, aD as LightningFeeEstimateForNodeInput, aE as LightningFeeEstimateOutput, aF as LightningPaymentDirection, aG as LightningTransaction, aI as LightsparkNode, aK as LightsparkNodeOwner, aM as LightsparkNodeStatus, aN as LightsparkNodeToChannelsConnection, aO as LightsparkNodeToDailyLiquidityForecastsConnection, aP as LightsparkNodeWithOSK, aQ as LightsparkNodeWithRemoteSigning, aR as LookupUmaAddressInput, aS as MultiSigAddressValidationParameters, aT as Node, aV as NodeAddress, aW as NodeAddressType, aX as NodeToAddressesConnection, aY as Offer, a_ as OfferData, b0 as OnChainFeeTarget, b1 as OnChainTransaction, b3 as OutgoingPayment, b4 as OutgoingPaymentAttempt, b5 as OutgoingPaymentAttemptStatus, b6 as OutgoingPaymentAttemptToHopsConnection, b7 as OutgoingPaymentForIdempotencyKeyInput, b8 as OutgoingPaymentForIdempotencyKeyOutput, bd as OutgoingPaymentToAttemptsConnection, b9 as OutgoingPaymentsForInvoiceQueryInput, ba as OutgoingPaymentsForInvoiceQueryOutput, bb as OutgoingPaymentsForPaymentHashQueryInput, bc as OutgoingPaymentsForPaymentHashQueryOutput, be as PageInfo, bf as PayInvoiceInput, bg as PayInvoiceOutput, bn as PayOfferInput, bo as PayOfferOutput, bp as PayTestModeInvoiceInput, bq as PayUmaInvoiceInput, bh as PaymentDirection, bi as PaymentFailureReason, bj as PaymentRequest, bl as PaymentRequestData, bm as PaymentRequestStatus, br as Permission, bs as PostTransactionData, bt as RegionCode, bu as RegisterPaymentInput, bv as RegisterPaymentOutput, bw as ReleaseChannelPerCommitmentSecretInput, bx as ReleaseChannelPerCommitmentSecretOutput, by as ReleasePaymentPreimageInput, bz as ReleasePaymentPreimageOutput, bA as RemoteSigningSubEventType, bB as RequestInitiator, bC as RequestWithdrawalInput, bD as RequestWithdrawalOutput, bE as RichText, bF as RiskRating, bG as RoutingTransaction, bI as RoutingTransactionFailureReason, bJ as ScreenNodeInput, bK as ScreenNodeOutput, bL as Secret, bM as SendPaymentInput, bN as SendPaymentOutput, bO as SetInvoicePaymentHashInput, bP as SetInvoicePaymentHashOutput, bV as SignInvoiceInput, bW as SignInvoiceOutput, bX as SignMessagesInput, bY as SignMessagesOutput, bQ as Signable, bS as SignablePayload, bU as SignablePayloadStatus, bZ as SingleNodeDashboard, b_ as Transaction, c0 as TransactionFailures, c1 as TransactionStatus, c2 as TransactionType, c3 as TransactionUpdate, c4 as UmaCurrency, c6 as UmaCurrencyAmount, c7 as UmaInvitation, c9 as UmaInvitationStatus, ca as UpdateChannelPerCommitmentPointInput, cb as UpdateChannelPerCommitmentPointOutput, cc as UpdateNodeSharedSecretInput, cd as UpdateNodeSharedSecretOutput, ce as Wallet, cf as WalletStatus, cg as WalletToPaymentRequestsConnection, ch as WalletToTransactionsConnection, ci as WalletToWithdrawalRequestsConnection, W as WebhookEventType, cj as Withdrawal, cl as WithdrawalFeeEstimateInput, cm as WithdrawalFeeEstimateOutput, cn as WithdrawalMode, co as WithdrawalRequest, cp as WithdrawalRequestStatus, cq as WithdrawalRequestToChannelClosingTransactionsConnection, cr as WithdrawalRequestToChannelOpeningTransactionsConnection, cs as WithdrawalRequestToWithdrawalsConnection, i as getApiTokenQuery, k as getAuditLogActorQuery, r as getChannelClosingTransactionQuery, u as getChannelOpeningTransactionQuery, w as getChannelSnapshotQuery, a9 as getDepositQuery, ai as getHopQuery, ap as getIncomingPaymentAttemptQuery, ax as getInvoiceQuery, aH as getLightningTransactionQuery, aL as getLightsparkNodeOwnerQuery, aJ as getLightsparkNodeQuery, aU as getNodeQuery, a$ as getOfferDataQuery, aZ as getOfferQuery, b2 as getOnChainTransactionQuery, bk as getPaymentRequestQuery, bH as getRoutingTransactionQuery, bT as getSignablePayloadQuery, bR as getSignableQuery, b$ as getTransactionQuery, c5 as getUmaCurrencyQuery, c8 as getUmaInvitationQuery, ck as getWithdrawalQuery } from '../index-
|
|
1
|
+
export { A as Account, a as AccountToApiTokensConnection, b as AccountToChannelsConnection, c as AccountToNodesConnection, d as AccountToPaymentRequestsConnection, e as AccountToTransactionsConnection, f as AccountToWalletsConnection, g as AccountToWithdrawalRequestsConnection, h as ApiToken, j as AuditLogActor, B as Balances, l as BlockchainBalance, C as CancelInvoiceInput, m as CancelInvoiceOutput, n as CancelUmaInvitationInput, o as CancelUmaInvitationOutput, p as Channel, q as ChannelClosingTransaction, s as ChannelFees, t as ChannelOpeningTransaction, v as ChannelSnapshot, x as ChannelStatus, y as ChannelToTransactionsConnection, z as ClaimUmaInvitationInput, D as ClaimUmaInvitationOutput, E as ClaimUmaInvitationWithIncentivesInput, F as ClaimUmaInvitationWithIncentivesOutput, G as ComplianceProvider, H as Connection, I as CreateApiTokenInput, J as CreateApiTokenOutput, K as CreateInvitationWithIncentivesInput, M as CreateInvitationWithIncentivesOutput, N as CreateInvoiceInput, O as CreateInvoiceOutput, P as CreateLnurlInvoiceInput, Q as CreateNodeWalletAddressInput, R as CreateNodeWalletAddressOutput, S as CreateOfferInput, T as CreateOfferOutput, U as CreateTestModeInvoiceInput, V as CreateTestModeInvoiceOutput, X as CreateTestModePaymentInput, Y as CreateTestModePaymentoutput, Z as CreateUmaInvitationInput, _ as CreateUmaInvitationOutput, $ as CreateUmaInvoiceInput, a0 as CurrencyAmount, a1 as CurrencyAmountInput, a2 as CurrencyUnit, a3 as DailyLiquidityForecast, a4 as DeclineToSignMessagesInput, a5 as DeclineToSignMessagesOutput, a6 as DeleteApiTokenInput, a7 as DeleteApiTokenOutput, a8 as Deposit, aa as Entity, ab as FailHtlcsInput, ac as FailHtlcsOutput, ad as FeeEstimate, ae as FundNodeInput, af as FundNodeOutput, ag as GraphNode, ah as Hop, aj as HtlcAttemptFailureCode, ak as IdAndSignature, al as IncentivesIneligibilityReason, am as IncentivesStatus, an as IncomingPayment, ao as IncomingPaymentAttempt, aq as IncomingPaymentAttemptStatus, av as IncomingPaymentToAttemptsConnection, ar as IncomingPaymentsForInvoiceQueryInput, as as IncomingPaymentsForInvoiceQueryOutput, at as IncomingPaymentsForPaymentHashQueryInput, au as IncomingPaymentsForPaymentHashQueryOutput, aw as Invoice, ay as InvoiceData, az as InvoiceForPaymentHashInput, aA as InvoiceForPaymentHashOutput, aB as InvoiceType, aC as LightningFeeEstimateForInvoiceInput, aD as LightningFeeEstimateForNodeInput, aE as LightningFeeEstimateOutput, aF as LightningPaymentDirection, aG as LightningTransaction, aI as LightsparkNode, aK as LightsparkNodeOwner, aM as LightsparkNodeStatus, aN as LightsparkNodeToChannelsConnection, aO as LightsparkNodeToDailyLiquidityForecastsConnection, aP as LightsparkNodeWithOSK, aQ as LightsparkNodeWithRemoteSigning, aR as LookupUmaAddressInput, aS as MultiSigAddressValidationParameters, aT as Node, aV as NodeAddress, aW as NodeAddressType, aX as NodeToAddressesConnection, aY as Offer, a_ as OfferData, b0 as OnChainFeeTarget, b1 as OnChainTransaction, b3 as OutgoingPayment, b4 as OutgoingPaymentAttempt, b5 as OutgoingPaymentAttemptStatus, b6 as OutgoingPaymentAttemptToHopsConnection, b7 as OutgoingPaymentForIdempotencyKeyInput, b8 as OutgoingPaymentForIdempotencyKeyOutput, bd as OutgoingPaymentToAttemptsConnection, b9 as OutgoingPaymentsForInvoiceQueryInput, ba as OutgoingPaymentsForInvoiceQueryOutput, bb as OutgoingPaymentsForPaymentHashQueryInput, bc as OutgoingPaymentsForPaymentHashQueryOutput, be as PageInfo, bf as PayInvoiceInput, bg as PayInvoiceOutput, bn as PayOfferInput, bo as PayOfferOutput, bp as PayTestModeInvoiceInput, bq as PayUmaInvoiceInput, bh as PaymentDirection, bi as PaymentFailureReason, bj as PaymentRequest, bl as PaymentRequestData, bm as PaymentRequestStatus, br as Permission, bs as PostTransactionData, bt as RegionCode, bu as RegisterPaymentInput, bv as RegisterPaymentOutput, bw as ReleaseChannelPerCommitmentSecretInput, bx as ReleaseChannelPerCommitmentSecretOutput, by as ReleasePaymentPreimageInput, bz as ReleasePaymentPreimageOutput, bA as RemoteSigningSubEventType, bB as RequestInitiator, bC as RequestWithdrawalInput, bD as RequestWithdrawalOutput, bE as RichText, bF as RiskRating, bG as RoutingTransaction, bI as RoutingTransactionFailureReason, bJ as ScreenNodeInput, bK as ScreenNodeOutput, bL as Secret, bM as SendPaymentInput, bN as SendPaymentOutput, bO as SetInvoicePaymentHashInput, bP as SetInvoicePaymentHashOutput, bV as SignInvoiceInput, bW as SignInvoiceOutput, bX as SignMessagesInput, bY as SignMessagesOutput, bQ as Signable, bS as SignablePayload, bU as SignablePayloadStatus, bZ as SingleNodeDashboard, b_ as Transaction, c0 as TransactionFailures, c1 as TransactionStatus, c2 as TransactionType, c3 as TransactionUpdate, c4 as UmaCurrency, c6 as UmaCurrencyAmount, c7 as UmaInvitation, c9 as UmaInvitationStatus, ca as UpdateChannelPerCommitmentPointInput, cb as UpdateChannelPerCommitmentPointOutput, cc as UpdateNodeSharedSecretInput, cd as UpdateNodeSharedSecretOutput, ce as Wallet, cf as WalletStatus, cg as WalletToPaymentRequestsConnection, ch as WalletToTransactionsConnection, ci as WalletToWithdrawalRequestsConnection, W as WebhookEventType, cj as Withdrawal, cl as WithdrawalFeeEstimateInput, cm as WithdrawalFeeEstimateOutput, cn as WithdrawalMode, co as WithdrawalRequest, cp as WithdrawalRequestStatus, cq as WithdrawalRequestToChannelClosingTransactionsConnection, cr as WithdrawalRequestToChannelOpeningTransactionsConnection, cs as WithdrawalRequestToWithdrawalsConnection, i as getApiTokenQuery, k as getAuditLogActorQuery, r as getChannelClosingTransactionQuery, u as getChannelOpeningTransactionQuery, w as getChannelSnapshotQuery, a9 as getDepositQuery, ai as getHopQuery, ap as getIncomingPaymentAttemptQuery, ax as getInvoiceQuery, aH as getLightningTransactionQuery, aL as getLightsparkNodeOwnerQuery, aJ as getLightsparkNodeQuery, aU as getNodeQuery, a$ as getOfferDataQuery, aZ as getOfferQuery, b2 as getOnChainTransactionQuery, bk as getPaymentRequestQuery, bH as getRoutingTransactionQuery, bT as getSignablePayloadQuery, bR as getSignableQuery, b$ as getTransactionQuery, c5 as getUmaCurrencyQuery, c8 as getUmaInvitationQuery, ck as getWithdrawalQuery } from '../index-COyfARTo.js';
|
|
2
2
|
export { B as BitcoinNetwork } from '../BitcoinNetwork-CIfB1c0X.js';
|
|
3
3
|
import '@lightsparkdev/core';
|
|
4
4
|
import 'zen-observable';
|
package/dist/objects/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lightsparkdev/lightspark-sdk",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.16",
|
|
4
4
|
"description": "Lightspark JS SDK",
|
|
5
5
|
"author": "Lightspark Inc.",
|
|
6
6
|
"keywords": [
|
|
@@ -70,8 +70,8 @@
|
|
|
70
70
|
},
|
|
71
71
|
"license": "Apache-2.0",
|
|
72
72
|
"dependencies": {
|
|
73
|
-
"@lightsparkdev/core": "1.4.
|
|
74
|
-
"@lightsparkdev/crypto-wasm": "0.1.
|
|
73
|
+
"@lightsparkdev/core": "1.4.9",
|
|
74
|
+
"@lightsparkdev/crypto-wasm": "0.1.23",
|
|
75
75
|
"dayjs": "^1.11.7",
|
|
76
76
|
"dotenv": "^16.3.1",
|
|
77
77
|
"graphql": "^16.6.0",
|
package/src/client.ts
CHANGED
|
@@ -45,6 +45,7 @@ import { CreateUmaInvitationWithPayment } from "./graphql/CreateUmaInvitationWit
|
|
|
45
45
|
import { CreateUmaInvoice } from "./graphql/CreateUmaInvoice.js";
|
|
46
46
|
import { DecodeInvoice } from "./graphql/DecodeInvoice.js";
|
|
47
47
|
import { DeleteApiToken } from "./graphql/DeleteApiToken.js";
|
|
48
|
+
import { FailHtlcs } from "./graphql/FailHtlcs.js";
|
|
48
49
|
import { FetchUmaInvitation } from "./graphql/FetchUmaInvitation.js";
|
|
49
50
|
import { FundNode } from "./graphql/FundNode.js";
|
|
50
51
|
import { IncomingPaymentsForInvoice } from "./graphql/IncomingPaymentsForInvoice.js";
|
|
@@ -76,6 +77,8 @@ import type ComplianceProvider from "./objects/ComplianceProvider.js";
|
|
|
76
77
|
import type CreateApiTokenOutput from "./objects/CreateApiTokenOutput.js";
|
|
77
78
|
import type CurrencyAmount from "./objects/CurrencyAmount.js";
|
|
78
79
|
import { CurrencyAmountFromJson } from "./objects/CurrencyAmount.js";
|
|
80
|
+
import type FailHtlcsOutput from "./objects/FailHtlcsOutput.js";
|
|
81
|
+
import { FailHtlcsOutputFromJson } from "./objects/FailHtlcsOutput.js";
|
|
79
82
|
import type FeeEstimate from "./objects/FeeEstimate.js";
|
|
80
83
|
import { FeeEstimateFromJson } from "./objects/FeeEstimate.js";
|
|
81
84
|
import type IncomingPayment from "./objects/IncomingPayment.js";
|
|
@@ -736,6 +739,28 @@ class LightsparkClient {
|
|
|
736
739
|
return InvoiceFromJson(invoiceJson);
|
|
737
740
|
}
|
|
738
741
|
|
|
742
|
+
/**
|
|
743
|
+
* Fails all pending HTLCs (Hash Time Locked Contracts) for a given invoice.
|
|
744
|
+
*
|
|
745
|
+
* @param invoiceId The ID of the invoice for which to fail HTLCs.
|
|
746
|
+
* @param cancelInvoice Whether to also cancel the invoice after failing the HTLCs.
|
|
747
|
+
* @returns The output containing the invoice ID, or undefined if the operation failed.
|
|
748
|
+
*/
|
|
749
|
+
public async failHtlcs(
|
|
750
|
+
invoiceId: string,
|
|
751
|
+
cancelInvoice: boolean,
|
|
752
|
+
): Promise<FailHtlcsOutput | undefined> {
|
|
753
|
+
const response = await this.requester.makeRawRequest(FailHtlcs, {
|
|
754
|
+
invoice_id: invoiceId,
|
|
755
|
+
cancel_invoice: cancelInvoice,
|
|
756
|
+
});
|
|
757
|
+
const output = response.fail_htlcs;
|
|
758
|
+
if (!output) {
|
|
759
|
+
return undefined;
|
|
760
|
+
}
|
|
761
|
+
return FailHtlcsOutputFromJson(output);
|
|
762
|
+
}
|
|
763
|
+
|
|
739
764
|
/**
|
|
740
765
|
* Decodes an encoded lightning invoice string.
|
|
741
766
|
*
|
|
@@ -1206,15 +1231,20 @@ class LightsparkClient {
|
|
|
1206
1231
|
amountSats: number,
|
|
1207
1232
|
bitcoinAddress: string,
|
|
1208
1233
|
mode: WithdrawalMode,
|
|
1234
|
+
idempotencyKey: string | undefined = undefined,
|
|
1209
1235
|
): Promise<WithdrawalRequest> {
|
|
1236
|
+
const variables: Record<string, string | number> = {
|
|
1237
|
+
node_id: nodeId,
|
|
1238
|
+
amount_sats: amountSats,
|
|
1239
|
+
bitcoin_address: bitcoinAddress,
|
|
1240
|
+
withdrawal_mode: mode,
|
|
1241
|
+
};
|
|
1242
|
+
if (idempotencyKey !== undefined) {
|
|
1243
|
+
variables.idempotency_key = idempotencyKey;
|
|
1244
|
+
}
|
|
1210
1245
|
const response = await this.requester.makeRawRequest(
|
|
1211
1246
|
RequestWithdrawal,
|
|
1212
|
-
|
|
1213
|
-
node_id: nodeId,
|
|
1214
|
-
amount_sats: amountSats,
|
|
1215
|
-
bitcoin_address: bitcoinAddress,
|
|
1216
|
-
withdrawal_mode: mode,
|
|
1217
|
-
},
|
|
1247
|
+
variables,
|
|
1218
1248
|
nodeId,
|
|
1219
1249
|
);
|
|
1220
1250
|
return WithdrawalRequestFromJson(response.request_withdrawal.request);
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved
|
|
2
|
+
|
|
3
|
+
import { FRAGMENT as FailHtlcsOutputFragment } from "../objects/FailHtlcsOutput.js";
|
|
4
|
+
|
|
5
|
+
export const FailHtlcs = `
|
|
6
|
+
mutation FailHtlcs(
|
|
7
|
+
$invoice_id: ID!,
|
|
8
|
+
$cancel_invoice: Boolean!
|
|
9
|
+
) {
|
|
10
|
+
fail_htlcs(input: {
|
|
11
|
+
invoice_id: $invoice_id,
|
|
12
|
+
cancel_invoice: $cancel_invoice
|
|
13
|
+
}) {
|
|
14
|
+
...FailHtlcsOutputFragment
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
${FailHtlcsOutputFragment}
|
|
19
|
+
`;
|
|
@@ -8,12 +8,14 @@ export const RequestWithdrawal = `
|
|
|
8
8
|
$bitcoin_address: String!
|
|
9
9
|
$amount_sats: Long!
|
|
10
10
|
$withdrawal_mode: WithdrawalMode!
|
|
11
|
+
$idempotency_key: String
|
|
11
12
|
) {
|
|
12
13
|
request_withdrawal(input: {
|
|
13
14
|
node_id: $node_id
|
|
14
15
|
bitcoin_address: $bitcoin_address
|
|
15
16
|
amount_sats: $amount_sats
|
|
16
17
|
withdrawal_mode: $withdrawal_mode
|
|
18
|
+
idempotency_key: $idempotency_key
|
|
17
19
|
}) {
|
|
18
20
|
request {
|
|
19
21
|
...WithdrawalRequestFragment
|