@lightsparkdev/lightspark-sdk 0.4.10 → 1.0.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 (125) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/README.md +1 -1
  3. package/dist/{chunk-NXUFC5J7.js → chunk-LZC5C5NI.js} +2908 -635
  4. package/dist/{index-3ffe9e7b.d.ts → index-09d4ac20.d.ts} +373 -62
  5. package/dist/index.cjs +3395 -842
  6. package/dist/index.d.ts +2 -2
  7. package/dist/index.js +390 -94
  8. package/dist/objects/index.cjs +2735 -553
  9. package/dist/objects/index.d.ts +1 -1
  10. package/dist/objects/index.js +17 -5
  11. package/package.json +12 -9
  12. package/src/NodeKeyLoaderCache.ts +87 -0
  13. package/src/SigningKeyLoader.ts +177 -0
  14. package/src/auth/AccountTokenAuthProvider.ts +4 -4
  15. package/src/client.ts +209 -118
  16. package/src/graphql/CreateInvoice.ts +3 -2
  17. package/src/graphql/CreateLnurlInvoice.ts +2 -0
  18. package/src/graphql/CreateUmaInvoice.ts +23 -0
  19. package/src/graphql/MultiNodeDashboard.ts +0 -3
  20. package/src/graphql/PayUmaInvoice.ts +29 -0
  21. package/src/graphql/RecoverNodeSigningKey.ts +1 -1
  22. package/src/graphql/SingleNodeDashboard.ts +0 -1
  23. package/src/lightspark_crypto/lightspark_crypto.d.ts +157 -0
  24. package/src/lightspark_crypto/lightspark_crypto.js +1010 -0
  25. package/src/lightspark_crypto/lightspark_crypto_bg.wasm +0 -0
  26. package/src/lightspark_crypto/lightspark_crypto_bg.wasm.d.ts +120 -0
  27. package/src/lightspark_crypto/package.json +11 -0
  28. package/src/objects/Account.ts +437 -120
  29. package/src/objects/AccountToApiTokensConnection.ts +3 -3
  30. package/src/objects/AccountToChannelsConnection.ts +4 -4
  31. package/src/objects/AccountToNodesConnection.ts +2 -15
  32. package/src/objects/AccountToPaymentRequestsConnection.ts +3 -3
  33. package/src/objects/AccountToTransactionsConnection.ts +6 -6
  34. package/src/objects/AccountToWalletsConnection.ts +2 -2
  35. package/src/objects/Balances.ts +2 -2
  36. package/src/objects/Channel.ts +4 -4
  37. package/src/objects/ChannelClosingTransaction.ts +2 -2
  38. package/src/objects/ChannelOpeningTransaction.ts +2 -2
  39. package/src/objects/ChannelToTransactionsConnection.ts +4 -4
  40. package/src/objects/{CryptoSanctionsScreeningProvider.ts → ComplianceProvider.ts} +3 -3
  41. package/src/objects/Connection.ts +25 -31
  42. package/src/objects/CreateApiTokenInput.ts +1 -1
  43. package/src/objects/CreateApiTokenOutput.ts +1 -1
  44. package/src/objects/CreateInvoiceInput.ts +0 -6
  45. package/src/objects/CreateLnurlInvoiceInput.ts +1 -7
  46. package/src/objects/CreateNodeWalletAddressInput.ts +1 -1
  47. package/src/objects/CreateNodeWalletAddressOutput.ts +1 -1
  48. package/src/objects/CreateTestModeInvoiceInput.ts +1 -1
  49. package/src/objects/CreateTestModeInvoiceOutput.ts +1 -1
  50. package/src/objects/CreateTestModePaymentInput.ts +1 -1
  51. package/src/objects/CreateTestModePaymentoutput.ts +14 -2
  52. package/src/objects/CreateUmaInvoiceInput.ts +24 -0
  53. package/src/objects/DeclineToSignMessagesInput.ts +16 -0
  54. package/src/objects/DeclineToSignMessagesOutput.ts +28 -0
  55. package/src/objects/DeleteApiTokenOutput.ts +1 -1
  56. package/src/objects/Entity.ts +401 -66
  57. package/src/objects/GraphNode.ts +3 -3
  58. package/src/objects/IdAndSignature.ts +16 -0
  59. package/src/objects/IncomingPayment.ts +21 -8
  60. package/src/objects/IncomingPaymentAttempt.ts +2 -2
  61. package/src/objects/IncomingPaymentToAttemptsConnection.ts +3 -3
  62. package/src/objects/Invoice.ts +118 -21
  63. package/src/objects/InvoiceData.ts +118 -21
  64. package/src/objects/LightningFeeEstimateForInvoiceInput.ts +1 -1
  65. package/src/objects/LightningFeeEstimateForNodeInput.ts +1 -1
  66. package/src/objects/LightningFeeEstimateOutput.ts +2 -2
  67. package/src/objects/LightningTransaction.ts +155 -31
  68. package/src/objects/LightsparkNode.ts +272 -112
  69. package/src/objects/LightsparkNodeOwner.ts +8 -4
  70. package/src/objects/LightsparkNodeToChannelsConnection.ts +3 -3
  71. package/src/objects/LightsparkNodeWithOSK.ts +389 -0
  72. package/src/objects/LightsparkNodeWithRemoteSigning.ts +384 -0
  73. package/src/objects/Node.ts +213 -60
  74. package/src/objects/NodeToAddressesConnection.ts +2 -2
  75. package/src/objects/OnChainTransaction.ts +2 -2
  76. package/src/objects/OutgoingPayment.ts +139 -24
  77. package/src/objects/OutgoingPaymentAttempt.ts +5 -5
  78. package/src/objects/OutgoingPaymentAttemptToHopsConnection.ts +3 -3
  79. package/src/objects/OutgoingPaymentToAttemptsConnection.ts +3 -3
  80. package/src/objects/OutgoingPaymentsForInvoiceQueryInput.ts +25 -0
  81. package/src/objects/OutgoingPaymentsForInvoiceQueryOutput.ts +28 -0
  82. package/src/objects/PayUmaInvoiceInput.ts +25 -0
  83. package/src/objects/{LightsparkNodePurpose.ts → PaymentDirection.ts} +5 -7
  84. package/src/objects/PaymentRequest.ts +119 -22
  85. package/src/objects/PaymentRequestData.ts +119 -22
  86. package/src/objects/PostTransactionData.ts +39 -0
  87. package/src/objects/RegisterPaymentInput.ts +31 -0
  88. package/src/objects/RegisterPaymentOutput.ts +23 -0
  89. package/src/objects/ReleaseChannelPerCommitmentSecretInput.ts +23 -0
  90. package/src/objects/ReleaseChannelPerCommitmentSecretOutput.ts +23 -0
  91. package/src/objects/ReleasePaymentPreimageInput.ts +20 -0
  92. package/src/objects/ReleasePaymentPreimageOutput.ts +23 -0
  93. package/src/objects/RemoteSigningSubEventType.ts +26 -0
  94. package/src/objects/RequestWithdrawalInput.ts +1 -1
  95. package/src/objects/RequestWithdrawalOutput.ts +1 -1
  96. package/src/objects/RoutingTransaction.ts +1 -1
  97. package/src/objects/ScreenNodeInput.ts +20 -0
  98. package/src/objects/ScreenNodeOutput.ts +22 -0
  99. package/src/objects/SetInvoicePaymentHashInput.ts +24 -0
  100. package/src/objects/SetInvoicePaymentHashOutput.ts +23 -0
  101. package/src/objects/SignInvoiceInput.ts +19 -0
  102. package/src/objects/SignInvoiceOutput.ts +21 -0
  103. package/src/objects/SignMessagesInput.ts +18 -0
  104. package/src/objects/SignMessagesOutput.ts +26 -0
  105. package/src/objects/Signable.ts +58 -0
  106. package/src/objects/SignablePayload.ts +93 -0
  107. package/src/objects/SignablePayloadStatus.ts +17 -0
  108. package/src/objects/SingleNodeDashboard.ts +0 -2
  109. package/src/objects/Transaction.ts +153 -29
  110. package/src/objects/TransactionFailures.ts +1 -1
  111. package/src/objects/UpdateChannelPerCommitmentPointInput.ts +25 -0
  112. package/src/objects/UpdateChannelPerCommitmentPointOutput.ts +23 -0
  113. package/src/objects/UpdateNodeSharedSecretInput.ts +18 -0
  114. package/src/objects/UpdateNodeSharedSecretOutput.ts +23 -0
  115. package/src/objects/Wallet.ts +271 -51
  116. package/src/objects/WalletToPaymentRequestsConnection.ts +3 -3
  117. package/src/objects/WalletToTransactionsConnection.ts +3 -3
  118. package/src/objects/WithdrawalRequest.ts +6 -6
  119. package/src/objects/WithdrawalRequestToChannelClosingTransactionsConnection.ts +2 -2
  120. package/src/objects/WithdrawalRequestToChannelOpeningTransactionsConnection.ts +2 -2
  121. package/src/objects/index.ts +37 -4
  122. package/src/{__tests__ → tests}/webhooks.test.ts +1 -1
  123. package/src/webhooks.ts +1 -1
  124. package/src/objects/ScreenBitcoinAddressesInput.ts +0 -23
  125. package/src/objects/ScreenBitcoinAddressesOutput.ts +0 -25
@@ -283,15 +283,24 @@ fragment EntityFragment on Entity {
283
283
  currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
284
284
  }
285
285
  incoming_payment_transaction_hash: transaction_hash
286
- incoming_payment_origin: origin {
287
- id
288
- }
289
286
  incoming_payment_destination: destination {
290
287
  id
291
288
  }
292
289
  incoming_payment_payment_request: payment_request {
293
290
  id
294
291
  }
292
+ incoming_payment_uma_post_transaction_data: uma_post_transaction_data {
293
+ __typename
294
+ post_transaction_data_utxo: utxo
295
+ post_transaction_data_amount: amount {
296
+ __typename
297
+ currency_amount_original_value: original_value
298
+ currency_amount_original_unit: original_unit
299
+ currency_amount_preferred_currency_unit: preferred_currency_unit
300
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
301
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
302
+ }
303
+ }
295
304
  }
296
305
  ... on IncomingPaymentAttempt {
297
306
  __typename
@@ -347,24 +356,54 @@ fragment EntityFragment on Entity {
347
356
  graph_node_display_name: display_name
348
357
  graph_node_public_key: public_key
349
358
  }
350
- ... on LightsparkNode {
359
+ ... on LightsparkNodeWithOSK {
351
360
  __typename
352
- lightspark_node_id: id
353
- lightspark_node_created_at: created_at
354
- lightspark_node_updated_at: updated_at
355
- lightspark_node_alias: alias
356
- lightspark_node_bitcoin_network: bitcoin_network
357
- lightspark_node_color: color
358
- lightspark_node_conductivity: conductivity
359
- lightspark_node_display_name: display_name
360
- lightspark_node_public_key: public_key
361
- lightspark_node_account: account {
361
+ lightspark_node_with_o_s_k_id: id
362
+ lightspark_node_with_o_s_k_created_at: created_at
363
+ lightspark_node_with_o_s_k_updated_at: updated_at
364
+ lightspark_node_with_o_s_k_alias: alias
365
+ lightspark_node_with_o_s_k_bitcoin_network: bitcoin_network
366
+ lightspark_node_with_o_s_k_color: color
367
+ lightspark_node_with_o_s_k_conductivity: conductivity
368
+ lightspark_node_with_o_s_k_display_name: display_name
369
+ lightspark_node_with_o_s_k_public_key: public_key
370
+ lightspark_node_with_o_s_k_owner: owner {
362
371
  id
363
372
  }
364
- lightspark_node_owner: owner {
365
- id
373
+ lightspark_node_with_o_s_k_status: status
374
+ lightspark_node_with_o_s_k_total_balance: total_balance {
375
+ __typename
376
+ currency_amount_original_value: original_value
377
+ currency_amount_original_unit: original_unit
378
+ currency_amount_preferred_currency_unit: preferred_currency_unit
379
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
380
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
366
381
  }
367
- lightspark_node_blockchain_balance: blockchain_balance {
382
+ lightspark_node_with_o_s_k_total_local_balance: total_local_balance {
383
+ __typename
384
+ currency_amount_original_value: original_value
385
+ currency_amount_original_unit: original_unit
386
+ currency_amount_preferred_currency_unit: preferred_currency_unit
387
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
388
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
389
+ }
390
+ lightspark_node_with_o_s_k_local_balance: local_balance {
391
+ __typename
392
+ currency_amount_original_value: original_value
393
+ currency_amount_original_unit: original_unit
394
+ currency_amount_preferred_currency_unit: preferred_currency_unit
395
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
396
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
397
+ }
398
+ lightspark_node_with_o_s_k_remote_balance: remote_balance {
399
+ __typename
400
+ currency_amount_original_value: original_value
401
+ currency_amount_original_unit: original_unit
402
+ currency_amount_preferred_currency_unit: preferred_currency_unit
403
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
404
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
405
+ }
406
+ lightspark_node_with_o_s_k_blockchain_balance: blockchain_balance {
368
407
  __typename
369
408
  blockchain_balance_total_balance: total_balance {
370
409
  __typename
@@ -415,12 +454,29 @@ fragment EntityFragment on Entity {
415
454
  currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
416
455
  }
417
456
  }
418
- lightspark_node_encrypted_signing_private_key: encrypted_signing_private_key {
457
+ lightspark_node_with_o_s_k_uma_prescreening_utxos: uma_prescreening_utxos
458
+ lightspark_node_with_o_s_k_encrypted_signing_private_key: encrypted_signing_private_key {
419
459
  __typename
420
460
  secret_encrypted_value: encrypted_value
421
461
  secret_cipher: cipher
422
462
  }
423
- lightspark_node_total_balance: total_balance {
463
+ }
464
+ ... on LightsparkNodeWithRemoteSigning {
465
+ __typename
466
+ lightspark_node_with_remote_signing_id: id
467
+ lightspark_node_with_remote_signing_created_at: created_at
468
+ lightspark_node_with_remote_signing_updated_at: updated_at
469
+ lightspark_node_with_remote_signing_alias: alias
470
+ lightspark_node_with_remote_signing_bitcoin_network: bitcoin_network
471
+ lightspark_node_with_remote_signing_color: color
472
+ lightspark_node_with_remote_signing_conductivity: conductivity
473
+ lightspark_node_with_remote_signing_display_name: display_name
474
+ lightspark_node_with_remote_signing_public_key: public_key
475
+ lightspark_node_with_remote_signing_owner: owner {
476
+ id
477
+ }
478
+ lightspark_node_with_remote_signing_status: status
479
+ lightspark_node_with_remote_signing_total_balance: total_balance {
424
480
  __typename
425
481
  currency_amount_original_value: original_value
426
482
  currency_amount_original_unit: original_unit
@@ -428,7 +484,7 @@ fragment EntityFragment on Entity {
428
484
  currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
429
485
  currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
430
486
  }
431
- lightspark_node_total_local_balance: total_local_balance {
487
+ lightspark_node_with_remote_signing_total_local_balance: total_local_balance {
432
488
  __typename
433
489
  currency_amount_original_value: original_value
434
490
  currency_amount_original_unit: original_unit
@@ -436,7 +492,7 @@ fragment EntityFragment on Entity {
436
492
  currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
437
493
  currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
438
494
  }
439
- lightspark_node_local_balance: local_balance {
495
+ lightspark_node_with_remote_signing_local_balance: local_balance {
440
496
  __typename
441
497
  currency_amount_original_value: original_value
442
498
  currency_amount_original_unit: original_unit
@@ -444,8 +500,7 @@ fragment EntityFragment on Entity {
444
500
  currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
445
501
  currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
446
502
  }
447
- lightspark_node_purpose: purpose
448
- lightspark_node_remote_balance: remote_balance {
503
+ lightspark_node_with_remote_signing_remote_balance: remote_balance {
449
504
  __typename
450
505
  currency_amount_original_value: original_value
451
506
  currency_amount_original_unit: original_unit
@@ -453,7 +508,58 @@ fragment EntityFragment on Entity {
453
508
  currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
454
509
  currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
455
510
  }
456
- lightspark_node_status: status
511
+ lightspark_node_with_remote_signing_blockchain_balance: blockchain_balance {
512
+ __typename
513
+ blockchain_balance_total_balance: total_balance {
514
+ __typename
515
+ currency_amount_original_value: original_value
516
+ currency_amount_original_unit: original_unit
517
+ currency_amount_preferred_currency_unit: preferred_currency_unit
518
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
519
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
520
+ }
521
+ blockchain_balance_confirmed_balance: confirmed_balance {
522
+ __typename
523
+ currency_amount_original_value: original_value
524
+ currency_amount_original_unit: original_unit
525
+ currency_amount_preferred_currency_unit: preferred_currency_unit
526
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
527
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
528
+ }
529
+ blockchain_balance_unconfirmed_balance: unconfirmed_balance {
530
+ __typename
531
+ currency_amount_original_value: original_value
532
+ currency_amount_original_unit: original_unit
533
+ currency_amount_preferred_currency_unit: preferred_currency_unit
534
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
535
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
536
+ }
537
+ blockchain_balance_locked_balance: locked_balance {
538
+ __typename
539
+ currency_amount_original_value: original_value
540
+ currency_amount_original_unit: original_unit
541
+ currency_amount_preferred_currency_unit: preferred_currency_unit
542
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
543
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
544
+ }
545
+ blockchain_balance_required_reserve: required_reserve {
546
+ __typename
547
+ currency_amount_original_value: original_value
548
+ currency_amount_original_unit: original_unit
549
+ currency_amount_preferred_currency_unit: preferred_currency_unit
550
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
551
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
552
+ }
553
+ blockchain_balance_available_balance: available_balance {
554
+ __typename
555
+ currency_amount_original_value: original_value
556
+ currency_amount_original_unit: original_unit
557
+ currency_amount_preferred_currency_unit: preferred_currency_unit
558
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
559
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
560
+ }
561
+ }
562
+ lightspark_node_with_remote_signing_uma_prescreening_utxos: uma_prescreening_utxos
457
563
  }
458
564
  }
459
565
  }
@@ -467,24 +573,54 @@ fragment EntityFragment on Entity {
467
573
  currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
468
574
  }
469
575
  }
470
- ... on LightsparkNode {
576
+ ... on LightsparkNodeWithOSK {
471
577
  __typename
472
- lightspark_node_id: id
473
- lightspark_node_created_at: created_at
474
- lightspark_node_updated_at: updated_at
475
- lightspark_node_alias: alias
476
- lightspark_node_bitcoin_network: bitcoin_network
477
- lightspark_node_color: color
478
- lightspark_node_conductivity: conductivity
479
- lightspark_node_display_name: display_name
480
- lightspark_node_public_key: public_key
481
- lightspark_node_account: account {
578
+ lightspark_node_with_o_s_k_id: id
579
+ lightspark_node_with_o_s_k_created_at: created_at
580
+ lightspark_node_with_o_s_k_updated_at: updated_at
581
+ lightspark_node_with_o_s_k_alias: alias
582
+ lightspark_node_with_o_s_k_bitcoin_network: bitcoin_network
583
+ lightspark_node_with_o_s_k_color: color
584
+ lightspark_node_with_o_s_k_conductivity: conductivity
585
+ lightspark_node_with_o_s_k_display_name: display_name
586
+ lightspark_node_with_o_s_k_public_key: public_key
587
+ lightspark_node_with_o_s_k_owner: owner {
482
588
  id
483
589
  }
484
- lightspark_node_owner: owner {
485
- id
590
+ lightspark_node_with_o_s_k_status: status
591
+ lightspark_node_with_o_s_k_total_balance: total_balance {
592
+ __typename
593
+ currency_amount_original_value: original_value
594
+ currency_amount_original_unit: original_unit
595
+ currency_amount_preferred_currency_unit: preferred_currency_unit
596
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
597
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
598
+ }
599
+ lightspark_node_with_o_s_k_total_local_balance: total_local_balance {
600
+ __typename
601
+ currency_amount_original_value: original_value
602
+ currency_amount_original_unit: original_unit
603
+ currency_amount_preferred_currency_unit: preferred_currency_unit
604
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
605
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
606
+ }
607
+ lightspark_node_with_o_s_k_local_balance: local_balance {
608
+ __typename
609
+ currency_amount_original_value: original_value
610
+ currency_amount_original_unit: original_unit
611
+ currency_amount_preferred_currency_unit: preferred_currency_unit
612
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
613
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
614
+ }
615
+ lightspark_node_with_o_s_k_remote_balance: remote_balance {
616
+ __typename
617
+ currency_amount_original_value: original_value
618
+ currency_amount_original_unit: original_unit
619
+ currency_amount_preferred_currency_unit: preferred_currency_unit
620
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
621
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
486
622
  }
487
- lightspark_node_blockchain_balance: blockchain_balance {
623
+ lightspark_node_with_o_s_k_blockchain_balance: blockchain_balance {
488
624
  __typename
489
625
  blockchain_balance_total_balance: total_balance {
490
626
  __typename
@@ -535,12 +671,29 @@ fragment EntityFragment on Entity {
535
671
  currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
536
672
  }
537
673
  }
538
- lightspark_node_encrypted_signing_private_key: encrypted_signing_private_key {
674
+ lightspark_node_with_o_s_k_uma_prescreening_utxos: uma_prescreening_utxos
675
+ lightspark_node_with_o_s_k_encrypted_signing_private_key: encrypted_signing_private_key {
539
676
  __typename
540
677
  secret_encrypted_value: encrypted_value
541
678
  secret_cipher: cipher
542
679
  }
543
- lightspark_node_total_balance: total_balance {
680
+ }
681
+ ... on LightsparkNodeWithRemoteSigning {
682
+ __typename
683
+ lightspark_node_with_remote_signing_id: id
684
+ lightspark_node_with_remote_signing_created_at: created_at
685
+ lightspark_node_with_remote_signing_updated_at: updated_at
686
+ lightspark_node_with_remote_signing_alias: alias
687
+ lightspark_node_with_remote_signing_bitcoin_network: bitcoin_network
688
+ lightspark_node_with_remote_signing_color: color
689
+ lightspark_node_with_remote_signing_conductivity: conductivity
690
+ lightspark_node_with_remote_signing_display_name: display_name
691
+ lightspark_node_with_remote_signing_public_key: public_key
692
+ lightspark_node_with_remote_signing_owner: owner {
693
+ id
694
+ }
695
+ lightspark_node_with_remote_signing_status: status
696
+ lightspark_node_with_remote_signing_total_balance: total_balance {
544
697
  __typename
545
698
  currency_amount_original_value: original_value
546
699
  currency_amount_original_unit: original_unit
@@ -548,7 +701,7 @@ fragment EntityFragment on Entity {
548
701
  currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
549
702
  currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
550
703
  }
551
- lightspark_node_total_local_balance: total_local_balance {
704
+ lightspark_node_with_remote_signing_total_local_balance: total_local_balance {
552
705
  __typename
553
706
  currency_amount_original_value: original_value
554
707
  currency_amount_original_unit: original_unit
@@ -556,7 +709,7 @@ fragment EntityFragment on Entity {
556
709
  currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
557
710
  currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
558
711
  }
559
- lightspark_node_local_balance: local_balance {
712
+ lightspark_node_with_remote_signing_local_balance: local_balance {
560
713
  __typename
561
714
  currency_amount_original_value: original_value
562
715
  currency_amount_original_unit: original_unit
@@ -564,8 +717,7 @@ fragment EntityFragment on Entity {
564
717
  currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
565
718
  currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
566
719
  }
567
- lightspark_node_purpose: purpose
568
- lightspark_node_remote_balance: remote_balance {
720
+ lightspark_node_with_remote_signing_remote_balance: remote_balance {
569
721
  __typename
570
722
  currency_amount_original_value: original_value
571
723
  currency_amount_original_unit: original_unit
@@ -573,7 +725,58 @@ fragment EntityFragment on Entity {
573
725
  currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
574
726
  currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
575
727
  }
576
- lightspark_node_status: status
728
+ lightspark_node_with_remote_signing_blockchain_balance: blockchain_balance {
729
+ __typename
730
+ blockchain_balance_total_balance: total_balance {
731
+ __typename
732
+ currency_amount_original_value: original_value
733
+ currency_amount_original_unit: original_unit
734
+ currency_amount_preferred_currency_unit: preferred_currency_unit
735
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
736
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
737
+ }
738
+ blockchain_balance_confirmed_balance: confirmed_balance {
739
+ __typename
740
+ currency_amount_original_value: original_value
741
+ currency_amount_original_unit: original_unit
742
+ currency_amount_preferred_currency_unit: preferred_currency_unit
743
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
744
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
745
+ }
746
+ blockchain_balance_unconfirmed_balance: unconfirmed_balance {
747
+ __typename
748
+ currency_amount_original_value: original_value
749
+ currency_amount_original_unit: original_unit
750
+ currency_amount_preferred_currency_unit: preferred_currency_unit
751
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
752
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
753
+ }
754
+ blockchain_balance_locked_balance: locked_balance {
755
+ __typename
756
+ currency_amount_original_value: original_value
757
+ currency_amount_original_unit: original_unit
758
+ currency_amount_preferred_currency_unit: preferred_currency_unit
759
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
760
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
761
+ }
762
+ blockchain_balance_required_reserve: required_reserve {
763
+ __typename
764
+ currency_amount_original_value: original_value
765
+ currency_amount_original_unit: original_unit
766
+ currency_amount_preferred_currency_unit: preferred_currency_unit
767
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
768
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
769
+ }
770
+ blockchain_balance_available_balance: available_balance {
771
+ __typename
772
+ currency_amount_original_value: original_value
773
+ currency_amount_original_unit: original_unit
774
+ currency_amount_preferred_currency_unit: preferred_currency_unit
775
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
776
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
777
+ }
778
+ }
779
+ lightspark_node_with_remote_signing_uma_prescreening_utxos: uma_prescreening_utxos
577
780
  }
578
781
  ... on OutgoingPayment {
579
782
  __typename
@@ -637,24 +840,54 @@ fragment EntityFragment on Entity {
637
840
  graph_node_display_name: display_name
638
841
  graph_node_public_key: public_key
639
842
  }
640
- ... on LightsparkNode {
843
+ ... on LightsparkNodeWithOSK {
641
844
  __typename
642
- lightspark_node_id: id
643
- lightspark_node_created_at: created_at
644
- lightspark_node_updated_at: updated_at
645
- lightspark_node_alias: alias
646
- lightspark_node_bitcoin_network: bitcoin_network
647
- lightspark_node_color: color
648
- lightspark_node_conductivity: conductivity
649
- lightspark_node_display_name: display_name
650
- lightspark_node_public_key: public_key
651
- lightspark_node_account: account {
845
+ lightspark_node_with_o_s_k_id: id
846
+ lightspark_node_with_o_s_k_created_at: created_at
847
+ lightspark_node_with_o_s_k_updated_at: updated_at
848
+ lightspark_node_with_o_s_k_alias: alias
849
+ lightspark_node_with_o_s_k_bitcoin_network: bitcoin_network
850
+ lightspark_node_with_o_s_k_color: color
851
+ lightspark_node_with_o_s_k_conductivity: conductivity
852
+ lightspark_node_with_o_s_k_display_name: display_name
853
+ lightspark_node_with_o_s_k_public_key: public_key
854
+ lightspark_node_with_o_s_k_owner: owner {
652
855
  id
653
856
  }
654
- lightspark_node_owner: owner {
655
- id
857
+ lightspark_node_with_o_s_k_status: status
858
+ lightspark_node_with_o_s_k_total_balance: total_balance {
859
+ __typename
860
+ currency_amount_original_value: original_value
861
+ currency_amount_original_unit: original_unit
862
+ currency_amount_preferred_currency_unit: preferred_currency_unit
863
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
864
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
865
+ }
866
+ lightspark_node_with_o_s_k_total_local_balance: total_local_balance {
867
+ __typename
868
+ currency_amount_original_value: original_value
869
+ currency_amount_original_unit: original_unit
870
+ currency_amount_preferred_currency_unit: preferred_currency_unit
871
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
872
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
656
873
  }
657
- lightspark_node_blockchain_balance: blockchain_balance {
874
+ lightspark_node_with_o_s_k_local_balance: local_balance {
875
+ __typename
876
+ currency_amount_original_value: original_value
877
+ currency_amount_original_unit: original_unit
878
+ currency_amount_preferred_currency_unit: preferred_currency_unit
879
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
880
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
881
+ }
882
+ lightspark_node_with_o_s_k_remote_balance: remote_balance {
883
+ __typename
884
+ currency_amount_original_value: original_value
885
+ currency_amount_original_unit: original_unit
886
+ currency_amount_preferred_currency_unit: preferred_currency_unit
887
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
888
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
889
+ }
890
+ lightspark_node_with_o_s_k_blockchain_balance: blockchain_balance {
658
891
  __typename
659
892
  blockchain_balance_total_balance: total_balance {
660
893
  __typename
@@ -705,12 +938,29 @@ fragment EntityFragment on Entity {
705
938
  currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
706
939
  }
707
940
  }
708
- lightspark_node_encrypted_signing_private_key: encrypted_signing_private_key {
941
+ lightspark_node_with_o_s_k_uma_prescreening_utxos: uma_prescreening_utxos
942
+ lightspark_node_with_o_s_k_encrypted_signing_private_key: encrypted_signing_private_key {
709
943
  __typename
710
944
  secret_encrypted_value: encrypted_value
711
945
  secret_cipher: cipher
712
946
  }
713
- lightspark_node_total_balance: total_balance {
947
+ }
948
+ ... on LightsparkNodeWithRemoteSigning {
949
+ __typename
950
+ lightspark_node_with_remote_signing_id: id
951
+ lightspark_node_with_remote_signing_created_at: created_at
952
+ lightspark_node_with_remote_signing_updated_at: updated_at
953
+ lightspark_node_with_remote_signing_alias: alias
954
+ lightspark_node_with_remote_signing_bitcoin_network: bitcoin_network
955
+ lightspark_node_with_remote_signing_color: color
956
+ lightspark_node_with_remote_signing_conductivity: conductivity
957
+ lightspark_node_with_remote_signing_display_name: display_name
958
+ lightspark_node_with_remote_signing_public_key: public_key
959
+ lightspark_node_with_remote_signing_owner: owner {
960
+ id
961
+ }
962
+ lightspark_node_with_remote_signing_status: status
963
+ lightspark_node_with_remote_signing_total_balance: total_balance {
714
964
  __typename
715
965
  currency_amount_original_value: original_value
716
966
  currency_amount_original_unit: original_unit
@@ -718,7 +968,7 @@ fragment EntityFragment on Entity {
718
968
  currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
719
969
  currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
720
970
  }
721
- lightspark_node_total_local_balance: total_local_balance {
971
+ lightspark_node_with_remote_signing_total_local_balance: total_local_balance {
722
972
  __typename
723
973
  currency_amount_original_value: original_value
724
974
  currency_amount_original_unit: original_unit
@@ -726,7 +976,7 @@ fragment EntityFragment on Entity {
726
976
  currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
727
977
  currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
728
978
  }
729
- lightspark_node_local_balance: local_balance {
979
+ lightspark_node_with_remote_signing_local_balance: local_balance {
730
980
  __typename
731
981
  currency_amount_original_value: original_value
732
982
  currency_amount_original_unit: original_unit
@@ -734,8 +984,7 @@ fragment EntityFragment on Entity {
734
984
  currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
735
985
  currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
736
986
  }
737
- lightspark_node_purpose: purpose
738
- lightspark_node_remote_balance: remote_balance {
987
+ lightspark_node_with_remote_signing_remote_balance: remote_balance {
739
988
  __typename
740
989
  currency_amount_original_value: original_value
741
990
  currency_amount_original_unit: original_unit
@@ -743,7 +992,58 @@ fragment EntityFragment on Entity {
743
992
  currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
744
993
  currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
745
994
  }
746
- lightspark_node_status: status
995
+ lightspark_node_with_remote_signing_blockchain_balance: blockchain_balance {
996
+ __typename
997
+ blockchain_balance_total_balance: total_balance {
998
+ __typename
999
+ currency_amount_original_value: original_value
1000
+ currency_amount_original_unit: original_unit
1001
+ currency_amount_preferred_currency_unit: preferred_currency_unit
1002
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
1003
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
1004
+ }
1005
+ blockchain_balance_confirmed_balance: confirmed_balance {
1006
+ __typename
1007
+ currency_amount_original_value: original_value
1008
+ currency_amount_original_unit: original_unit
1009
+ currency_amount_preferred_currency_unit: preferred_currency_unit
1010
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
1011
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
1012
+ }
1013
+ blockchain_balance_unconfirmed_balance: unconfirmed_balance {
1014
+ __typename
1015
+ currency_amount_original_value: original_value
1016
+ currency_amount_original_unit: original_unit
1017
+ currency_amount_preferred_currency_unit: preferred_currency_unit
1018
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
1019
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
1020
+ }
1021
+ blockchain_balance_locked_balance: locked_balance {
1022
+ __typename
1023
+ currency_amount_original_value: original_value
1024
+ currency_amount_original_unit: original_unit
1025
+ currency_amount_preferred_currency_unit: preferred_currency_unit
1026
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
1027
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
1028
+ }
1029
+ blockchain_balance_required_reserve: required_reserve {
1030
+ __typename
1031
+ currency_amount_original_value: original_value
1032
+ currency_amount_original_unit: original_unit
1033
+ currency_amount_preferred_currency_unit: preferred_currency_unit
1034
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
1035
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
1036
+ }
1037
+ blockchain_balance_available_balance: available_balance {
1038
+ __typename
1039
+ currency_amount_original_value: original_value
1040
+ currency_amount_original_unit: original_unit
1041
+ currency_amount_preferred_currency_unit: preferred_currency_unit
1042
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
1043
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
1044
+ }
1045
+ }
1046
+ lightspark_node_with_remote_signing_uma_prescreening_utxos: uma_prescreening_utxos
747
1047
  }
748
1048
  }
749
1049
  }
@@ -753,6 +1053,18 @@ fragment EntityFragment on Entity {
753
1053
  __typename
754
1054
  rich_text_text: text
755
1055
  }
1056
+ outgoing_payment_uma_post_transaction_data: uma_post_transaction_data {
1057
+ __typename
1058
+ post_transaction_data_utxo: utxo
1059
+ post_transaction_data_amount: amount {
1060
+ __typename
1061
+ currency_amount_original_value: original_value
1062
+ currency_amount_original_unit: original_unit
1063
+ currency_amount_preferred_currency_unit: preferred_currency_unit
1064
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
1065
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
1066
+ }
1067
+ }
756
1068
  }
757
1069
  ... on OutgoingPaymentAttempt {
758
1070
  __typename
@@ -819,6 +1131,26 @@ fragment EntityFragment on Entity {
819
1131
  }
820
1132
  routing_transaction_failure_reason: failure_reason
821
1133
  }
1134
+ ... on Signable {
1135
+ __typename
1136
+ signable_id: id
1137
+ signable_created_at: created_at
1138
+ signable_updated_at: updated_at
1139
+ }
1140
+ ... on SignablePayload {
1141
+ __typename
1142
+ signable_payload_id: id
1143
+ signable_payload_created_at: created_at
1144
+ signable_payload_updated_at: updated_at
1145
+ signable_payload_payload: payload
1146
+ signable_payload_derivation_path: derivation_path
1147
+ signable_payload_status: status
1148
+ signable_payload_add_tweak: add_tweak
1149
+ signable_payload_mul_tweak: mul_tweak
1150
+ signable_payload_signable: signable {
1151
+ id
1152
+ }
1153
+ }
822
1154
  ... on Wallet {
823
1155
  __typename
824
1156
  wallet_id: id
@@ -853,6 +1185,9 @@ fragment EntityFragment on Entity {
853
1185
  }
854
1186
  }
855
1187
  wallet_third_party_identifier: third_party_identifier
1188
+ wallet_account: account {
1189
+ id
1190
+ }
856
1191
  wallet_status: status
857
1192
  }
858
1193
  ... on Withdrawal {