@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/objects/index.cjs
CHANGED
|
@@ -176,7 +176,7 @@ query GetApiToken($id: ID!) {
|
|
|
176
176
|
${FRAGMENT}
|
|
177
177
|
`,
|
|
178
178
|
variables: { id },
|
|
179
|
-
constructObject: (data) => ApiTokenFromJson(data.entity)
|
|
179
|
+
constructObject: (data) => data && typeof data === "object" && "entity" in data ? ApiTokenFromJson(data.entity) : null
|
|
180
180
|
};
|
|
181
181
|
};
|
|
182
182
|
|
|
@@ -392,7 +392,7 @@ query GetChannel($id: ID!) {
|
|
|
392
392
|
${FRAGMENT2}
|
|
393
393
|
`,
|
|
394
394
|
variables: { id },
|
|
395
|
-
constructObject: (data) => ChannelFromJson(data.entity)
|
|
395
|
+
constructObject: (data) => data && typeof data === "object" && "entity" in data ? ChannelFromJson(data.entity) : null
|
|
396
396
|
};
|
|
397
397
|
}
|
|
398
398
|
toJson() {
|
|
@@ -949,7 +949,7 @@ query GetLightsparkNodeWithOSK($id: ID!) {
|
|
|
949
949
|
${FRAGMENT3}
|
|
950
950
|
`,
|
|
951
951
|
variables: { id },
|
|
952
|
-
constructObject: (data) => LightsparkNodeWithOSKFromJson(data.entity)
|
|
952
|
+
constructObject: (data) => data && typeof data === "object" && "entity" in data ? LightsparkNodeWithOSKFromJson(data.entity) : null
|
|
953
953
|
};
|
|
954
954
|
}
|
|
955
955
|
toJson() {
|
|
@@ -1378,7 +1378,7 @@ query GetLightsparkNodeWithRemoteSigning($id: ID!) {
|
|
|
1378
1378
|
${FRAGMENT4}
|
|
1379
1379
|
`,
|
|
1380
1380
|
variables: { id },
|
|
1381
|
-
constructObject: (data) => LightsparkNodeWithRemoteSigningFromJson(data.entity)
|
|
1381
|
+
constructObject: (data) => data && typeof data === "object" && "entity" in data ? LightsparkNodeWithRemoteSigningFromJson(data.entity) : null
|
|
1382
1382
|
};
|
|
1383
1383
|
}
|
|
1384
1384
|
toJson() {
|
|
@@ -1921,7 +1921,7 @@ query GetLightsparkNode($id: ID!) {
|
|
|
1921
1921
|
${FRAGMENT5}
|
|
1922
1922
|
`,
|
|
1923
1923
|
variables: { id },
|
|
1924
|
-
constructObject: (data) => LightsparkNodeFromJson(data.entity)
|
|
1924
|
+
constructObject: (data) => data && typeof data === "object" && "entity" in data ? LightsparkNodeFromJson(data.entity) : null
|
|
1925
1925
|
};
|
|
1926
1926
|
};
|
|
1927
1927
|
|
|
@@ -1998,7 +1998,7 @@ query GetGraphNode($id: ID!) {
|
|
|
1998
1998
|
${FRAGMENT6}
|
|
1999
1999
|
`,
|
|
2000
2000
|
variables: { id },
|
|
2001
|
-
constructObject: (data) => GraphNodeFromJson(data.entity)
|
|
2001
|
+
constructObject: (data) => data && typeof data === "object" && "entity" in data ? GraphNodeFromJson(data.entity) : null
|
|
2002
2002
|
};
|
|
2003
2003
|
}
|
|
2004
2004
|
toJson() {
|
|
@@ -2500,7 +2500,7 @@ query GetNode($id: ID!) {
|
|
|
2500
2500
|
${FRAGMENT7}
|
|
2501
2501
|
`,
|
|
2502
2502
|
variables: { id },
|
|
2503
|
-
constructObject: (data) => NodeFromJson(data.entity)
|
|
2503
|
+
constructObject: (data) => data && typeof data === "object" && "entity" in data ? NodeFromJson(data.entity) : null
|
|
2504
2504
|
};
|
|
2505
2505
|
};
|
|
2506
2506
|
|
|
@@ -2538,7 +2538,9 @@ var PaymentRequestFromJson = (obj) => {
|
|
|
2538
2538
|
data: InvoiceDataFromJson(obj["invoice_data"]),
|
|
2539
2539
|
status: PaymentRequestStatus_default[obj["invoice_status"]] ?? PaymentRequestStatus_default.FUTURE_VALUE,
|
|
2540
2540
|
typename: "Invoice",
|
|
2541
|
-
amountPaid: !!obj["invoice_amount_paid"] ? CurrencyAmountFromJson(obj["invoice_amount_paid"]) : void 0
|
|
2541
|
+
amountPaid: !!obj["invoice_amount_paid"] ? CurrencyAmountFromJson(obj["invoice_amount_paid"]) : void 0,
|
|
2542
|
+
isUma: obj["invoice_is_uma"],
|
|
2543
|
+
isLnurl: obj["invoice_is_lnurl"]
|
|
2542
2544
|
};
|
|
2543
2545
|
}
|
|
2544
2546
|
throw new import_core3.LightsparkException(
|
|
@@ -2854,6 +2856,8 @@ fragment PaymentRequestFragment on PaymentRequest {
|
|
|
2854
2856
|
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
2855
2857
|
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
2856
2858
|
}
|
|
2859
|
+
invoice_is_uma: is_uma
|
|
2860
|
+
invoice_is_lnurl: is_lnurl
|
|
2857
2861
|
}
|
|
2858
2862
|
}`;
|
|
2859
2863
|
var getPaymentRequestQuery = (id) => {
|
|
@@ -2870,7 +2874,7 @@ query GetPaymentRequest($id: ID!) {
|
|
|
2870
2874
|
${FRAGMENT8}
|
|
2871
2875
|
`,
|
|
2872
2876
|
variables: { id },
|
|
2873
|
-
constructObject: (data) => PaymentRequestFromJson(data.entity)
|
|
2877
|
+
constructObject: (data) => data && typeof data === "object" && "entity" in data ? PaymentRequestFromJson(data.entity) : null
|
|
2874
2878
|
};
|
|
2875
2879
|
};
|
|
2876
2880
|
|
|
@@ -2949,7 +2953,7 @@ query GetIncomingPaymentAttempt($id: ID!) {
|
|
|
2949
2953
|
${FRAGMENT9}
|
|
2950
2954
|
`,
|
|
2951
2955
|
variables: { id },
|
|
2952
|
-
constructObject: (data) => IncomingPaymentAttemptFromJson(data.entity)
|
|
2956
|
+
constructObject: (data) => data && typeof data === "object" && "entity" in data ? IncomingPaymentAttemptFromJson(data.entity) : null
|
|
2953
2957
|
};
|
|
2954
2958
|
};
|
|
2955
2959
|
|
|
@@ -3078,7 +3082,7 @@ query GetIncomingPayment($id: ID!) {
|
|
|
3078
3082
|
${FRAGMENT10}
|
|
3079
3083
|
`,
|
|
3080
3084
|
variables: { id },
|
|
3081
|
-
constructObject: (data) => IncomingPaymentFromJson(data.entity)
|
|
3085
|
+
constructObject: (data) => data && typeof data === "object" && "entity" in data ? IncomingPaymentFromJson(data.entity) : null
|
|
3082
3086
|
};
|
|
3083
3087
|
}
|
|
3084
3088
|
toJson() {
|
|
@@ -3261,7 +3265,7 @@ query GetHop($id: ID!) {
|
|
|
3261
3265
|
${FRAGMENT11}
|
|
3262
3266
|
`,
|
|
3263
3267
|
variables: { id },
|
|
3264
|
-
constructObject: (data) => HopFromJson(data.entity)
|
|
3268
|
+
constructObject: (data) => data && typeof data === "object" && "entity" in data ? HopFromJson(data.entity) : null
|
|
3265
3269
|
};
|
|
3266
3270
|
};
|
|
3267
3271
|
|
|
@@ -3367,7 +3371,7 @@ query GetOutgoingPaymentAttempt($id: ID!) {
|
|
|
3367
3371
|
${FRAGMENT12}
|
|
3368
3372
|
`,
|
|
3369
3373
|
variables: { id },
|
|
3370
|
-
constructObject: (data) => OutgoingPaymentAttemptFromJson(data.entity)
|
|
3374
|
+
constructObject: (data) => data && typeof data === "object" && "entity" in data ? OutgoingPaymentAttemptFromJson(data.entity) : null
|
|
3371
3375
|
};
|
|
3372
3376
|
}
|
|
3373
3377
|
toJson() {
|
|
@@ -3627,7 +3631,7 @@ query GetOutgoingPayment($id: ID!) {
|
|
|
3627
3631
|
${FRAGMENT13}
|
|
3628
3632
|
`,
|
|
3629
3633
|
variables: { id },
|
|
3630
|
-
constructObject: (data) => OutgoingPaymentFromJson(data.entity)
|
|
3634
|
+
constructObject: (data) => data && typeof data === "object" && "entity" in data ? OutgoingPaymentFromJson(data.entity) : null
|
|
3631
3635
|
};
|
|
3632
3636
|
}
|
|
3633
3637
|
toJson() {
|
|
@@ -4745,7 +4749,7 @@ query GetTransaction($id: ID!) {
|
|
|
4745
4749
|
${FRAGMENT14}
|
|
4746
4750
|
`,
|
|
4747
4751
|
variables: { id },
|
|
4748
|
-
constructObject: (data) => TransactionFromJson(data.entity)
|
|
4752
|
+
constructObject: (data) => data && typeof data === "object" && "entity" in data ? TransactionFromJson(data.entity) : null
|
|
4749
4753
|
};
|
|
4750
4754
|
};
|
|
4751
4755
|
|
|
@@ -4913,7 +4917,7 @@ query GetChannelClosingTransaction($id: ID!) {
|
|
|
4913
4917
|
${FRAGMENT15}
|
|
4914
4918
|
`,
|
|
4915
4919
|
variables: { id },
|
|
4916
|
-
constructObject: (data) => ChannelClosingTransactionFromJson(data.entity)
|
|
4920
|
+
constructObject: (data) => data && typeof data === "object" && "entity" in data ? ChannelClosingTransactionFromJson(data.entity) : null
|
|
4917
4921
|
};
|
|
4918
4922
|
};
|
|
4919
4923
|
|
|
@@ -4995,7 +4999,7 @@ query GetChannelOpeningTransaction($id: ID!) {
|
|
|
4995
4999
|
${FRAGMENT16}
|
|
4996
5000
|
`,
|
|
4997
5001
|
variables: { id },
|
|
4998
|
-
constructObject: (data) => ChannelOpeningTransactionFromJson(data.entity)
|
|
5002
|
+
constructObject: (data) => data && typeof data === "object" && "entity" in data ? ChannelOpeningTransactionFromJson(data.entity) : null
|
|
4999
5003
|
};
|
|
5000
5004
|
};
|
|
5001
5005
|
|
|
@@ -5077,7 +5081,7 @@ query GetWithdrawal($id: ID!) {
|
|
|
5077
5081
|
${FRAGMENT17}
|
|
5078
5082
|
`,
|
|
5079
5083
|
variables: { id },
|
|
5080
|
-
constructObject: (data) => WithdrawalFromJson(data.entity)
|
|
5084
|
+
constructObject: (data) => data && typeof data === "object" && "entity" in data ? WithdrawalFromJson(data.entity) : null
|
|
5081
5085
|
};
|
|
5082
5086
|
};
|
|
5083
5087
|
|
|
@@ -5303,7 +5307,7 @@ query GetWithdrawalRequest($id: ID!) {
|
|
|
5303
5307
|
${FRAGMENT18}
|
|
5304
5308
|
`,
|
|
5305
5309
|
variables: { id },
|
|
5306
|
-
constructObject: (data) => WithdrawalRequestFromJson(data.entity)
|
|
5310
|
+
constructObject: (data) => data && typeof data === "object" && "entity" in data ? WithdrawalRequestFromJson(data.entity) : null
|
|
5307
5311
|
};
|
|
5308
5312
|
}
|
|
5309
5313
|
toJson() {
|
|
@@ -6344,6 +6348,8 @@ query FetchWalletToPaymentRequestsConnection($entity_id: ID!, $first: Int, $afte
|
|
|
6344
6348
|
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
6345
6349
|
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
6346
6350
|
}
|
|
6351
|
+
invoice_is_uma: is_uma
|
|
6352
|
+
invoice_is_lnurl: is_lnurl
|
|
6347
6353
|
}
|
|
6348
6354
|
}
|
|
6349
6355
|
}
|
|
@@ -6526,7 +6532,7 @@ query GetWallet($id: ID!) {
|
|
|
6526
6532
|
${FRAGMENT19}
|
|
6527
6533
|
`,
|
|
6528
6534
|
variables: { id },
|
|
6529
|
-
constructObject: (data) => WalletFromJson(data.entity)
|
|
6535
|
+
constructObject: (data) => data && typeof data === "object" && "entity" in data ? WalletFromJson(data.entity) : null
|
|
6530
6536
|
};
|
|
6531
6537
|
}
|
|
6532
6538
|
toJson() {
|
|
@@ -8190,6 +8196,8 @@ query FetchAccountToPaymentRequestsConnection($first: Int, $after: String, $afte
|
|
|
8190
8196
|
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
8191
8197
|
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
8192
8198
|
}
|
|
8199
|
+
invoice_is_uma: is_uma
|
|
8200
|
+
invoice_is_lnurl: is_lnurl
|
|
8193
8201
|
}
|
|
8194
8202
|
}
|
|
8195
8203
|
}
|
|
@@ -8384,7 +8392,7 @@ query GetAccount {
|
|
|
8384
8392
|
${FRAGMENT20}
|
|
8385
8393
|
`,
|
|
8386
8394
|
variables: {},
|
|
8387
|
-
constructObject: (data) => AccountFromJson(data.current_account)
|
|
8395
|
+
constructObject: (data) => data && typeof data === "object" && "current_account" in data ? AccountFromJson(data.current_account) : null
|
|
8388
8396
|
};
|
|
8389
8397
|
}
|
|
8390
8398
|
toJson() {
|
|
@@ -8464,7 +8472,7 @@ query GetAuditLogActor($id: ID!) {
|
|
|
8464
8472
|
${FRAGMENT21}
|
|
8465
8473
|
`,
|
|
8466
8474
|
variables: { id },
|
|
8467
|
-
constructObject: (data) => AuditLogActorFromJson(data.entity)
|
|
8475
|
+
constructObject: (data) => data && typeof data === "object" && "entity" in data ? AuditLogActorFromJson(data.entity) : null
|
|
8468
8476
|
};
|
|
8469
8477
|
};
|
|
8470
8478
|
|
|
@@ -8551,7 +8559,7 @@ query GetChannelSnapshot($id: ID!) {
|
|
|
8551
8559
|
${FRAGMENT22}
|
|
8552
8560
|
`,
|
|
8553
8561
|
variables: { id },
|
|
8554
|
-
constructObject: (data) => ChannelSnapshotFromJson(data.entity)
|
|
8562
|
+
constructObject: (data) => data && typeof data === "object" && "entity" in data ? ChannelSnapshotFromJson(data.entity) : null
|
|
8555
8563
|
};
|
|
8556
8564
|
};
|
|
8557
8565
|
|
|
@@ -8807,6 +8815,7 @@ var RegionCode = /* @__PURE__ */ ((RegionCode2) => {
|
|
|
8807
8815
|
RegionCode2["YE"] = "YE";
|
|
8808
8816
|
RegionCode2["ZM"] = "ZM";
|
|
8809
8817
|
RegionCode2["ZW"] = "ZW";
|
|
8818
|
+
RegionCode2["NN"] = "NN";
|
|
8810
8819
|
return RegionCode2;
|
|
8811
8820
|
})(RegionCode || {});
|
|
8812
8821
|
var RegionCode_default = RegionCode;
|
|
@@ -8886,7 +8895,7 @@ query GetSignablePayload($id: ID!) {
|
|
|
8886
8895
|
${FRAGMENT23}
|
|
8887
8896
|
`,
|
|
8888
8897
|
variables: { id },
|
|
8889
|
-
constructObject: (data) => SignablePayloadFromJson(data.entity)
|
|
8898
|
+
constructObject: (data) => data && typeof data === "object" && "entity" in data ? SignablePayloadFromJson(data.entity) : null
|
|
8890
8899
|
};
|
|
8891
8900
|
};
|
|
8892
8901
|
|
|
@@ -8956,7 +8965,7 @@ query GetDeposit($id: ID!) {
|
|
|
8956
8965
|
${FRAGMENT24}
|
|
8957
8966
|
`,
|
|
8958
8967
|
variables: { id },
|
|
8959
|
-
constructObject: (data) => DepositFromJson(data.entity)
|
|
8968
|
+
constructObject: (data) => data && typeof data === "object" && "entity" in data ? DepositFromJson(data.entity) : null
|
|
8960
8969
|
};
|
|
8961
8970
|
};
|
|
8962
8971
|
|
|
@@ -8992,7 +9001,9 @@ var InvoiceFromJson = (obj) => {
|
|
|
8992
9001
|
data: InvoiceDataFromJson(obj["invoice_data"]),
|
|
8993
9002
|
status: PaymentRequestStatus_default[obj["invoice_status"]] ?? PaymentRequestStatus_default.FUTURE_VALUE,
|
|
8994
9003
|
typename: "Invoice",
|
|
8995
|
-
amountPaid: !!obj["invoice_amount_paid"] ? CurrencyAmountFromJson(obj["invoice_amount_paid"]) : void 0
|
|
9004
|
+
amountPaid: !!obj["invoice_amount_paid"] ? CurrencyAmountFromJson(obj["invoice_amount_paid"]) : void 0,
|
|
9005
|
+
isUma: obj["invoice_is_uma"],
|
|
9006
|
+
isLnurl: obj["invoice_is_lnurl"]
|
|
8996
9007
|
};
|
|
8997
9008
|
};
|
|
8998
9009
|
var FRAGMENT25 = `
|
|
@@ -9301,6 +9312,8 @@ fragment InvoiceFragment on Invoice {
|
|
|
9301
9312
|
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
9302
9313
|
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
9303
9314
|
}
|
|
9315
|
+
invoice_is_uma: is_uma
|
|
9316
|
+
invoice_is_lnurl: is_lnurl
|
|
9304
9317
|
}`;
|
|
9305
9318
|
var getInvoiceQuery = (id) => {
|
|
9306
9319
|
return {
|
|
@@ -9316,7 +9329,7 @@ query GetInvoice($id: ID!) {
|
|
|
9316
9329
|
${FRAGMENT25}
|
|
9317
9330
|
`,
|
|
9318
9331
|
variables: { id },
|
|
9319
|
-
constructObject: (data) => InvoiceFromJson(data.entity)
|
|
9332
|
+
constructObject: (data) => data && typeof data === "object" && "entity" in data ? InvoiceFromJson(data.entity) : null
|
|
9320
9333
|
};
|
|
9321
9334
|
};
|
|
9322
9335
|
|
|
@@ -9828,7 +9841,7 @@ query GetLightningTransaction($id: ID!) {
|
|
|
9828
9841
|
${FRAGMENT26}
|
|
9829
9842
|
`,
|
|
9830
9843
|
variables: { id },
|
|
9831
|
-
constructObject: (data) => LightningTransactionFromJson(data.entity)
|
|
9844
|
+
constructObject: (data) => data && typeof data === "object" && "entity" in data ? LightningTransactionFromJson(data.entity) : null
|
|
9832
9845
|
};
|
|
9833
9846
|
};
|
|
9834
9847
|
|
|
@@ -9926,7 +9939,7 @@ query GetLightsparkNodeOwner($id: ID!) {
|
|
|
9926
9939
|
${FRAGMENT27}
|
|
9927
9940
|
`,
|
|
9928
9941
|
variables: { id },
|
|
9929
|
-
constructObject: (data) => LightsparkNodeOwnerFromJson(data.entity)
|
|
9942
|
+
constructObject: (data) => data && typeof data === "object" && "entity" in data ? LightsparkNodeOwnerFromJson(data.entity) : null
|
|
9930
9943
|
};
|
|
9931
9944
|
};
|
|
9932
9945
|
|
|
@@ -10167,7 +10180,7 @@ query GetOnChainTransaction($id: ID!) {
|
|
|
10167
10180
|
${FRAGMENT28}
|
|
10168
10181
|
`,
|
|
10169
10182
|
variables: { id },
|
|
10170
|
-
constructObject: (data) => OnChainTransactionFromJson(data.entity)
|
|
10183
|
+
constructObject: (data) => data && typeof data === "object" && "entity" in data ? OnChainTransactionFromJson(data.entity) : null
|
|
10171
10184
|
};
|
|
10172
10185
|
};
|
|
10173
10186
|
|
|
@@ -10275,7 +10288,7 @@ query GetRoutingTransaction($id: ID!) {
|
|
|
10275
10288
|
${FRAGMENT29}
|
|
10276
10289
|
`,
|
|
10277
10290
|
variables: { id },
|
|
10278
|
-
constructObject: (data) => RoutingTransactionFromJson(data.entity)
|
|
10291
|
+
constructObject: (data) => data && typeof data === "object" && "entity" in data ? RoutingTransactionFromJson(data.entity) : null
|
|
10279
10292
|
};
|
|
10280
10293
|
};
|
|
10281
10294
|
|
|
@@ -10309,7 +10322,7 @@ query GetSignable($id: ID!) {
|
|
|
10309
10322
|
${FRAGMENT30}
|
|
10310
10323
|
`,
|
|
10311
10324
|
variables: { id },
|
|
10312
|
-
constructObject: (data) => SignableFromJson(data.entity)
|
|
10325
|
+
constructObject: (data) => data && typeof data === "object" && "entity" in data ? SignableFromJson(data.entity) : null
|
|
10313
10326
|
};
|
|
10314
10327
|
};
|
|
10315
10328
|
|
|
@@ -10372,7 +10385,7 @@ query GetUmaInvitation($id: ID!) {
|
|
|
10372
10385
|
${FRAGMENT31}
|
|
10373
10386
|
`,
|
|
10374
10387
|
variables: { id },
|
|
10375
|
-
constructObject: (data) => UmaInvitationFromJson(data.entity)
|
|
10388
|
+
constructObject: (data) => data && typeof data === "object" && "entity" in data ? UmaInvitationFromJson(data.entity) : null
|
|
10376
10389
|
};
|
|
10377
10390
|
};
|
|
10378
10391
|
|
package/dist/objects/index.d.cts
CHANGED
|
@@ -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, 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, W as WebhookEventType, 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-
|
|
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, 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, W as WebhookEventType, 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';
|
|
2
2
|
export { B as BitcoinNetwork } from '../BitcoinNetwork-4f6ea015.js';
|
|
3
3
|
import '@lightsparkdev/core';
|
|
4
4
|
import 'zen-observable';
|
package/dist/objects/index.d.ts
CHANGED
|
@@ -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, 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, W as WebhookEventType, 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-
|
|
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, 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, W as WebhookEventType, 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';
|
|
2
2
|
export { B as BitcoinNetwork } from '../BitcoinNetwork-4f6ea015.js';
|
|
3
3
|
import '@lightsparkdev/core';
|
|
4
4
|
import 'zen-observable';
|
package/dist/objects/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lightsparkdev/lightspark-sdk",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.8.0",
|
|
4
4
|
"description": "Lightspark JS SDK",
|
|
5
5
|
"author": "Lightspark Inc.",
|
|
6
6
|
"keywords": [
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
},
|
|
86
86
|
"license": "Apache-2.0",
|
|
87
87
|
"dependencies": {
|
|
88
|
-
"@lightsparkdev/core": "1.
|
|
88
|
+
"@lightsparkdev/core": "1.2.0",
|
|
89
89
|
"@lightsparkdev/crypto-wasm": "0.1.4",
|
|
90
90
|
"crypto-browserify": "^3.12.0",
|
|
91
91
|
"dayjs": "^1.11.7",
|
package/src/client.ts
CHANGED
|
@@ -112,7 +112,7 @@ const sdkVersion = packageJson.version;
|
|
|
112
112
|
* );
|
|
113
113
|
* const encodedInvoice = await lightsparkClient.createInvoice(
|
|
114
114
|
* RECEIVING_NODE_ID,
|
|
115
|
-
*
|
|
115
|
+
* 100000,
|
|
116
116
|
* "Whasssupppp",
|
|
117
117
|
* InvoiceType.AMP,
|
|
118
118
|
* );
|
|
@@ -139,7 +139,7 @@ class LightsparkClient {
|
|
|
139
139
|
* @param authProvider The auth provider to use for authentication. Defaults to a stub auth provider.
|
|
140
140
|
* For server-side
|
|
141
141
|
* use, you should use the `AccountTokenAuthProvider`.
|
|
142
|
-
* @param serverUrl The base URL
|
|
142
|
+
* @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.
|
|
143
143
|
* @param cryptoImpl The crypto implementation to use. Defaults to web and node compatible crypto.
|
|
144
144
|
* For React Native, you should use the `ReactNativeCrypto`
|
|
145
145
|
* implementation from `@lightsparkdev/react-native`.
|
package/src/objects/Account.ts
CHANGED
|
@@ -1676,6 +1676,8 @@ query FetchAccountToPaymentRequestsConnection($first: Int, $after: String, $afte
|
|
|
1676
1676
|
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
1677
1677
|
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
1678
1678
|
}
|
|
1679
|
+
invoice_is_uma: is_uma
|
|
1680
|
+
invoice_is_lnurl: is_lnurl
|
|
1679
1681
|
}
|
|
1680
1682
|
}
|
|
1681
1683
|
}
|
|
@@ -1888,7 +1890,10 @@ query GetAccount {
|
|
|
1888
1890
|
${FRAGMENT}
|
|
1889
1891
|
`,
|
|
1890
1892
|
variables: {},
|
|
1891
|
-
constructObject: (data:
|
|
1893
|
+
constructObject: (data: unknown) =>
|
|
1894
|
+
data && typeof data === "object" && "current_account" in data
|
|
1895
|
+
? AccountFromJson(data.current_account)
|
|
1896
|
+
: null,
|
|
1892
1897
|
};
|
|
1893
1898
|
}
|
|
1894
1899
|
|
package/src/objects/ApiToken.ts
CHANGED
|
@@ -94,7 +94,10 @@ query GetApiToken($id: ID!) {
|
|
|
94
94
|
${FRAGMENT}
|
|
95
95
|
`,
|
|
96
96
|
variables: { id },
|
|
97
|
-
constructObject: (data:
|
|
97
|
+
constructObject: (data: unknown) =>
|
|
98
|
+
data && typeof data === "object" && "entity" in data
|
|
99
|
+
? ApiTokenFromJson(data.entity)
|
|
100
|
+
: null,
|
|
98
101
|
};
|
|
99
102
|
};
|
|
100
103
|
|
|
@@ -89,7 +89,10 @@ query GetAuditLogActor($id: ID!) {
|
|
|
89
89
|
${FRAGMENT}
|
|
90
90
|
`,
|
|
91
91
|
variables: { id },
|
|
92
|
-
constructObject: (data:
|
|
92
|
+
constructObject: (data: unknown) =>
|
|
93
|
+
data && typeof data === "object" && "entity" in data
|
|
94
|
+
? AuditLogActorFromJson(data.entity)
|
|
95
|
+
: null,
|
|
93
96
|
};
|
|
94
97
|
};
|
|
95
98
|
|
package/src/objects/Channel.ts
CHANGED
|
@@ -181,7 +181,10 @@ query GetChannel($id: ID!) {
|
|
|
181
181
|
${FRAGMENT}
|
|
182
182
|
`,
|
|
183
183
|
variables: { id },
|
|
184
|
-
constructObject: (data:
|
|
184
|
+
constructObject: (data: unknown) =>
|
|
185
|
+
data && typeof data === "object" && "entity" in data
|
|
186
|
+
? ChannelFromJson(data.entity)
|
|
187
|
+
: null,
|
|
185
188
|
};
|
|
186
189
|
}
|
|
187
190
|
|
|
@@ -163,8 +163,10 @@ query GetChannelClosingTransaction($id: ID!) {
|
|
|
163
163
|
${FRAGMENT}
|
|
164
164
|
`,
|
|
165
165
|
variables: { id },
|
|
166
|
-
constructObject: (data:
|
|
167
|
-
|
|
166
|
+
constructObject: (data: unknown) =>
|
|
167
|
+
data && typeof data === "object" && "entity" in data
|
|
168
|
+
? ChannelClosingTransactionFromJson(data.entity)
|
|
169
|
+
: null,
|
|
168
170
|
};
|
|
169
171
|
};
|
|
170
172
|
|
|
@@ -163,8 +163,10 @@ query GetChannelOpeningTransaction($id: ID!) {
|
|
|
163
163
|
${FRAGMENT}
|
|
164
164
|
`,
|
|
165
165
|
variables: { id },
|
|
166
|
-
constructObject: (data:
|
|
167
|
-
|
|
166
|
+
constructObject: (data: unknown) =>
|
|
167
|
+
data && typeof data === "object" && "entity" in data
|
|
168
|
+
? ChannelOpeningTransactionFromJson(data.entity)
|
|
169
|
+
: null,
|
|
168
170
|
};
|
|
169
171
|
};
|
|
170
172
|
|
|
@@ -161,7 +161,10 @@ query GetChannelSnapshot($id: ID!) {
|
|
|
161
161
|
${FRAGMENT}
|
|
162
162
|
`,
|
|
163
163
|
variables: { id },
|
|
164
|
-
constructObject: (data:
|
|
164
|
+
constructObject: (data: unknown) =>
|
|
165
|
+
data && typeof data === "object" && "entity" in data
|
|
166
|
+
? ChannelSnapshotFromJson(data.entity)
|
|
167
|
+
: null,
|
|
165
168
|
};
|
|
166
169
|
};
|
|
167
170
|
|
|
@@ -18,7 +18,7 @@ export enum CurrencyUnit {
|
|
|
18
18
|
*/
|
|
19
19
|
SATOSHI = "SATOSHI",
|
|
20
20
|
/**
|
|
21
|
-
* 0.001 Satoshi, or 10e-11 Bitcoin. We recommend using the Satoshi unit instead when possible.
|
|
21
|
+
* 0.001 Satoshi, or 10e-11 Bitcoin. We recommend using the Satoshi unit instead when possible. *
|
|
22
22
|
*/
|
|
23
23
|
MILLISATOSHI = "MILLISATOSHI",
|
|
24
24
|
/** United States Dollar. **/
|
package/src/objects/Deposit.ts
CHANGED
|
@@ -155,7 +155,10 @@ query GetDeposit($id: ID!) {
|
|
|
155
155
|
${FRAGMENT}
|
|
156
156
|
`,
|
|
157
157
|
variables: { id },
|
|
158
|
-
constructObject: (data:
|
|
158
|
+
constructObject: (data: unknown) =>
|
|
159
|
+
data && typeof data === "object" && "entity" in data
|
|
160
|
+
? DepositFromJson(data.entity)
|
|
161
|
+
: null,
|
|
159
162
|
};
|
|
160
163
|
};
|
|
161
164
|
|
package/src/objects/Entity.ts
CHANGED
|
@@ -684,6 +684,8 @@ fragment EntityFragment on Entity {
|
|
|
684
684
|
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
685
685
|
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
686
686
|
}
|
|
687
|
+
invoice_is_uma: is_uma
|
|
688
|
+
invoice_is_lnurl: is_lnurl
|
|
687
689
|
}
|
|
688
690
|
... on LightsparkNodeWithOSK {
|
|
689
691
|
__typename
|
package/src/objects/GraphNode.ts
CHANGED
|
@@ -107,7 +107,10 @@ query GetGraphNode($id: ID!) {
|
|
|
107
107
|
${FRAGMENT}
|
|
108
108
|
`,
|
|
109
109
|
variables: { id },
|
|
110
|
-
constructObject: (data:
|
|
110
|
+
constructObject: (data: unknown) =>
|
|
111
|
+
data && typeof data === "object" && "entity" in data
|
|
112
|
+
? GraphNodeFromJson(data.entity)
|
|
113
|
+
: null,
|
|
111
114
|
};
|
|
112
115
|
}
|
|
113
116
|
|
package/src/objects/Hop.ts
CHANGED
|
@@ -124,7 +124,10 @@ query GetHop($id: ID!) {
|
|
|
124
124
|
${FRAGMENT}
|
|
125
125
|
`,
|
|
126
126
|
variables: { id },
|
|
127
|
-
constructObject: (data:
|
|
127
|
+
constructObject: (data: unknown) =>
|
|
128
|
+
data && typeof data === "object" && "entity" in data
|
|
129
|
+
? HopFromJson(data.entity)
|
|
130
|
+
: null,
|
|
128
131
|
};
|
|
129
132
|
};
|
|
130
133
|
|
|
@@ -139,7 +139,10 @@ query GetIncomingPayment($id: ID!) {
|
|
|
139
139
|
${FRAGMENT}
|
|
140
140
|
`,
|
|
141
141
|
variables: { id },
|
|
142
|
-
constructObject: (data:
|
|
142
|
+
constructObject: (data: unknown) =>
|
|
143
|
+
data && typeof data === "object" && "entity" in data
|
|
144
|
+
? IncomingPaymentFromJson(data.entity)
|
|
145
|
+
: null,
|
|
143
146
|
};
|
|
144
147
|
}
|
|
145
148
|
|
|
@@ -110,7 +110,10 @@ query GetIncomingPaymentAttempt($id: ID!) {
|
|
|
110
110
|
${FRAGMENT}
|
|
111
111
|
`,
|
|
112
112
|
variables: { id },
|
|
113
|
-
constructObject: (data:
|
|
113
|
+
constructObject: (data: unknown) =>
|
|
114
|
+
data && typeof data === "object" && "entity" in data
|
|
115
|
+
? IncomingPaymentAttemptFromJson(data.entity)
|
|
116
|
+
: null,
|
|
114
117
|
};
|
|
115
118
|
};
|
|
116
119
|
|