@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.
- package/CHANGELOG.md +15 -0
- package/dist/{chunk-ENYS5WAU.js → chunk-6JPCSXLW.js} +152 -47
- package/dist/{index-f100aa27.d.ts → index-dd1501fa.d.ts} +51 -49
- package/dist/index.cjs +143 -36
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +5 -5
- package/dist/objects/index.cjs +153 -48
- package/dist/objects/index.d.cts +1 -1
- package/dist/objects/index.d.ts +1 -1
- package/dist/objects/index.js +3 -3
- package/package.json +2 -2
- package/src/objects/Account.ts +11 -2
- package/src/objects/AccountToChannelsConnection.ts +42 -26
- package/src/objects/Connection.ts +39 -0
- package/src/objects/DailyLiquidityForecast.ts +60 -0
- package/src/objects/LightningPaymentDirection.ts +16 -0
- package/src/objects/LightsparkNode.ts +9 -0
- package/src/objects/LightsparkNodeToDailyLiquidityForecastsConnection.ts +73 -0
- package/src/objects/LightsparkNodeWithOSK.ts +52 -0
- package/src/objects/LightsparkNodeWithRemoteSigning.ts +52 -0
- package/src/objects/index.ts +3 -0
package/dist/index.cjs
CHANGED
|
@@ -1841,7 +1841,6 @@ var require_text_encoding = __commonJS({
|
|
|
1841
1841
|
var src_exports = {};
|
|
1842
1842
|
__export(src_exports, {
|
|
1843
1843
|
Account: () => Account_default,
|
|
1844
|
-
AccountToChannelsConnection: () => AccountToChannelsConnection_default,
|
|
1845
1844
|
AccountTokenAuthProvider: () => AccountTokenAuthProvider_default,
|
|
1846
1845
|
BitcoinNetwork: () => BitcoinNetwork_default,
|
|
1847
1846
|
Channel: () => Channel_default,
|
|
@@ -1855,6 +1854,7 @@ __export(src_exports, {
|
|
|
1855
1854
|
IncomingPayment: () => IncomingPayment_default,
|
|
1856
1855
|
IncomingPaymentAttemptStatus: () => IncomingPaymentAttemptStatus_default,
|
|
1857
1856
|
InvoiceType: () => InvoiceType_default,
|
|
1857
|
+
LightningPaymentDirection: () => LightningPaymentDirection_default,
|
|
1858
1858
|
LightsparkClient: () => client_default,
|
|
1859
1859
|
LightsparkNodeStatus: () => LightsparkNodeStatus_default,
|
|
1860
1860
|
LightsparkNodeWithOSK: () => LightsparkNodeWithOSK_default,
|
|
@@ -1943,13 +1943,13 @@ var AccountTokenAuthProvider = class {
|
|
|
1943
1943
|
var AccountTokenAuthProvider_default = AccountTokenAuthProvider;
|
|
1944
1944
|
|
|
1945
1945
|
// src/client.ts
|
|
1946
|
-
var
|
|
1946
|
+
var import_auto_bind12 = __toESM(require("auto-bind"), 1);
|
|
1947
1947
|
var import_core9 = require("@lightsparkdev/core");
|
|
1948
1948
|
|
|
1949
1949
|
// package.json
|
|
1950
1950
|
var package_default = {
|
|
1951
1951
|
name: "@lightsparkdev/lightspark-sdk",
|
|
1952
|
-
version: "1.5.
|
|
1952
|
+
version: "1.5.4",
|
|
1953
1953
|
description: "Lightspark JS SDK",
|
|
1954
1954
|
author: "Lightspark Inc.",
|
|
1955
1955
|
keywords: [
|
|
@@ -2037,7 +2037,7 @@ var package_default = {
|
|
|
2037
2037
|
},
|
|
2038
2038
|
license: "Apache-2.0",
|
|
2039
2039
|
dependencies: {
|
|
2040
|
-
"@lightsparkdev/core": "1.0.
|
|
2040
|
+
"@lightsparkdev/core": "1.0.15",
|
|
2041
2041
|
"@lightsparkdev/crypto-wasm": "0.1.2",
|
|
2042
2042
|
"auto-bind": "^5.0.1",
|
|
2043
2043
|
"crypto-browserify": "^3.12.0",
|
|
@@ -2868,6 +2868,34 @@ var LightsparkNodeToChannelsConnectionFromJson = (obj) => {
|
|
|
2868
2868
|
};
|
|
2869
2869
|
};
|
|
2870
2870
|
|
|
2871
|
+
// src/objects/LightningPaymentDirection.ts
|
|
2872
|
+
var LightningPaymentDirection = /* @__PURE__ */ ((LightningPaymentDirection2) => {
|
|
2873
|
+
LightningPaymentDirection2["FUTURE_VALUE"] = "FUTURE_VALUE";
|
|
2874
|
+
LightningPaymentDirection2["INCOMING"] = "INCOMING";
|
|
2875
|
+
LightningPaymentDirection2["OUTGOING"] = "OUTGOING";
|
|
2876
|
+
return LightningPaymentDirection2;
|
|
2877
|
+
})(LightningPaymentDirection || {});
|
|
2878
|
+
var LightningPaymentDirection_default = LightningPaymentDirection;
|
|
2879
|
+
|
|
2880
|
+
// src/objects/DailyLiquidityForecast.ts
|
|
2881
|
+
var DailyLiquidityForecastFromJson = (obj) => {
|
|
2882
|
+
return {
|
|
2883
|
+
date: obj["daily_liquidity_forecast_date"],
|
|
2884
|
+
direction: LightningPaymentDirection_default[obj["daily_liquidity_forecast_direction"]] ?? LightningPaymentDirection_default.FUTURE_VALUE,
|
|
2885
|
+
amount: CurrencyAmountFromJson(obj["daily_liquidity_forecast_amount"])
|
|
2886
|
+
};
|
|
2887
|
+
};
|
|
2888
|
+
|
|
2889
|
+
// src/objects/LightsparkNodeToDailyLiquidityForecastsConnection.ts
|
|
2890
|
+
var LightsparkNodeToDailyLiquidityForecastsConnectionFromJson = (obj) => {
|
|
2891
|
+
return {
|
|
2892
|
+
fromDate: obj["lightspark_node_to_daily_liquidity_forecasts_connection_from_date"],
|
|
2893
|
+
toDate: obj["lightspark_node_to_daily_liquidity_forecasts_connection_to_date"],
|
|
2894
|
+
direction: LightningPaymentDirection_default[obj["lightspark_node_to_daily_liquidity_forecasts_connection_direction"]] ?? LightningPaymentDirection_default.FUTURE_VALUE,
|
|
2895
|
+
entities: obj["lightspark_node_to_daily_liquidity_forecasts_connection_entities"].map((e) => DailyLiquidityForecastFromJson(e))
|
|
2896
|
+
};
|
|
2897
|
+
};
|
|
2898
|
+
|
|
2871
2899
|
// src/objects/Secret.ts
|
|
2872
2900
|
var SecretFromJson = (obj) => {
|
|
2873
2901
|
return {
|
|
@@ -3060,6 +3088,49 @@ query FetchLightsparkNodeToChannelsConnection($entity_id: ID!, $first: Int, $sta
|
|
|
3060
3088
|
}
|
|
3061
3089
|
});
|
|
3062
3090
|
}
|
|
3091
|
+
async getDailyLiquidityForecasts(client, fromDate, toDate, direction) {
|
|
3092
|
+
return await client.executeRawQuery({
|
|
3093
|
+
queryPayload: `
|
|
3094
|
+
query FetchLightsparkNodeToDailyLiquidityForecastsConnection($entity_id: ID!, $from_date: Date!, $to_date: Date!, $direction: LightningPaymentDirection!) {
|
|
3095
|
+
entity(id: $entity_id) {
|
|
3096
|
+
... on LightsparkNodeWithOSK {
|
|
3097
|
+
daily_liquidity_forecasts(, from_date: $from_date, to_date: $to_date, direction: $direction) {
|
|
3098
|
+
__typename
|
|
3099
|
+
lightspark_node_to_daily_liquidity_forecasts_connection_from_date: from_date
|
|
3100
|
+
lightspark_node_to_daily_liquidity_forecasts_connection_to_date: to_date
|
|
3101
|
+
lightspark_node_to_daily_liquidity_forecasts_connection_direction: direction
|
|
3102
|
+
lightspark_node_to_daily_liquidity_forecasts_connection_entities: entities {
|
|
3103
|
+
__typename
|
|
3104
|
+
daily_liquidity_forecast_date: date
|
|
3105
|
+
daily_liquidity_forecast_direction: direction
|
|
3106
|
+
daily_liquidity_forecast_amount: amount {
|
|
3107
|
+
__typename
|
|
3108
|
+
currency_amount_original_value: original_value
|
|
3109
|
+
currency_amount_original_unit: original_unit
|
|
3110
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
3111
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
3112
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
3113
|
+
}
|
|
3114
|
+
}
|
|
3115
|
+
}
|
|
3116
|
+
}
|
|
3117
|
+
}
|
|
3118
|
+
}
|
|
3119
|
+
`,
|
|
3120
|
+
variables: {
|
|
3121
|
+
entity_id: this.id,
|
|
3122
|
+
from_date: fromDate,
|
|
3123
|
+
to_date: toDate,
|
|
3124
|
+
direction
|
|
3125
|
+
},
|
|
3126
|
+
constructObject: (json) => {
|
|
3127
|
+
const connection = json["entity"]["daily_liquidity_forecasts"];
|
|
3128
|
+
return LightsparkNodeToDailyLiquidityForecastsConnectionFromJson(
|
|
3129
|
+
connection
|
|
3130
|
+
);
|
|
3131
|
+
}
|
|
3132
|
+
});
|
|
3133
|
+
}
|
|
3063
3134
|
static getLightsparkNodeWithOSKQuery(id) {
|
|
3064
3135
|
return {
|
|
3065
3136
|
queryPayload: `
|
|
@@ -3445,6 +3516,49 @@ query FetchLightsparkNodeToChannelsConnection($entity_id: ID!, $first: Int, $sta
|
|
|
3445
3516
|
}
|
|
3446
3517
|
});
|
|
3447
3518
|
}
|
|
3519
|
+
async getDailyLiquidityForecasts(client, fromDate, toDate, direction) {
|
|
3520
|
+
return await client.executeRawQuery({
|
|
3521
|
+
queryPayload: `
|
|
3522
|
+
query FetchLightsparkNodeToDailyLiquidityForecastsConnection($entity_id: ID!, $from_date: Date!, $to_date: Date!, $direction: LightningPaymentDirection!) {
|
|
3523
|
+
entity(id: $entity_id) {
|
|
3524
|
+
... on LightsparkNodeWithRemoteSigning {
|
|
3525
|
+
daily_liquidity_forecasts(, from_date: $from_date, to_date: $to_date, direction: $direction) {
|
|
3526
|
+
__typename
|
|
3527
|
+
lightspark_node_to_daily_liquidity_forecasts_connection_from_date: from_date
|
|
3528
|
+
lightspark_node_to_daily_liquidity_forecasts_connection_to_date: to_date
|
|
3529
|
+
lightspark_node_to_daily_liquidity_forecasts_connection_direction: direction
|
|
3530
|
+
lightspark_node_to_daily_liquidity_forecasts_connection_entities: entities {
|
|
3531
|
+
__typename
|
|
3532
|
+
daily_liquidity_forecast_date: date
|
|
3533
|
+
daily_liquidity_forecast_direction: direction
|
|
3534
|
+
daily_liquidity_forecast_amount: amount {
|
|
3535
|
+
__typename
|
|
3536
|
+
currency_amount_original_value: original_value
|
|
3537
|
+
currency_amount_original_unit: original_unit
|
|
3538
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
3539
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
3540
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
3541
|
+
}
|
|
3542
|
+
}
|
|
3543
|
+
}
|
|
3544
|
+
}
|
|
3545
|
+
}
|
|
3546
|
+
}
|
|
3547
|
+
`,
|
|
3548
|
+
variables: {
|
|
3549
|
+
entity_id: this.id,
|
|
3550
|
+
from_date: fromDate,
|
|
3551
|
+
to_date: toDate,
|
|
3552
|
+
direction
|
|
3553
|
+
},
|
|
3554
|
+
constructObject: (json) => {
|
|
3555
|
+
const connection = json["entity"]["daily_liquidity_forecasts"];
|
|
3556
|
+
return LightsparkNodeToDailyLiquidityForecastsConnectionFromJson(
|
|
3557
|
+
connection
|
|
3558
|
+
);
|
|
3559
|
+
}
|
|
3560
|
+
});
|
|
3561
|
+
}
|
|
3448
3562
|
static getLightsparkNodeWithRemoteSigningQuery(id) {
|
|
3449
3563
|
return {
|
|
3450
3564
|
queryPayload: `
|
|
@@ -8442,7 +8556,7 @@ var WithdrawalFeeEstimate = `
|
|
|
8442
8556
|
`;
|
|
8443
8557
|
|
|
8444
8558
|
// src/objects/Account.ts
|
|
8445
|
-
var
|
|
8559
|
+
var import_auto_bind11 = __toESM(require("auto-bind"), 1);
|
|
8446
8560
|
|
|
8447
8561
|
// src/objects/AccountToApiTokensConnection.ts
|
|
8448
8562
|
var AccountToApiTokensConnectionFromJson = (obj) => {
|
|
@@ -8459,31 +8573,16 @@ var AccountToApiTokensConnectionFromJson = (obj) => {
|
|
|
8459
8573
|
};
|
|
8460
8574
|
|
|
8461
8575
|
// src/objects/AccountToChannelsConnection.ts
|
|
8462
|
-
var import_auto_bind10 = __toESM(require("auto-bind"), 1);
|
|
8463
|
-
var AccountToChannelsConnection = class {
|
|
8464
|
-
constructor(count, entities) {
|
|
8465
|
-
this.count = count;
|
|
8466
|
-
this.entities = entities;
|
|
8467
|
-
(0, import_auto_bind10.default)(this);
|
|
8468
|
-
}
|
|
8469
|
-
toJson() {
|
|
8470
|
-
return {
|
|
8471
|
-
account_to_channels_connection_count: this.count,
|
|
8472
|
-
account_to_channels_connection_entities: this.entities.map(
|
|
8473
|
-
(e) => e.toJson()
|
|
8474
|
-
)
|
|
8475
|
-
};
|
|
8476
|
-
}
|
|
8477
|
-
};
|
|
8478
8576
|
var AccountToChannelsConnectionFromJson = (obj) => {
|
|
8479
|
-
return
|
|
8480
|
-
obj["account_to_channels_connection_count"],
|
|
8481
|
-
obj["
|
|
8577
|
+
return {
|
|
8578
|
+
count: obj["account_to_channels_connection_count"],
|
|
8579
|
+
pageInfo: PageInfoFromJson(obj["account_to_channels_connection_page_info"]),
|
|
8580
|
+
entities: obj["account_to_channels_connection_entities"].map(
|
|
8482
8581
|
(e) => ChannelFromJson(e)
|
|
8483
|
-
)
|
|
8484
|
-
|
|
8582
|
+
),
|
|
8583
|
+
typename: "AccountToChannelsConnection"
|
|
8584
|
+
};
|
|
8485
8585
|
};
|
|
8486
|
-
var AccountToChannelsConnection_default = AccountToChannelsConnection;
|
|
8487
8586
|
|
|
8488
8587
|
// src/objects/LightsparkNode.ts
|
|
8489
8588
|
var import_core8 = require("@lightsparkdev/core");
|
|
@@ -8893,7 +8992,7 @@ var AccountToTransactionsConnectionFromJson = (obj) => {
|
|
|
8893
8992
|
};
|
|
8894
8993
|
|
|
8895
8994
|
// src/objects/Wallet.ts
|
|
8896
|
-
var
|
|
8995
|
+
var import_auto_bind10 = __toESM(require("auto-bind"), 1);
|
|
8897
8996
|
|
|
8898
8997
|
// src/objects/WalletStatus.ts
|
|
8899
8998
|
var WalletStatus = /* @__PURE__ */ ((WalletStatus2) => {
|
|
@@ -8965,7 +9064,7 @@ var Wallet = class {
|
|
|
8965
9064
|
this.lastLoginAt = lastLoginAt;
|
|
8966
9065
|
this.balances = balances;
|
|
8967
9066
|
this.accountId = accountId;
|
|
8968
|
-
(0,
|
|
9067
|
+
(0, import_auto_bind10.default)(this);
|
|
8969
9068
|
}
|
|
8970
9069
|
async getTransactions(client, first = void 0, after = void 0, createdAfterDate = void 0, createdBeforeDate = void 0, statuses = void 0, types = void 0) {
|
|
8971
9070
|
return await client.executeRawQuery({
|
|
@@ -10149,7 +10248,7 @@ var Account = class {
|
|
|
10149
10248
|
this.updatedAt = updatedAt;
|
|
10150
10249
|
this.typename = typename;
|
|
10151
10250
|
this.name = name;
|
|
10152
|
-
(0,
|
|
10251
|
+
(0, import_auto_bind11.default)(this);
|
|
10153
10252
|
}
|
|
10154
10253
|
async getApiTokens(client, first = void 0, after = void 0) {
|
|
10155
10254
|
return await client.executeRawQuery({
|
|
@@ -10642,15 +10741,22 @@ query FetchAccountUptimePercentage($after_date: DateTime, $before_date: DateTime
|
|
|
10642
10741
|
}
|
|
10643
10742
|
});
|
|
10644
10743
|
}
|
|
10645
|
-
async getChannels(client, bitcoinNetwork, lightningNodeId = void 0, afterDate = void 0, beforeDate = void 0, first = void 0) {
|
|
10744
|
+
async getChannels(client, bitcoinNetwork, lightningNodeId = void 0, afterDate = void 0, beforeDate = void 0, first = void 0, after = void 0) {
|
|
10646
10745
|
return await client.executeRawQuery({
|
|
10647
10746
|
queryPayload: `
|
|
10648
|
-
query FetchAccountToChannelsConnection($bitcoin_network: BitcoinNetwork!, $lightning_node_id: ID, $after_date: DateTime, $before_date: DateTime, $first: Int) {
|
|
10747
|
+
query FetchAccountToChannelsConnection($bitcoin_network: BitcoinNetwork!, $lightning_node_id: ID, $after_date: DateTime, $before_date: DateTime, $first: Int, $after: String) {
|
|
10649
10748
|
current_account {
|
|
10650
10749
|
... on Account {
|
|
10651
|
-
channels(, bitcoin_network: $bitcoin_network, lightning_node_id: $lightning_node_id, after_date: $after_date, before_date: $before_date, first: $first) {
|
|
10750
|
+
channels(, bitcoin_network: $bitcoin_network, lightning_node_id: $lightning_node_id, after_date: $after_date, before_date: $before_date, first: $first, after: $after) {
|
|
10652
10751
|
__typename
|
|
10653
10752
|
account_to_channels_connection_count: count
|
|
10753
|
+
account_to_channels_connection_page_info: page_info {
|
|
10754
|
+
__typename
|
|
10755
|
+
page_info_has_next_page: has_next_page
|
|
10756
|
+
page_info_has_previous_page: has_previous_page
|
|
10757
|
+
page_info_start_cursor: start_cursor
|
|
10758
|
+
page_info_end_cursor: end_cursor
|
|
10759
|
+
}
|
|
10654
10760
|
account_to_channels_connection_entities: entities {
|
|
10655
10761
|
__typename
|
|
10656
10762
|
channel_id: id
|
|
@@ -10755,7 +10861,8 @@ query FetchAccountToChannelsConnection($bitcoin_network: BitcoinNetwork!, $light
|
|
|
10755
10861
|
lightning_node_id: lightningNodeId,
|
|
10756
10862
|
after_date: afterDate,
|
|
10757
10863
|
before_date: beforeDate,
|
|
10758
|
-
first
|
|
10864
|
+
first,
|
|
10865
|
+
after
|
|
10759
10866
|
},
|
|
10760
10867
|
constructObject: (json) => {
|
|
10761
10868
|
const connection = json["current_account"]["channels"];
|
|
@@ -11948,7 +12055,7 @@ var LightsparkClient = class {
|
|
|
11948
12055
|
serverUrl,
|
|
11949
12056
|
this.cryptoImpl
|
|
11950
12057
|
);
|
|
11951
|
-
(0,
|
|
12058
|
+
(0, import_auto_bind12.default)(this);
|
|
11952
12059
|
}
|
|
11953
12060
|
requester;
|
|
11954
12061
|
nodeKeyCache;
|
|
@@ -14548,7 +14655,6 @@ var RemoteSigningWebhookHandler = class {
|
|
|
14548
14655
|
// Annotate the CommonJS export names for ESM import in node:
|
|
14549
14656
|
0 && (module.exports = {
|
|
14550
14657
|
Account,
|
|
14551
|
-
AccountToChannelsConnection,
|
|
14552
14658
|
AccountTokenAuthProvider,
|
|
14553
14659
|
BitcoinNetwork,
|
|
14554
14660
|
Channel,
|
|
@@ -14562,6 +14668,7 @@ var RemoteSigningWebhookHandler = class {
|
|
|
14562
14668
|
IncomingPayment,
|
|
14563
14669
|
IncomingPaymentAttemptStatus,
|
|
14564
14670
|
InvoiceType,
|
|
14671
|
+
LightningPaymentDirection,
|
|
14565
14672
|
LightsparkClient,
|
|
14566
14673
|
LightsparkNodeStatus,
|
|
14567
14674
|
LightsparkNodeWithOSK,
|
package/dist/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AuthProvider } from '@lightsparkdev/core';
|
|
2
|
-
import { W as WebhookEventType, L as LightsparkClient } from './index-
|
|
3
|
-
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
|
|
2
|
+
import { W as WebhookEventType, L as LightsparkClient } from './index-dd1501fa.js';
|
|
3
|
+
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, 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';
|
|
4
4
|
import { B as BitcoinNetwork } from './BitcoinNetwork-4f6ea015.js';
|
|
5
5
|
import 'zen-observable';
|
|
6
6
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AuthProvider } from '@lightsparkdev/core';
|
|
2
|
-
import { W as WebhookEventType, L as LightsparkClient } from './index-
|
|
3
|
-
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
|
|
2
|
+
import { W as WebhookEventType, L as LightsparkClient } from './index-dd1501fa.js';
|
|
3
|
+
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, 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';
|
|
4
4
|
import { B as BitcoinNetwork } from './BitcoinNetwork-4f6ea015.js';
|
|
5
5
|
import 'zen-observable';
|
|
6
6
|
|
package/dist/index.js
CHANGED
|
@@ -4,7 +4,6 @@ import {
|
|
|
4
4
|
isBitcoinNetwork
|
|
5
5
|
} from "./chunk-D32EWIPX.js";
|
|
6
6
|
import {
|
|
7
|
-
AccountToChannelsConnection_default,
|
|
8
7
|
Account_default,
|
|
9
8
|
ApiTokenFromJson,
|
|
10
9
|
ChannelStatus_default,
|
|
@@ -37,6 +36,7 @@ import {
|
|
|
37
36
|
InvoiceDataFromJson,
|
|
38
37
|
InvoiceFromJson,
|
|
39
38
|
InvoiceType_default,
|
|
39
|
+
LightningPaymentDirection_default,
|
|
40
40
|
LightsparkNodeStatus_default,
|
|
41
41
|
LightsparkNodeWithOSK_default,
|
|
42
42
|
LightsparkNodeWithRemoteSigning_default,
|
|
@@ -88,7 +88,7 @@ import {
|
|
|
88
88
|
getTransactionQuery,
|
|
89
89
|
getUmaInvitationQuery,
|
|
90
90
|
getWithdrawalQuery
|
|
91
|
-
} from "./chunk-
|
|
91
|
+
} from "./chunk-6JPCSXLW.js";
|
|
92
92
|
import {
|
|
93
93
|
BitcoinNetwork_default
|
|
94
94
|
} from "./chunk-K6SAUSAX.js";
|
|
@@ -146,7 +146,7 @@ import {
|
|
|
146
146
|
// package.json
|
|
147
147
|
var package_default = {
|
|
148
148
|
name: "@lightsparkdev/lightspark-sdk",
|
|
149
|
-
version: "1.5.
|
|
149
|
+
version: "1.5.4",
|
|
150
150
|
description: "Lightspark JS SDK",
|
|
151
151
|
author: "Lightspark Inc.",
|
|
152
152
|
keywords: [
|
|
@@ -234,7 +234,7 @@ var package_default = {
|
|
|
234
234
|
},
|
|
235
235
|
license: "Apache-2.0",
|
|
236
236
|
dependencies: {
|
|
237
|
-
"@lightsparkdev/core": "1.0.
|
|
237
|
+
"@lightsparkdev/core": "1.0.15",
|
|
238
238
|
"@lightsparkdev/crypto-wasm": "0.1.2",
|
|
239
239
|
"auto-bind": "^5.0.1",
|
|
240
240
|
"crypto-browserify": "^3.12.0",
|
|
@@ -2348,7 +2348,6 @@ var RemoteSigningWebhookHandler = class {
|
|
|
2348
2348
|
};
|
|
2349
2349
|
export {
|
|
2350
2350
|
Account_default as Account,
|
|
2351
|
-
AccountToChannelsConnection_default as AccountToChannelsConnection,
|
|
2352
2351
|
AccountTokenAuthProvider_default as AccountTokenAuthProvider,
|
|
2353
2352
|
BitcoinNetwork_default as BitcoinNetwork,
|
|
2354
2353
|
Channel_default as Channel,
|
|
@@ -2362,6 +2361,7 @@ export {
|
|
|
2362
2361
|
IncomingPayment_default as IncomingPayment,
|
|
2363
2362
|
IncomingPaymentAttemptStatus_default as IncomingPaymentAttemptStatus,
|
|
2364
2363
|
InvoiceType_default as InvoiceType,
|
|
2364
|
+
LightningPaymentDirection_default as LightningPaymentDirection,
|
|
2365
2365
|
client_default as LightsparkClient,
|
|
2366
2366
|
LightsparkNodeStatus_default as LightsparkNodeStatus,
|
|
2367
2367
|
LightsparkNodeWithOSK_default as LightsparkNodeWithOSK,
|