@lightsparkdev/lightspark-sdk 1.1.6 → 1.2.0

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.
Files changed (123) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/{chunk-7UNNCH5S.js → chunk-VTPDR6P4.js} +1270 -342
  3. package/dist/{index-5235e43b.d.ts → index-f040db9f.d.ts} +707 -407
  4. package/dist/index.cjs +1247 -319
  5. package/dist/index.d.ts +2 -2
  6. package/dist/index.js +7 -7
  7. package/dist/objects/index.cjs +1180 -306
  8. package/dist/objects/index.d.ts +1 -1
  9. package/dist/objects/index.js +5 -5
  10. package/package.json +2 -2
  11. package/src/objects/Account.ts +175 -2
  12. package/src/objects/AccountToApiTokensConnection.ts +16 -5
  13. package/src/objects/AccountToChannelsConnection.ts +9 -0
  14. package/src/objects/AccountToNodesConnection.ts +19 -5
  15. package/src/objects/AccountToPaymentRequestsConnection.ts +21 -5
  16. package/src/objects/AccountToTransactionsConnection.ts +33 -9
  17. package/src/objects/AccountToWalletsConnection.ts +13 -4
  18. package/src/objects/ApiToken.ts +13 -3
  19. package/src/objects/Balances.ts +17 -3
  20. package/src/objects/BlockchainBalance.ts +34 -9
  21. package/src/objects/Channel.ts +61 -16
  22. package/src/objects/ChannelClosingTransaction.ts +81 -61
  23. package/src/objects/ChannelFees.ts +16 -5
  24. package/src/objects/ChannelOpeningTransaction.ts +81 -61
  25. package/src/objects/ChannelSnapshot.ts +66 -6
  26. package/src/objects/ChannelToTransactionsConnection.ts +26 -6
  27. package/src/objects/Connection.ts +205 -10
  28. package/src/objects/CreateApiTokenInput.ts +8 -2
  29. package/src/objects/CreateApiTokenOutput.ts +9 -3
  30. package/src/objects/CreateInvoiceInput.ts +14 -5
  31. package/src/objects/CreateInvoiceOutput.ts +7 -2
  32. package/src/objects/CreateLnurlInvoiceInput.ts +13 -3
  33. package/src/objects/CreateNodeWalletAddressInput.ts +9 -2
  34. package/src/objects/CreateNodeWalletAddressOutput.ts +10 -2
  35. package/src/objects/CreateTestModeInvoiceInput.ts +14 -4
  36. package/src/objects/CreateTestModeInvoiceOutput.ts +10 -2
  37. package/src/objects/CreateTestModePaymentInput.ts +12 -3
  38. package/src/objects/CreateTestModePaymentoutput.ts +12 -2
  39. package/src/objects/CreateUmaInvoiceInput.ts +13 -3
  40. package/src/objects/CurrencyAmount.ts +13 -2
  41. package/src/objects/DeclineToSignMessagesInput.ts +9 -2
  42. package/src/objects/DeclineToSignMessagesOutput.ts +15 -3
  43. package/src/objects/DeleteApiTokenInput.ts +7 -2
  44. package/src/objects/DeleteApiTokenOutput.ts +7 -2
  45. package/src/objects/Deposit.ts +77 -61
  46. package/src/objects/Entity.ts +184 -2
  47. package/src/objects/FeeEstimate.ts +12 -3
  48. package/src/objects/FundNodeInput.ts +9 -3
  49. package/src/objects/FundNodeOutput.ts +11 -3
  50. package/src/objects/GraphNode.ts +21 -5
  51. package/src/objects/Hop.ts +27 -9
  52. package/src/objects/HtlcAttemptFailureCode.ts +2 -0
  53. package/src/objects/IdAndSignature.ts +8 -2
  54. package/src/objects/IncomingPayment.ts +33 -7
  55. package/src/objects/IncomingPaymentAttempt.ts +21 -5
  56. package/src/objects/IncomingPaymentToAttemptsConnection.ts +21 -5
  57. package/src/objects/Invoice.ts +91 -24
  58. package/src/objects/InvoiceData.ts +75 -6
  59. package/src/objects/LightningFeeEstimateForInvoiceInput.ts +13 -3
  60. package/src/objects/LightningFeeEstimateForNodeInput.ts +12 -2
  61. package/src/objects/LightningFeeEstimateOutput.ts +15 -3
  62. package/src/objects/LightningTransaction.ts +171 -28
  63. package/src/objects/LightsparkNode.ts +311 -208
  64. package/src/objects/LightsparkNodeOwner.ts +35 -4
  65. package/src/objects/LightsparkNodeToChannelsConnection.ts +17 -4
  66. package/src/objects/LightsparkNodeWithOSK.ts +97 -15
  67. package/src/objects/LightsparkNodeWithRemoteSigning.ts +93 -13
  68. package/src/objects/Node.ts +269 -67
  69. package/src/objects/NodeAddress.ts +8 -2
  70. package/src/objects/NodeToAddressesConnection.ts +13 -3
  71. package/src/objects/OnChainTransaction.ts +156 -44
  72. package/src/objects/OutgoingPayment.ts +127 -14
  73. package/src/objects/OutgoingPaymentAttempt.ts +57 -8
  74. package/src/objects/OutgoingPaymentAttemptToHopsConnection.ts +18 -5
  75. package/src/objects/OutgoingPaymentToAttemptsConnection.ts +17 -4
  76. package/src/objects/OutgoingPaymentsForInvoiceQueryInput.ts +12 -3
  77. package/src/objects/OutgoingPaymentsForInvoiceQueryOutput.ts +11 -2
  78. package/src/objects/PageInfo.ts +14 -6
  79. package/src/objects/PayInvoiceInput.ts +12 -3
  80. package/src/objects/PayInvoiceOutput.ts +7 -2
  81. package/src/objects/PayUmaInvoiceInput.ts +12 -3
  82. package/src/objects/PaymentRequest.ts +81 -5
  83. package/src/objects/PaymentRequestData.ts +81 -4
  84. package/src/objects/PostTransactionData.ts +12 -3
  85. package/src/objects/RegisterPaymentInput.ts +10 -2
  86. package/src/objects/RegisterPaymentOutput.ts +9 -2
  87. package/src/objects/ReleaseChannelPerCommitmentSecretInput.ts +13 -2
  88. package/src/objects/ReleaseChannelPerCommitmentSecretOutput.ts +9 -2
  89. package/src/objects/ReleasePaymentPreimageInput.ts +10 -2
  90. package/src/objects/ReleasePaymentPreimageOutput.ts +9 -2
  91. package/src/objects/RequestWithdrawalInput.ts +12 -2
  92. package/src/objects/RequestWithdrawalOutput.ts +9 -2
  93. package/src/objects/RichText.ts +7 -2
  94. package/src/objects/RoutingTransaction.ts +62 -41
  95. package/src/objects/ScreenNodeInput.ts +8 -2
  96. package/src/objects/ScreenNodeOutput.ts +7 -2
  97. package/src/objects/Secret.ts +8 -2
  98. package/src/objects/SendPaymentInput.ts +11 -2
  99. package/src/objects/SendPaymentOutput.ts +7 -2
  100. package/src/objects/SetInvoicePaymentHashInput.ts +12 -3
  101. package/src/objects/SetInvoicePaymentHashOutput.ts +9 -2
  102. package/src/objects/SignInvoiceInput.ts +9 -2
  103. package/src/objects/SignInvoiceOutput.ts +7 -2
  104. package/src/objects/SignMessagesInput.ts +13 -3
  105. package/src/objects/SignMessagesOutput.ts +13 -3
  106. package/src/objects/Signable.ts +10 -3
  107. package/src/objects/SignablePayload.ts +18 -5
  108. package/src/objects/Transaction.ts +260 -9
  109. package/src/objects/TransactionFailures.ts +11 -4
  110. package/src/objects/UpdateChannelPerCommitmentPointInput.ts +13 -2
  111. package/src/objects/UpdateChannelPerCommitmentPointOutput.ts +9 -2
  112. package/src/objects/UpdateNodeSharedSecretInput.ts +10 -2
  113. package/src/objects/UpdateNodeSharedSecretOutput.ts +9 -2
  114. package/src/objects/Wallet.ts +130 -5
  115. package/src/objects/WalletToPaymentRequestsConnection.ts +21 -5
  116. package/src/objects/WalletToTransactionsConnection.ts +16 -5
  117. package/src/objects/Withdrawal.ts +77 -61
  118. package/src/objects/WithdrawalRequest.ts +25 -4
  119. package/src/objects/WithdrawalRequestToChannelClosingTransactionsConnection.ts +19 -4
  120. package/src/objects/WithdrawalRequestToChannelOpeningTransactionsConnection.ts +19 -4
  121. package/src/objects/index.ts +5 -2
  122. package/src/tests/integration/client.test.ts +46 -7
  123. package/src/tests/serialization.test.ts +18 -0
@@ -3,24 +3,34 @@
3
3
  import { type Query } from "@lightsparkdev/core";
4
4
  import autoBind from "auto-bind";
5
5
  import type LightsparkClient from "../client.js";
6
+ import type Balances from "./Balances.js";
7
+ import { BalancesFromJson, BalancesToJson } from "./Balances.js";
6
8
  import BitcoinNetwork from "./BitcoinNetwork.js";
7
9
  import type BlockchainBalance from "./BlockchainBalance.js";
8
- import { BlockchainBalanceFromJson } from "./BlockchainBalance.js";
10
+ import {
11
+ BlockchainBalanceFromJson,
12
+ BlockchainBalanceToJson,
13
+ } from "./BlockchainBalance.js";
9
14
  import type ChannelStatus from "./ChannelStatus.js";
10
15
  import type CurrencyAmount from "./CurrencyAmount.js";
11
- import { CurrencyAmountFromJson } from "./CurrencyAmount.js";
16
+ import {
17
+ CurrencyAmountFromJson,
18
+ CurrencyAmountToJson,
19
+ } from "./CurrencyAmount.js";
20
+ import type Entity from "./Entity.js";
12
21
  import type LightsparkNode from "./LightsparkNode.js";
13
22
  import LightsparkNodeStatus from "./LightsparkNodeStatus.js";
14
23
  import type LightsparkNodeToChannelsConnection from "./LightsparkNodeToChannelsConnection.js";
15
24
  import { LightsparkNodeToChannelsConnectionFromJson } from "./LightsparkNodeToChannelsConnection.js";
25
+ import type Node from "./Node.js";
16
26
  import type NodeAddressType from "./NodeAddressType.js";
17
27
  import type NodeToAddressesConnection from "./NodeToAddressesConnection.js";
18
28
  import { NodeToAddressesConnectionFromJson } from "./NodeToAddressesConnection.js";
19
29
  import type Secret from "./Secret.js";
20
- import { SecretFromJson } from "./Secret.js";
30
+ import { SecretFromJson, SecretToJson } from "./Secret.js";
21
31
 
22
32
  /** This is a Lightspark node with OSK. **/
23
- class LightsparkNodeWithOSK implements LightsparkNode {
33
+ class LightsparkNodeWithOSK implements LightsparkNode, Node, Entity {
24
34
  constructor(
25
35
  public readonly id: string,
26
36
  public readonly createdAt: string,
@@ -30,17 +40,18 @@ class LightsparkNodeWithOSK implements LightsparkNode {
30
40
  public readonly ownerId: string,
31
41
  public readonly umaPrescreeningUtxos: string[],
32
42
  public readonly typename: string,
33
- public readonly alias?: string,
34
- public readonly color?: string,
35
- public readonly conductivity?: number,
36
- public readonly publicKey?: string,
37
- public readonly status?: LightsparkNodeStatus,
38
- public readonly totalBalance?: CurrencyAmount,
39
- public readonly totalLocalBalance?: CurrencyAmount,
40
- public readonly localBalance?: CurrencyAmount,
41
- public readonly remoteBalance?: CurrencyAmount,
42
- public readonly blockchainBalance?: BlockchainBalance,
43
- public readonly encryptedSigningPrivateKey?: Secret,
43
+ public readonly alias?: string | undefined,
44
+ public readonly color?: string | undefined,
45
+ public readonly conductivity?: number | undefined,
46
+ public readonly publicKey?: string | undefined,
47
+ public readonly status?: LightsparkNodeStatus | undefined,
48
+ public readonly totalBalance?: CurrencyAmount | undefined,
49
+ public readonly totalLocalBalance?: CurrencyAmount | undefined,
50
+ public readonly localBalance?: CurrencyAmount | undefined,
51
+ public readonly remoteBalance?: CurrencyAmount | undefined,
52
+ public readonly blockchainBalance?: BlockchainBalance | undefined,
53
+ public readonly balances?: Balances | undefined,
54
+ public readonly encryptedSigningPrivateKey?: Secret | undefined,
44
55
  ) {
45
56
  autoBind(this);
46
57
  }
@@ -229,6 +240,47 @@ ${FRAGMENT}
229
240
  LightsparkNodeWithOSKFromJson(data.entity),
230
241
  };
231
242
  }
243
+
244
+ public toJson() {
245
+ return {
246
+ __typename: "LightsparkNodeWithOSK",
247
+ lightspark_node_with_o_s_k_id: this.id,
248
+ lightspark_node_with_o_s_k_created_at: this.createdAt,
249
+ lightspark_node_with_o_s_k_updated_at: this.updatedAt,
250
+ lightspark_node_with_o_s_k_alias: this.alias,
251
+ lightspark_node_with_o_s_k_bitcoin_network: this.bitcoinNetwork,
252
+ lightspark_node_with_o_s_k_color: this.color,
253
+ lightspark_node_with_o_s_k_conductivity: this.conductivity,
254
+ lightspark_node_with_o_s_k_display_name: this.displayName,
255
+ lightspark_node_with_o_s_k_public_key: this.publicKey,
256
+ lightspark_node_with_o_s_k_owner: { id: this.ownerId },
257
+ lightspark_node_with_o_s_k_status: this.status,
258
+ lightspark_node_with_o_s_k_total_balance: this.totalBalance
259
+ ? CurrencyAmountToJson(this.totalBalance)
260
+ : undefined,
261
+ lightspark_node_with_o_s_k_total_local_balance: this.totalLocalBalance
262
+ ? CurrencyAmountToJson(this.totalLocalBalance)
263
+ : undefined,
264
+ lightspark_node_with_o_s_k_local_balance: this.localBalance
265
+ ? CurrencyAmountToJson(this.localBalance)
266
+ : undefined,
267
+ lightspark_node_with_o_s_k_remote_balance: this.remoteBalance
268
+ ? CurrencyAmountToJson(this.remoteBalance)
269
+ : undefined,
270
+ lightspark_node_with_o_s_k_blockchain_balance: this.blockchainBalance
271
+ ? BlockchainBalanceToJson(this.blockchainBalance)
272
+ : undefined,
273
+ lightspark_node_with_o_s_k_uma_prescreening_utxos:
274
+ this.umaPrescreeningUtxos,
275
+ lightspark_node_with_o_s_k_balances: this.balances
276
+ ? BalancesToJson(this.balances)
277
+ : undefined,
278
+ lightspark_node_with_o_s_k_encrypted_signing_private_key: this
279
+ .encryptedSigningPrivateKey
280
+ ? SecretToJson(this.encryptedSigningPrivateKey)
281
+ : undefined,
282
+ };
283
+ }
232
284
  }
233
285
 
234
286
  export const LightsparkNodeWithOSKFromJson = (
@@ -271,6 +323,9 @@ export const LightsparkNodeWithOSKFromJson = (
271
323
  obj["lightspark_node_with_o_s_k_blockchain_balance"],
272
324
  )
273
325
  : undefined,
326
+ !!obj["lightspark_node_with_o_s_k_balances"]
327
+ ? BalancesFromJson(obj["lightspark_node_with_o_s_k_balances"])
328
+ : undefined,
274
329
  !!obj["lightspark_node_with_o_s_k_encrypted_signing_private_key"]
275
330
  ? SecretFromJson(
276
331
  obj["lightspark_node_with_o_s_k_encrypted_signing_private_key"],
@@ -379,6 +434,33 @@ fragment LightsparkNodeWithOSKFragment on LightsparkNodeWithOSK {
379
434
  }
380
435
  }
381
436
  lightspark_node_with_o_s_k_uma_prescreening_utxos: uma_prescreening_utxos
437
+ lightspark_node_with_o_s_k_balances: balances {
438
+ __typename
439
+ balances_owned_balance: owned_balance {
440
+ __typename
441
+ currency_amount_original_value: original_value
442
+ currency_amount_original_unit: original_unit
443
+ currency_amount_preferred_currency_unit: preferred_currency_unit
444
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
445
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
446
+ }
447
+ balances_available_to_send_balance: available_to_send_balance {
448
+ __typename
449
+ currency_amount_original_value: original_value
450
+ currency_amount_original_unit: original_unit
451
+ currency_amount_preferred_currency_unit: preferred_currency_unit
452
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
453
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
454
+ }
455
+ balances_available_to_withdraw_balance: available_to_withdraw_balance {
456
+ __typename
457
+ currency_amount_original_value: original_value
458
+ currency_amount_original_unit: original_unit
459
+ currency_amount_preferred_currency_unit: preferred_currency_unit
460
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
461
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
462
+ }
463
+ }
382
464
  lightspark_node_with_o_s_k_encrypted_signing_private_key: encrypted_signing_private_key {
383
465
  __typename
384
466
  secret_encrypted_value: encrypted_value
@@ -3,22 +3,32 @@
3
3
  import { type Query } from "@lightsparkdev/core";
4
4
  import autoBind from "auto-bind";
5
5
  import type LightsparkClient from "../client.js";
6
+ import type Balances from "./Balances.js";
7
+ import { BalancesFromJson, BalancesToJson } from "./Balances.js";
6
8
  import BitcoinNetwork from "./BitcoinNetwork.js";
7
9
  import type BlockchainBalance from "./BlockchainBalance.js";
8
- import { BlockchainBalanceFromJson } from "./BlockchainBalance.js";
10
+ import {
11
+ BlockchainBalanceFromJson,
12
+ BlockchainBalanceToJson,
13
+ } from "./BlockchainBalance.js";
9
14
  import type ChannelStatus from "./ChannelStatus.js";
10
15
  import type CurrencyAmount from "./CurrencyAmount.js";
11
- import { CurrencyAmountFromJson } from "./CurrencyAmount.js";
16
+ import {
17
+ CurrencyAmountFromJson,
18
+ CurrencyAmountToJson,
19
+ } from "./CurrencyAmount.js";
20
+ import type Entity from "./Entity.js";
12
21
  import type LightsparkNode from "./LightsparkNode.js";
13
22
  import LightsparkNodeStatus from "./LightsparkNodeStatus.js";
14
23
  import type LightsparkNodeToChannelsConnection from "./LightsparkNodeToChannelsConnection.js";
15
24
  import { LightsparkNodeToChannelsConnectionFromJson } from "./LightsparkNodeToChannelsConnection.js";
25
+ import type Node from "./Node.js";
16
26
  import type NodeAddressType from "./NodeAddressType.js";
17
27
  import type NodeToAddressesConnection from "./NodeToAddressesConnection.js";
18
28
  import { NodeToAddressesConnectionFromJson } from "./NodeToAddressesConnection.js";
19
29
 
20
30
  /** This is a Lightspark node with remote signing. **/
21
- class LightsparkNodeWithRemoteSigning implements LightsparkNode {
31
+ class LightsparkNodeWithRemoteSigning implements LightsparkNode, Node, Entity {
22
32
  constructor(
23
33
  public readonly id: string,
24
34
  public readonly createdAt: string,
@@ -28,16 +38,17 @@ class LightsparkNodeWithRemoteSigning implements LightsparkNode {
28
38
  public readonly ownerId: string,
29
39
  public readonly umaPrescreeningUtxos: string[],
30
40
  public readonly typename: string,
31
- public readonly alias?: string,
32
- public readonly color?: string,
33
- public readonly conductivity?: number,
34
- public readonly publicKey?: string,
35
- public readonly status?: LightsparkNodeStatus,
36
- public readonly totalBalance?: CurrencyAmount,
37
- public readonly totalLocalBalance?: CurrencyAmount,
38
- public readonly localBalance?: CurrencyAmount,
39
- public readonly remoteBalance?: CurrencyAmount,
40
- public readonly blockchainBalance?: BlockchainBalance,
41
+ public readonly alias?: string | undefined,
42
+ public readonly color?: string | undefined,
43
+ public readonly conductivity?: number | undefined,
44
+ public readonly publicKey?: string | undefined,
45
+ public readonly status?: LightsparkNodeStatus | undefined,
46
+ public readonly totalBalance?: CurrencyAmount | undefined,
47
+ public readonly totalLocalBalance?: CurrencyAmount | undefined,
48
+ public readonly localBalance?: CurrencyAmount | undefined,
49
+ public readonly remoteBalance?: CurrencyAmount | undefined,
50
+ public readonly blockchainBalance?: BlockchainBalance | undefined,
51
+ public readonly balances?: Balances | undefined,
41
52
  ) {
42
53
  autoBind(this);
43
54
  }
@@ -226,6 +237,45 @@ ${FRAGMENT}
226
237
  LightsparkNodeWithRemoteSigningFromJson(data.entity),
227
238
  };
228
239
  }
240
+
241
+ public toJson() {
242
+ return {
243
+ __typename: "LightsparkNodeWithRemoteSigning",
244
+ lightspark_node_with_remote_signing_id: this.id,
245
+ lightspark_node_with_remote_signing_created_at: this.createdAt,
246
+ lightspark_node_with_remote_signing_updated_at: this.updatedAt,
247
+ lightspark_node_with_remote_signing_alias: this.alias,
248
+ lightspark_node_with_remote_signing_bitcoin_network: this.bitcoinNetwork,
249
+ lightspark_node_with_remote_signing_color: this.color,
250
+ lightspark_node_with_remote_signing_conductivity: this.conductivity,
251
+ lightspark_node_with_remote_signing_display_name: this.displayName,
252
+ lightspark_node_with_remote_signing_public_key: this.publicKey,
253
+ lightspark_node_with_remote_signing_owner: { id: this.ownerId },
254
+ lightspark_node_with_remote_signing_status: this.status,
255
+ lightspark_node_with_remote_signing_total_balance: this.totalBalance
256
+ ? CurrencyAmountToJson(this.totalBalance)
257
+ : undefined,
258
+ lightspark_node_with_remote_signing_total_local_balance: this
259
+ .totalLocalBalance
260
+ ? CurrencyAmountToJson(this.totalLocalBalance)
261
+ : undefined,
262
+ lightspark_node_with_remote_signing_local_balance: this.localBalance
263
+ ? CurrencyAmountToJson(this.localBalance)
264
+ : undefined,
265
+ lightspark_node_with_remote_signing_remote_balance: this.remoteBalance
266
+ ? CurrencyAmountToJson(this.remoteBalance)
267
+ : undefined,
268
+ lightspark_node_with_remote_signing_blockchain_balance: this
269
+ .blockchainBalance
270
+ ? BlockchainBalanceToJson(this.blockchainBalance)
271
+ : undefined,
272
+ lightspark_node_with_remote_signing_uma_prescreening_utxos:
273
+ this.umaPrescreeningUtxos,
274
+ lightspark_node_with_remote_signing_balances: this.balances
275
+ ? BalancesToJson(this.balances)
276
+ : undefined,
277
+ };
278
+ }
229
279
  }
230
280
 
231
281
  export const LightsparkNodeWithRemoteSigningFromJson = (
@@ -276,6 +326,9 @@ export const LightsparkNodeWithRemoteSigningFromJson = (
276
326
  obj["lightspark_node_with_remote_signing_blockchain_balance"],
277
327
  )
278
328
  : undefined,
329
+ !!obj["lightspark_node_with_remote_signing_balances"]
330
+ ? BalancesFromJson(obj["lightspark_node_with_remote_signing_balances"])
331
+ : undefined,
279
332
  );
280
333
  };
281
334
 
@@ -379,6 +432,33 @@ fragment LightsparkNodeWithRemoteSigningFragment on LightsparkNodeWithRemoteSign
379
432
  }
380
433
  }
381
434
  lightspark_node_with_remote_signing_uma_prescreening_utxos: uma_prescreening_utxos
435
+ lightspark_node_with_remote_signing_balances: balances {
436
+ __typename
437
+ balances_owned_balance: owned_balance {
438
+ __typename
439
+ currency_amount_original_value: original_value
440
+ currency_amount_original_unit: original_unit
441
+ currency_amount_preferred_currency_unit: preferred_currency_unit
442
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
443
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
444
+ }
445
+ balances_available_to_send_balance: available_to_send_balance {
446
+ __typename
447
+ currency_amount_original_value: original_value
448
+ currency_amount_original_unit: original_unit
449
+ currency_amount_preferred_currency_unit: preferred_currency_unit
450
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
451
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
452
+ }
453
+ balances_available_to_withdraw_balance: available_to_withdraw_balance {
454
+ __typename
455
+ currency_amount_original_value: original_value
456
+ currency_amount_original_unit: original_unit
457
+ currency_amount_preferred_currency_unit: preferred_currency_unit
458
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
459
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
460
+ }
461
+ }
382
462
  }`;
383
463
 
384
464
  export default LightsparkNodeWithRemoteSigning;