@lightsparkdev/lightspark-sdk 0.4.11 → 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 (84) hide show
  1. package/CHANGELOG.md +22 -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 +3393 -841
  6. package/dist/index.d.ts +2 -2
  7. package/dist/index.js +388 -93
  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 +10 -8
  12. package/src/NodeKeyLoaderCache.ts +87 -0
  13. package/src/SigningKeyLoader.ts +177 -0
  14. package/src/client.ts +160 -71
  15. package/src/graphql/CreateInvoice.ts +3 -2
  16. package/src/graphql/CreateLnurlInvoice.ts +2 -0
  17. package/src/graphql/CreateUmaInvoice.ts +23 -0
  18. package/src/graphql/MultiNodeDashboard.ts +0 -3
  19. package/src/graphql/PayUmaInvoice.ts +29 -0
  20. package/src/graphql/RecoverNodeSigningKey.ts +1 -1
  21. package/src/graphql/SingleNodeDashboard.ts +0 -1
  22. package/src/lightspark_crypto/lightspark_crypto.d.ts +157 -0
  23. package/src/lightspark_crypto/lightspark_crypto.js +1010 -0
  24. package/src/lightspark_crypto/lightspark_crypto_bg.wasm +0 -0
  25. package/src/lightspark_crypto/lightspark_crypto_bg.wasm.d.ts +120 -0
  26. package/src/lightspark_crypto/package.json +11 -0
  27. package/src/objects/Account.ts +424 -107
  28. package/src/objects/AccountToNodesConnection.ts +0 -13
  29. package/src/objects/{CryptoSanctionsScreeningProvider.ts → ComplianceProvider.ts} +3 -3
  30. package/src/objects/Connection.ts +0 -6
  31. package/src/objects/CreateInvoiceInput.ts +0 -6
  32. package/src/objects/CreateLnurlInvoiceInput.ts +0 -6
  33. package/src/objects/CreateTestModePaymentoutput.ts +13 -1
  34. package/src/objects/CreateUmaInvoiceInput.ts +24 -0
  35. package/src/objects/DeclineToSignMessagesInput.ts +16 -0
  36. package/src/objects/DeclineToSignMessagesOutput.ts +28 -0
  37. package/src/objects/Entity.ts +401 -66
  38. package/src/objects/IdAndSignature.ts +16 -0
  39. package/src/objects/IncomingPayment.ts +18 -5
  40. package/src/objects/Invoice.ts +118 -21
  41. package/src/objects/InvoiceData.ts +118 -21
  42. package/src/objects/LightningTransaction.ts +149 -25
  43. package/src/objects/LightsparkNode.ts +270 -110
  44. package/src/objects/LightsparkNodeOwner.ts +4 -0
  45. package/src/objects/LightsparkNodeWithOSK.ts +389 -0
  46. package/src/objects/LightsparkNodeWithRemoteSigning.ts +384 -0
  47. package/src/objects/Node.ts +209 -56
  48. package/src/objects/OutgoingPayment.ts +136 -21
  49. package/src/objects/OutgoingPaymentsForInvoiceQueryInput.ts +25 -0
  50. package/src/objects/OutgoingPaymentsForInvoiceQueryOutput.ts +28 -0
  51. package/src/objects/PayUmaInvoiceInput.ts +25 -0
  52. package/src/objects/{LightsparkNodePurpose.ts → PaymentDirection.ts} +5 -7
  53. package/src/objects/PaymentRequest.ts +118 -21
  54. package/src/objects/PaymentRequestData.ts +118 -21
  55. package/src/objects/PostTransactionData.ts +39 -0
  56. package/src/objects/RegisterPaymentInput.ts +31 -0
  57. package/src/objects/RegisterPaymentOutput.ts +23 -0
  58. package/src/objects/ReleaseChannelPerCommitmentSecretInput.ts +23 -0
  59. package/src/objects/ReleaseChannelPerCommitmentSecretOutput.ts +23 -0
  60. package/src/objects/ReleasePaymentPreimageInput.ts +20 -0
  61. package/src/objects/ReleasePaymentPreimageOutput.ts +23 -0
  62. package/src/objects/RemoteSigningSubEventType.ts +26 -0
  63. package/src/objects/ScreenNodeInput.ts +20 -0
  64. package/src/objects/ScreenNodeOutput.ts +22 -0
  65. package/src/objects/SetInvoicePaymentHashInput.ts +24 -0
  66. package/src/objects/SetInvoicePaymentHashOutput.ts +23 -0
  67. package/src/objects/SignInvoiceInput.ts +19 -0
  68. package/src/objects/SignInvoiceOutput.ts +21 -0
  69. package/src/objects/SignMessagesInput.ts +18 -0
  70. package/src/objects/SignMessagesOutput.ts +26 -0
  71. package/src/objects/Signable.ts +58 -0
  72. package/src/objects/SignablePayload.ts +93 -0
  73. package/src/objects/SignablePayloadStatus.ts +17 -0
  74. package/src/objects/SingleNodeDashboard.ts +0 -2
  75. package/src/objects/Transaction.ts +149 -25
  76. package/src/objects/UpdateChannelPerCommitmentPointInput.ts +25 -0
  77. package/src/objects/UpdateChannelPerCommitmentPointOutput.ts +23 -0
  78. package/src/objects/UpdateNodeSharedSecretInput.ts +18 -0
  79. package/src/objects/UpdateNodeSharedSecretOutput.ts +23 -0
  80. package/src/objects/Wallet.ts +265 -45
  81. package/src/objects/index.ts +37 -4
  82. package/src/objects/ScreenBitcoinAddressesInput.ts +0 -23
  83. package/src/objects/ScreenBitcoinAddressesOutput.ts +0 -25
  84. /package/src/{__tests__ → tests}/webhooks.test.ts +0 -0
@@ -0,0 +1,18 @@
1
+ // Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved
2
+
3
+ type UpdateNodeSharedSecretInput = {
4
+ nodeId: string;
5
+
6
+ sharedSecret: string;
7
+ };
8
+
9
+ export const UpdateNodeSharedSecretInputFromJson = (
10
+ obj: any,
11
+ ): UpdateNodeSharedSecretInput => {
12
+ return {
13
+ nodeId: obj["update_node_shared_secret_input_node_id"],
14
+ sharedSecret: obj["update_node_shared_secret_input_shared_secret"],
15
+ } as UpdateNodeSharedSecretInput;
16
+ };
17
+
18
+ export default UpdateNodeSharedSecretInput;
@@ -0,0 +1,23 @@
1
+ // Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved
2
+
3
+ type UpdateNodeSharedSecretOutput = {
4
+ nodeId: string;
5
+ };
6
+
7
+ export const UpdateNodeSharedSecretOutputFromJson = (
8
+ obj: any,
9
+ ): UpdateNodeSharedSecretOutput => {
10
+ return {
11
+ nodeId: obj["update_node_shared_secret_output_node"].id,
12
+ } as UpdateNodeSharedSecretOutput;
13
+ };
14
+
15
+ export const FRAGMENT = `
16
+ fragment UpdateNodeSharedSecretOutputFragment on UpdateNodeSharedSecretOutput {
17
+ __typename
18
+ update_node_shared_secret_output_node: node {
19
+ id
20
+ }
21
+ }`;
22
+
23
+ export default UpdateNodeSharedSecretOutput;
@@ -27,6 +27,7 @@ class Wallet implements LightsparkNodeOwner {
27
27
  public readonly typename: string,
28
28
  public readonly lastLoginAt?: string,
29
29
  public readonly balances?: Balances,
30
+ public readonly accountId?: string,
30
31
  ) {
31
32
  autoBind(this);
32
33
  }
@@ -169,15 +170,24 @@ query FetchWalletToTransactionsConnection($entity_id: ID!, $first: Int, $after:
169
170
  currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
170
171
  }
171
172
  incoming_payment_transaction_hash: transaction_hash
172
- incoming_payment_origin: origin {
173
- id
174
- }
175
173
  incoming_payment_destination: destination {
176
174
  id
177
175
  }
178
176
  incoming_payment_payment_request: payment_request {
179
177
  id
180
178
  }
179
+ incoming_payment_uma_post_transaction_data: uma_post_transaction_data {
180
+ __typename
181
+ post_transaction_data_utxo: utxo
182
+ post_transaction_data_amount: amount {
183
+ __typename
184
+ currency_amount_original_value: original_value
185
+ currency_amount_original_unit: original_unit
186
+ currency_amount_preferred_currency_unit: preferred_currency_unit
187
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
188
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
189
+ }
190
+ }
181
191
  }
182
192
  ... on OutgoingPayment {
183
193
  __typename
@@ -241,24 +251,54 @@ query FetchWalletToTransactionsConnection($entity_id: ID!, $first: Int, $after:
241
251
  graph_node_display_name: display_name
242
252
  graph_node_public_key: public_key
243
253
  }
244
- ... on LightsparkNode {
254
+ ... on LightsparkNodeWithOSK {
245
255
  __typename
246
- lightspark_node_id: id
247
- lightspark_node_created_at: created_at
248
- lightspark_node_updated_at: updated_at
249
- lightspark_node_alias: alias
250
- lightspark_node_bitcoin_network: bitcoin_network
251
- lightspark_node_color: color
252
- lightspark_node_conductivity: conductivity
253
- lightspark_node_display_name: display_name
254
- lightspark_node_public_key: public_key
255
- lightspark_node_account: account {
256
+ lightspark_node_with_o_s_k_id: id
257
+ lightspark_node_with_o_s_k_created_at: created_at
258
+ lightspark_node_with_o_s_k_updated_at: updated_at
259
+ lightspark_node_with_o_s_k_alias: alias
260
+ lightspark_node_with_o_s_k_bitcoin_network: bitcoin_network
261
+ lightspark_node_with_o_s_k_color: color
262
+ lightspark_node_with_o_s_k_conductivity: conductivity
263
+ lightspark_node_with_o_s_k_display_name: display_name
264
+ lightspark_node_with_o_s_k_public_key: public_key
265
+ lightspark_node_with_o_s_k_owner: owner {
256
266
  id
257
267
  }
258
- lightspark_node_owner: owner {
259
- id
268
+ lightspark_node_with_o_s_k_status: status
269
+ lightspark_node_with_o_s_k_total_balance: total_balance {
270
+ __typename
271
+ currency_amount_original_value: original_value
272
+ currency_amount_original_unit: original_unit
273
+ currency_amount_preferred_currency_unit: preferred_currency_unit
274
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
275
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
260
276
  }
261
- lightspark_node_blockchain_balance: blockchain_balance {
277
+ lightspark_node_with_o_s_k_total_local_balance: total_local_balance {
278
+ __typename
279
+ currency_amount_original_value: original_value
280
+ currency_amount_original_unit: original_unit
281
+ currency_amount_preferred_currency_unit: preferred_currency_unit
282
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
283
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
284
+ }
285
+ lightspark_node_with_o_s_k_local_balance: local_balance {
286
+ __typename
287
+ currency_amount_original_value: original_value
288
+ currency_amount_original_unit: original_unit
289
+ currency_amount_preferred_currency_unit: preferred_currency_unit
290
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
291
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
292
+ }
293
+ lightspark_node_with_o_s_k_remote_balance: remote_balance {
294
+ __typename
295
+ currency_amount_original_value: original_value
296
+ currency_amount_original_unit: original_unit
297
+ currency_amount_preferred_currency_unit: preferred_currency_unit
298
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
299
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
300
+ }
301
+ lightspark_node_with_o_s_k_blockchain_balance: blockchain_balance {
262
302
  __typename
263
303
  blockchain_balance_total_balance: total_balance {
264
304
  __typename
@@ -309,12 +349,29 @@ query FetchWalletToTransactionsConnection($entity_id: ID!, $first: Int, $after:
309
349
  currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
310
350
  }
311
351
  }
312
- lightspark_node_encrypted_signing_private_key: encrypted_signing_private_key {
352
+ lightspark_node_with_o_s_k_uma_prescreening_utxos: uma_prescreening_utxos
353
+ lightspark_node_with_o_s_k_encrypted_signing_private_key: encrypted_signing_private_key {
313
354
  __typename
314
355
  secret_encrypted_value: encrypted_value
315
356
  secret_cipher: cipher
316
357
  }
317
- lightspark_node_total_balance: total_balance {
358
+ }
359
+ ... on LightsparkNodeWithRemoteSigning {
360
+ __typename
361
+ lightspark_node_with_remote_signing_id: id
362
+ lightspark_node_with_remote_signing_created_at: created_at
363
+ lightspark_node_with_remote_signing_updated_at: updated_at
364
+ lightspark_node_with_remote_signing_alias: alias
365
+ lightspark_node_with_remote_signing_bitcoin_network: bitcoin_network
366
+ lightspark_node_with_remote_signing_color: color
367
+ lightspark_node_with_remote_signing_conductivity: conductivity
368
+ lightspark_node_with_remote_signing_display_name: display_name
369
+ lightspark_node_with_remote_signing_public_key: public_key
370
+ lightspark_node_with_remote_signing_owner: owner {
371
+ id
372
+ }
373
+ lightspark_node_with_remote_signing_status: status
374
+ lightspark_node_with_remote_signing_total_balance: total_balance {
318
375
  __typename
319
376
  currency_amount_original_value: original_value
320
377
  currency_amount_original_unit: original_unit
@@ -322,7 +379,7 @@ query FetchWalletToTransactionsConnection($entity_id: ID!, $first: Int, $after:
322
379
  currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
323
380
  currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
324
381
  }
325
- lightspark_node_total_local_balance: total_local_balance {
382
+ lightspark_node_with_remote_signing_total_local_balance: total_local_balance {
326
383
  __typename
327
384
  currency_amount_original_value: original_value
328
385
  currency_amount_original_unit: original_unit
@@ -330,7 +387,7 @@ query FetchWalletToTransactionsConnection($entity_id: ID!, $first: Int, $after:
330
387
  currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
331
388
  currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
332
389
  }
333
- lightspark_node_local_balance: local_balance {
390
+ lightspark_node_with_remote_signing_local_balance: local_balance {
334
391
  __typename
335
392
  currency_amount_original_value: original_value
336
393
  currency_amount_original_unit: original_unit
@@ -338,8 +395,7 @@ query FetchWalletToTransactionsConnection($entity_id: ID!, $first: Int, $after:
338
395
  currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
339
396
  currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
340
397
  }
341
- lightspark_node_purpose: purpose
342
- lightspark_node_remote_balance: remote_balance {
398
+ lightspark_node_with_remote_signing_remote_balance: remote_balance {
343
399
  __typename
344
400
  currency_amount_original_value: original_value
345
401
  currency_amount_original_unit: original_unit
@@ -347,7 +403,58 @@ query FetchWalletToTransactionsConnection($entity_id: ID!, $first: Int, $after:
347
403
  currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
348
404
  currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
349
405
  }
350
- lightspark_node_status: status
406
+ lightspark_node_with_remote_signing_blockchain_balance: blockchain_balance {
407
+ __typename
408
+ blockchain_balance_total_balance: total_balance {
409
+ __typename
410
+ currency_amount_original_value: original_value
411
+ currency_amount_original_unit: original_unit
412
+ currency_amount_preferred_currency_unit: preferred_currency_unit
413
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
414
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
415
+ }
416
+ blockchain_balance_confirmed_balance: confirmed_balance {
417
+ __typename
418
+ currency_amount_original_value: original_value
419
+ currency_amount_original_unit: original_unit
420
+ currency_amount_preferred_currency_unit: preferred_currency_unit
421
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
422
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
423
+ }
424
+ blockchain_balance_unconfirmed_balance: unconfirmed_balance {
425
+ __typename
426
+ currency_amount_original_value: original_value
427
+ currency_amount_original_unit: original_unit
428
+ currency_amount_preferred_currency_unit: preferred_currency_unit
429
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
430
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
431
+ }
432
+ blockchain_balance_locked_balance: locked_balance {
433
+ __typename
434
+ currency_amount_original_value: original_value
435
+ currency_amount_original_unit: original_unit
436
+ currency_amount_preferred_currency_unit: preferred_currency_unit
437
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
438
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
439
+ }
440
+ blockchain_balance_required_reserve: required_reserve {
441
+ __typename
442
+ currency_amount_original_value: original_value
443
+ currency_amount_original_unit: original_unit
444
+ currency_amount_preferred_currency_unit: preferred_currency_unit
445
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
446
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
447
+ }
448
+ blockchain_balance_available_balance: available_balance {
449
+ __typename
450
+ currency_amount_original_value: original_value
451
+ currency_amount_original_unit: original_unit
452
+ currency_amount_preferred_currency_unit: preferred_currency_unit
453
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
454
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
455
+ }
456
+ }
457
+ lightspark_node_with_remote_signing_uma_prescreening_utxos: uma_prescreening_utxos
351
458
  }
352
459
  }
353
460
  }
@@ -357,6 +464,18 @@ query FetchWalletToTransactionsConnection($entity_id: ID!, $first: Int, $after:
357
464
  __typename
358
465
  rich_text_text: text
359
466
  }
467
+ outgoing_payment_uma_post_transaction_data: uma_post_transaction_data {
468
+ __typename
469
+ post_transaction_data_utxo: utxo
470
+ post_transaction_data_amount: amount {
471
+ __typename
472
+ currency_amount_original_value: original_value
473
+ currency_amount_original_unit: original_unit
474
+ currency_amount_preferred_currency_unit: preferred_currency_unit
475
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
476
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
477
+ }
478
+ }
360
479
  }
361
480
  ... on RoutingTransaction {
362
481
  __typename
@@ -507,24 +626,54 @@ query FetchWalletToPaymentRequestsConnection($entity_id: ID!, $first: Int, $afte
507
626
  graph_node_display_name: display_name
508
627
  graph_node_public_key: public_key
509
628
  }
510
- ... on LightsparkNode {
629
+ ... on LightsparkNodeWithOSK {
511
630
  __typename
512
- lightspark_node_id: id
513
- lightspark_node_created_at: created_at
514
- lightspark_node_updated_at: updated_at
515
- lightspark_node_alias: alias
516
- lightspark_node_bitcoin_network: bitcoin_network
517
- lightspark_node_color: color
518
- lightspark_node_conductivity: conductivity
519
- lightspark_node_display_name: display_name
520
- lightspark_node_public_key: public_key
521
- lightspark_node_account: account {
631
+ lightspark_node_with_o_s_k_id: id
632
+ lightspark_node_with_o_s_k_created_at: created_at
633
+ lightspark_node_with_o_s_k_updated_at: updated_at
634
+ lightspark_node_with_o_s_k_alias: alias
635
+ lightspark_node_with_o_s_k_bitcoin_network: bitcoin_network
636
+ lightspark_node_with_o_s_k_color: color
637
+ lightspark_node_with_o_s_k_conductivity: conductivity
638
+ lightspark_node_with_o_s_k_display_name: display_name
639
+ lightspark_node_with_o_s_k_public_key: public_key
640
+ lightspark_node_with_o_s_k_owner: owner {
522
641
  id
523
642
  }
524
- lightspark_node_owner: owner {
525
- id
643
+ lightspark_node_with_o_s_k_status: status
644
+ lightspark_node_with_o_s_k_total_balance: total_balance {
645
+ __typename
646
+ currency_amount_original_value: original_value
647
+ currency_amount_original_unit: original_unit
648
+ currency_amount_preferred_currency_unit: preferred_currency_unit
649
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
650
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
651
+ }
652
+ lightspark_node_with_o_s_k_total_local_balance: total_local_balance {
653
+ __typename
654
+ currency_amount_original_value: original_value
655
+ currency_amount_original_unit: original_unit
656
+ currency_amount_preferred_currency_unit: preferred_currency_unit
657
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
658
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
526
659
  }
527
- lightspark_node_blockchain_balance: blockchain_balance {
660
+ lightspark_node_with_o_s_k_local_balance: local_balance {
661
+ __typename
662
+ currency_amount_original_value: original_value
663
+ currency_amount_original_unit: original_unit
664
+ currency_amount_preferred_currency_unit: preferred_currency_unit
665
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
666
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
667
+ }
668
+ lightspark_node_with_o_s_k_remote_balance: remote_balance {
669
+ __typename
670
+ currency_amount_original_value: original_value
671
+ currency_amount_original_unit: original_unit
672
+ currency_amount_preferred_currency_unit: preferred_currency_unit
673
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
674
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
675
+ }
676
+ lightspark_node_with_o_s_k_blockchain_balance: blockchain_balance {
528
677
  __typename
529
678
  blockchain_balance_total_balance: total_balance {
530
679
  __typename
@@ -575,12 +724,29 @@ query FetchWalletToPaymentRequestsConnection($entity_id: ID!, $first: Int, $afte
575
724
  currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
576
725
  }
577
726
  }
578
- lightspark_node_encrypted_signing_private_key: encrypted_signing_private_key {
727
+ lightspark_node_with_o_s_k_uma_prescreening_utxos: uma_prescreening_utxos
728
+ lightspark_node_with_o_s_k_encrypted_signing_private_key: encrypted_signing_private_key {
579
729
  __typename
580
730
  secret_encrypted_value: encrypted_value
581
731
  secret_cipher: cipher
582
732
  }
583
- lightspark_node_total_balance: total_balance {
733
+ }
734
+ ... on LightsparkNodeWithRemoteSigning {
735
+ __typename
736
+ lightspark_node_with_remote_signing_id: id
737
+ lightspark_node_with_remote_signing_created_at: created_at
738
+ lightspark_node_with_remote_signing_updated_at: updated_at
739
+ lightspark_node_with_remote_signing_alias: alias
740
+ lightspark_node_with_remote_signing_bitcoin_network: bitcoin_network
741
+ lightspark_node_with_remote_signing_color: color
742
+ lightspark_node_with_remote_signing_conductivity: conductivity
743
+ lightspark_node_with_remote_signing_display_name: display_name
744
+ lightspark_node_with_remote_signing_public_key: public_key
745
+ lightspark_node_with_remote_signing_owner: owner {
746
+ id
747
+ }
748
+ lightspark_node_with_remote_signing_status: status
749
+ lightspark_node_with_remote_signing_total_balance: total_balance {
584
750
  __typename
585
751
  currency_amount_original_value: original_value
586
752
  currency_amount_original_unit: original_unit
@@ -588,7 +754,7 @@ query FetchWalletToPaymentRequestsConnection($entity_id: ID!, $first: Int, $afte
588
754
  currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
589
755
  currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
590
756
  }
591
- lightspark_node_total_local_balance: total_local_balance {
757
+ lightspark_node_with_remote_signing_total_local_balance: total_local_balance {
592
758
  __typename
593
759
  currency_amount_original_value: original_value
594
760
  currency_amount_original_unit: original_unit
@@ -596,7 +762,7 @@ query FetchWalletToPaymentRequestsConnection($entity_id: ID!, $first: Int, $afte
596
762
  currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
597
763
  currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
598
764
  }
599
- lightspark_node_local_balance: local_balance {
765
+ lightspark_node_with_remote_signing_local_balance: local_balance {
600
766
  __typename
601
767
  currency_amount_original_value: original_value
602
768
  currency_amount_original_unit: original_unit
@@ -604,8 +770,7 @@ query FetchWalletToPaymentRequestsConnection($entity_id: ID!, $first: Int, $afte
604
770
  currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
605
771
  currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
606
772
  }
607
- lightspark_node_purpose: purpose
608
- lightspark_node_remote_balance: remote_balance {
773
+ lightspark_node_with_remote_signing_remote_balance: remote_balance {
609
774
  __typename
610
775
  currency_amount_original_value: original_value
611
776
  currency_amount_original_unit: original_unit
@@ -613,7 +778,58 @@ query FetchWalletToPaymentRequestsConnection($entity_id: ID!, $first: Int, $afte
613
778
  currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
614
779
  currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
615
780
  }
616
- lightspark_node_status: status
781
+ lightspark_node_with_remote_signing_blockchain_balance: blockchain_balance {
782
+ __typename
783
+ blockchain_balance_total_balance: total_balance {
784
+ __typename
785
+ currency_amount_original_value: original_value
786
+ currency_amount_original_unit: original_unit
787
+ currency_amount_preferred_currency_unit: preferred_currency_unit
788
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
789
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
790
+ }
791
+ blockchain_balance_confirmed_balance: confirmed_balance {
792
+ __typename
793
+ currency_amount_original_value: original_value
794
+ currency_amount_original_unit: original_unit
795
+ currency_amount_preferred_currency_unit: preferred_currency_unit
796
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
797
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
798
+ }
799
+ blockchain_balance_unconfirmed_balance: unconfirmed_balance {
800
+ __typename
801
+ currency_amount_original_value: original_value
802
+ currency_amount_original_unit: original_unit
803
+ currency_amount_preferred_currency_unit: preferred_currency_unit
804
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
805
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
806
+ }
807
+ blockchain_balance_locked_balance: locked_balance {
808
+ __typename
809
+ currency_amount_original_value: original_value
810
+ currency_amount_original_unit: original_unit
811
+ currency_amount_preferred_currency_unit: preferred_currency_unit
812
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
813
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
814
+ }
815
+ blockchain_balance_required_reserve: required_reserve {
816
+ __typename
817
+ currency_amount_original_value: original_value
818
+ currency_amount_original_unit: original_unit
819
+ currency_amount_preferred_currency_unit: preferred_currency_unit
820
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
821
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
822
+ }
823
+ blockchain_balance_available_balance: available_balance {
824
+ __typename
825
+ currency_amount_original_value: original_value
826
+ currency_amount_original_unit: original_unit
827
+ currency_amount_preferred_currency_unit: preferred_currency_unit
828
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
829
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
830
+ }
831
+ }
832
+ lightspark_node_with_remote_signing_uma_prescreening_utxos: uma_prescreening_utxos
617
833
  }
618
834
  }
619
835
  }
@@ -746,6 +962,7 @@ export const WalletFromJson = (obj: any): Wallet => {
746
962
  !!obj["wallet_balances"]
747
963
  ? BalancesFromJson(obj["wallet_balances"])
748
964
  : undefined,
965
+ obj["wallet_account"]?.id ?? undefined,
749
966
  );
750
967
  };
751
968
 
@@ -784,6 +1001,9 @@ fragment WalletFragment on Wallet {
784
1001
  }
785
1002
  }
786
1003
  wallet_third_party_identifier: third_party_identifier
1004
+ wallet_account: account {
1005
+ id
1006
+ }
787
1007
  wallet_status: status
788
1008
  }`;
789
1009
 
@@ -21,6 +21,7 @@ export {
21
21
  } from "./ChannelOpeningTransaction.js";
22
22
  export { default as ChannelStatus } from "./ChannelStatus.js";
23
23
  export { default as ChannelToTransactionsConnection } from "./ChannelToTransactionsConnection.js";
24
+ export { default as ComplianceProvider } from "./ComplianceProvider.js";
24
25
  export { default as Connection } from "./Connection.js";
25
26
  export { default as CreateApiTokenInput } from "./CreateApiTokenInput.js";
26
27
  export { default as CreateApiTokenOutput } from "./CreateApiTokenOutput.js";
@@ -33,9 +34,11 @@ export { default as CreateTestModeInvoiceInput } from "./CreateTestModeInvoiceIn
33
34
  export { default as CreateTestModeInvoiceOutput } from "./CreateTestModeInvoiceOutput.js";
34
35
  export { default as CreateTestModePaymentInput } from "./CreateTestModePaymentInput.js";
35
36
  export { default as CreateTestModePaymentoutput } from "./CreateTestModePaymentoutput.js";
36
- export { default as CryptoSanctionsScreeningProvider } from "./CryptoSanctionsScreeningProvider.js";
37
+ export { default as CreateUmaInvoiceInput } from "./CreateUmaInvoiceInput.js";
37
38
  export { default as CurrencyAmount } from "./CurrencyAmount.js";
38
39
  export { default as CurrencyUnit } from "./CurrencyUnit.js";
40
+ export { default as DeclineToSignMessagesInput } from "./DeclineToSignMessagesInput.js";
41
+ export { default as DeclineToSignMessagesOutput } from "./DeclineToSignMessagesOutput.js";
39
42
  export { default as DeleteApiTokenInput } from "./DeleteApiTokenInput.js";
40
43
  export { default as DeleteApiTokenOutput } from "./DeleteApiTokenOutput.js";
41
44
  export { default as Deposit, getDepositQuery } from "./Deposit.js";
@@ -46,6 +49,7 @@ export { default as FundNodeOutput } from "./FundNodeOutput.js";
46
49
  export { default as GraphNode } from "./GraphNode.js";
47
50
  export { default as Hop, getHopQuery } from "./Hop.js";
48
51
  export { default as HtlcAttemptFailureCode } from "./HtlcAttemptFailureCode.js";
52
+ export { default as IdAndSignature } from "./IdAndSignature.js";
49
53
  export { default as IncomingPayment } from "./IncomingPayment.js";
50
54
  export {
51
55
  default as IncomingPaymentAttempt,
@@ -68,9 +72,10 @@ export {
68
72
  default as LightsparkNodeOwner,
69
73
  getLightsparkNodeOwnerQuery,
70
74
  } from "./LightsparkNodeOwner.js";
71
- export { default as LightsparkNodePurpose } from "./LightsparkNodePurpose.js";
72
75
  export { default as LightsparkNodeStatus } from "./LightsparkNodeStatus.js";
73
76
  export { default as LightsparkNodeToChannelsConnection } from "./LightsparkNodeToChannelsConnection.js";
77
+ export { default as LightsparkNodeWithOSK } from "./LightsparkNodeWithOSK.js";
78
+ export { default as LightsparkNodeWithRemoteSigning } from "./LightsparkNodeWithRemoteSigning.js";
74
79
  export { default as Node } from "./Node.js";
75
80
  export { default as NodeAddress } from "./NodeAddress.js";
76
81
  export { default as NodeAddressType } from "./NodeAddressType.js";
@@ -83,10 +88,13 @@ export { default as OutgoingPayment } from "./OutgoingPayment.js";
83
88
  export { default as OutgoingPaymentAttempt } from "./OutgoingPaymentAttempt.js";
84
89
  export { default as OutgoingPaymentAttemptStatus } from "./OutgoingPaymentAttemptStatus.js";
85
90
  export { default as OutgoingPaymentAttemptToHopsConnection } from "./OutgoingPaymentAttemptToHopsConnection.js";
91
+ export { default as OutgoingPaymentsForInvoiceQueryInput } from "./OutgoingPaymentsForInvoiceQueryInput.js";
92
+ export { default as OutgoingPaymentsForInvoiceQueryOutput } from "./OutgoingPaymentsForInvoiceQueryOutput.js";
86
93
  export { default as OutgoingPaymentToAttemptsConnection } from "./OutgoingPaymentToAttemptsConnection.js";
87
94
  export { default as PageInfo } from "./PageInfo.js";
88
95
  export { default as PayInvoiceInput } from "./PayInvoiceInput.js";
89
96
  export { default as PayInvoiceOutput } from "./PayInvoiceOutput.js";
97
+ export { default as PaymentDirection } from "./PaymentDirection.js";
90
98
  export { default as PaymentFailureReason } from "./PaymentFailureReason.js";
91
99
  export {
92
100
  default as PaymentRequest,
@@ -94,7 +102,16 @@ export {
94
102
  } from "./PaymentRequest.js";
95
103
  export { default as PaymentRequestData } from "./PaymentRequestData.js";
96
104
  export { default as PaymentRequestStatus } from "./PaymentRequestStatus.js";
105
+ export { default as PayUmaInvoiceInput } from "./PayUmaInvoiceInput.js";
97
106
  export { default as Permission } from "./Permission.js";
107
+ export { default as PostTransactionData } from "./PostTransactionData.js";
108
+ export { default as RegisterPaymentInput } from "./RegisterPaymentInput.js";
109
+ export { default as RegisterPaymentOutput } from "./RegisterPaymentOutput.js";
110
+ export { default as ReleaseChannelPerCommitmentSecretInput } from "./ReleaseChannelPerCommitmentSecretInput.js";
111
+ export { default as ReleaseChannelPerCommitmentSecretOutput } from "./ReleaseChannelPerCommitmentSecretOutput.js";
112
+ export { default as ReleasePaymentPreimageInput } from "./ReleasePaymentPreimageInput.js";
113
+ export { default as ReleasePaymentPreimageOutput } from "./ReleasePaymentPreimageOutput.js";
114
+ export { default as RemoteSigningSubEventType } from "./RemoteSigningSubEventType.js";
98
115
  export { default as RequestWithdrawalInput } from "./RequestWithdrawalInput.js";
99
116
  export { default as RequestWithdrawalOutput } from "./RequestWithdrawalOutput.js";
100
117
  export { default as RichText } from "./RichText.js";
@@ -104,17 +121,33 @@ export {
104
121
  getRoutingTransactionQuery,
105
122
  } from "./RoutingTransaction.js";
106
123
  export { default as RoutingTransactionFailureReason } from "./RoutingTransactionFailureReason.js";
107
- export { default as ScreenBitcoinAddressesInput } from "./ScreenBitcoinAddressesInput.js";
108
- export { default as ScreenBitcoinAddressesOutput } from "./ScreenBitcoinAddressesOutput.js";
124
+ export { default as ScreenNodeInput } from "./ScreenNodeInput.js";
125
+ export { default as ScreenNodeOutput } from "./ScreenNodeOutput.js";
109
126
  export { default as Secret } from "./Secret.js";
110
127
  export { default as SendPaymentInput } from "./SendPaymentInput.js";
111
128
  export { default as SendPaymentOutput } from "./SendPaymentOutput.js";
129
+ export { default as SetInvoicePaymentHashInput } from "./SetInvoicePaymentHashInput.js";
130
+ export { default as SetInvoicePaymentHashOutput } from "./SetInvoicePaymentHashOutput.js";
131
+ export { default as Signable, getSignableQuery } from "./Signable.js";
132
+ export {
133
+ default as SignablePayload,
134
+ getSignablePayloadQuery,
135
+ } from "./SignablePayload.js";
136
+ export { default as SignablePayloadStatus } from "./SignablePayloadStatus.js";
137
+ export { default as SignInvoiceInput } from "./SignInvoiceInput.js";
138
+ export { default as SignInvoiceOutput } from "./SignInvoiceOutput.js";
139
+ export { default as SignMessagesInput } from "./SignMessagesInput.js";
140
+ export { default as SignMessagesOutput } from "./SignMessagesOutput.js";
112
141
  export { default as SingleNodeDashboard } from "./SingleNodeDashboard.js";
113
142
  export { default as Transaction, getTransactionQuery } from "./Transaction.js";
114
143
  export { default as TransactionFailures } from "./TransactionFailures.js";
115
144
  export { default as TransactionStatus } from "./TransactionStatus.js";
116
145
  export { default as TransactionType } from "./TransactionType.js";
117
146
  export { default as TransactionUpdate } from "./TransactionUpdate.js";
147
+ export { default as UpdateChannelPerCommitmentPointInput } from "./UpdateChannelPerCommitmentPointInput.js";
148
+ export { default as UpdateChannelPerCommitmentPointOutput } from "./UpdateChannelPerCommitmentPointOutput.js";
149
+ export { default as UpdateNodeSharedSecretInput } from "./UpdateNodeSharedSecretInput.js";
150
+ export { default as UpdateNodeSharedSecretOutput } from "./UpdateNodeSharedSecretOutput.js";
118
151
  export { default as Wallet } from "./Wallet.js";
119
152
  export { default as WalletStatus } from "./WalletStatus.js";
120
153
  export { default as WalletToPaymentRequestsConnection } from "./WalletToPaymentRequestsConnection.js";
@@ -1,23 +0,0 @@
1
- // Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved
2
-
3
- import CryptoSanctionsScreeningProvider from "./CryptoSanctionsScreeningProvider.js";
4
-
5
- type ScreenBitcoinAddressesInput = {
6
- provider: CryptoSanctionsScreeningProvider;
7
-
8
- addresses: string[];
9
- };
10
-
11
- export const ScreenBitcoinAddressesInputFromJson = (
12
- obj: any,
13
- ): ScreenBitcoinAddressesInput => {
14
- return {
15
- provider:
16
- CryptoSanctionsScreeningProvider[
17
- obj["screen_bitcoin_addresses_input_provider"]
18
- ] ?? CryptoSanctionsScreeningProvider.FUTURE_VALUE,
19
- addresses: obj["screen_bitcoin_addresses_input_addresses"],
20
- } as ScreenBitcoinAddressesInput;
21
- };
22
-
23
- export default ScreenBitcoinAddressesInput;