@lightsparkdev/lightspark-sdk 1.6.0 → 1.7.1

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 CHANGED
@@ -1,5 +1,19 @@
1
1
  # @lightsparkdev/lightspark-sdk
2
2
 
3
+ ## 1.7.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 1028e1c: - Version update on UMA demo vasp
8
+ - Remove default param on PayUmaInvoice mutation
9
+
10
+ ## 1.7.0
11
+
12
+ ### Minor Changes
13
+
14
+ - e647962: - Add extra params to createUmaInvoice and payUmaInvoice for analytics.
15
+ - Regenerate SDK objects from graphql
16
+
3
17
  ## 1.6.0
4
18
 
5
19
  ### Minor Changes
package/README.md CHANGED
@@ -33,7 +33,8 @@ You can then use the client to make API calls. For example, to create an invoice
33
33
 
34
34
  ```typescript
35
35
  const encodedInvoice = await lightsparkClient.createInvoice({
36
- amount: { value: 100, unit: CurrencyUnit.SATOSHI },
36
+ nodeId: RECEIVING_NODE_ID,
37
+ amountMsats: 100000,
37
38
  memo: "Whasssupppp",
38
39
  type: InvoiceType.AMP,
39
40
  });
@@ -5024,6 +5024,15 @@ var WalletToTransactionsConnectionFromJson = (obj) => {
5024
5024
  };
5025
5025
  };
5026
5026
 
5027
+ // src/objects/RequestInitiator.ts
5028
+ var RequestInitiator = /* @__PURE__ */ ((RequestInitiator2) => {
5029
+ RequestInitiator2["FUTURE_VALUE"] = "FUTURE_VALUE";
5030
+ RequestInitiator2["CUSTOMER"] = "CUSTOMER";
5031
+ RequestInitiator2["LIGHTSPARK"] = "LIGHTSPARK";
5032
+ return RequestInitiator2;
5033
+ })(RequestInitiator || {});
5034
+ var RequestInitiator_default = RequestInitiator;
5035
+
5027
5036
  // src/objects/WithdrawalMode.ts
5028
5037
  var WithdrawalMode = /* @__PURE__ */ ((WithdrawalMode2) => {
5029
5038
  WithdrawalMode2["FUTURE_VALUE"] = "FUTURE_VALUE";
@@ -5292,7 +5301,7 @@ var WithdrawalRequestToWithdrawalsConnectionFromJson = (obj) => {
5292
5301
 
5293
5302
  // src/objects/WithdrawalRequest.ts
5294
5303
  var WithdrawalRequest = class {
5295
- constructor(id, createdAt, updatedAt, requestedAmount, amount, bitcoinAddress, withdrawalMode, status, typename, estimatedAmount, amountWithdrawn, totalFees, completedAt, withdrawalId, idempotencyKey) {
5304
+ constructor(id, createdAt, updatedAt, requestedAmount, amount, bitcoinAddress, withdrawalMode, status, initiator, typename, estimatedAmount, amountWithdrawn, totalFees, completedAt, withdrawalId, idempotencyKey) {
5296
5305
  this.id = id;
5297
5306
  this.createdAt = createdAt;
5298
5307
  this.updatedAt = updatedAt;
@@ -5301,6 +5310,7 @@ var WithdrawalRequest = class {
5301
5310
  this.bitcoinAddress = bitcoinAddress;
5302
5311
  this.withdrawalMode = withdrawalMode;
5303
5312
  this.status = status;
5313
+ this.initiator = initiator;
5304
5314
  this.typename = typename;
5305
5315
  this.estimatedAmount = estimatedAmount;
5306
5316
  this.amountWithdrawn = amountWithdrawn;
@@ -5522,7 +5532,8 @@ ${FRAGMENT20}
5522
5532
  withdrawal_request_status: this.status,
5523
5533
  withdrawal_request_completed_at: this.completedAt,
5524
5534
  withdrawal_request_withdrawal: { id: this.withdrawalId },
5525
- withdrawal_request_idempotency_key: this.idempotencyKey
5535
+ withdrawal_request_idempotency_key: this.idempotencyKey,
5536
+ withdrawal_request_initiator: this.initiator
5526
5537
  };
5527
5538
  }
5528
5539
  };
@@ -5536,6 +5547,7 @@ var WithdrawalRequestFromJson = (obj) => {
5536
5547
  obj["withdrawal_request_bitcoin_address"],
5537
5548
  WithdrawalMode_default[obj["withdrawal_request_withdrawal_mode"]] ?? WithdrawalMode_default.FUTURE_VALUE,
5538
5549
  WithdrawalRequestStatus_default[obj["withdrawal_request_status"]] ?? WithdrawalRequestStatus_default.FUTURE_VALUE,
5550
+ RequestInitiator_default[obj["withdrawal_request_initiator"]] ?? RequestInitiator_default.FUTURE_VALUE,
5539
5551
  "WithdrawalRequest",
5540
5552
  !!obj["withdrawal_request_estimated_amount"] ? CurrencyAmountFromJson(obj["withdrawal_request_estimated_amount"]) : void 0,
5541
5553
  !!obj["withdrawal_request_amount_withdrawn"] ? CurrencyAmountFromJson(obj["withdrawal_request_amount_withdrawn"]) : void 0,
@@ -5599,6 +5611,7 @@ fragment WithdrawalRequestFragment on WithdrawalRequest {
5599
5611
  id
5600
5612
  }
5601
5613
  withdrawal_request_idempotency_key: idempotency_key
5614
+ withdrawal_request_initiator: initiator
5602
5615
  }`;
5603
5616
  var WithdrawalRequest_default = WithdrawalRequest;
5604
5617
 
@@ -6657,6 +6670,7 @@ query FetchWalletToWithdrawalRequestsConnection($entity_id: ID!, $first: Int, $a
6657
6670
  id
6658
6671
  }
6659
6672
  withdrawal_request_idempotency_key: idempotency_key
6673
+ withdrawal_request_initiator: initiator
6660
6674
  }
6661
6675
  }
6662
6676
  }
@@ -8474,6 +8488,7 @@ query FetchAccountToWithdrawalRequestsConnection($first: Int, $after: String, $b
8474
8488
  id
8475
8489
  }
8476
8490
  withdrawal_request_idempotency_key: idempotency_key
8491
+ withdrawal_request_initiator: initiator
8477
8492
  }
8478
8493
  }
8479
8494
  }
@@ -10734,6 +10749,7 @@ export {
10734
10749
  PaymentRequestFromJson,
10735
10750
  FRAGMENT10,
10736
10751
  getPaymentRequestQuery,
10752
+ RequestInitiator_default,
10737
10753
  WithdrawalMode_default,
10738
10754
  WithdrawalRequestStatus_default,
10739
10755
  getChannelClosingTransactionQuery,
@@ -44,7 +44,7 @@ declare enum CurrencyUnit {
44
44
  */
45
45
  SATOSHI = "SATOSHI",
46
46
  /**
47
- * 0.001 Satoshi, or 10e-11 Bitcoin. We recommend using the Satoshi unit instead when possible. *
47
+ * 0.001 Satoshi, or 10e-11 Bitcoin. We recommend using the Satoshi unit instead when possible.
48
48
  */
49
49
  MILLISATOSHI = "MILLISATOSHI",
50
50
  /** United States Dollar. **/
@@ -836,7 +836,7 @@ declare enum TransactionStatus {
836
836
  /** Transaction has been initiated and is currently in-flight. **/
837
837
  PENDING = "PENDING",
838
838
  /**
839
- * For transaction type PAYMENT_REQUEST only. No payments have been made to a payment request. *
839
+ * For transaction type PAYMENT_REQUEST only. No payments have been made to a payment request.
840
840
  */
841
841
  NOT_STARTED = "NOT_STARTED",
842
842
  /** For transaction type PAYMENT_REQUEST only. A payment request has expired. **/
@@ -951,8 +951,8 @@ declare enum WalletStatus {
951
951
  TERMINATING = "TERMINATING",
952
952
  /**
953
953
  * The wallet has been terminated and is not available in the Lightspark infrastructure anymore.
954
- * It is not connected to the Lightning network and its funds can only be accessed using the
955
- * Funds Recovery flow. *
954
+ * It is not connected to the Lightning network and its funds can only be accessed using the Funds
955
+ * Recovery flow. *
956
956
  */
957
957
  TERMINATED = "TERMINATED"
958
958
  }
@@ -985,6 +985,16 @@ interface WalletToTransactionsConnection {
985
985
  typename: string;
986
986
  }
987
987
 
988
+ declare enum RequestInitiator {
989
+ /**
990
+ * This is an enum value that represents values that could be added in the future.
991
+ * Clients should support unknown values as more of them could be added without notice.
992
+ */
993
+ FUTURE_VALUE = "FUTURE_VALUE",
994
+ CUSTOMER = "CUSTOMER",
995
+ LIGHTSPARK = "LIGHTSPARK"
996
+ }
997
+
988
998
  /** This is an enum of the potential modes that your Bitcoin withdrawal can take. **/
989
999
  declare enum WithdrawalMode {
990
1000
  /**
@@ -1221,6 +1231,8 @@ declare class WithdrawalRequest implements Entity {
1221
1231
  readonly withdrawalMode: WithdrawalMode;
1222
1232
  /** The current status of this withdrawal request. **/
1223
1233
  readonly status: WithdrawalRequestStatus;
1234
+ /** The initiator of the withdrawal. **/
1235
+ readonly initiator: RequestInitiator;
1224
1236
  /** The typename of the object **/
1225
1237
  readonly typename: string;
1226
1238
  /**
@@ -1279,6 +1291,8 @@ declare class WithdrawalRequest implements Entity {
1279
1291
  withdrawalMode: WithdrawalMode,
1280
1292
  /** The current status of this withdrawal request. **/
1281
1293
  status: WithdrawalRequestStatus,
1294
+ /** The initiator of the withdrawal. **/
1295
+ initiator: RequestInitiator,
1282
1296
  /** The typename of the object **/
1283
1297
  typename: string,
1284
1298
  /**
@@ -1328,6 +1342,7 @@ declare class WithdrawalRequest implements Entity {
1328
1342
  id: string | undefined;
1329
1343
  };
1330
1344
  withdrawal_request_idempotency_key: string | undefined;
1345
+ withdrawal_request_initiator: RequestInitiator;
1331
1346
  };
1332
1347
  }
1333
1348
 
@@ -2897,7 +2912,7 @@ declare const getUmaInvitationQuery: (id: string) => Query<UmaInvitation>;
2897
2912
  * );
2898
2913
  * const encodedInvoice = await lightsparkClient.createInvoice(
2899
2914
  * RECEIVING_NODE_ID,
2900
- * { value: 100, unit: CurrencyUnit.SATOSHI },
2915
+ * 100000,
2901
2916
  * "Whasssupppp",
2902
2917
  * InvoiceType.AMP,
2903
2918
  * );
@@ -3064,9 +3079,12 @@ declare class LightsparkClient {
3064
3079
  * h-tag (SHA256 purpose of payment) of the resulting Bolt 11 invoice. See
3065
3080
  * [this spec](https://github.com/lnurl/luds/blob/luds/06.md#pay-to-static-qrnfclink) for details.
3066
3081
  * @param expirySecs The number of seconds until the invoice expires. Defaults to 3600 (1 hour).
3082
+ * @param signingPrivateKey The receiver's signing private key. Used to hash the receiver identifier.
3083
+ * @param receiverIdentifier Optional identifier of the receiver. If provided, this will be hashed using a
3084
+ * monthly-rotated seed and used for anonymized analysis.
3067
3085
  * @returns An Invoice object representing the generated invoice.
3068
3086
  */
3069
- createUmaInvoice(nodeId: string, amountMsats: number, metadata: string, expirySecs?: number | undefined): Promise<Invoice | undefined>;
3087
+ createUmaInvoice(nodeId: string, amountMsats: number, metadata: string, expirySecs?: number | undefined, signingPrivateKey?: Uint8Array | undefined, receiverIdentifier?: string | undefined): Promise<Invoice | undefined>;
3070
3088
  /**
3071
3089
  * Cancels an existing unpaid invoice and returns that invoice. Cancelled invoices cannot be paid.
3072
3090
  *
@@ -3164,9 +3182,12 @@ declare class LightsparkClient {
3164
3182
  * @param amountMsats The amount to pay in msats for a zero-amount invoice. Defaults to the full amount of the
3165
3183
  * invoice. NOTE: This parameter can only be passed for a zero-amount
3166
3184
  * invoice. Otherwise, the call will fail.
3185
+ * @param signingPrivateKey The sender's signing private key. Used to hash the sender identifier.
3186
+ * @param senderIdentifier Optional identifier of the sender. If provided, this will be hashed using a
3187
+ * monthly-rotated seed and used for anonymized analysis.
3167
3188
  * @returns An `OutgoingPayment` object if the payment was successful, or undefined if the payment failed.
3168
3189
  */
3169
- payUmaInvoice(payerNodeId: string, encodedInvoice: string, maximumFeesMsats: number, timeoutSecs?: number, amountMsats?: number | undefined): Promise<OutgoingPayment | undefined>;
3190
+ payUmaInvoice(payerNodeId: string, encodedInvoice: string, maximumFeesMsats: number, timeoutSecs?: number, amountMsats?: number | undefined, signingPrivateKey?: Uint8Array | undefined, senderIdentifier?: string | undefined): Promise<OutgoingPayment | undefined>;
3170
3191
  /**
3171
3192
  * Waits for a transaction to have a completed status, and returns the
3172
3193
  * transaction.
@@ -3344,6 +3365,8 @@ declare class LightsparkClient {
3344
3365
  */
3345
3366
  outgoingPaymentsForPaymentHash(paymentHash: string, statuses?: TransactionStatus[] | undefined): Promise<OutgoingPayment[]>;
3346
3367
  private hashPhoneNumber;
3368
+ hashUmaIdentifier(identifier: string, signingPrivateKey: Uint8Array): Promise<string>;
3369
+ getUtcDateTime(): Date;
3347
3370
  /**
3348
3371
  * Executes a raw `Query` against the Lightspark API.
3349
3372
  *
@@ -3513,6 +3536,9 @@ interface CreateLnurlInvoiceInput {
3513
3536
  metadataHash: string;
3514
3537
  /** The expiry of the invoice in seconds. Default value is 86400 (1 day). **/
3515
3538
  expirySecs?: number | undefined;
3539
+ /** An optional, monthly-rotated, unique hashed identifier corresponding to the receiver of the
3540
+ * payment. **/
3541
+ receiverHash?: string | undefined;
3516
3542
  }
3517
3543
 
3518
3544
  interface CreateNodeWalletAddressInput {
@@ -3594,6 +3620,7 @@ interface CreateUmaInvoiceInput {
3594
3620
  amountMsats: number;
3595
3621
  metadataHash: string;
3596
3622
  expirySecs?: number | undefined;
3623
+ receiverHash?: string | undefined;
3597
3624
  }
3598
3625
 
3599
3626
  interface DeclineToSignMessagesInput {
@@ -4419,6 +4446,11 @@ interface PayUmaInvoiceInput {
4419
4446
  maximumFeesMsats: number;
4420
4447
  amountMsats?: number | undefined;
4421
4448
  idempotencyKey?: string | undefined;
4449
+ /**
4450
+ * An optional, monthly-rotated, unique hashed identifier corresponding to the sender of the
4451
+ * payment. *
4452
+ */
4453
+ senderHash?: string | undefined;
4422
4454
  }
4423
4455
 
4424
4456
  interface RegisterPaymentInput {
@@ -4738,4 +4770,4 @@ interface WithdrawalFeeEstimateOutput {
4738
4770
  feeEstimate: CurrencyAmount;
4739
4771
  }
4740
4772
 
4741
- export { DeclineToSignMessagesInput as $, Account as A, Balances as B, CancelInvoiceInput as C, ClaimUmaInvitationWithIncentivesOutput as D, ComplianceProvider as E, Connection as F, CreateApiTokenInput as G, CreateApiTokenOutput as H, CreateInvitationWithIncentivesInput as I, CreateInvitationWithIncentivesOutput as J, CreateInvoiceInput as K, LightsparkClient as L, CreateInvoiceOutput as M, CreateLnurlInvoiceInput as N, CreateNodeWalletAddressInput as O, CreateNodeWalletAddressOutput as P, CreateTestModeInvoiceInput as Q, CreateTestModeInvoiceOutput as R, CreateTestModePaymentInput as S, CreateTestModePaymentoutput as T, CreateUmaInvitationInput as U, CreateUmaInvitationOutput as V, WebhookEventType as W, CreateUmaInvoiceInput as X, CurrencyAmount as Y, CurrencyUnit as Z, DailyLiquidityForecast as _, AccountToApiTokensConnection as a, OutgoingPaymentsForInvoiceQueryOutput as a$, DeclineToSignMessagesOutput as a0, DeleteApiTokenInput as a1, DeleteApiTokenOutput as a2, Deposit as a3, getDepositQuery as a4, Entity as a5, FailHtlcsInput as a6, FailHtlcsOutput as a7, FeeEstimate as a8, FundNodeInput as a9, getLightningTransactionQuery as aA, LightsparkNode as aB, getLightsparkNodeQuery as aC, LightsparkNodeOwner as aD, getLightsparkNodeOwnerQuery as aE, LightsparkNodeStatus as aF, LightsparkNodeToChannelsConnection as aG, LightsparkNodeToDailyLiquidityForecastsConnection as aH, LightsparkNodeWithOSK as aI, LightsparkNodeWithRemoteSigning as aJ, MultiSigAddressValidationParameters as aK, Node as aL, getNodeQuery as aM, NodeAddress as aN, NodeAddressType as aO, NodeToAddressesConnection as aP, OnChainFeeTarget as aQ, OnChainTransaction as aR, getOnChainTransactionQuery as aS, OutgoingPayment as aT, OutgoingPaymentAttempt as aU, OutgoingPaymentAttemptStatus as aV, OutgoingPaymentAttemptToHopsConnection as aW, OutgoingPaymentForIdempotencyKeyInput as aX, OutgoingPaymentForIdempotencyKeyOutput as aY, OutgoingPaymentToAttemptsConnection as aZ, OutgoingPaymentsForInvoiceQueryInput as a_, FundNodeOutput as aa, GraphNode as ab, Hop as ac, getHopQuery as ad, HtlcAttemptFailureCode as ae, IdAndSignature as af, IncentivesIneligibilityReason as ag, IncentivesStatus as ah, IncomingPayment as ai, IncomingPaymentAttempt as aj, getIncomingPaymentAttemptQuery as ak, IncomingPaymentAttemptStatus as al, IncomingPaymentToAttemptsConnection as am, IncomingPaymentsForInvoiceQueryInput as an, IncomingPaymentsForInvoiceQueryOutput as ao, Invoice as ap, getInvoiceQuery as aq, InvoiceData as ar, InvoiceForPaymentHashInput as as, InvoiceForPaymentHashOutput as at, InvoiceType as au, LightningFeeEstimateForInvoiceInput as av, LightningFeeEstimateForNodeInput as aw, LightningFeeEstimateOutput as ax, LightningPaymentDirection as ay, LightningTransaction as az, AccountToChannelsConnection as b, Withdrawal as b$, OutgoingPaymentsForPaymentHashQueryInput as b0, OutgoingPaymentsForPaymentHashQueryOutput as b1, PageInfo as b2, PayInvoiceInput as b3, PayInvoiceOutput as b4, PayUmaInvoiceInput as b5, PaymentDirection as b6, PaymentFailureReason as b7, PaymentRequest as b8, getPaymentRequestQuery as b9, SignInvoiceInput as bA, SignInvoiceOutput as bB, SignMessagesInput as bC, SignMessagesOutput as bD, Signable as bE, getSignableQuery as bF, SignablePayload as bG, getSignablePayloadQuery as bH, SignablePayloadStatus as bI, SingleNodeDashboard as bJ, Transaction as bK, getTransactionQuery as bL, TransactionFailures as bM, TransactionStatus as bN, TransactionType as bO, TransactionUpdate as bP, UmaInvitation as bQ, getUmaInvitationQuery as bR, UpdateChannelPerCommitmentPointInput as bS, UpdateChannelPerCommitmentPointOutput as bT, UpdateNodeSharedSecretInput as bU, UpdateNodeSharedSecretOutput as bV, Wallet as bW, WalletStatus as bX, WalletToPaymentRequestsConnection as bY, WalletToTransactionsConnection as bZ, WalletToWithdrawalRequestsConnection as b_, PaymentRequestData as ba, PaymentRequestStatus as bb, Permission as bc, PostTransactionData as bd, RegionCode as be, RegisterPaymentInput as bf, RegisterPaymentOutput as bg, ReleaseChannelPerCommitmentSecretInput as bh, ReleaseChannelPerCommitmentSecretOutput as bi, ReleasePaymentPreimageInput as bj, ReleasePaymentPreimageOutput as bk, RemoteSigningSubEventType as bl, RequestWithdrawalInput as bm, RequestWithdrawalOutput as bn, RichText as bo, RiskRating as bp, RoutingTransaction as bq, getRoutingTransactionQuery as br, RoutingTransactionFailureReason as bs, ScreenNodeInput as bt, ScreenNodeOutput as bu, Secret as bv, SendPaymentInput as bw, SendPaymentOutput as bx, SetInvoicePaymentHashInput as by, SetInvoicePaymentHashOutput as bz, AccountToNodesConnection as c, getWithdrawalQuery as c0, WithdrawalFeeEstimateInput as c1, WithdrawalFeeEstimateOutput as c2, WithdrawalMode as c3, WithdrawalRequest as c4, WithdrawalRequestStatus as c5, WithdrawalRequestToChannelClosingTransactionsConnection as c6, WithdrawalRequestToChannelOpeningTransactionsConnection as c7, WithdrawalRequestToWithdrawalsConnection as c8, AccountToPaymentRequestsConnection as d, AccountToTransactionsConnection as e, AccountToWalletsConnection as f, AccountToWithdrawalRequestsConnection as g, ApiToken as h, getApiTokenQuery as i, AuditLogActor as j, getAuditLogActorQuery as k, BlockchainBalance as l, CancelInvoiceOutput as m, Channel as n, ChannelClosingTransaction as o, getChannelClosingTransactionQuery as p, ChannelFees as q, ChannelOpeningTransaction as r, getChannelOpeningTransactionQuery as s, ChannelSnapshot as t, getChannelSnapshotQuery as u, ChannelStatus as v, ChannelToTransactionsConnection as w, ClaimUmaInvitationInput as x, ClaimUmaInvitationOutput as y, ClaimUmaInvitationWithIncentivesInput as z };
4773
+ export { DeclineToSignMessagesInput as $, Account as A, Balances as B, CancelInvoiceInput as C, ClaimUmaInvitationWithIncentivesOutput as D, ComplianceProvider as E, Connection as F, CreateApiTokenInput as G, CreateApiTokenOutput as H, CreateInvitationWithIncentivesInput as I, CreateInvitationWithIncentivesOutput as J, CreateInvoiceInput as K, LightsparkClient as L, CreateInvoiceOutput as M, CreateLnurlInvoiceInput as N, CreateNodeWalletAddressInput as O, CreateNodeWalletAddressOutput as P, CreateTestModeInvoiceInput as Q, CreateTestModeInvoiceOutput as R, CreateTestModePaymentInput as S, CreateTestModePaymentoutput as T, CreateUmaInvitationInput as U, CreateUmaInvitationOutput as V, WebhookEventType as W, CreateUmaInvoiceInput as X, CurrencyAmount as Y, CurrencyUnit as Z, DailyLiquidityForecast as _, AccountToApiTokensConnection as a, OutgoingPaymentsForInvoiceQueryOutput as a$, DeclineToSignMessagesOutput as a0, DeleteApiTokenInput as a1, DeleteApiTokenOutput as a2, Deposit as a3, getDepositQuery as a4, Entity as a5, FailHtlcsInput as a6, FailHtlcsOutput as a7, FeeEstimate as a8, FundNodeInput as a9, getLightningTransactionQuery as aA, LightsparkNode as aB, getLightsparkNodeQuery as aC, LightsparkNodeOwner as aD, getLightsparkNodeOwnerQuery as aE, LightsparkNodeStatus as aF, LightsparkNodeToChannelsConnection as aG, LightsparkNodeToDailyLiquidityForecastsConnection as aH, LightsparkNodeWithOSK as aI, LightsparkNodeWithRemoteSigning as aJ, MultiSigAddressValidationParameters as aK, Node as aL, getNodeQuery as aM, NodeAddress as aN, NodeAddressType as aO, NodeToAddressesConnection as aP, OnChainFeeTarget as aQ, OnChainTransaction as aR, getOnChainTransactionQuery as aS, OutgoingPayment as aT, OutgoingPaymentAttempt as aU, OutgoingPaymentAttemptStatus as aV, OutgoingPaymentAttemptToHopsConnection as aW, OutgoingPaymentForIdempotencyKeyInput as aX, OutgoingPaymentForIdempotencyKeyOutput as aY, OutgoingPaymentToAttemptsConnection as aZ, OutgoingPaymentsForInvoiceQueryInput as a_, FundNodeOutput as aa, GraphNode as ab, Hop as ac, getHopQuery as ad, HtlcAttemptFailureCode as ae, IdAndSignature as af, IncentivesIneligibilityReason as ag, IncentivesStatus as ah, IncomingPayment as ai, IncomingPaymentAttempt as aj, getIncomingPaymentAttemptQuery as ak, IncomingPaymentAttemptStatus as al, IncomingPaymentToAttemptsConnection as am, IncomingPaymentsForInvoiceQueryInput as an, IncomingPaymentsForInvoiceQueryOutput as ao, Invoice as ap, getInvoiceQuery as aq, InvoiceData as ar, InvoiceForPaymentHashInput as as, InvoiceForPaymentHashOutput as at, InvoiceType as au, LightningFeeEstimateForInvoiceInput as av, LightningFeeEstimateForNodeInput as aw, LightningFeeEstimateOutput as ax, LightningPaymentDirection as ay, LightningTransaction as az, AccountToChannelsConnection as b, WalletToWithdrawalRequestsConnection as b$, OutgoingPaymentsForPaymentHashQueryInput as b0, OutgoingPaymentsForPaymentHashQueryOutput as b1, PageInfo as b2, PayInvoiceInput as b3, PayInvoiceOutput as b4, PayUmaInvoiceInput as b5, PaymentDirection as b6, PaymentFailureReason as b7, PaymentRequest as b8, getPaymentRequestQuery as b9, SetInvoicePaymentHashOutput as bA, SignInvoiceInput as bB, SignInvoiceOutput as bC, SignMessagesInput as bD, SignMessagesOutput as bE, Signable as bF, getSignableQuery as bG, SignablePayload as bH, getSignablePayloadQuery as bI, SignablePayloadStatus as bJ, SingleNodeDashboard as bK, Transaction as bL, getTransactionQuery as bM, TransactionFailures as bN, TransactionStatus as bO, TransactionType as bP, TransactionUpdate as bQ, UmaInvitation as bR, getUmaInvitationQuery as bS, UpdateChannelPerCommitmentPointInput as bT, UpdateChannelPerCommitmentPointOutput as bU, UpdateNodeSharedSecretInput as bV, UpdateNodeSharedSecretOutput as bW, Wallet as bX, WalletStatus as bY, WalletToPaymentRequestsConnection as bZ, WalletToTransactionsConnection as b_, PaymentRequestData as ba, PaymentRequestStatus as bb, Permission as bc, PostTransactionData as bd, RegionCode as be, RegisterPaymentInput as bf, RegisterPaymentOutput as bg, ReleaseChannelPerCommitmentSecretInput as bh, ReleaseChannelPerCommitmentSecretOutput as bi, ReleasePaymentPreimageInput as bj, ReleasePaymentPreimageOutput as bk, RemoteSigningSubEventType as bl, RequestInitiator as bm, RequestWithdrawalInput as bn, RequestWithdrawalOutput as bo, RichText as bp, RiskRating as bq, RoutingTransaction as br, getRoutingTransactionQuery as bs, RoutingTransactionFailureReason as bt, ScreenNodeInput as bu, ScreenNodeOutput as bv, Secret as bw, SendPaymentInput as bx, SendPaymentOutput as by, SetInvoicePaymentHashInput as bz, AccountToNodesConnection as c, Withdrawal as c0, getWithdrawalQuery as c1, WithdrawalFeeEstimateInput as c2, WithdrawalFeeEstimateOutput as c3, WithdrawalMode as c4, WithdrawalRequest as c5, WithdrawalRequestStatus as c6, WithdrawalRequestToChannelClosingTransactionsConnection as c7, WithdrawalRequestToChannelOpeningTransactionsConnection as c8, WithdrawalRequestToWithdrawalsConnection as c9, AccountToPaymentRequestsConnection as d, AccountToTransactionsConnection as e, AccountToWalletsConnection as f, AccountToWithdrawalRequestsConnection as g, ApiToken as h, getApiTokenQuery as i, AuditLogActor as j, getAuditLogActorQuery as k, BlockchainBalance as l, CancelInvoiceOutput as m, Channel as n, ChannelClosingTransaction as o, getChannelClosingTransactionQuery as p, ChannelFees as q, ChannelOpeningTransaction as r, getChannelOpeningTransactionQuery as s, ChannelSnapshot as t, getChannelSnapshotQuery as u, ChannelStatus as v, ChannelToTransactionsConnection as w, ClaimUmaInvitationInput as x, ClaimUmaInvitationOutput as y, ClaimUmaInvitationWithIncentivesInput as z };
package/dist/index.cjs CHANGED
@@ -1871,6 +1871,7 @@ __export(src_exports, {
1871
1871
  RegionCode: () => RegionCode_default,
1872
1872
  RemoteSigningSubEventType: () => RemoteSigningSubEventType_default,
1873
1873
  RemoteSigningWebhookHandler: () => RemoteSigningWebhookHandler,
1874
+ RequestInitiator: () => RequestInitiator_default,
1874
1875
  RiskRating: () => RiskRating_default,
1875
1876
  RoutingTransactionFailureReason: () => RoutingTransactionFailureReason_default,
1876
1877
  SignablePayloadStatus: () => SignablePayloadStatus_default,
@@ -1985,7 +1986,7 @@ var import_core9 = require("@lightsparkdev/core");
1985
1986
  // package.json
1986
1987
  var package_default = {
1987
1988
  name: "@lightsparkdev/lightspark-sdk",
1988
- version: "1.6.0",
1989
+ version: "1.7.1",
1989
1990
  description: "Lightspark JS SDK",
1990
1991
  author: "Lightspark Inc.",
1991
1992
  keywords: [
@@ -5520,12 +5521,14 @@ mutation CreateUmaInvoice(
5520
5521
  $amount_msats: Long!
5521
5522
  $metadata_hash: String!
5522
5523
  $expiry_secs: Int = null
5524
+ $receiver_hash: String = null
5523
5525
  ) {
5524
5526
  create_uma_invoice(input: {
5525
5527
  node_id: $node_id
5526
5528
  amount_msats: $amount_msats
5527
5529
  metadata_hash: $metadata_hash
5528
5530
  expiry_secs: $expiry_secs
5531
+ receiver_hash: $receiver_hash
5529
5532
  }) {
5530
5533
  invoice {
5531
5534
  ...InvoiceFragment
@@ -6657,6 +6660,7 @@ var PayUmaInvoice = `
6657
6660
  $timeout_secs: Int!
6658
6661
  $maximum_fees_msats: Long!
6659
6662
  $amount_msats: Long
6663
+ $sender_hash: String
6660
6664
  ) {
6661
6665
  pay_uma_invoice(
6662
6666
  input: {
@@ -6665,6 +6669,7 @@ var PayUmaInvoice = `
6665
6669
  timeout_secs: $timeout_secs
6666
6670
  maximum_fees_msats: $maximum_fees_msats
6667
6671
  amount_msats: $amount_msats
6672
+ sender_hash: $sender_hash
6668
6673
  }
6669
6674
  ) {
6670
6675
  payment {
@@ -7075,6 +7080,15 @@ mutation RegisterPayment(
7075
7080
  }
7076
7081
  `;
7077
7082
 
7083
+ // src/objects/RequestInitiator.ts
7084
+ var RequestInitiator = /* @__PURE__ */ ((RequestInitiator2) => {
7085
+ RequestInitiator2["FUTURE_VALUE"] = "FUTURE_VALUE";
7086
+ RequestInitiator2["CUSTOMER"] = "CUSTOMER";
7087
+ RequestInitiator2["LIGHTSPARK"] = "LIGHTSPARK";
7088
+ return RequestInitiator2;
7089
+ })(RequestInitiator || {});
7090
+ var RequestInitiator_default = RequestInitiator;
7091
+
7078
7092
  // src/objects/WithdrawalMode.ts
7079
7093
  var WithdrawalMode = /* @__PURE__ */ ((WithdrawalMode2) => {
7080
7094
  WithdrawalMode2["FUTURE_VALUE"] = "FUTURE_VALUE";
@@ -7343,7 +7357,7 @@ var WithdrawalRequestToWithdrawalsConnectionFromJson = (obj) => {
7343
7357
 
7344
7358
  // src/objects/WithdrawalRequest.ts
7345
7359
  var WithdrawalRequest = class {
7346
- constructor(id, createdAt, updatedAt, requestedAmount, amount, bitcoinAddress, withdrawalMode, status, typename, estimatedAmount, amountWithdrawn, totalFees, completedAt, withdrawalId, idempotencyKey) {
7360
+ constructor(id, createdAt, updatedAt, requestedAmount, amount, bitcoinAddress, withdrawalMode, status, initiator, typename, estimatedAmount, amountWithdrawn, totalFees, completedAt, withdrawalId, idempotencyKey) {
7347
7361
  this.id = id;
7348
7362
  this.createdAt = createdAt;
7349
7363
  this.updatedAt = updatedAt;
@@ -7352,6 +7366,7 @@ var WithdrawalRequest = class {
7352
7366
  this.bitcoinAddress = bitcoinAddress;
7353
7367
  this.withdrawalMode = withdrawalMode;
7354
7368
  this.status = status;
7369
+ this.initiator = initiator;
7355
7370
  this.typename = typename;
7356
7371
  this.estimatedAmount = estimatedAmount;
7357
7372
  this.amountWithdrawn = amountWithdrawn;
@@ -7573,7 +7588,8 @@ ${FRAGMENT22}
7573
7588
  withdrawal_request_status: this.status,
7574
7589
  withdrawal_request_completed_at: this.completedAt,
7575
7590
  withdrawal_request_withdrawal: { id: this.withdrawalId },
7576
- withdrawal_request_idempotency_key: this.idempotencyKey
7591
+ withdrawal_request_idempotency_key: this.idempotencyKey,
7592
+ withdrawal_request_initiator: this.initiator
7577
7593
  };
7578
7594
  }
7579
7595
  };
@@ -7587,6 +7603,7 @@ var WithdrawalRequestFromJson = (obj) => {
7587
7603
  obj["withdrawal_request_bitcoin_address"],
7588
7604
  WithdrawalMode_default[obj["withdrawal_request_withdrawal_mode"]] ?? WithdrawalMode_default.FUTURE_VALUE,
7589
7605
  WithdrawalRequestStatus_default[obj["withdrawal_request_status"]] ?? WithdrawalRequestStatus_default.FUTURE_VALUE,
7606
+ RequestInitiator_default[obj["withdrawal_request_initiator"]] ?? RequestInitiator_default.FUTURE_VALUE,
7590
7607
  "WithdrawalRequest",
7591
7608
  !!obj["withdrawal_request_estimated_amount"] ? CurrencyAmountFromJson(obj["withdrawal_request_estimated_amount"]) : void 0,
7592
7609
  !!obj["withdrawal_request_amount_withdrawn"] ? CurrencyAmountFromJson(obj["withdrawal_request_amount_withdrawn"]) : void 0,
@@ -7650,6 +7667,7 @@ fragment WithdrawalRequestFragment on WithdrawalRequest {
7650
7667
  id
7651
7668
  }
7652
7669
  withdrawal_request_idempotency_key: idempotency_key
7670
+ withdrawal_request_initiator: initiator
7653
7671
  }`;
7654
7672
  var WithdrawalRequest_default = WithdrawalRequest;
7655
7673
 
@@ -10211,6 +10229,7 @@ query FetchWalletToWithdrawalRequestsConnection($entity_id: ID!, $first: Int, $a
10211
10229
  id
10212
10230
  }
10213
10231
  withdrawal_request_idempotency_key: idempotency_key
10232
+ withdrawal_request_initiator: initiator
10214
10233
  }
10215
10234
  }
10216
10235
  }
@@ -12028,6 +12047,7 @@ query FetchAccountToWithdrawalRequestsConnection($first: Int, $after: String, $b
12028
12047
  id
12029
12048
  }
12030
12049
  withdrawal_request_idempotency_key: idempotency_key
12050
+ withdrawal_request_initiator: initiator
12031
12051
  }
12032
12052
  }
12033
12053
  }
@@ -12552,16 +12572,35 @@ var LightsparkClient = class {
12552
12572
  * h-tag (SHA256 purpose of payment) of the resulting Bolt 11 invoice. See
12553
12573
  * [this spec](https://github.com/lnurl/luds/blob/luds/06.md#pay-to-static-qrnfclink) for details.
12554
12574
  * @param expirySecs The number of seconds until the invoice expires. Defaults to 3600 (1 hour).
12575
+ * @param signingPrivateKey The receiver's signing private key. Used to hash the receiver identifier.
12576
+ * @param receiverIdentifier Optional identifier of the receiver. If provided, this will be hashed using a
12577
+ * monthly-rotated seed and used for anonymized analysis.
12555
12578
  * @returns An Invoice object representing the generated invoice.
12556
12579
  */
12557
- async createUmaInvoice(nodeId, amountMsats, metadata, expirySecs = void 0) {
12580
+ async createUmaInvoice(nodeId, amountMsats, metadata, expirySecs = void 0, signingPrivateKey = void 0, receiverIdentifier = void 0) {
12558
12581
  const metadataHash = await (0, import_core9.createSha256Hash)(metadata, true);
12582
+ let receiverHash = void 0;
12583
+ if (receiverIdentifier !== void 0) {
12584
+ if (signingPrivateKey == void 0) {
12585
+ throw new import_core9.LightsparkException(
12586
+ "CreateUmaInvoiceError",
12587
+ "Receiver identifier provided without signing private key"
12588
+ );
12589
+ }
12590
+ receiverHash = await this.hashUmaIdentifier(
12591
+ receiverIdentifier,
12592
+ signingPrivateKey
12593
+ );
12594
+ }
12559
12595
  const variables = {
12560
12596
  node_id: nodeId,
12561
12597
  amount_msats: amountMsats,
12562
12598
  metadata_hash: metadataHash,
12563
12599
  expiry_secs: expirySecs !== void 0 ? expirySecs : 3600
12564
12600
  };
12601
+ if (receiverHash !== void 0) {
12602
+ variables.receiver_hash = receiverHash;
12603
+ }
12565
12604
  const response = await this.requester.makeRawRequest(
12566
12605
  CreateUmaInvoice,
12567
12606
  variables
@@ -12767,12 +12806,28 @@ var LightsparkClient = class {
12767
12806
  * @param amountMsats The amount to pay in msats for a zero-amount invoice. Defaults to the full amount of the
12768
12807
  * invoice. NOTE: This parameter can only be passed for a zero-amount
12769
12808
  * invoice. Otherwise, the call will fail.
12809
+ * @param signingPrivateKey The sender's signing private key. Used to hash the sender identifier.
12810
+ * @param senderIdentifier Optional identifier of the sender. If provided, this will be hashed using a
12811
+ * monthly-rotated seed and used for anonymized analysis.
12770
12812
  * @returns An `OutgoingPayment` object if the payment was successful, or undefined if the payment failed.
12771
12813
  */
12772
- async payUmaInvoice(payerNodeId, encodedInvoice, maximumFeesMsats, timeoutSecs = 60, amountMsats = void 0) {
12814
+ async payUmaInvoice(payerNodeId, encodedInvoice, maximumFeesMsats, timeoutSecs = 60, amountMsats = void 0, signingPrivateKey = void 0, senderIdentifier = void 0) {
12773
12815
  if (!this.nodeKeyCache.hasKey(payerNodeId)) {
12774
12816
  throw new import_core9.LightsparkSigningException("Paying node is not unlocked");
12775
12817
  }
12818
+ let senderHash = void 0;
12819
+ if (senderIdentifier !== void 0) {
12820
+ if (signingPrivateKey == void 0) {
12821
+ throw new import_core9.LightsparkException(
12822
+ "PayUmaInvoiceError",
12823
+ "Sender identifier provided without signing private key"
12824
+ );
12825
+ }
12826
+ senderHash = await this.hashUmaIdentifier(
12827
+ senderIdentifier,
12828
+ signingPrivateKey
12829
+ );
12830
+ }
12776
12831
  const variables = {
12777
12832
  node_id: payerNodeId,
12778
12833
  encoded_invoice: encodedInvoice,
@@ -12782,6 +12837,9 @@ var LightsparkClient = class {
12782
12837
  if (amountMsats !== void 0) {
12783
12838
  variables.amount_msats = amountMsats;
12784
12839
  }
12840
+ if (senderHash !== void 0) {
12841
+ variables.sender_hash = senderHash;
12842
+ }
12785
12843
  const response = await this.requester.makeRawRequest(
12786
12844
  PayUmaInvoice,
12787
12845
  variables,
@@ -13271,6 +13329,14 @@ var LightsparkClient = class {
13271
13329
  }
13272
13330
  return await (0, import_core9.createSha256Hash)(e164PhoneNumber, true);
13273
13331
  }
13332
+ async hashUmaIdentifier(identifier, signingPrivateKey) {
13333
+ const now = this.getUtcDateTime();
13334
+ const input = identifier + `${now.getUTCMonth() + 1}-${now.getUTCFullYear()}` + (0, import_core9.bytesToHex)(signingPrivateKey);
13335
+ return await (0, import_core9.createSha256Hash)(input, true);
13336
+ }
13337
+ getUtcDateTime() {
13338
+ return /* @__PURE__ */ new Date();
13339
+ }
13274
13340
  /**
13275
13341
  * Executes a raw `Query` against the Lightspark API.
13276
13342
  *
@@ -14971,6 +15037,7 @@ var RemoteSigningWebhookHandler = class {
14971
15037
  RegionCode,
14972
15038
  RemoteSigningSubEventType,
14973
15039
  RemoteSigningWebhookHandler,
15040
+ RequestInitiator,
14974
15041
  RiskRating,
14975
15042
  RoutingTransactionFailureReason,
14976
15043
  SignablePayloadStatus,
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-145ff316.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 Channel, o as ChannelClosingTransaction, q as ChannelFees, r as ChannelOpeningTransaction, t as ChannelSnapshot, v as ChannelStatus, w as ChannelToTransactionsConnection, x as ClaimUmaInvitationInput, y as ClaimUmaInvitationOutput, z as ClaimUmaInvitationWithIncentivesInput, D as ClaimUmaInvitationWithIncentivesOutput, E as ComplianceProvider, F as Connection, G as CreateApiTokenInput, H as CreateApiTokenOutput, I as CreateInvitationWithIncentivesInput, J as CreateInvitationWithIncentivesOutput, K as CreateInvoiceInput, M as CreateInvoiceOutput, N as CreateLnurlInvoiceInput, O as CreateNodeWalletAddressInput, P as CreateNodeWalletAddressOutput, Q as CreateTestModeInvoiceInput, R as CreateTestModeInvoiceOutput, S as CreateTestModePaymentInput, T as CreateTestModePaymentoutput, U as CreateUmaInvitationInput, V as CreateUmaInvitationOutput, X as CreateUmaInvoiceInput, Y as CurrencyAmount, Z as CurrencyUnit, _ as DailyLiquidityForecast, $ as DeclineToSignMessagesInput, a0 as DeclineToSignMessagesOutput, a1 as DeleteApiTokenInput, a2 as DeleteApiTokenOutput, a3 as Deposit, a5 as Entity, a6 as FailHtlcsInput, a7 as FailHtlcsOutput, a8 as FeeEstimate, a9 as FundNodeInput, aa as FundNodeOutput, ab as GraphNode, ac as Hop, ae as HtlcAttemptFailureCode, af as IdAndSignature, ag as IncentivesIneligibilityReason, ah as IncentivesStatus, ai as IncomingPayment, aj as IncomingPaymentAttempt, al as IncomingPaymentAttemptStatus, am as IncomingPaymentToAttemptsConnection, an as IncomingPaymentsForInvoiceQueryInput, ao as IncomingPaymentsForInvoiceQueryOutput, ap as Invoice, ar as InvoiceData, as as InvoiceForPaymentHashInput, at as InvoiceForPaymentHashOutput, au as InvoiceType, av as LightningFeeEstimateForInvoiceInput, aw as LightningFeeEstimateForNodeInput, ax as LightningFeeEstimateOutput, ay as LightningPaymentDirection, az as LightningTransaction, aB as LightsparkNode, aD as LightsparkNodeOwner, aF as LightsparkNodeStatus, aG as LightsparkNodeToChannelsConnection, aH as LightsparkNodeToDailyLiquidityForecastsConnection, aI as LightsparkNodeWithOSK, aJ as LightsparkNodeWithRemoteSigning, aK as MultiSigAddressValidationParameters, aL as Node, aN as NodeAddress, aO as NodeAddressType, aP as NodeToAddressesConnection, aQ as OnChainFeeTarget, aR as OnChainTransaction, aT as OutgoingPayment, aU as OutgoingPaymentAttempt, aV as OutgoingPaymentAttemptStatus, aW as OutgoingPaymentAttemptToHopsConnection, aX as OutgoingPaymentForIdempotencyKeyInput, aY as OutgoingPaymentForIdempotencyKeyOutput, aZ as OutgoingPaymentToAttemptsConnection, a_ as OutgoingPaymentsForInvoiceQueryInput, a$ as OutgoingPaymentsForInvoiceQueryOutput, b0 as OutgoingPaymentsForPaymentHashQueryInput, b1 as OutgoingPaymentsForPaymentHashQueryOutput, b2 as PageInfo, b3 as PayInvoiceInput, b4 as PayInvoiceOutput, b5 as PayUmaInvoiceInput, b6 as PaymentDirection, b7 as PaymentFailureReason, b8 as PaymentRequest, ba as PaymentRequestData, bb as PaymentRequestStatus, bc as Permission, bd as PostTransactionData, be as RegionCode, bf as RegisterPaymentInput, bg as RegisterPaymentOutput, bh as ReleaseChannelPerCommitmentSecretInput, bi as ReleaseChannelPerCommitmentSecretOutput, bj as ReleasePaymentPreimageInput, bk as ReleasePaymentPreimageOutput, bl as RemoteSigningSubEventType, bm as RequestWithdrawalInput, bn as RequestWithdrawalOutput, bo as RichText, bp as RiskRating, bq as RoutingTransaction, bs as RoutingTransactionFailureReason, bt as ScreenNodeInput, bu as ScreenNodeOutput, bv as Secret, bw as SendPaymentInput, bx as SendPaymentOutput, by as SetInvoicePaymentHashInput, bz as SetInvoicePaymentHashOutput, bA as SignInvoiceInput, bB as SignInvoiceOutput, bC as SignMessagesInput, bD as SignMessagesOutput, bE as Signable, bG as SignablePayload, bI as SignablePayloadStatus, bJ as SingleNodeDashboard, bK as Transaction, bM as TransactionFailures, bN as TransactionStatus, bO as TransactionType, bP as TransactionUpdate, bQ as UmaInvitation, bS as UpdateChannelPerCommitmentPointInput, bT as UpdateChannelPerCommitmentPointOutput, bU as UpdateNodeSharedSecretInput, bV as UpdateNodeSharedSecretOutput, bW as Wallet, bX as WalletStatus, bY as WalletToPaymentRequestsConnection, bZ as WalletToTransactionsConnection, b_ as WalletToWithdrawalRequestsConnection, b$ as Withdrawal, c1 as WithdrawalFeeEstimateInput, c2 as WithdrawalFeeEstimateOutput, c3 as WithdrawalMode, c4 as WithdrawalRequest, c5 as WithdrawalRequestStatus, c6 as WithdrawalRequestToChannelClosingTransactionsConnection, c7 as WithdrawalRequestToChannelOpeningTransactionsConnection, c8 as WithdrawalRequestToWithdrawalsConnection, i as getApiTokenQuery, k as getAuditLogActorQuery, p as getChannelClosingTransactionQuery, s as getChannelOpeningTransactionQuery, u as getChannelSnapshotQuery, a4 as getDepositQuery, ad as getHopQuery, ak as getIncomingPaymentAttemptQuery, aq as getInvoiceQuery, aA as getLightningTransactionQuery, aE as getLightsparkNodeOwnerQuery, aC as getLightsparkNodeQuery, aM as getNodeQuery, aS as getOnChainTransactionQuery, b9 as getPaymentRequestQuery, br as getRoutingTransactionQuery, bH as getSignablePayloadQuery, bF as getSignableQuery, bL as getTransactionQuery, bR as getUmaInvitationQuery, c0 as getWithdrawalQuery } from './index-145ff316.js';
2
+ import { W as WebhookEventType, L as LightsparkClient } from './index-85107c9f.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 Channel, o as ChannelClosingTransaction, q as ChannelFees, r as ChannelOpeningTransaction, t as ChannelSnapshot, v as ChannelStatus, w as ChannelToTransactionsConnection, x as ClaimUmaInvitationInput, y as ClaimUmaInvitationOutput, z as ClaimUmaInvitationWithIncentivesInput, D as ClaimUmaInvitationWithIncentivesOutput, E as ComplianceProvider, F as Connection, G as CreateApiTokenInput, H as CreateApiTokenOutput, I as CreateInvitationWithIncentivesInput, J as CreateInvitationWithIncentivesOutput, K as CreateInvoiceInput, M as CreateInvoiceOutput, N as CreateLnurlInvoiceInput, O as CreateNodeWalletAddressInput, P as CreateNodeWalletAddressOutput, Q as CreateTestModeInvoiceInput, R as CreateTestModeInvoiceOutput, S as CreateTestModePaymentInput, T as CreateTestModePaymentoutput, U as CreateUmaInvitationInput, V as CreateUmaInvitationOutput, X as CreateUmaInvoiceInput, Y as CurrencyAmount, Z as CurrencyUnit, _ as DailyLiquidityForecast, $ as DeclineToSignMessagesInput, a0 as DeclineToSignMessagesOutput, a1 as DeleteApiTokenInput, a2 as DeleteApiTokenOutput, a3 as Deposit, a5 as Entity, a6 as FailHtlcsInput, a7 as FailHtlcsOutput, a8 as FeeEstimate, a9 as FundNodeInput, aa as FundNodeOutput, ab as GraphNode, ac as Hop, ae as HtlcAttemptFailureCode, af as IdAndSignature, ag as IncentivesIneligibilityReason, ah as IncentivesStatus, ai as IncomingPayment, aj as IncomingPaymentAttempt, al as IncomingPaymentAttemptStatus, am as IncomingPaymentToAttemptsConnection, an as IncomingPaymentsForInvoiceQueryInput, ao as IncomingPaymentsForInvoiceQueryOutput, ap as Invoice, ar as InvoiceData, as as InvoiceForPaymentHashInput, at as InvoiceForPaymentHashOutput, au as InvoiceType, av as LightningFeeEstimateForInvoiceInput, aw as LightningFeeEstimateForNodeInput, ax as LightningFeeEstimateOutput, ay as LightningPaymentDirection, az as LightningTransaction, aB as LightsparkNode, aD as LightsparkNodeOwner, aF as LightsparkNodeStatus, aG as LightsparkNodeToChannelsConnection, aH as LightsparkNodeToDailyLiquidityForecastsConnection, aI as LightsparkNodeWithOSK, aJ as LightsparkNodeWithRemoteSigning, aK as MultiSigAddressValidationParameters, aL as Node, aN as NodeAddress, aO as NodeAddressType, aP as NodeToAddressesConnection, aQ as OnChainFeeTarget, aR as OnChainTransaction, aT as OutgoingPayment, aU as OutgoingPaymentAttempt, aV as OutgoingPaymentAttemptStatus, aW as OutgoingPaymentAttemptToHopsConnection, aX as OutgoingPaymentForIdempotencyKeyInput, aY as OutgoingPaymentForIdempotencyKeyOutput, aZ as OutgoingPaymentToAttemptsConnection, a_ as OutgoingPaymentsForInvoiceQueryInput, a$ as OutgoingPaymentsForInvoiceQueryOutput, b0 as OutgoingPaymentsForPaymentHashQueryInput, b1 as OutgoingPaymentsForPaymentHashQueryOutput, b2 as PageInfo, b3 as PayInvoiceInput, b4 as PayInvoiceOutput, b5 as PayUmaInvoiceInput, b6 as PaymentDirection, b7 as PaymentFailureReason, b8 as PaymentRequest, ba as PaymentRequestData, bb as PaymentRequestStatus, bc as Permission, bd as PostTransactionData, be as RegionCode, bf as RegisterPaymentInput, bg as RegisterPaymentOutput, bh as ReleaseChannelPerCommitmentSecretInput, bi as ReleaseChannelPerCommitmentSecretOutput, bj as ReleasePaymentPreimageInput, bk as ReleasePaymentPreimageOutput, bl as RemoteSigningSubEventType, bm as RequestInitiator, bn as RequestWithdrawalInput, bo as RequestWithdrawalOutput, bp as RichText, bq as RiskRating, br as RoutingTransaction, bt as RoutingTransactionFailureReason, bu as ScreenNodeInput, bv as ScreenNodeOutput, bw as Secret, bx as SendPaymentInput, by as SendPaymentOutput, bz as SetInvoicePaymentHashInput, bA as SetInvoicePaymentHashOutput, bB as SignInvoiceInput, bC as SignInvoiceOutput, bD as SignMessagesInput, bE as SignMessagesOutput, bF as Signable, bH as SignablePayload, bJ as SignablePayloadStatus, bK as SingleNodeDashboard, bL as Transaction, bN as TransactionFailures, bO as TransactionStatus, bP as TransactionType, bQ as TransactionUpdate, bR as UmaInvitation, bT as UpdateChannelPerCommitmentPointInput, bU as UpdateChannelPerCommitmentPointOutput, bV as UpdateNodeSharedSecretInput, bW as UpdateNodeSharedSecretOutput, bX as Wallet, bY as WalletStatus, bZ as WalletToPaymentRequestsConnection, b_ as WalletToTransactionsConnection, b$ as WalletToWithdrawalRequestsConnection, c0 as Withdrawal, c2 as WithdrawalFeeEstimateInput, c3 as WithdrawalFeeEstimateOutput, c4 as WithdrawalMode, c5 as WithdrawalRequest, c6 as WithdrawalRequestStatus, c7 as WithdrawalRequestToChannelClosingTransactionsConnection, c8 as WithdrawalRequestToChannelOpeningTransactionsConnection, c9 as WithdrawalRequestToWithdrawalsConnection, i as getApiTokenQuery, k as getAuditLogActorQuery, p as getChannelClosingTransactionQuery, s as getChannelOpeningTransactionQuery, u as getChannelSnapshotQuery, a4 as getDepositQuery, ad as getHopQuery, ak as getIncomingPaymentAttemptQuery, aq as getInvoiceQuery, aA as getLightningTransactionQuery, aE as getLightsparkNodeOwnerQuery, aC as getLightsparkNodeQuery, aM as getNodeQuery, aS as getOnChainTransactionQuery, b9 as getPaymentRequestQuery, bs as getRoutingTransactionQuery, bI as getSignablePayloadQuery, bG as getSignableQuery, bM as getTransactionQuery, bS as getUmaInvitationQuery, c1 as getWithdrawalQuery } from './index-85107c9f.js';
4
4
  import { B as BitcoinNetwork } from './BitcoinNetwork-4f6ea015.js';
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-145ff316.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 Channel, o as ChannelClosingTransaction, q as ChannelFees, r as ChannelOpeningTransaction, t as ChannelSnapshot, v as ChannelStatus, w as ChannelToTransactionsConnection, x as ClaimUmaInvitationInput, y as ClaimUmaInvitationOutput, z as ClaimUmaInvitationWithIncentivesInput, D as ClaimUmaInvitationWithIncentivesOutput, E as ComplianceProvider, F as Connection, G as CreateApiTokenInput, H as CreateApiTokenOutput, I as CreateInvitationWithIncentivesInput, J as CreateInvitationWithIncentivesOutput, K as CreateInvoiceInput, M as CreateInvoiceOutput, N as CreateLnurlInvoiceInput, O as CreateNodeWalletAddressInput, P as CreateNodeWalletAddressOutput, Q as CreateTestModeInvoiceInput, R as CreateTestModeInvoiceOutput, S as CreateTestModePaymentInput, T as CreateTestModePaymentoutput, U as CreateUmaInvitationInput, V as CreateUmaInvitationOutput, X as CreateUmaInvoiceInput, Y as CurrencyAmount, Z as CurrencyUnit, _ as DailyLiquidityForecast, $ as DeclineToSignMessagesInput, a0 as DeclineToSignMessagesOutput, a1 as DeleteApiTokenInput, a2 as DeleteApiTokenOutput, a3 as Deposit, a5 as Entity, a6 as FailHtlcsInput, a7 as FailHtlcsOutput, a8 as FeeEstimate, a9 as FundNodeInput, aa as FundNodeOutput, ab as GraphNode, ac as Hop, ae as HtlcAttemptFailureCode, af as IdAndSignature, ag as IncentivesIneligibilityReason, ah as IncentivesStatus, ai as IncomingPayment, aj as IncomingPaymentAttempt, al as IncomingPaymentAttemptStatus, am as IncomingPaymentToAttemptsConnection, an as IncomingPaymentsForInvoiceQueryInput, ao as IncomingPaymentsForInvoiceQueryOutput, ap as Invoice, ar as InvoiceData, as as InvoiceForPaymentHashInput, at as InvoiceForPaymentHashOutput, au as InvoiceType, av as LightningFeeEstimateForInvoiceInput, aw as LightningFeeEstimateForNodeInput, ax as LightningFeeEstimateOutput, ay as LightningPaymentDirection, az as LightningTransaction, aB as LightsparkNode, aD as LightsparkNodeOwner, aF as LightsparkNodeStatus, aG as LightsparkNodeToChannelsConnection, aH as LightsparkNodeToDailyLiquidityForecastsConnection, aI as LightsparkNodeWithOSK, aJ as LightsparkNodeWithRemoteSigning, aK as MultiSigAddressValidationParameters, aL as Node, aN as NodeAddress, aO as NodeAddressType, aP as NodeToAddressesConnection, aQ as OnChainFeeTarget, aR as OnChainTransaction, aT as OutgoingPayment, aU as OutgoingPaymentAttempt, aV as OutgoingPaymentAttemptStatus, aW as OutgoingPaymentAttemptToHopsConnection, aX as OutgoingPaymentForIdempotencyKeyInput, aY as OutgoingPaymentForIdempotencyKeyOutput, aZ as OutgoingPaymentToAttemptsConnection, a_ as OutgoingPaymentsForInvoiceQueryInput, a$ as OutgoingPaymentsForInvoiceQueryOutput, b0 as OutgoingPaymentsForPaymentHashQueryInput, b1 as OutgoingPaymentsForPaymentHashQueryOutput, b2 as PageInfo, b3 as PayInvoiceInput, b4 as PayInvoiceOutput, b5 as PayUmaInvoiceInput, b6 as PaymentDirection, b7 as PaymentFailureReason, b8 as PaymentRequest, ba as PaymentRequestData, bb as PaymentRequestStatus, bc as Permission, bd as PostTransactionData, be as RegionCode, bf as RegisterPaymentInput, bg as RegisterPaymentOutput, bh as ReleaseChannelPerCommitmentSecretInput, bi as ReleaseChannelPerCommitmentSecretOutput, bj as ReleasePaymentPreimageInput, bk as ReleasePaymentPreimageOutput, bl as RemoteSigningSubEventType, bm as RequestWithdrawalInput, bn as RequestWithdrawalOutput, bo as RichText, bp as RiskRating, bq as RoutingTransaction, bs as RoutingTransactionFailureReason, bt as ScreenNodeInput, bu as ScreenNodeOutput, bv as Secret, bw as SendPaymentInput, bx as SendPaymentOutput, by as SetInvoicePaymentHashInput, bz as SetInvoicePaymentHashOutput, bA as SignInvoiceInput, bB as SignInvoiceOutput, bC as SignMessagesInput, bD as SignMessagesOutput, bE as Signable, bG as SignablePayload, bI as SignablePayloadStatus, bJ as SingleNodeDashboard, bK as Transaction, bM as TransactionFailures, bN as TransactionStatus, bO as TransactionType, bP as TransactionUpdate, bQ as UmaInvitation, bS as UpdateChannelPerCommitmentPointInput, bT as UpdateChannelPerCommitmentPointOutput, bU as UpdateNodeSharedSecretInput, bV as UpdateNodeSharedSecretOutput, bW as Wallet, bX as WalletStatus, bY as WalletToPaymentRequestsConnection, bZ as WalletToTransactionsConnection, b_ as WalletToWithdrawalRequestsConnection, b$ as Withdrawal, c1 as WithdrawalFeeEstimateInput, c2 as WithdrawalFeeEstimateOutput, c3 as WithdrawalMode, c4 as WithdrawalRequest, c5 as WithdrawalRequestStatus, c6 as WithdrawalRequestToChannelClosingTransactionsConnection, c7 as WithdrawalRequestToChannelOpeningTransactionsConnection, c8 as WithdrawalRequestToWithdrawalsConnection, i as getApiTokenQuery, k as getAuditLogActorQuery, p as getChannelClosingTransactionQuery, s as getChannelOpeningTransactionQuery, u as getChannelSnapshotQuery, a4 as getDepositQuery, ad as getHopQuery, ak as getIncomingPaymentAttemptQuery, aq as getInvoiceQuery, aA as getLightningTransactionQuery, aE as getLightsparkNodeOwnerQuery, aC as getLightsparkNodeQuery, aM as getNodeQuery, aS as getOnChainTransactionQuery, b9 as getPaymentRequestQuery, br as getRoutingTransactionQuery, bH as getSignablePayloadQuery, bF as getSignableQuery, bL as getTransactionQuery, bR as getUmaInvitationQuery, c0 as getWithdrawalQuery } from './index-145ff316.js';
2
+ import { W as WebhookEventType, L as LightsparkClient } from './index-85107c9f.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 Channel, o as ChannelClosingTransaction, q as ChannelFees, r as ChannelOpeningTransaction, t as ChannelSnapshot, v as ChannelStatus, w as ChannelToTransactionsConnection, x as ClaimUmaInvitationInput, y as ClaimUmaInvitationOutput, z as ClaimUmaInvitationWithIncentivesInput, D as ClaimUmaInvitationWithIncentivesOutput, E as ComplianceProvider, F as Connection, G as CreateApiTokenInput, H as CreateApiTokenOutput, I as CreateInvitationWithIncentivesInput, J as CreateInvitationWithIncentivesOutput, K as CreateInvoiceInput, M as CreateInvoiceOutput, N as CreateLnurlInvoiceInput, O as CreateNodeWalletAddressInput, P as CreateNodeWalletAddressOutput, Q as CreateTestModeInvoiceInput, R as CreateTestModeInvoiceOutput, S as CreateTestModePaymentInput, T as CreateTestModePaymentoutput, U as CreateUmaInvitationInput, V as CreateUmaInvitationOutput, X as CreateUmaInvoiceInput, Y as CurrencyAmount, Z as CurrencyUnit, _ as DailyLiquidityForecast, $ as DeclineToSignMessagesInput, a0 as DeclineToSignMessagesOutput, a1 as DeleteApiTokenInput, a2 as DeleteApiTokenOutput, a3 as Deposit, a5 as Entity, a6 as FailHtlcsInput, a7 as FailHtlcsOutput, a8 as FeeEstimate, a9 as FundNodeInput, aa as FundNodeOutput, ab as GraphNode, ac as Hop, ae as HtlcAttemptFailureCode, af as IdAndSignature, ag as IncentivesIneligibilityReason, ah as IncentivesStatus, ai as IncomingPayment, aj as IncomingPaymentAttempt, al as IncomingPaymentAttemptStatus, am as IncomingPaymentToAttemptsConnection, an as IncomingPaymentsForInvoiceQueryInput, ao as IncomingPaymentsForInvoiceQueryOutput, ap as Invoice, ar as InvoiceData, as as InvoiceForPaymentHashInput, at as InvoiceForPaymentHashOutput, au as InvoiceType, av as LightningFeeEstimateForInvoiceInput, aw as LightningFeeEstimateForNodeInput, ax as LightningFeeEstimateOutput, ay as LightningPaymentDirection, az as LightningTransaction, aB as LightsparkNode, aD as LightsparkNodeOwner, aF as LightsparkNodeStatus, aG as LightsparkNodeToChannelsConnection, aH as LightsparkNodeToDailyLiquidityForecastsConnection, aI as LightsparkNodeWithOSK, aJ as LightsparkNodeWithRemoteSigning, aK as MultiSigAddressValidationParameters, aL as Node, aN as NodeAddress, aO as NodeAddressType, aP as NodeToAddressesConnection, aQ as OnChainFeeTarget, aR as OnChainTransaction, aT as OutgoingPayment, aU as OutgoingPaymentAttempt, aV as OutgoingPaymentAttemptStatus, aW as OutgoingPaymentAttemptToHopsConnection, aX as OutgoingPaymentForIdempotencyKeyInput, aY as OutgoingPaymentForIdempotencyKeyOutput, aZ as OutgoingPaymentToAttemptsConnection, a_ as OutgoingPaymentsForInvoiceQueryInput, a$ as OutgoingPaymentsForInvoiceQueryOutput, b0 as OutgoingPaymentsForPaymentHashQueryInput, b1 as OutgoingPaymentsForPaymentHashQueryOutput, b2 as PageInfo, b3 as PayInvoiceInput, b4 as PayInvoiceOutput, b5 as PayUmaInvoiceInput, b6 as PaymentDirection, b7 as PaymentFailureReason, b8 as PaymentRequest, ba as PaymentRequestData, bb as PaymentRequestStatus, bc as Permission, bd as PostTransactionData, be as RegionCode, bf as RegisterPaymentInput, bg as RegisterPaymentOutput, bh as ReleaseChannelPerCommitmentSecretInput, bi as ReleaseChannelPerCommitmentSecretOutput, bj as ReleasePaymentPreimageInput, bk as ReleasePaymentPreimageOutput, bl as RemoteSigningSubEventType, bm as RequestInitiator, bn as RequestWithdrawalInput, bo as RequestWithdrawalOutput, bp as RichText, bq as RiskRating, br as RoutingTransaction, bt as RoutingTransactionFailureReason, bu as ScreenNodeInput, bv as ScreenNodeOutput, bw as Secret, bx as SendPaymentInput, by as SendPaymentOutput, bz as SetInvoicePaymentHashInput, bA as SetInvoicePaymentHashOutput, bB as SignInvoiceInput, bC as SignInvoiceOutput, bD as SignMessagesInput, bE as SignMessagesOutput, bF as Signable, bH as SignablePayload, bJ as SignablePayloadStatus, bK as SingleNodeDashboard, bL as Transaction, bN as TransactionFailures, bO as TransactionStatus, bP as TransactionType, bQ as TransactionUpdate, bR as UmaInvitation, bT as UpdateChannelPerCommitmentPointInput, bU as UpdateChannelPerCommitmentPointOutput, bV as UpdateNodeSharedSecretInput, bW as UpdateNodeSharedSecretOutput, bX as Wallet, bY as WalletStatus, bZ as WalletToPaymentRequestsConnection, b_ as WalletToTransactionsConnection, b$ as WalletToWithdrawalRequestsConnection, c0 as Withdrawal, c2 as WithdrawalFeeEstimateInput, c3 as WithdrawalFeeEstimateOutput, c4 as WithdrawalMode, c5 as WithdrawalRequest, c6 as WithdrawalRequestStatus, c7 as WithdrawalRequestToChannelClosingTransactionsConnection, c8 as WithdrawalRequestToChannelOpeningTransactionsConnection, c9 as WithdrawalRequestToWithdrawalsConnection, i as getApiTokenQuery, k as getAuditLogActorQuery, p as getChannelClosingTransactionQuery, s as getChannelOpeningTransactionQuery, u as getChannelSnapshotQuery, a4 as getDepositQuery, ad as getHopQuery, ak as getIncomingPaymentAttemptQuery, aq as getInvoiceQuery, aA as getLightningTransactionQuery, aE as getLightsparkNodeOwnerQuery, aC as getLightsparkNodeQuery, aM as getNodeQuery, aS as getOnChainTransactionQuery, b9 as getPaymentRequestQuery, bs as getRoutingTransactionQuery, bI as getSignablePayloadQuery, bG as getSignableQuery, bM as getTransactionQuery, bS as getUmaInvitationQuery, c1 as getWithdrawalQuery } from './index-85107c9f.js';
4
4
  import { B as BitcoinNetwork } from './BitcoinNetwork-4f6ea015.js';
5
5
  import 'zen-observable';
6
6