@lightsparkdev/lightspark-sdk 1.5.11 → 1.5.13

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 (45) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/{chunk-X7VPX3F3.js → chunk-FGFVWCTL.js} +234 -161
  3. package/dist/{index-dd1501fa.d.ts → index-2b493387.d.ts} +147 -17
  4. package/dist/index.cjs +227 -152
  5. package/dist/index.d.cts +2 -2
  6. package/dist/index.d.ts +2 -2
  7. package/dist/index.js +7 -3
  8. package/dist/objects/index.cjs +226 -151
  9. package/dist/objects/index.d.cts +1 -1
  10. package/dist/objects/index.d.ts +1 -1
  11. package/dist/objects/index.js +5 -1
  12. package/package.json +2 -2
  13. package/src/env.ts +3 -3
  14. package/src/objects/Account.ts +5 -0
  15. package/src/objects/ApiToken.ts +6 -0
  16. package/src/objects/AuditLogActor.ts +96 -0
  17. package/src/objects/CancelInvoiceInput.ts +4 -0
  18. package/src/objects/CancelInvoiceOutput.ts +4 -0
  19. package/src/objects/ChannelSnapshot.ts +68 -17
  20. package/src/objects/ClaimUmaInvitationInput.ts +5 -0
  21. package/src/objects/ClaimUmaInvitationOutput.ts +1 -0
  22. package/src/objects/ClaimUmaInvitationWithIncentivesInput.ts +7 -0
  23. package/src/objects/ClaimUmaInvitationWithIncentivesOutput.ts +1 -0
  24. package/src/objects/CreateApiTokenOutput.ts +1 -0
  25. package/src/objects/CreateInvitationWithIncentivesInput.ts +6 -0
  26. package/src/objects/CreateInvitationWithIncentivesOutput.ts +1 -0
  27. package/src/objects/CreateInvoiceInput.ts +4 -1
  28. package/src/objects/CreateNodeWalletAddressOutput.ts +34 -0
  29. package/src/objects/CreateUmaInvitationInput.ts +4 -0
  30. package/src/objects/CreateUmaInvitationOutput.ts +1 -0
  31. package/src/objects/Entity.ts +57 -45
  32. package/src/objects/IncomingPayment.ts +13 -0
  33. package/src/objects/IncomingPaymentsForInvoiceQueryInput.ts +31 -0
  34. package/src/objects/IncomingPaymentsForInvoiceQueryOutput.ts +71 -0
  35. package/src/objects/LightningTransaction.ts +12 -0
  36. package/src/objects/MultiSigAddressValidationParameters.ts +45 -0
  37. package/src/objects/OutgoingPayment.ts +14 -45
  38. package/src/objects/OutgoingPaymentAttempt.ts +5 -59
  39. package/src/objects/OutgoingPaymentsForInvoiceQueryOutput.ts +343 -1
  40. package/src/objects/PaymentFailureReason.ts +2 -0
  41. package/src/objects/Transaction.ts +12 -0
  42. package/src/objects/Wallet.ts +4 -0
  43. package/src/objects/WebhookEventType.ts +2 -0
  44. package/src/objects/WithdrawalRequestStatus.ts +2 -0
  45. package/src/objects/index.ts +11 -1
@@ -65,6 +65,7 @@ var ApiTokenFromJson = (obj) => {
65
65
  clientId: obj["api_token_client_id"],
66
66
  name: obj["api_token_name"],
67
67
  permissions: obj["api_token_permissions"].map((e) => Permission_default[e]),
68
+ isDeleted: obj["api_token_is_deleted"],
68
69
  typename: "ApiToken"
69
70
  };
70
71
  };
@@ -77,6 +78,7 @@ fragment ApiTokenFragment on ApiToken {
77
78
  api_token_client_id: client_id
78
79
  api_token_name: name
79
80
  api_token_permissions: permissions
81
+ api_token_is_deleted: is_deleted
80
82
  }`;
81
83
  var getApiTokenQuery = (id) => {
82
84
  return {
@@ -3198,13 +3200,15 @@ var TransactionStatus_default = TransactionStatus;
3198
3200
 
3199
3201
  // src/objects/IncomingPayment.ts
3200
3202
  var IncomingPayment = class {
3201
- constructor(id, createdAt, updatedAt, status, amount, destinationId, typename, resolvedAt, transactionHash, paymentRequestId, umaPostTransactionData) {
3203
+ constructor(id, createdAt, updatedAt, status, amount, isUma, destinationId, isInternalPayment, typename, resolvedAt, transactionHash, paymentRequestId, umaPostTransactionData) {
3202
3204
  this.id = id;
3203
3205
  this.createdAt = createdAt;
3204
3206
  this.updatedAt = updatedAt;
3205
3207
  this.status = status;
3206
3208
  this.amount = amount;
3209
+ this.isUma = isUma;
3207
3210
  this.destinationId = destinationId;
3211
+ this.isInternalPayment = isInternalPayment;
3208
3212
  this.typename = typename;
3209
3213
  this.resolvedAt = resolvedAt;
3210
3214
  this.transactionHash = transactionHash;
@@ -3291,9 +3295,11 @@ ${FRAGMENT12}
3291
3295
  incoming_payment_resolved_at: this.resolvedAt,
3292
3296
  incoming_payment_amount: CurrencyAmountToJson(this.amount),
3293
3297
  incoming_payment_transaction_hash: this.transactionHash,
3298
+ incoming_payment_is_uma: this.isUma,
3294
3299
  incoming_payment_destination: { id: this.destinationId },
3295
3300
  incoming_payment_payment_request: { id: this.paymentRequestId },
3296
- incoming_payment_uma_post_transaction_data: this.umaPostTransactionData?.map((e) => PostTransactionDataToJson(e))
3301
+ incoming_payment_uma_post_transaction_data: this.umaPostTransactionData?.map((e) => PostTransactionDataToJson(e)),
3302
+ incoming_payment_is_internal_payment: this.isInternalPayment
3297
3303
  };
3298
3304
  }
3299
3305
  };
@@ -3304,7 +3310,9 @@ var IncomingPaymentFromJson = (obj) => {
3304
3310
  obj["incoming_payment_updated_at"],
3305
3311
  TransactionStatus_default[obj["incoming_payment_status"]] ?? TransactionStatus_default.FUTURE_VALUE,
3306
3312
  CurrencyAmountFromJson(obj["incoming_payment_amount"]),
3313
+ obj["incoming_payment_is_uma"],
3307
3314
  obj["incoming_payment_destination"].id,
3315
+ obj["incoming_payment_is_internal_payment"],
3308
3316
  "IncomingPayment",
3309
3317
  obj["incoming_payment_resolved_at"],
3310
3318
  obj["incoming_payment_transaction_hash"],
@@ -3331,6 +3339,7 @@ fragment IncomingPaymentFragment on IncomingPayment {
3331
3339
  currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
3332
3340
  }
3333
3341
  incoming_payment_transaction_hash: transaction_hash
3342
+ incoming_payment_is_uma: is_uma
3334
3343
  incoming_payment_destination: destination {
3335
3344
  id
3336
3345
  }
@@ -3349,33 +3358,10 @@ fragment IncomingPaymentFragment on IncomingPayment {
3349
3358
  currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
3350
3359
  }
3351
3360
  }
3361
+ incoming_payment_is_internal_payment: is_internal_payment
3352
3362
  }`;
3353
3363
  var IncomingPayment_default = IncomingPayment;
3354
3364
 
3355
- // src/objects/ChannelSnapshot.ts
3356
- var ChannelSnapshotFromJson = (obj) => {
3357
- return {
3358
- channelId: obj["channel_snapshot_channel"].id,
3359
- timestamp: obj["channel_snapshot_timestamp"],
3360
- localBalance: !!obj["channel_snapshot_local_balance"] ? CurrencyAmountFromJson(obj["channel_snapshot_local_balance"]) : void 0,
3361
- localUnsettledBalance: !!obj["channel_snapshot_local_unsettled_balance"] ? CurrencyAmountFromJson(obj["channel_snapshot_local_unsettled_balance"]) : void 0,
3362
- localChannelReserve: !!obj["channel_snapshot_local_channel_reserve"] ? CurrencyAmountFromJson(obj["channel_snapshot_local_channel_reserve"]) : void 0,
3363
- remoteBalance: !!obj["channel_snapshot_remote_balance"] ? CurrencyAmountFromJson(obj["channel_snapshot_remote_balance"]) : void 0,
3364
- remoteUnsettledBalance: !!obj["channel_snapshot_remote_unsettled_balance"] ? CurrencyAmountFromJson(obj["channel_snapshot_remote_unsettled_balance"]) : void 0
3365
- };
3366
- };
3367
- var ChannelSnapshotToJson = (obj) => {
3368
- return {
3369
- channel_snapshot_channel: { id: obj.channelId },
3370
- channel_snapshot_timestamp: obj.timestamp,
3371
- channel_snapshot_local_balance: obj.localBalance ? CurrencyAmountToJson(obj.localBalance) : void 0,
3372
- channel_snapshot_local_unsettled_balance: obj.localUnsettledBalance ? CurrencyAmountToJson(obj.localUnsettledBalance) : void 0,
3373
- channel_snapshot_local_channel_reserve: obj.localChannelReserve ? CurrencyAmountToJson(obj.localChannelReserve) : void 0,
3374
- channel_snapshot_remote_balance: obj.remoteBalance ? CurrencyAmountToJson(obj.remoteBalance) : void 0,
3375
- channel_snapshot_remote_unsettled_balance: obj.remoteUnsettledBalance ? CurrencyAmountToJson(obj.remoteUnsettledBalance) : void 0
3376
- };
3377
- };
3378
-
3379
3365
  // src/objects/HtlcAttemptFailureCode.ts
3380
3366
  var HtlcAttemptFailureCode = /* @__PURE__ */ ((HtlcAttemptFailureCode2) => {
3381
3367
  HtlcAttemptFailureCode2["FUTURE_VALUE"] = "FUTURE_VALUE";
@@ -3499,7 +3485,7 @@ var OutgoingPaymentAttemptToHopsConnectionFromJson = (obj) => {
3499
3485
 
3500
3486
  // src/objects/OutgoingPaymentAttempt.ts
3501
3487
  var OutgoingPaymentAttempt = class {
3502
- constructor(id, createdAt, updatedAt, status, attemptedAt, outgoingPaymentId, typename, failureCode, failureSourceIndex, resolvedAt, amount, fees, channelSnapshot) {
3488
+ constructor(id, createdAt, updatedAt, status, attemptedAt, outgoingPaymentId, typename, failureCode, failureSourceIndex, resolvedAt, amount, fees, channelSnapshotId) {
3503
3489
  this.id = id;
3504
3490
  this.createdAt = createdAt;
3505
3491
  this.updatedAt = updatedAt;
@@ -3512,7 +3498,7 @@ var OutgoingPaymentAttempt = class {
3512
3498
  this.resolvedAt = resolvedAt;
3513
3499
  this.amount = amount;
3514
3500
  this.fees = fees;
3515
- this.channelSnapshot = channelSnapshot;
3501
+ this.channelSnapshotId = channelSnapshotId;
3516
3502
  autoBind(this);
3517
3503
  }
3518
3504
  async getHops(client, first = void 0, after = void 0) {
@@ -3602,7 +3588,7 @@ ${FRAGMENT14}
3602
3588
  outgoing_payment_attempt_amount: this.amount ? CurrencyAmountToJson(this.amount) : void 0,
3603
3589
  outgoing_payment_attempt_fees: this.fees ? CurrencyAmountToJson(this.fees) : void 0,
3604
3590
  outgoing_payment_attempt_outgoing_payment: { id: this.outgoingPaymentId },
3605
- outgoing_payment_attempt_channel_snapshot: this.channelSnapshot ? ChannelSnapshotToJson(this.channelSnapshot) : void 0
3591
+ outgoing_payment_attempt_channel_snapshot: { id: this.channelSnapshotId }
3606
3592
  };
3607
3593
  }
3608
3594
  };
@@ -3620,9 +3606,7 @@ var OutgoingPaymentAttemptFromJson = (obj) => {
3620
3606
  obj["outgoing_payment_attempt_resolved_at"],
3621
3607
  !!obj["outgoing_payment_attempt_amount"] ? CurrencyAmountFromJson(obj["outgoing_payment_attempt_amount"]) : void 0,
3622
3608
  !!obj["outgoing_payment_attempt_fees"] ? CurrencyAmountFromJson(obj["outgoing_payment_attempt_fees"]) : void 0,
3623
- !!obj["outgoing_payment_attempt_channel_snapshot"] ? ChannelSnapshotFromJson(
3624
- obj["outgoing_payment_attempt_channel_snapshot"]
3625
- ) : void 0
3609
+ obj["outgoing_payment_attempt_channel_snapshot"]?.id ?? void 0
3626
3610
  );
3627
3611
  };
3628
3612
  var FRAGMENT14 = `
@@ -3656,51 +3640,7 @@ fragment OutgoingPaymentAttemptFragment on OutgoingPaymentAttempt {
3656
3640
  id
3657
3641
  }
3658
3642
  outgoing_payment_attempt_channel_snapshot: channel_snapshot {
3659
- __typename
3660
- channel_snapshot_channel: channel {
3661
- id
3662
- }
3663
- channel_snapshot_timestamp: timestamp
3664
- channel_snapshot_local_balance: local_balance {
3665
- __typename
3666
- currency_amount_original_value: original_value
3667
- currency_amount_original_unit: original_unit
3668
- currency_amount_preferred_currency_unit: preferred_currency_unit
3669
- currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
3670
- currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
3671
- }
3672
- channel_snapshot_local_unsettled_balance: local_unsettled_balance {
3673
- __typename
3674
- currency_amount_original_value: original_value
3675
- currency_amount_original_unit: original_unit
3676
- currency_amount_preferred_currency_unit: preferred_currency_unit
3677
- currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
3678
- currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
3679
- }
3680
- channel_snapshot_local_channel_reserve: local_channel_reserve {
3681
- __typename
3682
- currency_amount_original_value: original_value
3683
- currency_amount_original_unit: original_unit
3684
- currency_amount_preferred_currency_unit: preferred_currency_unit
3685
- currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
3686
- currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
3687
- }
3688
- channel_snapshot_remote_balance: remote_balance {
3689
- __typename
3690
- currency_amount_original_value: original_value
3691
- currency_amount_original_unit: original_unit
3692
- currency_amount_preferred_currency_unit: preferred_currency_unit
3693
- currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
3694
- currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
3695
- }
3696
- channel_snapshot_remote_unsettled_balance: remote_unsettled_balance {
3697
- __typename
3698
- currency_amount_original_value: original_value
3699
- currency_amount_original_unit: original_unit
3700
- currency_amount_preferred_currency_unit: preferred_currency_unit
3701
- currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
3702
- currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
3703
- }
3643
+ id
3704
3644
  }
3705
3645
  }`;
3706
3646
  var OutgoingPaymentAttempt_default = OutgoingPaymentAttempt;
@@ -3731,6 +3671,7 @@ var PaymentFailureReason = /* @__PURE__ */ ((PaymentFailureReason2) => {
3731
3671
  PaymentFailureReason2["INVOICE_ALREADY_PAID"] = "INVOICE_ALREADY_PAID";
3732
3672
  PaymentFailureReason2["SELF_PAYMENT"] = "SELF_PAYMENT";
3733
3673
  PaymentFailureReason2["INVOICE_EXPIRED"] = "INVOICE_EXPIRED";
3674
+ PaymentFailureReason2["INVOICE_CANCELLED"] = "INVOICE_CANCELLED";
3734
3675
  PaymentFailureReason2["RISK_SCREENING_FAILED"] = "RISK_SCREENING_FAILED";
3735
3676
  return PaymentFailureReason2;
3736
3677
  })(PaymentFailureReason || {});
@@ -3792,13 +3733,15 @@ var RichTextToJson = (obj) => {
3792
3733
 
3793
3734
  // src/objects/OutgoingPayment.ts
3794
3735
  var OutgoingPayment = class {
3795
- constructor(id, createdAt, updatedAt, status, amount, originId, typename, resolvedAt, transactionHash, destinationId, fees, paymentRequestData, failureReason, failureMessage, umaPostTransactionData, paymentPreimage) {
3736
+ constructor(id, createdAt, updatedAt, status, amount, isUma, originId, isInternalPayment, typename, resolvedAt, transactionHash, destinationId, fees, paymentRequestData, failureReason, failureMessage, umaPostTransactionData, paymentPreimage) {
3796
3737
  this.id = id;
3797
3738
  this.createdAt = createdAt;
3798
3739
  this.updatedAt = updatedAt;
3799
3740
  this.status = status;
3800
3741
  this.amount = amount;
3742
+ this.isUma = isUma;
3801
3743
  this.originId = originId;
3744
+ this.isInternalPayment = isInternalPayment;
3802
3745
  this.typename = typename;
3803
3746
  this.resolvedAt = resolvedAt;
3804
3747
  this.transactionHash = transactionHash;
@@ -3857,51 +3800,7 @@ query FetchOutgoingPaymentToAttemptsConnection($entity_id: ID!, $first: Int, $af
3857
3800
  id
3858
3801
  }
3859
3802
  outgoing_payment_attempt_channel_snapshot: channel_snapshot {
3860
- __typename
3861
- channel_snapshot_channel: channel {
3862
- id
3863
- }
3864
- channel_snapshot_timestamp: timestamp
3865
- channel_snapshot_local_balance: local_balance {
3866
- __typename
3867
- currency_amount_original_value: original_value
3868
- currency_amount_original_unit: original_unit
3869
- currency_amount_preferred_currency_unit: preferred_currency_unit
3870
- currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
3871
- currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
3872
- }
3873
- channel_snapshot_local_unsettled_balance: local_unsettled_balance {
3874
- __typename
3875
- currency_amount_original_value: original_value
3876
- currency_amount_original_unit: original_unit
3877
- currency_amount_preferred_currency_unit: preferred_currency_unit
3878
- currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
3879
- currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
3880
- }
3881
- channel_snapshot_local_channel_reserve: local_channel_reserve {
3882
- __typename
3883
- currency_amount_original_value: original_value
3884
- currency_amount_original_unit: original_unit
3885
- currency_amount_preferred_currency_unit: preferred_currency_unit
3886
- currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
3887
- currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
3888
- }
3889
- channel_snapshot_remote_balance: remote_balance {
3890
- __typename
3891
- currency_amount_original_value: original_value
3892
- currency_amount_original_unit: original_unit
3893
- currency_amount_preferred_currency_unit: preferred_currency_unit
3894
- currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
3895
- currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
3896
- }
3897
- channel_snapshot_remote_unsettled_balance: remote_unsettled_balance {
3898
- __typename
3899
- currency_amount_original_value: original_value
3900
- currency_amount_original_unit: original_unit
3901
- currency_amount_preferred_currency_unit: preferred_currency_unit
3902
- currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
3903
- currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
3904
- }
3803
+ id
3905
3804
  }
3906
3805
  }
3907
3806
  }
@@ -3943,6 +3842,7 @@ ${FRAGMENT15}
3943
3842
  outgoing_payment_resolved_at: this.resolvedAt,
3944
3843
  outgoing_payment_amount: CurrencyAmountToJson(this.amount),
3945
3844
  outgoing_payment_transaction_hash: this.transactionHash,
3845
+ outgoing_payment_is_uma: this.isUma,
3946
3846
  outgoing_payment_origin: { id: this.originId },
3947
3847
  outgoing_payment_destination: { id: this.destinationId },
3948
3848
  outgoing_payment_fees: this.fees ? CurrencyAmountToJson(this.fees) : void 0,
@@ -3950,7 +3850,8 @@ ${FRAGMENT15}
3950
3850
  outgoing_payment_failure_reason: this.failureReason,
3951
3851
  outgoing_payment_failure_message: this.failureMessage ? RichTextToJson(this.failureMessage) : void 0,
3952
3852
  outgoing_payment_uma_post_transaction_data: this.umaPostTransactionData?.map((e) => PostTransactionDataToJson(e)),
3953
- outgoing_payment_payment_preimage: this.paymentPreimage
3853
+ outgoing_payment_payment_preimage: this.paymentPreimage,
3854
+ outgoing_payment_is_internal_payment: this.isInternalPayment
3954
3855
  };
3955
3856
  }
3956
3857
  };
@@ -3961,7 +3862,9 @@ var OutgoingPaymentFromJson = (obj) => {
3961
3862
  obj["outgoing_payment_updated_at"],
3962
3863
  TransactionStatus_default[obj["outgoing_payment_status"]] ?? TransactionStatus_default.FUTURE_VALUE,
3963
3864
  CurrencyAmountFromJson(obj["outgoing_payment_amount"]),
3865
+ obj["outgoing_payment_is_uma"],
3964
3866
  obj["outgoing_payment_origin"].id,
3867
+ obj["outgoing_payment_is_internal_payment"],
3965
3868
  "OutgoingPayment",
3966
3869
  obj["outgoing_payment_resolved_at"],
3967
3870
  obj["outgoing_payment_transaction_hash"],
@@ -3993,6 +3896,7 @@ fragment OutgoingPaymentFragment on OutgoingPayment {
3993
3896
  currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
3994
3897
  }
3995
3898
  outgoing_payment_transaction_hash: transaction_hash
3899
+ outgoing_payment_is_uma: is_uma
3996
3900
  outgoing_payment_origin: origin {
3997
3901
  id
3998
3902
  }
@@ -4319,6 +4223,7 @@ fragment OutgoingPaymentFragment on OutgoingPayment {
4319
4223
  }
4320
4224
  }
4321
4225
  outgoing_payment_payment_preimage: payment_preimage
4226
+ outgoing_payment_is_internal_payment: is_internal_payment
4322
4227
  }`;
4323
4228
  var OutgoingPayment_default = OutgoingPayment;
4324
4229
 
@@ -4395,7 +4300,9 @@ var TransactionFromJson = (obj) => {
4395
4300
  obj["incoming_payment_updated_at"],
4396
4301
  TransactionStatus_default[obj["incoming_payment_status"]] ?? TransactionStatus_default.FUTURE_VALUE,
4397
4302
  CurrencyAmountFromJson(obj["incoming_payment_amount"]),
4303
+ obj["incoming_payment_is_uma"],
4398
4304
  obj["incoming_payment_destination"].id,
4305
+ obj["incoming_payment_is_internal_payment"],
4399
4306
  "IncomingPayment",
4400
4307
  obj["incoming_payment_resolved_at"],
4401
4308
  obj["incoming_payment_transaction_hash"],
@@ -4412,7 +4319,9 @@ var TransactionFromJson = (obj) => {
4412
4319
  obj["outgoing_payment_updated_at"],
4413
4320
  TransactionStatus_default[obj["outgoing_payment_status"]] ?? TransactionStatus_default.FUTURE_VALUE,
4414
4321
  CurrencyAmountFromJson(obj["outgoing_payment_amount"]),
4322
+ obj["outgoing_payment_is_uma"],
4415
4323
  obj["outgoing_payment_origin"].id,
4324
+ obj["outgoing_payment_is_internal_payment"],
4416
4325
  "OutgoingPayment",
4417
4326
  obj["outgoing_payment_resolved_at"],
4418
4327
  obj["outgoing_payment_transaction_hash"],
@@ -4584,6 +4493,7 @@ fragment TransactionFragment on Transaction {
4584
4493
  currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
4585
4494
  }
4586
4495
  incoming_payment_transaction_hash: transaction_hash
4496
+ incoming_payment_is_uma: is_uma
4587
4497
  incoming_payment_destination: destination {
4588
4498
  id
4589
4499
  }
@@ -4602,6 +4512,7 @@ fragment TransactionFragment on Transaction {
4602
4512
  currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
4603
4513
  }
4604
4514
  }
4515
+ incoming_payment_is_internal_payment: is_internal_payment
4605
4516
  }
4606
4517
  ... on OutgoingPayment {
4607
4518
  __typename
@@ -4619,6 +4530,7 @@ fragment TransactionFragment on Transaction {
4619
4530
  currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
4620
4531
  }
4621
4532
  outgoing_payment_transaction_hash: transaction_hash
4533
+ outgoing_payment_is_uma: is_uma
4622
4534
  outgoing_payment_origin: origin {
4623
4535
  id
4624
4536
  }
@@ -4945,6 +4857,7 @@ fragment TransactionFragment on Transaction {
4945
4857
  }
4946
4858
  }
4947
4859
  outgoing_payment_payment_preimage: payment_preimage
4860
+ outgoing_payment_is_internal_payment: is_internal_payment
4948
4861
  }
4949
4862
  ... on RoutingTransaction {
4950
4863
  __typename
@@ -5116,6 +5029,7 @@ var WithdrawalRequestStatus = /* @__PURE__ */ ((WithdrawalRequestStatus2) => {
5116
5029
  WithdrawalRequestStatus2["FAILED"] = "FAILED";
5117
5030
  WithdrawalRequestStatus2["IN_PROGRESS"] = "IN_PROGRESS";
5118
5031
  WithdrawalRequestStatus2["SUCCESSFUL"] = "SUCCESSFUL";
5032
+ WithdrawalRequestStatus2["PARTIALLY_SUCCESSFUL"] = "PARTIALLY_SUCCESSFUL";
5119
5033
  return WithdrawalRequestStatus2;
5120
5034
  })(WithdrawalRequestStatus || {});
5121
5035
  var WithdrawalRequestStatus_default = WithdrawalRequestStatus;
@@ -5684,6 +5598,7 @@ query FetchWalletToTransactionsConnection($entity_id: ID!, $first: Int, $after:
5684
5598
  currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
5685
5599
  }
5686
5600
  incoming_payment_transaction_hash: transaction_hash
5601
+ incoming_payment_is_uma: is_uma
5687
5602
  incoming_payment_destination: destination {
5688
5603
  id
5689
5604
  }
@@ -5702,6 +5617,7 @@ query FetchWalletToTransactionsConnection($entity_id: ID!, $first: Int, $after:
5702
5617
  currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
5703
5618
  }
5704
5619
  }
5620
+ incoming_payment_is_internal_payment: is_internal_payment
5705
5621
  }
5706
5622
  ... on OutgoingPayment {
5707
5623
  __typename
@@ -5719,6 +5635,7 @@ query FetchWalletToTransactionsConnection($entity_id: ID!, $first: Int, $after:
5719
5635
  currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
5720
5636
  }
5721
5637
  outgoing_payment_transaction_hash: transaction_hash
5638
+ outgoing_payment_is_uma: is_uma
5722
5639
  outgoing_payment_origin: origin {
5723
5640
  id
5724
5641
  }
@@ -6045,6 +5962,7 @@ query FetchWalletToTransactionsConnection($entity_id: ID!, $first: Int, $after:
6045
5962
  }
6046
5963
  }
6047
5964
  outgoing_payment_payment_preimage: payment_preimage
5965
+ outgoing_payment_is_internal_payment: is_internal_payment
6048
5966
  }
6049
5967
  ... on RoutingTransaction {
6050
5968
  __typename
@@ -6762,6 +6680,7 @@ query FetchAccountToApiTokensConnection($first: Int, $after: String) {
6762
6680
  api_token_client_id: client_id
6763
6681
  api_token_name: name
6764
6682
  api_token_permissions: permissions
6683
+ api_token_is_deleted: is_deleted
6765
6684
  }
6766
6685
  }
6767
6686
  }
@@ -7512,6 +7431,7 @@ query FetchAccountToTransactionsConnection($first: Int, $after: String, $types:
7512
7431
  currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
7513
7432
  }
7514
7433
  incoming_payment_transaction_hash: transaction_hash
7434
+ incoming_payment_is_uma: is_uma
7515
7435
  incoming_payment_destination: destination {
7516
7436
  id
7517
7437
  }
@@ -7530,6 +7450,7 @@ query FetchAccountToTransactionsConnection($first: Int, $after: String, $types:
7530
7450
  currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
7531
7451
  }
7532
7452
  }
7453
+ incoming_payment_is_internal_payment: is_internal_payment
7533
7454
  }
7534
7455
  ... on OutgoingPayment {
7535
7456
  __typename
@@ -7547,6 +7468,7 @@ query FetchAccountToTransactionsConnection($first: Int, $after: String, $types:
7547
7468
  currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
7548
7469
  }
7549
7470
  outgoing_payment_transaction_hash: transaction_hash
7471
+ outgoing_payment_is_uma: is_uma
7550
7472
  outgoing_payment_origin: origin {
7551
7473
  id
7552
7474
  }
@@ -7873,6 +7795,7 @@ query FetchAccountToTransactionsConnection($first: Int, $after: String, $types:
7873
7795
  }
7874
7796
  }
7875
7797
  outgoing_payment_payment_preimage: payment_preimage
7798
+ outgoing_payment_is_internal_payment: is_internal_payment
7876
7799
  }
7877
7800
  ... on RoutingTransaction {
7878
7801
  __typename
@@ -8503,6 +8426,145 @@ fragment AccountFragment on Account {
8503
8426
  }`;
8504
8427
  var Account_default = Account;
8505
8428
 
8429
+ // src/objects/AuditLogActor.ts
8430
+ import { LightsparkException as LightsparkException6 } from "@lightsparkdev/core";
8431
+ var AuditLogActorFromJson = (obj) => {
8432
+ if (obj["__typename"] == "ApiToken") {
8433
+ return {
8434
+ id: obj["api_token_id"],
8435
+ createdAt: obj["api_token_created_at"],
8436
+ updatedAt: obj["api_token_updated_at"],
8437
+ clientId: obj["api_token_client_id"],
8438
+ name: obj["api_token_name"],
8439
+ permissions: obj["api_token_permissions"].map((e) => Permission_default[e]),
8440
+ isDeleted: obj["api_token_is_deleted"],
8441
+ typename: "ApiToken"
8442
+ };
8443
+ }
8444
+ throw new LightsparkException6(
8445
+ "DeserializationError",
8446
+ `Couldn't find a concrete type for interface AuditLogActor corresponding to the typename=${obj["__typename"]}`
8447
+ );
8448
+ };
8449
+ var FRAGMENT22 = `
8450
+ fragment AuditLogActorFragment on AuditLogActor {
8451
+ __typename
8452
+ ... on ApiToken {
8453
+ __typename
8454
+ api_token_id: id
8455
+ api_token_created_at: created_at
8456
+ api_token_updated_at: updated_at
8457
+ api_token_client_id: client_id
8458
+ api_token_name: name
8459
+ api_token_permissions: permissions
8460
+ api_token_is_deleted: is_deleted
8461
+ }
8462
+ }`;
8463
+ var getAuditLogActorQuery = (id) => {
8464
+ return {
8465
+ queryPayload: `
8466
+ query GetAuditLogActor($id: ID!) {
8467
+ entity(id: $id) {
8468
+ ... on AuditLogActor {
8469
+ ...AuditLogActorFragment
8470
+ }
8471
+ }
8472
+ }
8473
+
8474
+ ${FRAGMENT22}
8475
+ `,
8476
+ variables: { id },
8477
+ constructObject: (data) => AuditLogActorFromJson(data.entity)
8478
+ };
8479
+ };
8480
+
8481
+ // src/objects/ChannelSnapshot.ts
8482
+ var ChannelSnapshotFromJson = (obj) => {
8483
+ return {
8484
+ id: obj["channel_snapshot_id"],
8485
+ createdAt: obj["channel_snapshot_created_at"],
8486
+ updatedAt: obj["channel_snapshot_updated_at"],
8487
+ channelId: obj["channel_snapshot_channel"].id,
8488
+ timestamp: obj["channel_snapshot_timestamp"],
8489
+ typename: "ChannelSnapshot",
8490
+ localBalance: !!obj["channel_snapshot_local_balance"] ? CurrencyAmountFromJson(obj["channel_snapshot_local_balance"]) : void 0,
8491
+ localUnsettledBalance: !!obj["channel_snapshot_local_unsettled_balance"] ? CurrencyAmountFromJson(obj["channel_snapshot_local_unsettled_balance"]) : void 0,
8492
+ remoteBalance: !!obj["channel_snapshot_remote_balance"] ? CurrencyAmountFromJson(obj["channel_snapshot_remote_balance"]) : void 0,
8493
+ remoteUnsettledBalance: !!obj["channel_snapshot_remote_unsettled_balance"] ? CurrencyAmountFromJson(obj["channel_snapshot_remote_unsettled_balance"]) : void 0,
8494
+ status: obj["channel_snapshot_status"],
8495
+ localChannelReserve: !!obj["channel_snapshot_local_channel_reserve"] ? CurrencyAmountFromJson(obj["channel_snapshot_local_channel_reserve"]) : void 0
8496
+ };
8497
+ };
8498
+ var FRAGMENT23 = `
8499
+ fragment ChannelSnapshotFragment on ChannelSnapshot {
8500
+ __typename
8501
+ channel_snapshot_id: id
8502
+ channel_snapshot_created_at: created_at
8503
+ channel_snapshot_updated_at: updated_at
8504
+ channel_snapshot_local_balance: local_balance {
8505
+ __typename
8506
+ currency_amount_original_value: original_value
8507
+ currency_amount_original_unit: original_unit
8508
+ currency_amount_preferred_currency_unit: preferred_currency_unit
8509
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
8510
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
8511
+ }
8512
+ channel_snapshot_local_unsettled_balance: local_unsettled_balance {
8513
+ __typename
8514
+ currency_amount_original_value: original_value
8515
+ currency_amount_original_unit: original_unit
8516
+ currency_amount_preferred_currency_unit: preferred_currency_unit
8517
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
8518
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
8519
+ }
8520
+ channel_snapshot_remote_balance: remote_balance {
8521
+ __typename
8522
+ currency_amount_original_value: original_value
8523
+ currency_amount_original_unit: original_unit
8524
+ currency_amount_preferred_currency_unit: preferred_currency_unit
8525
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
8526
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
8527
+ }
8528
+ channel_snapshot_remote_unsettled_balance: remote_unsettled_balance {
8529
+ __typename
8530
+ currency_amount_original_value: original_value
8531
+ currency_amount_original_unit: original_unit
8532
+ currency_amount_preferred_currency_unit: preferred_currency_unit
8533
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
8534
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
8535
+ }
8536
+ channel_snapshot_status: status
8537
+ channel_snapshot_channel: channel {
8538
+ id
8539
+ }
8540
+ channel_snapshot_local_channel_reserve: local_channel_reserve {
8541
+ __typename
8542
+ currency_amount_original_value: original_value
8543
+ currency_amount_original_unit: original_unit
8544
+ currency_amount_preferred_currency_unit: preferred_currency_unit
8545
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
8546
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
8547
+ }
8548
+ channel_snapshot_timestamp: timestamp
8549
+ }`;
8550
+ var getChannelSnapshotQuery = (id) => {
8551
+ return {
8552
+ queryPayload: `
8553
+ query GetChannelSnapshot($id: ID!) {
8554
+ entity(id: $id) {
8555
+ ... on ChannelSnapshot {
8556
+ ...ChannelSnapshotFragment
8557
+ }
8558
+ }
8559
+ }
8560
+
8561
+ ${FRAGMENT23}
8562
+ `,
8563
+ variables: { id },
8564
+ constructObject: (data) => ChannelSnapshotFromJson(data.entity)
8565
+ };
8566
+ };
8567
+
8506
8568
  // src/objects/RegionCode.ts
8507
8569
  var RegionCode = /* @__PURE__ */ ((RegionCode2) => {
8508
8570
  RegionCode2["FUTURE_VALUE"] = "FUTURE_VALUE";
@@ -8768,7 +8830,7 @@ var ComplianceProvider = /* @__PURE__ */ ((ComplianceProvider2) => {
8768
8830
  var ComplianceProvider_default = ComplianceProvider;
8769
8831
 
8770
8832
  // src/objects/Connection.ts
8771
- import { LightsparkException as LightsparkException6 } from "@lightsparkdev/core";
8833
+ import { LightsparkException as LightsparkException7 } from "@lightsparkdev/core";
8772
8834
 
8773
8835
  // src/objects/InvoiceType.ts
8774
8836
  var InvoiceType = /* @__PURE__ */ ((InvoiceType2) => {
@@ -8805,7 +8867,7 @@ var SignablePayloadFromJson = (obj) => {
8805
8867
  mulTweak: obj["signable_payload_mul_tweak"]
8806
8868
  };
8807
8869
  };
8808
- var FRAGMENT22 = `
8870
+ var FRAGMENT24 = `
8809
8871
  fragment SignablePayloadFragment on SignablePayload {
8810
8872
  __typename
8811
8873
  signable_payload_id: id
@@ -8831,7 +8893,7 @@ query GetSignablePayload($id: ID!) {
8831
8893
  }
8832
8894
  }
8833
8895
 
8834
- ${FRAGMENT22}
8896
+ ${FRAGMENT24}
8835
8897
  `,
8836
8898
  variables: { id },
8837
8899
  constructObject: (data) => SignablePayloadFromJson(data.entity)
@@ -8857,7 +8919,7 @@ var DepositFromJson = (obj) => {
8857
8919
  numConfirmations: obj["deposit_num_confirmations"]
8858
8920
  };
8859
8921
  };
8860
- var FRAGMENT23 = `
8922
+ var FRAGMENT25 = `
8861
8923
  fragment DepositFragment on Deposit {
8862
8924
  __typename
8863
8925
  deposit_id: id
@@ -8901,7 +8963,7 @@ query GetDeposit($id: ID!) {
8901
8963
  }
8902
8964
  }
8903
8965
 
8904
- ${FRAGMENT23}
8966
+ ${FRAGMENT25}
8905
8967
  `,
8906
8968
  variables: { id },
8907
8969
  constructObject: (data) => DepositFromJson(data.entity)
@@ -8915,7 +8977,7 @@ var FeeEstimateFromJson = (obj) => {
8915
8977
  feeMin: CurrencyAmountFromJson(obj["fee_estimate_fee_min"])
8916
8978
  };
8917
8979
  };
8918
- var FRAGMENT24 = `
8980
+ var FRAGMENT26 = `
8919
8981
  fragment FeeEstimateFragment on FeeEstimate {
8920
8982
  __typename
8921
8983
  fee_estimate_fee_fast: fee_fast {
@@ -8971,7 +9033,7 @@ var InvoiceFromJson = (obj) => {
8971
9033
  amountPaid: !!obj["invoice_amount_paid"] ? CurrencyAmountFromJson(obj["invoice_amount_paid"]) : void 0
8972
9034
  };
8973
9035
  };
8974
- var FRAGMENT25 = `
9036
+ var FRAGMENT27 = `
8975
9037
  fragment InvoiceFragment on Invoice {
8976
9038
  __typename
8977
9039
  invoice_id: id
@@ -9289,7 +9351,7 @@ query GetInvoice($id: ID!) {
9289
9351
  }
9290
9352
  }
9291
9353
 
9292
- ${FRAGMENT25}
9354
+ ${FRAGMENT27}
9293
9355
  `,
9294
9356
  variables: { id },
9295
9357
  constructObject: (data) => InvoiceFromJson(data.entity)
@@ -9297,7 +9359,7 @@ ${FRAGMENT25}
9297
9359
  };
9298
9360
 
9299
9361
  // src/objects/LightningFeeEstimateOutput.ts
9300
- var FRAGMENT26 = `
9362
+ var FRAGMENT28 = `
9301
9363
  fragment LightningFeeEstimateOutputFragment on LightningFeeEstimateOutput {
9302
9364
  __typename
9303
9365
  lightning_fee_estimate_output_fee_estimate: fee_estimate {
@@ -9311,7 +9373,7 @@ fragment LightningFeeEstimateOutputFragment on LightningFeeEstimateOutput {
9311
9373
  }`;
9312
9374
 
9313
9375
  // src/objects/LightningTransaction.ts
9314
- import { LightsparkException as LightsparkException7 } from "@lightsparkdev/core";
9376
+ import { LightsparkException as LightsparkException8 } from "@lightsparkdev/core";
9315
9377
  var LightningTransactionFromJson = (obj) => {
9316
9378
  if (obj["__typename"] == "IncomingPayment") {
9317
9379
  return new IncomingPayment_default(
@@ -9320,7 +9382,9 @@ var LightningTransactionFromJson = (obj) => {
9320
9382
  obj["incoming_payment_updated_at"],
9321
9383
  TransactionStatus_default[obj["incoming_payment_status"]] ?? TransactionStatus_default.FUTURE_VALUE,
9322
9384
  CurrencyAmountFromJson(obj["incoming_payment_amount"]),
9385
+ obj["incoming_payment_is_uma"],
9323
9386
  obj["incoming_payment_destination"].id,
9387
+ obj["incoming_payment_is_internal_payment"],
9324
9388
  "IncomingPayment",
9325
9389
  obj["incoming_payment_resolved_at"],
9326
9390
  obj["incoming_payment_transaction_hash"],
@@ -9337,7 +9401,9 @@ var LightningTransactionFromJson = (obj) => {
9337
9401
  obj["outgoing_payment_updated_at"],
9338
9402
  TransactionStatus_default[obj["outgoing_payment_status"]] ?? TransactionStatus_default.FUTURE_VALUE,
9339
9403
  CurrencyAmountFromJson(obj["outgoing_payment_amount"]),
9404
+ obj["outgoing_payment_is_uma"],
9340
9405
  obj["outgoing_payment_origin"].id,
9406
+ obj["outgoing_payment_is_internal_payment"],
9341
9407
  "OutgoingPayment",
9342
9408
  obj["outgoing_payment_resolved_at"],
9343
9409
  obj["outgoing_payment_transaction_hash"],
@@ -9371,12 +9437,12 @@ var LightningTransactionFromJson = (obj) => {
9371
9437
  failureReason: !!obj["routing_transaction_failure_reason"] ? RoutingTransactionFailureReason_default[obj["routing_transaction_failure_reason"]] ?? RoutingTransactionFailureReason_default.FUTURE_VALUE : null
9372
9438
  };
9373
9439
  }
9374
- throw new LightsparkException7(
9440
+ throw new LightsparkException8(
9375
9441
  "DeserializationError",
9376
9442
  `Couldn't find a concrete type for interface LightningTransaction corresponding to the typename=${obj["__typename"]}`
9377
9443
  );
9378
9444
  };
9379
- var FRAGMENT27 = `
9445
+ var FRAGMENT29 = `
9380
9446
  fragment LightningTransactionFragment on LightningTransaction {
9381
9447
  __typename
9382
9448
  ... on IncomingPayment {
@@ -9395,6 +9461,7 @@ fragment LightningTransactionFragment on LightningTransaction {
9395
9461
  currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
9396
9462
  }
9397
9463
  incoming_payment_transaction_hash: transaction_hash
9464
+ incoming_payment_is_uma: is_uma
9398
9465
  incoming_payment_destination: destination {
9399
9466
  id
9400
9467
  }
@@ -9413,6 +9480,7 @@ fragment LightningTransactionFragment on LightningTransaction {
9413
9480
  currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
9414
9481
  }
9415
9482
  }
9483
+ incoming_payment_is_internal_payment: is_internal_payment
9416
9484
  }
9417
9485
  ... on OutgoingPayment {
9418
9486
  __typename
@@ -9430,6 +9498,7 @@ fragment LightningTransactionFragment on LightningTransaction {
9430
9498
  currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
9431
9499
  }
9432
9500
  outgoing_payment_transaction_hash: transaction_hash
9501
+ outgoing_payment_is_uma: is_uma
9433
9502
  outgoing_payment_origin: origin {
9434
9503
  id
9435
9504
  }
@@ -9756,6 +9825,7 @@ fragment LightningTransactionFragment on LightningTransaction {
9756
9825
  }
9757
9826
  }
9758
9827
  outgoing_payment_payment_preimage: payment_preimage
9828
+ outgoing_payment_is_internal_payment: is_internal_payment
9759
9829
  }
9760
9830
  ... on RoutingTransaction {
9761
9831
  __typename
@@ -9805,7 +9875,7 @@ query GetLightningTransaction($id: ID!) {
9805
9875
  }
9806
9876
  }
9807
9877
 
9808
- ${FRAGMENT27}
9878
+ ${FRAGMENT29}
9809
9879
  `,
9810
9880
  variables: { id },
9811
9881
  constructObject: (data) => LightningTransactionFromJson(data.entity)
@@ -9813,7 +9883,7 @@ ${FRAGMENT27}
9813
9883
  };
9814
9884
 
9815
9885
  // src/objects/LightsparkNodeOwner.ts
9816
- import { LightsparkException as LightsparkException8 } from "@lightsparkdev/core";
9886
+ import { LightsparkException as LightsparkException9 } from "@lightsparkdev/core";
9817
9887
  var LightsparkNodeOwnerFromJson = (obj) => {
9818
9888
  if (obj["__typename"] == "Account") {
9819
9889
  return new Account_default(
@@ -9837,12 +9907,12 @@ var LightsparkNodeOwnerFromJson = (obj) => {
9837
9907
  obj["wallet_account"]?.id ?? void 0
9838
9908
  );
9839
9909
  }
9840
- throw new LightsparkException8(
9910
+ throw new LightsparkException9(
9841
9911
  "DeserializationError",
9842
9912
  `Couldn't find a concrete type for interface LightsparkNodeOwner corresponding to the typename=${obj["__typename"]}`
9843
9913
  );
9844
9914
  };
9845
- var FRAGMENT28 = `
9915
+ var FRAGMENT30 = `
9846
9916
  fragment LightsparkNodeOwnerFragment on LightsparkNodeOwner {
9847
9917
  __typename
9848
9918
  ... on Account {
@@ -9903,7 +9973,7 @@ query GetLightsparkNodeOwner($id: ID!) {
9903
9973
  }
9904
9974
  }
9905
9975
 
9906
- ${FRAGMENT28}
9976
+ ${FRAGMENT30}
9907
9977
  `,
9908
9978
  variables: { id },
9909
9979
  constructObject: (data) => LightsparkNodeOwnerFromJson(data.entity)
@@ -9911,7 +9981,7 @@ ${FRAGMENT28}
9911
9981
  };
9912
9982
 
9913
9983
  // src/objects/OnChainTransaction.ts
9914
- import { LightsparkException as LightsparkException9 } from "@lightsparkdev/core";
9984
+ import { LightsparkException as LightsparkException10 } from "@lightsparkdev/core";
9915
9985
  var OnChainTransactionFromJson = (obj) => {
9916
9986
  if (obj["__typename"] == "ChannelClosingTransaction") {
9917
9987
  return {
@@ -9985,12 +10055,12 @@ var OnChainTransactionFromJson = (obj) => {
9985
10055
  numConfirmations: obj["withdrawal_num_confirmations"]
9986
10056
  };
9987
10057
  }
9988
- throw new LightsparkException9(
10058
+ throw new LightsparkException10(
9989
10059
  "DeserializationError",
9990
10060
  `Couldn't find a concrete type for interface OnChainTransaction corresponding to the typename=${obj["__typename"]}`
9991
10061
  );
9992
10062
  };
9993
- var FRAGMENT29 = `
10063
+ var FRAGMENT31 = `
9994
10064
  fragment OnChainTransactionFragment on OnChainTransaction {
9995
10065
  __typename
9996
10066
  ... on ChannelClosingTransaction {
@@ -10133,7 +10203,7 @@ query GetOnChainTransaction($id: ID!) {
10133
10203
  }
10134
10204
  }
10135
10205
 
10136
- ${FRAGMENT29}
10206
+ ${FRAGMENT31}
10137
10207
  `,
10138
10208
  variables: { id },
10139
10209
  constructObject: (data) => OnChainTransactionFromJson(data.entity)
@@ -10192,7 +10262,7 @@ var RoutingTransactionFromJson = (obj) => {
10192
10262
  failureReason: !!obj["routing_transaction_failure_reason"] ? RoutingTransactionFailureReason_default[obj["routing_transaction_failure_reason"]] ?? RoutingTransactionFailureReason_default.FUTURE_VALUE : null
10193
10263
  };
10194
10264
  };
10195
- var FRAGMENT30 = `
10265
+ var FRAGMENT32 = `
10196
10266
  fragment RoutingTransactionFragment on RoutingTransaction {
10197
10267
  __typename
10198
10268
  routing_transaction_id: id
@@ -10240,7 +10310,7 @@ query GetRoutingTransaction($id: ID!) {
10240
10310
  }
10241
10311
  }
10242
10312
 
10243
- ${FRAGMENT30}
10313
+ ${FRAGMENT32}
10244
10314
  `,
10245
10315
  variables: { id },
10246
10316
  constructObject: (data) => RoutingTransactionFromJson(data.entity)
@@ -10256,7 +10326,7 @@ var SignableFromJson = (obj) => {
10256
10326
  typename: "Signable"
10257
10327
  };
10258
10328
  };
10259
- var FRAGMENT31 = `
10329
+ var FRAGMENT33 = `
10260
10330
  fragment SignableFragment on Signable {
10261
10331
  __typename
10262
10332
  signable_id: id
@@ -10274,7 +10344,7 @@ query GetSignable($id: ID!) {
10274
10344
  }
10275
10345
  }
10276
10346
 
10277
- ${FRAGMENT31}
10347
+ ${FRAGMENT33}
10278
10348
  `,
10279
10349
  variables: { id },
10280
10350
  constructObject: (data) => SignableFromJson(data.entity)
@@ -10311,7 +10381,7 @@ var TransactionUpdateFromJson = (obj) => {
10311
10381
  transactionHash: obj["transaction_hash"]
10312
10382
  };
10313
10383
  };
10314
- var FRAGMENT32 = `
10384
+ var FRAGMENT34 = `
10315
10385
  fragment TransactionUpdateFragment on Transaction {
10316
10386
  __typename
10317
10387
  id
@@ -10345,7 +10415,7 @@ var UmaInvitationFromJson = (obj) => {
10345
10415
  incentivesIneligibilityReason: !!obj["uma_invitation_incentives_ineligibility_reason"] ? IncentivesIneligibilityReason_default[obj["uma_invitation_incentives_ineligibility_reason"]] ?? IncentivesIneligibilityReason_default.FUTURE_VALUE : null
10346
10416
  };
10347
10417
  };
10348
- var FRAGMENT33 = `
10418
+ var FRAGMENT35 = `
10349
10419
  fragment UmaInvitationFragment on UmaInvitation {
10350
10420
  __typename
10351
10421
  uma_invitation_id: id
@@ -10369,7 +10439,7 @@ query GetUmaInvitation($id: ID!) {
10369
10439
  }
10370
10440
  }
10371
10441
 
10372
- ${FRAGMENT33}
10442
+ ${FRAGMENT35}
10373
10443
  `,
10374
10444
  variables: { id },
10375
10445
  constructObject: (data) => UmaInvitationFromJson(data.entity)
@@ -10392,6 +10462,7 @@ var WebhookEventType = /* @__PURE__ */ ((WebhookEventType2) => {
10392
10462
  WebhookEventType2["WALLET_FUNDS_RECEIVED"] = "WALLET_FUNDS_RECEIVED";
10393
10463
  WebhookEventType2["REMOTE_SIGNING"] = "REMOTE_SIGNING";
10394
10464
  WebhookEventType2["LOW_BALANCE"] = "LOW_BALANCE";
10465
+ WebhookEventType2["HIGH_BALANCE"] = "HIGH_BALANCE";
10395
10466
  return WebhookEventType2;
10396
10467
  })(WebhookEventType || {});
10397
10468
  var WebhookEventType_default = WebhookEventType;
@@ -10415,7 +10486,7 @@ var WithdrawalFromJson = (obj) => {
10415
10486
  numConfirmations: obj["withdrawal_num_confirmations"]
10416
10487
  };
10417
10488
  };
10418
- var FRAGMENT34 = `
10489
+ var FRAGMENT36 = `
10419
10490
  fragment WithdrawalFragment on Withdrawal {
10420
10491
  __typename
10421
10492
  withdrawal_id: id
@@ -10459,7 +10530,7 @@ query GetWithdrawal($id: ID!) {
10459
10530
  }
10460
10531
  }
10461
10532
 
10462
- ${FRAGMENT34}
10533
+ ${FRAGMENT36}
10463
10534
  `,
10464
10535
  variables: { id },
10465
10536
  constructObject: (data) => WithdrawalFromJson(data.entity)
@@ -10474,7 +10545,7 @@ var WithdrawalFeeEstimateOutputFromJson = (obj) => {
10474
10545
  )
10475
10546
  };
10476
10547
  };
10477
- var FRAGMENT35 = `
10548
+ var FRAGMENT37 = `
10478
10549
  fragment WithdrawalFeeEstimateOutputFragment on WithdrawalFeeEstimateOutput {
10479
10550
  __typename
10480
10551
  withdrawal_fee_estimate_output_fee_estimate: fee_estimate {
@@ -10493,7 +10564,7 @@ export {
10493
10564
  CurrencyAmountFromJson,
10494
10565
  FRAGMENT2 as FRAGMENT,
10495
10566
  FeeEstimateFromJson,
10496
- FRAGMENT24 as FRAGMENT2,
10567
+ FRAGMENT26 as FRAGMENT2,
10497
10568
  NodeAddressType_default,
10498
10569
  GraphNode_default,
10499
10570
  LightsparkNodeStatus_default,
@@ -10507,12 +10578,12 @@ export {
10507
10578
  FRAGMENT9 as FRAGMENT3,
10508
10579
  PaymentRequestStatus_default,
10509
10580
  InvoiceFromJson,
10510
- FRAGMENT25 as FRAGMENT4,
10581
+ FRAGMENT27 as FRAGMENT4,
10511
10582
  getInvoiceQuery,
10512
10583
  IncentivesIneligibilityReason_default,
10513
10584
  IncentivesStatus_default,
10514
10585
  UmaInvitationFromJson,
10515
- FRAGMENT33 as FRAGMENT5,
10586
+ FRAGMENT35 as FRAGMENT5,
10516
10587
  getUmaInvitationQuery,
10517
10588
  Permission_default,
10518
10589
  ApiTokenFromJson,
@@ -10524,7 +10595,7 @@ export {
10524
10595
  IncomingPaymentFromJson,
10525
10596
  FRAGMENT12 as FRAGMENT7,
10526
10597
  IncomingPayment_default,
10527
- FRAGMENT26 as FRAGMENT8,
10598
+ FRAGMENT28 as FRAGMENT8,
10528
10599
  HtlcAttemptFailureCode_default,
10529
10600
  OutgoingPaymentAttemptStatus_default,
10530
10601
  getHopQuery,
@@ -10548,14 +10619,16 @@ export {
10548
10619
  FRAGMENT16 as FRAGMENT12,
10549
10620
  getTransactionQuery,
10550
10621
  TransactionUpdateFromJson,
10551
- FRAGMENT32 as FRAGMENT13,
10622
+ FRAGMENT34 as FRAGMENT13,
10552
10623
  WithdrawalFeeEstimateOutputFromJson,
10553
- FRAGMENT35 as FRAGMENT14,
10624
+ FRAGMENT37 as FRAGMENT14,
10554
10625
  getLightsparkNodeQuery,
10555
10626
  WalletStatus_default,
10556
10627
  Wallet_default,
10557
10628
  Account_default,
10558
10629
  InvoiceType_default,
10630
+ getAuditLogActorQuery,
10631
+ getChannelSnapshotQuery,
10559
10632
  RegionCode_default,
10560
10633
  ComplianceProvider_default,
10561
10634
  SignablePayloadStatus_default,