@lightsparkdev/lightspark-sdk 1.9.5 → 1.9.6
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 +6 -0
- package/dist/{chunk-VCNFGP4P.js → chunk-INED3BP4.js} +84 -47
- package/dist/{index-CCNALIhi.d.cts → index-B_qpP_0o.d.cts} +120 -36
- package/dist/{index-gyjGw7N4.d.ts → index-CZqitvax.d.ts} +120 -36
- package/dist/index.cjs +101 -44
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +24 -2
- package/dist/objects/index.cjs +83 -44
- 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 +13 -0
- package/src/graphql/LookupUmaAddress.ts +9 -0
- package/src/objects/CancelUmaInvitationInput.ts +22 -0
- package/src/objects/CancelUmaInvitationOutput.ts +30 -0
- package/src/objects/ChannelStatus.ts +2 -2
- 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 +8 -3
- package/src/objects/Entity.ts +21 -0
- package/src/objects/LookupUmaAddressInput.ts +22 -0
- package/src/objects/Permission.ts +6 -0
- package/src/objects/TransactionStatus.ts +2 -3
- package/src/objects/UmaCurrency.ts +100 -0
- package/src/objects/UmaCurrencyAmount.ts +24 -37
- package/src/objects/UmaInvitation.ts +37 -33
- package/src/objects/UmaInvitationStatus.ts +19 -0
- package/src/objects/WalletStatus.ts +2 -2
- package/src/objects/WebhookEventType.ts +2 -0
- package/src/objects/index.ts +6 -0
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AuthProvider } from '@lightsparkdev/core';
|
|
2
|
-
import { W as WebhookEventType, L as LightsparkClient } from './index-
|
|
3
|
-
export { A as Account, a as AccountToApiTokensConnection, b as AccountToChannelsConnection, c as AccountToNodesConnection, d as AccountToPaymentRequestsConnection, e as AccountToTransactionsConnection, f as AccountToWalletsConnection, g as AccountToWithdrawalRequestsConnection, h as ApiToken, j as AuditLogActor, B as Balances, l as BlockchainBalance, C as CancelInvoiceInput, m as CancelInvoiceOutput, n as
|
|
2
|
+
import { W as WebhookEventType, L as LightsparkClient } from './index-CZqitvax.js';
|
|
3
|
+
export { A as Account, a as AccountToApiTokensConnection, b as AccountToChannelsConnection, c as AccountToNodesConnection, d as AccountToPaymentRequestsConnection, e as AccountToTransactionsConnection, f as AccountToWalletsConnection, g as AccountToWithdrawalRequestsConnection, h as ApiToken, j as AuditLogActor, B as Balances, l as BlockchainBalance, C as CancelInvoiceInput, m as CancelInvoiceOutput, n as CancelUmaInvitationInput, o as CancelUmaInvitationOutput, p as Channel, q as ChannelClosingTransaction, s as ChannelFees, t as ChannelOpeningTransaction, v as ChannelSnapshot, x as ChannelStatus, y as ChannelToTransactionsConnection, z as ClaimUmaInvitationInput, D as ClaimUmaInvitationOutput, E as ClaimUmaInvitationWithIncentivesInput, F as ClaimUmaInvitationWithIncentivesOutput, G as ComplianceProvider, H as Connection, I as CreateApiTokenInput, J as CreateApiTokenOutput, K as CreateInvitationWithIncentivesInput, M as CreateInvitationWithIncentivesOutput, N as CreateInvoiceInput, O as CreateInvoiceOutput, P as CreateLnurlInvoiceInput, Q as CreateNodeWalletAddressInput, R as CreateNodeWalletAddressOutput, S as CreateOfferInput, T as CreateOfferOutput, U as CreateTestModeInvoiceInput, V as CreateTestModeInvoiceOutput, X as CreateTestModePaymentInput, Y as CreateTestModePaymentoutput, Z as CreateUmaInvitationInput, _ as CreateUmaInvitationOutput, $ as CreateUmaInvoiceInput, a0 as CurrencyAmount, a1 as CurrencyAmountInput, a2 as CurrencyUnit, a3 as DailyLiquidityForecast, a4 as DeclineToSignMessagesInput, a5 as DeclineToSignMessagesOutput, a6 as DeleteApiTokenInput, a7 as DeleteApiTokenOutput, a8 as Deposit, aa as Entity, ab as FailHtlcsInput, ac as FailHtlcsOutput, ad as FeeEstimate, ae as FundNodeInput, af as FundNodeOutput, ag as GraphNode, ah as Hop, aj as HtlcAttemptFailureCode, ak as IdAndSignature, al as IncentivesIneligibilityReason, am as IncentivesStatus, an as IncomingPayment, ao as IncomingPaymentAttempt, aq as IncomingPaymentAttemptStatus, av as IncomingPaymentToAttemptsConnection, ar as IncomingPaymentsForInvoiceQueryInput, as as IncomingPaymentsForInvoiceQueryOutput, at as IncomingPaymentsForPaymentHashQueryInput, au as IncomingPaymentsForPaymentHashQueryOutput, aw as Invoice, ay as InvoiceData, az as InvoiceForPaymentHashInput, aA as InvoiceForPaymentHashOutput, aB as InvoiceType, aC as LightningFeeEstimateForInvoiceInput, aD as LightningFeeEstimateForNodeInput, aE as LightningFeeEstimateOutput, aF as LightningPaymentDirection, aG as LightningTransaction, aI as LightsparkNode, aK as LightsparkNodeOwner, aM as LightsparkNodeStatus, aN as LightsparkNodeToChannelsConnection, aO as LightsparkNodeToDailyLiquidityForecastsConnection, aP as LightsparkNodeWithOSK, aQ as LightsparkNodeWithRemoteSigning, aR as LookupUmaAddressInput, aS as MultiSigAddressValidationParameters, aT as Node, aV as NodeAddress, aW as NodeAddressType, aX as NodeToAddressesConnection, aY as Offer, a_ as OfferData, b0 as OnChainFeeTarget, b1 as OnChainTransaction, b3 as OutgoingPayment, b4 as OutgoingPaymentAttempt, b5 as OutgoingPaymentAttemptStatus, b6 as OutgoingPaymentAttemptToHopsConnection, b7 as OutgoingPaymentForIdempotencyKeyInput, b8 as OutgoingPaymentForIdempotencyKeyOutput, bd as OutgoingPaymentToAttemptsConnection, b9 as OutgoingPaymentsForInvoiceQueryInput, ba as OutgoingPaymentsForInvoiceQueryOutput, bb as OutgoingPaymentsForPaymentHashQueryInput, bc as OutgoingPaymentsForPaymentHashQueryOutput, be as PageInfo, bf as PayInvoiceInput, bg as PayInvoiceOutput, bn as PayOfferInput, bo as PayOfferOutput, bp as PayTestModeInvoiceInput, bq as PayUmaInvoiceInput, bh as PaymentDirection, bi as PaymentFailureReason, bj as PaymentRequest, bl as PaymentRequestData, bm as PaymentRequestStatus, br as Permission, bs as PostTransactionData, bt as RegionCode, bu as RegisterPaymentInput, bv as RegisterPaymentOutput, bw as ReleaseChannelPerCommitmentSecretInput, bx as ReleaseChannelPerCommitmentSecretOutput, by as ReleasePaymentPreimageInput, bz as ReleasePaymentPreimageOutput, bA as RemoteSigningSubEventType, bB as RequestInitiator, bC as RequestWithdrawalInput, bD as RequestWithdrawalOutput, bE as RichText, bF as RiskRating, bG as RoutingTransaction, bI as RoutingTransactionFailureReason, bJ as ScreenNodeInput, bK as ScreenNodeOutput, bL as Secret, bM as SendPaymentInput, bN as SendPaymentOutput, bO as SetInvoicePaymentHashInput, bP as SetInvoicePaymentHashOutput, bV as SignInvoiceInput, bW as SignInvoiceOutput, bX as SignMessagesInput, bY as SignMessagesOutput, bQ as Signable, bS as SignablePayload, bU as SignablePayloadStatus, bZ as SingleNodeDashboard, b_ as Transaction, c0 as TransactionFailures, c1 as TransactionStatus, c2 as TransactionType, c3 as TransactionUpdate, c4 as UmaCurrency, c6 as UmaCurrencyAmount, c7 as UmaInvitation, c9 as UmaInvitationStatus, ca as UpdateChannelPerCommitmentPointInput, cb as UpdateChannelPerCommitmentPointOutput, cc as UpdateNodeSharedSecretInput, cd as UpdateNodeSharedSecretOutput, ce as Wallet, cf as WalletStatus, cg as WalletToPaymentRequestsConnection, ch as WalletToTransactionsConnection, ci as WalletToWithdrawalRequestsConnection, cj as Withdrawal, cl as WithdrawalFeeEstimateInput, cm as WithdrawalFeeEstimateOutput, cn as WithdrawalMode, co as WithdrawalRequest, cp as WithdrawalRequestStatus, cq as WithdrawalRequestToChannelClosingTransactionsConnection, cr as WithdrawalRequestToChannelOpeningTransactionsConnection, cs as WithdrawalRequestToWithdrawalsConnection, i as getApiTokenQuery, k as getAuditLogActorQuery, r as getChannelClosingTransactionQuery, u as getChannelOpeningTransactionQuery, w as getChannelSnapshotQuery, a9 as getDepositQuery, ai as getHopQuery, ap as getIncomingPaymentAttemptQuery, ax as getInvoiceQuery, aH as getLightningTransactionQuery, aL as getLightsparkNodeOwnerQuery, aJ as getLightsparkNodeQuery, aU as getNodeQuery, a$ as getOfferDataQuery, aZ as getOfferQuery, b2 as getOnChainTransactionQuery, bk as getPaymentRequestQuery, bH as getRoutingTransactionQuery, bT as getSignablePayloadQuery, bR as getSignableQuery, b$ as getTransactionQuery, c5 as getUmaCurrencyQuery, c8 as getUmaInvitationQuery, ck as getWithdrawalQuery } from './index-CZqitvax.js';
|
|
4
4
|
import { B as BitcoinNetwork } from './BitcoinNetwork-CIfB1c0X.js';
|
|
5
5
|
import 'zen-observable';
|
|
6
6
|
|
package/dist/index.js
CHANGED
|
@@ -62,6 +62,7 @@ import {
|
|
|
62
62
|
TransactionType_default,
|
|
63
63
|
TransactionUpdateFromJson,
|
|
64
64
|
UmaInvitationFromJson,
|
|
65
|
+
UmaInvitationStatus_default,
|
|
65
66
|
WalletStatus_default,
|
|
66
67
|
Wallet_default,
|
|
67
68
|
WebhookEventType,
|
|
@@ -93,9 +94,10 @@ import {
|
|
|
93
94
|
getSignablePayloadQuery,
|
|
94
95
|
getSignableQuery,
|
|
95
96
|
getTransactionQuery,
|
|
97
|
+
getUmaCurrencyQuery,
|
|
96
98
|
getUmaInvitationQuery,
|
|
97
99
|
getWithdrawalQuery
|
|
98
|
-
} from "./chunk-
|
|
100
|
+
} from "./chunk-INED3BP4.js";
|
|
99
101
|
import {
|
|
100
102
|
BitcoinNetwork_default
|
|
101
103
|
} from "./chunk-K6SAUSAX.js";
|
|
@@ -153,7 +155,7 @@ import {
|
|
|
153
155
|
// package.json
|
|
154
156
|
var package_default = {
|
|
155
157
|
name: "@lightsparkdev/lightspark-sdk",
|
|
156
|
-
version: "1.9.
|
|
158
|
+
version: "1.9.6",
|
|
157
159
|
description: "Lightspark JS SDK",
|
|
158
160
|
author: "Lightspark Inc.",
|
|
159
161
|
keywords: [
|
|
@@ -869,6 +871,15 @@ var LightningFeeEstimateForNode = `
|
|
|
869
871
|
${FRAGMENT8}
|
|
870
872
|
`;
|
|
871
873
|
|
|
874
|
+
// src/graphql/LookupUmaAddress.ts
|
|
875
|
+
var LookupUmaAddress = `
|
|
876
|
+
query LookupUmaAddress(
|
|
877
|
+
$uma_address: String!
|
|
878
|
+
) {
|
|
879
|
+
lookup_uma_address(input: { uma_address: $uma_address })
|
|
880
|
+
}
|
|
881
|
+
`;
|
|
882
|
+
|
|
872
883
|
// src/graphql/MultiNodeDashboard.ts
|
|
873
884
|
var MultiNodeDashboard = `
|
|
874
885
|
query MultiNodeDashboard(
|
|
@@ -2708,6 +2719,15 @@ var LightsparkClient = class {
|
|
|
2708
2719
|
}
|
|
2709
2720
|
});
|
|
2710
2721
|
}
|
|
2722
|
+
async lookupUmaAddress(umaAddress) {
|
|
2723
|
+
return await this.executeRawQuery({
|
|
2724
|
+
queryPayload: LookupUmaAddress,
|
|
2725
|
+
variables: { uma_address: umaAddress },
|
|
2726
|
+
constructObject: (responseJson) => {
|
|
2727
|
+
return responseJson.lookup_uma_address;
|
|
2728
|
+
}
|
|
2729
|
+
});
|
|
2730
|
+
}
|
|
2711
2731
|
};
|
|
2712
2732
|
var client_default = LightsparkClient;
|
|
2713
2733
|
|
|
@@ -2805,6 +2825,7 @@ export {
|
|
|
2805
2825
|
SignablePayloadStatus_default as SignablePayloadStatus,
|
|
2806
2826
|
TransactionStatus_default as TransactionStatus,
|
|
2807
2827
|
TransactionType_default as TransactionType,
|
|
2828
|
+
UmaInvitationStatus_default as UmaInvitationStatus,
|
|
2808
2829
|
WEBHOOKS_SIGNATURE_HEADER,
|
|
2809
2830
|
Wallet_default as Wallet,
|
|
2810
2831
|
WalletStatus_default as WalletStatus,
|
|
@@ -2835,6 +2856,7 @@ export {
|
|
|
2835
2856
|
getSignablePayloadQuery,
|
|
2836
2857
|
getSignableQuery,
|
|
2837
2858
|
getTransactionQuery,
|
|
2859
|
+
getUmaCurrencyQuery,
|
|
2838
2860
|
getUmaInvitationQuery,
|
|
2839
2861
|
getWithdrawalQuery,
|
|
2840
2862
|
isBitcoinNetwork,
|
package/dist/objects/index.cjs
CHANGED
|
@@ -54,6 +54,7 @@ __export(objects_exports, {
|
|
|
54
54
|
SignablePayloadStatus: () => SignablePayloadStatus_default,
|
|
55
55
|
TransactionStatus: () => TransactionStatus_default,
|
|
56
56
|
TransactionType: () => TransactionType_default,
|
|
57
|
+
UmaInvitationStatus: () => UmaInvitationStatus_default,
|
|
57
58
|
Wallet: () => Wallet_default,
|
|
58
59
|
WalletStatus: () => WalletStatus_default,
|
|
59
60
|
WebhookEventType: () => WebhookEventType_default,
|
|
@@ -81,6 +82,7 @@ __export(objects_exports, {
|
|
|
81
82
|
getSignablePayloadQuery: () => getSignablePayloadQuery,
|
|
82
83
|
getSignableQuery: () => getSignableQuery,
|
|
83
84
|
getTransactionQuery: () => getTransactionQuery,
|
|
85
|
+
getUmaCurrencyQuery: () => getUmaCurrencyQuery,
|
|
84
86
|
getUmaInvitationQuery: () => getUmaInvitationQuery,
|
|
85
87
|
getWithdrawalQuery: () => getWithdrawalQuery
|
|
86
88
|
});
|
|
@@ -138,6 +140,9 @@ var Permission = /* @__PURE__ */ ((Permission2) => {
|
|
|
138
140
|
Permission2["REGTEST_VIEW"] = "REGTEST_VIEW";
|
|
139
141
|
Permission2["REGTEST_TRANSACT"] = "REGTEST_TRANSACT";
|
|
140
142
|
Permission2["REGTEST_MANAGE"] = "REGTEST_MANAGE";
|
|
143
|
+
Permission2["SIGNET_VIEW"] = "SIGNET_VIEW";
|
|
144
|
+
Permission2["SIGNET_TRANSACT"] = "SIGNET_TRANSACT";
|
|
145
|
+
Permission2["SIGNET_MANAGE"] = "SIGNET_MANAGE";
|
|
141
146
|
Permission2["USER_VIEW"] = "USER_VIEW";
|
|
142
147
|
Permission2["USER_MANAGE"] = "USER_MANAGE";
|
|
143
148
|
Permission2["ACCOUNT_VIEW"] = "ACCOUNT_VIEW";
|
|
@@ -224,6 +229,9 @@ var CurrencyUnit = /* @__PURE__ */ ((CurrencyUnit2) => {
|
|
|
224
229
|
CurrencyUnit2["USD"] = "USD";
|
|
225
230
|
CurrencyUnit2["MXN"] = "MXN";
|
|
226
231
|
CurrencyUnit2["PHP"] = "PHP";
|
|
232
|
+
CurrencyUnit2["EUR"] = "EUR";
|
|
233
|
+
CurrencyUnit2["GBP"] = "GBP";
|
|
234
|
+
CurrencyUnit2["INR"] = "INR";
|
|
227
235
|
CurrencyUnit2["NANOBITCOIN"] = "NANOBITCOIN";
|
|
228
236
|
CurrencyUnit2["MICROBITCOIN"] = "MICROBITCOIN";
|
|
229
237
|
CurrencyUnit2["MILLIBITCOIN"] = "MILLIBITCOIN";
|
|
@@ -10501,41 +10509,71 @@ var TransactionType = /* @__PURE__ */ ((TransactionType2) => {
|
|
|
10501
10509
|
})(TransactionType || {});
|
|
10502
10510
|
var TransactionType_default = TransactionType;
|
|
10503
10511
|
|
|
10504
|
-
// src/objects/
|
|
10512
|
+
// src/objects/UmaCurrency.ts
|
|
10505
10513
|
var import_core35 = require("@lightsparkdev/core");
|
|
10514
|
+
var UmaCurrencyFromJson = (obj) => {
|
|
10515
|
+
return {
|
|
10516
|
+
id: obj["uma_currency_id"],
|
|
10517
|
+
createdAt: obj["uma_currency_created_at"],
|
|
10518
|
+
updatedAt: obj["uma_currency_updated_at"],
|
|
10519
|
+
code: obj["uma_currency_code"],
|
|
10520
|
+
symbol: obj["uma_currency_symbol"],
|
|
10521
|
+
name: obj["uma_currency_name"],
|
|
10522
|
+
decimals: obj["uma_currency_decimals"],
|
|
10523
|
+
typename: "UmaCurrency"
|
|
10524
|
+
};
|
|
10525
|
+
};
|
|
10526
|
+
var FRAGMENT33 = `
|
|
10527
|
+
fragment UmaCurrencyFragment on UmaCurrency {
|
|
10528
|
+
__typename
|
|
10529
|
+
uma_currency_id: id
|
|
10530
|
+
uma_currency_created_at: created_at
|
|
10531
|
+
uma_currency_updated_at: updated_at
|
|
10532
|
+
uma_currency_code: code
|
|
10533
|
+
uma_currency_symbol: symbol
|
|
10534
|
+
uma_currency_name: name
|
|
10535
|
+
uma_currency_decimals: decimals
|
|
10536
|
+
}`;
|
|
10537
|
+
var getUmaCurrencyQuery = (id) => {
|
|
10538
|
+
return {
|
|
10539
|
+
queryPayload: `
|
|
10540
|
+
query GetUmaCurrency($id: ID!) {
|
|
10541
|
+
entity(id: $id) {
|
|
10542
|
+
... on UmaCurrency {
|
|
10543
|
+
...UmaCurrencyFragment
|
|
10544
|
+
}
|
|
10545
|
+
}
|
|
10546
|
+
}
|
|
10547
|
+
|
|
10548
|
+
${FRAGMENT33}
|
|
10549
|
+
`,
|
|
10550
|
+
variables: { id },
|
|
10551
|
+
constructObject: (data) => (0, import_core35.isObject)(data) && "entity" in data && (0, import_core35.isObject)(data.entity) ? UmaCurrencyFromJson(data.entity) : null
|
|
10552
|
+
};
|
|
10553
|
+
};
|
|
10506
10554
|
|
|
10507
10555
|
// src/objects/UmaCurrencyAmount.ts
|
|
10508
|
-
var
|
|
10509
|
-
|
|
10510
|
-
|
|
10511
|
-
|
|
10512
|
-
|
|
10513
|
-
this.currency = currency;
|
|
10514
|
-
}
|
|
10515
|
-
static fromJson(obj) {
|
|
10516
|
-
if (!obj || !obj.currency) {
|
|
10517
|
-
throw new Error("Invalid currency amount data");
|
|
10518
|
-
}
|
|
10519
|
-
return new _UmaCurrencyAmount(obj.value, {
|
|
10520
|
-
code: obj.currency.code,
|
|
10521
|
-
symbol: obj.currency.symbol,
|
|
10522
|
-
decimals: obj.currency.decimals,
|
|
10523
|
-
name: obj.currency.name
|
|
10524
|
-
});
|
|
10525
|
-
}
|
|
10526
|
-
toJson() {
|
|
10527
|
-
return {
|
|
10528
|
-
value: this.value,
|
|
10529
|
-
currency: {
|
|
10530
|
-
code: this.currency.code,
|
|
10531
|
-
symbol: this.currency.symbol,
|
|
10532
|
-
decimals: this.currency.decimals,
|
|
10533
|
-
name: this.currency.name
|
|
10534
|
-
}
|
|
10535
|
-
};
|
|
10536
|
-
}
|
|
10556
|
+
var UmaCurrencyAmountFromJson = (obj) => {
|
|
10557
|
+
return {
|
|
10558
|
+
value: obj["uma_currency_amount_value"],
|
|
10559
|
+
currencyId: obj["uma_currency_amount_currency"].id
|
|
10560
|
+
};
|
|
10537
10561
|
};
|
|
10538
10562
|
|
|
10563
|
+
// src/objects/UmaInvitation.ts
|
|
10564
|
+
var import_core36 = require("@lightsparkdev/core");
|
|
10565
|
+
|
|
10566
|
+
// src/objects/UmaInvitationStatus.ts
|
|
10567
|
+
var UmaInvitationStatus = /* @__PURE__ */ ((UmaInvitationStatus2) => {
|
|
10568
|
+
UmaInvitationStatus2["FUTURE_VALUE"] = "FUTURE_VALUE";
|
|
10569
|
+
UmaInvitationStatus2["PENDING"] = "PENDING";
|
|
10570
|
+
UmaInvitationStatus2["CLAIMED"] = "CLAIMED";
|
|
10571
|
+
UmaInvitationStatus2["CANCELLED"] = "CANCELLED";
|
|
10572
|
+
UmaInvitationStatus2["EXPIRED"] = "EXPIRED";
|
|
10573
|
+
return UmaInvitationStatus2;
|
|
10574
|
+
})(UmaInvitationStatus || {});
|
|
10575
|
+
var UmaInvitationStatus_default = UmaInvitationStatus;
|
|
10576
|
+
|
|
10539
10577
|
// src/objects/UmaInvitation.ts
|
|
10540
10578
|
var UmaInvitationFromJson = (obj) => {
|
|
10541
10579
|
return {
|
|
@@ -10546,18 +10584,17 @@ var UmaInvitationFromJson = (obj) => {
|
|
|
10546
10584
|
url: obj["uma_invitation_url"],
|
|
10547
10585
|
inviterUma: obj["uma_invitation_inviter_uma"],
|
|
10548
10586
|
incentivesStatus: IncentivesStatus_default[obj["uma_invitation_incentives_status"]] ?? IncentivesStatus_default.FUTURE_VALUE,
|
|
10587
|
+
status: UmaInvitationStatus_default[obj["uma_invitation_status"]] ?? UmaInvitationStatus_default.FUTURE_VALUE,
|
|
10549
10588
|
typename: "UmaInvitation",
|
|
10589
|
+
inviterFirstName: obj["uma_invitation_inviter_first_name"],
|
|
10550
10590
|
inviteeUma: obj["uma_invitation_invitee_uma"],
|
|
10551
|
-
incentivesIneligibilityReason: !!obj["uma_invitation_incentives_ineligibility_reason"] ? obj["uma_invitation_incentives_ineligibility_reason"] ?? IncentivesIneligibilityReason_default.FUTURE_VALUE : null,
|
|
10552
|
-
|
|
10553
|
-
throw new Error("Required field 'uma_invitation_status' is missing");
|
|
10554
|
-
})(),
|
|
10555
|
-
paymentAmount: obj["uma_invitation_payment_amount"] ? UmaCurrencyAmount.fromJson(obj["uma_invitation_payment_amount"]) : void 0,
|
|
10591
|
+
incentivesIneligibilityReason: !!obj["uma_invitation_incentives_ineligibility_reason"] ? IncentivesIneligibilityReason_default[obj["uma_invitation_incentives_ineligibility_reason"]] ?? IncentivesIneligibilityReason_default.FUTURE_VALUE : null,
|
|
10592
|
+
paymentAmount: !!obj["uma_invitation_payment_amount"] ? UmaCurrencyAmountFromJson(obj["uma_invitation_payment_amount"]) : void 0,
|
|
10556
10593
|
cancelledAt: obj["uma_invitation_cancelled_at"],
|
|
10557
10594
|
expiresAt: obj["uma_invitation_expires_at"]
|
|
10558
10595
|
};
|
|
10559
10596
|
};
|
|
10560
|
-
var
|
|
10597
|
+
var FRAGMENT34 = `
|
|
10561
10598
|
fragment UmaInvitationFragment on UmaInvitation {
|
|
10562
10599
|
__typename
|
|
10563
10600
|
uma_invitation_id: id
|
|
@@ -10566,17 +10603,16 @@ fragment UmaInvitationFragment on UmaInvitation {
|
|
|
10566
10603
|
uma_invitation_code: code
|
|
10567
10604
|
uma_invitation_url: url
|
|
10568
10605
|
uma_invitation_inviter_uma: inviter_uma
|
|
10606
|
+
uma_invitation_inviter_first_name: inviter_first_name
|
|
10569
10607
|
uma_invitation_invitee_uma: invitee_uma
|
|
10570
10608
|
uma_invitation_incentives_status: incentives_status
|
|
10571
10609
|
uma_invitation_incentives_ineligibility_reason: incentives_ineligibility_reason
|
|
10572
10610
|
uma_invitation_status: status
|
|
10573
10611
|
uma_invitation_payment_amount: payment_amount {
|
|
10574
|
-
|
|
10575
|
-
|
|
10576
|
-
|
|
10577
|
-
|
|
10578
|
-
decimals
|
|
10579
|
-
name
|
|
10612
|
+
__typename
|
|
10613
|
+
uma_currency_amount_value: value
|
|
10614
|
+
uma_currency_amount_currency: currency {
|
|
10615
|
+
id
|
|
10580
10616
|
}
|
|
10581
10617
|
}
|
|
10582
10618
|
uma_invitation_cancelled_at: cancelled_at
|
|
@@ -10593,10 +10629,10 @@ query GetUmaInvitation($id: ID!) {
|
|
|
10593
10629
|
}
|
|
10594
10630
|
}
|
|
10595
10631
|
|
|
10596
|
-
${
|
|
10632
|
+
${FRAGMENT34}
|
|
10597
10633
|
`,
|
|
10598
10634
|
variables: { id },
|
|
10599
|
-
constructObject: (data) => (0,
|
|
10635
|
+
constructObject: (data) => (0, import_core36.isObject)(data) && "entity" in data && (0, import_core36.isObject)(data.entity) ? UmaInvitationFromJson(data.entity) : null
|
|
10600
10636
|
};
|
|
10601
10637
|
};
|
|
10602
10638
|
|
|
@@ -10618,6 +10654,7 @@ var WebhookEventType = /* @__PURE__ */ ((WebhookEventType2) => {
|
|
|
10618
10654
|
WebhookEventType2["LOW_BALANCE"] = "LOW_BALANCE";
|
|
10619
10655
|
WebhookEventType2["HIGH_BALANCE"] = "HIGH_BALANCE";
|
|
10620
10656
|
WebhookEventType2["CHANNEL_OPENING_FEES"] = "CHANNEL_OPENING_FEES";
|
|
10657
|
+
WebhookEventType2["HOLD_INVOICE_ACCEPTED"] = "HOLD_INVOICE_ACCEPTED";
|
|
10621
10658
|
return WebhookEventType2;
|
|
10622
10659
|
})(WebhookEventType || {});
|
|
10623
10660
|
var WebhookEventType_default = WebhookEventType;
|
|
@@ -10657,6 +10694,7 @@ var WebhookEventType_default = WebhookEventType;
|
|
|
10657
10694
|
SignablePayloadStatus,
|
|
10658
10695
|
TransactionStatus,
|
|
10659
10696
|
TransactionType,
|
|
10697
|
+
UmaInvitationStatus,
|
|
10660
10698
|
Wallet,
|
|
10661
10699
|
WalletStatus,
|
|
10662
10700
|
WebhookEventType,
|
|
@@ -10684,6 +10722,7 @@ var WebhookEventType_default = WebhookEventType;
|
|
|
10684
10722
|
getSignablePayloadQuery,
|
|
10685
10723
|
getSignableQuery,
|
|
10686
10724
|
getTransactionQuery,
|
|
10725
|
+
getUmaCurrencyQuery,
|
|
10687
10726
|
getUmaInvitationQuery,
|
|
10688
10727
|
getWithdrawalQuery
|
|
10689
10728
|
});
|
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
|
|
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 CancelUmaInvitationInput, o as CancelUmaInvitationOutput, p as Channel, q as ChannelClosingTransaction, s as ChannelFees, t as ChannelOpeningTransaction, v as ChannelSnapshot, x as ChannelStatus, y as ChannelToTransactionsConnection, z as ClaimUmaInvitationInput, D as ClaimUmaInvitationOutput, E as ClaimUmaInvitationWithIncentivesInput, F as ClaimUmaInvitationWithIncentivesOutput, G as ComplianceProvider, H as Connection, I as CreateApiTokenInput, J as CreateApiTokenOutput, K as CreateInvitationWithIncentivesInput, M as CreateInvitationWithIncentivesOutput, N as CreateInvoiceInput, O as CreateInvoiceOutput, P as CreateLnurlInvoiceInput, Q as CreateNodeWalletAddressInput, R as CreateNodeWalletAddressOutput, S as CreateOfferInput, T as CreateOfferOutput, U as CreateTestModeInvoiceInput, V as CreateTestModeInvoiceOutput, X as CreateTestModePaymentInput, Y as CreateTestModePaymentoutput, Z as CreateUmaInvitationInput, _ as CreateUmaInvitationOutput, $ as CreateUmaInvoiceInput, a0 as CurrencyAmount, a1 as CurrencyAmountInput, a2 as CurrencyUnit, a3 as DailyLiquidityForecast, a4 as DeclineToSignMessagesInput, a5 as DeclineToSignMessagesOutput, a6 as DeleteApiTokenInput, a7 as DeleteApiTokenOutput, a8 as Deposit, aa as Entity, ab as FailHtlcsInput, ac as FailHtlcsOutput, ad as FeeEstimate, ae as FundNodeInput, af as FundNodeOutput, ag as GraphNode, ah as Hop, aj as HtlcAttemptFailureCode, ak as IdAndSignature, al as IncentivesIneligibilityReason, am as IncentivesStatus, an as IncomingPayment, ao as IncomingPaymentAttempt, aq as IncomingPaymentAttemptStatus, av as IncomingPaymentToAttemptsConnection, ar as IncomingPaymentsForInvoiceQueryInput, as as IncomingPaymentsForInvoiceQueryOutput, at as IncomingPaymentsForPaymentHashQueryInput, au as IncomingPaymentsForPaymentHashQueryOutput, aw as Invoice, ay as InvoiceData, az as InvoiceForPaymentHashInput, aA as InvoiceForPaymentHashOutput, aB as InvoiceType, aC as LightningFeeEstimateForInvoiceInput, aD as LightningFeeEstimateForNodeInput, aE as LightningFeeEstimateOutput, aF as LightningPaymentDirection, aG as LightningTransaction, aI as LightsparkNode, aK as LightsparkNodeOwner, aM as LightsparkNodeStatus, aN as LightsparkNodeToChannelsConnection, aO as LightsparkNodeToDailyLiquidityForecastsConnection, aP as LightsparkNodeWithOSK, aQ as LightsparkNodeWithRemoteSigning, aR as LookupUmaAddressInput, aS as MultiSigAddressValidationParameters, aT as Node, aV as NodeAddress, aW as NodeAddressType, aX as NodeToAddressesConnection, aY as Offer, a_ as OfferData, b0 as OnChainFeeTarget, b1 as OnChainTransaction, b3 as OutgoingPayment, b4 as OutgoingPaymentAttempt, b5 as OutgoingPaymentAttemptStatus, b6 as OutgoingPaymentAttemptToHopsConnection, b7 as OutgoingPaymentForIdempotencyKeyInput, b8 as OutgoingPaymentForIdempotencyKeyOutput, bd as OutgoingPaymentToAttemptsConnection, b9 as OutgoingPaymentsForInvoiceQueryInput, ba as OutgoingPaymentsForInvoiceQueryOutput, bb as OutgoingPaymentsForPaymentHashQueryInput, bc as OutgoingPaymentsForPaymentHashQueryOutput, be as PageInfo, bf as PayInvoiceInput, bg as PayInvoiceOutput, bn as PayOfferInput, bo as PayOfferOutput, bp as PayTestModeInvoiceInput, bq as PayUmaInvoiceInput, bh as PaymentDirection, bi as PaymentFailureReason, bj as PaymentRequest, bl as PaymentRequestData, bm as PaymentRequestStatus, br as Permission, bs as PostTransactionData, bt as RegionCode, bu as RegisterPaymentInput, bv as RegisterPaymentOutput, bw as ReleaseChannelPerCommitmentSecretInput, bx as ReleaseChannelPerCommitmentSecretOutput, by as ReleasePaymentPreimageInput, bz as ReleasePaymentPreimageOutput, bA as RemoteSigningSubEventType, bB as RequestInitiator, bC as RequestWithdrawalInput, bD as RequestWithdrawalOutput, bE as RichText, bF as RiskRating, bG as RoutingTransaction, bI as RoutingTransactionFailureReason, bJ as ScreenNodeInput, bK as ScreenNodeOutput, bL as Secret, bM as SendPaymentInput, bN as SendPaymentOutput, bO as SetInvoicePaymentHashInput, bP as SetInvoicePaymentHashOutput, bV as SignInvoiceInput, bW as SignInvoiceOutput, bX as SignMessagesInput, bY as SignMessagesOutput, bQ as Signable, bS as SignablePayload, bU as SignablePayloadStatus, bZ as SingleNodeDashboard, b_ as Transaction, c0 as TransactionFailures, c1 as TransactionStatus, c2 as TransactionType, c3 as TransactionUpdate, c4 as UmaCurrency, c6 as UmaCurrencyAmount, c7 as UmaInvitation, c9 as UmaInvitationStatus, ca as UpdateChannelPerCommitmentPointInput, cb as UpdateChannelPerCommitmentPointOutput, cc as UpdateNodeSharedSecretInput, cd as UpdateNodeSharedSecretOutput, ce as Wallet, cf as WalletStatus, cg as WalletToPaymentRequestsConnection, ch as WalletToTransactionsConnection, ci as WalletToWithdrawalRequestsConnection, W as WebhookEventType, cj as Withdrawal, cl as WithdrawalFeeEstimateInput, cm as WithdrawalFeeEstimateOutput, cn as WithdrawalMode, co as WithdrawalRequest, cp as WithdrawalRequestStatus, cq as WithdrawalRequestToChannelClosingTransactionsConnection, cr as WithdrawalRequestToChannelOpeningTransactionsConnection, cs as WithdrawalRequestToWithdrawalsConnection, i as getApiTokenQuery, k as getAuditLogActorQuery, r as getChannelClosingTransactionQuery, u as getChannelOpeningTransactionQuery, w as getChannelSnapshotQuery, a9 as getDepositQuery, ai as getHopQuery, ap as getIncomingPaymentAttemptQuery, ax as getInvoiceQuery, aH as getLightningTransactionQuery, aL as getLightsparkNodeOwnerQuery, aJ as getLightsparkNodeQuery, aU as getNodeQuery, a$ as getOfferDataQuery, aZ as getOfferQuery, b2 as getOnChainTransactionQuery, bk as getPaymentRequestQuery, bH as getRoutingTransactionQuery, bT as getSignablePayloadQuery, bR as getSignableQuery, b$ as getTransactionQuery, c5 as getUmaCurrencyQuery, c8 as getUmaInvitationQuery, ck as getWithdrawalQuery } from '../index-B_qpP_0o.cjs';
|
|
2
2
|
export { B as BitcoinNetwork } from '../BitcoinNetwork-CIfB1c0X.cjs';
|
|
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
|
|
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 CancelUmaInvitationInput, o as CancelUmaInvitationOutput, p as Channel, q as ChannelClosingTransaction, s as ChannelFees, t as ChannelOpeningTransaction, v as ChannelSnapshot, x as ChannelStatus, y as ChannelToTransactionsConnection, z as ClaimUmaInvitationInput, D as ClaimUmaInvitationOutput, E as ClaimUmaInvitationWithIncentivesInput, F as ClaimUmaInvitationWithIncentivesOutput, G as ComplianceProvider, H as Connection, I as CreateApiTokenInput, J as CreateApiTokenOutput, K as CreateInvitationWithIncentivesInput, M as CreateInvitationWithIncentivesOutput, N as CreateInvoiceInput, O as CreateInvoiceOutput, P as CreateLnurlInvoiceInput, Q as CreateNodeWalletAddressInput, R as CreateNodeWalletAddressOutput, S as CreateOfferInput, T as CreateOfferOutput, U as CreateTestModeInvoiceInput, V as CreateTestModeInvoiceOutput, X as CreateTestModePaymentInput, Y as CreateTestModePaymentoutput, Z as CreateUmaInvitationInput, _ as CreateUmaInvitationOutput, $ as CreateUmaInvoiceInput, a0 as CurrencyAmount, a1 as CurrencyAmountInput, a2 as CurrencyUnit, a3 as DailyLiquidityForecast, a4 as DeclineToSignMessagesInput, a5 as DeclineToSignMessagesOutput, a6 as DeleteApiTokenInput, a7 as DeleteApiTokenOutput, a8 as Deposit, aa as Entity, ab as FailHtlcsInput, ac as FailHtlcsOutput, ad as FeeEstimate, ae as FundNodeInput, af as FundNodeOutput, ag as GraphNode, ah as Hop, aj as HtlcAttemptFailureCode, ak as IdAndSignature, al as IncentivesIneligibilityReason, am as IncentivesStatus, an as IncomingPayment, ao as IncomingPaymentAttempt, aq as IncomingPaymentAttemptStatus, av as IncomingPaymentToAttemptsConnection, ar as IncomingPaymentsForInvoiceQueryInput, as as IncomingPaymentsForInvoiceQueryOutput, at as IncomingPaymentsForPaymentHashQueryInput, au as IncomingPaymentsForPaymentHashQueryOutput, aw as Invoice, ay as InvoiceData, az as InvoiceForPaymentHashInput, aA as InvoiceForPaymentHashOutput, aB as InvoiceType, aC as LightningFeeEstimateForInvoiceInput, aD as LightningFeeEstimateForNodeInput, aE as LightningFeeEstimateOutput, aF as LightningPaymentDirection, aG as LightningTransaction, aI as LightsparkNode, aK as LightsparkNodeOwner, aM as LightsparkNodeStatus, aN as LightsparkNodeToChannelsConnection, aO as LightsparkNodeToDailyLiquidityForecastsConnection, aP as LightsparkNodeWithOSK, aQ as LightsparkNodeWithRemoteSigning, aR as LookupUmaAddressInput, aS as MultiSigAddressValidationParameters, aT as Node, aV as NodeAddress, aW as NodeAddressType, aX as NodeToAddressesConnection, aY as Offer, a_ as OfferData, b0 as OnChainFeeTarget, b1 as OnChainTransaction, b3 as OutgoingPayment, b4 as OutgoingPaymentAttempt, b5 as OutgoingPaymentAttemptStatus, b6 as OutgoingPaymentAttemptToHopsConnection, b7 as OutgoingPaymentForIdempotencyKeyInput, b8 as OutgoingPaymentForIdempotencyKeyOutput, bd as OutgoingPaymentToAttemptsConnection, b9 as OutgoingPaymentsForInvoiceQueryInput, ba as OutgoingPaymentsForInvoiceQueryOutput, bb as OutgoingPaymentsForPaymentHashQueryInput, bc as OutgoingPaymentsForPaymentHashQueryOutput, be as PageInfo, bf as PayInvoiceInput, bg as PayInvoiceOutput, bn as PayOfferInput, bo as PayOfferOutput, bp as PayTestModeInvoiceInput, bq as PayUmaInvoiceInput, bh as PaymentDirection, bi as PaymentFailureReason, bj as PaymentRequest, bl as PaymentRequestData, bm as PaymentRequestStatus, br as Permission, bs as PostTransactionData, bt as RegionCode, bu as RegisterPaymentInput, bv as RegisterPaymentOutput, bw as ReleaseChannelPerCommitmentSecretInput, bx as ReleaseChannelPerCommitmentSecretOutput, by as ReleasePaymentPreimageInput, bz as ReleasePaymentPreimageOutput, bA as RemoteSigningSubEventType, bB as RequestInitiator, bC as RequestWithdrawalInput, bD as RequestWithdrawalOutput, bE as RichText, bF as RiskRating, bG as RoutingTransaction, bI as RoutingTransactionFailureReason, bJ as ScreenNodeInput, bK as ScreenNodeOutput, bL as Secret, bM as SendPaymentInput, bN as SendPaymentOutput, bO as SetInvoicePaymentHashInput, bP as SetInvoicePaymentHashOutput, bV as SignInvoiceInput, bW as SignInvoiceOutput, bX as SignMessagesInput, bY as SignMessagesOutput, bQ as Signable, bS as SignablePayload, bU as SignablePayloadStatus, bZ as SingleNodeDashboard, b_ as Transaction, c0 as TransactionFailures, c1 as TransactionStatus, c2 as TransactionType, c3 as TransactionUpdate, c4 as UmaCurrency, c6 as UmaCurrencyAmount, c7 as UmaInvitation, c9 as UmaInvitationStatus, ca as UpdateChannelPerCommitmentPointInput, cb as UpdateChannelPerCommitmentPointOutput, cc as UpdateNodeSharedSecretInput, cd as UpdateNodeSharedSecretOutput, ce as Wallet, cf as WalletStatus, cg as WalletToPaymentRequestsConnection, ch as WalletToTransactionsConnection, ci as WalletToWithdrawalRequestsConnection, W as WebhookEventType, cj as Withdrawal, cl as WithdrawalFeeEstimateInput, cm as WithdrawalFeeEstimateOutput, cn as WithdrawalMode, co as WithdrawalRequest, cp as WithdrawalRequestStatus, cq as WithdrawalRequestToChannelClosingTransactionsConnection, cr as WithdrawalRequestToChannelOpeningTransactionsConnection, cs as WithdrawalRequestToWithdrawalsConnection, i as getApiTokenQuery, k as getAuditLogActorQuery, r as getChannelClosingTransactionQuery, u as getChannelOpeningTransactionQuery, w as getChannelSnapshotQuery, a9 as getDepositQuery, ai as getHopQuery, ap as getIncomingPaymentAttemptQuery, ax as getInvoiceQuery, aH as getLightningTransactionQuery, aL as getLightsparkNodeOwnerQuery, aJ as getLightsparkNodeQuery, aU as getNodeQuery, a$ as getOfferDataQuery, aZ as getOfferQuery, b2 as getOnChainTransactionQuery, bk as getPaymentRequestQuery, bH as getRoutingTransactionQuery, bT as getSignablePayloadQuery, bR as getSignableQuery, b$ as getTransactionQuery, c5 as getUmaCurrencyQuery, c8 as getUmaInvitationQuery, ck as getWithdrawalQuery } from '../index-CZqitvax.js';
|
|
2
2
|
export { B as BitcoinNetwork } from '../BitcoinNetwork-CIfB1c0X.js';
|
|
3
3
|
import '@lightsparkdev/core';
|
|
4
4
|
import 'zen-observable';
|
package/dist/objects/index.js
CHANGED
|
@@ -32,6 +32,7 @@ import {
|
|
|
32
32
|
SignablePayloadStatus_default,
|
|
33
33
|
TransactionStatus_default,
|
|
34
34
|
TransactionType_default,
|
|
35
|
+
UmaInvitationStatus_default,
|
|
35
36
|
WalletStatus_default,
|
|
36
37
|
Wallet_default,
|
|
37
38
|
WebhookEventType_default,
|
|
@@ -59,9 +60,10 @@ import {
|
|
|
59
60
|
getSignablePayloadQuery,
|
|
60
61
|
getSignableQuery,
|
|
61
62
|
getTransactionQuery,
|
|
63
|
+
getUmaCurrencyQuery,
|
|
62
64
|
getUmaInvitationQuery,
|
|
63
65
|
getWithdrawalQuery
|
|
64
|
-
} from "../chunk-
|
|
66
|
+
} from "../chunk-INED3BP4.js";
|
|
65
67
|
import {
|
|
66
68
|
BitcoinNetwork_default
|
|
67
69
|
} from "../chunk-K6SAUSAX.js";
|
|
@@ -100,6 +102,7 @@ export {
|
|
|
100
102
|
SignablePayloadStatus_default as SignablePayloadStatus,
|
|
101
103
|
TransactionStatus_default as TransactionStatus,
|
|
102
104
|
TransactionType_default as TransactionType,
|
|
105
|
+
UmaInvitationStatus_default as UmaInvitationStatus,
|
|
103
106
|
Wallet_default as Wallet,
|
|
104
107
|
WalletStatus_default as WalletStatus,
|
|
105
108
|
WebhookEventType_default as WebhookEventType,
|
|
@@ -127,6 +130,7 @@ export {
|
|
|
127
130
|
getSignablePayloadQuery,
|
|
128
131
|
getSignableQuery,
|
|
129
132
|
getTransactionQuery,
|
|
133
|
+
getUmaCurrencyQuery,
|
|
130
134
|
getUmaInvitationQuery,
|
|
131
135
|
getWithdrawalQuery
|
|
132
136
|
};
|
package/package.json
CHANGED
package/src/client.ts
CHANGED
|
@@ -51,6 +51,7 @@ import { IncomingPaymentsForInvoice } from "./graphql/IncomingPaymentsForInvoice
|
|
|
51
51
|
import { InvoiceForPaymentHash } from "./graphql/InvoiceForPaymentHash.js";
|
|
52
52
|
import { LightningFeeEstimateForInvoice } from "./graphql/LightningFeeEstimateForInvoice.js";
|
|
53
53
|
import { LightningFeeEstimateForNode } from "./graphql/LightningFeeEstimateForNode.js";
|
|
54
|
+
import { LookupUmaAddress } from "./graphql/LookupUmaAddress.js";
|
|
54
55
|
import type { AccountDashboard } from "./graphql/MultiNodeDashboard.js";
|
|
55
56
|
import { MultiNodeDashboard } from "./graphql/MultiNodeDashboard.js";
|
|
56
57
|
import { OutgoingPaymentsForInvoice } from "./graphql/OutgoingPaymentsForInvoice.js";
|
|
@@ -1818,6 +1819,18 @@ class LightsparkClient {
|
|
|
1818
1819
|
},
|
|
1819
1820
|
});
|
|
1820
1821
|
}
|
|
1822
|
+
|
|
1823
|
+
public async lookupUmaAddress(umaAddress: string): Promise<boolean> {
|
|
1824
|
+
return await this.executeRawQuery({
|
|
1825
|
+
queryPayload: LookupUmaAddress,
|
|
1826
|
+
variables: { uma_address: umaAddress },
|
|
1827
|
+
constructObject: (responseJson: {
|
|
1828
|
+
lookup_uma_address: any; // eslint-disable-line @typescript-eslint/no-explicit-any
|
|
1829
|
+
}) => {
|
|
1830
|
+
return responseJson.lookup_uma_address;
|
|
1831
|
+
},
|
|
1832
|
+
});
|
|
1833
|
+
}
|
|
1821
1834
|
}
|
|
1822
1835
|
|
|
1823
1836
|
export default LightsparkClient;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
// Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved
|
|
2
|
+
|
|
3
|
+
interface CancelUmaInvitationInput {
|
|
4
|
+
inviteCode: string;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
export const CancelUmaInvitationInputFromJson = (
|
|
8
|
+
obj: any,
|
|
9
|
+
): CancelUmaInvitationInput => {
|
|
10
|
+
return {
|
|
11
|
+
inviteCode: obj["cancel_uma_invitation_input_invite_code"],
|
|
12
|
+
} as CancelUmaInvitationInput;
|
|
13
|
+
};
|
|
14
|
+
export const CancelUmaInvitationInputToJson = (
|
|
15
|
+
obj: CancelUmaInvitationInput,
|
|
16
|
+
): any => {
|
|
17
|
+
return {
|
|
18
|
+
cancel_uma_invitation_input_invite_code: obj.inviteCode,
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
export default CancelUmaInvitationInput;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
// Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved
|
|
2
|
+
|
|
3
|
+
interface CancelUmaInvitationOutput {
|
|
4
|
+
invitationId: string;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
export const CancelUmaInvitationOutputFromJson = (
|
|
8
|
+
obj: any,
|
|
9
|
+
): CancelUmaInvitationOutput => {
|
|
10
|
+
return {
|
|
11
|
+
invitationId: obj["cancel_uma_invitation_output_invitation"].id,
|
|
12
|
+
} as CancelUmaInvitationOutput;
|
|
13
|
+
};
|
|
14
|
+
export const CancelUmaInvitationOutputToJson = (
|
|
15
|
+
obj: CancelUmaInvitationOutput,
|
|
16
|
+
): any => {
|
|
17
|
+
return {
|
|
18
|
+
cancel_uma_invitation_output_invitation: { id: obj.invitationId },
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
export const FRAGMENT = `
|
|
23
|
+
fragment CancelUmaInvitationOutputFragment on CancelUmaInvitationOutput {
|
|
24
|
+
__typename
|
|
25
|
+
cancel_uma_invitation_output_invitation: invitation {
|
|
26
|
+
id
|
|
27
|
+
}
|
|
28
|
+
}`;
|
|
29
|
+
|
|
30
|
+
export default CancelUmaInvitationOutput;
|
|
@@ -22,8 +22,8 @@ export enum ChannelStatus {
|
|
|
22
22
|
*/
|
|
23
23
|
UNBALANCED_FOR_SEND = "UNBALANCED_FOR_SEND",
|
|
24
24
|
/**
|
|
25
|
-
* The channel is behaving properly, but its remote balance is much lower than its
|
|
26
|
-
* so it is not balanced properly for receiving funds. *
|
|
25
|
+
* The channel is behaving properly, but its remote balance is much lower than its
|
|
26
|
+
* local balance so it is not balanced properly for receiving funds. *
|
|
27
27
|
*/
|
|
28
28
|
UNBALANCED_FOR_RECEIVE = "UNBALANCED_FOR_RECEIVE",
|
|
29
29
|
/**
|
|
@@ -14,6 +14,9 @@ interface CreateInvitationWithIncentivesInput {
|
|
|
14
14
|
|
|
15
15
|
/** The region of the user creating the invitation. **/
|
|
16
16
|
inviterRegion: RegionCode;
|
|
17
|
+
|
|
18
|
+
/** The optional first name of the user creating the invitation. **/
|
|
19
|
+
inviterFirstName?: string | undefined;
|
|
17
20
|
}
|
|
18
21
|
|
|
19
22
|
export const CreateInvitationWithIncentivesInputFromJson = (
|
|
@@ -27,6 +30,8 @@ export const CreateInvitationWithIncentivesInputFromJson = (
|
|
|
27
30
|
RegionCode[
|
|
28
31
|
obj["create_invitation_with_incentives_input_inviter_region"]
|
|
29
32
|
] ?? RegionCode.FUTURE_VALUE,
|
|
33
|
+
inviterFirstName:
|
|
34
|
+
obj["create_invitation_with_incentives_input_inviter_first_name"],
|
|
30
35
|
} as CreateInvitationWithIncentivesInput;
|
|
31
36
|
};
|
|
32
37
|
export const CreateInvitationWithIncentivesInputToJson = (
|
|
@@ -37,6 +42,8 @@ export const CreateInvitationWithIncentivesInputToJson = (
|
|
|
37
42
|
create_invitation_with_incentives_input_inviter_phone_hash:
|
|
38
43
|
obj.inviterPhoneHash,
|
|
39
44
|
create_invitation_with_incentives_input_inviter_region: obj.inviterRegion,
|
|
45
|
+
create_invitation_with_incentives_input_inviter_first_name:
|
|
46
|
+
obj.inviterFirstName,
|
|
40
47
|
};
|
|
41
48
|
};
|
|
42
49
|
|
|
@@ -16,10 +16,7 @@ interface CreateInvoiceInput {
|
|
|
16
16
|
|
|
17
17
|
invoiceType?: InvoiceType | undefined;
|
|
18
18
|
|
|
19
|
-
/**
|
|
20
|
-
* The expiry of the invoice in seconds. Default value is 86400 (1 day) for AMP invoice, or
|
|
21
|
-
* 3600 (1 hour) for STANDARD invoice.
|
|
22
|
-
**/
|
|
19
|
+
/** The expiry of the invoice in seconds. Default value is 86400 (1 day). **/
|
|
23
20
|
expirySecs?: number | undefined;
|
|
24
21
|
|
|
25
22
|
/**
|
|
@@ -28,6 +25,13 @@ interface CreateInvoiceInput {
|
|
|
28
25
|
* REQUEST_INVOICE_PAYMENT_HASH.
|
|
29
26
|
**/
|
|
30
27
|
paymentHash?: string | undefined;
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* The 32-byte nonce used to generate the invoice preimage if applicable. It will later be
|
|
31
|
+
* included in RELEASE_PAYMENT_PREIMAGE webhook to help recover the raw preimage. This can only
|
|
32
|
+
* be specified when `payment_hash` is specified.
|
|
33
|
+
**/
|
|
34
|
+
preimageNonce?: string | undefined;
|
|
31
35
|
}
|
|
32
36
|
|
|
33
37
|
export const CreateInvoiceInputFromJson = (obj: any): CreateInvoiceInput => {
|
|
@@ -41,6 +45,7 @@ export const CreateInvoiceInputFromJson = (obj: any): CreateInvoiceInput => {
|
|
|
41
45
|
: null,
|
|
42
46
|
expirySecs: obj["create_invoice_input_expiry_secs"],
|
|
43
47
|
paymentHash: obj["create_invoice_input_payment_hash"],
|
|
48
|
+
preimageNonce: obj["create_invoice_input_preimage_nonce"],
|
|
44
49
|
} as CreateInvoiceInput;
|
|
45
50
|
};
|
|
46
51
|
export const CreateInvoiceInputToJson = (obj: CreateInvoiceInput): any => {
|
|
@@ -51,6 +56,7 @@ export const CreateInvoiceInputToJson = (obj: CreateInvoiceInput): any => {
|
|
|
51
56
|
create_invoice_input_invoice_type: obj.invoiceType,
|
|
52
57
|
create_invoice_input_expiry_secs: obj.expirySecs,
|
|
53
58
|
create_invoice_input_payment_hash: obj.paymentHash,
|
|
59
|
+
create_invoice_input_preimage_nonce: obj.preimageNonce,
|
|
54
60
|
};
|
|
55
61
|
};
|
|
56
62
|
|