@lightsparkdev/lightspark-sdk 1.9.13 → 1.9.14
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 +9 -0
- package/dist/{index-tN3Kv2I2.d.cts → index-DfbWBZ5s.d.cts} +3 -1
- package/dist/{index-BZwvqXMx.d.ts → index-J9dgrFWx.d.ts} +3 -1
- package/dist/index.cjs +23 -5
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +23 -5
- package/dist/objects/index.d.cts +1 -1
- package/dist/objects/index.d.ts +1 -1
- package/package.json +3 -3
- package/src/client.ts +10 -0
- package/src/graphql/CreateInvoice.ts +11 -1
package/CHANGELOG.md
CHANGED
|
@@ -3202,9 +3202,11 @@ declare class LightsparkClient {
|
|
|
3202
3202
|
* to create an [AMP invoice](https://docs.lightning.engineering/lightning-network-tools/lnd/amp), which can be
|
|
3203
3203
|
* paid multiple times.
|
|
3204
3204
|
* @param expirySecs The number of seconds until the invoice expires. Defaults to 86400 (1 day).
|
|
3205
|
+
* @param paymentHash An optional payment hash to use for the invoice.
|
|
3206
|
+
* @param preimageNonce An optional 32 byte nonce used to generate the payment hash.
|
|
3205
3207
|
* @returns An Invoice object, or undefined if the invoice could not be created.
|
|
3206
3208
|
*/
|
|
3207
|
-
createInvoiceWithDetails(nodeId: string, amountMsats: number, memo: string, type?: InvoiceType | undefined, expirySecs?: number | undefined): Promise<Invoice | undefined>;
|
|
3209
|
+
createInvoiceWithDetails(nodeId: string, amountMsats: number, memo: string, type?: InvoiceType | undefined, expirySecs?: number | undefined, paymentHash?: string | undefined, preimageNonce?: string | undefined): Promise<Invoice | undefined>;
|
|
3208
3210
|
/**
|
|
3209
3211
|
* Creates an offer for the given node.
|
|
3210
3212
|
*
|
|
@@ -3202,9 +3202,11 @@ declare class LightsparkClient {
|
|
|
3202
3202
|
* to create an [AMP invoice](https://docs.lightning.engineering/lightning-network-tools/lnd/amp), which can be
|
|
3203
3203
|
* paid multiple times.
|
|
3204
3204
|
* @param expirySecs The number of seconds until the invoice expires. Defaults to 86400 (1 day).
|
|
3205
|
+
* @param paymentHash An optional payment hash to use for the invoice.
|
|
3206
|
+
* @param preimageNonce An optional 32 byte nonce used to generate the payment hash.
|
|
3205
3207
|
* @returns An Invoice object, or undefined if the invoice could not be created.
|
|
3206
3208
|
*/
|
|
3207
|
-
createInvoiceWithDetails(nodeId: string, amountMsats: number, memo: string, type?: InvoiceType | undefined, expirySecs?: number | undefined): Promise<Invoice | undefined>;
|
|
3209
|
+
createInvoiceWithDetails(nodeId: string, amountMsats: number, memo: string, type?: InvoiceType | undefined, expirySecs?: number | undefined, paymentHash?: string | undefined, preimageNonce?: string | undefined): Promise<Invoice | undefined>;
|
|
3208
3210
|
/**
|
|
3209
3211
|
* Creates an offer for the given node.
|
|
3210
3212
|
*
|
package/dist/index.cjs
CHANGED
|
@@ -180,7 +180,7 @@ var import_core29 = require("@lightsparkdev/core");
|
|
|
180
180
|
// package.json
|
|
181
181
|
var package_default = {
|
|
182
182
|
name: "@lightsparkdev/lightspark-sdk",
|
|
183
|
-
version: "1.9.
|
|
183
|
+
version: "1.9.14",
|
|
184
184
|
description: "Lightspark JS SDK",
|
|
185
185
|
author: "Lightspark Inc.",
|
|
186
186
|
keywords: [
|
|
@@ -250,8 +250,8 @@ var package_default = {
|
|
|
250
250
|
},
|
|
251
251
|
license: "Apache-2.0",
|
|
252
252
|
dependencies: {
|
|
253
|
-
"@lightsparkdev/core": "1.4.
|
|
254
|
-
"@lightsparkdev/crypto-wasm": "0.1.
|
|
253
|
+
"@lightsparkdev/core": "1.4.7",
|
|
254
|
+
"@lightsparkdev/crypto-wasm": "0.1.21",
|
|
255
255
|
dayjs: "^1.11.7",
|
|
256
256
|
dotenv: "^16.3.1",
|
|
257
257
|
graphql: "^16.6.0",
|
|
@@ -3440,8 +3440,18 @@ var CreateInvoice = `
|
|
|
3440
3440
|
$memo: String
|
|
3441
3441
|
$type: InvoiceType = null
|
|
3442
3442
|
$expiry_secs: Int = null
|
|
3443
|
+
$payment_hash: Hash32 = null
|
|
3444
|
+
$preimage_nonce: Hash32 = null
|
|
3443
3445
|
) {
|
|
3444
|
-
create_invoice(input: {
|
|
3446
|
+
create_invoice(input: {
|
|
3447
|
+
node_id: $node_id,
|
|
3448
|
+
amount_msats: $amount_msats,
|
|
3449
|
+
memo: $memo,
|
|
3450
|
+
invoice_type: $type,
|
|
3451
|
+
expiry_secs: $expiry_secs,
|
|
3452
|
+
payment_hash: $payment_hash,
|
|
3453
|
+
preimage_nonce: $preimage_nonce
|
|
3454
|
+
}) {
|
|
3445
3455
|
invoice {
|
|
3446
3456
|
...InvoiceFragment
|
|
3447
3457
|
}
|
|
@@ -11020,9 +11030,11 @@ var LightsparkClient = class {
|
|
|
11020
11030
|
* to create an [AMP invoice](https://docs.lightning.engineering/lightning-network-tools/lnd/amp), which can be
|
|
11021
11031
|
* paid multiple times.
|
|
11022
11032
|
* @param expirySecs The number of seconds until the invoice expires. Defaults to 86400 (1 day).
|
|
11033
|
+
* @param paymentHash An optional payment hash to use for the invoice.
|
|
11034
|
+
* @param preimageNonce An optional 32 byte nonce used to generate the payment hash.
|
|
11023
11035
|
* @returns An Invoice object, or undefined if the invoice could not be created.
|
|
11024
11036
|
*/
|
|
11025
|
-
async createInvoiceWithDetails(nodeId, amountMsats, memo, type = void 0, expirySecs = void 0) {
|
|
11037
|
+
async createInvoiceWithDetails(nodeId, amountMsats, memo, type = void 0, expirySecs = void 0, paymentHash = void 0, preimageNonce = void 0) {
|
|
11026
11038
|
const variables = {
|
|
11027
11039
|
node_id: nodeId,
|
|
11028
11040
|
amount_msats: amountMsats,
|
|
@@ -11032,6 +11044,12 @@ var LightsparkClient = class {
|
|
|
11032
11044
|
if (expirySecs !== void 0) {
|
|
11033
11045
|
variables["expiry_secs"] = expirySecs;
|
|
11034
11046
|
}
|
|
11047
|
+
if (paymentHash !== void 0) {
|
|
11048
|
+
variables["payment_hash"] = paymentHash;
|
|
11049
|
+
}
|
|
11050
|
+
if (preimageNonce !== void 0) {
|
|
11051
|
+
variables["preimage_nonce"] = preimageNonce;
|
|
11052
|
+
}
|
|
11035
11053
|
const response = await this.requester.makeRawRequest(
|
|
11036
11054
|
CreateInvoice,
|
|
11037
11055
|
variables
|
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-DfbWBZ5s.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-DfbWBZ5s.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-J9dgrFWx.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-J9dgrFWx.js';
|
|
4
4
|
import { B as BitcoinNetwork } from './BitcoinNetwork-CIfB1c0X.js';
|
|
5
5
|
import 'zen-observable';
|
|
6
6
|
|
package/dist/index.js
CHANGED
|
@@ -155,7 +155,7 @@ import {
|
|
|
155
155
|
// package.json
|
|
156
156
|
var package_default = {
|
|
157
157
|
name: "@lightsparkdev/lightspark-sdk",
|
|
158
|
-
version: "1.9.
|
|
158
|
+
version: "1.9.14",
|
|
159
159
|
description: "Lightspark JS SDK",
|
|
160
160
|
author: "Lightspark Inc.",
|
|
161
161
|
keywords: [
|
|
@@ -225,8 +225,8 @@ var package_default = {
|
|
|
225
225
|
},
|
|
226
226
|
license: "Apache-2.0",
|
|
227
227
|
dependencies: {
|
|
228
|
-
"@lightsparkdev/core": "1.4.
|
|
229
|
-
"@lightsparkdev/crypto-wasm": "0.1.
|
|
228
|
+
"@lightsparkdev/core": "1.4.7",
|
|
229
|
+
"@lightsparkdev/crypto-wasm": "0.1.21",
|
|
230
230
|
dayjs: "^1.11.7",
|
|
231
231
|
dotenv: "^16.3.1",
|
|
232
232
|
graphql: "^16.6.0",
|
|
@@ -569,8 +569,18 @@ var CreateInvoice = `
|
|
|
569
569
|
$memo: String
|
|
570
570
|
$type: InvoiceType = null
|
|
571
571
|
$expiry_secs: Int = null
|
|
572
|
+
$payment_hash: Hash32 = null
|
|
573
|
+
$preimage_nonce: Hash32 = null
|
|
572
574
|
) {
|
|
573
|
-
create_invoice(input: {
|
|
575
|
+
create_invoice(input: {
|
|
576
|
+
node_id: $node_id,
|
|
577
|
+
amount_msats: $amount_msats,
|
|
578
|
+
memo: $memo,
|
|
579
|
+
invoice_type: $type,
|
|
580
|
+
expiry_secs: $expiry_secs,
|
|
581
|
+
payment_hash: $payment_hash,
|
|
582
|
+
preimage_nonce: $preimage_nonce
|
|
583
|
+
}) {
|
|
574
584
|
invoice {
|
|
575
585
|
...InvoiceFragment
|
|
576
586
|
}
|
|
@@ -1739,9 +1749,11 @@ var LightsparkClient = class {
|
|
|
1739
1749
|
* to create an [AMP invoice](https://docs.lightning.engineering/lightning-network-tools/lnd/amp), which can be
|
|
1740
1750
|
* paid multiple times.
|
|
1741
1751
|
* @param expirySecs The number of seconds until the invoice expires. Defaults to 86400 (1 day).
|
|
1752
|
+
* @param paymentHash An optional payment hash to use for the invoice.
|
|
1753
|
+
* @param preimageNonce An optional 32 byte nonce used to generate the payment hash.
|
|
1742
1754
|
* @returns An Invoice object, or undefined if the invoice could not be created.
|
|
1743
1755
|
*/
|
|
1744
|
-
async createInvoiceWithDetails(nodeId, amountMsats, memo, type = void 0, expirySecs = void 0) {
|
|
1756
|
+
async createInvoiceWithDetails(nodeId, amountMsats, memo, type = void 0, expirySecs = void 0, paymentHash = void 0, preimageNonce = void 0) {
|
|
1745
1757
|
const variables = {
|
|
1746
1758
|
node_id: nodeId,
|
|
1747
1759
|
amount_msats: amountMsats,
|
|
@@ -1751,6 +1763,12 @@ var LightsparkClient = class {
|
|
|
1751
1763
|
if (expirySecs !== void 0) {
|
|
1752
1764
|
variables["expiry_secs"] = expirySecs;
|
|
1753
1765
|
}
|
|
1766
|
+
if (paymentHash !== void 0) {
|
|
1767
|
+
variables["payment_hash"] = paymentHash;
|
|
1768
|
+
}
|
|
1769
|
+
if (preimageNonce !== void 0) {
|
|
1770
|
+
variables["preimage_nonce"] = preimageNonce;
|
|
1771
|
+
}
|
|
1754
1772
|
const response = await this.requester.makeRawRequest(
|
|
1755
1773
|
CreateInvoice,
|
|
1756
1774
|
variables
|
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-DfbWBZ5s.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-J9dgrFWx.js';
|
|
2
2
|
export { B as BitcoinNetwork } from '../BitcoinNetwork-CIfB1c0X.js';
|
|
3
3
|
import '@lightsparkdev/core';
|
|
4
4
|
import 'zen-observable';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lightsparkdev/lightspark-sdk",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.14",
|
|
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.7",
|
|
74
|
+
"@lightsparkdev/crypto-wasm": "0.1.21",
|
|
75
75
|
"dayjs": "^1.11.7",
|
|
76
76
|
"dotenv": "^16.3.1",
|
|
77
77
|
"graphql": "^16.6.0",
|
package/src/client.ts
CHANGED
|
@@ -554,6 +554,8 @@ class LightsparkClient {
|
|
|
554
554
|
* to create an [AMP invoice](https://docs.lightning.engineering/lightning-network-tools/lnd/amp), which can be
|
|
555
555
|
* paid multiple times.
|
|
556
556
|
* @param expirySecs The number of seconds until the invoice expires. Defaults to 86400 (1 day).
|
|
557
|
+
* @param paymentHash An optional payment hash to use for the invoice.
|
|
558
|
+
* @param preimageNonce An optional 32 byte nonce used to generate the payment hash.
|
|
557
559
|
* @returns An Invoice object, or undefined if the invoice could not be created.
|
|
558
560
|
*/
|
|
559
561
|
public async createInvoiceWithDetails(
|
|
@@ -562,6 +564,8 @@ class LightsparkClient {
|
|
|
562
564
|
memo: string,
|
|
563
565
|
type: InvoiceType | undefined = undefined,
|
|
564
566
|
expirySecs: number | undefined = undefined,
|
|
567
|
+
paymentHash: string | undefined = undefined,
|
|
568
|
+
preimageNonce: string | undefined = undefined,
|
|
565
569
|
): Promise<Invoice | undefined> {
|
|
566
570
|
const variables = {
|
|
567
571
|
node_id: nodeId,
|
|
@@ -572,6 +576,12 @@ class LightsparkClient {
|
|
|
572
576
|
if (expirySecs !== undefined) {
|
|
573
577
|
variables["expiry_secs"] = expirySecs;
|
|
574
578
|
}
|
|
579
|
+
if (paymentHash !== undefined) {
|
|
580
|
+
variables["payment_hash"] = paymentHash;
|
|
581
|
+
}
|
|
582
|
+
if (preimageNonce !== undefined) {
|
|
583
|
+
variables["preimage_nonce"] = preimageNonce;
|
|
584
|
+
}
|
|
575
585
|
const response = await this.requester.makeRawRequest(
|
|
576
586
|
CreateInvoice,
|
|
577
587
|
variables,
|
|
@@ -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
|
}
|