@lightsparkdev/lightspark-sdk 1.7.0 → 1.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +19 -0
- package/README.md +2 -1
- package/dist/{chunk-DSWMAFFH.js → chunk-J7GJGYME.js} +46 -33
- package/dist/{index-2f0cac65.d.ts → index-9a69ef6a.d.ts} +19 -7
- package/dist/index.cjs +50 -37
- 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 +46 -33
- package/dist/objects/index.d.cts +1 -1
- package/dist/objects/index.d.ts +1 -1
- package/dist/objects/index.js +1 -1
- package/package.json +2 -2
- package/src/client.ts +2 -2
- package/src/graphql/PayUmaInvoice.ts +1 -1
- package/src/objects/Account.ts +6 -1
- package/src/objects/ApiToken.ts +4 -1
- package/src/objects/AuditLogActor.ts +4 -1
- package/src/objects/Channel.ts +4 -1
- package/src/objects/ChannelClosingTransaction.ts +4 -2
- package/src/objects/ChannelOpeningTransaction.ts +4 -2
- package/src/objects/ChannelSnapshot.ts +4 -1
- package/src/objects/CurrencyUnit.ts +1 -1
- package/src/objects/Deposit.ts +4 -1
- package/src/objects/Entity.ts +2 -0
- package/src/objects/GraphNode.ts +4 -1
- package/src/objects/Hop.ts +4 -1
- package/src/objects/IncomingPayment.ts +4 -1
- package/src/objects/IncomingPaymentAttempt.ts +4 -1
- package/src/objects/Invoice.ts +22 -1
- package/src/objects/LightningTransaction.ts +4 -1
- package/src/objects/LightsparkNode.ts +4 -1
- package/src/objects/LightsparkNodeOwner.ts +4 -1
- package/src/objects/LightsparkNodeWithOSK.ts +4 -2
- package/src/objects/LightsparkNodeWithRemoteSigning.ts +4 -2
- package/src/objects/Node.ts +4 -1
- package/src/objects/OnChainTransaction.ts +4 -1
- package/src/objects/OutgoingPayment.ts +4 -1
- package/src/objects/OutgoingPaymentAttempt.ts +4 -2
- package/src/objects/PaymentRequest.ts +10 -1
- package/src/objects/RegionCode.ts +2 -0
- package/src/objects/RoutingTransaction.ts +4 -1
- package/src/objects/Signable.ts +4 -1
- package/src/objects/SignablePayload.ts +4 -1
- package/src/objects/Transaction.ts +4 -1
- package/src/objects/TransactionStatus.ts +1 -1
- package/src/objects/UmaInvitation.ts +4 -1
- package/src/objects/Wallet.ts +6 -1
- package/src/objects/WalletStatus.ts +2 -2
- package/src/objects/Withdrawal.ts +4 -1
- package/src/objects/WithdrawalRequest.ts +4 -1
package/dist/index.cjs
CHANGED
|
@@ -1986,7 +1986,7 @@ var import_core9 = require("@lightsparkdev/core");
|
|
|
1986
1986
|
// package.json
|
|
1987
1987
|
var package_default = {
|
|
1988
1988
|
name: "@lightsparkdev/lightspark-sdk",
|
|
1989
|
-
version: "1.
|
|
1989
|
+
version: "1.8.0",
|
|
1990
1990
|
description: "Lightspark JS SDK",
|
|
1991
1991
|
author: "Lightspark Inc.",
|
|
1992
1992
|
keywords: [
|
|
@@ -2071,7 +2071,7 @@ var package_default = {
|
|
|
2071
2071
|
},
|
|
2072
2072
|
license: "Apache-2.0",
|
|
2073
2073
|
dependencies: {
|
|
2074
|
-
"@lightsparkdev/core": "1.
|
|
2074
|
+
"@lightsparkdev/core": "1.2.0",
|
|
2075
2075
|
"@lightsparkdev/crypto-wasm": "0.1.4",
|
|
2076
2076
|
"crypto-browserify": "^3.12.0",
|
|
2077
2077
|
dayjs: "^1.11.7",
|
|
@@ -2507,7 +2507,7 @@ query GetGraphNode($id: ID!) {
|
|
|
2507
2507
|
${FRAGMENT3}
|
|
2508
2508
|
`,
|
|
2509
2509
|
variables: { id },
|
|
2510
|
-
constructObject: (data) => GraphNodeFromJson(data.entity)
|
|
2510
|
+
constructObject: (data) => data && typeof data === "object" && "entity" in data ? GraphNodeFromJson(data.entity) : null
|
|
2511
2511
|
};
|
|
2512
2512
|
}
|
|
2513
2513
|
toJson() {
|
|
@@ -2725,7 +2725,7 @@ query GetChannel($id: ID!) {
|
|
|
2725
2725
|
${FRAGMENT4}
|
|
2726
2726
|
`,
|
|
2727
2727
|
variables: { id },
|
|
2728
|
-
constructObject: (data) => ChannelFromJson(data.entity)
|
|
2728
|
+
constructObject: (data) => data && typeof data === "object" && "entity" in data ? ChannelFromJson(data.entity) : null
|
|
2729
2729
|
};
|
|
2730
2730
|
}
|
|
2731
2731
|
toJson() {
|
|
@@ -3175,7 +3175,7 @@ query GetLightsparkNodeWithOSK($id: ID!) {
|
|
|
3175
3175
|
${FRAGMENT5}
|
|
3176
3176
|
`,
|
|
3177
3177
|
variables: { id },
|
|
3178
|
-
constructObject: (data) => LightsparkNodeWithOSKFromJson(data.entity)
|
|
3178
|
+
constructObject: (data) => data && typeof data === "object" && "entity" in data ? LightsparkNodeWithOSKFromJson(data.entity) : null
|
|
3179
3179
|
};
|
|
3180
3180
|
}
|
|
3181
3181
|
toJson() {
|
|
@@ -3604,7 +3604,7 @@ query GetLightsparkNodeWithRemoteSigning($id: ID!) {
|
|
|
3604
3604
|
${FRAGMENT6}
|
|
3605
3605
|
`,
|
|
3606
3606
|
variables: { id },
|
|
3607
|
-
constructObject: (data) => LightsparkNodeWithRemoteSigningFromJson(data.entity)
|
|
3607
|
+
constructObject: (data) => data && typeof data === "object" && "entity" in data ? LightsparkNodeWithRemoteSigningFromJson(data.entity) : null
|
|
3608
3608
|
};
|
|
3609
3609
|
}
|
|
3610
3610
|
toJson() {
|
|
@@ -4249,7 +4249,7 @@ query GetNode($id: ID!) {
|
|
|
4249
4249
|
${FRAGMENT7}
|
|
4250
4250
|
`,
|
|
4251
4251
|
variables: { id },
|
|
4252
|
-
constructObject: (data) => NodeFromJson(data.entity)
|
|
4252
|
+
constructObject: (data) => data && typeof data === "object" && "entity" in data ? NodeFromJson(data.entity) : null
|
|
4253
4253
|
};
|
|
4254
4254
|
};
|
|
4255
4255
|
|
|
@@ -4578,7 +4578,9 @@ var InvoiceFromJson = (obj) => {
|
|
|
4578
4578
|
data: InvoiceDataFromJson(obj["invoice_data"]),
|
|
4579
4579
|
status: PaymentRequestStatus_default[obj["invoice_status"]] ?? PaymentRequestStatus_default.FUTURE_VALUE,
|
|
4580
4580
|
typename: "Invoice",
|
|
4581
|
-
amountPaid: !!obj["invoice_amount_paid"] ? CurrencyAmountFromJson(obj["invoice_amount_paid"]) : void 0
|
|
4581
|
+
amountPaid: !!obj["invoice_amount_paid"] ? CurrencyAmountFromJson(obj["invoice_amount_paid"]) : void 0,
|
|
4582
|
+
isUma: obj["invoice_is_uma"],
|
|
4583
|
+
isLnurl: obj["invoice_is_lnurl"]
|
|
4582
4584
|
};
|
|
4583
4585
|
};
|
|
4584
4586
|
var FRAGMENT9 = `
|
|
@@ -4887,6 +4889,8 @@ fragment InvoiceFragment on Invoice {
|
|
|
4887
4889
|
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
4888
4890
|
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
4889
4891
|
}
|
|
4892
|
+
invoice_is_uma: is_uma
|
|
4893
|
+
invoice_is_lnurl: is_lnurl
|
|
4890
4894
|
}`;
|
|
4891
4895
|
var getInvoiceQuery = (id) => {
|
|
4892
4896
|
return {
|
|
@@ -4902,7 +4906,7 @@ query GetInvoice($id: ID!) {
|
|
|
4902
4906
|
${FRAGMENT9}
|
|
4903
4907
|
`,
|
|
4904
4908
|
variables: { id },
|
|
4905
|
-
constructObject: (data) => InvoiceFromJson(data.entity)
|
|
4909
|
+
constructObject: (data) => data && typeof data === "object" && "entity" in data ? InvoiceFromJson(data.entity) : null
|
|
4906
4910
|
};
|
|
4907
4911
|
};
|
|
4908
4912
|
|
|
@@ -4986,7 +4990,7 @@ query GetUmaInvitation($id: ID!) {
|
|
|
4986
4990
|
${FRAGMENT10}
|
|
4987
4991
|
`,
|
|
4988
4992
|
variables: { id },
|
|
4989
|
-
constructObject: (data) => UmaInvitationFromJson(data.entity)
|
|
4993
|
+
constructObject: (data) => data && typeof data === "object" && "entity" in data ? UmaInvitationFromJson(data.entity) : null
|
|
4990
4994
|
};
|
|
4991
4995
|
};
|
|
4992
4996
|
|
|
@@ -5091,7 +5095,7 @@ query GetApiToken($id: ID!) {
|
|
|
5091
5095
|
${FRAGMENT11}
|
|
5092
5096
|
`,
|
|
5093
5097
|
variables: { id },
|
|
5094
|
-
constructObject: (data) => ApiTokenFromJson(data.entity)
|
|
5098
|
+
constructObject: (data) => data && typeof data === "object" && "entity" in data ? ApiTokenFromJson(data.entity) : null
|
|
5095
5099
|
};
|
|
5096
5100
|
};
|
|
5097
5101
|
|
|
@@ -5246,7 +5250,7 @@ query GetIncomingPaymentAttempt($id: ID!) {
|
|
|
5246
5250
|
${FRAGMENT12}
|
|
5247
5251
|
`,
|
|
5248
5252
|
variables: { id },
|
|
5249
|
-
constructObject: (data) => IncomingPaymentAttemptFromJson(data.entity)
|
|
5253
|
+
constructObject: (data) => data && typeof data === "object" && "entity" in data ? IncomingPaymentAttemptFromJson(data.entity) : null
|
|
5250
5254
|
};
|
|
5251
5255
|
};
|
|
5252
5256
|
|
|
@@ -5375,7 +5379,7 @@ query GetIncomingPayment($id: ID!) {
|
|
|
5375
5379
|
${FRAGMENT13}
|
|
5376
5380
|
`,
|
|
5377
5381
|
variables: { id },
|
|
5378
|
-
constructObject: (data) => IncomingPaymentFromJson(data.entity)
|
|
5382
|
+
constructObject: (data) => data && typeof data === "object" && "entity" in data ? IncomingPaymentFromJson(data.entity) : null
|
|
5379
5383
|
};
|
|
5380
5384
|
}
|
|
5381
5385
|
toJson() {
|
|
@@ -5839,7 +5843,7 @@ query GetHop($id: ID!) {
|
|
|
5839
5843
|
${FRAGMENT15}
|
|
5840
5844
|
`,
|
|
5841
5845
|
variables: { id },
|
|
5842
|
-
constructObject: (data) => HopFromJson(data.entity)
|
|
5846
|
+
constructObject: (data) => data && typeof data === "object" && "entity" in data ? HopFromJson(data.entity) : null
|
|
5843
5847
|
};
|
|
5844
5848
|
};
|
|
5845
5849
|
|
|
@@ -5945,7 +5949,7 @@ query GetOutgoingPaymentAttempt($id: ID!) {
|
|
|
5945
5949
|
${FRAGMENT16}
|
|
5946
5950
|
`,
|
|
5947
5951
|
variables: { id },
|
|
5948
|
-
constructObject: (data) => OutgoingPaymentAttemptFromJson(data.entity)
|
|
5952
|
+
constructObject: (data) => data && typeof data === "object" && "entity" in data ? OutgoingPaymentAttemptFromJson(data.entity) : null
|
|
5949
5953
|
};
|
|
5950
5954
|
}
|
|
5951
5955
|
toJson() {
|
|
@@ -6205,7 +6209,7 @@ query GetOutgoingPayment($id: ID!) {
|
|
|
6205
6209
|
${FRAGMENT17}
|
|
6206
6210
|
`,
|
|
6207
6211
|
variables: { id },
|
|
6208
|
-
constructObject: (data) => OutgoingPaymentFromJson(data.entity)
|
|
6212
|
+
constructObject: (data) => data && typeof data === "object" && "entity" in data ? OutgoingPaymentFromJson(data.entity) : null
|
|
6209
6213
|
};
|
|
6210
6214
|
}
|
|
6211
6215
|
toJson() {
|
|
@@ -6660,7 +6664,7 @@ var PayUmaInvoice = `
|
|
|
6660
6664
|
$timeout_secs: Int!
|
|
6661
6665
|
$maximum_fees_msats: Long!
|
|
6662
6666
|
$amount_msats: Long
|
|
6663
|
-
$sender_hash: String
|
|
6667
|
+
$sender_hash: String
|
|
6664
6668
|
) {
|
|
6665
6669
|
pay_uma_invoice(
|
|
6666
6670
|
input: {
|
|
@@ -6692,7 +6696,9 @@ var PaymentRequestFromJson = (obj) => {
|
|
|
6692
6696
|
data: InvoiceDataFromJson(obj["invoice_data"]),
|
|
6693
6697
|
status: PaymentRequestStatus_default[obj["invoice_status"]] ?? PaymentRequestStatus_default.FUTURE_VALUE,
|
|
6694
6698
|
typename: "Invoice",
|
|
6695
|
-
amountPaid: !!obj["invoice_amount_paid"] ? CurrencyAmountFromJson(obj["invoice_amount_paid"]) : void 0
|
|
6699
|
+
amountPaid: !!obj["invoice_amount_paid"] ? CurrencyAmountFromJson(obj["invoice_amount_paid"]) : void 0,
|
|
6700
|
+
isUma: obj["invoice_is_uma"],
|
|
6701
|
+
isLnurl: obj["invoice_is_lnurl"]
|
|
6696
6702
|
};
|
|
6697
6703
|
}
|
|
6698
6704
|
throw new import_core6.LightsparkException(
|
|
@@ -7008,6 +7014,8 @@ fragment PaymentRequestFragment on PaymentRequest {
|
|
|
7008
7014
|
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
7009
7015
|
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
7010
7016
|
}
|
|
7017
|
+
invoice_is_uma: is_uma
|
|
7018
|
+
invoice_is_lnurl: is_lnurl
|
|
7011
7019
|
}
|
|
7012
7020
|
}`;
|
|
7013
7021
|
var getPaymentRequestQuery = (id) => {
|
|
@@ -7024,7 +7032,7 @@ query GetPaymentRequest($id: ID!) {
|
|
|
7024
7032
|
${FRAGMENT18}
|
|
7025
7033
|
`,
|
|
7026
7034
|
variables: { id },
|
|
7027
|
-
constructObject: (data) => PaymentRequestFromJson(data.entity)
|
|
7035
|
+
constructObject: (data) => data && typeof data === "object" && "entity" in data ? PaymentRequestFromJson(data.entity) : null
|
|
7028
7036
|
};
|
|
7029
7037
|
};
|
|
7030
7038
|
|
|
@@ -7177,7 +7185,7 @@ query GetChannelClosingTransaction($id: ID!) {
|
|
|
7177
7185
|
${FRAGMENT19}
|
|
7178
7186
|
`,
|
|
7179
7187
|
variables: { id },
|
|
7180
|
-
constructObject: (data) => ChannelClosingTransactionFromJson(data.entity)
|
|
7188
|
+
constructObject: (data) => data && typeof data === "object" && "entity" in data ? ChannelClosingTransactionFromJson(data.entity) : null
|
|
7181
7189
|
};
|
|
7182
7190
|
};
|
|
7183
7191
|
|
|
@@ -7259,7 +7267,7 @@ query GetChannelOpeningTransaction($id: ID!) {
|
|
|
7259
7267
|
${FRAGMENT20}
|
|
7260
7268
|
`,
|
|
7261
7269
|
variables: { id },
|
|
7262
|
-
constructObject: (data) => ChannelOpeningTransactionFromJson(data.entity)
|
|
7270
|
+
constructObject: (data) => data && typeof data === "object" && "entity" in data ? ChannelOpeningTransactionFromJson(data.entity) : null
|
|
7263
7271
|
};
|
|
7264
7272
|
};
|
|
7265
7273
|
|
|
@@ -7341,7 +7349,7 @@ query GetWithdrawal($id: ID!) {
|
|
|
7341
7349
|
${FRAGMENT21}
|
|
7342
7350
|
`,
|
|
7343
7351
|
variables: { id },
|
|
7344
|
-
constructObject: (data) => WithdrawalFromJson(data.entity)
|
|
7352
|
+
constructObject: (data) => data && typeof data === "object" && "entity" in data ? WithdrawalFromJson(data.entity) : null
|
|
7345
7353
|
};
|
|
7346
7354
|
};
|
|
7347
7355
|
|
|
@@ -7567,7 +7575,7 @@ query GetWithdrawalRequest($id: ID!) {
|
|
|
7567
7575
|
${FRAGMENT22}
|
|
7568
7576
|
`,
|
|
7569
7577
|
variables: { id },
|
|
7570
|
-
constructObject: (data) => WithdrawalRequestFromJson(data.entity)
|
|
7578
|
+
constructObject: (data) => data && typeof data === "object" && "entity" in data ? WithdrawalRequestFromJson(data.entity) : null
|
|
7571
7579
|
};
|
|
7572
7580
|
}
|
|
7573
7581
|
toJson() {
|
|
@@ -8456,7 +8464,7 @@ query GetTransaction($id: ID!) {
|
|
|
8456
8464
|
${FRAGMENT23}
|
|
8457
8465
|
`,
|
|
8458
8466
|
variables: { id },
|
|
8459
|
-
constructObject: (data) => TransactionFromJson(data.entity)
|
|
8467
|
+
constructObject: (data) => data && typeof data === "object" && "entity" in data ? TransactionFromJson(data.entity) : null
|
|
8460
8468
|
};
|
|
8461
8469
|
};
|
|
8462
8470
|
|
|
@@ -9077,7 +9085,7 @@ query GetLightsparkNode($id: ID!) {
|
|
|
9077
9085
|
${FRAGMENT26}
|
|
9078
9086
|
`,
|
|
9079
9087
|
variables: { id },
|
|
9080
|
-
constructObject: (data) => LightsparkNodeFromJson(data.entity)
|
|
9088
|
+
constructObject: (data) => data && typeof data === "object" && "entity" in data ? LightsparkNodeFromJson(data.entity) : null
|
|
9081
9089
|
};
|
|
9082
9090
|
};
|
|
9083
9091
|
|
|
@@ -10111,6 +10119,8 @@ query FetchWalletToPaymentRequestsConnection($entity_id: ID!, $first: Int, $afte
|
|
|
10111
10119
|
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
10112
10120
|
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
10113
10121
|
}
|
|
10122
|
+
invoice_is_uma: is_uma
|
|
10123
|
+
invoice_is_lnurl: is_lnurl
|
|
10114
10124
|
}
|
|
10115
10125
|
}
|
|
10116
10126
|
}
|
|
@@ -10293,7 +10303,7 @@ query GetWallet($id: ID!) {
|
|
|
10293
10303
|
${FRAGMENT27}
|
|
10294
10304
|
`,
|
|
10295
10305
|
variables: { id },
|
|
10296
|
-
constructObject: (data) => WalletFromJson(data.entity)
|
|
10306
|
+
constructObject: (data) => data && typeof data === "object" && "entity" in data ? WalletFromJson(data.entity) : null
|
|
10297
10307
|
};
|
|
10298
10308
|
}
|
|
10299
10309
|
toJson() {
|
|
@@ -11957,6 +11967,8 @@ query FetchAccountToPaymentRequestsConnection($first: Int, $after: String, $afte
|
|
|
11957
11967
|
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
11958
11968
|
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
11959
11969
|
}
|
|
11970
|
+
invoice_is_uma: is_uma
|
|
11971
|
+
invoice_is_lnurl: is_lnurl
|
|
11960
11972
|
}
|
|
11961
11973
|
}
|
|
11962
11974
|
}
|
|
@@ -12151,7 +12163,7 @@ query GetAccount {
|
|
|
12151
12163
|
${FRAGMENT28}
|
|
12152
12164
|
`,
|
|
12153
12165
|
variables: {},
|
|
12154
|
-
constructObject: (data) => AccountFromJson(data.current_account)
|
|
12166
|
+
constructObject: (data) => data && typeof data === "object" && "current_account" in data ? AccountFromJson(data.current_account) : null
|
|
12155
12167
|
};
|
|
12156
12168
|
}
|
|
12157
12169
|
toJson() {
|
|
@@ -12201,7 +12213,7 @@ var LightsparkClient = class {
|
|
|
12201
12213
|
* @param authProvider The auth provider to use for authentication. Defaults to a stub auth provider.
|
|
12202
12214
|
* For server-side
|
|
12203
12215
|
* use, you should use the `AccountTokenAuthProvider`.
|
|
12204
|
-
* @param serverUrl The base URL
|
|
12216
|
+
* @param serverUrl The base URL for the Lightspark environment you want to connect to. Your API credentials determine whether you're in test mode or live mode. Typically, you won't need to set this parameter unless you want to connect to a different Lightspark environment than the default production environment.
|
|
12205
12217
|
* @param cryptoImpl The crypto implementation to use. Defaults to web and node compatible crypto.
|
|
12206
12218
|
* For React Native, you should use the `ReactNativeCrypto`
|
|
12207
12219
|
* implementation from `@lightsparkdev/react-native`.
|
|
@@ -13425,7 +13437,7 @@ query GetAuditLogActor($id: ID!) {
|
|
|
13425
13437
|
${FRAGMENT29}
|
|
13426
13438
|
`,
|
|
13427
13439
|
variables: { id },
|
|
13428
|
-
constructObject: (data) => AuditLogActorFromJson(data.entity)
|
|
13440
|
+
constructObject: (data) => data && typeof data === "object" && "entity" in data ? AuditLogActorFromJson(data.entity) : null
|
|
13429
13441
|
};
|
|
13430
13442
|
};
|
|
13431
13443
|
|
|
@@ -13512,7 +13524,7 @@ query GetChannelSnapshot($id: ID!) {
|
|
|
13512
13524
|
${FRAGMENT30}
|
|
13513
13525
|
`,
|
|
13514
13526
|
variables: { id },
|
|
13515
|
-
constructObject: (data) => ChannelSnapshotFromJson(data.entity)
|
|
13527
|
+
constructObject: (data) => data && typeof data === "object" && "entity" in data ? ChannelSnapshotFromJson(data.entity) : null
|
|
13516
13528
|
};
|
|
13517
13529
|
};
|
|
13518
13530
|
|
|
@@ -13768,6 +13780,7 @@ var RegionCode = /* @__PURE__ */ ((RegionCode2) => {
|
|
|
13768
13780
|
RegionCode2["YE"] = "YE";
|
|
13769
13781
|
RegionCode2["ZM"] = "ZM";
|
|
13770
13782
|
RegionCode2["ZW"] = "ZW";
|
|
13783
|
+
RegionCode2["NN"] = "NN";
|
|
13771
13784
|
return RegionCode2;
|
|
13772
13785
|
})(RegionCode || {});
|
|
13773
13786
|
var RegionCode_default = RegionCode;
|
|
@@ -13838,7 +13851,7 @@ query GetSignablePayload($id: ID!) {
|
|
|
13838
13851
|
${FRAGMENT31}
|
|
13839
13852
|
`,
|
|
13840
13853
|
variables: { id },
|
|
13841
|
-
constructObject: (data) => SignablePayloadFromJson(data.entity)
|
|
13854
|
+
constructObject: (data) => data && typeof data === "object" && "entity" in data ? SignablePayloadFromJson(data.entity) : null
|
|
13842
13855
|
};
|
|
13843
13856
|
};
|
|
13844
13857
|
|
|
@@ -13908,7 +13921,7 @@ query GetDeposit($id: ID!) {
|
|
|
13908
13921
|
${FRAGMENT32}
|
|
13909
13922
|
`,
|
|
13910
13923
|
variables: { id },
|
|
13911
|
-
constructObject: (data) => DepositFromJson(data.entity)
|
|
13924
|
+
constructObject: (data) => data && typeof data === "object" && "entity" in data ? DepositFromJson(data.entity) : null
|
|
13912
13925
|
};
|
|
13913
13926
|
};
|
|
13914
13927
|
|
|
@@ -14420,7 +14433,7 @@ query GetLightningTransaction($id: ID!) {
|
|
|
14420
14433
|
${FRAGMENT33}
|
|
14421
14434
|
`,
|
|
14422
14435
|
variables: { id },
|
|
14423
|
-
constructObject: (data) => LightningTransactionFromJson(data.entity)
|
|
14436
|
+
constructObject: (data) => data && typeof data === "object" && "entity" in data ? LightningTransactionFromJson(data.entity) : null
|
|
14424
14437
|
};
|
|
14425
14438
|
};
|
|
14426
14439
|
|
|
@@ -14518,7 +14531,7 @@ query GetLightsparkNodeOwner($id: ID!) {
|
|
|
14518
14531
|
${FRAGMENT34}
|
|
14519
14532
|
`,
|
|
14520
14533
|
variables: { id },
|
|
14521
|
-
constructObject: (data) => LightsparkNodeOwnerFromJson(data.entity)
|
|
14534
|
+
constructObject: (data) => data && typeof data === "object" && "entity" in data ? LightsparkNodeOwnerFromJson(data.entity) : null
|
|
14522
14535
|
};
|
|
14523
14536
|
};
|
|
14524
14537
|
|
|
@@ -14759,7 +14772,7 @@ query GetOnChainTransaction($id: ID!) {
|
|
|
14759
14772
|
${FRAGMENT35}
|
|
14760
14773
|
`,
|
|
14761
14774
|
variables: { id },
|
|
14762
|
-
constructObject: (data) => OnChainTransactionFromJson(data.entity)
|
|
14775
|
+
constructObject: (data) => data && typeof data === "object" && "entity" in data ? OnChainTransactionFromJson(data.entity) : null
|
|
14763
14776
|
};
|
|
14764
14777
|
};
|
|
14765
14778
|
|
|
@@ -14867,7 +14880,7 @@ query GetRoutingTransaction($id: ID!) {
|
|
|
14867
14880
|
${FRAGMENT36}
|
|
14868
14881
|
`,
|
|
14869
14882
|
variables: { id },
|
|
14870
|
-
constructObject: (data) => RoutingTransactionFromJson(data.entity)
|
|
14883
|
+
constructObject: (data) => data && typeof data === "object" && "entity" in data ? RoutingTransactionFromJson(data.entity) : null
|
|
14871
14884
|
};
|
|
14872
14885
|
};
|
|
14873
14886
|
|
|
@@ -14901,7 +14914,7 @@ query GetSignable($id: ID!) {
|
|
|
14901
14914
|
${FRAGMENT37}
|
|
14902
14915
|
`,
|
|
14903
14916
|
variables: { id },
|
|
14904
|
-
constructObject: (data) => SignableFromJson(data.entity)
|
|
14917
|
+
constructObject: (data) => data && typeof data === "object" && "entity" in data ? SignableFromJson(data.entity) : null
|
|
14905
14918
|
};
|
|
14906
14919
|
};
|
|
14907
14920
|
|
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, j as AuditLogActor, B as Balances, l as BlockchainBalance, C as CancelInvoiceInput, m as CancelInvoiceOutput, n as Channel, o as ChannelClosingTransaction, q as ChannelFees, r as ChannelOpeningTransaction, t as ChannelSnapshot, v as ChannelStatus, w as ChannelToTransactionsConnection, x as ClaimUmaInvitationInput, y as ClaimUmaInvitationOutput, z as ClaimUmaInvitationWithIncentivesInput, D as ClaimUmaInvitationWithIncentivesOutput, E as ComplianceProvider, F as Connection, G as CreateApiTokenInput, H as CreateApiTokenOutput, I as CreateInvitationWithIncentivesInput, J as CreateInvitationWithIncentivesOutput, K as CreateInvoiceInput, M as CreateInvoiceOutput, N as CreateLnurlInvoiceInput, O as CreateNodeWalletAddressInput, P as CreateNodeWalletAddressOutput, Q as CreateTestModeInvoiceInput, R as CreateTestModeInvoiceOutput, S as CreateTestModePaymentInput, T as CreateTestModePaymentoutput, U as CreateUmaInvitationInput, V as CreateUmaInvitationOutput, X as CreateUmaInvoiceInput, Y as CurrencyAmount, Z as CurrencyUnit, _ as DailyLiquidityForecast, $ as DeclineToSignMessagesInput, a0 as DeclineToSignMessagesOutput, a1 as DeleteApiTokenInput, a2 as DeleteApiTokenOutput, a3 as Deposit, a5 as Entity, a6 as FailHtlcsInput, a7 as FailHtlcsOutput, a8 as FeeEstimate, a9 as FundNodeInput, aa as FundNodeOutput, ab as GraphNode, ac as Hop, ae as HtlcAttemptFailureCode, af as IdAndSignature, ag as IncentivesIneligibilityReason, ah as IncentivesStatus, ai as IncomingPayment, aj as IncomingPaymentAttempt, al as IncomingPaymentAttemptStatus, am as IncomingPaymentToAttemptsConnection, an as IncomingPaymentsForInvoiceQueryInput, ao as IncomingPaymentsForInvoiceQueryOutput, ap as Invoice, ar as InvoiceData, as as InvoiceForPaymentHashInput, at as InvoiceForPaymentHashOutput, au as InvoiceType, av as LightningFeeEstimateForInvoiceInput, aw as LightningFeeEstimateForNodeInput, ax as LightningFeeEstimateOutput, ay as LightningPaymentDirection, az as LightningTransaction, aB as LightsparkNode, aD as LightsparkNodeOwner, aF as LightsparkNodeStatus, aG as LightsparkNodeToChannelsConnection, aH as LightsparkNodeToDailyLiquidityForecastsConnection, aI as LightsparkNodeWithOSK, aJ as LightsparkNodeWithRemoteSigning, aK as MultiSigAddressValidationParameters, aL as Node, aN as NodeAddress, aO as NodeAddressType, aP as NodeToAddressesConnection, aQ as OnChainFeeTarget, aR as OnChainTransaction, aT as OutgoingPayment, aU as OutgoingPaymentAttempt, aV as OutgoingPaymentAttemptStatus, aW as OutgoingPaymentAttemptToHopsConnection, aX as OutgoingPaymentForIdempotencyKeyInput, aY as OutgoingPaymentForIdempotencyKeyOutput, aZ as OutgoingPaymentToAttemptsConnection, a_ as OutgoingPaymentsForInvoiceQueryInput, a$ as OutgoingPaymentsForInvoiceQueryOutput, b0 as OutgoingPaymentsForPaymentHashQueryInput, b1 as OutgoingPaymentsForPaymentHashQueryOutput, b2 as PageInfo, b3 as PayInvoiceInput, b4 as PayInvoiceOutput, b5 as PayUmaInvoiceInput, b6 as PaymentDirection, b7 as PaymentFailureReason, b8 as PaymentRequest, ba as PaymentRequestData, bb as PaymentRequestStatus, bc as Permission, bd as PostTransactionData, be as RegionCode, bf as RegisterPaymentInput, bg as RegisterPaymentOutput, bh as ReleaseChannelPerCommitmentSecretInput, bi as ReleaseChannelPerCommitmentSecretOutput, bj as ReleasePaymentPreimageInput, bk as ReleasePaymentPreimageOutput, bl as RemoteSigningSubEventType, bm as RequestInitiator, bn as RequestWithdrawalInput, bo as RequestWithdrawalOutput, bp as RichText, bq as RiskRating, br as RoutingTransaction, bt as RoutingTransactionFailureReason, bu as ScreenNodeInput, bv as ScreenNodeOutput, bw as Secret, bx as SendPaymentInput, by as SendPaymentOutput, bz as SetInvoicePaymentHashInput, bA as SetInvoicePaymentHashOutput, bB as SignInvoiceInput, bC as SignInvoiceOutput, bD as SignMessagesInput, bE as SignMessagesOutput, bF as Signable, bH as SignablePayload, bJ as SignablePayloadStatus, bK as SingleNodeDashboard, bL as Transaction, bN as TransactionFailures, bO as TransactionStatus, bP as TransactionType, bQ as TransactionUpdate, bR as UmaInvitation, bT as UpdateChannelPerCommitmentPointInput, bU as UpdateChannelPerCommitmentPointOutput, bV as UpdateNodeSharedSecretInput, bW as UpdateNodeSharedSecretOutput, bX as Wallet, bY as WalletStatus, bZ as WalletToPaymentRequestsConnection, b_ as WalletToTransactionsConnection, b$ as WalletToWithdrawalRequestsConnection, c0 as Withdrawal, c2 as WithdrawalFeeEstimateInput, c3 as WithdrawalFeeEstimateOutput, c4 as WithdrawalMode, c5 as WithdrawalRequest, c6 as WithdrawalRequestStatus, c7 as WithdrawalRequestToChannelClosingTransactionsConnection, c8 as WithdrawalRequestToChannelOpeningTransactionsConnection, c9 as WithdrawalRequestToWithdrawalsConnection, i as getApiTokenQuery, k as getAuditLogActorQuery, p as getChannelClosingTransactionQuery, s as getChannelOpeningTransactionQuery, u as getChannelSnapshotQuery, a4 as getDepositQuery, ad as getHopQuery, ak as getIncomingPaymentAttemptQuery, aq as getInvoiceQuery, aA as getLightningTransactionQuery, aE as getLightsparkNodeOwnerQuery, aC as getLightsparkNodeQuery, aM as getNodeQuery, aS as getOnChainTransactionQuery, b9 as getPaymentRequestQuery, bs as getRoutingTransactionQuery, bI as getSignablePayloadQuery, bG as getSignableQuery, bM as getTransactionQuery, bS as getUmaInvitationQuery, c1 as getWithdrawalQuery } from './index-
|
|
2
|
+
import { W as WebhookEventType, L as LightsparkClient } from './index-9a69ef6a.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, j as AuditLogActor, B as Balances, l as BlockchainBalance, C as CancelInvoiceInput, m as CancelInvoiceOutput, n as Channel, o as ChannelClosingTransaction, q as ChannelFees, r as ChannelOpeningTransaction, t as ChannelSnapshot, v as ChannelStatus, w as ChannelToTransactionsConnection, x as ClaimUmaInvitationInput, y as ClaimUmaInvitationOutput, z as ClaimUmaInvitationWithIncentivesInput, D as ClaimUmaInvitationWithIncentivesOutput, E as ComplianceProvider, F as Connection, G as CreateApiTokenInput, H as CreateApiTokenOutput, I as CreateInvitationWithIncentivesInput, J as CreateInvitationWithIncentivesOutput, K as CreateInvoiceInput, M as CreateInvoiceOutput, N as CreateLnurlInvoiceInput, O as CreateNodeWalletAddressInput, P as CreateNodeWalletAddressOutput, Q as CreateTestModeInvoiceInput, R as CreateTestModeInvoiceOutput, S as CreateTestModePaymentInput, T as CreateTestModePaymentoutput, U as CreateUmaInvitationInput, V as CreateUmaInvitationOutput, X as CreateUmaInvoiceInput, Y as CurrencyAmount, Z as CurrencyUnit, _ as DailyLiquidityForecast, $ as DeclineToSignMessagesInput, a0 as DeclineToSignMessagesOutput, a1 as DeleteApiTokenInput, a2 as DeleteApiTokenOutput, a3 as Deposit, a5 as Entity, a6 as FailHtlcsInput, a7 as FailHtlcsOutput, a8 as FeeEstimate, a9 as FundNodeInput, aa as FundNodeOutput, ab as GraphNode, ac as Hop, ae as HtlcAttemptFailureCode, af as IdAndSignature, ag as IncentivesIneligibilityReason, ah as IncentivesStatus, ai as IncomingPayment, aj as IncomingPaymentAttempt, al as IncomingPaymentAttemptStatus, am as IncomingPaymentToAttemptsConnection, an as IncomingPaymentsForInvoiceQueryInput, ao as IncomingPaymentsForInvoiceQueryOutput, ap as Invoice, ar as InvoiceData, as as InvoiceForPaymentHashInput, at as InvoiceForPaymentHashOutput, au as InvoiceType, av as LightningFeeEstimateForInvoiceInput, aw as LightningFeeEstimateForNodeInput, ax as LightningFeeEstimateOutput, ay as LightningPaymentDirection, az as LightningTransaction, aB as LightsparkNode, aD as LightsparkNodeOwner, aF as LightsparkNodeStatus, aG as LightsparkNodeToChannelsConnection, aH as LightsparkNodeToDailyLiquidityForecastsConnection, aI as LightsparkNodeWithOSK, aJ as LightsparkNodeWithRemoteSigning, aK as MultiSigAddressValidationParameters, aL as Node, aN as NodeAddress, aO as NodeAddressType, aP as NodeToAddressesConnection, aQ as OnChainFeeTarget, aR as OnChainTransaction, aT as OutgoingPayment, aU as OutgoingPaymentAttempt, aV as OutgoingPaymentAttemptStatus, aW as OutgoingPaymentAttemptToHopsConnection, aX as OutgoingPaymentForIdempotencyKeyInput, aY as OutgoingPaymentForIdempotencyKeyOutput, aZ as OutgoingPaymentToAttemptsConnection, a_ as OutgoingPaymentsForInvoiceQueryInput, a$ as OutgoingPaymentsForInvoiceQueryOutput, b0 as OutgoingPaymentsForPaymentHashQueryInput, b1 as OutgoingPaymentsForPaymentHashQueryOutput, b2 as PageInfo, b3 as PayInvoiceInput, b4 as PayInvoiceOutput, b5 as PayUmaInvoiceInput, b6 as PaymentDirection, b7 as PaymentFailureReason, b8 as PaymentRequest, ba as PaymentRequestData, bb as PaymentRequestStatus, bc as Permission, bd as PostTransactionData, be as RegionCode, bf as RegisterPaymentInput, bg as RegisterPaymentOutput, bh as ReleaseChannelPerCommitmentSecretInput, bi as ReleaseChannelPerCommitmentSecretOutput, bj as ReleasePaymentPreimageInput, bk as ReleasePaymentPreimageOutput, bl as RemoteSigningSubEventType, bm as RequestInitiator, bn as RequestWithdrawalInput, bo as RequestWithdrawalOutput, bp as RichText, bq as RiskRating, br as RoutingTransaction, bt as RoutingTransactionFailureReason, bu as ScreenNodeInput, bv as ScreenNodeOutput, bw as Secret, bx as SendPaymentInput, by as SendPaymentOutput, bz as SetInvoicePaymentHashInput, bA as SetInvoicePaymentHashOutput, bB as SignInvoiceInput, bC as SignInvoiceOutput, bD as SignMessagesInput, bE as SignMessagesOutput, bF as Signable, bH as SignablePayload, bJ as SignablePayloadStatus, bK as SingleNodeDashboard, bL as Transaction, bN as TransactionFailures, bO as TransactionStatus, bP as TransactionType, bQ as TransactionUpdate, bR as UmaInvitation, bT as UpdateChannelPerCommitmentPointInput, bU as UpdateChannelPerCommitmentPointOutput, bV as UpdateNodeSharedSecretInput, bW as UpdateNodeSharedSecretOutput, bX as Wallet, bY as WalletStatus, bZ as WalletToPaymentRequestsConnection, b_ as WalletToTransactionsConnection, b$ as WalletToWithdrawalRequestsConnection, c0 as Withdrawal, c2 as WithdrawalFeeEstimateInput, c3 as WithdrawalFeeEstimateOutput, c4 as WithdrawalMode, c5 as WithdrawalRequest, c6 as WithdrawalRequestStatus, c7 as WithdrawalRequestToChannelClosingTransactionsConnection, c8 as WithdrawalRequestToChannelOpeningTransactionsConnection, c9 as WithdrawalRequestToWithdrawalsConnection, i as getApiTokenQuery, k as getAuditLogActorQuery, p as getChannelClosingTransactionQuery, s as getChannelOpeningTransactionQuery, u as getChannelSnapshotQuery, a4 as getDepositQuery, ad as getHopQuery, ak as getIncomingPaymentAttemptQuery, aq as getInvoiceQuery, aA as getLightningTransactionQuery, aE as getLightsparkNodeOwnerQuery, aC as getLightsparkNodeQuery, aM as getNodeQuery, aS as getOnChainTransactionQuery, b9 as getPaymentRequestQuery, bs as getRoutingTransactionQuery, bI as getSignablePayloadQuery, bG as getSignableQuery, bM as getTransactionQuery, bS as getUmaInvitationQuery, c1 as getWithdrawalQuery } from './index-9a69ef6a.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, j as AuditLogActor, B as Balances, l as BlockchainBalance, C as CancelInvoiceInput, m as CancelInvoiceOutput, n as Channel, o as ChannelClosingTransaction, q as ChannelFees, r as ChannelOpeningTransaction, t as ChannelSnapshot, v as ChannelStatus, w as ChannelToTransactionsConnection, x as ClaimUmaInvitationInput, y as ClaimUmaInvitationOutput, z as ClaimUmaInvitationWithIncentivesInput, D as ClaimUmaInvitationWithIncentivesOutput, E as ComplianceProvider, F as Connection, G as CreateApiTokenInput, H as CreateApiTokenOutput, I as CreateInvitationWithIncentivesInput, J as CreateInvitationWithIncentivesOutput, K as CreateInvoiceInput, M as CreateInvoiceOutput, N as CreateLnurlInvoiceInput, O as CreateNodeWalletAddressInput, P as CreateNodeWalletAddressOutput, Q as CreateTestModeInvoiceInput, R as CreateTestModeInvoiceOutput, S as CreateTestModePaymentInput, T as CreateTestModePaymentoutput, U as CreateUmaInvitationInput, V as CreateUmaInvitationOutput, X as CreateUmaInvoiceInput, Y as CurrencyAmount, Z as CurrencyUnit, _ as DailyLiquidityForecast, $ as DeclineToSignMessagesInput, a0 as DeclineToSignMessagesOutput, a1 as DeleteApiTokenInput, a2 as DeleteApiTokenOutput, a3 as Deposit, a5 as Entity, a6 as FailHtlcsInput, a7 as FailHtlcsOutput, a8 as FeeEstimate, a9 as FundNodeInput, aa as FundNodeOutput, ab as GraphNode, ac as Hop, ae as HtlcAttemptFailureCode, af as IdAndSignature, ag as IncentivesIneligibilityReason, ah as IncentivesStatus, ai as IncomingPayment, aj as IncomingPaymentAttempt, al as IncomingPaymentAttemptStatus, am as IncomingPaymentToAttemptsConnection, an as IncomingPaymentsForInvoiceQueryInput, ao as IncomingPaymentsForInvoiceQueryOutput, ap as Invoice, ar as InvoiceData, as as InvoiceForPaymentHashInput, at as InvoiceForPaymentHashOutput, au as InvoiceType, av as LightningFeeEstimateForInvoiceInput, aw as LightningFeeEstimateForNodeInput, ax as LightningFeeEstimateOutput, ay as LightningPaymentDirection, az as LightningTransaction, aB as LightsparkNode, aD as LightsparkNodeOwner, aF as LightsparkNodeStatus, aG as LightsparkNodeToChannelsConnection, aH as LightsparkNodeToDailyLiquidityForecastsConnection, aI as LightsparkNodeWithOSK, aJ as LightsparkNodeWithRemoteSigning, aK as MultiSigAddressValidationParameters, aL as Node, aN as NodeAddress, aO as NodeAddressType, aP as NodeToAddressesConnection, aQ as OnChainFeeTarget, aR as OnChainTransaction, aT as OutgoingPayment, aU as OutgoingPaymentAttempt, aV as OutgoingPaymentAttemptStatus, aW as OutgoingPaymentAttemptToHopsConnection, aX as OutgoingPaymentForIdempotencyKeyInput, aY as OutgoingPaymentForIdempotencyKeyOutput, aZ as OutgoingPaymentToAttemptsConnection, a_ as OutgoingPaymentsForInvoiceQueryInput, a$ as OutgoingPaymentsForInvoiceQueryOutput, b0 as OutgoingPaymentsForPaymentHashQueryInput, b1 as OutgoingPaymentsForPaymentHashQueryOutput, b2 as PageInfo, b3 as PayInvoiceInput, b4 as PayInvoiceOutput, b5 as PayUmaInvoiceInput, b6 as PaymentDirection, b7 as PaymentFailureReason, b8 as PaymentRequest, ba as PaymentRequestData, bb as PaymentRequestStatus, bc as Permission, bd as PostTransactionData, be as RegionCode, bf as RegisterPaymentInput, bg as RegisterPaymentOutput, bh as ReleaseChannelPerCommitmentSecretInput, bi as ReleaseChannelPerCommitmentSecretOutput, bj as ReleasePaymentPreimageInput, bk as ReleasePaymentPreimageOutput, bl as RemoteSigningSubEventType, bm as RequestInitiator, bn as RequestWithdrawalInput, bo as RequestWithdrawalOutput, bp as RichText, bq as RiskRating, br as RoutingTransaction, bt as RoutingTransactionFailureReason, bu as ScreenNodeInput, bv as ScreenNodeOutput, bw as Secret, bx as SendPaymentInput, by as SendPaymentOutput, bz as SetInvoicePaymentHashInput, bA as SetInvoicePaymentHashOutput, bB as SignInvoiceInput, bC as SignInvoiceOutput, bD as SignMessagesInput, bE as SignMessagesOutput, bF as Signable, bH as SignablePayload, bJ as SignablePayloadStatus, bK as SingleNodeDashboard, bL as Transaction, bN as TransactionFailures, bO as TransactionStatus, bP as TransactionType, bQ as TransactionUpdate, bR as UmaInvitation, bT as UpdateChannelPerCommitmentPointInput, bU as UpdateChannelPerCommitmentPointOutput, bV as UpdateNodeSharedSecretInput, bW as UpdateNodeSharedSecretOutput, bX as Wallet, bY as WalletStatus, bZ as WalletToPaymentRequestsConnection, b_ as WalletToTransactionsConnection, b$ as WalletToWithdrawalRequestsConnection, c0 as Withdrawal, c2 as WithdrawalFeeEstimateInput, c3 as WithdrawalFeeEstimateOutput, c4 as WithdrawalMode, c5 as WithdrawalRequest, c6 as WithdrawalRequestStatus, c7 as WithdrawalRequestToChannelClosingTransactionsConnection, c8 as WithdrawalRequestToChannelOpeningTransactionsConnection, c9 as WithdrawalRequestToWithdrawalsConnection, i as getApiTokenQuery, k as getAuditLogActorQuery, p as getChannelClosingTransactionQuery, s as getChannelOpeningTransactionQuery, u as getChannelSnapshotQuery, a4 as getDepositQuery, ad as getHopQuery, ak as getIncomingPaymentAttemptQuery, aq as getInvoiceQuery, aA as getLightningTransactionQuery, aE as getLightsparkNodeOwnerQuery, aC as getLightsparkNodeQuery, aM as getNodeQuery, aS as getOnChainTransactionQuery, b9 as getPaymentRequestQuery, bs as getRoutingTransactionQuery, bI as getSignablePayloadQuery, bG as getSignableQuery, bM as getTransactionQuery, bS as getUmaInvitationQuery, c1 as getWithdrawalQuery } from './index-
|
|
2
|
+
import { W as WebhookEventType, L as LightsparkClient } from './index-9a69ef6a.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, j as AuditLogActor, B as Balances, l as BlockchainBalance, C as CancelInvoiceInput, m as CancelInvoiceOutput, n as Channel, o as ChannelClosingTransaction, q as ChannelFees, r as ChannelOpeningTransaction, t as ChannelSnapshot, v as ChannelStatus, w as ChannelToTransactionsConnection, x as ClaimUmaInvitationInput, y as ClaimUmaInvitationOutput, z as ClaimUmaInvitationWithIncentivesInput, D as ClaimUmaInvitationWithIncentivesOutput, E as ComplianceProvider, F as Connection, G as CreateApiTokenInput, H as CreateApiTokenOutput, I as CreateInvitationWithIncentivesInput, J as CreateInvitationWithIncentivesOutput, K as CreateInvoiceInput, M as CreateInvoiceOutput, N as CreateLnurlInvoiceInput, O as CreateNodeWalletAddressInput, P as CreateNodeWalletAddressOutput, Q as CreateTestModeInvoiceInput, R as CreateTestModeInvoiceOutput, S as CreateTestModePaymentInput, T as CreateTestModePaymentoutput, U as CreateUmaInvitationInput, V as CreateUmaInvitationOutput, X as CreateUmaInvoiceInput, Y as CurrencyAmount, Z as CurrencyUnit, _ as DailyLiquidityForecast, $ as DeclineToSignMessagesInput, a0 as DeclineToSignMessagesOutput, a1 as DeleteApiTokenInput, a2 as DeleteApiTokenOutput, a3 as Deposit, a5 as Entity, a6 as FailHtlcsInput, a7 as FailHtlcsOutput, a8 as FeeEstimate, a9 as FundNodeInput, aa as FundNodeOutput, ab as GraphNode, ac as Hop, ae as HtlcAttemptFailureCode, af as IdAndSignature, ag as IncentivesIneligibilityReason, ah as IncentivesStatus, ai as IncomingPayment, aj as IncomingPaymentAttempt, al as IncomingPaymentAttemptStatus, am as IncomingPaymentToAttemptsConnection, an as IncomingPaymentsForInvoiceQueryInput, ao as IncomingPaymentsForInvoiceQueryOutput, ap as Invoice, ar as InvoiceData, as as InvoiceForPaymentHashInput, at as InvoiceForPaymentHashOutput, au as InvoiceType, av as LightningFeeEstimateForInvoiceInput, aw as LightningFeeEstimateForNodeInput, ax as LightningFeeEstimateOutput, ay as LightningPaymentDirection, az as LightningTransaction, aB as LightsparkNode, aD as LightsparkNodeOwner, aF as LightsparkNodeStatus, aG as LightsparkNodeToChannelsConnection, aH as LightsparkNodeToDailyLiquidityForecastsConnection, aI as LightsparkNodeWithOSK, aJ as LightsparkNodeWithRemoteSigning, aK as MultiSigAddressValidationParameters, aL as Node, aN as NodeAddress, aO as NodeAddressType, aP as NodeToAddressesConnection, aQ as OnChainFeeTarget, aR as OnChainTransaction, aT as OutgoingPayment, aU as OutgoingPaymentAttempt, aV as OutgoingPaymentAttemptStatus, aW as OutgoingPaymentAttemptToHopsConnection, aX as OutgoingPaymentForIdempotencyKeyInput, aY as OutgoingPaymentForIdempotencyKeyOutput, aZ as OutgoingPaymentToAttemptsConnection, a_ as OutgoingPaymentsForInvoiceQueryInput, a$ as OutgoingPaymentsForInvoiceQueryOutput, b0 as OutgoingPaymentsForPaymentHashQueryInput, b1 as OutgoingPaymentsForPaymentHashQueryOutput, b2 as PageInfo, b3 as PayInvoiceInput, b4 as PayInvoiceOutput, b5 as PayUmaInvoiceInput, b6 as PaymentDirection, b7 as PaymentFailureReason, b8 as PaymentRequest, ba as PaymentRequestData, bb as PaymentRequestStatus, bc as Permission, bd as PostTransactionData, be as RegionCode, bf as RegisterPaymentInput, bg as RegisterPaymentOutput, bh as ReleaseChannelPerCommitmentSecretInput, bi as ReleaseChannelPerCommitmentSecretOutput, bj as ReleasePaymentPreimageInput, bk as ReleasePaymentPreimageOutput, bl as RemoteSigningSubEventType, bm as RequestInitiator, bn as RequestWithdrawalInput, bo as RequestWithdrawalOutput, bp as RichText, bq as RiskRating, br as RoutingTransaction, bt as RoutingTransactionFailureReason, bu as ScreenNodeInput, bv as ScreenNodeOutput, bw as Secret, bx as SendPaymentInput, by as SendPaymentOutput, bz as SetInvoicePaymentHashInput, bA as SetInvoicePaymentHashOutput, bB as SignInvoiceInput, bC as SignInvoiceOutput, bD as SignMessagesInput, bE as SignMessagesOutput, bF as Signable, bH as SignablePayload, bJ as SignablePayloadStatus, bK as SingleNodeDashboard, bL as Transaction, bN as TransactionFailures, bO as TransactionStatus, bP as TransactionType, bQ as TransactionUpdate, bR as UmaInvitation, bT as UpdateChannelPerCommitmentPointInput, bU as UpdateChannelPerCommitmentPointOutput, bV as UpdateNodeSharedSecretInput, bW as UpdateNodeSharedSecretOutput, bX as Wallet, bY as WalletStatus, bZ as WalletToPaymentRequestsConnection, b_ as WalletToTransactionsConnection, b$ as WalletToWithdrawalRequestsConnection, c0 as Withdrawal, c2 as WithdrawalFeeEstimateInput, c3 as WithdrawalFeeEstimateOutput, c4 as WithdrawalMode, c5 as WithdrawalRequest, c6 as WithdrawalRequestStatus, c7 as WithdrawalRequestToChannelClosingTransactionsConnection, c8 as WithdrawalRequestToChannelOpeningTransactionsConnection, c9 as WithdrawalRequestToWithdrawalsConnection, i as getApiTokenQuery, k as getAuditLogActorQuery, p as getChannelClosingTransactionQuery, s as getChannelOpeningTransactionQuery, u as getChannelSnapshotQuery, a4 as getDepositQuery, ad as getHopQuery, ak as getIncomingPaymentAttemptQuery, aq as getInvoiceQuery, aA as getLightningTransactionQuery, aE as getLightsparkNodeOwnerQuery, aC as getLightsparkNodeQuery, aM as getNodeQuery, aS as getOnChainTransactionQuery, b9 as getPaymentRequestQuery, bs as getRoutingTransactionQuery, bI as getSignablePayloadQuery, bG as getSignableQuery, bM as getTransactionQuery, bS as getUmaInvitationQuery, c1 as getWithdrawalQuery } from './index-9a69ef6a.js';
|
|
4
4
|
import { B as BitcoinNetwork } from './BitcoinNetwork-4f6ea015.js';
|
|
5
5
|
import 'zen-observable';
|
|
6
6
|
|
package/dist/index.js
CHANGED
|
@@ -93,7 +93,7 @@ import {
|
|
|
93
93
|
getTransactionQuery,
|
|
94
94
|
getUmaInvitationQuery,
|
|
95
95
|
getWithdrawalQuery
|
|
96
|
-
} from "./chunk-
|
|
96
|
+
} from "./chunk-J7GJGYME.js";
|
|
97
97
|
import {
|
|
98
98
|
BitcoinNetwork_default
|
|
99
99
|
} from "./chunk-K6SAUSAX.js";
|
|
@@ -150,7 +150,7 @@ import {
|
|
|
150
150
|
// package.json
|
|
151
151
|
var package_default = {
|
|
152
152
|
name: "@lightsparkdev/lightspark-sdk",
|
|
153
|
-
version: "1.
|
|
153
|
+
version: "1.8.0",
|
|
154
154
|
description: "Lightspark JS SDK",
|
|
155
155
|
author: "Lightspark Inc.",
|
|
156
156
|
keywords: [
|
|
@@ -235,7 +235,7 @@ var package_default = {
|
|
|
235
235
|
},
|
|
236
236
|
license: "Apache-2.0",
|
|
237
237
|
dependencies: {
|
|
238
|
-
"@lightsparkdev/core": "1.
|
|
238
|
+
"@lightsparkdev/core": "1.2.0",
|
|
239
239
|
"@lightsparkdev/crypto-wasm": "0.1.4",
|
|
240
240
|
"crypto-browserify": "^3.12.0",
|
|
241
241
|
dayjs: "^1.11.7",
|
|
@@ -936,7 +936,7 @@ var PayUmaInvoice = `
|
|
|
936
936
|
$timeout_secs: Int!
|
|
937
937
|
$maximum_fees_msats: Long!
|
|
938
938
|
$amount_msats: Long
|
|
939
|
-
$sender_hash: String
|
|
939
|
+
$sender_hash: String
|
|
940
940
|
) {
|
|
941
941
|
pay_uma_invoice(
|
|
942
942
|
input: {
|
|
@@ -1267,7 +1267,7 @@ var LightsparkClient = class {
|
|
|
1267
1267
|
* @param authProvider The auth provider to use for authentication. Defaults to a stub auth provider.
|
|
1268
1268
|
* For server-side
|
|
1269
1269
|
* use, you should use the `AccountTokenAuthProvider`.
|
|
1270
|
-
* @param serverUrl The base URL
|
|
1270
|
+
* @param serverUrl The base URL for the Lightspark environment you want to connect to. Your API credentials determine whether you're in test mode or live mode. Typically, you won't need to set this parameter unless you want to connect to a different Lightspark environment than the default production environment.
|
|
1271
1271
|
* @param cryptoImpl The crypto implementation to use. Defaults to web and node compatible crypto.
|
|
1272
1272
|
* For React Native, you should use the `ReactNativeCrypto`
|
|
1273
1273
|
* implementation from `@lightsparkdev/react-native`.
|