@lightsparkdev/lightspark-sdk 1.5.2 → 1.5.4

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.
@@ -31,7 +31,6 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
31
31
  var objects_exports = {};
32
32
  __export(objects_exports, {
33
33
  Account: () => Account_default,
34
- AccountToChannelsConnection: () => AccountToChannelsConnection_default,
35
34
  BitcoinNetwork: () => BitcoinNetwork_default,
36
35
  Channel: () => Channel_default,
37
36
  ChannelStatus: () => ChannelStatus_default,
@@ -44,6 +43,7 @@ __export(objects_exports, {
44
43
  IncomingPayment: () => IncomingPayment_default,
45
44
  IncomingPaymentAttemptStatus: () => IncomingPaymentAttemptStatus_default,
46
45
  InvoiceType: () => InvoiceType_default,
46
+ LightningPaymentDirection: () => LightningPaymentDirection_default,
47
47
  LightsparkNodeStatus: () => LightsparkNodeStatus_default,
48
48
  LightsparkNodeWithOSK: () => LightsparkNodeWithOSK_default,
49
49
  LightsparkNodeWithRemoteSigning: () => LightsparkNodeWithRemoteSigning_default,
@@ -91,7 +91,7 @@ __export(objects_exports, {
91
91
  module.exports = __toCommonJS(objects_exports);
92
92
 
93
93
  // src/objects/Account.ts
94
- var import_auto_bind11 = __toESM(require("auto-bind"), 1);
94
+ var import_auto_bind10 = __toESM(require("auto-bind"), 1);
95
95
 
96
96
  // src/objects/Permission.ts
97
97
  var Permission = /* @__PURE__ */ ((Permission2) => {
@@ -178,9 +178,6 @@ var AccountToApiTokensConnectionFromJson = (obj) => {
178
178
  };
179
179
  };
180
180
 
181
- // src/objects/AccountToChannelsConnection.ts
182
- var import_auto_bind2 = __toESM(require("auto-bind"), 1);
183
-
184
181
  // src/objects/Channel.ts
185
182
  var import_auto_bind = __toESM(require("auto-bind"), 1);
186
183
 
@@ -520,30 +517,16 @@ fragment ChannelFragment on Channel {
520
517
  var Channel_default = Channel;
521
518
 
522
519
  // src/objects/AccountToChannelsConnection.ts
523
- var AccountToChannelsConnection = class {
524
- constructor(count, entities) {
525
- this.count = count;
526
- this.entities = entities;
527
- (0, import_auto_bind2.default)(this);
528
- }
529
- toJson() {
530
- return {
531
- account_to_channels_connection_count: this.count,
532
- account_to_channels_connection_entities: this.entities.map(
533
- (e) => e.toJson()
534
- )
535
- };
536
- }
537
- };
538
520
  var AccountToChannelsConnectionFromJson = (obj) => {
539
- return new AccountToChannelsConnection(
540
- obj["account_to_channels_connection_count"],
541
- obj["account_to_channels_connection_entities"].map(
521
+ return {
522
+ count: obj["account_to_channels_connection_count"],
523
+ pageInfo: PageInfoFromJson(obj["account_to_channels_connection_page_info"]),
524
+ entities: obj["account_to_channels_connection_entities"].map(
542
525
  (e) => ChannelFromJson(e)
543
- )
544
- );
526
+ ),
527
+ typename: "AccountToChannelsConnection"
528
+ };
545
529
  };
546
- var AccountToChannelsConnection_default = AccountToChannelsConnection;
547
530
 
548
531
  // src/objects/LightsparkNode.ts
549
532
  var import_core = require("@lightsparkdev/core");
@@ -623,7 +606,7 @@ var LightsparkNodeStatus = /* @__PURE__ */ ((LightsparkNodeStatus2) => {
623
606
  var LightsparkNodeStatus_default = LightsparkNodeStatus;
624
607
 
625
608
  // src/objects/LightsparkNodeWithOSK.ts
626
- var import_auto_bind3 = __toESM(require("auto-bind"), 1);
609
+ var import_auto_bind2 = __toESM(require("auto-bind"), 1);
627
610
 
628
611
  // src/objects/LightsparkNodeToChannelsConnection.ts
629
612
  var LightsparkNodeToChannelsConnectionFromJson = (obj) => {
@@ -639,6 +622,34 @@ var LightsparkNodeToChannelsConnectionFromJson = (obj) => {
639
622
  };
640
623
  };
641
624
 
625
+ // src/objects/LightningPaymentDirection.ts
626
+ var LightningPaymentDirection = /* @__PURE__ */ ((LightningPaymentDirection2) => {
627
+ LightningPaymentDirection2["FUTURE_VALUE"] = "FUTURE_VALUE";
628
+ LightningPaymentDirection2["INCOMING"] = "INCOMING";
629
+ LightningPaymentDirection2["OUTGOING"] = "OUTGOING";
630
+ return LightningPaymentDirection2;
631
+ })(LightningPaymentDirection || {});
632
+ var LightningPaymentDirection_default = LightningPaymentDirection;
633
+
634
+ // src/objects/DailyLiquidityForecast.ts
635
+ var DailyLiquidityForecastFromJson = (obj) => {
636
+ return {
637
+ date: obj["daily_liquidity_forecast_date"],
638
+ direction: LightningPaymentDirection_default[obj["daily_liquidity_forecast_direction"]] ?? LightningPaymentDirection_default.FUTURE_VALUE,
639
+ amount: CurrencyAmountFromJson(obj["daily_liquidity_forecast_amount"])
640
+ };
641
+ };
642
+
643
+ // src/objects/LightsparkNodeToDailyLiquidityForecastsConnection.ts
644
+ var LightsparkNodeToDailyLiquidityForecastsConnectionFromJson = (obj) => {
645
+ return {
646
+ fromDate: obj["lightspark_node_to_daily_liquidity_forecasts_connection_from_date"],
647
+ toDate: obj["lightspark_node_to_daily_liquidity_forecasts_connection_to_date"],
648
+ direction: LightningPaymentDirection_default[obj["lightspark_node_to_daily_liquidity_forecasts_connection_direction"]] ?? LightningPaymentDirection_default.FUTURE_VALUE,
649
+ entities: obj["lightspark_node_to_daily_liquidity_forecasts_connection_entities"].map((e) => DailyLiquidityForecastFromJson(e))
650
+ };
651
+ };
652
+
642
653
  // src/objects/NodeAddressType.ts
643
654
  var NodeAddressType = /* @__PURE__ */ ((NodeAddressType2) => {
644
655
  NodeAddressType2["FUTURE_VALUE"] = "FUTURE_VALUE";
@@ -704,7 +715,7 @@ var LightsparkNodeWithOSK = class {
704
715
  this.blockchainBalance = blockchainBalance;
705
716
  this.balances = balances;
706
717
  this.encryptedSigningPrivateKey = encryptedSigningPrivateKey;
707
- (0, import_auto_bind3.default)(this);
718
+ (0, import_auto_bind2.default)(this);
708
719
  }
709
720
  async getAddresses(client, first = void 0, types = void 0) {
710
721
  return await client.executeRawQuery({
@@ -859,6 +870,49 @@ query FetchLightsparkNodeToChannelsConnection($entity_id: ID!, $first: Int, $sta
859
870
  }
860
871
  });
861
872
  }
873
+ async getDailyLiquidityForecasts(client, fromDate, toDate, direction) {
874
+ return await client.executeRawQuery({
875
+ queryPayload: `
876
+ query FetchLightsparkNodeToDailyLiquidityForecastsConnection($entity_id: ID!, $from_date: Date!, $to_date: Date!, $direction: LightningPaymentDirection!) {
877
+ entity(id: $entity_id) {
878
+ ... on LightsparkNodeWithOSK {
879
+ daily_liquidity_forecasts(, from_date: $from_date, to_date: $to_date, direction: $direction) {
880
+ __typename
881
+ lightspark_node_to_daily_liquidity_forecasts_connection_from_date: from_date
882
+ lightspark_node_to_daily_liquidity_forecasts_connection_to_date: to_date
883
+ lightspark_node_to_daily_liquidity_forecasts_connection_direction: direction
884
+ lightspark_node_to_daily_liquidity_forecasts_connection_entities: entities {
885
+ __typename
886
+ daily_liquidity_forecast_date: date
887
+ daily_liquidity_forecast_direction: direction
888
+ daily_liquidity_forecast_amount: amount {
889
+ __typename
890
+ currency_amount_original_value: original_value
891
+ currency_amount_original_unit: original_unit
892
+ currency_amount_preferred_currency_unit: preferred_currency_unit
893
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
894
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
895
+ }
896
+ }
897
+ }
898
+ }
899
+ }
900
+ }
901
+ `,
902
+ variables: {
903
+ entity_id: this.id,
904
+ from_date: fromDate,
905
+ to_date: toDate,
906
+ direction
907
+ },
908
+ constructObject: (json) => {
909
+ const connection = json["entity"]["daily_liquidity_forecasts"];
910
+ return LightsparkNodeToDailyLiquidityForecastsConnectionFromJson(
911
+ connection
912
+ );
913
+ }
914
+ });
915
+ }
862
916
  static getLightsparkNodeWithOSKQuery(id) {
863
917
  return {
864
918
  queryPayload: `
@@ -1067,7 +1121,7 @@ fragment LightsparkNodeWithOSKFragment on LightsparkNodeWithOSK {
1067
1121
  var LightsparkNodeWithOSK_default = LightsparkNodeWithOSK;
1068
1122
 
1069
1123
  // src/objects/LightsparkNodeWithRemoteSigning.ts
1070
- var import_auto_bind4 = __toESM(require("auto-bind"), 1);
1124
+ var import_auto_bind3 = __toESM(require("auto-bind"), 1);
1071
1125
  var LightsparkNodeWithRemoteSigning = class {
1072
1126
  constructor(id, createdAt, updatedAt, bitcoinNetwork, displayName, ownerId, umaPrescreeningUtxos, typename, alias, color, conductivity, publicKey, status, totalBalance, totalLocalBalance, localBalance, remoteBalance, blockchainBalance, balances) {
1073
1127
  this.id = id;
@@ -1089,7 +1143,7 @@ var LightsparkNodeWithRemoteSigning = class {
1089
1143
  this.remoteBalance = remoteBalance;
1090
1144
  this.blockchainBalance = blockchainBalance;
1091
1145
  this.balances = balances;
1092
- (0, import_auto_bind4.default)(this);
1146
+ (0, import_auto_bind3.default)(this);
1093
1147
  }
1094
1148
  async getAddresses(client, first = void 0, types = void 0) {
1095
1149
  return await client.executeRawQuery({
@@ -1244,6 +1298,49 @@ query FetchLightsparkNodeToChannelsConnection($entity_id: ID!, $first: Int, $sta
1244
1298
  }
1245
1299
  });
1246
1300
  }
1301
+ async getDailyLiquidityForecasts(client, fromDate, toDate, direction) {
1302
+ return await client.executeRawQuery({
1303
+ queryPayload: `
1304
+ query FetchLightsparkNodeToDailyLiquidityForecastsConnection($entity_id: ID!, $from_date: Date!, $to_date: Date!, $direction: LightningPaymentDirection!) {
1305
+ entity(id: $entity_id) {
1306
+ ... on LightsparkNodeWithRemoteSigning {
1307
+ daily_liquidity_forecasts(, from_date: $from_date, to_date: $to_date, direction: $direction) {
1308
+ __typename
1309
+ lightspark_node_to_daily_liquidity_forecasts_connection_from_date: from_date
1310
+ lightspark_node_to_daily_liquidity_forecasts_connection_to_date: to_date
1311
+ lightspark_node_to_daily_liquidity_forecasts_connection_direction: direction
1312
+ lightspark_node_to_daily_liquidity_forecasts_connection_entities: entities {
1313
+ __typename
1314
+ daily_liquidity_forecast_date: date
1315
+ daily_liquidity_forecast_direction: direction
1316
+ daily_liquidity_forecast_amount: amount {
1317
+ __typename
1318
+ currency_amount_original_value: original_value
1319
+ currency_amount_original_unit: original_unit
1320
+ currency_amount_preferred_currency_unit: preferred_currency_unit
1321
+ currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
1322
+ currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
1323
+ }
1324
+ }
1325
+ }
1326
+ }
1327
+ }
1328
+ }
1329
+ `,
1330
+ variables: {
1331
+ entity_id: this.id,
1332
+ from_date: fromDate,
1333
+ to_date: toDate,
1334
+ direction
1335
+ },
1336
+ constructObject: (json) => {
1337
+ const connection = json["entity"]["daily_liquidity_forecasts"];
1338
+ return LightsparkNodeToDailyLiquidityForecastsConnectionFromJson(
1339
+ connection
1340
+ );
1341
+ }
1342
+ });
1343
+ }
1247
1344
  static getLightsparkNodeWithRemoteSigningQuery(id) {
1248
1345
  return {
1249
1346
  queryPayload: `
@@ -1824,7 +1921,7 @@ var import_core3 = require("@lightsparkdev/core");
1824
1921
  var import_core2 = require("@lightsparkdev/core");
1825
1922
 
1826
1923
  // src/objects/GraphNode.ts
1827
- var import_auto_bind5 = __toESM(require("auto-bind"), 1);
1924
+ var import_auto_bind4 = __toESM(require("auto-bind"), 1);
1828
1925
  var GraphNode = class {
1829
1926
  constructor(id, createdAt, updatedAt, bitcoinNetwork, displayName, typename, alias, color, conductivity, publicKey) {
1830
1927
  this.id = id;
@@ -1837,7 +1934,7 @@ var GraphNode = class {
1837
1934
  this.color = color;
1838
1935
  this.conductivity = conductivity;
1839
1936
  this.publicKey = publicKey;
1840
- (0, import_auto_bind5.default)(this);
1937
+ (0, import_auto_bind4.default)(this);
1841
1938
  }
1842
1939
  async getAddresses(client, first = void 0, types = void 0) {
1843
1940
  return await client.executeRawQuery({
@@ -2773,7 +2870,7 @@ var AccountToPaymentRequestsConnectionFromJson = (obj) => {
2773
2870
  var import_core5 = require("@lightsparkdev/core");
2774
2871
 
2775
2872
  // src/objects/IncomingPayment.ts
2776
- var import_auto_bind6 = __toESM(require("auto-bind"), 1);
2873
+ var import_auto_bind5 = __toESM(require("auto-bind"), 1);
2777
2874
 
2778
2875
  // src/objects/IncomingPaymentAttemptStatus.ts
2779
2876
  var IncomingPaymentAttemptStatus = /* @__PURE__ */ ((IncomingPaymentAttemptStatus2) => {
@@ -2892,7 +2989,7 @@ var IncomingPayment = class {
2892
2989
  this.transactionHash = transactionHash;
2893
2990
  this.paymentRequestId = paymentRequestId;
2894
2991
  this.umaPostTransactionData = umaPostTransactionData;
2895
- (0, import_auto_bind6.default)(this);
2992
+ (0, import_auto_bind5.default)(this);
2896
2993
  }
2897
2994
  async getAttempts(client, first = void 0, statuses = void 0, after = void 0) {
2898
2995
  return await client.executeRawQuery({
@@ -3035,10 +3132,10 @@ fragment IncomingPaymentFragment on IncomingPayment {
3035
3132
  var IncomingPayment_default = IncomingPayment;
3036
3133
 
3037
3134
  // src/objects/OutgoingPayment.ts
3038
- var import_auto_bind8 = __toESM(require("auto-bind"), 1);
3135
+ var import_auto_bind7 = __toESM(require("auto-bind"), 1);
3039
3136
 
3040
3137
  // src/objects/OutgoingPaymentAttempt.ts
3041
- var import_auto_bind7 = __toESM(require("auto-bind"), 1);
3138
+ var import_auto_bind6 = __toESM(require("auto-bind"), 1);
3042
3139
 
3043
3140
  // src/objects/ChannelSnapshot.ts
3044
3141
  var ChannelSnapshotFromJson = (obj) => {
@@ -3201,7 +3298,7 @@ var OutgoingPaymentAttempt = class {
3201
3298
  this.amount = amount;
3202
3299
  this.fees = fees;
3203
3300
  this.channelSnapshot = channelSnapshot;
3204
- (0, import_auto_bind7.default)(this);
3301
+ (0, import_auto_bind6.default)(this);
3205
3302
  }
3206
3303
  async getHops(client, first = void 0, after = void 0) {
3207
3304
  return await client.executeRawQuery({
@@ -3497,7 +3594,7 @@ var OutgoingPayment = class {
3497
3594
  this.failureMessage = failureMessage;
3498
3595
  this.umaPostTransactionData = umaPostTransactionData;
3499
3596
  this.paymentPreimage = paymentPreimage;
3500
- (0, import_auto_bind8.default)(this);
3597
+ (0, import_auto_bind7.default)(this);
3501
3598
  }
3502
3599
  async getAttempts(client, first = void 0, after = void 0) {
3503
3600
  return await client.executeRawQuery({
@@ -4745,7 +4842,7 @@ var AccountToTransactionsConnectionFromJson = (obj) => {
4745
4842
  };
4746
4843
 
4747
4844
  // src/objects/Wallet.ts
4748
- var import_auto_bind10 = __toESM(require("auto-bind"), 1);
4845
+ var import_auto_bind9 = __toESM(require("auto-bind"), 1);
4749
4846
 
4750
4847
  // src/objects/WalletStatus.ts
4751
4848
  var WalletStatus = /* @__PURE__ */ ((WalletStatus2) => {
@@ -4792,7 +4889,7 @@ var WalletToTransactionsConnectionFromJson = (obj) => {
4792
4889
  };
4793
4890
 
4794
4891
  // src/objects/WithdrawalRequest.ts
4795
- var import_auto_bind9 = __toESM(require("auto-bind"), 1);
4892
+ var import_auto_bind8 = __toESM(require("auto-bind"), 1);
4796
4893
 
4797
4894
  // src/objects/WithdrawalMode.ts
4798
4895
  var WithdrawalMode = /* @__PURE__ */ ((WithdrawalMode2) => {
@@ -4992,7 +5089,7 @@ var WithdrawalRequest = class {
4992
5089
  this.amountWithdrawn = amountWithdrawn;
4993
5090
  this.completedAt = completedAt;
4994
5091
  this.withdrawalId = withdrawalId;
4995
- (0, import_auto_bind9.default)(this);
5092
+ (0, import_auto_bind8.default)(this);
4996
5093
  }
4997
5094
  async getChannelClosingTransactions(client, first = void 0) {
4998
5095
  return await client.executeRawQuery({
@@ -5246,7 +5343,7 @@ var Wallet = class {
5246
5343
  this.lastLoginAt = lastLoginAt;
5247
5344
  this.balances = balances;
5248
5345
  this.accountId = accountId;
5249
- (0, import_auto_bind10.default)(this);
5346
+ (0, import_auto_bind9.default)(this);
5250
5347
  }
5251
5348
  async getTransactions(client, first = void 0, after = void 0, createdAfterDate = void 0, createdBeforeDate = void 0, statuses = void 0, types = void 0) {
5252
5349
  return await client.executeRawQuery({
@@ -6430,7 +6527,7 @@ var Account = class {
6430
6527
  this.updatedAt = updatedAt;
6431
6528
  this.typename = typename;
6432
6529
  this.name = name;
6433
- (0, import_auto_bind11.default)(this);
6530
+ (0, import_auto_bind10.default)(this);
6434
6531
  }
6435
6532
  async getApiTokens(client, first = void 0, after = void 0) {
6436
6533
  return await client.executeRawQuery({
@@ -6923,15 +7020,22 @@ query FetchAccountUptimePercentage($after_date: DateTime, $before_date: DateTime
6923
7020
  }
6924
7021
  });
6925
7022
  }
6926
- async getChannels(client, bitcoinNetwork, lightningNodeId = void 0, afterDate = void 0, beforeDate = void 0, first = void 0) {
7023
+ async getChannels(client, bitcoinNetwork, lightningNodeId = void 0, afterDate = void 0, beforeDate = void 0, first = void 0, after = void 0) {
6927
7024
  return await client.executeRawQuery({
6928
7025
  queryPayload: `
6929
- query FetchAccountToChannelsConnection($bitcoin_network: BitcoinNetwork!, $lightning_node_id: ID, $after_date: DateTime, $before_date: DateTime, $first: Int) {
7026
+ query FetchAccountToChannelsConnection($bitcoin_network: BitcoinNetwork!, $lightning_node_id: ID, $after_date: DateTime, $before_date: DateTime, $first: Int, $after: String) {
6930
7027
  current_account {
6931
7028
  ... on Account {
6932
- channels(, bitcoin_network: $bitcoin_network, lightning_node_id: $lightning_node_id, after_date: $after_date, before_date: $before_date, first: $first) {
7029
+ channels(, bitcoin_network: $bitcoin_network, lightning_node_id: $lightning_node_id, after_date: $after_date, before_date: $before_date, first: $first, after: $after) {
6933
7030
  __typename
6934
7031
  account_to_channels_connection_count: count
7032
+ account_to_channels_connection_page_info: page_info {
7033
+ __typename
7034
+ page_info_has_next_page: has_next_page
7035
+ page_info_has_previous_page: has_previous_page
7036
+ page_info_start_cursor: start_cursor
7037
+ page_info_end_cursor: end_cursor
7038
+ }
6935
7039
  account_to_channels_connection_entities: entities {
6936
7040
  __typename
6937
7041
  channel_id: id
@@ -7036,7 +7140,8 @@ query FetchAccountToChannelsConnection($bitcoin_network: BitcoinNetwork!, $light
7036
7140
  lightning_node_id: lightningNodeId,
7037
7141
  after_date: afterDate,
7038
7142
  before_date: beforeDate,
7039
- first
7143
+ first,
7144
+ after
7040
7145
  },
7041
7146
  constructObject: (json) => {
7042
7147
  const connection = json["current_account"]["channels"];
@@ -10080,7 +10185,6 @@ ${FRAGMENT29}
10080
10185
  // Annotate the CommonJS export names for ESM import in node:
10081
10186
  0 && (module.exports = {
10082
10187
  Account,
10083
- AccountToChannelsConnection,
10084
10188
  BitcoinNetwork,
10085
10189
  Channel,
10086
10190
  ChannelStatus,
@@ -10093,6 +10197,7 @@ ${FRAGMENT29}
10093
10197
  IncomingPayment,
10094
10198
  IncomingPaymentAttemptStatus,
10095
10199
  InvoiceType,
10200
+ LightningPaymentDirection,
10096
10201
  LightsparkNodeStatus,
10097
10202
  LightsparkNodeWithOSK,
10098
10203
  LightsparkNodeWithRemoteSigning,
@@ -1,4 +1,4 @@
1
- export { A as Account, a as AccountToApiTokensConnection, b as AccountToChannelsConnection, c as AccountToNodesConnection, d as AccountToPaymentRequestsConnection, e as AccountToTransactionsConnection, f as AccountToWalletsConnection, g as AccountToWithdrawalRequestsConnection, h as ApiToken, B as Balances, j as BlockchainBalance, C as CancelInvoiceInput, k as CancelInvoiceOutput, l as Channel, m as ChannelClosingTransaction, o as ChannelFees, p as ChannelOpeningTransaction, r as ChannelSnapshot, s as ChannelStatus, t as ChannelToTransactionsConnection, u as ClaimUmaInvitationInput, v as ClaimUmaInvitationOutput, w as ClaimUmaInvitationWithIncentivesInput, x as ClaimUmaInvitationWithIncentivesOutput, y as ComplianceProvider, z as Connection, D as CreateApiTokenInput, E as CreateApiTokenOutput, F as CreateInvitationWithIncentivesInput, G as CreateInvitationWithIncentivesOutput, H as CreateInvoiceInput, I as CreateInvoiceOutput, J as CreateLnurlInvoiceInput, K as CreateNodeWalletAddressInput, M as CreateNodeWalletAddressOutput, N as CreateTestModeInvoiceInput, O as CreateTestModeInvoiceOutput, P as CreateTestModePaymentInput, Q as CreateTestModePaymentoutput, R as CreateUmaInvitationInput, S as CreateUmaInvitationOutput, T as CreateUmaInvoiceInput, U as CurrencyAmount, V as CurrencyUnit, X as DeclineToSignMessagesInput, Y as DeclineToSignMessagesOutput, Z as DeleteApiTokenInput, _ as DeleteApiTokenOutput, $ as Deposit, a1 as Entity, a2 as FeeEstimate, a3 as FundNodeInput, a4 as FundNodeOutput, a5 as GraphNode, a6 as Hop, a8 as HtlcAttemptFailureCode, a9 as IdAndSignature, aa as IncentivesIneligibilityReason, ab as IncentivesStatus, ac as IncomingPayment, ad as IncomingPaymentAttempt, af as IncomingPaymentAttemptStatus, ag as IncomingPaymentToAttemptsConnection, ah as Invoice, aj as InvoiceData, ak as InvoiceType, al as LightningFeeEstimateForInvoiceInput, am as LightningFeeEstimateForNodeInput, an as LightningFeeEstimateOutput, ao as LightningTransaction, aq as LightsparkNode, as as LightsparkNodeOwner, au as LightsparkNodeStatus, av as LightsparkNodeToChannelsConnection, aw as LightsparkNodeWithOSK, ax as LightsparkNodeWithRemoteSigning, ay as Node, aA as NodeAddress, aB as NodeAddressType, aC as NodeToAddressesConnection, aD as OnChainTransaction, aF as OutgoingPayment, aG as OutgoingPaymentAttempt, aH as OutgoingPaymentAttemptStatus, aI as OutgoingPaymentAttemptToHopsConnection, aJ as OutgoingPaymentToAttemptsConnection, aK as OutgoingPaymentsForInvoiceQueryInput, aL as OutgoingPaymentsForInvoiceQueryOutput, aM as PageInfo, aN as PayInvoiceInput, aO as PayInvoiceOutput, aP as PayUmaInvoiceInput, aQ as PaymentDirection, aR as PaymentFailureReason, aS as PaymentRequest, aU as PaymentRequestData, aV as PaymentRequestStatus, aW as Permission, aX as PostTransactionData, aY as RegionCode, aZ as RegisterPaymentInput, a_ as RegisterPaymentOutput, a$ as ReleaseChannelPerCommitmentSecretInput, b0 as ReleaseChannelPerCommitmentSecretOutput, b1 as ReleasePaymentPreimageInput, b2 as ReleasePaymentPreimageOutput, b3 as RemoteSigningSubEventType, b4 as RequestWithdrawalInput, b5 as RequestWithdrawalOutput, b6 as RichText, b7 as RiskRating, b8 as RoutingTransaction, ba as RoutingTransactionFailureReason, bb as ScreenNodeInput, bc as ScreenNodeOutput, bd as Secret, be as SendPaymentInput, bf as SendPaymentOutput, bg as SetInvoicePaymentHashInput, bh as SetInvoicePaymentHashOutput, bi as SignInvoiceInput, bj as SignInvoiceOutput, bk as SignMessagesInput, bl as SignMessagesOutput, bm as Signable, bo as SignablePayload, bq as SignablePayloadStatus, br as SingleNodeDashboard, bs as Transaction, bu as TransactionFailures, bv as TransactionStatus, bw as TransactionType, bx as TransactionUpdate, by as UmaInvitation, bA as UpdateChannelPerCommitmentPointInput, bB as UpdateChannelPerCommitmentPointOutput, bC as UpdateNodeSharedSecretInput, bD as UpdateNodeSharedSecretOutput, bE as Wallet, bF as WalletStatus, bG as WalletToPaymentRequestsConnection, bH as WalletToTransactionsConnection, bI as WalletToWithdrawalRequestsConnection, W as WebhookEventType, bJ as Withdrawal, bL as WithdrawalFeeEstimateInput, bM as WithdrawalFeeEstimateOutput, bN as WithdrawalMode, bO as WithdrawalRequest, bP as WithdrawalRequestStatus, bQ as WithdrawalRequestToChannelClosingTransactionsConnection, bR as WithdrawalRequestToChannelOpeningTransactionsConnection, i as getApiTokenQuery, n as getChannelClosingTransactionQuery, q as getChannelOpeningTransactionQuery, a0 as getDepositQuery, a7 as getHopQuery, ae as getIncomingPaymentAttemptQuery, ai as getInvoiceQuery, ap as getLightningTransactionQuery, at as getLightsparkNodeOwnerQuery, ar as getLightsparkNodeQuery, az as getNodeQuery, aE as getOnChainTransactionQuery, aT as getPaymentRequestQuery, b9 as getRoutingTransactionQuery, bp as getSignablePayloadQuery, bn as getSignableQuery, bt as getTransactionQuery, bz as getUmaInvitationQuery, bK as getWithdrawalQuery } from '../index-f100aa27.js';
1
+ export { A as Account, a as AccountToApiTokensConnection, b as AccountToChannelsConnection, c as AccountToNodesConnection, d as AccountToPaymentRequestsConnection, e as AccountToTransactionsConnection, f as AccountToWalletsConnection, g as AccountToWithdrawalRequestsConnection, h as ApiToken, B as Balances, j as BlockchainBalance, C as CancelInvoiceInput, k as CancelInvoiceOutput, l as Channel, m as ChannelClosingTransaction, o as ChannelFees, p as ChannelOpeningTransaction, r as ChannelSnapshot, s as ChannelStatus, t as ChannelToTransactionsConnection, u as ClaimUmaInvitationInput, v as ClaimUmaInvitationOutput, w as ClaimUmaInvitationWithIncentivesInput, x as ClaimUmaInvitationWithIncentivesOutput, y as ComplianceProvider, z as Connection, D as CreateApiTokenInput, E as CreateApiTokenOutput, F as CreateInvitationWithIncentivesInput, G as CreateInvitationWithIncentivesOutput, H as CreateInvoiceInput, I as CreateInvoiceOutput, J as CreateLnurlInvoiceInput, K as CreateNodeWalletAddressInput, M as CreateNodeWalletAddressOutput, N as CreateTestModeInvoiceInput, O as CreateTestModeInvoiceOutput, P as CreateTestModePaymentInput, Q as CreateTestModePaymentoutput, R as CreateUmaInvitationInput, S as CreateUmaInvitationOutput, T as CreateUmaInvoiceInput, U as CurrencyAmount, V as CurrencyUnit, X as DailyLiquidityForecast, Y as DeclineToSignMessagesInput, Z as DeclineToSignMessagesOutput, _ as DeleteApiTokenInput, $ as DeleteApiTokenOutput, a0 as Deposit, a2 as Entity, a3 as FeeEstimate, a4 as FundNodeInput, a5 as FundNodeOutput, a6 as GraphNode, a7 as Hop, a9 as HtlcAttemptFailureCode, aa as IdAndSignature, ab as IncentivesIneligibilityReason, ac as IncentivesStatus, ad as IncomingPayment, ae as IncomingPaymentAttempt, ag as IncomingPaymentAttemptStatus, ah as IncomingPaymentToAttemptsConnection, ai as Invoice, ak as InvoiceData, al as InvoiceType, am as LightningFeeEstimateForInvoiceInput, an as LightningFeeEstimateForNodeInput, ao as LightningFeeEstimateOutput, ap as LightningPaymentDirection, aq as LightningTransaction, as as LightsparkNode, au as LightsparkNodeOwner, aw as LightsparkNodeStatus, ax as LightsparkNodeToChannelsConnection, ay as LightsparkNodeToDailyLiquidityForecastsConnection, az as LightsparkNodeWithOSK, aA as LightsparkNodeWithRemoteSigning, aB as Node, aD as NodeAddress, aE as NodeAddressType, aF as NodeToAddressesConnection, aG as OnChainTransaction, aI as OutgoingPayment, aJ as OutgoingPaymentAttempt, aK as OutgoingPaymentAttemptStatus, aL as OutgoingPaymentAttemptToHopsConnection, aM as OutgoingPaymentToAttemptsConnection, aN as OutgoingPaymentsForInvoiceQueryInput, aO as OutgoingPaymentsForInvoiceQueryOutput, aP as PageInfo, aQ as PayInvoiceInput, aR as PayInvoiceOutput, aS as PayUmaInvoiceInput, aT as PaymentDirection, aU as PaymentFailureReason, aV as PaymentRequest, aX as PaymentRequestData, aY as PaymentRequestStatus, aZ as Permission, a_ as PostTransactionData, a$ as RegionCode, b0 as RegisterPaymentInput, b1 as RegisterPaymentOutput, b2 as ReleaseChannelPerCommitmentSecretInput, b3 as ReleaseChannelPerCommitmentSecretOutput, b4 as ReleasePaymentPreimageInput, b5 as ReleasePaymentPreimageOutput, b6 as RemoteSigningSubEventType, b7 as RequestWithdrawalInput, b8 as RequestWithdrawalOutput, b9 as RichText, ba as RiskRating, bb as RoutingTransaction, bd as RoutingTransactionFailureReason, be as ScreenNodeInput, bf as ScreenNodeOutput, bg as Secret, bh as SendPaymentInput, bi as SendPaymentOutput, bj as SetInvoicePaymentHashInput, bk as SetInvoicePaymentHashOutput, bl as SignInvoiceInput, bm as SignInvoiceOutput, bn as SignMessagesInput, bo as SignMessagesOutput, bp as Signable, br as SignablePayload, bt as SignablePayloadStatus, bu as SingleNodeDashboard, bv as Transaction, bx as TransactionFailures, by as TransactionStatus, bz as TransactionType, bA as TransactionUpdate, bB as UmaInvitation, bD as UpdateChannelPerCommitmentPointInput, bE as UpdateChannelPerCommitmentPointOutput, bF as UpdateNodeSharedSecretInput, bG as UpdateNodeSharedSecretOutput, bH as Wallet, bI as WalletStatus, bJ as WalletToPaymentRequestsConnection, bK as WalletToTransactionsConnection, bL as WalletToWithdrawalRequestsConnection, W as WebhookEventType, bM as Withdrawal, bO as WithdrawalFeeEstimateInput, bP as WithdrawalFeeEstimateOutput, bQ as WithdrawalMode, bR as WithdrawalRequest, bS as WithdrawalRequestStatus, bT as WithdrawalRequestToChannelClosingTransactionsConnection, bU as WithdrawalRequestToChannelOpeningTransactionsConnection, i as getApiTokenQuery, n as getChannelClosingTransactionQuery, q as getChannelOpeningTransactionQuery, a1 as getDepositQuery, a8 as getHopQuery, af as getIncomingPaymentAttemptQuery, aj as getInvoiceQuery, ar as getLightningTransactionQuery, av as getLightsparkNodeOwnerQuery, at as getLightsparkNodeQuery, aC as getNodeQuery, aH as getOnChainTransactionQuery, aW as getPaymentRequestQuery, bc as getRoutingTransactionQuery, bs as getSignablePayloadQuery, bq as getSignableQuery, bw as getTransactionQuery, bC as getUmaInvitationQuery, bN as getWithdrawalQuery } from '../index-dd1501fa.js';
2
2
  export { B as BitcoinNetwork } from '../BitcoinNetwork-4f6ea015.js';
3
3
  import '@lightsparkdev/core';
4
4
  import 'zen-observable';
@@ -1,4 +1,4 @@
1
- export { A as Account, a as AccountToApiTokensConnection, b as AccountToChannelsConnection, c as AccountToNodesConnection, d as AccountToPaymentRequestsConnection, e as AccountToTransactionsConnection, f as AccountToWalletsConnection, g as AccountToWithdrawalRequestsConnection, h as ApiToken, B as Balances, j as BlockchainBalance, C as CancelInvoiceInput, k as CancelInvoiceOutput, l as Channel, m as ChannelClosingTransaction, o as ChannelFees, p as ChannelOpeningTransaction, r as ChannelSnapshot, s as ChannelStatus, t as ChannelToTransactionsConnection, u as ClaimUmaInvitationInput, v as ClaimUmaInvitationOutput, w as ClaimUmaInvitationWithIncentivesInput, x as ClaimUmaInvitationWithIncentivesOutput, y as ComplianceProvider, z as Connection, D as CreateApiTokenInput, E as CreateApiTokenOutput, F as CreateInvitationWithIncentivesInput, G as CreateInvitationWithIncentivesOutput, H as CreateInvoiceInput, I as CreateInvoiceOutput, J as CreateLnurlInvoiceInput, K as CreateNodeWalletAddressInput, M as CreateNodeWalletAddressOutput, N as CreateTestModeInvoiceInput, O as CreateTestModeInvoiceOutput, P as CreateTestModePaymentInput, Q as CreateTestModePaymentoutput, R as CreateUmaInvitationInput, S as CreateUmaInvitationOutput, T as CreateUmaInvoiceInput, U as CurrencyAmount, V as CurrencyUnit, X as DeclineToSignMessagesInput, Y as DeclineToSignMessagesOutput, Z as DeleteApiTokenInput, _ as DeleteApiTokenOutput, $ as Deposit, a1 as Entity, a2 as FeeEstimate, a3 as FundNodeInput, a4 as FundNodeOutput, a5 as GraphNode, a6 as Hop, a8 as HtlcAttemptFailureCode, a9 as IdAndSignature, aa as IncentivesIneligibilityReason, ab as IncentivesStatus, ac as IncomingPayment, ad as IncomingPaymentAttempt, af as IncomingPaymentAttemptStatus, ag as IncomingPaymentToAttemptsConnection, ah as Invoice, aj as InvoiceData, ak as InvoiceType, al as LightningFeeEstimateForInvoiceInput, am as LightningFeeEstimateForNodeInput, an as LightningFeeEstimateOutput, ao as LightningTransaction, aq as LightsparkNode, as as LightsparkNodeOwner, au as LightsparkNodeStatus, av as LightsparkNodeToChannelsConnection, aw as LightsparkNodeWithOSK, ax as LightsparkNodeWithRemoteSigning, ay as Node, aA as NodeAddress, aB as NodeAddressType, aC as NodeToAddressesConnection, aD as OnChainTransaction, aF as OutgoingPayment, aG as OutgoingPaymentAttempt, aH as OutgoingPaymentAttemptStatus, aI as OutgoingPaymentAttemptToHopsConnection, aJ as OutgoingPaymentToAttemptsConnection, aK as OutgoingPaymentsForInvoiceQueryInput, aL as OutgoingPaymentsForInvoiceQueryOutput, aM as PageInfo, aN as PayInvoiceInput, aO as PayInvoiceOutput, aP as PayUmaInvoiceInput, aQ as PaymentDirection, aR as PaymentFailureReason, aS as PaymentRequest, aU as PaymentRequestData, aV as PaymentRequestStatus, aW as Permission, aX as PostTransactionData, aY as RegionCode, aZ as RegisterPaymentInput, a_ as RegisterPaymentOutput, a$ as ReleaseChannelPerCommitmentSecretInput, b0 as ReleaseChannelPerCommitmentSecretOutput, b1 as ReleasePaymentPreimageInput, b2 as ReleasePaymentPreimageOutput, b3 as RemoteSigningSubEventType, b4 as RequestWithdrawalInput, b5 as RequestWithdrawalOutput, b6 as RichText, b7 as RiskRating, b8 as RoutingTransaction, ba as RoutingTransactionFailureReason, bb as ScreenNodeInput, bc as ScreenNodeOutput, bd as Secret, be as SendPaymentInput, bf as SendPaymentOutput, bg as SetInvoicePaymentHashInput, bh as SetInvoicePaymentHashOutput, bi as SignInvoiceInput, bj as SignInvoiceOutput, bk as SignMessagesInput, bl as SignMessagesOutput, bm as Signable, bo as SignablePayload, bq as SignablePayloadStatus, br as SingleNodeDashboard, bs as Transaction, bu as TransactionFailures, bv as TransactionStatus, bw as TransactionType, bx as TransactionUpdate, by as UmaInvitation, bA as UpdateChannelPerCommitmentPointInput, bB as UpdateChannelPerCommitmentPointOutput, bC as UpdateNodeSharedSecretInput, bD as UpdateNodeSharedSecretOutput, bE as Wallet, bF as WalletStatus, bG as WalletToPaymentRequestsConnection, bH as WalletToTransactionsConnection, bI as WalletToWithdrawalRequestsConnection, W as WebhookEventType, bJ as Withdrawal, bL as WithdrawalFeeEstimateInput, bM as WithdrawalFeeEstimateOutput, bN as WithdrawalMode, bO as WithdrawalRequest, bP as WithdrawalRequestStatus, bQ as WithdrawalRequestToChannelClosingTransactionsConnection, bR as WithdrawalRequestToChannelOpeningTransactionsConnection, i as getApiTokenQuery, n as getChannelClosingTransactionQuery, q as getChannelOpeningTransactionQuery, a0 as getDepositQuery, a7 as getHopQuery, ae as getIncomingPaymentAttemptQuery, ai as getInvoiceQuery, ap as getLightningTransactionQuery, at as getLightsparkNodeOwnerQuery, ar as getLightsparkNodeQuery, az as getNodeQuery, aE as getOnChainTransactionQuery, aT as getPaymentRequestQuery, b9 as getRoutingTransactionQuery, bp as getSignablePayloadQuery, bn as getSignableQuery, bt as getTransactionQuery, bz as getUmaInvitationQuery, bK as getWithdrawalQuery } from '../index-f100aa27.js';
1
+ export { A as Account, a as AccountToApiTokensConnection, b as AccountToChannelsConnection, c as AccountToNodesConnection, d as AccountToPaymentRequestsConnection, e as AccountToTransactionsConnection, f as AccountToWalletsConnection, g as AccountToWithdrawalRequestsConnection, h as ApiToken, B as Balances, j as BlockchainBalance, C as CancelInvoiceInput, k as CancelInvoiceOutput, l as Channel, m as ChannelClosingTransaction, o as ChannelFees, p as ChannelOpeningTransaction, r as ChannelSnapshot, s as ChannelStatus, t as ChannelToTransactionsConnection, u as ClaimUmaInvitationInput, v as ClaimUmaInvitationOutput, w as ClaimUmaInvitationWithIncentivesInput, x as ClaimUmaInvitationWithIncentivesOutput, y as ComplianceProvider, z as Connection, D as CreateApiTokenInput, E as CreateApiTokenOutput, F as CreateInvitationWithIncentivesInput, G as CreateInvitationWithIncentivesOutput, H as CreateInvoiceInput, I as CreateInvoiceOutput, J as CreateLnurlInvoiceInput, K as CreateNodeWalletAddressInput, M as CreateNodeWalletAddressOutput, N as CreateTestModeInvoiceInput, O as CreateTestModeInvoiceOutput, P as CreateTestModePaymentInput, Q as CreateTestModePaymentoutput, R as CreateUmaInvitationInput, S as CreateUmaInvitationOutput, T as CreateUmaInvoiceInput, U as CurrencyAmount, V as CurrencyUnit, X as DailyLiquidityForecast, Y as DeclineToSignMessagesInput, Z as DeclineToSignMessagesOutput, _ as DeleteApiTokenInput, $ as DeleteApiTokenOutput, a0 as Deposit, a2 as Entity, a3 as FeeEstimate, a4 as FundNodeInput, a5 as FundNodeOutput, a6 as GraphNode, a7 as Hop, a9 as HtlcAttemptFailureCode, aa as IdAndSignature, ab as IncentivesIneligibilityReason, ac as IncentivesStatus, ad as IncomingPayment, ae as IncomingPaymentAttempt, ag as IncomingPaymentAttemptStatus, ah as IncomingPaymentToAttemptsConnection, ai as Invoice, ak as InvoiceData, al as InvoiceType, am as LightningFeeEstimateForInvoiceInput, an as LightningFeeEstimateForNodeInput, ao as LightningFeeEstimateOutput, ap as LightningPaymentDirection, aq as LightningTransaction, as as LightsparkNode, au as LightsparkNodeOwner, aw as LightsparkNodeStatus, ax as LightsparkNodeToChannelsConnection, ay as LightsparkNodeToDailyLiquidityForecastsConnection, az as LightsparkNodeWithOSK, aA as LightsparkNodeWithRemoteSigning, aB as Node, aD as NodeAddress, aE as NodeAddressType, aF as NodeToAddressesConnection, aG as OnChainTransaction, aI as OutgoingPayment, aJ as OutgoingPaymentAttempt, aK as OutgoingPaymentAttemptStatus, aL as OutgoingPaymentAttemptToHopsConnection, aM as OutgoingPaymentToAttemptsConnection, aN as OutgoingPaymentsForInvoiceQueryInput, aO as OutgoingPaymentsForInvoiceQueryOutput, aP as PageInfo, aQ as PayInvoiceInput, aR as PayInvoiceOutput, aS as PayUmaInvoiceInput, aT as PaymentDirection, aU as PaymentFailureReason, aV as PaymentRequest, aX as PaymentRequestData, aY as PaymentRequestStatus, aZ as Permission, a_ as PostTransactionData, a$ as RegionCode, b0 as RegisterPaymentInput, b1 as RegisterPaymentOutput, b2 as ReleaseChannelPerCommitmentSecretInput, b3 as ReleaseChannelPerCommitmentSecretOutput, b4 as ReleasePaymentPreimageInput, b5 as ReleasePaymentPreimageOutput, b6 as RemoteSigningSubEventType, b7 as RequestWithdrawalInput, b8 as RequestWithdrawalOutput, b9 as RichText, ba as RiskRating, bb as RoutingTransaction, bd as RoutingTransactionFailureReason, be as ScreenNodeInput, bf as ScreenNodeOutput, bg as Secret, bh as SendPaymentInput, bi as SendPaymentOutput, bj as SetInvoicePaymentHashInput, bk as SetInvoicePaymentHashOutput, bl as SignInvoiceInput, bm as SignInvoiceOutput, bn as SignMessagesInput, bo as SignMessagesOutput, bp as Signable, br as SignablePayload, bt as SignablePayloadStatus, bu as SingleNodeDashboard, bv as Transaction, bx as TransactionFailures, by as TransactionStatus, bz as TransactionType, bA as TransactionUpdate, bB as UmaInvitation, bD as UpdateChannelPerCommitmentPointInput, bE as UpdateChannelPerCommitmentPointOutput, bF as UpdateNodeSharedSecretInput, bG as UpdateNodeSharedSecretOutput, bH as Wallet, bI as WalletStatus, bJ as WalletToPaymentRequestsConnection, bK as WalletToTransactionsConnection, bL as WalletToWithdrawalRequestsConnection, W as WebhookEventType, bM as Withdrawal, bO as WithdrawalFeeEstimateInput, bP as WithdrawalFeeEstimateOutput, bQ as WithdrawalMode, bR as WithdrawalRequest, bS as WithdrawalRequestStatus, bT as WithdrawalRequestToChannelClosingTransactionsConnection, bU as WithdrawalRequestToChannelOpeningTransactionsConnection, i as getApiTokenQuery, n as getChannelClosingTransactionQuery, q as getChannelOpeningTransactionQuery, a1 as getDepositQuery, a8 as getHopQuery, af as getIncomingPaymentAttemptQuery, aj as getInvoiceQuery, ar as getLightningTransactionQuery, av as getLightsparkNodeOwnerQuery, at as getLightsparkNodeQuery, aC as getNodeQuery, aH as getOnChainTransactionQuery, aW as getPaymentRequestQuery, bc as getRoutingTransactionQuery, bs as getSignablePayloadQuery, bq as getSignableQuery, bw as getTransactionQuery, bC as getUmaInvitationQuery, bN as getWithdrawalQuery } from '../index-dd1501fa.js';
2
2
  export { B as BitcoinNetwork } from '../BitcoinNetwork-4f6ea015.js';
3
3
  import '@lightsparkdev/core';
4
4
  import 'zen-observable';
@@ -1,5 +1,4 @@
1
1
  import {
2
- AccountToChannelsConnection_default,
3
2
  Account_default,
4
3
  ChannelStatus_default,
5
4
  Channel_default,
@@ -12,6 +11,7 @@ import {
12
11
  IncomingPaymentAttemptStatus_default,
13
12
  IncomingPayment_default,
14
13
  InvoiceType_default,
14
+ LightningPaymentDirection_default,
15
15
  LightsparkNodeStatus_default,
16
16
  LightsparkNodeWithOSK_default,
17
17
  LightsparkNodeWithRemoteSigning_default,
@@ -55,14 +55,13 @@ import {
55
55
  getTransactionQuery,
56
56
  getUmaInvitationQuery,
57
57
  getWithdrawalQuery
58
- } from "../chunk-ENYS5WAU.js";
58
+ } from "../chunk-6JPCSXLW.js";
59
59
  import {
60
60
  BitcoinNetwork_default
61
61
  } from "../chunk-K6SAUSAX.js";
62
62
  import "../chunk-BMTV3EA2.js";
63
63
  export {
64
64
  Account_default as Account,
65
- AccountToChannelsConnection_default as AccountToChannelsConnection,
66
65
  BitcoinNetwork_default as BitcoinNetwork,
67
66
  Channel_default as Channel,
68
67
  ChannelStatus_default as ChannelStatus,
@@ -75,6 +74,7 @@ export {
75
74
  IncomingPayment_default as IncomingPayment,
76
75
  IncomingPaymentAttemptStatus_default as IncomingPaymentAttemptStatus,
77
76
  InvoiceType_default as InvoiceType,
77
+ LightningPaymentDirection_default as LightningPaymentDirection,
78
78
  LightsparkNodeStatus_default as LightsparkNodeStatus,
79
79
  LightsparkNodeWithOSK_default as LightsparkNodeWithOSK,
80
80
  LightsparkNodeWithRemoteSigning_default as LightsparkNodeWithRemoteSigning,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lightsparkdev/lightspark-sdk",
3
- "version": "1.5.2",
3
+ "version": "1.5.4",
4
4
  "description": "Lightspark JS SDK",
5
5
  "author": "Lightspark Inc.",
6
6
  "keywords": [
@@ -88,7 +88,7 @@
88
88
  },
89
89
  "license": "Apache-2.0",
90
90
  "dependencies": {
91
- "@lightsparkdev/core": "1.0.13",
91
+ "@lightsparkdev/core": "1.0.15",
92
92
  "@lightsparkdev/crypto-wasm": "0.1.2",
93
93
  "auto-bind": "^5.0.1",
94
94
  "crypto-browserify": "^3.12.0",
@@ -589,15 +589,23 @@ query FetchAccountUptimePercentage($after_date: DateTime, $before_date: DateTime
589
589
  afterDate: string | undefined = undefined,
590
590
  beforeDate: string | undefined = undefined,
591
591
  first: number | undefined = undefined,
592
+ after: string | undefined = undefined,
592
593
  ): Promise<AccountToChannelsConnection> {
593
594
  return (await client.executeRawQuery({
594
595
  queryPayload: `
595
- query FetchAccountToChannelsConnection($bitcoin_network: BitcoinNetwork!, $lightning_node_id: ID, $after_date: DateTime, $before_date: DateTime, $first: Int) {
596
+ query FetchAccountToChannelsConnection($bitcoin_network: BitcoinNetwork!, $lightning_node_id: ID, $after_date: DateTime, $before_date: DateTime, $first: Int, $after: String) {
596
597
  current_account {
597
598
  ... on Account {
598
- channels(, bitcoin_network: $bitcoin_network, lightning_node_id: $lightning_node_id, after_date: $after_date, before_date: $before_date, first: $first) {
599
+ channels(, bitcoin_network: $bitcoin_network, lightning_node_id: $lightning_node_id, after_date: $after_date, before_date: $before_date, first: $first, after: $after) {
599
600
  __typename
600
601
  account_to_channels_connection_count: count
602
+ account_to_channels_connection_page_info: page_info {
603
+ __typename
604
+ page_info_has_next_page: has_next_page
605
+ page_info_has_previous_page: has_previous_page
606
+ page_info_start_cursor: start_cursor
607
+ page_info_end_cursor: end_cursor
608
+ }
601
609
  account_to_channels_connection_entities: entities {
602
610
  __typename
603
611
  channel_id: id
@@ -703,6 +711,7 @@ query FetchAccountToChannelsConnection($bitcoin_network: BitcoinNetwork!, $light
703
711
  after_date: afterDate,
704
712
  before_date: beforeDate,
705
713
  first: first,
714
+ after: after,
706
715
  },
707
716
  constructObject: (json) => {
708
717
  const connection = json["current_account"]["channels"];
@@ -1,47 +1,63 @@
1
1
  // Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved
2
2
 
3
- import autoBind from "auto-bind";
4
3
  import type Channel from "./Channel.js";
5
4
  import { ChannelFromJson } from "./Channel.js";
5
+ import type PageInfo from "./PageInfo.js";
6
+ import { PageInfoFromJson, PageInfoToJson } from "./PageInfo.js";
6
7
 
7
- class AccountToChannelsConnection {
8
- constructor(
9
- /**
10
- * The total count of objects in this connection, using the current filters. It is different
11
- * from the number of objects returned in the current page (in the `entities` field).
12
- **/
13
- public readonly count: number,
14
- /** The channels for the current page of this connection. **/
15
- public readonly entities: Channel[],
16
- ) {
17
- autoBind(this);
18
- }
19
-
20
- public toJson() {
21
- return {
22
- account_to_channels_connection_count: this.count,
23
- account_to_channels_connection_entities: this.entities.map((e) =>
24
- e.toJson(),
25
- ),
26
- };
27
- }
8
+ interface AccountToChannelsConnection {
9
+ /**
10
+ * The total count of objects in this connection, using the current filters. It is different
11
+ * from the number of objects returned in the current page (in the `entities` field).
12
+ **/
13
+ count: number;
14
+
15
+ /** An object that holds pagination information about the objects in this connection. **/
16
+ pageInfo: PageInfo;
17
+
18
+ /** The channels for the current page of this connection. **/
19
+ entities: Channel[];
20
+
21
+ /** The typename of the object **/
22
+ typename: string;
28
23
  }
29
24
 
30
25
  export const AccountToChannelsConnectionFromJson = (
31
26
  obj: any,
32
27
  ): AccountToChannelsConnection => {
33
- return new AccountToChannelsConnection(
34
- obj["account_to_channels_connection_count"],
35
- obj["account_to_channels_connection_entities"].map((e) =>
28
+ return {
29
+ count: obj["account_to_channels_connection_count"],
30
+ pageInfo: PageInfoFromJson(obj["account_to_channels_connection_page_info"]),
31
+ entities: obj["account_to_channels_connection_entities"].map((e) =>
36
32
  ChannelFromJson(e),
37
33
  ),
38
- );
34
+ typename: "AccountToChannelsConnection",
35
+ } as AccountToChannelsConnection;
36
+ };
37
+ export const AccountToChannelsConnectionToJson = (
38
+ obj: AccountToChannelsConnection,
39
+ ): any => {
40
+ return {
41
+ __typename: "AccountToChannelsConnection",
42
+ account_to_channels_connection_count: obj.count,
43
+ account_to_channels_connection_page_info: PageInfoToJson(obj.pageInfo),
44
+ account_to_channels_connection_entities: obj.entities.map((e) =>
45
+ e.toJson(),
46
+ ),
47
+ };
39
48
  };
40
49
 
41
50
  export const FRAGMENT = `
42
51
  fragment AccountToChannelsConnectionFragment on AccountToChannelsConnection {
43
52
  __typename
44
53
  account_to_channels_connection_count: count
54
+ account_to_channels_connection_page_info: page_info {
55
+ __typename
56
+ page_info_has_next_page: has_next_page
57
+ page_info_has_previous_page: has_previous_page
58
+ page_info_start_cursor: start_cursor
59
+ page_info_end_cursor: end_cursor
60
+ }
45
61
  account_to_channels_connection_entities: entities {
46
62
  id
47
63
  }