@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
@@ -59,8 +59,10 @@ __export(objects_exports, {
59
59
  WithdrawalRequest: () => WithdrawalRequest_default,
60
60
  WithdrawalRequestStatus: () => WithdrawalRequestStatus_default,
61
61
  getApiTokenQuery: () => getApiTokenQuery,
62
+ getAuditLogActorQuery: () => getAuditLogActorQuery,
62
63
  getChannelClosingTransactionQuery: () => getChannelClosingTransactionQuery,
63
64
  getChannelOpeningTransactionQuery: () => getChannelOpeningTransactionQuery,
65
+ getChannelSnapshotQuery: () => getChannelSnapshotQuery,
64
66
  getDepositQuery: () => getDepositQuery,
65
67
  getHopQuery: () => getHopQuery,
66
68
  getIncomingPaymentAttemptQuery: () => getIncomingPaymentAttemptQuery,
@@ -143,6 +145,7 @@ var ApiTokenFromJson = (obj) => {
143
145
  clientId: obj["api_token_client_id"],
144
146
  name: obj["api_token_name"],
145
147
  permissions: obj["api_token_permissions"].map((e) => Permission_default[e]),
148
+ isDeleted: obj["api_token_is_deleted"],
146
149
  typename: "ApiToken"
147
150
  };
148
151
  };
@@ -155,6 +158,7 @@ fragment ApiTokenFragment on ApiToken {
155
158
  api_token_client_id: client_id
156
159
  api_token_name: name
157
160
  api_token_permissions: permissions
161
+ api_token_is_deleted: is_deleted
158
162
  }`;
159
163
  var getApiTokenQuery = (id) => {
160
164
  return {
@@ -2986,13 +2990,15 @@ var TransactionStatus_default = TransactionStatus;
2986
2990
 
2987
2991
  // src/objects/IncomingPayment.ts
2988
2992
  var IncomingPayment = class {
2989
- constructor(id, createdAt, updatedAt, status, amount, destinationId, typename, resolvedAt, transactionHash, paymentRequestId, umaPostTransactionData) {
2993
+ constructor(id, createdAt, updatedAt, status, amount, isUma, destinationId, isInternalPayment, typename, resolvedAt, transactionHash, paymentRequestId, umaPostTransactionData) {
2990
2994
  this.id = id;
2991
2995
  this.createdAt = createdAt;
2992
2996
  this.updatedAt = updatedAt;
2993
2997
  this.status = status;
2994
2998
  this.amount = amount;
2999
+ this.isUma = isUma;
2995
3000
  this.destinationId = destinationId;
3001
+ this.isInternalPayment = isInternalPayment;
2996
3002
  this.typename = typename;
2997
3003
  this.resolvedAt = resolvedAt;
2998
3004
  this.transactionHash = transactionHash;
@@ -3079,9 +3085,11 @@ ${FRAGMENT10}
3079
3085
  incoming_payment_resolved_at: this.resolvedAt,
3080
3086
  incoming_payment_amount: CurrencyAmountToJson(this.amount),
3081
3087
  incoming_payment_transaction_hash: this.transactionHash,
3088
+ incoming_payment_is_uma: this.isUma,
3082
3089
  incoming_payment_destination: { id: this.destinationId },
3083
3090
  incoming_payment_payment_request: { id: this.paymentRequestId },
3084
- incoming_payment_uma_post_transaction_data: this.umaPostTransactionData?.map((e) => PostTransactionDataToJson(e))
3091
+ incoming_payment_uma_post_transaction_data: this.umaPostTransactionData?.map((e) => PostTransactionDataToJson(e)),
3092
+ incoming_payment_is_internal_payment: this.isInternalPayment
3085
3093
  };
3086
3094
  }
3087
3095
  };
@@ -3092,7 +3100,9 @@ var IncomingPaymentFromJson = (obj) => {
3092
3100
  obj["incoming_payment_updated_at"],
3093
3101
  TransactionStatus_default[obj["incoming_payment_status"]] ?? TransactionStatus_default.FUTURE_VALUE,
3094
3102
  CurrencyAmountFromJson(obj["incoming_payment_amount"]),
3103
+ obj["incoming_payment_is_uma"],
3095
3104
  obj["incoming_payment_destination"].id,
3105
+ obj["incoming_payment_is_internal_payment"],
3096
3106
  "IncomingPayment",
3097
3107
  obj["incoming_payment_resolved_at"],
3098
3108
  obj["incoming_payment_transaction_hash"],
@@ -3119,6 +3129,7 @@ fragment IncomingPaymentFragment on IncomingPayment {
3119
3129
  currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
3120
3130
  }
3121
3131
  incoming_payment_transaction_hash: transaction_hash
3132
+ incoming_payment_is_uma: is_uma
3122
3133
  incoming_payment_destination: destination {
3123
3134
  id
3124
3135
  }
@@ -3137,33 +3148,10 @@ fragment IncomingPaymentFragment on IncomingPayment {
3137
3148
  currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
3138
3149
  }
3139
3150
  }
3151
+ incoming_payment_is_internal_payment: is_internal_payment
3140
3152
  }`;
3141
3153
  var IncomingPayment_default = IncomingPayment;
3142
3154
 
3143
- // src/objects/ChannelSnapshot.ts
3144
- var ChannelSnapshotFromJson = (obj) => {
3145
- return {
3146
- channelId: obj["channel_snapshot_channel"].id,
3147
- timestamp: obj["channel_snapshot_timestamp"],
3148
- localBalance: !!obj["channel_snapshot_local_balance"] ? CurrencyAmountFromJson(obj["channel_snapshot_local_balance"]) : void 0,
3149
- localUnsettledBalance: !!obj["channel_snapshot_local_unsettled_balance"] ? CurrencyAmountFromJson(obj["channel_snapshot_local_unsettled_balance"]) : void 0,
3150
- localChannelReserve: !!obj["channel_snapshot_local_channel_reserve"] ? CurrencyAmountFromJson(obj["channel_snapshot_local_channel_reserve"]) : void 0,
3151
- remoteBalance: !!obj["channel_snapshot_remote_balance"] ? CurrencyAmountFromJson(obj["channel_snapshot_remote_balance"]) : void 0,
3152
- remoteUnsettledBalance: !!obj["channel_snapshot_remote_unsettled_balance"] ? CurrencyAmountFromJson(obj["channel_snapshot_remote_unsettled_balance"]) : void 0
3153
- };
3154
- };
3155
- var ChannelSnapshotToJson = (obj) => {
3156
- return {
3157
- channel_snapshot_channel: { id: obj.channelId },
3158
- channel_snapshot_timestamp: obj.timestamp,
3159
- channel_snapshot_local_balance: obj.localBalance ? CurrencyAmountToJson(obj.localBalance) : void 0,
3160
- channel_snapshot_local_unsettled_balance: obj.localUnsettledBalance ? CurrencyAmountToJson(obj.localUnsettledBalance) : void 0,
3161
- channel_snapshot_local_channel_reserve: obj.localChannelReserve ? CurrencyAmountToJson(obj.localChannelReserve) : void 0,
3162
- channel_snapshot_remote_balance: obj.remoteBalance ? CurrencyAmountToJson(obj.remoteBalance) : void 0,
3163
- channel_snapshot_remote_unsettled_balance: obj.remoteUnsettledBalance ? CurrencyAmountToJson(obj.remoteUnsettledBalance) : void 0
3164
- };
3165
- };
3166
-
3167
3155
  // src/objects/HtlcAttemptFailureCode.ts
3168
3156
  var HtlcAttemptFailureCode = /* @__PURE__ */ ((HtlcAttemptFailureCode2) => {
3169
3157
  HtlcAttemptFailureCode2["FUTURE_VALUE"] = "FUTURE_VALUE";
@@ -3287,7 +3275,7 @@ var OutgoingPaymentAttemptToHopsConnectionFromJson = (obj) => {
3287
3275
 
3288
3276
  // src/objects/OutgoingPaymentAttempt.ts
3289
3277
  var OutgoingPaymentAttempt = class {
3290
- constructor(id, createdAt, updatedAt, status, attemptedAt, outgoingPaymentId, typename, failureCode, failureSourceIndex, resolvedAt, amount, fees, channelSnapshot) {
3278
+ constructor(id, createdAt, updatedAt, status, attemptedAt, outgoingPaymentId, typename, failureCode, failureSourceIndex, resolvedAt, amount, fees, channelSnapshotId) {
3291
3279
  this.id = id;
3292
3280
  this.createdAt = createdAt;
3293
3281
  this.updatedAt = updatedAt;
@@ -3300,7 +3288,7 @@ var OutgoingPaymentAttempt = class {
3300
3288
  this.resolvedAt = resolvedAt;
3301
3289
  this.amount = amount;
3302
3290
  this.fees = fees;
3303
- this.channelSnapshot = channelSnapshot;
3291
+ this.channelSnapshotId = channelSnapshotId;
3304
3292
  autoBind(this);
3305
3293
  }
3306
3294
  async getHops(client, first = void 0, after = void 0) {
@@ -3390,7 +3378,7 @@ ${FRAGMENT12}
3390
3378
  outgoing_payment_attempt_amount: this.amount ? CurrencyAmountToJson(this.amount) : void 0,
3391
3379
  outgoing_payment_attempt_fees: this.fees ? CurrencyAmountToJson(this.fees) : void 0,
3392
3380
  outgoing_payment_attempt_outgoing_payment: { id: this.outgoingPaymentId },
3393
- outgoing_payment_attempt_channel_snapshot: this.channelSnapshot ? ChannelSnapshotToJson(this.channelSnapshot) : void 0
3381
+ outgoing_payment_attempt_channel_snapshot: { id: this.channelSnapshotId }
3394
3382
  };
3395
3383
  }
3396
3384
  };
@@ -3408,9 +3396,7 @@ var OutgoingPaymentAttemptFromJson = (obj) => {
3408
3396
  obj["outgoing_payment_attempt_resolved_at"],
3409
3397
  !!obj["outgoing_payment_attempt_amount"] ? CurrencyAmountFromJson(obj["outgoing_payment_attempt_amount"]) : void 0,
3410
3398
  !!obj["outgoing_payment_attempt_fees"] ? CurrencyAmountFromJson(obj["outgoing_payment_attempt_fees"]) : void 0,
3411
- !!obj["outgoing_payment_attempt_channel_snapshot"] ? ChannelSnapshotFromJson(
3412
- obj["outgoing_payment_attempt_channel_snapshot"]
3413
- ) : void 0
3399
+ obj["outgoing_payment_attempt_channel_snapshot"]?.id ?? void 0
3414
3400
  );
3415
3401
  };
3416
3402
  var FRAGMENT12 = `
@@ -3444,51 +3430,7 @@ fragment OutgoingPaymentAttemptFragment on OutgoingPaymentAttempt {
3444
3430
  id
3445
3431
  }
3446
3432
  outgoing_payment_attempt_channel_snapshot: channel_snapshot {
3447
- __typename
3448
- channel_snapshot_channel: channel {
3449
- id
3450
- }
3451
- channel_snapshot_timestamp: timestamp
3452
- channel_snapshot_local_balance: local_balance {
3453
- __typename
3454
- currency_amount_original_value: original_value
3455
- currency_amount_original_unit: original_unit
3456
- currency_amount_preferred_currency_unit: preferred_currency_unit
3457
- currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
3458
- currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
3459
- }
3460
- channel_snapshot_local_unsettled_balance: local_unsettled_balance {
3461
- __typename
3462
- currency_amount_original_value: original_value
3463
- currency_amount_original_unit: original_unit
3464
- currency_amount_preferred_currency_unit: preferred_currency_unit
3465
- currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
3466
- currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
3467
- }
3468
- channel_snapshot_local_channel_reserve: local_channel_reserve {
3469
- __typename
3470
- currency_amount_original_value: original_value
3471
- currency_amount_original_unit: original_unit
3472
- currency_amount_preferred_currency_unit: preferred_currency_unit
3473
- currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
3474
- currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
3475
- }
3476
- channel_snapshot_remote_balance: remote_balance {
3477
- __typename
3478
- currency_amount_original_value: original_value
3479
- currency_amount_original_unit: original_unit
3480
- currency_amount_preferred_currency_unit: preferred_currency_unit
3481
- currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
3482
- currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
3483
- }
3484
- channel_snapshot_remote_unsettled_balance: remote_unsettled_balance {
3485
- __typename
3486
- currency_amount_original_value: original_value
3487
- currency_amount_original_unit: original_unit
3488
- currency_amount_preferred_currency_unit: preferred_currency_unit
3489
- currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
3490
- currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
3491
- }
3433
+ id
3492
3434
  }
3493
3435
  }`;
3494
3436
  var OutgoingPaymentAttempt_default = OutgoingPaymentAttempt;
@@ -3519,6 +3461,7 @@ var PaymentFailureReason = /* @__PURE__ */ ((PaymentFailureReason2) => {
3519
3461
  PaymentFailureReason2["INVOICE_ALREADY_PAID"] = "INVOICE_ALREADY_PAID";
3520
3462
  PaymentFailureReason2["SELF_PAYMENT"] = "SELF_PAYMENT";
3521
3463
  PaymentFailureReason2["INVOICE_EXPIRED"] = "INVOICE_EXPIRED";
3464
+ PaymentFailureReason2["INVOICE_CANCELLED"] = "INVOICE_CANCELLED";
3522
3465
  PaymentFailureReason2["RISK_SCREENING_FAILED"] = "RISK_SCREENING_FAILED";
3523
3466
  return PaymentFailureReason2;
3524
3467
  })(PaymentFailureReason || {});
@@ -3580,13 +3523,15 @@ var RichTextToJson = (obj) => {
3580
3523
 
3581
3524
  // src/objects/OutgoingPayment.ts
3582
3525
  var OutgoingPayment = class {
3583
- constructor(id, createdAt, updatedAt, status, amount, originId, typename, resolvedAt, transactionHash, destinationId, fees, paymentRequestData, failureReason, failureMessage, umaPostTransactionData, paymentPreimage) {
3526
+ constructor(id, createdAt, updatedAt, status, amount, isUma, originId, isInternalPayment, typename, resolvedAt, transactionHash, destinationId, fees, paymentRequestData, failureReason, failureMessage, umaPostTransactionData, paymentPreimage) {
3584
3527
  this.id = id;
3585
3528
  this.createdAt = createdAt;
3586
3529
  this.updatedAt = updatedAt;
3587
3530
  this.status = status;
3588
3531
  this.amount = amount;
3532
+ this.isUma = isUma;
3589
3533
  this.originId = originId;
3534
+ this.isInternalPayment = isInternalPayment;
3590
3535
  this.typename = typename;
3591
3536
  this.resolvedAt = resolvedAt;
3592
3537
  this.transactionHash = transactionHash;
@@ -3645,51 +3590,7 @@ query FetchOutgoingPaymentToAttemptsConnection($entity_id: ID!, $first: Int, $af
3645
3590
  id
3646
3591
  }
3647
3592
  outgoing_payment_attempt_channel_snapshot: channel_snapshot {
3648
- __typename
3649
- channel_snapshot_channel: channel {
3650
- id
3651
- }
3652
- channel_snapshot_timestamp: timestamp
3653
- channel_snapshot_local_balance: local_balance {
3654
- __typename
3655
- currency_amount_original_value: original_value
3656
- currency_amount_original_unit: original_unit
3657
- currency_amount_preferred_currency_unit: preferred_currency_unit
3658
- currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
3659
- currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
3660
- }
3661
- channel_snapshot_local_unsettled_balance: local_unsettled_balance {
3662
- __typename
3663
- currency_amount_original_value: original_value
3664
- currency_amount_original_unit: original_unit
3665
- currency_amount_preferred_currency_unit: preferred_currency_unit
3666
- currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
3667
- currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
3668
- }
3669
- channel_snapshot_local_channel_reserve: local_channel_reserve {
3670
- __typename
3671
- currency_amount_original_value: original_value
3672
- currency_amount_original_unit: original_unit
3673
- currency_amount_preferred_currency_unit: preferred_currency_unit
3674
- currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
3675
- currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
3676
- }
3677
- channel_snapshot_remote_balance: remote_balance {
3678
- __typename
3679
- currency_amount_original_value: original_value
3680
- currency_amount_original_unit: original_unit
3681
- currency_amount_preferred_currency_unit: preferred_currency_unit
3682
- currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
3683
- currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
3684
- }
3685
- channel_snapshot_remote_unsettled_balance: remote_unsettled_balance {
3686
- __typename
3687
- currency_amount_original_value: original_value
3688
- currency_amount_original_unit: original_unit
3689
- currency_amount_preferred_currency_unit: preferred_currency_unit
3690
- currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
3691
- currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
3692
- }
3593
+ id
3693
3594
  }
3694
3595
  }
3695
3596
  }
@@ -3731,6 +3632,7 @@ ${FRAGMENT13}
3731
3632
  outgoing_payment_resolved_at: this.resolvedAt,
3732
3633
  outgoing_payment_amount: CurrencyAmountToJson(this.amount),
3733
3634
  outgoing_payment_transaction_hash: this.transactionHash,
3635
+ outgoing_payment_is_uma: this.isUma,
3734
3636
  outgoing_payment_origin: { id: this.originId },
3735
3637
  outgoing_payment_destination: { id: this.destinationId },
3736
3638
  outgoing_payment_fees: this.fees ? CurrencyAmountToJson(this.fees) : void 0,
@@ -3738,7 +3640,8 @@ ${FRAGMENT13}
3738
3640
  outgoing_payment_failure_reason: this.failureReason,
3739
3641
  outgoing_payment_failure_message: this.failureMessage ? RichTextToJson(this.failureMessage) : void 0,
3740
3642
  outgoing_payment_uma_post_transaction_data: this.umaPostTransactionData?.map((e) => PostTransactionDataToJson(e)),
3741
- outgoing_payment_payment_preimage: this.paymentPreimage
3643
+ outgoing_payment_payment_preimage: this.paymentPreimage,
3644
+ outgoing_payment_is_internal_payment: this.isInternalPayment
3742
3645
  };
3743
3646
  }
3744
3647
  };
@@ -3749,7 +3652,9 @@ var OutgoingPaymentFromJson = (obj) => {
3749
3652
  obj["outgoing_payment_updated_at"],
3750
3653
  TransactionStatus_default[obj["outgoing_payment_status"]] ?? TransactionStatus_default.FUTURE_VALUE,
3751
3654
  CurrencyAmountFromJson(obj["outgoing_payment_amount"]),
3655
+ obj["outgoing_payment_is_uma"],
3752
3656
  obj["outgoing_payment_origin"].id,
3657
+ obj["outgoing_payment_is_internal_payment"],
3753
3658
  "OutgoingPayment",
3754
3659
  obj["outgoing_payment_resolved_at"],
3755
3660
  obj["outgoing_payment_transaction_hash"],
@@ -3781,6 +3686,7 @@ fragment OutgoingPaymentFragment on OutgoingPayment {
3781
3686
  currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
3782
3687
  }
3783
3688
  outgoing_payment_transaction_hash: transaction_hash
3689
+ outgoing_payment_is_uma: is_uma
3784
3690
  outgoing_payment_origin: origin {
3785
3691
  id
3786
3692
  }
@@ -4107,6 +4013,7 @@ fragment OutgoingPaymentFragment on OutgoingPayment {
4107
4013
  }
4108
4014
  }
4109
4015
  outgoing_payment_payment_preimage: payment_preimage
4016
+ outgoing_payment_is_internal_payment: is_internal_payment
4110
4017
  }`;
4111
4018
  var OutgoingPayment_default = OutgoingPayment;
4112
4019
 
@@ -4183,7 +4090,9 @@ var TransactionFromJson = (obj) => {
4183
4090
  obj["incoming_payment_updated_at"],
4184
4091
  TransactionStatus_default[obj["incoming_payment_status"]] ?? TransactionStatus_default.FUTURE_VALUE,
4185
4092
  CurrencyAmountFromJson(obj["incoming_payment_amount"]),
4093
+ obj["incoming_payment_is_uma"],
4186
4094
  obj["incoming_payment_destination"].id,
4095
+ obj["incoming_payment_is_internal_payment"],
4187
4096
  "IncomingPayment",
4188
4097
  obj["incoming_payment_resolved_at"],
4189
4098
  obj["incoming_payment_transaction_hash"],
@@ -4200,7 +4109,9 @@ var TransactionFromJson = (obj) => {
4200
4109
  obj["outgoing_payment_updated_at"],
4201
4110
  TransactionStatus_default[obj["outgoing_payment_status"]] ?? TransactionStatus_default.FUTURE_VALUE,
4202
4111
  CurrencyAmountFromJson(obj["outgoing_payment_amount"]),
4112
+ obj["outgoing_payment_is_uma"],
4203
4113
  obj["outgoing_payment_origin"].id,
4114
+ obj["outgoing_payment_is_internal_payment"],
4204
4115
  "OutgoingPayment",
4205
4116
  obj["outgoing_payment_resolved_at"],
4206
4117
  obj["outgoing_payment_transaction_hash"],
@@ -4372,6 +4283,7 @@ fragment TransactionFragment on Transaction {
4372
4283
  currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
4373
4284
  }
4374
4285
  incoming_payment_transaction_hash: transaction_hash
4286
+ incoming_payment_is_uma: is_uma
4375
4287
  incoming_payment_destination: destination {
4376
4288
  id
4377
4289
  }
@@ -4390,6 +4302,7 @@ fragment TransactionFragment on Transaction {
4390
4302
  currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
4391
4303
  }
4392
4304
  }
4305
+ incoming_payment_is_internal_payment: is_internal_payment
4393
4306
  }
4394
4307
  ... on OutgoingPayment {
4395
4308
  __typename
@@ -4407,6 +4320,7 @@ fragment TransactionFragment on Transaction {
4407
4320
  currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
4408
4321
  }
4409
4322
  outgoing_payment_transaction_hash: transaction_hash
4323
+ outgoing_payment_is_uma: is_uma
4410
4324
  outgoing_payment_origin: origin {
4411
4325
  id
4412
4326
  }
@@ -4733,6 +4647,7 @@ fragment TransactionFragment on Transaction {
4733
4647
  }
4734
4648
  }
4735
4649
  outgoing_payment_payment_preimage: payment_preimage
4650
+ outgoing_payment_is_internal_payment: is_internal_payment
4736
4651
  }
4737
4652
  ... on RoutingTransaction {
4738
4653
  __typename
@@ -4904,6 +4819,7 @@ var WithdrawalRequestStatus = /* @__PURE__ */ ((WithdrawalRequestStatus2) => {
4904
4819
  WithdrawalRequestStatus2["FAILED"] = "FAILED";
4905
4820
  WithdrawalRequestStatus2["IN_PROGRESS"] = "IN_PROGRESS";
4906
4821
  WithdrawalRequestStatus2["SUCCESSFUL"] = "SUCCESSFUL";
4822
+ WithdrawalRequestStatus2["PARTIALLY_SUCCESSFUL"] = "PARTIALLY_SUCCESSFUL";
4907
4823
  return WithdrawalRequestStatus2;
4908
4824
  })(WithdrawalRequestStatus || {});
4909
4825
  var WithdrawalRequestStatus_default = WithdrawalRequestStatus;
@@ -5472,6 +5388,7 @@ query FetchWalletToTransactionsConnection($entity_id: ID!, $first: Int, $after:
5472
5388
  currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
5473
5389
  }
5474
5390
  incoming_payment_transaction_hash: transaction_hash
5391
+ incoming_payment_is_uma: is_uma
5475
5392
  incoming_payment_destination: destination {
5476
5393
  id
5477
5394
  }
@@ -5490,6 +5407,7 @@ query FetchWalletToTransactionsConnection($entity_id: ID!, $first: Int, $after:
5490
5407
  currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
5491
5408
  }
5492
5409
  }
5410
+ incoming_payment_is_internal_payment: is_internal_payment
5493
5411
  }
5494
5412
  ... on OutgoingPayment {
5495
5413
  __typename
@@ -5507,6 +5425,7 @@ query FetchWalletToTransactionsConnection($entity_id: ID!, $first: Int, $after:
5507
5425
  currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
5508
5426
  }
5509
5427
  outgoing_payment_transaction_hash: transaction_hash
5428
+ outgoing_payment_is_uma: is_uma
5510
5429
  outgoing_payment_origin: origin {
5511
5430
  id
5512
5431
  }
@@ -5833,6 +5752,7 @@ query FetchWalletToTransactionsConnection($entity_id: ID!, $first: Int, $after:
5833
5752
  }
5834
5753
  }
5835
5754
  outgoing_payment_payment_preimage: payment_preimage
5755
+ outgoing_payment_is_internal_payment: is_internal_payment
5836
5756
  }
5837
5757
  ... on RoutingTransaction {
5838
5758
  __typename
@@ -6550,6 +6470,7 @@ query FetchAccountToApiTokensConnection($first: Int, $after: String) {
6550
6470
  api_token_client_id: client_id
6551
6471
  api_token_name: name
6552
6472
  api_token_permissions: permissions
6473
+ api_token_is_deleted: is_deleted
6553
6474
  }
6554
6475
  }
6555
6476
  }
@@ -7300,6 +7221,7 @@ query FetchAccountToTransactionsConnection($first: Int, $after: String, $types:
7300
7221
  currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
7301
7222
  }
7302
7223
  incoming_payment_transaction_hash: transaction_hash
7224
+ incoming_payment_is_uma: is_uma
7303
7225
  incoming_payment_destination: destination {
7304
7226
  id
7305
7227
  }
@@ -7318,6 +7240,7 @@ query FetchAccountToTransactionsConnection($first: Int, $after: String, $types:
7318
7240
  currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
7319
7241
  }
7320
7242
  }
7243
+ incoming_payment_is_internal_payment: is_internal_payment
7321
7244
  }
7322
7245
  ... on OutgoingPayment {
7323
7246
  __typename
@@ -7335,6 +7258,7 @@ query FetchAccountToTransactionsConnection($first: Int, $after: String, $types:
7335
7258
  currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
7336
7259
  }
7337
7260
  outgoing_payment_transaction_hash: transaction_hash
7261
+ outgoing_payment_is_uma: is_uma
7338
7262
  outgoing_payment_origin: origin {
7339
7263
  id
7340
7264
  }
@@ -7661,6 +7585,7 @@ query FetchAccountToTransactionsConnection($first: Int, $after: String, $types:
7661
7585
  }
7662
7586
  }
7663
7587
  outgoing_payment_payment_preimage: payment_preimage
7588
+ outgoing_payment_is_internal_payment: is_internal_payment
7664
7589
  }
7665
7590
  ... on RoutingTransaction {
7666
7591
  __typename
@@ -8291,6 +8216,145 @@ fragment AccountFragment on Account {
8291
8216
  }`;
8292
8217
  var Account_default = Account;
8293
8218
 
8219
+ // src/objects/AuditLogActor.ts
8220
+ var import_core6 = require("@lightsparkdev/core");
8221
+ var AuditLogActorFromJson = (obj) => {
8222
+ if (obj["__typename"] == "ApiToken") {
8223
+ return {
8224
+ id: obj["api_token_id"],
8225
+ createdAt: obj["api_token_created_at"],
8226
+ updatedAt: obj["api_token_updated_at"],
8227
+ clientId: obj["api_token_client_id"],
8228
+ name: obj["api_token_name"],
8229
+ permissions: obj["api_token_permissions"].map((e) => Permission_default[e]),
8230
+ isDeleted: obj["api_token_is_deleted"],
8231
+ typename: "ApiToken"
8232
+ };
8233
+ }
8234
+ throw new import_core6.LightsparkException(
8235
+ "DeserializationError",
8236
+ `Couldn't find a concrete type for interface AuditLogActor corresponding to the typename=${obj["__typename"]}`
8237
+ );
8238
+ };
8239
+ var FRAGMENT20 = `
8240
+ fragment AuditLogActorFragment on AuditLogActor {
8241
+ __typename
8242
+ ... on ApiToken {
8243
+ __typename
8244
+ api_token_id: id
8245
+ api_token_created_at: created_at
8246
+ api_token_updated_at: updated_at
8247
+ api_token_client_id: client_id
8248
+ api_token_name: name
8249
+ api_token_permissions: permissions
8250
+ api_token_is_deleted: is_deleted
8251
+ }
8252
+ }`;
8253
+ var getAuditLogActorQuery = (id) => {
8254
+ return {
8255
+ queryPayload: `
8256
+ query GetAuditLogActor($id: ID!) {
8257
+ entity(id: $id) {
8258
+ ... on AuditLogActor {
8259
+ ...AuditLogActorFragment
8260
+ }
8261
+ }
8262
+ }
8263
+
8264
+ ${FRAGMENT20}
8265
+ `,
8266
+ variables: { id },
8267
+ constructObject: (data) => AuditLogActorFromJson(data.entity)
8268
+ };
8269
+ };
8270
+
8271
+ // src/objects/ChannelSnapshot.ts
8272
+ var ChannelSnapshotFromJson = (obj) => {
8273
+ return {
8274
+ id: obj["channel_snapshot_id"],
8275
+ createdAt: obj["channel_snapshot_created_at"],
8276
+ updatedAt: obj["channel_snapshot_updated_at"],
8277
+ channelId: obj["channel_snapshot_channel"].id,
8278
+ timestamp: obj["channel_snapshot_timestamp"],
8279
+ typename: "ChannelSnapshot",
8280
+ localBalance: !!obj["channel_snapshot_local_balance"] ? CurrencyAmountFromJson(obj["channel_snapshot_local_balance"]) : void 0,
8281
+ localUnsettledBalance: !!obj["channel_snapshot_local_unsettled_balance"] ? CurrencyAmountFromJson(obj["channel_snapshot_local_unsettled_balance"]) : void 0,
8282
+ remoteBalance: !!obj["channel_snapshot_remote_balance"] ? CurrencyAmountFromJson(obj["channel_snapshot_remote_balance"]) : void 0,
8283
+ remoteUnsettledBalance: !!obj["channel_snapshot_remote_unsettled_balance"] ? CurrencyAmountFromJson(obj["channel_snapshot_remote_unsettled_balance"]) : void 0,
8284
+ status: obj["channel_snapshot_status"],
8285
+ localChannelReserve: !!obj["channel_snapshot_local_channel_reserve"] ? CurrencyAmountFromJson(obj["channel_snapshot_local_channel_reserve"]) : void 0
8286
+ };
8287
+ };
8288
+ var FRAGMENT21 = `
8289
+ fragment ChannelSnapshotFragment on ChannelSnapshot {
8290
+ __typename
8291
+ channel_snapshot_id: id
8292
+ channel_snapshot_created_at: created_at
8293
+ channel_snapshot_updated_at: updated_at
8294
+ channel_snapshot_local_balance: local_balance {
8295
+ __typename
8296
+ currency_amount_original_value: original_value
8297
+ currency_amount_original_unit: original_unit
8298
+ currency_amount_preferred_currency_unit: preferred_currency_unit
8299
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
8300
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
8301
+ }
8302
+ channel_snapshot_local_unsettled_balance: local_unsettled_balance {
8303
+ __typename
8304
+ currency_amount_original_value: original_value
8305
+ currency_amount_original_unit: original_unit
8306
+ currency_amount_preferred_currency_unit: preferred_currency_unit
8307
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
8308
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
8309
+ }
8310
+ channel_snapshot_remote_balance: remote_balance {
8311
+ __typename
8312
+ currency_amount_original_value: original_value
8313
+ currency_amount_original_unit: original_unit
8314
+ currency_amount_preferred_currency_unit: preferred_currency_unit
8315
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
8316
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
8317
+ }
8318
+ channel_snapshot_remote_unsettled_balance: remote_unsettled_balance {
8319
+ __typename
8320
+ currency_amount_original_value: original_value
8321
+ currency_amount_original_unit: original_unit
8322
+ currency_amount_preferred_currency_unit: preferred_currency_unit
8323
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
8324
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
8325
+ }
8326
+ channel_snapshot_status: status
8327
+ channel_snapshot_channel: channel {
8328
+ id
8329
+ }
8330
+ channel_snapshot_local_channel_reserve: local_channel_reserve {
8331
+ __typename
8332
+ currency_amount_original_value: original_value
8333
+ currency_amount_original_unit: original_unit
8334
+ currency_amount_preferred_currency_unit: preferred_currency_unit
8335
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
8336
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
8337
+ }
8338
+ channel_snapshot_timestamp: timestamp
8339
+ }`;
8340
+ var getChannelSnapshotQuery = (id) => {
8341
+ return {
8342
+ queryPayload: `
8343
+ query GetChannelSnapshot($id: ID!) {
8344
+ entity(id: $id) {
8345
+ ... on ChannelSnapshot {
8346
+ ...ChannelSnapshotFragment
8347
+ }
8348
+ }
8349
+ }
8350
+
8351
+ ${FRAGMENT21}
8352
+ `,
8353
+ variables: { id },
8354
+ constructObject: (data) => ChannelSnapshotFromJson(data.entity)
8355
+ };
8356
+ };
8357
+
8294
8358
  // src/objects/RegionCode.ts
8295
8359
  var RegionCode = /* @__PURE__ */ ((RegionCode2) => {
8296
8360
  RegionCode2["FUTURE_VALUE"] = "FUTURE_VALUE";
@@ -8556,7 +8620,7 @@ var ComplianceProvider = /* @__PURE__ */ ((ComplianceProvider2) => {
8556
8620
  var ComplianceProvider_default = ComplianceProvider;
8557
8621
 
8558
8622
  // src/objects/Connection.ts
8559
- var import_core6 = require("@lightsparkdev/core");
8623
+ var import_core7 = require("@lightsparkdev/core");
8560
8624
 
8561
8625
  // src/objects/InvoiceType.ts
8562
8626
  var InvoiceType = /* @__PURE__ */ ((InvoiceType2) => {
@@ -8593,7 +8657,7 @@ var SignablePayloadFromJson = (obj) => {
8593
8657
  mulTweak: obj["signable_payload_mul_tweak"]
8594
8658
  };
8595
8659
  };
8596
- var FRAGMENT20 = `
8660
+ var FRAGMENT22 = `
8597
8661
  fragment SignablePayloadFragment on SignablePayload {
8598
8662
  __typename
8599
8663
  signable_payload_id: id
@@ -8619,7 +8683,7 @@ query GetSignablePayload($id: ID!) {
8619
8683
  }
8620
8684
  }
8621
8685
 
8622
- ${FRAGMENT20}
8686
+ ${FRAGMENT22}
8623
8687
  `,
8624
8688
  variables: { id },
8625
8689
  constructObject: (data) => SignablePayloadFromJson(data.entity)
@@ -8645,7 +8709,7 @@ var DepositFromJson = (obj) => {
8645
8709
  numConfirmations: obj["deposit_num_confirmations"]
8646
8710
  };
8647
8711
  };
8648
- var FRAGMENT21 = `
8712
+ var FRAGMENT23 = `
8649
8713
  fragment DepositFragment on Deposit {
8650
8714
  __typename
8651
8715
  deposit_id: id
@@ -8689,7 +8753,7 @@ query GetDeposit($id: ID!) {
8689
8753
  }
8690
8754
  }
8691
8755
 
8692
- ${FRAGMENT21}
8756
+ ${FRAGMENT23}
8693
8757
  `,
8694
8758
  variables: { id },
8695
8759
  constructObject: (data) => DepositFromJson(data.entity)
@@ -8731,7 +8795,7 @@ var InvoiceFromJson = (obj) => {
8731
8795
  amountPaid: !!obj["invoice_amount_paid"] ? CurrencyAmountFromJson(obj["invoice_amount_paid"]) : void 0
8732
8796
  };
8733
8797
  };
8734
- var FRAGMENT22 = `
8798
+ var FRAGMENT24 = `
8735
8799
  fragment InvoiceFragment on Invoice {
8736
8800
  __typename
8737
8801
  invoice_id: id
@@ -9049,7 +9113,7 @@ query GetInvoice($id: ID!) {
9049
9113
  }
9050
9114
  }
9051
9115
 
9052
- ${FRAGMENT22}
9116
+ ${FRAGMENT24}
9053
9117
  `,
9054
9118
  variables: { id },
9055
9119
  constructObject: (data) => InvoiceFromJson(data.entity)
@@ -9057,7 +9121,7 @@ ${FRAGMENT22}
9057
9121
  };
9058
9122
 
9059
9123
  // src/objects/LightningTransaction.ts
9060
- var import_core7 = require("@lightsparkdev/core");
9124
+ var import_core8 = require("@lightsparkdev/core");
9061
9125
  var LightningTransactionFromJson = (obj) => {
9062
9126
  if (obj["__typename"] == "IncomingPayment") {
9063
9127
  return new IncomingPayment_default(
@@ -9066,7 +9130,9 @@ var LightningTransactionFromJson = (obj) => {
9066
9130
  obj["incoming_payment_updated_at"],
9067
9131
  TransactionStatus_default[obj["incoming_payment_status"]] ?? TransactionStatus_default.FUTURE_VALUE,
9068
9132
  CurrencyAmountFromJson(obj["incoming_payment_amount"]),
9133
+ obj["incoming_payment_is_uma"],
9069
9134
  obj["incoming_payment_destination"].id,
9135
+ obj["incoming_payment_is_internal_payment"],
9070
9136
  "IncomingPayment",
9071
9137
  obj["incoming_payment_resolved_at"],
9072
9138
  obj["incoming_payment_transaction_hash"],
@@ -9083,7 +9149,9 @@ var LightningTransactionFromJson = (obj) => {
9083
9149
  obj["outgoing_payment_updated_at"],
9084
9150
  TransactionStatus_default[obj["outgoing_payment_status"]] ?? TransactionStatus_default.FUTURE_VALUE,
9085
9151
  CurrencyAmountFromJson(obj["outgoing_payment_amount"]),
9152
+ obj["outgoing_payment_is_uma"],
9086
9153
  obj["outgoing_payment_origin"].id,
9154
+ obj["outgoing_payment_is_internal_payment"],
9087
9155
  "OutgoingPayment",
9088
9156
  obj["outgoing_payment_resolved_at"],
9089
9157
  obj["outgoing_payment_transaction_hash"],
@@ -9117,12 +9185,12 @@ var LightningTransactionFromJson = (obj) => {
9117
9185
  failureReason: !!obj["routing_transaction_failure_reason"] ? RoutingTransactionFailureReason_default[obj["routing_transaction_failure_reason"]] ?? RoutingTransactionFailureReason_default.FUTURE_VALUE : null
9118
9186
  };
9119
9187
  }
9120
- throw new import_core7.LightsparkException(
9188
+ throw new import_core8.LightsparkException(
9121
9189
  "DeserializationError",
9122
9190
  `Couldn't find a concrete type for interface LightningTransaction corresponding to the typename=${obj["__typename"]}`
9123
9191
  );
9124
9192
  };
9125
- var FRAGMENT23 = `
9193
+ var FRAGMENT25 = `
9126
9194
  fragment LightningTransactionFragment on LightningTransaction {
9127
9195
  __typename
9128
9196
  ... on IncomingPayment {
@@ -9141,6 +9209,7 @@ fragment LightningTransactionFragment on LightningTransaction {
9141
9209
  currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
9142
9210
  }
9143
9211
  incoming_payment_transaction_hash: transaction_hash
9212
+ incoming_payment_is_uma: is_uma
9144
9213
  incoming_payment_destination: destination {
9145
9214
  id
9146
9215
  }
@@ -9159,6 +9228,7 @@ fragment LightningTransactionFragment on LightningTransaction {
9159
9228
  currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
9160
9229
  }
9161
9230
  }
9231
+ incoming_payment_is_internal_payment: is_internal_payment
9162
9232
  }
9163
9233
  ... on OutgoingPayment {
9164
9234
  __typename
@@ -9176,6 +9246,7 @@ fragment LightningTransactionFragment on LightningTransaction {
9176
9246
  currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
9177
9247
  }
9178
9248
  outgoing_payment_transaction_hash: transaction_hash
9249
+ outgoing_payment_is_uma: is_uma
9179
9250
  outgoing_payment_origin: origin {
9180
9251
  id
9181
9252
  }
@@ -9502,6 +9573,7 @@ fragment LightningTransactionFragment on LightningTransaction {
9502
9573
  }
9503
9574
  }
9504
9575
  outgoing_payment_payment_preimage: payment_preimage
9576
+ outgoing_payment_is_internal_payment: is_internal_payment
9505
9577
  }
9506
9578
  ... on RoutingTransaction {
9507
9579
  __typename
@@ -9551,7 +9623,7 @@ query GetLightningTransaction($id: ID!) {
9551
9623
  }
9552
9624
  }
9553
9625
 
9554
- ${FRAGMENT23}
9626
+ ${FRAGMENT25}
9555
9627
  `,
9556
9628
  variables: { id },
9557
9629
  constructObject: (data) => LightningTransactionFromJson(data.entity)
@@ -9559,7 +9631,7 @@ ${FRAGMENT23}
9559
9631
  };
9560
9632
 
9561
9633
  // src/objects/LightsparkNodeOwner.ts
9562
- var import_core8 = require("@lightsparkdev/core");
9634
+ var import_core9 = require("@lightsparkdev/core");
9563
9635
  var LightsparkNodeOwnerFromJson = (obj) => {
9564
9636
  if (obj["__typename"] == "Account") {
9565
9637
  return new Account_default(
@@ -9583,12 +9655,12 @@ var LightsparkNodeOwnerFromJson = (obj) => {
9583
9655
  obj["wallet_account"]?.id ?? void 0
9584
9656
  );
9585
9657
  }
9586
- throw new import_core8.LightsparkException(
9658
+ throw new import_core9.LightsparkException(
9587
9659
  "DeserializationError",
9588
9660
  `Couldn't find a concrete type for interface LightsparkNodeOwner corresponding to the typename=${obj["__typename"]}`
9589
9661
  );
9590
9662
  };
9591
- var FRAGMENT24 = `
9663
+ var FRAGMENT26 = `
9592
9664
  fragment LightsparkNodeOwnerFragment on LightsparkNodeOwner {
9593
9665
  __typename
9594
9666
  ... on Account {
@@ -9649,7 +9721,7 @@ query GetLightsparkNodeOwner($id: ID!) {
9649
9721
  }
9650
9722
  }
9651
9723
 
9652
- ${FRAGMENT24}
9724
+ ${FRAGMENT26}
9653
9725
  `,
9654
9726
  variables: { id },
9655
9727
  constructObject: (data) => LightsparkNodeOwnerFromJson(data.entity)
@@ -9657,7 +9729,7 @@ ${FRAGMENT24}
9657
9729
  };
9658
9730
 
9659
9731
  // src/objects/OnChainTransaction.ts
9660
- var import_core9 = require("@lightsparkdev/core");
9732
+ var import_core10 = require("@lightsparkdev/core");
9661
9733
  var OnChainTransactionFromJson = (obj) => {
9662
9734
  if (obj["__typename"] == "ChannelClosingTransaction") {
9663
9735
  return {
@@ -9731,12 +9803,12 @@ var OnChainTransactionFromJson = (obj) => {
9731
9803
  numConfirmations: obj["withdrawal_num_confirmations"]
9732
9804
  };
9733
9805
  }
9734
- throw new import_core9.LightsparkException(
9806
+ throw new import_core10.LightsparkException(
9735
9807
  "DeserializationError",
9736
9808
  `Couldn't find a concrete type for interface OnChainTransaction corresponding to the typename=${obj["__typename"]}`
9737
9809
  );
9738
9810
  };
9739
- var FRAGMENT25 = `
9811
+ var FRAGMENT27 = `
9740
9812
  fragment OnChainTransactionFragment on OnChainTransaction {
9741
9813
  __typename
9742
9814
  ... on ChannelClosingTransaction {
@@ -9879,7 +9951,7 @@ query GetOnChainTransaction($id: ID!) {
9879
9951
  }
9880
9952
  }
9881
9953
 
9882
- ${FRAGMENT25}
9954
+ ${FRAGMENT27}
9883
9955
  `,
9884
9956
  variables: { id },
9885
9957
  constructObject: (data) => OnChainTransactionFromJson(data.entity)
@@ -9938,7 +10010,7 @@ var RoutingTransactionFromJson = (obj) => {
9938
10010
  failureReason: !!obj["routing_transaction_failure_reason"] ? RoutingTransactionFailureReason_default[obj["routing_transaction_failure_reason"]] ?? RoutingTransactionFailureReason_default.FUTURE_VALUE : null
9939
10011
  };
9940
10012
  };
9941
- var FRAGMENT26 = `
10013
+ var FRAGMENT28 = `
9942
10014
  fragment RoutingTransactionFragment on RoutingTransaction {
9943
10015
  __typename
9944
10016
  routing_transaction_id: id
@@ -9986,7 +10058,7 @@ query GetRoutingTransaction($id: ID!) {
9986
10058
  }
9987
10059
  }
9988
10060
 
9989
- ${FRAGMENT26}
10061
+ ${FRAGMENT28}
9990
10062
  `,
9991
10063
  variables: { id },
9992
10064
  constructObject: (data) => RoutingTransactionFromJson(data.entity)
@@ -10002,7 +10074,7 @@ var SignableFromJson = (obj) => {
10002
10074
  typename: "Signable"
10003
10075
  };
10004
10076
  };
10005
- var FRAGMENT27 = `
10077
+ var FRAGMENT29 = `
10006
10078
  fragment SignableFragment on Signable {
10007
10079
  __typename
10008
10080
  signable_id: id
@@ -10020,7 +10092,7 @@ query GetSignable($id: ID!) {
10020
10092
  }
10021
10093
  }
10022
10094
 
10023
- ${FRAGMENT27}
10095
+ ${FRAGMENT29}
10024
10096
  `,
10025
10097
  variables: { id },
10026
10098
  constructObject: (data) => SignableFromJson(data.entity)
@@ -10059,7 +10131,7 @@ var UmaInvitationFromJson = (obj) => {
10059
10131
  incentivesIneligibilityReason: !!obj["uma_invitation_incentives_ineligibility_reason"] ? IncentivesIneligibilityReason_default[obj["uma_invitation_incentives_ineligibility_reason"]] ?? IncentivesIneligibilityReason_default.FUTURE_VALUE : null
10060
10132
  };
10061
10133
  };
10062
- var FRAGMENT28 = `
10134
+ var FRAGMENT30 = `
10063
10135
  fragment UmaInvitationFragment on UmaInvitation {
10064
10136
  __typename
10065
10137
  uma_invitation_id: id
@@ -10083,7 +10155,7 @@ query GetUmaInvitation($id: ID!) {
10083
10155
  }
10084
10156
  }
10085
10157
 
10086
- ${FRAGMENT28}
10158
+ ${FRAGMENT30}
10087
10159
  `,
10088
10160
  variables: { id },
10089
10161
  constructObject: (data) => UmaInvitationFromJson(data.entity)
@@ -10106,6 +10178,7 @@ var WebhookEventType = /* @__PURE__ */ ((WebhookEventType2) => {
10106
10178
  WebhookEventType2["WALLET_FUNDS_RECEIVED"] = "WALLET_FUNDS_RECEIVED";
10107
10179
  WebhookEventType2["REMOTE_SIGNING"] = "REMOTE_SIGNING";
10108
10180
  WebhookEventType2["LOW_BALANCE"] = "LOW_BALANCE";
10181
+ WebhookEventType2["HIGH_BALANCE"] = "HIGH_BALANCE";
10109
10182
  return WebhookEventType2;
10110
10183
  })(WebhookEventType || {});
10111
10184
  var WebhookEventType_default = WebhookEventType;
@@ -10129,7 +10202,7 @@ var WithdrawalFromJson = (obj) => {
10129
10202
  numConfirmations: obj["withdrawal_num_confirmations"]
10130
10203
  };
10131
10204
  };
10132
- var FRAGMENT29 = `
10205
+ var FRAGMENT31 = `
10133
10206
  fragment WithdrawalFragment on Withdrawal {
10134
10207
  __typename
10135
10208
  withdrawal_id: id
@@ -10173,7 +10246,7 @@ query GetWithdrawal($id: ID!) {
10173
10246
  }
10174
10247
  }
10175
10248
 
10176
- ${FRAGMENT29}
10249
+ ${FRAGMENT31}
10177
10250
  `,
10178
10251
  variables: { id },
10179
10252
  constructObject: (data) => WithdrawalFromJson(data.entity)
@@ -10220,8 +10293,10 @@ ${FRAGMENT29}
10220
10293
  WithdrawalRequest,
10221
10294
  WithdrawalRequestStatus,
10222
10295
  getApiTokenQuery,
10296
+ getAuditLogActorQuery,
10223
10297
  getChannelClosingTransactionQuery,
10224
10298
  getChannelOpeningTransactionQuery,
10299
+ getChannelSnapshotQuery,
10225
10300
  getDepositQuery,
10226
10301
  getHopQuery,
10227
10302
  getIncomingPaymentAttemptQuery,