@lightsparkdev/lightspark-sdk 1.9.5 → 1.9.7
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 +12 -0
- package/dist/{chunk-VCNFGP4P.js → chunk-BPPGK6J6.js} +83 -46
- package/dist/{index-CCNALIhi.d.cts → index-B2mWcZea.d.cts} +120 -28
- package/dist/{index-gyjGw7N4.d.ts → index-BAeaSQSH.d.ts} +120 -28
- package/dist/index.cjs +296 -232
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +32 -3
- package/dist/objects/index.cjs +82 -43
- package/dist/objects/index.d.cts +1 -1
- package/dist/objects/index.d.ts +1 -1
- package/dist/objects/index.js +5 -1
- package/package.json +1 -1
- package/src/client.ts +21 -1
- package/src/graphql/LookupUmaAddress.ts +9 -0
- package/src/objects/CancelUmaInvitationInput.ts +22 -0
- package/src/objects/CancelUmaInvitationOutput.ts +30 -0
- package/src/objects/CreateInvitationWithIncentivesInput.ts +7 -0
- package/src/objects/CreateInvoiceInput.ts +10 -4
- package/src/objects/CreateLnurlInvoiceInput.ts +18 -0
- package/src/objects/CreateUmaInvitationInput.ts +5 -0
- package/src/objects/CreateUmaInvoiceInput.ts +18 -0
- package/src/objects/CurrencyUnit.ts +6 -0
- package/src/objects/Entity.ts +21 -0
- package/src/objects/LookupUmaAddressInput.ts +22 -0
- package/src/objects/Permission.ts +6 -0
- package/src/objects/UmaCurrency.ts +100 -0
- package/src/objects/UmaCurrencyAmount.ts +27 -37
- package/src/objects/UmaInvitation.ts +36 -32
- package/src/objects/UmaInvitationStatus.ts +19 -0
- package/src/objects/WalletStatus.ts +1 -1
- package/src/objects/WebhookEventType.ts +2 -0
- package/src/objects/index.ts +6 -0
- package/src/tests/integration/general-regtest.test.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @lightsparkdev/lightspark-sdk
|
|
2
2
|
|
|
3
|
+
## 1.9.7
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- f5247b0: - Regenerated Graphql Objects and added new code field onto UmaCurrency query.
|
|
8
|
+
|
|
9
|
+
## 1.9.6
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 56d34fb: - Regenerated Graphql Objects and added new lookup uma address endpoint that allows users to validate umas.
|
|
14
|
+
|
|
3
15
|
## 1.9.5
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -54,6 +54,9 @@ var Permission = /* @__PURE__ */ ((Permission2) => {
|
|
|
54
54
|
Permission2["REGTEST_VIEW"] = "REGTEST_VIEW";
|
|
55
55
|
Permission2["REGTEST_TRANSACT"] = "REGTEST_TRANSACT";
|
|
56
56
|
Permission2["REGTEST_MANAGE"] = "REGTEST_MANAGE";
|
|
57
|
+
Permission2["SIGNET_VIEW"] = "SIGNET_VIEW";
|
|
58
|
+
Permission2["SIGNET_TRANSACT"] = "SIGNET_TRANSACT";
|
|
59
|
+
Permission2["SIGNET_MANAGE"] = "SIGNET_MANAGE";
|
|
57
60
|
Permission2["USER_VIEW"] = "USER_VIEW";
|
|
58
61
|
Permission2["USER_MANAGE"] = "USER_MANAGE";
|
|
59
62
|
Permission2["ACCOUNT_VIEW"] = "ACCOUNT_VIEW";
|
|
@@ -140,6 +143,9 @@ var CurrencyUnit = /* @__PURE__ */ ((CurrencyUnit2) => {
|
|
|
140
143
|
CurrencyUnit2["USD"] = "USD";
|
|
141
144
|
CurrencyUnit2["MXN"] = "MXN";
|
|
142
145
|
CurrencyUnit2["PHP"] = "PHP";
|
|
146
|
+
CurrencyUnit2["EUR"] = "EUR";
|
|
147
|
+
CurrencyUnit2["GBP"] = "GBP";
|
|
148
|
+
CurrencyUnit2["INR"] = "INR";
|
|
143
149
|
CurrencyUnit2["NANOBITCOIN"] = "NANOBITCOIN";
|
|
144
150
|
CurrencyUnit2["MICROBITCOIN"] = "MICROBITCOIN";
|
|
145
151
|
CurrencyUnit2["MILLIBITCOIN"] = "MILLIBITCOIN";
|
|
@@ -10781,41 +10787,71 @@ fragment TransactionUpdateFragment on Transaction {
|
|
|
10781
10787
|
transaction_hash
|
|
10782
10788
|
}`;
|
|
10783
10789
|
|
|
10784
|
-
// src/objects/
|
|
10790
|
+
// src/objects/UmaCurrency.ts
|
|
10785
10791
|
import { isObject as isObject33 } from "@lightsparkdev/core";
|
|
10792
|
+
var UmaCurrencyFromJson = (obj) => {
|
|
10793
|
+
return {
|
|
10794
|
+
id: obj["uma_currency_id"],
|
|
10795
|
+
createdAt: obj["uma_currency_created_at"],
|
|
10796
|
+
updatedAt: obj["uma_currency_updated_at"],
|
|
10797
|
+
code: obj["uma_currency_code"],
|
|
10798
|
+
symbol: obj["uma_currency_symbol"],
|
|
10799
|
+
name: obj["uma_currency_name"],
|
|
10800
|
+
decimals: obj["uma_currency_decimals"],
|
|
10801
|
+
typename: "UmaCurrency"
|
|
10802
|
+
};
|
|
10803
|
+
};
|
|
10804
|
+
var FRAGMENT38 = `
|
|
10805
|
+
fragment UmaCurrencyFragment on UmaCurrency {
|
|
10806
|
+
__typename
|
|
10807
|
+
uma_currency_id: id
|
|
10808
|
+
uma_currency_created_at: created_at
|
|
10809
|
+
uma_currency_updated_at: updated_at
|
|
10810
|
+
uma_currency_code: code
|
|
10811
|
+
uma_currency_symbol: symbol
|
|
10812
|
+
uma_currency_name: name
|
|
10813
|
+
uma_currency_decimals: decimals
|
|
10814
|
+
}`;
|
|
10815
|
+
var getUmaCurrencyQuery = (id) => {
|
|
10816
|
+
return {
|
|
10817
|
+
queryPayload: `
|
|
10818
|
+
query GetUmaCurrency($id: ID!) {
|
|
10819
|
+
entity(id: $id) {
|
|
10820
|
+
... on UmaCurrency {
|
|
10821
|
+
...UmaCurrencyFragment
|
|
10822
|
+
}
|
|
10823
|
+
}
|
|
10824
|
+
}
|
|
10825
|
+
|
|
10826
|
+
${FRAGMENT38}
|
|
10827
|
+
`,
|
|
10828
|
+
variables: { id },
|
|
10829
|
+
constructObject: (data) => isObject33(data) && "entity" in data && isObject33(data.entity) ? UmaCurrencyFromJson(data.entity) : null
|
|
10830
|
+
};
|
|
10831
|
+
};
|
|
10786
10832
|
|
|
10787
10833
|
// src/objects/UmaCurrencyAmount.ts
|
|
10788
|
-
var
|
|
10789
|
-
|
|
10790
|
-
|
|
10791
|
-
|
|
10792
|
-
|
|
10793
|
-
this.currency = currency;
|
|
10794
|
-
}
|
|
10795
|
-
static fromJson(obj) {
|
|
10796
|
-
if (!obj || !obj.currency) {
|
|
10797
|
-
throw new Error("Invalid currency amount data");
|
|
10798
|
-
}
|
|
10799
|
-
return new _UmaCurrencyAmount(obj.value, {
|
|
10800
|
-
code: obj.currency.code,
|
|
10801
|
-
symbol: obj.currency.symbol,
|
|
10802
|
-
decimals: obj.currency.decimals,
|
|
10803
|
-
name: obj.currency.name
|
|
10804
|
-
});
|
|
10805
|
-
}
|
|
10806
|
-
toJson() {
|
|
10807
|
-
return {
|
|
10808
|
-
value: this.value,
|
|
10809
|
-
currency: {
|
|
10810
|
-
code: this.currency.code,
|
|
10811
|
-
symbol: this.currency.symbol,
|
|
10812
|
-
decimals: this.currency.decimals,
|
|
10813
|
-
name: this.currency.name
|
|
10814
|
-
}
|
|
10815
|
-
};
|
|
10816
|
-
}
|
|
10834
|
+
var UmaCurrencyAmountFromJson = (obj) => {
|
|
10835
|
+
return {
|
|
10836
|
+
value: obj["uma_currency_amount_value"],
|
|
10837
|
+
currency: UmaCurrencyFromJson(obj["uma_currency_amount_currency"])
|
|
10838
|
+
};
|
|
10817
10839
|
};
|
|
10818
10840
|
|
|
10841
|
+
// src/objects/UmaInvitation.ts
|
|
10842
|
+
import { isObject as isObject34 } from "@lightsparkdev/core";
|
|
10843
|
+
|
|
10844
|
+
// src/objects/UmaInvitationStatus.ts
|
|
10845
|
+
var UmaInvitationStatus = /* @__PURE__ */ ((UmaInvitationStatus2) => {
|
|
10846
|
+
UmaInvitationStatus2["FUTURE_VALUE"] = "FUTURE_VALUE";
|
|
10847
|
+
UmaInvitationStatus2["PENDING"] = "PENDING";
|
|
10848
|
+
UmaInvitationStatus2["CLAIMED"] = "CLAIMED";
|
|
10849
|
+
UmaInvitationStatus2["CANCELLED"] = "CANCELLED";
|
|
10850
|
+
UmaInvitationStatus2["EXPIRED"] = "EXPIRED";
|
|
10851
|
+
return UmaInvitationStatus2;
|
|
10852
|
+
})(UmaInvitationStatus || {});
|
|
10853
|
+
var UmaInvitationStatus_default = UmaInvitationStatus;
|
|
10854
|
+
|
|
10819
10855
|
// src/objects/UmaInvitation.ts
|
|
10820
10856
|
var UmaInvitationFromJson = (obj) => {
|
|
10821
10857
|
return {
|
|
@@ -10826,18 +10862,17 @@ var UmaInvitationFromJson = (obj) => {
|
|
|
10826
10862
|
url: obj["uma_invitation_url"],
|
|
10827
10863
|
inviterUma: obj["uma_invitation_inviter_uma"],
|
|
10828
10864
|
incentivesStatus: IncentivesStatus_default[obj["uma_invitation_incentives_status"]] ?? IncentivesStatus_default.FUTURE_VALUE,
|
|
10865
|
+
status: UmaInvitationStatus_default[obj["uma_invitation_status"]] ?? UmaInvitationStatus_default.FUTURE_VALUE,
|
|
10829
10866
|
typename: "UmaInvitation",
|
|
10867
|
+
inviterFirstName: obj["uma_invitation_inviter_first_name"],
|
|
10830
10868
|
inviteeUma: obj["uma_invitation_invitee_uma"],
|
|
10831
|
-
incentivesIneligibilityReason: !!obj["uma_invitation_incentives_ineligibility_reason"] ? obj["uma_invitation_incentives_ineligibility_reason"] ?? IncentivesIneligibilityReason_default.FUTURE_VALUE : null,
|
|
10832
|
-
|
|
10833
|
-
throw new Error("Required field 'uma_invitation_status' is missing");
|
|
10834
|
-
})(),
|
|
10835
|
-
paymentAmount: obj["uma_invitation_payment_amount"] ? UmaCurrencyAmount.fromJson(obj["uma_invitation_payment_amount"]) : void 0,
|
|
10869
|
+
incentivesIneligibilityReason: !!obj["uma_invitation_incentives_ineligibility_reason"] ? IncentivesIneligibilityReason_default[obj["uma_invitation_incentives_ineligibility_reason"]] ?? IncentivesIneligibilityReason_default.FUTURE_VALUE : null,
|
|
10870
|
+
paymentAmount: !!obj["uma_invitation_payment_amount"] ? UmaCurrencyAmountFromJson(obj["uma_invitation_payment_amount"]) : void 0,
|
|
10836
10871
|
cancelledAt: obj["uma_invitation_cancelled_at"],
|
|
10837
10872
|
expiresAt: obj["uma_invitation_expires_at"]
|
|
10838
10873
|
};
|
|
10839
10874
|
};
|
|
10840
|
-
var
|
|
10875
|
+
var FRAGMENT39 = `
|
|
10841
10876
|
fragment UmaInvitationFragment on UmaInvitation {
|
|
10842
10877
|
__typename
|
|
10843
10878
|
uma_invitation_id: id
|
|
@@ -10846,17 +10881,16 @@ fragment UmaInvitationFragment on UmaInvitation {
|
|
|
10846
10881
|
uma_invitation_code: code
|
|
10847
10882
|
uma_invitation_url: url
|
|
10848
10883
|
uma_invitation_inviter_uma: inviter_uma
|
|
10884
|
+
uma_invitation_inviter_first_name: inviter_first_name
|
|
10849
10885
|
uma_invitation_invitee_uma: invitee_uma
|
|
10850
10886
|
uma_invitation_incentives_status: incentives_status
|
|
10851
10887
|
uma_invitation_incentives_ineligibility_reason: incentives_ineligibility_reason
|
|
10852
10888
|
uma_invitation_status: status
|
|
10853
10889
|
uma_invitation_payment_amount: payment_amount {
|
|
10854
|
-
|
|
10855
|
-
|
|
10890
|
+
__typename
|
|
10891
|
+
uma_currency_amount_value: value
|
|
10892
|
+
uma_currency_amount_currency: currency {
|
|
10856
10893
|
code
|
|
10857
|
-
symbol
|
|
10858
|
-
decimals
|
|
10859
|
-
name
|
|
10860
10894
|
}
|
|
10861
10895
|
}
|
|
10862
10896
|
uma_invitation_cancelled_at: cancelled_at
|
|
@@ -10873,10 +10907,10 @@ query GetUmaInvitation($id: ID!) {
|
|
|
10873
10907
|
}
|
|
10874
10908
|
}
|
|
10875
10909
|
|
|
10876
|
-
${
|
|
10910
|
+
${FRAGMENT39}
|
|
10877
10911
|
`,
|
|
10878
10912
|
variables: { id },
|
|
10879
|
-
constructObject: (data) =>
|
|
10913
|
+
constructObject: (data) => isObject34(data) && "entity" in data && isObject34(data.entity) ? UmaInvitationFromJson(data.entity) : null
|
|
10880
10914
|
};
|
|
10881
10915
|
};
|
|
10882
10916
|
|
|
@@ -10898,6 +10932,7 @@ var WebhookEventType = /* @__PURE__ */ ((WebhookEventType2) => {
|
|
|
10898
10932
|
WebhookEventType2["LOW_BALANCE"] = "LOW_BALANCE";
|
|
10899
10933
|
WebhookEventType2["HIGH_BALANCE"] = "HIGH_BALANCE";
|
|
10900
10934
|
WebhookEventType2["CHANNEL_OPENING_FEES"] = "CHANNEL_OPENING_FEES";
|
|
10935
|
+
WebhookEventType2["HOLD_INVOICE_ACCEPTED"] = "HOLD_INVOICE_ACCEPTED";
|
|
10901
10936
|
return WebhookEventType2;
|
|
10902
10937
|
})(WebhookEventType || {});
|
|
10903
10938
|
var WebhookEventType_default = WebhookEventType;
|
|
@@ -10910,7 +10945,7 @@ var WithdrawalFeeEstimateOutputFromJson = (obj) => {
|
|
|
10910
10945
|
)
|
|
10911
10946
|
};
|
|
10912
10947
|
};
|
|
10913
|
-
var
|
|
10948
|
+
var FRAGMENT40 = `
|
|
10914
10949
|
fragment WithdrawalFeeEstimateOutputFragment on WithdrawalFeeEstimateOutput {
|
|
10915
10950
|
__typename
|
|
10916
10951
|
withdrawal_fee_estimate_output_fee_estimate: fee_estimate {
|
|
@@ -10947,8 +10982,10 @@ export {
|
|
|
10947
10982
|
getInvoiceQuery,
|
|
10948
10983
|
IncentivesIneligibilityReason_default,
|
|
10949
10984
|
IncentivesStatus_default,
|
|
10985
|
+
getUmaCurrencyQuery,
|
|
10986
|
+
UmaInvitationStatus_default,
|
|
10950
10987
|
UmaInvitationFromJson,
|
|
10951
|
-
|
|
10988
|
+
FRAGMENT39 as FRAGMENT5,
|
|
10952
10989
|
getUmaInvitationQuery,
|
|
10953
10990
|
Permission_default,
|
|
10954
10991
|
ApiTokenFromJson,
|
|
@@ -10988,7 +11025,7 @@ export {
|
|
|
10988
11025
|
TransactionUpdateFromJson,
|
|
10989
11026
|
FRAGMENT37 as FRAGMENT13,
|
|
10990
11027
|
WithdrawalFeeEstimateOutputFromJson,
|
|
10991
|
-
|
|
11028
|
+
FRAGMENT40 as FRAGMENT14,
|
|
10992
11029
|
getLightsparkNodeQuery,
|
|
10993
11030
|
WalletStatus_default,
|
|
10994
11031
|
Wallet_default,
|
|
@@ -53,6 +53,12 @@ declare enum CurrencyUnit {
|
|
|
53
53
|
MXN = "MXN",
|
|
54
54
|
/** Philippine Peso. **/
|
|
55
55
|
PHP = "PHP",
|
|
56
|
+
/** Euro. **/
|
|
57
|
+
EUR = "EUR",
|
|
58
|
+
/** British Pound. **/
|
|
59
|
+
GBP = "GBP",
|
|
60
|
+
/** Indian Rupee. **/
|
|
61
|
+
INR = "INR",
|
|
56
62
|
/**
|
|
57
63
|
* 0.000000001 (10e-9) Bitcoin or a billionth of a Bitcoin. We recommend using the Satoshi unit
|
|
58
64
|
* instead when possible. *
|
|
@@ -176,6 +182,9 @@ declare enum Permission {
|
|
|
176
182
|
REGTEST_VIEW = "REGTEST_VIEW",
|
|
177
183
|
REGTEST_TRANSACT = "REGTEST_TRANSACT",
|
|
178
184
|
REGTEST_MANAGE = "REGTEST_MANAGE",
|
|
185
|
+
SIGNET_VIEW = "SIGNET_VIEW",
|
|
186
|
+
SIGNET_TRANSACT = "SIGNET_TRANSACT",
|
|
187
|
+
SIGNET_MANAGE = "SIGNET_MANAGE",
|
|
179
188
|
USER_VIEW = "USER_VIEW",
|
|
180
189
|
USER_MANAGE = "USER_MANAGE",
|
|
181
190
|
ACCOUNT_VIEW = "ACCOUNT_VIEW",
|
|
@@ -972,7 +981,7 @@ declare enum WalletStatus {
|
|
|
972
981
|
TERMINATING = "TERMINATING",
|
|
973
982
|
/**
|
|
974
983
|
* The wallet has been terminated and is not available in the Lightspark infrastructure anymore.
|
|
975
|
-
*
|
|
984
|
+
* It is not connected to the Lightning network and its funds can only be accessed using the
|
|
976
985
|
* Funds Recovery flow. *
|
|
977
986
|
*/
|
|
978
987
|
TERMINATED = "TERMINATED"
|
|
@@ -2926,30 +2935,54 @@ declare enum IncentivesStatus {
|
|
|
2926
2935
|
INELIGIBLE = "INELIGIBLE"
|
|
2927
2936
|
}
|
|
2928
2937
|
|
|
2929
|
-
|
|
2938
|
+
interface UmaCurrency {
|
|
2939
|
+
/**
|
|
2940
|
+
* The unique identifier of this entity across all Lightspark systems. Should be treated as an
|
|
2941
|
+
* opaque string.
|
|
2942
|
+
**/
|
|
2943
|
+
id: string;
|
|
2944
|
+
/** The date and time when the entity was first created. **/
|
|
2945
|
+
createdAt: string;
|
|
2946
|
+
/** The date and time when the entity was last updated. **/
|
|
2947
|
+
updatedAt: string;
|
|
2948
|
+
/** The currency code of currency. E.g. USD. **/
|
|
2949
|
+
code: string;
|
|
2950
|
+
/** The symbol of currency. E.g. $. **/
|
|
2951
|
+
symbol: string;
|
|
2952
|
+
/** The full name of currency. E.g. US Dollar. **/
|
|
2953
|
+
name: string;
|
|
2954
|
+
/**
|
|
2955
|
+
* The number of digits after the decimal point for display on the sender side, and to add
|
|
2956
|
+
* clarity around what the `smallest unit` of the currency is. For example, in USD, by
|
|
2957
|
+
* convention, there are 2 digits for cents - $5.95. In this case, `decimals` would be 2. Note
|
|
2958
|
+
* that the multiplier is still always in the smallest unit (cents). In addition to display
|
|
2959
|
+
* purposes, this field can be used to resolve ambiguity in what the multiplier means. For
|
|
2960
|
+
* example, if the currency is `BTC` and the multiplier is 1000, really we're exchanging in
|
|
2961
|
+
* SATs, so `decimals` would be 8.
|
|
2962
|
+
**/
|
|
2963
|
+
decimals: number;
|
|
2964
|
+
/** The typename of the object **/
|
|
2965
|
+
typename: string;
|
|
2966
|
+
}
|
|
2967
|
+
declare const getUmaCurrencyQuery: (id: string) => Query<UmaCurrency>;
|
|
2968
|
+
|
|
2969
|
+
interface UmaCurrencyAmount {
|
|
2930
2970
|
value: number;
|
|
2931
|
-
currency:
|
|
2932
|
-
code: string;
|
|
2933
|
-
symbol: string;
|
|
2934
|
-
decimals: number;
|
|
2935
|
-
name: string;
|
|
2936
|
-
};
|
|
2937
|
-
constructor(value: number, currency: {
|
|
2938
|
-
code: string;
|
|
2939
|
-
symbol: string;
|
|
2940
|
-
decimals: number;
|
|
2941
|
-
name: string;
|
|
2942
|
-
});
|
|
2943
|
-
static fromJson(obj: any): UmaCurrencyAmount;
|
|
2944
|
-
toJson(): any;
|
|
2971
|
+
currency: UmaCurrency;
|
|
2945
2972
|
}
|
|
2946
2973
|
|
|
2947
2974
|
declare enum UmaInvitationStatus {
|
|
2975
|
+
/**
|
|
2976
|
+
* This is an enum value that represents values that could be added in the future.
|
|
2977
|
+
* Clients should support unknown values as more of them could be added without notice.
|
|
2978
|
+
*/
|
|
2979
|
+
FUTURE_VALUE = "FUTURE_VALUE",
|
|
2948
2980
|
PENDING = "PENDING",
|
|
2949
2981
|
CLAIMED = "CLAIMED",
|
|
2950
2982
|
CANCELLED = "CANCELLED",
|
|
2951
2983
|
EXPIRED = "EXPIRED"
|
|
2952
2984
|
}
|
|
2985
|
+
|
|
2953
2986
|
/** This is an object representing an UMA.ME invitation. **/
|
|
2954
2987
|
interface UmaInvitation {
|
|
2955
2988
|
/**
|
|
@@ -2969,19 +3002,27 @@ interface UmaInvitation {
|
|
|
2969
3002
|
inviterUma: string;
|
|
2970
3003
|
/** The current status of the incentives that may be tied to this invitation. **/
|
|
2971
3004
|
incentivesStatus: IncentivesStatus;
|
|
3005
|
+
/** The status of the invitation. **/
|
|
3006
|
+
status: UmaInvitationStatus;
|
|
2972
3007
|
/** The typename of the object **/
|
|
2973
3008
|
typename: string;
|
|
3009
|
+
/** The optional first name of the person who created the invitation. **/
|
|
3010
|
+
inviterFirstName?: string | undefined;
|
|
2974
3011
|
/** The UMA of the user who claimed the invitation. **/
|
|
2975
3012
|
inviteeUma?: string | undefined;
|
|
2976
3013
|
/** The reason why the invitation is not eligible for incentives, if applicable. **/
|
|
2977
3014
|
incentivesIneligibilityReason?: IncentivesIneligibilityReason | undefined;
|
|
2978
|
-
/**
|
|
2979
|
-
|
|
2980
|
-
|
|
3015
|
+
/**
|
|
3016
|
+
* The payment amount with the invitation denominated in the lowest currency unit. If there is
|
|
3017
|
+
* no payment attached, this is null.
|
|
3018
|
+
**/
|
|
2981
3019
|
paymentAmount?: UmaCurrencyAmount | undefined;
|
|
2982
|
-
/**
|
|
3020
|
+
/** The date and time when the invitation was cancelled, if it was cancelled. **/
|
|
2983
3021
|
cancelledAt?: string | undefined;
|
|
2984
|
-
/**
|
|
3022
|
+
/**
|
|
3023
|
+
* The date and time after which an invitation can no longer be claimed. None, if no expiration
|
|
3024
|
+
* is set *
|
|
3025
|
+
*/
|
|
2985
3026
|
expiresAt?: string | undefined;
|
|
2986
3027
|
}
|
|
2987
3028
|
declare const getUmaInvitationQuery: (id: string) => Query<UmaInvitation>;
|
|
@@ -3232,7 +3273,7 @@ declare class LightsparkClient {
|
|
|
3232
3273
|
* @param withdrawalMode The strategy that should be used to withdraw the funds from this node.
|
|
3233
3274
|
* @returns An estimated amount for the L1 withdrawal fees for the specified node, amount, and strategy.
|
|
3234
3275
|
*/
|
|
3235
|
-
|
|
3276
|
+
getWithdrawalFeeEstimate(nodeId: string, amountSats: number, withdrawalMode: WithdrawalMode): Promise<CurrencyAmount>;
|
|
3236
3277
|
/**
|
|
3237
3278
|
* Directly unlocks a node with a signing private key or alias.
|
|
3238
3279
|
*
|
|
@@ -3535,6 +3576,13 @@ declare class LightsparkClient {
|
|
|
3535
3576
|
* @returns The cancelled invitation, or null if cancellation failed.
|
|
3536
3577
|
*/
|
|
3537
3578
|
cancelUmaInvitation(invitationCode: string): Promise<UmaInvitation | null>;
|
|
3579
|
+
/**
|
|
3580
|
+
* Looks up a UMA address to check if it exists.
|
|
3581
|
+
*
|
|
3582
|
+
* @param umaAddress The UMA address to look up.
|
|
3583
|
+
* @returns True if the UMA address exists, false otherwise.
|
|
3584
|
+
*/
|
|
3585
|
+
lookupUmaAddress(umaAddress: string): Promise<boolean>;
|
|
3538
3586
|
}
|
|
3539
3587
|
|
|
3540
3588
|
/** Audit log actor who called the GraphQL mutation **/
|
|
@@ -3569,6 +3617,14 @@ interface CancelInvoiceOutput {
|
|
|
3569
3617
|
invoiceId: string;
|
|
3570
3618
|
}
|
|
3571
3619
|
|
|
3620
|
+
interface CancelUmaInvitationInput {
|
|
3621
|
+
inviteCode: string;
|
|
3622
|
+
}
|
|
3623
|
+
|
|
3624
|
+
interface CancelUmaInvitationOutput {
|
|
3625
|
+
invitationId: string;
|
|
3626
|
+
}
|
|
3627
|
+
|
|
3572
3628
|
interface ChannelSnapshot {
|
|
3573
3629
|
/**
|
|
3574
3630
|
* The unique identifier of this entity across all Lightspark systems. Should be treated as an
|
|
@@ -3656,6 +3712,8 @@ interface CreateInvitationWithIncentivesInput {
|
|
|
3656
3712
|
inviterPhoneHash: string;
|
|
3657
3713
|
/** The region of the user creating the invitation. **/
|
|
3658
3714
|
inviterRegion: RegionCode;
|
|
3715
|
+
/** The optional first name of the user creating the invitation. **/
|
|
3716
|
+
inviterFirstName?: string | undefined;
|
|
3659
3717
|
}
|
|
3660
3718
|
|
|
3661
3719
|
interface CreateInvitationWithIncentivesOutput {
|
|
@@ -3673,10 +3731,7 @@ interface CreateInvoiceInput {
|
|
|
3673
3731
|
amountMsats: number;
|
|
3674
3732
|
memo?: string | undefined;
|
|
3675
3733
|
invoiceType?: InvoiceType | undefined;
|
|
3676
|
-
/**
|
|
3677
|
-
* The expiry of the invoice in seconds. Default value is 86400 (1 day) for AMP invoice, or
|
|
3678
|
-
* 3600 (1 hour) for STANDARD invoice.
|
|
3679
|
-
**/
|
|
3734
|
+
/** The expiry of the invoice in seconds. Default value is 86400 (1 day). **/
|
|
3680
3735
|
expirySecs?: number | undefined;
|
|
3681
3736
|
/**
|
|
3682
3737
|
* The payment hash of the invoice. It should only be set if your node is a remote signing
|
|
@@ -3684,6 +3739,12 @@ interface CreateInvoiceInput {
|
|
|
3684
3739
|
* REQUEST_INVOICE_PAYMENT_HASH.
|
|
3685
3740
|
**/
|
|
3686
3741
|
paymentHash?: string | undefined;
|
|
3742
|
+
/**
|
|
3743
|
+
* The 32-byte nonce used to generate the invoice preimage if applicable. It will later be
|
|
3744
|
+
* included in RELEASE_PAYMENT_PREIMAGE webhook to help recover the raw preimage. This can only
|
|
3745
|
+
* be specified when `payment_hash` is specified.
|
|
3746
|
+
**/
|
|
3747
|
+
preimageNonce?: string | undefined;
|
|
3687
3748
|
}
|
|
3688
3749
|
|
|
3689
3750
|
interface CreateInvoiceOutput {
|
|
@@ -3705,6 +3766,18 @@ interface CreateLnurlInvoiceInput {
|
|
|
3705
3766
|
/** An optional, monthly-rotated, unique hashed identifier corresponding to the receiver of the
|
|
3706
3767
|
* payment. **/
|
|
3707
3768
|
receiverHash?: string | undefined;
|
|
3769
|
+
/**
|
|
3770
|
+
* The payment hash of the invoice. It should only be set if your node is a remote signing
|
|
3771
|
+
* node, or if you are creating a hodl invoice. If not set, it will be requested through
|
|
3772
|
+
* REMOTE_SIGNING webhooks with sub event type REQUEST_INVOICE_PAYMENT_HASH.
|
|
3773
|
+
**/
|
|
3774
|
+
paymentHash?: string | undefined;
|
|
3775
|
+
/**
|
|
3776
|
+
* The 32-byte nonce used to generate the invoice preimage if applicable. It will later be
|
|
3777
|
+
* included in RELEASE_PAYMENT_PREIMAGE webhook to help recover the raw preimage. This can only
|
|
3778
|
+
* be specified when `payment_hash` is specified.
|
|
3779
|
+
**/
|
|
3780
|
+
preimageNonce?: string | undefined;
|
|
3708
3781
|
}
|
|
3709
3782
|
|
|
3710
3783
|
interface CreateNodeWalletAddressInput {
|
|
@@ -3797,6 +3870,8 @@ interface CreateUmaInvitationInput {
|
|
|
3797
3870
|
* receiving the invitation.
|
|
3798
3871
|
**/
|
|
3799
3872
|
inviterUma: string;
|
|
3873
|
+
/** The optional first name of the user creating the invitation. **/
|
|
3874
|
+
inviterFirstName?: string | undefined;
|
|
3800
3875
|
}
|
|
3801
3876
|
|
|
3802
3877
|
interface CreateUmaInvitationOutput {
|
|
@@ -3819,6 +3894,18 @@ interface CreateUmaInvoiceInput {
|
|
|
3819
3894
|
/** An optional, monthly-rotated, unique hashed identifier corresponding to the receiver of the
|
|
3820
3895
|
* payment. **/
|
|
3821
3896
|
receiverHash?: string | undefined;
|
|
3897
|
+
/**
|
|
3898
|
+
* The payment hash of the invoice. It should only be set if your node is a remote signing
|
|
3899
|
+
* node, or if you are creating a hodl invoice. If not set, it will be requested through
|
|
3900
|
+
* REMOTE_SIGNING webhooks with sub event type REQUEST_INVOICE_PAYMENT_HASH.
|
|
3901
|
+
**/
|
|
3902
|
+
paymentHash?: string | undefined;
|
|
3903
|
+
/**
|
|
3904
|
+
* The 32-byte nonce used to generate the invoice preimage if applicable. It will later be
|
|
3905
|
+
* included in RELEASE_PAYMENT_PREIMAGE webhook to help recover the raw preimage. This can only
|
|
3906
|
+
* be specified when `payment_hash` is specified.
|
|
3907
|
+
**/
|
|
3908
|
+
preimageNonce?: string | undefined;
|
|
3822
3909
|
}
|
|
3823
3910
|
|
|
3824
3911
|
interface DeclineToSignMessagesInput {
|
|
@@ -4542,6 +4629,10 @@ declare class LightsparkNodeWithRemoteSigning implements LightsparkNode, Node, E
|
|
|
4542
4629
|
};
|
|
4543
4630
|
}
|
|
4544
4631
|
|
|
4632
|
+
interface LookupUmaAddressInput {
|
|
4633
|
+
umaAddress: string;
|
|
4634
|
+
}
|
|
4635
|
+
|
|
4545
4636
|
/** This object represents a BOLT #12 offer (https://github.com/lightning/bolts/blob/master/12-offer-encoding.md) created by a Lightspark Node. **/
|
|
4546
4637
|
interface Offer {
|
|
4547
4638
|
/**
|
|
@@ -5082,7 +5173,8 @@ declare enum WebhookEventType {
|
|
|
5082
5173
|
REMOTE_SIGNING = "REMOTE_SIGNING",
|
|
5083
5174
|
LOW_BALANCE = "LOW_BALANCE",
|
|
5084
5175
|
HIGH_BALANCE = "HIGH_BALANCE",
|
|
5085
|
-
CHANNEL_OPENING_FEES = "CHANNEL_OPENING_FEES"
|
|
5176
|
+
CHANNEL_OPENING_FEES = "CHANNEL_OPENING_FEES",
|
|
5177
|
+
HOLD_INVOICE_ACCEPTED = "HOLD_INVOICE_ACCEPTED"
|
|
5086
5178
|
}
|
|
5087
5179
|
|
|
5088
5180
|
interface WithdrawalFeeEstimateInput {
|
|
@@ -5102,4 +5194,4 @@ interface WithdrawalFeeEstimateOutput {
|
|
|
5102
5194
|
feeEstimate: CurrencyAmount;
|
|
5103
5195
|
}
|
|
5104
5196
|
|
|
5105
|
-
export { type
|
|
5197
|
+
export { type CreateUmaInvoiceInput as $, Account as A, type Balances as B, type CancelInvoiceInput as C, type ClaimUmaInvitationOutput as D, type ClaimUmaInvitationWithIncentivesInput as E, type ClaimUmaInvitationWithIncentivesOutput as F, ComplianceProvider as G, type Connection as H, type CreateApiTokenInput as I, type CreateApiTokenOutput as J, type CreateInvitationWithIncentivesInput as K, LightsparkClient as L, type CreateInvitationWithIncentivesOutput as M, type CreateInvoiceInput as N, type CreateInvoiceOutput as O, type CreateLnurlInvoiceInput as P, type CreateNodeWalletAddressInput as Q, type CreateNodeWalletAddressOutput as R, type CreateOfferInput as S, type CreateOfferOutput as T, type CreateTestModeInvoiceInput as U, type CreateTestModeInvoiceOutput as V, WebhookEventType as W, type CreateTestModePaymentInput as X, type CreateTestModePaymentoutput as Y, type CreateUmaInvitationInput as Z, type CreateUmaInvitationOutput as _, type AccountToApiTokensConnection as a, getOfferDataQuery as a$, type CurrencyAmount as a0, type CurrencyAmountInput as a1, CurrencyUnit as a2, type DailyLiquidityForecast as a3, type DeclineToSignMessagesInput as a4, type DeclineToSignMessagesOutput as a5, type DeleteApiTokenInput as a6, type DeleteApiTokenOutput as a7, type Deposit as a8, getDepositQuery as a9, type InvoiceForPaymentHashOutput as aA, InvoiceType as aB, type LightningFeeEstimateForInvoiceInput as aC, type LightningFeeEstimateForNodeInput as aD, type LightningFeeEstimateOutput as aE, LightningPaymentDirection as aF, type LightningTransaction as aG, getLightningTransactionQuery as aH, type LightsparkNode as aI, getLightsparkNodeQuery as aJ, type LightsparkNodeOwner as aK, getLightsparkNodeOwnerQuery as aL, LightsparkNodeStatus as aM, type LightsparkNodeToChannelsConnection as aN, type LightsparkNodeToDailyLiquidityForecastsConnection as aO, LightsparkNodeWithOSK as aP, LightsparkNodeWithRemoteSigning as aQ, type LookupUmaAddressInput as aR, type MultiSigAddressValidationParameters as aS, type Node as aT, getNodeQuery as aU, type NodeAddress as aV, NodeAddressType as aW, type NodeToAddressesConnection as aX, type Offer as aY, getOfferQuery as aZ, type OfferData as a_, type Entity as aa, type FailHtlcsInput as ab, type FailHtlcsOutput as ac, type FeeEstimate as ad, type FundNodeInput as ae, type FundNodeOutput as af, GraphNode as ag, type Hop as ah, getHopQuery as ai, HtlcAttemptFailureCode as aj, type IdAndSignature as ak, IncentivesIneligibilityReason as al, IncentivesStatus as am, IncomingPayment as an, type IncomingPaymentAttempt as ao, getIncomingPaymentAttemptQuery as ap, IncomingPaymentAttemptStatus as aq, type IncomingPaymentsForInvoiceQueryInput as ar, type IncomingPaymentsForInvoiceQueryOutput as as, type IncomingPaymentsForPaymentHashQueryInput as at, type IncomingPaymentsForPaymentHashQueryOutput as au, type IncomingPaymentToAttemptsConnection as av, type Invoice as aw, getInvoiceQuery as ax, type InvoiceData as ay, type InvoiceForPaymentHashInput as az, type AccountToChannelsConnection as b, getTransactionQuery as b$, OnChainFeeTarget as b0, type OnChainTransaction as b1, getOnChainTransactionQuery as b2, OutgoingPayment as b3, OutgoingPaymentAttempt as b4, OutgoingPaymentAttemptStatus as b5, type OutgoingPaymentAttemptToHopsConnection as b6, type OutgoingPaymentForIdempotencyKeyInput as b7, type OutgoingPaymentForIdempotencyKeyOutput as b8, type OutgoingPaymentsForInvoiceQueryInput as b9, RemoteSigningSubEventType as bA, RequestInitiator as bB, type RequestWithdrawalInput as bC, type RequestWithdrawalOutput as bD, type RichText as bE, RiskRating as bF, type RoutingTransaction as bG, getRoutingTransactionQuery as bH, RoutingTransactionFailureReason as bI, type ScreenNodeInput as bJ, type ScreenNodeOutput as bK, type Secret as bL, type SendPaymentInput as bM, type SendPaymentOutput as bN, type SetInvoicePaymentHashInput as bO, type SetInvoicePaymentHashOutput as bP, type Signable as bQ, getSignableQuery as bR, type SignablePayload as bS, getSignablePayloadQuery as bT, SignablePayloadStatus as bU, type SignInvoiceInput as bV, type SignInvoiceOutput as bW, type SignMessagesInput as bX, type SignMessagesOutput as bY, type SingleNodeDashboard as bZ, type Transaction as b_, type OutgoingPaymentsForInvoiceQueryOutput as ba, type OutgoingPaymentsForPaymentHashQueryInput as bb, type OutgoingPaymentsForPaymentHashQueryOutput as bc, type OutgoingPaymentToAttemptsConnection as bd, type PageInfo as be, type PayInvoiceInput as bf, type PayInvoiceOutput as bg, PaymentDirection as bh, PaymentFailureReason as bi, type PaymentRequest as bj, getPaymentRequestQuery as bk, type PaymentRequestData as bl, PaymentRequestStatus as bm, type PayOfferInput as bn, type PayOfferOutput as bo, type PayTestModeInvoiceInput as bp, type PayUmaInvoiceInput as bq, Permission as br, type PostTransactionData as bs, RegionCode as bt, type RegisterPaymentInput as bu, type RegisterPaymentOutput as bv, type ReleaseChannelPerCommitmentSecretInput as bw, type ReleaseChannelPerCommitmentSecretOutput as bx, type ReleasePaymentPreimageInput as by, type ReleasePaymentPreimageOutput as bz, type AccountToNodesConnection as c, type TransactionFailures as c0, TransactionStatus as c1, TransactionType as c2, type TransactionUpdate as c3, type UmaCurrency as c4, getUmaCurrencyQuery as c5, type UmaCurrencyAmount as c6, type UmaInvitation as c7, getUmaInvitationQuery as c8, UmaInvitationStatus as c9, type UpdateChannelPerCommitmentPointInput as ca, type UpdateChannelPerCommitmentPointOutput as cb, type UpdateNodeSharedSecretInput as cc, type UpdateNodeSharedSecretOutput as cd, Wallet as ce, WalletStatus as cf, type WalletToPaymentRequestsConnection as cg, type WalletToTransactionsConnection as ch, type WalletToWithdrawalRequestsConnection as ci, type Withdrawal as cj, getWithdrawalQuery as ck, type WithdrawalFeeEstimateInput as cl, type WithdrawalFeeEstimateOutput as cm, WithdrawalMode as cn, WithdrawalRequest as co, WithdrawalRequestStatus as cp, type WithdrawalRequestToChannelClosingTransactionsConnection as cq, type WithdrawalRequestToChannelOpeningTransactionsConnection as cr, type WithdrawalRequestToWithdrawalsConnection as cs, type AccountToPaymentRequestsConnection as d, type AccountToTransactionsConnection as e, type AccountToWalletsConnection as f, type AccountToWithdrawalRequestsConnection as g, type ApiToken as h, getApiTokenQuery as i, type AuditLogActor as j, getAuditLogActorQuery as k, type BlockchainBalance as l, type CancelInvoiceOutput as m, type CancelUmaInvitationInput as n, type CancelUmaInvitationOutput as o, Channel as p, type ChannelClosingTransaction as q, getChannelClosingTransactionQuery as r, type ChannelFees as s, type ChannelOpeningTransaction as t, getChannelOpeningTransactionQuery as u, type ChannelSnapshot as v, getChannelSnapshotQuery as w, ChannelStatus as x, type ChannelToTransactionsConnection as y, type ClaimUmaInvitationInput as z };
|