@lightsparkdev/lightspark-sdk 1.2.0 → 1.2.2
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 +17 -0
- package/dist/{chunk-5RDIWPBE.js → chunk-D32EWIPX.js} +3 -1
- package/dist/{chunk-VTPDR6P4.js → chunk-GLL4KTUT.js} +353 -15
- package/dist/env.cjs +3 -1
- package/dist/env.d.cts +17 -0
- package/dist/env.js +2 -2
- package/dist/{index-f040db9f.d.ts → index-eb604025.d.ts} +1377 -15
- package/dist/index.cjs +682 -94
- package/dist/index.d.cts +41 -0
- package/dist/index.d.ts +3 -3
- package/dist/index.js +290 -37
- package/dist/objects/index.cjs +345 -5
- package/dist/objects/index.d.cts +4 -0
- package/dist/objects/index.d.ts +1 -1
- package/dist/objects/index.js +10 -2
- package/dist/{text-encoding-MDIPJAHL.js → text-encoding-26SMKBAQ.js} +3 -1
- package/package.json +4 -4
- package/src/auth/AccountTokenAuthProvider.ts +15 -11
- package/src/client.ts +201 -7
- package/src/graphql/ClaimUmaInvitation.ts +21 -0
- package/src/graphql/ClaimUmaInvitationWithIncentives.ts +25 -0
- package/src/graphql/CreateUmaInvitation.ts +19 -0
- package/src/graphql/CreateUmaInvitationWithIncentives.ts +23 -0
- package/src/graphql/FetchUmaInvitation.ts +15 -0
- package/src/helpers.ts +3 -1
- package/src/objects/Account.ts +8 -0
- package/src/objects/AccountToChannelsConnection.ts +5 -0
- package/src/objects/Channel.ts +31 -0
- package/src/objects/ClaimUmaInvitationInput.ts +26 -0
- package/src/objects/ClaimUmaInvitationOutput.ts +30 -0
- package/src/objects/ClaimUmaInvitationWithIncentivesInput.ts +44 -0
- package/src/objects/ClaimUmaInvitationWithIncentivesOutput.ts +33 -0
- package/src/objects/CreateInvitationWithIncentivesInput.ts +37 -0
- package/src/objects/CreateInvitationWithIncentivesOutput.ts +32 -0
- package/src/objects/CreateUmaInvitationInput.ts +22 -0
- package/src/objects/CreateUmaInvitationOutput.ts +30 -0
- package/src/objects/Entity.ts +13 -0
- package/src/objects/GraphNode.ts +28 -0
- package/src/objects/IncentivesIneligibilityReason.ts +24 -0
- package/src/objects/IncentivesStatus.ts +18 -0
- package/src/objects/IncomingPayment.ts +17 -0
- package/src/objects/LightsparkNodeWithOSK.ts +61 -0
- package/src/objects/LightsparkNodeWithRemoteSigning.ts +60 -0
- package/src/objects/OutgoingPayment.ts +20 -0
- package/src/objects/OutgoingPaymentAttempt.ts +31 -0
- package/src/objects/RegionCode.ts +510 -0
- package/src/objects/UmaInvitation.ts +113 -0
- package/src/objects/Wallet.ts +12 -0
- package/src/objects/WebhookEventType.ts +4 -0
- package/src/objects/WithdrawalRequest.ts +17 -0
- package/src/objects/index.ts +15 -0
- package/src/tests/integration/constants.ts +10 -0
- package/src/tests/integration/general-regtest.test.ts +633 -0
- package/src/tests/serialization.test.ts +5 -2
- package/src/webhooks.ts +1 -1
- package/src/tests/integration/client.test.ts +0 -207
- /package/dist/{chunk-NIMBE7W3.js → chunk-BMTV3EA2.js} +0 -0
package/dist/objects/index.cjs
CHANGED
|
@@ -39,6 +39,8 @@ __export(objects_exports, {
|
|
|
39
39
|
CurrencyUnit: () => CurrencyUnit_default,
|
|
40
40
|
GraphNode: () => GraphNode_default,
|
|
41
41
|
HtlcAttemptFailureCode: () => HtlcAttemptFailureCode_default,
|
|
42
|
+
IncentivesIneligibilityReason: () => IncentivesIneligibilityReason_default,
|
|
43
|
+
IncentivesStatus: () => IncentivesStatus_default,
|
|
42
44
|
IncomingPayment: () => IncomingPayment_default,
|
|
43
45
|
IncomingPaymentAttemptStatus: () => IncomingPaymentAttemptStatus_default,
|
|
44
46
|
InvoiceType: () => InvoiceType_default,
|
|
@@ -53,6 +55,7 @@ __export(objects_exports, {
|
|
|
53
55
|
PaymentFailureReason: () => PaymentFailureReason_default,
|
|
54
56
|
PaymentRequestStatus: () => PaymentRequestStatus_default,
|
|
55
57
|
Permission: () => Permission_default,
|
|
58
|
+
RegionCode: () => RegionCode_default,
|
|
56
59
|
RemoteSigningSubEventType: () => RemoteSigningSubEventType_default,
|
|
57
60
|
RiskRating: () => RiskRating_default,
|
|
58
61
|
RoutingTransactionFailureReason: () => RoutingTransactionFailureReason_default,
|
|
@@ -82,6 +85,7 @@ __export(objects_exports, {
|
|
|
82
85
|
getSignablePayloadQuery: () => getSignablePayloadQuery,
|
|
83
86
|
getSignableQuery: () => getSignableQuery,
|
|
84
87
|
getTransactionQuery: () => getTransactionQuery,
|
|
88
|
+
getUmaInvitationQuery: () => getUmaInvitationQuery,
|
|
85
89
|
getWithdrawalQuery: () => getWithdrawalQuery
|
|
86
90
|
});
|
|
87
91
|
module.exports = __toCommonJS(objects_exports);
|
|
@@ -3183,11 +3187,12 @@ var OutgoingPaymentAttemptToHopsConnectionFromJson = (obj) => {
|
|
|
3183
3187
|
|
|
3184
3188
|
// src/objects/OutgoingPaymentAttempt.ts
|
|
3185
3189
|
var OutgoingPaymentAttempt = class {
|
|
3186
|
-
constructor(id, createdAt, updatedAt, status, outgoingPaymentId, typename, failureCode, failureSourceIndex, resolvedAt, amount, fees, channelSnapshot) {
|
|
3190
|
+
constructor(id, createdAt, updatedAt, status, attemptedAt, outgoingPaymentId, typename, failureCode, failureSourceIndex, resolvedAt, amount, fees, channelSnapshot) {
|
|
3187
3191
|
this.id = id;
|
|
3188
3192
|
this.createdAt = createdAt;
|
|
3189
3193
|
this.updatedAt = updatedAt;
|
|
3190
3194
|
this.status = status;
|
|
3195
|
+
this.attemptedAt = attemptedAt;
|
|
3191
3196
|
this.outgoingPaymentId = outgoingPaymentId;
|
|
3192
3197
|
this.typename = typename;
|
|
3193
3198
|
this.failureCode = failureCode;
|
|
@@ -3280,6 +3285,7 @@ ${FRAGMENT12}
|
|
|
3280
3285
|
outgoing_payment_attempt_status: this.status,
|
|
3281
3286
|
outgoing_payment_attempt_failure_code: this.failureCode,
|
|
3282
3287
|
outgoing_payment_attempt_failure_source_index: this.failureSourceIndex,
|
|
3288
|
+
outgoing_payment_attempt_attempted_at: this.attemptedAt,
|
|
3283
3289
|
outgoing_payment_attempt_resolved_at: this.resolvedAt,
|
|
3284
3290
|
outgoing_payment_attempt_amount: this.amount ? CurrencyAmountToJson(this.amount) : void 0,
|
|
3285
3291
|
outgoing_payment_attempt_fees: this.fees ? CurrencyAmountToJson(this.fees) : void 0,
|
|
@@ -3294,6 +3300,7 @@ var OutgoingPaymentAttemptFromJson = (obj) => {
|
|
|
3294
3300
|
obj["outgoing_payment_attempt_created_at"],
|
|
3295
3301
|
obj["outgoing_payment_attempt_updated_at"],
|
|
3296
3302
|
OutgoingPaymentAttemptStatus_default[obj["outgoing_payment_attempt_status"]] ?? OutgoingPaymentAttemptStatus_default.FUTURE_VALUE,
|
|
3303
|
+
obj["outgoing_payment_attempt_attempted_at"],
|
|
3297
3304
|
obj["outgoing_payment_attempt_outgoing_payment"].id,
|
|
3298
3305
|
"OutgoingPaymentAttempt",
|
|
3299
3306
|
!!obj["outgoing_payment_attempt_failure_code"] ? HtlcAttemptFailureCode_default[obj["outgoing_payment_attempt_failure_code"]] ?? HtlcAttemptFailureCode_default.FUTURE_VALUE : null,
|
|
@@ -3315,6 +3322,7 @@ fragment OutgoingPaymentAttemptFragment on OutgoingPaymentAttempt {
|
|
|
3315
3322
|
outgoing_payment_attempt_status: status
|
|
3316
3323
|
outgoing_payment_attempt_failure_code: failure_code
|
|
3317
3324
|
outgoing_payment_attempt_failure_source_index: failure_source_index
|
|
3325
|
+
outgoing_payment_attempt_attempted_at: attempted_at
|
|
3318
3326
|
outgoing_payment_attempt_resolved_at: resolved_at
|
|
3319
3327
|
outgoing_payment_attempt_amount: amount {
|
|
3320
3328
|
__typename
|
|
@@ -3515,6 +3523,7 @@ query FetchOutgoingPaymentToAttemptsConnection($entity_id: ID!, $first: Int, $af
|
|
|
3515
3523
|
outgoing_payment_attempt_status: status
|
|
3516
3524
|
outgoing_payment_attempt_failure_code: failure_code
|
|
3517
3525
|
outgoing_payment_attempt_failure_source_index: failure_source_index
|
|
3526
|
+
outgoing_payment_attempt_attempted_at: attempted_at
|
|
3518
3527
|
outgoing_payment_attempt_resolved_at: resolved_at
|
|
3519
3528
|
outgoing_payment_attempt_amount: amount {
|
|
3520
3529
|
__typename
|
|
@@ -7702,6 +7711,262 @@ ${FRAGMENT18}
|
|
|
7702
7711
|
};
|
|
7703
7712
|
};
|
|
7704
7713
|
|
|
7714
|
+
// src/objects/RegionCode.ts
|
|
7715
|
+
var RegionCode = /* @__PURE__ */ ((RegionCode2) => {
|
|
7716
|
+
RegionCode2["FUTURE_VALUE"] = "FUTURE_VALUE";
|
|
7717
|
+
RegionCode2["AF"] = "AF";
|
|
7718
|
+
RegionCode2["AX"] = "AX";
|
|
7719
|
+
RegionCode2["AL"] = "AL";
|
|
7720
|
+
RegionCode2["DZ"] = "DZ";
|
|
7721
|
+
RegionCode2["AS"] = "AS";
|
|
7722
|
+
RegionCode2["AD"] = "AD";
|
|
7723
|
+
RegionCode2["AO"] = "AO";
|
|
7724
|
+
RegionCode2["AI"] = "AI";
|
|
7725
|
+
RegionCode2["AQ"] = "AQ";
|
|
7726
|
+
RegionCode2["AG"] = "AG";
|
|
7727
|
+
RegionCode2["AR"] = "AR";
|
|
7728
|
+
RegionCode2["AM"] = "AM";
|
|
7729
|
+
RegionCode2["AW"] = "AW";
|
|
7730
|
+
RegionCode2["AU"] = "AU";
|
|
7731
|
+
RegionCode2["AT"] = "AT";
|
|
7732
|
+
RegionCode2["AZ"] = "AZ";
|
|
7733
|
+
RegionCode2["BS"] = "BS";
|
|
7734
|
+
RegionCode2["BH"] = "BH";
|
|
7735
|
+
RegionCode2["BD"] = "BD";
|
|
7736
|
+
RegionCode2["BB"] = "BB";
|
|
7737
|
+
RegionCode2["BY"] = "BY";
|
|
7738
|
+
RegionCode2["BE"] = "BE";
|
|
7739
|
+
RegionCode2["BZ"] = "BZ";
|
|
7740
|
+
RegionCode2["BJ"] = "BJ";
|
|
7741
|
+
RegionCode2["BM"] = "BM";
|
|
7742
|
+
RegionCode2["BT"] = "BT";
|
|
7743
|
+
RegionCode2["BO"] = "BO";
|
|
7744
|
+
RegionCode2["BQ"] = "BQ";
|
|
7745
|
+
RegionCode2["BA"] = "BA";
|
|
7746
|
+
RegionCode2["BW"] = "BW";
|
|
7747
|
+
RegionCode2["BV"] = "BV";
|
|
7748
|
+
RegionCode2["BR"] = "BR";
|
|
7749
|
+
RegionCode2["IO"] = "IO";
|
|
7750
|
+
RegionCode2["BN"] = "BN";
|
|
7751
|
+
RegionCode2["BG"] = "BG";
|
|
7752
|
+
RegionCode2["BF"] = "BF";
|
|
7753
|
+
RegionCode2["BI"] = "BI";
|
|
7754
|
+
RegionCode2["KH"] = "KH";
|
|
7755
|
+
RegionCode2["CM"] = "CM";
|
|
7756
|
+
RegionCode2["CA"] = "CA";
|
|
7757
|
+
RegionCode2["CV"] = "CV";
|
|
7758
|
+
RegionCode2["KY"] = "KY";
|
|
7759
|
+
RegionCode2["CF"] = "CF";
|
|
7760
|
+
RegionCode2["TD"] = "TD";
|
|
7761
|
+
RegionCode2["CL"] = "CL";
|
|
7762
|
+
RegionCode2["CN"] = "CN";
|
|
7763
|
+
RegionCode2["CX"] = "CX";
|
|
7764
|
+
RegionCode2["CC"] = "CC";
|
|
7765
|
+
RegionCode2["CO"] = "CO";
|
|
7766
|
+
RegionCode2["KM"] = "KM";
|
|
7767
|
+
RegionCode2["CG"] = "CG";
|
|
7768
|
+
RegionCode2["CD"] = "CD";
|
|
7769
|
+
RegionCode2["CK"] = "CK";
|
|
7770
|
+
RegionCode2["CR"] = "CR";
|
|
7771
|
+
RegionCode2["CI"] = "CI";
|
|
7772
|
+
RegionCode2["HR"] = "HR";
|
|
7773
|
+
RegionCode2["CU"] = "CU";
|
|
7774
|
+
RegionCode2["CW"] = "CW";
|
|
7775
|
+
RegionCode2["CY"] = "CY";
|
|
7776
|
+
RegionCode2["CZ"] = "CZ";
|
|
7777
|
+
RegionCode2["DK"] = "DK";
|
|
7778
|
+
RegionCode2["DJ"] = "DJ";
|
|
7779
|
+
RegionCode2["DM"] = "DM";
|
|
7780
|
+
RegionCode2["DO"] = "DO";
|
|
7781
|
+
RegionCode2["EC"] = "EC";
|
|
7782
|
+
RegionCode2["EG"] = "EG";
|
|
7783
|
+
RegionCode2["SV"] = "SV";
|
|
7784
|
+
RegionCode2["GQ"] = "GQ";
|
|
7785
|
+
RegionCode2["ER"] = "ER";
|
|
7786
|
+
RegionCode2["EE"] = "EE";
|
|
7787
|
+
RegionCode2["ET"] = "ET";
|
|
7788
|
+
RegionCode2["FK"] = "FK";
|
|
7789
|
+
RegionCode2["FO"] = "FO";
|
|
7790
|
+
RegionCode2["FJ"] = "FJ";
|
|
7791
|
+
RegionCode2["FI"] = "FI";
|
|
7792
|
+
RegionCode2["FR"] = "FR";
|
|
7793
|
+
RegionCode2["GF"] = "GF";
|
|
7794
|
+
RegionCode2["PF"] = "PF";
|
|
7795
|
+
RegionCode2["TF"] = "TF";
|
|
7796
|
+
RegionCode2["GA"] = "GA";
|
|
7797
|
+
RegionCode2["GM"] = "GM";
|
|
7798
|
+
RegionCode2["GE"] = "GE";
|
|
7799
|
+
RegionCode2["DE"] = "DE";
|
|
7800
|
+
RegionCode2["GH"] = "GH";
|
|
7801
|
+
RegionCode2["GI"] = "GI";
|
|
7802
|
+
RegionCode2["GR"] = "GR";
|
|
7803
|
+
RegionCode2["GL"] = "GL";
|
|
7804
|
+
RegionCode2["GD"] = "GD";
|
|
7805
|
+
RegionCode2["GP"] = "GP";
|
|
7806
|
+
RegionCode2["GU"] = "GU";
|
|
7807
|
+
RegionCode2["GT"] = "GT";
|
|
7808
|
+
RegionCode2["GG"] = "GG";
|
|
7809
|
+
RegionCode2["GN"] = "GN";
|
|
7810
|
+
RegionCode2["GW"] = "GW";
|
|
7811
|
+
RegionCode2["GY"] = "GY";
|
|
7812
|
+
RegionCode2["HT"] = "HT";
|
|
7813
|
+
RegionCode2["HM"] = "HM";
|
|
7814
|
+
RegionCode2["VA"] = "VA";
|
|
7815
|
+
RegionCode2["HN"] = "HN";
|
|
7816
|
+
RegionCode2["HK"] = "HK";
|
|
7817
|
+
RegionCode2["HU"] = "HU";
|
|
7818
|
+
RegionCode2["IS"] = "IS";
|
|
7819
|
+
RegionCode2["IN"] = "IN";
|
|
7820
|
+
RegionCode2["ID"] = "ID";
|
|
7821
|
+
RegionCode2["IR"] = "IR";
|
|
7822
|
+
RegionCode2["IQ"] = "IQ";
|
|
7823
|
+
RegionCode2["IE"] = "IE";
|
|
7824
|
+
RegionCode2["IM"] = "IM";
|
|
7825
|
+
RegionCode2["IL"] = "IL";
|
|
7826
|
+
RegionCode2["IT"] = "IT";
|
|
7827
|
+
RegionCode2["JM"] = "JM";
|
|
7828
|
+
RegionCode2["JP"] = "JP";
|
|
7829
|
+
RegionCode2["JE"] = "JE";
|
|
7830
|
+
RegionCode2["JO"] = "JO";
|
|
7831
|
+
RegionCode2["KZ"] = "KZ";
|
|
7832
|
+
RegionCode2["KE"] = "KE";
|
|
7833
|
+
RegionCode2["KI"] = "KI";
|
|
7834
|
+
RegionCode2["KP"] = "KP";
|
|
7835
|
+
RegionCode2["KR"] = "KR";
|
|
7836
|
+
RegionCode2["KW"] = "KW";
|
|
7837
|
+
RegionCode2["KG"] = "KG";
|
|
7838
|
+
RegionCode2["LA"] = "LA";
|
|
7839
|
+
RegionCode2["LV"] = "LV";
|
|
7840
|
+
RegionCode2["LB"] = "LB";
|
|
7841
|
+
RegionCode2["LS"] = "LS";
|
|
7842
|
+
RegionCode2["LR"] = "LR";
|
|
7843
|
+
RegionCode2["LY"] = "LY";
|
|
7844
|
+
RegionCode2["LI"] = "LI";
|
|
7845
|
+
RegionCode2["LT"] = "LT";
|
|
7846
|
+
RegionCode2["LU"] = "LU";
|
|
7847
|
+
RegionCode2["MO"] = "MO";
|
|
7848
|
+
RegionCode2["MK"] = "MK";
|
|
7849
|
+
RegionCode2["MG"] = "MG";
|
|
7850
|
+
RegionCode2["MW"] = "MW";
|
|
7851
|
+
RegionCode2["MY"] = "MY";
|
|
7852
|
+
RegionCode2["MV"] = "MV";
|
|
7853
|
+
RegionCode2["ML"] = "ML";
|
|
7854
|
+
RegionCode2["MT"] = "MT";
|
|
7855
|
+
RegionCode2["MH"] = "MH";
|
|
7856
|
+
RegionCode2["MQ"] = "MQ";
|
|
7857
|
+
RegionCode2["MR"] = "MR";
|
|
7858
|
+
RegionCode2["MU"] = "MU";
|
|
7859
|
+
RegionCode2["YT"] = "YT";
|
|
7860
|
+
RegionCode2["MX"] = "MX";
|
|
7861
|
+
RegionCode2["FM"] = "FM";
|
|
7862
|
+
RegionCode2["MD"] = "MD";
|
|
7863
|
+
RegionCode2["MC"] = "MC";
|
|
7864
|
+
RegionCode2["MN"] = "MN";
|
|
7865
|
+
RegionCode2["ME"] = "ME";
|
|
7866
|
+
RegionCode2["MS"] = "MS";
|
|
7867
|
+
RegionCode2["MA"] = "MA";
|
|
7868
|
+
RegionCode2["MZ"] = "MZ";
|
|
7869
|
+
RegionCode2["MM"] = "MM";
|
|
7870
|
+
RegionCode2["NA"] = "NA";
|
|
7871
|
+
RegionCode2["NR"] = "NR";
|
|
7872
|
+
RegionCode2["NP"] = "NP";
|
|
7873
|
+
RegionCode2["NL"] = "NL";
|
|
7874
|
+
RegionCode2["NC"] = "NC";
|
|
7875
|
+
RegionCode2["NZ"] = "NZ";
|
|
7876
|
+
RegionCode2["NI"] = "NI";
|
|
7877
|
+
RegionCode2["NE"] = "NE";
|
|
7878
|
+
RegionCode2["NG"] = "NG";
|
|
7879
|
+
RegionCode2["NU"] = "NU";
|
|
7880
|
+
RegionCode2["NF"] = "NF";
|
|
7881
|
+
RegionCode2["MP"] = "MP";
|
|
7882
|
+
RegionCode2["NO"] = "NO";
|
|
7883
|
+
RegionCode2["OM"] = "OM";
|
|
7884
|
+
RegionCode2["PK"] = "PK";
|
|
7885
|
+
RegionCode2["PW"] = "PW";
|
|
7886
|
+
RegionCode2["PS"] = "PS";
|
|
7887
|
+
RegionCode2["PA"] = "PA";
|
|
7888
|
+
RegionCode2["PG"] = "PG";
|
|
7889
|
+
RegionCode2["PY"] = "PY";
|
|
7890
|
+
RegionCode2["PE"] = "PE";
|
|
7891
|
+
RegionCode2["PH"] = "PH";
|
|
7892
|
+
RegionCode2["PN"] = "PN";
|
|
7893
|
+
RegionCode2["PL"] = "PL";
|
|
7894
|
+
RegionCode2["PT"] = "PT";
|
|
7895
|
+
RegionCode2["PR"] = "PR";
|
|
7896
|
+
RegionCode2["QA"] = "QA";
|
|
7897
|
+
RegionCode2["RE"] = "RE";
|
|
7898
|
+
RegionCode2["RO"] = "RO";
|
|
7899
|
+
RegionCode2["RU"] = "RU";
|
|
7900
|
+
RegionCode2["RW"] = "RW";
|
|
7901
|
+
RegionCode2["BL"] = "BL";
|
|
7902
|
+
RegionCode2["SH"] = "SH";
|
|
7903
|
+
RegionCode2["KN"] = "KN";
|
|
7904
|
+
RegionCode2["LC"] = "LC";
|
|
7905
|
+
RegionCode2["MF"] = "MF";
|
|
7906
|
+
RegionCode2["PM"] = "PM";
|
|
7907
|
+
RegionCode2["VC"] = "VC";
|
|
7908
|
+
RegionCode2["WS"] = "WS";
|
|
7909
|
+
RegionCode2["SM"] = "SM";
|
|
7910
|
+
RegionCode2["ST"] = "ST";
|
|
7911
|
+
RegionCode2["SA"] = "SA";
|
|
7912
|
+
RegionCode2["SN"] = "SN";
|
|
7913
|
+
RegionCode2["RS"] = "RS";
|
|
7914
|
+
RegionCode2["SC"] = "SC";
|
|
7915
|
+
RegionCode2["SL"] = "SL";
|
|
7916
|
+
RegionCode2["SG"] = "SG";
|
|
7917
|
+
RegionCode2["SX"] = "SX";
|
|
7918
|
+
RegionCode2["SK"] = "SK";
|
|
7919
|
+
RegionCode2["SI"] = "SI";
|
|
7920
|
+
RegionCode2["SB"] = "SB";
|
|
7921
|
+
RegionCode2["SO"] = "SO";
|
|
7922
|
+
RegionCode2["ZA"] = "ZA";
|
|
7923
|
+
RegionCode2["GS"] = "GS";
|
|
7924
|
+
RegionCode2["SS"] = "SS";
|
|
7925
|
+
RegionCode2["ES"] = "ES";
|
|
7926
|
+
RegionCode2["LK"] = "LK";
|
|
7927
|
+
RegionCode2["SD"] = "SD";
|
|
7928
|
+
RegionCode2["SR"] = "SR";
|
|
7929
|
+
RegionCode2["SJ"] = "SJ";
|
|
7930
|
+
RegionCode2["SZ"] = "SZ";
|
|
7931
|
+
RegionCode2["SE"] = "SE";
|
|
7932
|
+
RegionCode2["CH"] = "CH";
|
|
7933
|
+
RegionCode2["SY"] = "SY";
|
|
7934
|
+
RegionCode2["TW"] = "TW";
|
|
7935
|
+
RegionCode2["TJ"] = "TJ";
|
|
7936
|
+
RegionCode2["TZ"] = "TZ";
|
|
7937
|
+
RegionCode2["TH"] = "TH";
|
|
7938
|
+
RegionCode2["TL"] = "TL";
|
|
7939
|
+
RegionCode2["TG"] = "TG";
|
|
7940
|
+
RegionCode2["TK"] = "TK";
|
|
7941
|
+
RegionCode2["TO"] = "TO";
|
|
7942
|
+
RegionCode2["TT"] = "TT";
|
|
7943
|
+
RegionCode2["TN"] = "TN";
|
|
7944
|
+
RegionCode2["TR"] = "TR";
|
|
7945
|
+
RegionCode2["TM"] = "TM";
|
|
7946
|
+
RegionCode2["TC"] = "TC";
|
|
7947
|
+
RegionCode2["TV"] = "TV";
|
|
7948
|
+
RegionCode2["UG"] = "UG";
|
|
7949
|
+
RegionCode2["UA"] = "UA";
|
|
7950
|
+
RegionCode2["AE"] = "AE";
|
|
7951
|
+
RegionCode2["GB"] = "GB";
|
|
7952
|
+
RegionCode2["US"] = "US";
|
|
7953
|
+
RegionCode2["UM"] = "UM";
|
|
7954
|
+
RegionCode2["UY"] = "UY";
|
|
7955
|
+
RegionCode2["UZ"] = "UZ";
|
|
7956
|
+
RegionCode2["VU"] = "VU";
|
|
7957
|
+
RegionCode2["VE"] = "VE";
|
|
7958
|
+
RegionCode2["VN"] = "VN";
|
|
7959
|
+
RegionCode2["VG"] = "VG";
|
|
7960
|
+
RegionCode2["VI"] = "VI";
|
|
7961
|
+
RegionCode2["WF"] = "WF";
|
|
7962
|
+
RegionCode2["EH"] = "EH";
|
|
7963
|
+
RegionCode2["YE"] = "YE";
|
|
7964
|
+
RegionCode2["ZM"] = "ZM";
|
|
7965
|
+
RegionCode2["ZW"] = "ZW";
|
|
7966
|
+
return RegionCode2;
|
|
7967
|
+
})(RegionCode || {});
|
|
7968
|
+
var RegionCode_default = RegionCode;
|
|
7969
|
+
|
|
7705
7970
|
// src/objects/ComplianceProvider.ts
|
|
7706
7971
|
var ComplianceProvider = /* @__PURE__ */ ((ComplianceProvider2) => {
|
|
7707
7972
|
ComplianceProvider2["FUTURE_VALUE"] = "FUTURE_VALUE";
|
|
@@ -7851,6 +8116,29 @@ ${FRAGMENT20}
|
|
|
7851
8116
|
};
|
|
7852
8117
|
};
|
|
7853
8118
|
|
|
8119
|
+
// src/objects/IncentivesIneligibilityReason.ts
|
|
8120
|
+
var IncentivesIneligibilityReason = /* @__PURE__ */ ((IncentivesIneligibilityReason2) => {
|
|
8121
|
+
IncentivesIneligibilityReason2["FUTURE_VALUE"] = "FUTURE_VALUE";
|
|
8122
|
+
IncentivesIneligibilityReason2["DISABLED"] = "DISABLED";
|
|
8123
|
+
IncentivesIneligibilityReason2["SENDER_NOT_ELIGIBLE"] = "SENDER_NOT_ELIGIBLE";
|
|
8124
|
+
IncentivesIneligibilityReason2["RECEIVER_NOT_ELIGIBLE"] = "RECEIVER_NOT_ELIGIBLE";
|
|
8125
|
+
IncentivesIneligibilityReason2["SENDING_VASP_NOT_ELIGIBLE"] = "SENDING_VASP_NOT_ELIGIBLE";
|
|
8126
|
+
IncentivesIneligibilityReason2["RECEIVING_VASP_NOT_ELIGIBLE"] = "RECEIVING_VASP_NOT_ELIGIBLE";
|
|
8127
|
+
IncentivesIneligibilityReason2["NOT_CROSS_BORDER"] = "NOT_CROSS_BORDER";
|
|
8128
|
+
return IncentivesIneligibilityReason2;
|
|
8129
|
+
})(IncentivesIneligibilityReason || {});
|
|
8130
|
+
var IncentivesIneligibilityReason_default = IncentivesIneligibilityReason;
|
|
8131
|
+
|
|
8132
|
+
// src/objects/IncentivesStatus.ts
|
|
8133
|
+
var IncentivesStatus = /* @__PURE__ */ ((IncentivesStatus2) => {
|
|
8134
|
+
IncentivesStatus2["FUTURE_VALUE"] = "FUTURE_VALUE";
|
|
8135
|
+
IncentivesStatus2["PENDING"] = "PENDING";
|
|
8136
|
+
IncentivesStatus2["VALIDATED"] = "VALIDATED";
|
|
8137
|
+
IncentivesStatus2["INELIGIBLE"] = "INELIGIBLE";
|
|
8138
|
+
return IncentivesStatus2;
|
|
8139
|
+
})(IncentivesStatus || {});
|
|
8140
|
+
var IncentivesStatus_default = IncentivesStatus;
|
|
8141
|
+
|
|
7854
8142
|
// src/objects/Invoice.ts
|
|
7855
8143
|
var InvoiceFromJson = (obj) => {
|
|
7856
8144
|
return {
|
|
@@ -9185,13 +9473,61 @@ var TransactionType = /* @__PURE__ */ ((TransactionType2) => {
|
|
|
9185
9473
|
})(TransactionType || {});
|
|
9186
9474
|
var TransactionType_default = TransactionType;
|
|
9187
9475
|
|
|
9476
|
+
// src/objects/UmaInvitation.ts
|
|
9477
|
+
var UmaInvitationFromJson = (obj) => {
|
|
9478
|
+
return {
|
|
9479
|
+
id: obj["uma_invitation_id"],
|
|
9480
|
+
createdAt: obj["uma_invitation_created_at"],
|
|
9481
|
+
updatedAt: obj["uma_invitation_updated_at"],
|
|
9482
|
+
code: obj["uma_invitation_code"],
|
|
9483
|
+
url: obj["uma_invitation_url"],
|
|
9484
|
+
inviterUma: obj["uma_invitation_inviter_uma"],
|
|
9485
|
+
incentivesStatus: IncentivesStatus_default[obj["uma_invitation_incentives_status"]] ?? IncentivesStatus_default.FUTURE_VALUE,
|
|
9486
|
+
typename: "UmaInvitation",
|
|
9487
|
+
inviteeUma: obj["uma_invitation_invitee_uma"],
|
|
9488
|
+
incentivesIneligibilityReason: !!obj["uma_invitation_incentives_ineligibility_reason"] ? IncentivesIneligibilityReason_default[obj["uma_invitation_incentives_ineligibility_reason"]] ?? IncentivesIneligibilityReason_default.FUTURE_VALUE : null
|
|
9489
|
+
};
|
|
9490
|
+
};
|
|
9491
|
+
var FRAGMENT27 = `
|
|
9492
|
+
fragment UmaInvitationFragment on UmaInvitation {
|
|
9493
|
+
__typename
|
|
9494
|
+
uma_invitation_id: id
|
|
9495
|
+
uma_invitation_created_at: created_at
|
|
9496
|
+
uma_invitation_updated_at: updated_at
|
|
9497
|
+
uma_invitation_code: code
|
|
9498
|
+
uma_invitation_url: url
|
|
9499
|
+
uma_invitation_inviter_uma: inviter_uma
|
|
9500
|
+
uma_invitation_invitee_uma: invitee_uma
|
|
9501
|
+
uma_invitation_incentives_status: incentives_status
|
|
9502
|
+
uma_invitation_incentives_ineligibility_reason: incentives_ineligibility_reason
|
|
9503
|
+
}`;
|
|
9504
|
+
var getUmaInvitationQuery = (id) => {
|
|
9505
|
+
return {
|
|
9506
|
+
queryPayload: `
|
|
9507
|
+
query GetUmaInvitation($id: ID!) {
|
|
9508
|
+
entity(id: $id) {
|
|
9509
|
+
... on UmaInvitation {
|
|
9510
|
+
...UmaInvitationFragment
|
|
9511
|
+
}
|
|
9512
|
+
}
|
|
9513
|
+
}
|
|
9514
|
+
|
|
9515
|
+
${FRAGMENT27}
|
|
9516
|
+
`,
|
|
9517
|
+
variables: { id },
|
|
9518
|
+
constructObject: (data) => UmaInvitationFromJson(data.entity)
|
|
9519
|
+
};
|
|
9520
|
+
};
|
|
9521
|
+
|
|
9188
9522
|
// src/objects/WebhookEventType.ts
|
|
9189
9523
|
var WebhookEventType = /* @__PURE__ */ ((WebhookEventType2) => {
|
|
9190
9524
|
WebhookEventType2["FUTURE_VALUE"] = "FUTURE_VALUE";
|
|
9191
9525
|
WebhookEventType2["PAYMENT_FINISHED"] = "PAYMENT_FINISHED";
|
|
9526
|
+
WebhookEventType2["FORCE_CLOSURE"] = "FORCE_CLOSURE";
|
|
9192
9527
|
WebhookEventType2["WITHDRAWAL_FINISHED"] = "WITHDRAWAL_FINISHED";
|
|
9193
9528
|
WebhookEventType2["FUNDS_RECEIVED"] = "FUNDS_RECEIVED";
|
|
9194
9529
|
WebhookEventType2["NODE_STATUS"] = "NODE_STATUS";
|
|
9530
|
+
WebhookEventType2["UMA_INVITATION_CLAIMED"] = "UMA_INVITATION_CLAIMED";
|
|
9195
9531
|
WebhookEventType2["WALLET_STATUS"] = "WALLET_STATUS";
|
|
9196
9532
|
WebhookEventType2["WALLET_OUTGOING_PAYMENT_FINISHED"] = "WALLET_OUTGOING_PAYMENT_FINISHED";
|
|
9197
9533
|
WebhookEventType2["WALLET_INCOMING_PAYMENT_FINISHED"] = "WALLET_INCOMING_PAYMENT_FINISHED";
|
|
@@ -9222,7 +9558,7 @@ var WithdrawalFromJson = (obj) => {
|
|
|
9222
9558
|
numConfirmations: obj["withdrawal_num_confirmations"]
|
|
9223
9559
|
};
|
|
9224
9560
|
};
|
|
9225
|
-
var
|
|
9561
|
+
var FRAGMENT28 = `
|
|
9226
9562
|
fragment WithdrawalFragment on Withdrawal {
|
|
9227
9563
|
__typename
|
|
9228
9564
|
withdrawal_id: id
|
|
@@ -9266,7 +9602,7 @@ query GetWithdrawal($id: ID!) {
|
|
|
9266
9602
|
}
|
|
9267
9603
|
}
|
|
9268
9604
|
|
|
9269
|
-
${
|
|
9605
|
+
${FRAGMENT28}
|
|
9270
9606
|
`,
|
|
9271
9607
|
variables: { id },
|
|
9272
9608
|
constructObject: (data) => WithdrawalFromJson(data.entity)
|
|
@@ -9460,7 +9796,7 @@ query GetWithdrawalRequest($id: ID!) {
|
|
|
9460
9796
|
}
|
|
9461
9797
|
}
|
|
9462
9798
|
|
|
9463
|
-
${
|
|
9799
|
+
${FRAGMENT29}
|
|
9464
9800
|
`,
|
|
9465
9801
|
variables: { id },
|
|
9466
9802
|
constructObject: (data) => WithdrawalRequestFromJson(data.entity)
|
|
@@ -9497,7 +9833,7 @@ var WithdrawalRequestFromJson = (obj) => {
|
|
|
9497
9833
|
obj["withdrawal_request_withdrawal"]?.id ?? void 0
|
|
9498
9834
|
);
|
|
9499
9835
|
};
|
|
9500
|
-
var
|
|
9836
|
+
var FRAGMENT29 = `
|
|
9501
9837
|
fragment WithdrawalRequestFragment on WithdrawalRequest {
|
|
9502
9838
|
__typename
|
|
9503
9839
|
withdrawal_request_id: id
|
|
@@ -9539,6 +9875,8 @@ var WithdrawalRequest_default = WithdrawalRequest;
|
|
|
9539
9875
|
CurrencyUnit,
|
|
9540
9876
|
GraphNode,
|
|
9541
9877
|
HtlcAttemptFailureCode,
|
|
9878
|
+
IncentivesIneligibilityReason,
|
|
9879
|
+
IncentivesStatus,
|
|
9542
9880
|
IncomingPayment,
|
|
9543
9881
|
IncomingPaymentAttemptStatus,
|
|
9544
9882
|
InvoiceType,
|
|
@@ -9553,6 +9891,7 @@ var WithdrawalRequest_default = WithdrawalRequest;
|
|
|
9553
9891
|
PaymentFailureReason,
|
|
9554
9892
|
PaymentRequestStatus,
|
|
9555
9893
|
Permission,
|
|
9894
|
+
RegionCode,
|
|
9556
9895
|
RemoteSigningSubEventType,
|
|
9557
9896
|
RiskRating,
|
|
9558
9897
|
RoutingTransactionFailureReason,
|
|
@@ -9582,5 +9921,6 @@ var WithdrawalRequest_default = WithdrawalRequest;
|
|
|
9582
9921
|
getSignablePayloadQuery,
|
|
9583
9922
|
getSignableQuery,
|
|
9584
9923
|
getTransactionQuery,
|
|
9924
|
+
getUmaInvitationQuery,
|
|
9585
9925
|
getWithdrawalQuery
|
|
9586
9926
|
});
|
|
@@ -0,0 +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 ApiToken, B as Balances, i as BlockchainBalance, C as Channel, j as ChannelClosingTransaction, l as ChannelFees, m as ChannelOpeningTransaction, o as ChannelSnapshot, p as ChannelStatus, q as ChannelToTransactionsConnection, r as ClaimUmaInvitationInput, s as ClaimUmaInvitationOutput, t as ClaimUmaInvitationWithIncentivesInput, u as ClaimUmaInvitationWithIncentivesOutput, v as ComplianceProvider, w as Connection, x as CreateApiTokenInput, y as CreateApiTokenOutput, z as CreateInvitationWithIncentivesInput, D as CreateInvitationWithIncentivesOutput, E as CreateInvoiceInput, F as CreateInvoiceOutput, G as CreateLnurlInvoiceInput, H as CreateNodeWalletAddressInput, I as CreateNodeWalletAddressOutput, J as CreateTestModeInvoiceInput, K as CreateTestModeInvoiceOutput, M as CreateTestModePaymentInput, N as CreateTestModePaymentoutput, O as CreateUmaInvitationInput, P as CreateUmaInvitationOutput, Q as CreateUmaInvoiceInput, R as CurrencyAmount, S as CurrencyUnit, T as DeclineToSignMessagesInput, U as DeclineToSignMessagesOutput, V as DeleteApiTokenInput, X as DeleteApiTokenOutput, Y as Deposit, _ as Entity, $ as FeeEstimate, a0 as FundNodeInput, a1 as FundNodeOutput, a2 as GraphNode, a3 as Hop, a5 as HtlcAttemptFailureCode, a6 as IdAndSignature, a7 as IncentivesIneligibilityReason, a8 as IncentivesStatus, a9 as IncomingPayment, aa as IncomingPaymentAttempt, ac as IncomingPaymentAttemptStatus, ad as IncomingPaymentToAttemptsConnection, ae as Invoice, ag as InvoiceData, ah as InvoiceType, ai as LightningFeeEstimateForInvoiceInput, aj as LightningFeeEstimateForNodeInput, ak as LightningFeeEstimateOutput, al as LightningTransaction, an as LightsparkNode, ap as LightsparkNodeOwner, ar as LightsparkNodeStatus, as as LightsparkNodeToChannelsConnection, at as LightsparkNodeWithOSK, au as LightsparkNodeWithRemoteSigning, av as Node, ax as NodeAddress, ay as NodeAddressType, az as NodeToAddressesConnection, aA as OnChainTransaction, aC as OutgoingPayment, aD as OutgoingPaymentAttempt, aE as OutgoingPaymentAttemptStatus, aF as OutgoingPaymentAttemptToHopsConnection, aI as OutgoingPaymentToAttemptsConnection, aG as OutgoingPaymentsForInvoiceQueryInput, aH as OutgoingPaymentsForInvoiceQueryOutput, aJ as PageInfo, aK as PayInvoiceInput, aL as PayInvoiceOutput, aS as PayUmaInvoiceInput, aM as PaymentDirection, aN as PaymentFailureReason, aO as PaymentRequest, aQ as PaymentRequestData, aR as PaymentRequestStatus, aT as Permission, aU as PostTransactionData, aV as RegionCode, aW as RegisterPaymentInput, aX as RegisterPaymentOutput, aY as ReleaseChannelPerCommitmentSecretInput, aZ as ReleaseChannelPerCommitmentSecretOutput, a_ as ReleasePaymentPreimageInput, a$ as ReleasePaymentPreimageOutput, b0 as RemoteSigningSubEventType, b1 as RequestWithdrawalInput, b2 as RequestWithdrawalOutput, b3 as RichText, b4 as RiskRating, b5 as RoutingTransaction, b7 as RoutingTransactionFailureReason, b8 as ScreenNodeInput, b9 as ScreenNodeOutput, ba as Secret, bb as SendPaymentInput, bc as SendPaymentOutput, bd as SetInvoicePaymentHashInput, be as SetInvoicePaymentHashOutput, bk as SignInvoiceInput, bl as SignInvoiceOutput, bm as SignMessagesInput, bn as SignMessagesOutput, bf as Signable, bh as SignablePayload, bj as SignablePayloadStatus, bo as SingleNodeDashboard, bp as Transaction, br as TransactionFailures, bs as TransactionStatus, bt as TransactionType, bu as TransactionUpdate, bv as UmaInvitation, bx as UpdateChannelPerCommitmentPointInput, by as UpdateChannelPerCommitmentPointOutput, bz as UpdateNodeSharedSecretInput, bA as UpdateNodeSharedSecretOutput, bB as Wallet, bC as WalletStatus, bD as WalletToPaymentRequestsConnection, bE as WalletToTransactionsConnection, W as WebhookEventType, bF as Withdrawal, bH as WithdrawalMode, bI as WithdrawalRequest, bJ as WithdrawalRequestStatus, bK as WithdrawalRequestToChannelClosingTransactionsConnection, bL as WithdrawalRequestToChannelOpeningTransactionsConnection, h as getApiTokenQuery, k as getChannelClosingTransactionQuery, n as getChannelOpeningTransactionQuery, Z as getDepositQuery, a4 as getHopQuery, ab as getIncomingPaymentAttemptQuery, af as getInvoiceQuery, am as getLightningTransactionQuery, aq as getLightsparkNodeOwnerQuery, ao as getLightsparkNodeQuery, aw as getNodeQuery, aB as getOnChainTransactionQuery, aP as getPaymentRequestQuery, b6 as getRoutingTransactionQuery, bi as getSignablePayloadQuery, bg as getSignableQuery, bq as getTransactionQuery, bw as getUmaInvitationQuery, bG as getWithdrawalQuery } from '../index-eb604025.js';
|
|
2
|
+
export { B as BitcoinNetwork } from '../BitcoinNetwork-a816c0be.js';
|
|
3
|
+
import '@lightsparkdev/core';
|
|
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 ApiToken, B as Balances, i as BlockchainBalance, C as Channel, j as ChannelClosingTransaction, l as ChannelFees, m as ChannelOpeningTransaction, o as ChannelSnapshot, p as ChannelStatus, q as ChannelToTransactionsConnection, r as
|
|
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 ApiToken, B as Balances, i as BlockchainBalance, C as Channel, j as ChannelClosingTransaction, l as ChannelFees, m as ChannelOpeningTransaction, o as ChannelSnapshot, p as ChannelStatus, q as ChannelToTransactionsConnection, r as ClaimUmaInvitationInput, s as ClaimUmaInvitationOutput, t as ClaimUmaInvitationWithIncentivesInput, u as ClaimUmaInvitationWithIncentivesOutput, v as ComplianceProvider, w as Connection, x as CreateApiTokenInput, y as CreateApiTokenOutput, z as CreateInvitationWithIncentivesInput, D as CreateInvitationWithIncentivesOutput, E as CreateInvoiceInput, F as CreateInvoiceOutput, G as CreateLnurlInvoiceInput, H as CreateNodeWalletAddressInput, I as CreateNodeWalletAddressOutput, J as CreateTestModeInvoiceInput, K as CreateTestModeInvoiceOutput, M as CreateTestModePaymentInput, N as CreateTestModePaymentoutput, O as CreateUmaInvitationInput, P as CreateUmaInvitationOutput, Q as CreateUmaInvoiceInput, R as CurrencyAmount, S as CurrencyUnit, T as DeclineToSignMessagesInput, U as DeclineToSignMessagesOutput, V as DeleteApiTokenInput, X as DeleteApiTokenOutput, Y as Deposit, _ as Entity, $ as FeeEstimate, a0 as FundNodeInput, a1 as FundNodeOutput, a2 as GraphNode, a3 as Hop, a5 as HtlcAttemptFailureCode, a6 as IdAndSignature, a7 as IncentivesIneligibilityReason, a8 as IncentivesStatus, a9 as IncomingPayment, aa as IncomingPaymentAttempt, ac as IncomingPaymentAttemptStatus, ad as IncomingPaymentToAttemptsConnection, ae as Invoice, ag as InvoiceData, ah as InvoiceType, ai as LightningFeeEstimateForInvoiceInput, aj as LightningFeeEstimateForNodeInput, ak as LightningFeeEstimateOutput, al as LightningTransaction, an as LightsparkNode, ap as LightsparkNodeOwner, ar as LightsparkNodeStatus, as as LightsparkNodeToChannelsConnection, at as LightsparkNodeWithOSK, au as LightsparkNodeWithRemoteSigning, av as Node, ax as NodeAddress, ay as NodeAddressType, az as NodeToAddressesConnection, aA as OnChainTransaction, aC as OutgoingPayment, aD as OutgoingPaymentAttempt, aE as OutgoingPaymentAttemptStatus, aF as OutgoingPaymentAttemptToHopsConnection, aI as OutgoingPaymentToAttemptsConnection, aG as OutgoingPaymentsForInvoiceQueryInput, aH as OutgoingPaymentsForInvoiceQueryOutput, aJ as PageInfo, aK as PayInvoiceInput, aL as PayInvoiceOutput, aS as PayUmaInvoiceInput, aM as PaymentDirection, aN as PaymentFailureReason, aO as PaymentRequest, aQ as PaymentRequestData, aR as PaymentRequestStatus, aT as Permission, aU as PostTransactionData, aV as RegionCode, aW as RegisterPaymentInput, aX as RegisterPaymentOutput, aY as ReleaseChannelPerCommitmentSecretInput, aZ as ReleaseChannelPerCommitmentSecretOutput, a_ as ReleasePaymentPreimageInput, a$ as ReleasePaymentPreimageOutput, b0 as RemoteSigningSubEventType, b1 as RequestWithdrawalInput, b2 as RequestWithdrawalOutput, b3 as RichText, b4 as RiskRating, b5 as RoutingTransaction, b7 as RoutingTransactionFailureReason, b8 as ScreenNodeInput, b9 as ScreenNodeOutput, ba as Secret, bb as SendPaymentInput, bc as SendPaymentOutput, bd as SetInvoicePaymentHashInput, be as SetInvoicePaymentHashOutput, bk as SignInvoiceInput, bl as SignInvoiceOutput, bm as SignMessagesInput, bn as SignMessagesOutput, bf as Signable, bh as SignablePayload, bj as SignablePayloadStatus, bo as SingleNodeDashboard, bp as Transaction, br as TransactionFailures, bs as TransactionStatus, bt as TransactionType, bu as TransactionUpdate, bv as UmaInvitation, bx as UpdateChannelPerCommitmentPointInput, by as UpdateChannelPerCommitmentPointOutput, bz as UpdateNodeSharedSecretInput, bA as UpdateNodeSharedSecretOutput, bB as Wallet, bC as WalletStatus, bD as WalletToPaymentRequestsConnection, bE as WalletToTransactionsConnection, W as WebhookEventType, bF as Withdrawal, bH as WithdrawalMode, bI as WithdrawalRequest, bJ as WithdrawalRequestStatus, bK as WithdrawalRequestToChannelClosingTransactionsConnection, bL as WithdrawalRequestToChannelOpeningTransactionsConnection, h as getApiTokenQuery, k as getChannelClosingTransactionQuery, n as getChannelOpeningTransactionQuery, Z as getDepositQuery, a4 as getHopQuery, ab as getIncomingPaymentAttemptQuery, af as getInvoiceQuery, am as getLightningTransactionQuery, aq as getLightsparkNodeOwnerQuery, ao as getLightsparkNodeQuery, aw as getNodeQuery, aB as getOnChainTransactionQuery, aP as getPaymentRequestQuery, b6 as getRoutingTransactionQuery, bi as getSignablePayloadQuery, bg as getSignableQuery, bq as getTransactionQuery, bw as getUmaInvitationQuery, bG as getWithdrawalQuery } from '../index-eb604025.js';
|
|
2
2
|
export { B as BitcoinNetwork } from '../BitcoinNetwork-a816c0be.js';
|
|
3
3
|
import '@lightsparkdev/core';
|
|
4
4
|
import 'zen-observable';
|
package/dist/objects/index.js
CHANGED
|
@@ -7,6 +7,8 @@ import {
|
|
|
7
7
|
CurrencyUnit_default,
|
|
8
8
|
GraphNode_default,
|
|
9
9
|
HtlcAttemptFailureCode_default,
|
|
10
|
+
IncentivesIneligibilityReason_default,
|
|
11
|
+
IncentivesStatus_default,
|
|
10
12
|
IncomingPaymentAttemptStatus_default,
|
|
11
13
|
IncomingPayment_default,
|
|
12
14
|
InvoiceType_default,
|
|
@@ -21,6 +23,7 @@ import {
|
|
|
21
23
|
PaymentFailureReason_default,
|
|
22
24
|
PaymentRequestStatus_default,
|
|
23
25
|
Permission_default,
|
|
26
|
+
RegionCode_default,
|
|
24
27
|
RemoteSigningSubEventType_default,
|
|
25
28
|
RiskRating_default,
|
|
26
29
|
RoutingTransactionFailureReason_default,
|
|
@@ -50,12 +53,13 @@ import {
|
|
|
50
53
|
getSignablePayloadQuery,
|
|
51
54
|
getSignableQuery,
|
|
52
55
|
getTransactionQuery,
|
|
56
|
+
getUmaInvitationQuery,
|
|
53
57
|
getWithdrawalQuery
|
|
54
|
-
} from "../chunk-
|
|
58
|
+
} from "../chunk-GLL4KTUT.js";
|
|
55
59
|
import {
|
|
56
60
|
BitcoinNetwork_default
|
|
57
61
|
} from "../chunk-K6SAUSAX.js";
|
|
58
|
-
import "../chunk-
|
|
62
|
+
import "../chunk-BMTV3EA2.js";
|
|
59
63
|
export {
|
|
60
64
|
Account_default as Account,
|
|
61
65
|
AccountToChannelsConnection_default as AccountToChannelsConnection,
|
|
@@ -66,6 +70,8 @@ export {
|
|
|
66
70
|
CurrencyUnit_default as CurrencyUnit,
|
|
67
71
|
GraphNode_default as GraphNode,
|
|
68
72
|
HtlcAttemptFailureCode_default as HtlcAttemptFailureCode,
|
|
73
|
+
IncentivesIneligibilityReason_default as IncentivesIneligibilityReason,
|
|
74
|
+
IncentivesStatus_default as IncentivesStatus,
|
|
69
75
|
IncomingPayment_default as IncomingPayment,
|
|
70
76
|
IncomingPaymentAttemptStatus_default as IncomingPaymentAttemptStatus,
|
|
71
77
|
InvoiceType_default as InvoiceType,
|
|
@@ -80,6 +86,7 @@ export {
|
|
|
80
86
|
PaymentFailureReason_default as PaymentFailureReason,
|
|
81
87
|
PaymentRequestStatus_default as PaymentRequestStatus,
|
|
82
88
|
Permission_default as Permission,
|
|
89
|
+
RegionCode_default as RegionCode,
|
|
83
90
|
RemoteSigningSubEventType_default as RemoteSigningSubEventType,
|
|
84
91
|
RiskRating_default as RiskRating,
|
|
85
92
|
RoutingTransactionFailureReason_default as RoutingTransactionFailureReason,
|
|
@@ -109,5 +116,6 @@ export {
|
|
|
109
116
|
getSignablePayloadQuery,
|
|
110
117
|
getSignableQuery,
|
|
111
118
|
getTransactionQuery,
|
|
119
|
+
getUmaInvitationQuery,
|
|
112
120
|
getWithdrawalQuery
|
|
113
121
|
};
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__commonJS
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-BMTV3EA2.js";
|
|
4
4
|
|
|
5
5
|
// ../../node_modules/text-encoding/lib/encoding-indexes.js
|
|
6
6
|
var require_encoding_indexes = __commonJS({
|
|
7
7
|
"../../node_modules/text-encoding/lib/encoding-indexes.js"(exports, module) {
|
|
8
|
+
"use strict";
|
|
8
9
|
(function(global) {
|
|
9
10
|
"use strict";
|
|
10
11
|
if (typeof module !== "undefined" && module.exports) {
|
|
@@ -52,6 +53,7 @@ var require_encoding_indexes = __commonJS({
|
|
|
52
53
|
// ../../node_modules/text-encoding/lib/encoding.js
|
|
53
54
|
var require_encoding = __commonJS({
|
|
54
55
|
"../../node_modules/text-encoding/lib/encoding.js"(exports, module) {
|
|
56
|
+
"use strict";
|
|
55
57
|
(function(global) {
|
|
56
58
|
"use strict";
|
|
57
59
|
if (typeof module !== "undefined" && module.exports && !global["encoding-indexes"]) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lightsparkdev/lightspark-sdk",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.2",
|
|
4
4
|
"description": "Lightspark JS SDK",
|
|
5
5
|
"author": "Lightspark Inc.",
|
|
6
6
|
"keywords": [
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
},
|
|
89
89
|
"license": "Apache-2.0",
|
|
90
90
|
"dependencies": {
|
|
91
|
-
"@lightsparkdev/core": "1.0.
|
|
91
|
+
"@lightsparkdev/core": "1.0.10",
|
|
92
92
|
"@lightsparkdev/crypto-wasm": "0.1.2",
|
|
93
93
|
"auto-bind": "^5.0.1",
|
|
94
94
|
"crypto-browserify": "^3.12.0",
|
|
@@ -110,10 +110,10 @@
|
|
|
110
110
|
"eslint-watch": "^8.0.0",
|
|
111
111
|
"jest": "^29.6.2",
|
|
112
112
|
"prettier": "3.0.3",
|
|
113
|
-
"prettier-plugin-organize-imports": "^3.2.
|
|
113
|
+
"prettier-plugin-organize-imports": "^3.2.4",
|
|
114
114
|
"ts-jest": "^29.1.1",
|
|
115
115
|
"tsc-absolute": "^1.0.1",
|
|
116
|
-
"tsup": "^
|
|
116
|
+
"tsup": "^7.2.0",
|
|
117
117
|
"typedoc": "^0.24.7",
|
|
118
118
|
"typescript": "^4.9.5"
|
|
119
119
|
}
|
|
@@ -17,25 +17,29 @@ class AccountTokenAuthProvider implements AuthProvider {
|
|
|
17
17
|
autoBind(this);
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
|
|
20
|
+
addWsConnectionParams(
|
|
21
21
|
params: Record<string, string>,
|
|
22
22
|
): Promise<Record<string, string>> {
|
|
23
|
-
return
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
23
|
+
return Promise.resolve(
|
|
24
|
+
Object.assign({}, params, {
|
|
25
|
+
client_id: this.apiTokenClientId,
|
|
26
|
+
client_secret: this.apiTokenClientSecret,
|
|
27
|
+
}),
|
|
28
|
+
);
|
|
27
29
|
}
|
|
28
30
|
|
|
29
|
-
|
|
31
|
+
addAuthHeaders(
|
|
30
32
|
headers: Record<string, string>,
|
|
31
33
|
): Promise<Record<string, string>> {
|
|
32
|
-
return
|
|
33
|
-
|
|
34
|
-
|
|
34
|
+
return Promise.resolve(
|
|
35
|
+
Object.assign({}, headers, {
|
|
36
|
+
authorization: `Basic ${b64encode(this.utf8AuthBytes)}`,
|
|
37
|
+
}),
|
|
38
|
+
);
|
|
35
39
|
}
|
|
36
40
|
|
|
37
|
-
|
|
38
|
-
return true;
|
|
41
|
+
isAuthorized(): Promise<boolean> {
|
|
42
|
+
return Promise.resolve(true);
|
|
39
43
|
}
|
|
40
44
|
}
|
|
41
45
|
|