@lightsparkdev/lightspark-sdk 1.9.13 → 1.9.15
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 +18 -0
- package/dist/{chunk-K62FULET.js → chunk-TWQHQTN7.js} +50 -34
- package/dist/{index-tN3Kv2I2.d.cts → index-C753xMTP.d.cts} +16 -6
- package/dist/{index-BZwvqXMx.d.ts → index-COyfARTo.d.ts} +16 -6
- package/dist/index.cjs +148 -75
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +88 -27
- 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 +46 -6
- package/src/graphql/CreateInvoice.ts +11 -1
- 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.15",
|
|
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.8",
|
|
231
|
+
"@lightsparkdev/crypto-wasm": "0.1.22",
|
|
230
232
|
dayjs: "^1.11.7",
|
|
231
233
|
dotenv: "^16.3.1",
|
|
232
234
|
graphql: "^16.6.0",
|
|
@@ -569,8 +571,18 @@ var CreateInvoice = `
|
|
|
569
571
|
$memo: String
|
|
570
572
|
$type: InvoiceType = null
|
|
571
573
|
$expiry_secs: Int = null
|
|
574
|
+
$payment_hash: Hash32 = null
|
|
575
|
+
$preimage_nonce: Hash32 = null
|
|
572
576
|
) {
|
|
573
|
-
create_invoice(input: {
|
|
577
|
+
create_invoice(input: {
|
|
578
|
+
node_id: $node_id,
|
|
579
|
+
amount_msats: $amount_msats,
|
|
580
|
+
memo: $memo,
|
|
581
|
+
invoice_type: $type,
|
|
582
|
+
expiry_secs: $expiry_secs,
|
|
583
|
+
payment_hash: $payment_hash,
|
|
584
|
+
preimage_nonce: $preimage_nonce
|
|
585
|
+
}) {
|
|
574
586
|
invoice {
|
|
575
587
|
...InvoiceFragment
|
|
576
588
|
}
|
|
@@ -782,6 +794,23 @@ var DeleteApiToken = `
|
|
|
782
794
|
}
|
|
783
795
|
`;
|
|
784
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
|
+
|
|
785
814
|
// src/graphql/FetchUmaInvitation.ts
|
|
786
815
|
var FetchUmaInvitation = `
|
|
787
816
|
query FetchUmaInvitation(
|
|
@@ -861,7 +890,7 @@ var LightningFeeEstimateForInvoice = `
|
|
|
861
890
|
}
|
|
862
891
|
}
|
|
863
892
|
|
|
864
|
-
${
|
|
893
|
+
${FRAGMENT9}
|
|
865
894
|
`;
|
|
866
895
|
|
|
867
896
|
// src/graphql/LightningFeeEstimateForNode.ts
|
|
@@ -880,7 +909,7 @@ var LightningFeeEstimateForNode = `
|
|
|
880
909
|
}
|
|
881
910
|
}
|
|
882
911
|
|
|
883
|
-
${
|
|
912
|
+
${FRAGMENT9}
|
|
884
913
|
`;
|
|
885
914
|
|
|
886
915
|
// src/graphql/LookupUmaAddress.ts
|
|
@@ -983,7 +1012,7 @@ query OutgoingPaymentsForInvoice(
|
|
|
983
1012
|
}
|
|
984
1013
|
}
|
|
985
1014
|
|
|
986
|
-
${
|
|
1015
|
+
${FRAGMENT10}
|
|
987
1016
|
`;
|
|
988
1017
|
|
|
989
1018
|
// src/graphql/OutgoingPaymentsForPaymentHash.ts
|
|
@@ -1002,7 +1031,7 @@ query OutgoingPaymentsForPaymentHash(
|
|
|
1002
1031
|
}
|
|
1003
1032
|
}
|
|
1004
1033
|
|
|
1005
|
-
${
|
|
1034
|
+
${FRAGMENT10}
|
|
1006
1035
|
`;
|
|
1007
1036
|
|
|
1008
1037
|
// src/graphql/PayInvoice.ts
|
|
@@ -1031,7 +1060,7 @@ var PayInvoice = `
|
|
|
1031
1060
|
}
|
|
1032
1061
|
}
|
|
1033
1062
|
|
|
1034
|
-
${
|
|
1063
|
+
${FRAGMENT10}
|
|
1035
1064
|
`;
|
|
1036
1065
|
|
|
1037
1066
|
// src/graphql/PayOffer.ts
|
|
@@ -1060,7 +1089,7 @@ var PayOffer = `
|
|
|
1060
1089
|
}
|
|
1061
1090
|
}
|
|
1062
1091
|
|
|
1063
|
-
${
|
|
1092
|
+
${FRAGMENT10}
|
|
1064
1093
|
`;
|
|
1065
1094
|
|
|
1066
1095
|
// src/graphql/PayUmaInvoice.ts
|
|
@@ -1089,7 +1118,7 @@ var PayUmaInvoice = `
|
|
|
1089
1118
|
}
|
|
1090
1119
|
}
|
|
1091
1120
|
|
|
1092
|
-
${
|
|
1121
|
+
${FRAGMENT10}
|
|
1093
1122
|
`;
|
|
1094
1123
|
|
|
1095
1124
|
// src/graphql/PaymentRequestsForNode.ts
|
|
@@ -1120,7 +1149,7 @@ query PaymentRequestsForNode(
|
|
|
1120
1149
|
}
|
|
1121
1150
|
}
|
|
1122
1151
|
|
|
1123
|
-
${
|
|
1152
|
+
${FRAGMENT11}
|
|
1124
1153
|
`;
|
|
1125
1154
|
|
|
1126
1155
|
// src/graphql/RegisterPayment.ts
|
|
@@ -1151,12 +1180,14 @@ var RequestWithdrawal = `
|
|
|
1151
1180
|
$bitcoin_address: String!
|
|
1152
1181
|
$amount_sats: Long!
|
|
1153
1182
|
$withdrawal_mode: WithdrawalMode!
|
|
1183
|
+
$idempotency_key: String
|
|
1154
1184
|
) {
|
|
1155
1185
|
request_withdrawal(input: {
|
|
1156
1186
|
node_id: $node_id
|
|
1157
1187
|
bitcoin_address: $bitcoin_address
|
|
1158
1188
|
amount_sats: $amount_sats
|
|
1159
1189
|
withdrawal_mode: $withdrawal_mode
|
|
1190
|
+
idempotency_key: $idempotency_key
|
|
1160
1191
|
}) {
|
|
1161
1192
|
request {
|
|
1162
1193
|
...WithdrawalRequestFragment
|
|
@@ -1164,7 +1195,7 @@ var RequestWithdrawal = `
|
|
|
1164
1195
|
}
|
|
1165
1196
|
}
|
|
1166
1197
|
|
|
1167
|
-
${
|
|
1198
|
+
${FRAGMENT12}
|
|
1168
1199
|
`;
|
|
1169
1200
|
|
|
1170
1201
|
// src/graphql/ScreenNode.ts
|
|
@@ -1206,7 +1237,7 @@ var SendPayment = `
|
|
|
1206
1237
|
}
|
|
1207
1238
|
}
|
|
1208
1239
|
|
|
1209
|
-
${
|
|
1240
|
+
${FRAGMENT10}
|
|
1210
1241
|
`;
|
|
1211
1242
|
|
|
1212
1243
|
// src/graphql/SingleNodeDashboard.ts
|
|
@@ -1317,7 +1348,7 @@ query SingleNodeDashboard(
|
|
|
1317
1348
|
}
|
|
1318
1349
|
}
|
|
1319
1350
|
|
|
1320
|
-
${
|
|
1351
|
+
${FRAGMENT13}
|
|
1321
1352
|
${FRAGMENT}
|
|
1322
1353
|
`;
|
|
1323
1354
|
|
|
@@ -1332,7 +1363,7 @@ subscription TransactionSubscription(
|
|
|
1332
1363
|
}
|
|
1333
1364
|
}
|
|
1334
1365
|
|
|
1335
|
-
${
|
|
1366
|
+
${FRAGMENT14}
|
|
1336
1367
|
`;
|
|
1337
1368
|
|
|
1338
1369
|
// src/graphql/TransactionsForNode.ts
|
|
@@ -1370,7 +1401,7 @@ query TransactionsForNode(
|
|
|
1370
1401
|
}
|
|
1371
1402
|
}
|
|
1372
1403
|
|
|
1373
|
-
${
|
|
1404
|
+
${FRAGMENT13}
|
|
1374
1405
|
${FRAGMENT}
|
|
1375
1406
|
`;
|
|
1376
1407
|
|
|
@@ -1390,7 +1421,7 @@ var WithdrawalFeeEstimate = `
|
|
|
1390
1421
|
}
|
|
1391
1422
|
}
|
|
1392
1423
|
|
|
1393
|
-
${
|
|
1424
|
+
${FRAGMENT15}
|
|
1394
1425
|
`;
|
|
1395
1426
|
|
|
1396
1427
|
// src/logger.ts
|
|
@@ -1739,9 +1770,11 @@ var LightsparkClient = class {
|
|
|
1739
1770
|
* to create an [AMP invoice](https://docs.lightning.engineering/lightning-network-tools/lnd/amp), which can be
|
|
1740
1771
|
* paid multiple times.
|
|
1741
1772
|
* @param expirySecs The number of seconds until the invoice expires. Defaults to 86400 (1 day).
|
|
1773
|
+
* @param paymentHash An optional payment hash to use for the invoice.
|
|
1774
|
+
* @param preimageNonce An optional 32 byte nonce used to generate the payment hash.
|
|
1742
1775
|
* @returns An Invoice object, or undefined if the invoice could not be created.
|
|
1743
1776
|
*/
|
|
1744
|
-
async createInvoiceWithDetails(nodeId, amountMsats, memo, type = void 0, expirySecs = void 0) {
|
|
1777
|
+
async createInvoiceWithDetails(nodeId, amountMsats, memo, type = void 0, expirySecs = void 0, paymentHash = void 0, preimageNonce = void 0) {
|
|
1745
1778
|
const variables = {
|
|
1746
1779
|
node_id: nodeId,
|
|
1747
1780
|
amount_msats: amountMsats,
|
|
@@ -1751,6 +1784,12 @@ var LightsparkClient = class {
|
|
|
1751
1784
|
if (expirySecs !== void 0) {
|
|
1752
1785
|
variables["expiry_secs"] = expirySecs;
|
|
1753
1786
|
}
|
|
1787
|
+
if (paymentHash !== void 0) {
|
|
1788
|
+
variables["payment_hash"] = paymentHash;
|
|
1789
|
+
}
|
|
1790
|
+
if (preimageNonce !== void 0) {
|
|
1791
|
+
variables["preimage_nonce"] = preimageNonce;
|
|
1792
|
+
}
|
|
1754
1793
|
const response = await this.requester.makeRawRequest(
|
|
1755
1794
|
CreateInvoice,
|
|
1756
1795
|
variables
|
|
@@ -1883,6 +1922,24 @@ var LightsparkClient = class {
|
|
|
1883
1922
|
}
|
|
1884
1923
|
return InvoiceFromJson(invoiceJson);
|
|
1885
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
|
+
}
|
|
1886
1943
|
/**
|
|
1887
1944
|
* Decodes an encoded lightning invoice string.
|
|
1888
1945
|
*
|
|
@@ -2258,15 +2315,19 @@ var LightsparkClient = class {
|
|
|
2258
2315
|
* @param bitcoinAddress The Bitcoin address to withdraw funds to.
|
|
2259
2316
|
* @param mode The mode to use for the withdrawal. See `WithdrawalMode` for more information.
|
|
2260
2317
|
*/
|
|
2261
|
-
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
|
+
}
|
|
2262
2328
|
const response = await this.requester.makeRawRequest(
|
|
2263
2329
|
RequestWithdrawal,
|
|
2264
|
-
|
|
2265
|
-
node_id: nodeId,
|
|
2266
|
-
amount_sats: amountSats,
|
|
2267
|
-
bitcoin_address: bitcoinAddress,
|
|
2268
|
-
withdrawal_mode: mode
|
|
2269
|
-
},
|
|
2330
|
+
variables,
|
|
2270
2331
|
nodeId
|
|
2271
2332
|
);
|
|
2272
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.15",
|
|
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.8",
|
|
74
|
+
"@lightsparkdev/crypto-wasm": "0.1.22",
|
|
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";
|
|
@@ -554,6 +557,8 @@ class LightsparkClient {
|
|
|
554
557
|
* to create an [AMP invoice](https://docs.lightning.engineering/lightning-network-tools/lnd/amp), which can be
|
|
555
558
|
* paid multiple times.
|
|
556
559
|
* @param expirySecs The number of seconds until the invoice expires. Defaults to 86400 (1 day).
|
|
560
|
+
* @param paymentHash An optional payment hash to use for the invoice.
|
|
561
|
+
* @param preimageNonce An optional 32 byte nonce used to generate the payment hash.
|
|
557
562
|
* @returns An Invoice object, or undefined if the invoice could not be created.
|
|
558
563
|
*/
|
|
559
564
|
public async createInvoiceWithDetails(
|
|
@@ -562,6 +567,8 @@ class LightsparkClient {
|
|
|
562
567
|
memo: string,
|
|
563
568
|
type: InvoiceType | undefined = undefined,
|
|
564
569
|
expirySecs: number | undefined = undefined,
|
|
570
|
+
paymentHash: string | undefined = undefined,
|
|
571
|
+
preimageNonce: string | undefined = undefined,
|
|
565
572
|
): Promise<Invoice | undefined> {
|
|
566
573
|
const variables = {
|
|
567
574
|
node_id: nodeId,
|
|
@@ -572,6 +579,12 @@ class LightsparkClient {
|
|
|
572
579
|
if (expirySecs !== undefined) {
|
|
573
580
|
variables["expiry_secs"] = expirySecs;
|
|
574
581
|
}
|
|
582
|
+
if (paymentHash !== undefined) {
|
|
583
|
+
variables["payment_hash"] = paymentHash;
|
|
584
|
+
}
|
|
585
|
+
if (preimageNonce !== undefined) {
|
|
586
|
+
variables["preimage_nonce"] = preimageNonce;
|
|
587
|
+
}
|
|
575
588
|
const response = await this.requester.makeRawRequest(
|
|
576
589
|
CreateInvoice,
|
|
577
590
|
variables,
|
|
@@ -726,6 +739,28 @@ class LightsparkClient {
|
|
|
726
739
|
return InvoiceFromJson(invoiceJson);
|
|
727
740
|
}
|
|
728
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
|
+
|
|
729
764
|
/**
|
|
730
765
|
* Decodes an encoded lightning invoice string.
|
|
731
766
|
*
|
|
@@ -1196,15 +1231,20 @@ class LightsparkClient {
|
|
|
1196
1231
|
amountSats: number,
|
|
1197
1232
|
bitcoinAddress: string,
|
|
1198
1233
|
mode: WithdrawalMode,
|
|
1234
|
+
idempotencyKey: string | undefined = undefined,
|
|
1199
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
|
+
}
|
|
1200
1245
|
const response = await this.requester.makeRawRequest(
|
|
1201
1246
|
RequestWithdrawal,
|
|
1202
|
-
|
|
1203
|
-
node_id: nodeId,
|
|
1204
|
-
amount_sats: amountSats,
|
|
1205
|
-
bitcoin_address: bitcoinAddress,
|
|
1206
|
-
withdrawal_mode: mode,
|
|
1207
|
-
},
|
|
1247
|
+
variables,
|
|
1208
1248
|
nodeId,
|
|
1209
1249
|
);
|
|
1210
1250
|
return WithdrawalRequestFromJson(response.request_withdrawal.request);
|
|
@@ -9,8 +9,18 @@ export const CreateInvoice = `
|
|
|
9
9
|
$memo: String
|
|
10
10
|
$type: InvoiceType = null
|
|
11
11
|
$expiry_secs: Int = null
|
|
12
|
+
$payment_hash: Hash32 = null
|
|
13
|
+
$preimage_nonce: Hash32 = null
|
|
12
14
|
) {
|
|
13
|
-
create_invoice(input: {
|
|
15
|
+
create_invoice(input: {
|
|
16
|
+
node_id: $node_id,
|
|
17
|
+
amount_msats: $amount_msats,
|
|
18
|
+
memo: $memo,
|
|
19
|
+
invoice_type: $type,
|
|
20
|
+
expiry_secs: $expiry_secs,
|
|
21
|
+
payment_hash: $payment_hash,
|
|
22
|
+
preimage_nonce: $preimage_nonce
|
|
23
|
+
}) {
|
|
14
24
|
invoice {
|
|
15
25
|
...InvoiceFragment
|
|
16
26
|
}
|
|
@@ -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
|