@lightsparkdev/lightspark-sdk 1.1.5 → 1.1.7

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.
@@ -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 ApiToken, B as Balances, i as BlockchainBalance, C as Channel, j as ChannelClosingTransaction, l as ChannelFees, m as ChannelOpeningTransaction, o as ChannelSnapshot, p as ChannelStatus, q as ChannelToTransactionsConnection, r as ComplianceProvider, s as Connection, t as CreateApiTokenInput, u as CreateApiTokenOutput, v as CreateInvoiceInput, w as CreateInvoiceOutput, x as CreateLnurlInvoiceInput, y as CreateNodeWalletAddressInput, z as CreateNodeWalletAddressOutput, D as CreateTestModeInvoiceInput, E as CreateTestModeInvoiceOutput, F as CreateTestModePaymentInput, G as CreateTestModePaymentoutput, H as CreateUmaInvoiceInput, I as CurrencyAmount, J as CurrencyUnit, K as DeclineToSignMessagesInput, M as DeclineToSignMessagesOutput, N as DeleteApiTokenInput, O as DeleteApiTokenOutput, P as Deposit, R as Entity, S as FeeEstimate, T as FundNodeInput, U as FundNodeOutput, V as GraphNode, X as Hop, Z as HtlcAttemptFailureCode, _ as IdAndSignature, $ as IncomingPayment, a0 as IncomingPaymentAttempt, a2 as IncomingPaymentAttemptStatus, a3 as IncomingPaymentToAttemptsConnection, a4 as Invoice, a6 as InvoiceData, a7 as InvoiceType, a8 as LightningFeeEstimateForInvoiceInput, a9 as LightningFeeEstimateForNodeInput, aa as LightningFeeEstimateOutput, ab as LightningTransaction, ad as LightsparkNode, ae as LightsparkNodeOwner, ag as LightsparkNodeStatus, ah as LightsparkNodeToChannelsConnection, ai as LightsparkNodeWithOSK, aj as LightsparkNodeWithRemoteSigning, ak as Node, al as NodeAddress, am as NodeAddressType, an as NodeToAddressesConnection, ao as OnChainTransaction, aq as OutgoingPayment, ar as OutgoingPaymentAttempt, as as OutgoingPaymentAttemptStatus, at as OutgoingPaymentAttemptToHopsConnection, aw as OutgoingPaymentToAttemptsConnection, au as OutgoingPaymentsForInvoiceQueryInput, av as OutgoingPaymentsForInvoiceQueryOutput, ax as PageInfo, ay as PayInvoiceInput, az as PayInvoiceOutput, aG as PayUmaInvoiceInput, aA as PaymentDirection, aB as PaymentFailureReason, aC as PaymentRequest, aE as PaymentRequestData, aF as PaymentRequestStatus, aH as Permission, aI as PostTransactionData, aJ as RegisterPaymentInput, aK as RegisterPaymentOutput, aL as ReleaseChannelPerCommitmentSecretInput, aM as ReleaseChannelPerCommitmentSecretOutput, aN as ReleasePaymentPreimageInput, aO as ReleasePaymentPreimageOutput, aP as RemoteSigningSubEventType, aQ as RequestWithdrawalInput, aR as RequestWithdrawalOutput, aS as RichText, aT as RiskRating, aU as RoutingTransaction, aW as RoutingTransactionFailureReason, aX as ScreenNodeInput, aY as ScreenNodeOutput, aZ as Secret, a_ as SendPaymentInput, a$ as SendPaymentOutput, b0 as SetInvoicePaymentHashInput, b1 as SetInvoicePaymentHashOutput, b7 as SignInvoiceInput, b8 as SignInvoiceOutput, b9 as SignMessagesInput, ba as SignMessagesOutput, b2 as Signable, b4 as SignablePayload, b6 as SignablePayloadStatus, bb as SingleNodeDashboard, bc as Transaction, be as TransactionFailures, bf as TransactionStatus, bg as TransactionType, bh as TransactionUpdate, bi as UpdateChannelPerCommitmentPointInput, bj as UpdateChannelPerCommitmentPointOutput, bk as UpdateNodeSharedSecretInput, bl as UpdateNodeSharedSecretOutput, bm as Wallet, bn as WalletStatus, bo as WalletToPaymentRequestsConnection, bp as WalletToTransactionsConnection, W as WebhookEventType, bq as Withdrawal, bs as WithdrawalMode, bt as WithdrawalRequest, bu as WithdrawalRequestStatus, bv as WithdrawalRequestToChannelClosingTransactionsConnection, bw as WithdrawalRequestToChannelOpeningTransactionsConnection, h as getApiTokenQuery, k as getChannelClosingTransactionQuery, n as getChannelOpeningTransactionQuery, Q as getDepositQuery, Y as getHopQuery, a1 as getIncomingPaymentAttemptQuery, a5 as getInvoiceQuery, ac as getLightningTransactionQuery, af as getLightsparkNodeOwnerQuery, ap as getOnChainTransactionQuery, aD as getPaymentRequestQuery, aV as getRoutingTransactionQuery, b5 as getSignablePayloadQuery, b3 as getSignableQuery, bd as getTransactionQuery, br as getWithdrawalQuery } from '../index-5235e43b.js';
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 ApiToken, B as Balances, i as BlockchainBalance, C as Channel, j as ChannelClosingTransaction, l as ChannelFees, m as ChannelOpeningTransaction, o as ChannelSnapshot, p as ChannelStatus, q as ChannelToTransactionsConnection, r as ComplianceProvider, s as Connection, t as CreateApiTokenInput, u as CreateApiTokenOutput, v as CreateInvoiceInput, w as CreateInvoiceOutput, x as CreateLnurlInvoiceInput, y as CreateNodeWalletAddressInput, z as CreateNodeWalletAddressOutput, D as CreateTestModeInvoiceInput, E as CreateTestModeInvoiceOutput, F as CreateTestModePaymentInput, G as CreateTestModePaymentoutput, H as CreateUmaInvoiceInput, I as CurrencyAmount, J as CurrencyUnit, K as DeclineToSignMessagesInput, M as DeclineToSignMessagesOutput, N as DeleteApiTokenInput, O as DeleteApiTokenOutput, P as Deposit, R as Entity, S as FeeEstimate, T as FundNodeInput, U as FundNodeOutput, V as GraphNode, X as Hop, Z as HtlcAttemptFailureCode, _ as IdAndSignature, $ as IncomingPayment, a0 as IncomingPaymentAttempt, a2 as IncomingPaymentAttemptStatus, a3 as IncomingPaymentToAttemptsConnection, a4 as Invoice, a6 as InvoiceData, a7 as InvoiceType, a8 as LightningFeeEstimateForInvoiceInput, a9 as LightningFeeEstimateForNodeInput, aa as LightningFeeEstimateOutput, ab as LightningTransaction, ad as LightsparkNode, ae as LightsparkNodeOwner, ag as LightsparkNodeStatus, ah as LightsparkNodeToChannelsConnection, ai as LightsparkNodeWithOSK, aj as LightsparkNodeWithRemoteSigning, ak as Node, al as NodeAddress, am as NodeAddressType, an as NodeToAddressesConnection, ao as OnChainTransaction, aq as OutgoingPayment, ar as OutgoingPaymentAttempt, as as OutgoingPaymentAttemptStatus, at as OutgoingPaymentAttemptToHopsConnection, aw as OutgoingPaymentToAttemptsConnection, au as OutgoingPaymentsForInvoiceQueryInput, av as OutgoingPaymentsForInvoiceQueryOutput, ax as PageInfo, ay as PayInvoiceInput, az as PayInvoiceOutput, aG as PayUmaInvoiceInput, aA as PaymentDirection, aB as PaymentFailureReason, aC as PaymentRequest, aE as PaymentRequestData, aF as PaymentRequestStatus, aH as Permission, aI as PostTransactionData, aJ as RegisterPaymentInput, aK as RegisterPaymentOutput, aL as ReleaseChannelPerCommitmentSecretInput, aM as ReleaseChannelPerCommitmentSecretOutput, aN as ReleasePaymentPreimageInput, aO as ReleasePaymentPreimageOutput, aP as RemoteSigningSubEventType, aQ as RequestWithdrawalInput, aR as RequestWithdrawalOutput, aS as RichText, aT as RiskRating, aU as RoutingTransaction, aW as RoutingTransactionFailureReason, aX as ScreenNodeInput, aY as ScreenNodeOutput, aZ as Secret, a_ as SendPaymentInput, a$ as SendPaymentOutput, b0 as SetInvoicePaymentHashInput, b1 as SetInvoicePaymentHashOutput, b7 as SignInvoiceInput, b8 as SignInvoiceOutput, b9 as SignMessagesInput, ba as SignMessagesOutput, b2 as Signable, b4 as SignablePayload, b6 as SignablePayloadStatus, bb as SingleNodeDashboard, bc as Transaction, be as TransactionFailures, bf as TransactionStatus, bg as TransactionType, bh as TransactionUpdate, bi as UpdateChannelPerCommitmentPointInput, bj as UpdateChannelPerCommitmentPointOutput, bk as UpdateNodeSharedSecretInput, bl as UpdateNodeSharedSecretOutput, bm as Wallet, bn as WalletStatus, bo as WalletToPaymentRequestsConnection, bp as WalletToTransactionsConnection, W as WebhookEventType, bq as Withdrawal, bs as WithdrawalMode, bt as WithdrawalRequest, bu as WithdrawalRequestStatus, bv as WithdrawalRequestToChannelClosingTransactionsConnection, bw as WithdrawalRequestToChannelOpeningTransactionsConnection, h as getApiTokenQuery, k as getChannelClosingTransactionQuery, n as getChannelOpeningTransactionQuery, Q as getDepositQuery, Y as getHopQuery, a1 as getIncomingPaymentAttemptQuery, a5 as getInvoiceQuery, ac as getLightningTransactionQuery, af as getLightsparkNodeOwnerQuery, ap as getOnChainTransactionQuery, aD as getPaymentRequestQuery, aV as getRoutingTransactionQuery, b5 as getSignablePayloadQuery, b3 as getSignableQuery, bd as getTransactionQuery, br as getWithdrawalQuery } from '../index-d31f4469.js';
2
2
  export { B as BitcoinNetwork } from '../BitcoinNetwork-a816c0be.js';
3
3
  import '@lightsparkdev/core';
4
4
  import 'zen-observable';
@@ -51,7 +51,7 @@ import {
51
51
  getSignableQuery,
52
52
  getTransactionQuery,
53
53
  getWithdrawalQuery
54
- } from "../chunk-7UNNCH5S.js";
54
+ } from "../chunk-7UT6YX37.js";
55
55
  import {
56
56
  BitcoinNetwork_default
57
57
  } from "../chunk-K6SAUSAX.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lightsparkdev/lightspark-sdk",
3
- "version": "1.1.5",
3
+ "version": "1.1.7",
4
4
  "description": "Lightspark JS SDK",
5
5
  "author": "Lightspark Inc.",
6
6
  "keywords": [
@@ -88,7 +88,7 @@
88
88
  },
89
89
  "license": "Apache-2.0",
90
90
  "dependencies": {
91
- "@lightsparkdev/core": "1.0.8",
91
+ "@lightsparkdev/core": "1.0.9",
92
92
  "@lightsparkdev/crypto-wasm": "0.1.2",
93
93
  "auto-bind": "^5.0.1",
94
94
  "crypto-browserify": "^3.12.0",
@@ -328,6 +328,33 @@ query FetchAccountToNodesConnection($first: Int, $bitcoin_networks: [BitcoinNetw
328
328
  }
329
329
  }
330
330
  lightspark_node_with_o_s_k_uma_prescreening_utxos: uma_prescreening_utxos
331
+ lightspark_node_with_o_s_k_balances: balances {
332
+ __typename
333
+ balances_owned_balance: owned_balance {
334
+ __typename
335
+ currency_amount_original_value: original_value
336
+ currency_amount_original_unit: original_unit
337
+ currency_amount_preferred_currency_unit: preferred_currency_unit
338
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
339
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
340
+ }
341
+ balances_available_to_send_balance: available_to_send_balance {
342
+ __typename
343
+ currency_amount_original_value: original_value
344
+ currency_amount_original_unit: original_unit
345
+ currency_amount_preferred_currency_unit: preferred_currency_unit
346
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
347
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
348
+ }
349
+ balances_available_to_withdraw_balance: available_to_withdraw_balance {
350
+ __typename
351
+ currency_amount_original_value: original_value
352
+ currency_amount_original_unit: original_unit
353
+ currency_amount_preferred_currency_unit: preferred_currency_unit
354
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
355
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
356
+ }
357
+ }
331
358
  lightspark_node_with_o_s_k_encrypted_signing_private_key: encrypted_signing_private_key {
332
359
  __typename
333
360
  secret_encrypted_value: encrypted_value
@@ -433,6 +460,33 @@ query FetchAccountToNodesConnection($first: Int, $bitcoin_networks: [BitcoinNetw
433
460
  }
434
461
  }
435
462
  lightspark_node_with_remote_signing_uma_prescreening_utxos: uma_prescreening_utxos
463
+ lightspark_node_with_remote_signing_balances: balances {
464
+ __typename
465
+ balances_owned_balance: owned_balance {
466
+ __typename
467
+ currency_amount_original_value: original_value
468
+ currency_amount_original_unit: original_unit
469
+ currency_amount_preferred_currency_unit: preferred_currency_unit
470
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
471
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
472
+ }
473
+ balances_available_to_send_balance: available_to_send_balance {
474
+ __typename
475
+ currency_amount_original_value: original_value
476
+ currency_amount_original_unit: original_unit
477
+ currency_amount_preferred_currency_unit: preferred_currency_unit
478
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
479
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
480
+ }
481
+ balances_available_to_withdraw_balance: available_to_withdraw_balance {
482
+ __typename
483
+ currency_amount_original_value: original_value
484
+ currency_amount_original_unit: original_unit
485
+ currency_amount_preferred_currency_unit: preferred_currency_unit
486
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
487
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
488
+ }
489
+ }
436
490
  }
437
491
  }
438
492
  }
@@ -987,6 +1041,33 @@ query FetchAccountToTransactionsConnection($first: Int, $after: String, $types:
987
1041
  }
988
1042
  }
989
1043
  lightspark_node_with_o_s_k_uma_prescreening_utxos: uma_prescreening_utxos
1044
+ lightspark_node_with_o_s_k_balances: balances {
1045
+ __typename
1046
+ balances_owned_balance: owned_balance {
1047
+ __typename
1048
+ currency_amount_original_value: original_value
1049
+ currency_amount_original_unit: original_unit
1050
+ currency_amount_preferred_currency_unit: preferred_currency_unit
1051
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
1052
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
1053
+ }
1054
+ balances_available_to_send_balance: available_to_send_balance {
1055
+ __typename
1056
+ currency_amount_original_value: original_value
1057
+ currency_amount_original_unit: original_unit
1058
+ currency_amount_preferred_currency_unit: preferred_currency_unit
1059
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
1060
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
1061
+ }
1062
+ balances_available_to_withdraw_balance: available_to_withdraw_balance {
1063
+ __typename
1064
+ currency_amount_original_value: original_value
1065
+ currency_amount_original_unit: original_unit
1066
+ currency_amount_preferred_currency_unit: preferred_currency_unit
1067
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
1068
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
1069
+ }
1070
+ }
990
1071
  lightspark_node_with_o_s_k_encrypted_signing_private_key: encrypted_signing_private_key {
991
1072
  __typename
992
1073
  secret_encrypted_value: encrypted_value
@@ -1092,6 +1173,33 @@ query FetchAccountToTransactionsConnection($first: Int, $after: String, $types:
1092
1173
  }
1093
1174
  }
1094
1175
  lightspark_node_with_remote_signing_uma_prescreening_utxos: uma_prescreening_utxos
1176
+ lightspark_node_with_remote_signing_balances: balances {
1177
+ __typename
1178
+ balances_owned_balance: owned_balance {
1179
+ __typename
1180
+ currency_amount_original_value: original_value
1181
+ currency_amount_original_unit: original_unit
1182
+ currency_amount_preferred_currency_unit: preferred_currency_unit
1183
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
1184
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
1185
+ }
1186
+ balances_available_to_send_balance: available_to_send_balance {
1187
+ __typename
1188
+ currency_amount_original_value: original_value
1189
+ currency_amount_original_unit: original_unit
1190
+ currency_amount_preferred_currency_unit: preferred_currency_unit
1191
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
1192
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
1193
+ }
1194
+ balances_available_to_withdraw_balance: available_to_withdraw_balance {
1195
+ __typename
1196
+ currency_amount_original_value: original_value
1197
+ currency_amount_original_unit: original_unit
1198
+ currency_amount_preferred_currency_unit: preferred_currency_unit
1199
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
1200
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
1201
+ }
1202
+ }
1095
1203
  }
1096
1204
  }
1097
1205
  }
@@ -1367,6 +1475,33 @@ query FetchAccountToPaymentRequestsConnection($first: Int, $after: String, $afte
1367
1475
  }
1368
1476
  }
1369
1477
  lightspark_node_with_o_s_k_uma_prescreening_utxos: uma_prescreening_utxos
1478
+ lightspark_node_with_o_s_k_balances: balances {
1479
+ __typename
1480
+ balances_owned_balance: owned_balance {
1481
+ __typename
1482
+ currency_amount_original_value: original_value
1483
+ currency_amount_original_unit: original_unit
1484
+ currency_amount_preferred_currency_unit: preferred_currency_unit
1485
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
1486
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
1487
+ }
1488
+ balances_available_to_send_balance: available_to_send_balance {
1489
+ __typename
1490
+ currency_amount_original_value: original_value
1491
+ currency_amount_original_unit: original_unit
1492
+ currency_amount_preferred_currency_unit: preferred_currency_unit
1493
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
1494
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
1495
+ }
1496
+ balances_available_to_withdraw_balance: available_to_withdraw_balance {
1497
+ __typename
1498
+ currency_amount_original_value: original_value
1499
+ currency_amount_original_unit: original_unit
1500
+ currency_amount_preferred_currency_unit: preferred_currency_unit
1501
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
1502
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
1503
+ }
1504
+ }
1370
1505
  lightspark_node_with_o_s_k_encrypted_signing_private_key: encrypted_signing_private_key {
1371
1506
  __typename
1372
1507
  secret_encrypted_value: encrypted_value
@@ -1472,6 +1607,33 @@ query FetchAccountToPaymentRequestsConnection($first: Int, $after: String, $afte
1472
1607
  }
1473
1608
  }
1474
1609
  lightspark_node_with_remote_signing_uma_prescreening_utxos: uma_prescreening_utxos
1610
+ lightspark_node_with_remote_signing_balances: balances {
1611
+ __typename
1612
+ balances_owned_balance: owned_balance {
1613
+ __typename
1614
+ currency_amount_original_value: original_value
1615
+ currency_amount_original_unit: original_unit
1616
+ currency_amount_preferred_currency_unit: preferred_currency_unit
1617
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
1618
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
1619
+ }
1620
+ balances_available_to_send_balance: available_to_send_balance {
1621
+ __typename
1622
+ currency_amount_original_value: original_value
1623
+ currency_amount_original_unit: original_unit
1624
+ currency_amount_preferred_currency_unit: preferred_currency_unit
1625
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
1626
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
1627
+ }
1628
+ balances_available_to_withdraw_balance: available_to_withdraw_balance {
1629
+ __typename
1630
+ currency_amount_original_value: original_value
1631
+ currency_amount_original_unit: original_unit
1632
+ currency_amount_preferred_currency_unit: preferred_currency_unit
1633
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
1634
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
1635
+ }
1636
+ }
1475
1637
  }
1476
1638
  }
1477
1639
  }
@@ -4,15 +4,25 @@ import type CurrencyAmount from "./CurrencyAmount.js";
4
4
  import { CurrencyAmountFromJson } from "./CurrencyAmount.js";
5
5
 
6
6
  type ChannelSnapshot = {
7
+ channelId: string;
8
+
9
+ timestamp: string;
10
+
7
11
  localBalance?: CurrencyAmount;
8
12
 
9
13
  localUnsettledBalance?: CurrencyAmount;
10
14
 
11
15
  localChannelReserve?: CurrencyAmount;
16
+
17
+ remoteBalance?: CurrencyAmount;
18
+
19
+ remoteUnsettledBalance?: CurrencyAmount;
12
20
  };
13
21
 
14
22
  export const ChannelSnapshotFromJson = (obj: any): ChannelSnapshot => {
15
23
  return {
24
+ channelId: obj["channel_snapshot_channel"].id,
25
+ timestamp: obj["channel_snapshot_timestamp"],
16
26
  localBalance: !!obj["channel_snapshot_local_balance"]
17
27
  ? CurrencyAmountFromJson(obj["channel_snapshot_local_balance"])
18
28
  : undefined,
@@ -22,12 +32,22 @@ export const ChannelSnapshotFromJson = (obj: any): ChannelSnapshot => {
22
32
  localChannelReserve: !!obj["channel_snapshot_local_channel_reserve"]
23
33
  ? CurrencyAmountFromJson(obj["channel_snapshot_local_channel_reserve"])
24
34
  : undefined,
35
+ remoteBalance: !!obj["channel_snapshot_remote_balance"]
36
+ ? CurrencyAmountFromJson(obj["channel_snapshot_remote_balance"])
37
+ : undefined,
38
+ remoteUnsettledBalance: !!obj["channel_snapshot_remote_unsettled_balance"]
39
+ ? CurrencyAmountFromJson(obj["channel_snapshot_remote_unsettled_balance"])
40
+ : undefined,
25
41
  } as ChannelSnapshot;
26
42
  };
27
43
 
28
44
  export const FRAGMENT = `
29
45
  fragment ChannelSnapshotFragment on ChannelSnapshot {
30
46
  __typename
47
+ channel_snapshot_channel: channel {
48
+ id
49
+ }
50
+ channel_snapshot_timestamp: timestamp
31
51
  channel_snapshot_local_balance: local_balance {
32
52
  __typename
33
53
  currency_amount_original_value: original_value
@@ -52,6 +72,22 @@ fragment ChannelSnapshotFragment on ChannelSnapshot {
52
72
  currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
53
73
  currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
54
74
  }
75
+ channel_snapshot_remote_balance: remote_balance {
76
+ __typename
77
+ currency_amount_original_value: original_value
78
+ currency_amount_original_unit: original_unit
79
+ currency_amount_preferred_currency_unit: preferred_currency_unit
80
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
81
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
82
+ }
83
+ channel_snapshot_remote_unsettled_balance: remote_unsettled_balance {
84
+ __typename
85
+ currency_amount_original_value: original_value
86
+ currency_amount_original_unit: original_unit
87
+ currency_amount_preferred_currency_unit: preferred_currency_unit
88
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
89
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
90
+ }
55
91
  }`;
56
92
 
57
93
  export default ChannelSnapshot;
@@ -455,6 +455,33 @@ fragment EntityFragment on Entity {
455
455
  }
456
456
  }
457
457
  lightspark_node_with_o_s_k_uma_prescreening_utxos: uma_prescreening_utxos
458
+ lightspark_node_with_o_s_k_balances: balances {
459
+ __typename
460
+ balances_owned_balance: owned_balance {
461
+ __typename
462
+ currency_amount_original_value: original_value
463
+ currency_amount_original_unit: original_unit
464
+ currency_amount_preferred_currency_unit: preferred_currency_unit
465
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
466
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
467
+ }
468
+ balances_available_to_send_balance: available_to_send_balance {
469
+ __typename
470
+ currency_amount_original_value: original_value
471
+ currency_amount_original_unit: original_unit
472
+ currency_amount_preferred_currency_unit: preferred_currency_unit
473
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
474
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
475
+ }
476
+ balances_available_to_withdraw_balance: available_to_withdraw_balance {
477
+ __typename
478
+ currency_amount_original_value: original_value
479
+ currency_amount_original_unit: original_unit
480
+ currency_amount_preferred_currency_unit: preferred_currency_unit
481
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
482
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
483
+ }
484
+ }
458
485
  lightspark_node_with_o_s_k_encrypted_signing_private_key: encrypted_signing_private_key {
459
486
  __typename
460
487
  secret_encrypted_value: encrypted_value
@@ -560,6 +587,33 @@ fragment EntityFragment on Entity {
560
587
  }
561
588
  }
562
589
  lightspark_node_with_remote_signing_uma_prescreening_utxos: uma_prescreening_utxos
590
+ lightspark_node_with_remote_signing_balances: balances {
591
+ __typename
592
+ balances_owned_balance: owned_balance {
593
+ __typename
594
+ currency_amount_original_value: original_value
595
+ currency_amount_original_unit: original_unit
596
+ currency_amount_preferred_currency_unit: preferred_currency_unit
597
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
598
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
599
+ }
600
+ balances_available_to_send_balance: available_to_send_balance {
601
+ __typename
602
+ currency_amount_original_value: original_value
603
+ currency_amount_original_unit: original_unit
604
+ currency_amount_preferred_currency_unit: preferred_currency_unit
605
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
606
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
607
+ }
608
+ balances_available_to_withdraw_balance: available_to_withdraw_balance {
609
+ __typename
610
+ currency_amount_original_value: original_value
611
+ currency_amount_original_unit: original_unit
612
+ currency_amount_preferred_currency_unit: preferred_currency_unit
613
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
614
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
615
+ }
616
+ }
563
617
  }
564
618
  }
565
619
  }
@@ -672,6 +726,33 @@ fragment EntityFragment on Entity {
672
726
  }
673
727
  }
674
728
  lightspark_node_with_o_s_k_uma_prescreening_utxos: uma_prescreening_utxos
729
+ lightspark_node_with_o_s_k_balances: balances {
730
+ __typename
731
+ balances_owned_balance: owned_balance {
732
+ __typename
733
+ currency_amount_original_value: original_value
734
+ currency_amount_original_unit: original_unit
735
+ currency_amount_preferred_currency_unit: preferred_currency_unit
736
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
737
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
738
+ }
739
+ balances_available_to_send_balance: available_to_send_balance {
740
+ __typename
741
+ currency_amount_original_value: original_value
742
+ currency_amount_original_unit: original_unit
743
+ currency_amount_preferred_currency_unit: preferred_currency_unit
744
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
745
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
746
+ }
747
+ balances_available_to_withdraw_balance: available_to_withdraw_balance {
748
+ __typename
749
+ currency_amount_original_value: original_value
750
+ currency_amount_original_unit: original_unit
751
+ currency_amount_preferred_currency_unit: preferred_currency_unit
752
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
753
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
754
+ }
755
+ }
675
756
  lightspark_node_with_o_s_k_encrypted_signing_private_key: encrypted_signing_private_key {
676
757
  __typename
677
758
  secret_encrypted_value: encrypted_value
@@ -777,6 +858,33 @@ fragment EntityFragment on Entity {
777
858
  }
778
859
  }
779
860
  lightspark_node_with_remote_signing_uma_prescreening_utxos: uma_prescreening_utxos
861
+ lightspark_node_with_remote_signing_balances: balances {
862
+ __typename
863
+ balances_owned_balance: owned_balance {
864
+ __typename
865
+ currency_amount_original_value: original_value
866
+ currency_amount_original_unit: original_unit
867
+ currency_amount_preferred_currency_unit: preferred_currency_unit
868
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
869
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
870
+ }
871
+ balances_available_to_send_balance: available_to_send_balance {
872
+ __typename
873
+ currency_amount_original_value: original_value
874
+ currency_amount_original_unit: original_unit
875
+ currency_amount_preferred_currency_unit: preferred_currency_unit
876
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
877
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
878
+ }
879
+ balances_available_to_withdraw_balance: available_to_withdraw_balance {
880
+ __typename
881
+ currency_amount_original_value: original_value
882
+ currency_amount_original_unit: original_unit
883
+ currency_amount_preferred_currency_unit: preferred_currency_unit
884
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
885
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
886
+ }
887
+ }
780
888
  }
781
889
  ... on OutgoingPayment {
782
890
  __typename
@@ -939,6 +1047,33 @@ fragment EntityFragment on Entity {
939
1047
  }
940
1048
  }
941
1049
  lightspark_node_with_o_s_k_uma_prescreening_utxos: uma_prescreening_utxos
1050
+ lightspark_node_with_o_s_k_balances: balances {
1051
+ __typename
1052
+ balances_owned_balance: owned_balance {
1053
+ __typename
1054
+ currency_amount_original_value: original_value
1055
+ currency_amount_original_unit: original_unit
1056
+ currency_amount_preferred_currency_unit: preferred_currency_unit
1057
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
1058
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
1059
+ }
1060
+ balances_available_to_send_balance: available_to_send_balance {
1061
+ __typename
1062
+ currency_amount_original_value: original_value
1063
+ currency_amount_original_unit: original_unit
1064
+ currency_amount_preferred_currency_unit: preferred_currency_unit
1065
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
1066
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
1067
+ }
1068
+ balances_available_to_withdraw_balance: available_to_withdraw_balance {
1069
+ __typename
1070
+ currency_amount_original_value: original_value
1071
+ currency_amount_original_unit: original_unit
1072
+ currency_amount_preferred_currency_unit: preferred_currency_unit
1073
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
1074
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
1075
+ }
1076
+ }
942
1077
  lightspark_node_with_o_s_k_encrypted_signing_private_key: encrypted_signing_private_key {
943
1078
  __typename
944
1079
  secret_encrypted_value: encrypted_value
@@ -1044,6 +1179,33 @@ fragment EntityFragment on Entity {
1044
1179
  }
1045
1180
  }
1046
1181
  lightspark_node_with_remote_signing_uma_prescreening_utxos: uma_prescreening_utxos
1182
+ lightspark_node_with_remote_signing_balances: balances {
1183
+ __typename
1184
+ balances_owned_balance: owned_balance {
1185
+ __typename
1186
+ currency_amount_original_value: original_value
1187
+ currency_amount_original_unit: original_unit
1188
+ currency_amount_preferred_currency_unit: preferred_currency_unit
1189
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
1190
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
1191
+ }
1192
+ balances_available_to_send_balance: available_to_send_balance {
1193
+ __typename
1194
+ currency_amount_original_value: original_value
1195
+ currency_amount_original_unit: original_unit
1196
+ currency_amount_preferred_currency_unit: preferred_currency_unit
1197
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
1198
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
1199
+ }
1200
+ balances_available_to_withdraw_balance: available_to_withdraw_balance {
1201
+ __typename
1202
+ currency_amount_original_value: original_value
1203
+ currency_amount_original_unit: original_unit
1204
+ currency_amount_preferred_currency_unit: preferred_currency_unit
1205
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
1206
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
1207
+ }
1208
+ }
1047
1209
  }
1048
1210
  }
1049
1211
  }
@@ -1097,6 +1259,10 @@ fragment EntityFragment on Entity {
1097
1259
  }
1098
1260
  outgoing_payment_attempt_channel_snapshot: channel_snapshot {
1099
1261
  __typename
1262
+ channel_snapshot_channel: channel {
1263
+ id
1264
+ }
1265
+ channel_snapshot_timestamp: timestamp
1100
1266
  channel_snapshot_local_balance: local_balance {
1101
1267
  __typename
1102
1268
  currency_amount_original_value: original_value
@@ -1121,6 +1287,22 @@ fragment EntityFragment on Entity {
1121
1287
  currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
1122
1288
  currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
1123
1289
  }
1290
+ channel_snapshot_remote_balance: remote_balance {
1291
+ __typename
1292
+ currency_amount_original_value: original_value
1293
+ currency_amount_original_unit: original_unit
1294
+ currency_amount_preferred_currency_unit: preferred_currency_unit
1295
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
1296
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
1297
+ }
1298
+ channel_snapshot_remote_unsettled_balance: remote_unsettled_balance {
1299
+ __typename
1300
+ currency_amount_original_value: original_value
1301
+ currency_amount_original_unit: original_unit
1302
+ currency_amount_preferred_currency_unit: preferred_currency_unit
1303
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
1304
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
1305
+ }
1124
1306
  }
1125
1307
  }
1126
1308
  ... on RoutingTransaction {
@@ -56,6 +56,8 @@ export enum HtlcAttemptFailureCode {
56
56
 
57
57
  INVALID_ONION_PAYLOAD = "INVALID_ONION_PAYLOAD",
58
58
 
59
+ INVALID_ONION_BLINDING = "INVALID_ONION_BLINDING",
60
+
59
61
  INTERNAL_FAILURE = "INTERNAL_FAILURE",
60
62
 
61
63
  UNKNOWN_FAILURE = "UNKNOWN_FAILURE",
@@ -188,6 +188,33 @@ fragment InvoiceFragment on Invoice {
188
188
  }
189
189
  }
190
190
  lightspark_node_with_o_s_k_uma_prescreening_utxos: uma_prescreening_utxos
191
+ lightspark_node_with_o_s_k_balances: balances {
192
+ __typename
193
+ balances_owned_balance: owned_balance {
194
+ __typename
195
+ currency_amount_original_value: original_value
196
+ currency_amount_original_unit: original_unit
197
+ currency_amount_preferred_currency_unit: preferred_currency_unit
198
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
199
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
200
+ }
201
+ balances_available_to_send_balance: available_to_send_balance {
202
+ __typename
203
+ currency_amount_original_value: original_value
204
+ currency_amount_original_unit: original_unit
205
+ currency_amount_preferred_currency_unit: preferred_currency_unit
206
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
207
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
208
+ }
209
+ balances_available_to_withdraw_balance: available_to_withdraw_balance {
210
+ __typename
211
+ currency_amount_original_value: original_value
212
+ currency_amount_original_unit: original_unit
213
+ currency_amount_preferred_currency_unit: preferred_currency_unit
214
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
215
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
216
+ }
217
+ }
191
218
  lightspark_node_with_o_s_k_encrypted_signing_private_key: encrypted_signing_private_key {
192
219
  __typename
193
220
  secret_encrypted_value: encrypted_value
@@ -293,6 +320,33 @@ fragment InvoiceFragment on Invoice {
293
320
  }
294
321
  }
295
322
  lightspark_node_with_remote_signing_uma_prescreening_utxos: uma_prescreening_utxos
323
+ lightspark_node_with_remote_signing_balances: balances {
324
+ __typename
325
+ balances_owned_balance: owned_balance {
326
+ __typename
327
+ currency_amount_original_value: original_value
328
+ currency_amount_original_unit: original_unit
329
+ currency_amount_preferred_currency_unit: preferred_currency_unit
330
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
331
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
332
+ }
333
+ balances_available_to_send_balance: available_to_send_balance {
334
+ __typename
335
+ currency_amount_original_value: original_value
336
+ currency_amount_original_unit: original_unit
337
+ currency_amount_preferred_currency_unit: preferred_currency_unit
338
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
339
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
340
+ }
341
+ balances_available_to_withdraw_balance: available_to_withdraw_balance {
342
+ __typename
343
+ currency_amount_original_value: original_value
344
+ currency_amount_original_unit: original_unit
345
+ currency_amount_preferred_currency_unit: preferred_currency_unit
346
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
347
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
348
+ }
349
+ }
296
350
  }
297
351
  }
298
352
  }