@lightsparkdev/lightspark-sdk 1.8.10 → 1.9.1
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 +42 -0
- package/README.md +0 -15
- package/dist/{chunk-HEBVNBJB.js → chunk-KEXWDHIC.js} +146 -33
- package/dist/{index-1psIIljd.d.ts → index-B4pktcM-.d.ts} +188 -10
- package/dist/{index-DrqTCl6I.d.cts → index-BxC6kyLD.d.cts} +188 -10
- package/dist/index.cjs +259 -51
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +121 -24
- package/dist/objects/index.cjs +144 -29
- 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 +12 -23
- package/src/client.ts +78 -0
- package/src/graphql/CreateOffer.ts +15 -0
- package/src/graphql/PayOffer.ts +31 -0
- package/src/objects/Account.ts +19 -6
- package/src/objects/CreateInvoiceInput.ts +13 -1
- package/src/objects/CreateOfferInput.ts +32 -0
- package/src/objects/CreateOfferOutput.ts +26 -0
- package/src/objects/CreateTestModeInvoiceInput.ts +7 -0
- package/src/objects/CurrencyAmountInput.ts +26 -0
- package/src/objects/CurrencyUnit.ts +2 -0
- package/src/objects/Entity.ts +36 -0
- package/src/objects/Invoice.ts +5 -1
- package/src/objects/InvoiceData.ts +2 -2
- package/src/objects/Offer.ts +109 -0
- package/src/objects/OfferData.ts +118 -0
- package/src/objects/PayOfferInput.ts +53 -0
- package/src/objects/PayOfferOutput.ts +27 -0
- package/src/objects/PayTestModeInvoiceInput.ts +68 -0
- package/src/objects/PaymentRequestData.ts +3 -2
- package/src/objects/index.ts +8 -0
package/dist/index.js
CHANGED
|
@@ -85,6 +85,8 @@ import {
|
|
|
85
85
|
getLightsparkNodeOwnerQuery,
|
|
86
86
|
getLightsparkNodeQuery,
|
|
87
87
|
getNodeQuery,
|
|
88
|
+
getOfferDataQuery,
|
|
89
|
+
getOfferQuery,
|
|
88
90
|
getOnChainTransactionQuery,
|
|
89
91
|
getPaymentRequestQuery,
|
|
90
92
|
getRoutingTransactionQuery,
|
|
@@ -93,7 +95,7 @@ import {
|
|
|
93
95
|
getTransactionQuery,
|
|
94
96
|
getUmaInvitationQuery,
|
|
95
97
|
getWithdrawalQuery
|
|
96
|
-
} from "./chunk-
|
|
98
|
+
} from "./chunk-KEXWDHIC.js";
|
|
97
99
|
import {
|
|
98
100
|
BitcoinNetwork_default
|
|
99
101
|
} from "./chunk-K6SAUSAX.js";
|
|
@@ -151,7 +153,7 @@ import {
|
|
|
151
153
|
// package.json
|
|
152
154
|
var package_default = {
|
|
153
155
|
name: "@lightsparkdev/lightspark-sdk",
|
|
154
|
-
version: "1.
|
|
156
|
+
version: "1.9.1",
|
|
155
157
|
description: "Lightspark JS SDK",
|
|
156
158
|
author: "Lightspark Inc.",
|
|
157
159
|
keywords: [
|
|
@@ -164,43 +166,28 @@ var package_default = {
|
|
|
164
166
|
homepage: "https://github.com/lightsparkdev/js-sdk",
|
|
165
167
|
repository: {
|
|
166
168
|
type: "git",
|
|
167
|
-
url: "https://github.com/lightsparkdev/js-sdk.git"
|
|
169
|
+
url: "git+https://github.com/lightsparkdev/js-sdk.git"
|
|
168
170
|
},
|
|
169
171
|
bugs: {
|
|
170
172
|
url: "https://github.com/lightsparkdev/js-sdk/issues"
|
|
171
173
|
},
|
|
172
174
|
exports: {
|
|
173
175
|
".": {
|
|
174
|
-
|
|
175
|
-
import: {
|
|
176
|
-
types: "./dist/index.d.ts",
|
|
177
|
-
default: "./dist/index.js"
|
|
178
|
-
},
|
|
179
|
-
module: "./dist/index.js",
|
|
176
|
+
import: "./dist/index.js",
|
|
180
177
|
require: "./dist/index.cjs"
|
|
181
178
|
},
|
|
182
179
|
"./objects": {
|
|
183
|
-
|
|
184
|
-
import: {
|
|
185
|
-
types: "./dist/objects/index.d.ts",
|
|
186
|
-
default: "./dist/objects/index.js"
|
|
187
|
-
},
|
|
188
|
-
module: "./dist/objects/index.js",
|
|
180
|
+
import: "./dist/objects/index.js",
|
|
189
181
|
require: "./dist/objects/index.cjs"
|
|
190
182
|
},
|
|
191
183
|
"./env": {
|
|
192
|
-
|
|
193
|
-
import: {
|
|
194
|
-
types: "./dist/env.d.ts",
|
|
195
|
-
default: "./dist/env.js"
|
|
196
|
-
},
|
|
197
|
-
module: "./dist/env.js",
|
|
184
|
+
import: "./dist/env.js",
|
|
198
185
|
require: "./dist/env.cjs"
|
|
199
186
|
}
|
|
200
187
|
},
|
|
201
188
|
type: "module",
|
|
202
189
|
types: "./dist/index.d.ts",
|
|
203
|
-
main: "./dist/index.
|
|
190
|
+
main: "./dist/index.cjs",
|
|
204
191
|
module: "./dist/index.js",
|
|
205
192
|
browser: {
|
|
206
193
|
crypto: false,
|
|
@@ -210,6 +197,7 @@ var package_default = {
|
|
|
210
197
|
files: [
|
|
211
198
|
"src/*",
|
|
212
199
|
"dist/*",
|
|
200
|
+
"dist/objects/*",
|
|
213
201
|
"CHANGELOG.md"
|
|
214
202
|
],
|
|
215
203
|
scripts: {
|
|
@@ -224,6 +212,7 @@ var package_default = {
|
|
|
224
212
|
"lint:fix:continue": "eslint --fix . || exit 0",
|
|
225
213
|
"lint:watch": "esw ./src -w --ext .ts,.tsx,.js --color",
|
|
226
214
|
lint: "eslint .",
|
|
215
|
+
"package:checks": "yarn publint && yarn attw --pack .",
|
|
227
216
|
postversion: "yarn build",
|
|
228
217
|
"test-cmd": "node --experimental-vm-modules $(yarn bin jest) --no-cache --runInBand --bail",
|
|
229
218
|
test: "yarn test-cmd src/tests/*.test.ts",
|
|
@@ -233,8 +222,8 @@ var package_default = {
|
|
|
233
222
|
},
|
|
234
223
|
license: "Apache-2.0",
|
|
235
224
|
dependencies: {
|
|
236
|
-
"@lightsparkdev/core": "1.
|
|
237
|
-
"@lightsparkdev/crypto-wasm": "0.1.
|
|
225
|
+
"@lightsparkdev/core": "1.3.1",
|
|
226
|
+
"@lightsparkdev/crypto-wasm": "0.1.13",
|
|
238
227
|
"crypto-browserify": "^3.12.0",
|
|
239
228
|
dayjs: "^1.11.7",
|
|
240
229
|
dotenv: "^16.3.1",
|
|
@@ -244,6 +233,7 @@ var package_default = {
|
|
|
244
233
|
"zen-observable-ts": "^1.1.0"
|
|
245
234
|
},
|
|
246
235
|
devDependencies: {
|
|
236
|
+
"@arethetypeswrong/cli": "^0.17.4",
|
|
247
237
|
"@lightsparkdev/eslint-config": "*",
|
|
248
238
|
"@lightsparkdev/tsconfig": "0.0.1",
|
|
249
239
|
"@types/crypto-js": "^4.1.1",
|
|
@@ -256,6 +246,7 @@ var package_default = {
|
|
|
256
246
|
jest: "^29.6.2",
|
|
257
247
|
prettier: "3.0.3",
|
|
258
248
|
"prettier-plugin-organize-imports": "^3.2.4",
|
|
249
|
+
publint: "^0.3.9",
|
|
259
250
|
"ts-jest": "^29.1.1",
|
|
260
251
|
"tsc-absolute": "^1.0.1",
|
|
261
252
|
tsup: "^8.2.4",
|
|
@@ -594,6 +585,21 @@ var CreateNodeWalletAddress = `
|
|
|
594
585
|
}
|
|
595
586
|
`;
|
|
596
587
|
|
|
588
|
+
// src/graphql/CreateOffer.ts
|
|
589
|
+
var CreateOffer = `
|
|
590
|
+
mutation CreateOffer(
|
|
591
|
+
$node_id: ID!
|
|
592
|
+
$amount_msats: Long
|
|
593
|
+
$description: String
|
|
594
|
+
) {
|
|
595
|
+
create_offer(input: { node_id: $node_id, amount_msats: $amount_msats, description: $description }) {
|
|
596
|
+
offer {
|
|
597
|
+
encoded_offer
|
|
598
|
+
}
|
|
599
|
+
}
|
|
600
|
+
}
|
|
601
|
+
`;
|
|
602
|
+
|
|
597
603
|
// src/graphql/CreateTestModeInvoice.ts
|
|
598
604
|
var CreateTestModeInvoice = `
|
|
599
605
|
mutation CreateTestModeInvoice(
|
|
@@ -964,6 +970,35 @@ var PayInvoice = `
|
|
|
964
970
|
${FRAGMENT9}
|
|
965
971
|
`;
|
|
966
972
|
|
|
973
|
+
// src/graphql/PayOffer.ts
|
|
974
|
+
var PayOffer = `
|
|
975
|
+
mutation PayOffer(
|
|
976
|
+
$node_id: ID!
|
|
977
|
+
$encoded_offer: String!
|
|
978
|
+
$timeout_secs: Int!
|
|
979
|
+
$maximum_fees_msats: Long!
|
|
980
|
+
$amount_msats: Long
|
|
981
|
+
$idempotency_key: String
|
|
982
|
+
) {
|
|
983
|
+
pay_offer(
|
|
984
|
+
input: {
|
|
985
|
+
node_id: $node_id
|
|
986
|
+
encoded_offer: $encoded_offer
|
|
987
|
+
timeout_secs: $timeout_secs
|
|
988
|
+
maximum_fees_msats: $maximum_fees_msats
|
|
989
|
+
amount_msats: $amount_msats
|
|
990
|
+
idempotency_key: $idempotency_key
|
|
991
|
+
}
|
|
992
|
+
) {
|
|
993
|
+
payment {
|
|
994
|
+
...OutgoingPaymentFragment
|
|
995
|
+
}
|
|
996
|
+
}
|
|
997
|
+
}
|
|
998
|
+
|
|
999
|
+
${FRAGMENT9}
|
|
1000
|
+
`;
|
|
1001
|
+
|
|
967
1002
|
// src/graphql/PayUmaInvoice.ts
|
|
968
1003
|
var PayUmaInvoice = `
|
|
969
1004
|
mutation PayUmaInvoice(
|
|
@@ -1634,6 +1669,26 @@ var LightsparkClient = class {
|
|
|
1634
1669
|
);
|
|
1635
1670
|
return response.create_invoice?.invoice.data?.encoded_payment_request;
|
|
1636
1671
|
}
|
|
1672
|
+
/**
|
|
1673
|
+
* Creates an offer for the given node.
|
|
1674
|
+
*
|
|
1675
|
+
* @param nodeId The node ID for which to create an offer.
|
|
1676
|
+
* @param amountMsats The amount of the offer in msats.
|
|
1677
|
+
* @param description The description of the offer.
|
|
1678
|
+
* @returns An encoded offer, or undefined if the offer could not be created.
|
|
1679
|
+
*/
|
|
1680
|
+
async createOffer(nodeId, amountMsats, description) {
|
|
1681
|
+
const variables = {
|
|
1682
|
+
node_id: nodeId,
|
|
1683
|
+
amount_msats: amountMsats,
|
|
1684
|
+
description
|
|
1685
|
+
};
|
|
1686
|
+
const response = await this.requester.makeRawRequest(
|
|
1687
|
+
CreateOffer,
|
|
1688
|
+
variables
|
|
1689
|
+
);
|
|
1690
|
+
return response.create_offer?.offer.encoded_offer;
|
|
1691
|
+
}
|
|
1637
1692
|
/**
|
|
1638
1693
|
* Generates a Lightning Invoice (follows the Bolt 11 specification) to
|
|
1639
1694
|
* request a payment from another Lightning Node.
|
|
@@ -1901,6 +1956,46 @@ var LightsparkClient = class {
|
|
|
1901
1956
|
}
|
|
1902
1957
|
return response.pay_invoice && OutgoingPaymentFromJson(response.pay_invoice.payment);
|
|
1903
1958
|
}
|
|
1959
|
+
/**
|
|
1960
|
+
* Sends a lightning payment for a given offer.
|
|
1961
|
+
*
|
|
1962
|
+
* @param payerNodeId The ID of the node that will pay the offer.
|
|
1963
|
+
* @param encodedOffer The encoded offer to pay.
|
|
1964
|
+
* @param timeoutSecs A timeout for the payment in seconds. Defaults to 60 seconds.
|
|
1965
|
+
* @param maximumFeesMsats Maximum fees (in msats) to pay for the payment. This parameter is required.
|
|
1966
|
+
* As guidance, a maximum fee of 16 basis points should make almost all
|
|
1967
|
+
* transactions succeed.
|
|
1968
|
+
* @param amountMsats The amount to pay in msats for a no-amount offer. Defaults to the full amount of the
|
|
1969
|
+
* offer. NOTE: This parameter can only be passed for a no-amount
|
|
1970
|
+
* offer. Otherwise, the call will fail.
|
|
1971
|
+
* @param idempotencyKey An optional idempotency key for the payment. If provided, the payment will be attempted only once.
|
|
1972
|
+
* @returns An `OutgoingPayment` object if the payment was successful, or undefined if the payment failed.
|
|
1973
|
+
*/
|
|
1974
|
+
async payOffer(payerNodeId, encodedOffer, timeoutSecs, maximumFeeMsats, amountMsats, idempotencyKey) {
|
|
1975
|
+
if (!this.nodeKeyCache.hasKey(payerNodeId)) {
|
|
1976
|
+
throw new LightsparkSigningException3("Paying node is not unlocked");
|
|
1977
|
+
}
|
|
1978
|
+
const variables = {
|
|
1979
|
+
node_id: payerNodeId,
|
|
1980
|
+
encoded_offer: encodedOffer,
|
|
1981
|
+
timeout_secs: timeoutSecs,
|
|
1982
|
+
maximum_fees_msats: maximumFeeMsats,
|
|
1983
|
+
amount_msats: amountMsats,
|
|
1984
|
+
idempotency_key: idempotencyKey
|
|
1985
|
+
};
|
|
1986
|
+
const response = await this.requester.makeRawRequest(
|
|
1987
|
+
PayOffer,
|
|
1988
|
+
variables,
|
|
1989
|
+
payerNodeId
|
|
1990
|
+
);
|
|
1991
|
+
if (response.pay_offer?.payment.outgoing_payment_failure_message) {
|
|
1992
|
+
throw new LightsparkException(
|
|
1993
|
+
"PaymentError",
|
|
1994
|
+
response.pay_offer?.payment.outgoing_payment_failure_message.rich_text_text
|
|
1995
|
+
);
|
|
1996
|
+
}
|
|
1997
|
+
return response.pay_offer && OutgoingPaymentFromJson(response.pay_offer.payment);
|
|
1998
|
+
}
|
|
1904
1999
|
/**
|
|
1905
2000
|
* sends an UMA payment to a node on the Lightning Network,
|
|
1906
2001
|
* based on the invoice (as defined by the BOLT11 specification) that you
|
|
@@ -2638,6 +2733,8 @@ export {
|
|
|
2638
2733
|
getLightsparkNodeOwnerQuery,
|
|
2639
2734
|
getLightsparkNodeQuery,
|
|
2640
2735
|
getNodeQuery,
|
|
2736
|
+
getOfferDataQuery,
|
|
2737
|
+
getOfferQuery,
|
|
2641
2738
|
getOnChainTransactionQuery,
|
|
2642
2739
|
getPaymentRequestQuery,
|
|
2643
2740
|
getRoutingTransactionQuery,
|
package/dist/objects/index.cjs
CHANGED
|
@@ -73,6 +73,8 @@ __export(objects_exports, {
|
|
|
73
73
|
getLightsparkNodeOwnerQuery: () => getLightsparkNodeOwnerQuery,
|
|
74
74
|
getLightsparkNodeQuery: () => getLightsparkNodeQuery,
|
|
75
75
|
getNodeQuery: () => getNodeQuery,
|
|
76
|
+
getOfferDataQuery: () => getOfferDataQuery,
|
|
77
|
+
getOfferQuery: () => getOfferQuery,
|
|
76
78
|
getOnChainTransactionQuery: () => getOnChainTransactionQuery,
|
|
77
79
|
getPaymentRequestQuery: () => getPaymentRequestQuery,
|
|
78
80
|
getRoutingTransactionQuery: () => getRoutingTransactionQuery,
|
|
@@ -221,6 +223,7 @@ var CurrencyUnit = /* @__PURE__ */ ((CurrencyUnit2) => {
|
|
|
221
223
|
CurrencyUnit2["MILLISATOSHI"] = "MILLISATOSHI";
|
|
222
224
|
CurrencyUnit2["USD"] = "USD";
|
|
223
225
|
CurrencyUnit2["MXN"] = "MXN";
|
|
226
|
+
CurrencyUnit2["PHP"] = "PHP";
|
|
224
227
|
CurrencyUnit2["NANOBITCOIN"] = "NANOBITCOIN";
|
|
225
228
|
CurrencyUnit2["MICROBITCOIN"] = "MICROBITCOIN";
|
|
226
229
|
CurrencyUnit2["MILLIBITCOIN"] = "MILLIBITCOIN";
|
|
@@ -7298,13 +7301,13 @@ query FetchAccountToChannelsConnection($bitcoin_network: BitcoinNetwork!, $light
|
|
|
7298
7301
|
}
|
|
7299
7302
|
});
|
|
7300
7303
|
}
|
|
7301
|
-
async getTransactions(client, first = void 0, after = void 0, types = void 0, afterDate = void 0, beforeDate = void 0, bitcoinNetwork = void 0, lightningNodeId = void 0, statuses = void 0, excludeFailures = void 0) {
|
|
7304
|
+
async getTransactions(client, first = void 0, after = void 0, types = void 0, afterDate = void 0, beforeDate = void 0, bitcoinNetwork = void 0, lightningNodeId = void 0, statuses = void 0, excludeFailures = void 0, maxAmount = void 0, minAmount = void 0) {
|
|
7302
7305
|
return await client.executeRawQuery({
|
|
7303
7306
|
queryPayload: `
|
|
7304
|
-
query FetchAccountToTransactionsConnection($first: Int, $after: String, $types: [TransactionType!], $after_date: DateTime, $before_date: DateTime, $bitcoin_network: BitcoinNetwork, $lightning_node_id: ID, $statuses: [TransactionStatus!], $exclude_failures: TransactionFailures) {
|
|
7307
|
+
query FetchAccountToTransactionsConnection($first: Int, $after: String, $types: [TransactionType!], $after_date: DateTime, $before_date: DateTime, $bitcoin_network: BitcoinNetwork, $lightning_node_id: ID, $statuses: [TransactionStatus!], $exclude_failures: TransactionFailures, $max_amount: CurrencyAmountInput, $min_amount: CurrencyAmountInput) {
|
|
7305
7308
|
current_account {
|
|
7306
7309
|
... on Account {
|
|
7307
|
-
transactions(, first: $first, after: $after, types: $types, after_date: $after_date, before_date: $before_date, bitcoin_network: $bitcoin_network, lightning_node_id: $lightning_node_id, statuses: $statuses, exclude_failures: $exclude_failures) {
|
|
7310
|
+
transactions(, first: $first, after: $after, types: $types, after_date: $after_date, before_date: $before_date, bitcoin_network: $bitcoin_network, lightning_node_id: $lightning_node_id, statuses: $statuses, exclude_failures: $exclude_failures, max_amount: $max_amount, min_amount: $min_amount) {
|
|
7308
7311
|
__typename
|
|
7309
7312
|
account_to_transactions_connection_count: count
|
|
7310
7313
|
account_to_transactions_connection_page_info: page_info {
|
|
@@ -7902,7 +7905,9 @@ query FetchAccountToTransactionsConnection($first: Int, $after: String, $types:
|
|
|
7902
7905
|
bitcoin_network: bitcoinNetwork,
|
|
7903
7906
|
lightning_node_id: lightningNodeId,
|
|
7904
7907
|
statuses,
|
|
7905
|
-
exclude_failures: excludeFailures
|
|
7908
|
+
exclude_failures: excludeFailures,
|
|
7909
|
+
max_amount: maxAmount,
|
|
7910
|
+
min_amount: minAmount
|
|
7906
7911
|
},
|
|
7907
7912
|
constructObject: (json) => {
|
|
7908
7913
|
const connection = json["current_account"]["transactions"];
|
|
@@ -7910,13 +7915,13 @@ query FetchAccountToTransactionsConnection($first: Int, $after: String, $types:
|
|
|
7910
7915
|
}
|
|
7911
7916
|
});
|
|
7912
7917
|
}
|
|
7913
|
-
async getPaymentRequests(client, first = void 0, after = void 0, afterDate = void 0, beforeDate = void 0, bitcoinNetwork = void 0, lightningNodeId = void 0) {
|
|
7918
|
+
async getPaymentRequests(client, first = void 0, after = void 0, afterDate = void 0, beforeDate = void 0, bitcoinNetwork = void 0, lightningNodeId = void 0, maxAmount = void 0, minAmount = void 0) {
|
|
7914
7919
|
return await client.executeRawQuery({
|
|
7915
7920
|
queryPayload: `
|
|
7916
|
-
query FetchAccountToPaymentRequestsConnection($first: Int, $after: String, $after_date: DateTime, $before_date: DateTime, $bitcoin_network: BitcoinNetwork, $lightning_node_id: ID) {
|
|
7921
|
+
query FetchAccountToPaymentRequestsConnection($first: Int, $after: String, $after_date: DateTime, $before_date: DateTime, $bitcoin_network: BitcoinNetwork, $lightning_node_id: ID, $max_amount: CurrencyAmountInput, $min_amount: CurrencyAmountInput) {
|
|
7917
7922
|
current_account {
|
|
7918
7923
|
... on Account {
|
|
7919
|
-
payment_requests(, first: $first, after: $after, after_date: $after_date, before_date: $before_date, bitcoin_network: $bitcoin_network, lightning_node_id: $lightning_node_id) {
|
|
7924
|
+
payment_requests(, first: $first, after: $after, after_date: $after_date, before_date: $before_date, bitcoin_network: $bitcoin_network, lightning_node_id: $lightning_node_id, max_amount: $max_amount, min_amount: $min_amount) {
|
|
7920
7925
|
__typename
|
|
7921
7926
|
account_to_payment_requests_connection_count: count
|
|
7922
7927
|
account_to_payment_requests_connection_page_info: page_info {
|
|
@@ -8248,7 +8253,9 @@ query FetchAccountToPaymentRequestsConnection($first: Int, $after: String, $afte
|
|
|
8248
8253
|
after_date: afterDate,
|
|
8249
8254
|
before_date: beforeDate,
|
|
8250
8255
|
bitcoin_network: bitcoinNetwork,
|
|
8251
|
-
lightning_node_id: lightningNodeId
|
|
8256
|
+
lightning_node_id: lightningNodeId,
|
|
8257
|
+
max_amount: maxAmount,
|
|
8258
|
+
min_amount: minAmount
|
|
8252
8259
|
},
|
|
8253
8260
|
constructObject: (json) => {
|
|
8254
8261
|
const connection = json["current_account"]["payment_requests"];
|
|
@@ -8256,13 +8263,13 @@ query FetchAccountToPaymentRequestsConnection($first: Int, $after: String, $afte
|
|
|
8256
8263
|
}
|
|
8257
8264
|
});
|
|
8258
8265
|
}
|
|
8259
|
-
async getWithdrawalRequests(client, first = void 0, after = void 0, bitcoinNetworks = void 0, statuses = void 0, nodeIds = void 0, idempotencyKeys = void 0, afterDate = void 0, beforeDate = void 0) {
|
|
8266
|
+
async getWithdrawalRequests(client, first = void 0, after = void 0, bitcoinNetworks = void 0, statuses = void 0, nodeIds = void 0, idempotencyKeys = void 0, afterDate = void 0, beforeDate = void 0, maxAmount = void 0, minAmount = void 0) {
|
|
8260
8267
|
return await client.executeRawQuery({
|
|
8261
8268
|
queryPayload: `
|
|
8262
|
-
query FetchAccountToWithdrawalRequestsConnection($first: Int, $after: String, $bitcoin_networks: [BitcoinNetwork!], $statuses: [WithdrawalRequestStatus!], $node_ids: [ID!], $idempotency_keys: [String!], $after_date: DateTime, $before_date: DateTime) {
|
|
8269
|
+
query FetchAccountToWithdrawalRequestsConnection($first: Int, $after: String, $bitcoin_networks: [BitcoinNetwork!], $statuses: [WithdrawalRequestStatus!], $node_ids: [ID!], $idempotency_keys: [String!], $after_date: DateTime, $before_date: DateTime, $max_amount: CurrencyAmountInput, $min_amount: CurrencyAmountInput) {
|
|
8263
8270
|
current_account {
|
|
8264
8271
|
... on Account {
|
|
8265
|
-
withdrawal_requests(, first: $first, after: $after, bitcoin_networks: $bitcoin_networks, statuses: $statuses, node_ids: $node_ids, idempotency_keys: $idempotency_keys, after_date: $after_date, before_date: $before_date) {
|
|
8272
|
+
withdrawal_requests(, first: $first, after: $after, bitcoin_networks: $bitcoin_networks, statuses: $statuses, node_ids: $node_ids, idempotency_keys: $idempotency_keys, after_date: $after_date, before_date: $before_date, max_amount: $max_amount, min_amount: $min_amount) {
|
|
8266
8273
|
__typename
|
|
8267
8274
|
account_to_withdrawal_requests_connection_count: count
|
|
8268
8275
|
account_to_withdrawal_requests_connection_page_info: page_info {
|
|
@@ -8340,7 +8347,9 @@ query FetchAccountToWithdrawalRequestsConnection($first: Int, $after: String, $b
|
|
|
8340
8347
|
node_ids: nodeIds,
|
|
8341
8348
|
idempotency_keys: idempotencyKeys,
|
|
8342
8349
|
after_date: afterDate,
|
|
8343
|
-
before_date: beforeDate
|
|
8350
|
+
before_date: beforeDate,
|
|
8351
|
+
max_amount: maxAmount,
|
|
8352
|
+
min_amount: minAmount
|
|
8344
8353
|
},
|
|
8345
8354
|
constructObject: (json) => {
|
|
8346
8355
|
const connection = json["current_account"]["withdrawal_requests"];
|
|
@@ -9986,6 +9995,110 @@ ${FRAGMENT27}
|
|
|
9986
9995
|
};
|
|
9987
9996
|
};
|
|
9988
9997
|
|
|
9998
|
+
// src/objects/Offer.ts
|
|
9999
|
+
var import_core30 = require("@lightsparkdev/core");
|
|
10000
|
+
var OfferFromJson = (obj) => {
|
|
10001
|
+
return {
|
|
10002
|
+
id: obj["offer_id"],
|
|
10003
|
+
createdAt: obj["offer_created_at"],
|
|
10004
|
+
updatedAt: obj["offer_updated_at"],
|
|
10005
|
+
dataId: obj["offer_data"].id,
|
|
10006
|
+
encodedOffer: obj["offer_encoded_offer"],
|
|
10007
|
+
typename: "Offer",
|
|
10008
|
+
amount: !!obj["offer_amount"] ? CurrencyAmountFromJson(obj["offer_amount"]) : void 0,
|
|
10009
|
+
description: obj["offer_description"]
|
|
10010
|
+
};
|
|
10011
|
+
};
|
|
10012
|
+
var FRAGMENT28 = `
|
|
10013
|
+
fragment OfferFragment on Offer {
|
|
10014
|
+
__typename
|
|
10015
|
+
offer_id: id
|
|
10016
|
+
offer_created_at: created_at
|
|
10017
|
+
offer_updated_at: updated_at
|
|
10018
|
+
offer_data: data {
|
|
10019
|
+
id
|
|
10020
|
+
}
|
|
10021
|
+
offer_encoded_offer: encoded_offer
|
|
10022
|
+
offer_amount: amount {
|
|
10023
|
+
__typename
|
|
10024
|
+
currency_amount_original_value: original_value
|
|
10025
|
+
currency_amount_original_unit: original_unit
|
|
10026
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
10027
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
10028
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
10029
|
+
}
|
|
10030
|
+
offer_description: description
|
|
10031
|
+
}`;
|
|
10032
|
+
var getOfferQuery = (id) => {
|
|
10033
|
+
return {
|
|
10034
|
+
queryPayload: `
|
|
10035
|
+
query GetOffer($id: ID!) {
|
|
10036
|
+
entity(id: $id) {
|
|
10037
|
+
... on Offer {
|
|
10038
|
+
...OfferFragment
|
|
10039
|
+
}
|
|
10040
|
+
}
|
|
10041
|
+
}
|
|
10042
|
+
|
|
10043
|
+
${FRAGMENT28}
|
|
10044
|
+
`,
|
|
10045
|
+
variables: { id },
|
|
10046
|
+
constructObject: (data) => (0, import_core30.isObject)(data) && "entity" in data && (0, import_core30.isObject)(data.entity) ? OfferFromJson(data.entity) : null
|
|
10047
|
+
};
|
|
10048
|
+
};
|
|
10049
|
+
|
|
10050
|
+
// src/objects/OfferData.ts
|
|
10051
|
+
var import_core31 = require("@lightsparkdev/core");
|
|
10052
|
+
var OfferDataFromJson = (obj) => {
|
|
10053
|
+
return {
|
|
10054
|
+
id: obj["offer_data_id"],
|
|
10055
|
+
createdAt: obj["offer_data_created_at"],
|
|
10056
|
+
updatedAt: obj["offer_data_updated_at"],
|
|
10057
|
+
encodedOffer: obj["offer_data_encoded_offer"],
|
|
10058
|
+
bitcoinNetworks: obj["offer_data_bitcoin_networks"].map(
|
|
10059
|
+
(e) => BitcoinNetwork_default[e]
|
|
10060
|
+
),
|
|
10061
|
+
typename: "OfferData",
|
|
10062
|
+
amount: !!obj["offer_data_amount"] ? CurrencyAmountFromJson(obj["offer_data_amount"]) : void 0,
|
|
10063
|
+
expiresAt: obj["offer_data_expires_at"]
|
|
10064
|
+
};
|
|
10065
|
+
};
|
|
10066
|
+
var FRAGMENT29 = `
|
|
10067
|
+
fragment OfferDataFragment on OfferData {
|
|
10068
|
+
__typename
|
|
10069
|
+
offer_data_id: id
|
|
10070
|
+
offer_data_created_at: created_at
|
|
10071
|
+
offer_data_updated_at: updated_at
|
|
10072
|
+
offer_data_amount: amount {
|
|
10073
|
+
__typename
|
|
10074
|
+
currency_amount_original_value: original_value
|
|
10075
|
+
currency_amount_original_unit: original_unit
|
|
10076
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
10077
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
10078
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
10079
|
+
}
|
|
10080
|
+
offer_data_encoded_offer: encoded_offer
|
|
10081
|
+
offer_data_bitcoin_networks: bitcoin_networks
|
|
10082
|
+
offer_data_expires_at: expires_at
|
|
10083
|
+
}`;
|
|
10084
|
+
var getOfferDataQuery = (id) => {
|
|
10085
|
+
return {
|
|
10086
|
+
queryPayload: `
|
|
10087
|
+
query GetOfferData($id: ID!) {
|
|
10088
|
+
entity(id: $id) {
|
|
10089
|
+
... on OfferData {
|
|
10090
|
+
...OfferDataFragment
|
|
10091
|
+
}
|
|
10092
|
+
}
|
|
10093
|
+
}
|
|
10094
|
+
|
|
10095
|
+
${FRAGMENT29}
|
|
10096
|
+
`,
|
|
10097
|
+
variables: { id },
|
|
10098
|
+
constructObject: (data) => (0, import_core31.isObject)(data) && "entity" in data && (0, import_core31.isObject)(data.entity) ? OfferDataFromJson(data.entity) : null
|
|
10099
|
+
};
|
|
10100
|
+
};
|
|
10101
|
+
|
|
9989
10102
|
// src/objects/OnChainFeeTarget.ts
|
|
9990
10103
|
var OnChainFeeTarget = /* @__PURE__ */ ((OnChainFeeTarget2) => {
|
|
9991
10104
|
OnChainFeeTarget2["FUTURE_VALUE"] = "FUTURE_VALUE";
|
|
@@ -9998,7 +10111,7 @@ var OnChainFeeTarget = /* @__PURE__ */ ((OnChainFeeTarget2) => {
|
|
|
9998
10111
|
var OnChainFeeTarget_default = OnChainFeeTarget;
|
|
9999
10112
|
|
|
10000
10113
|
// src/objects/OnChainTransaction.ts
|
|
10001
|
-
var
|
|
10114
|
+
var import_core32 = require("@lightsparkdev/core");
|
|
10002
10115
|
var OnChainTransactionFromJson = (obj) => {
|
|
10003
10116
|
if (obj["__typename"] == "ChannelClosingTransaction") {
|
|
10004
10117
|
return {
|
|
@@ -10072,12 +10185,12 @@ var OnChainTransactionFromJson = (obj) => {
|
|
|
10072
10185
|
numConfirmations: obj["withdrawal_num_confirmations"]
|
|
10073
10186
|
};
|
|
10074
10187
|
}
|
|
10075
|
-
throw new
|
|
10188
|
+
throw new import_core32.LightsparkException(
|
|
10076
10189
|
"DeserializationError",
|
|
10077
10190
|
`Couldn't find a concrete type for interface OnChainTransaction corresponding to the typename=${obj["__typename"]}`
|
|
10078
10191
|
);
|
|
10079
10192
|
};
|
|
10080
|
-
var
|
|
10193
|
+
var FRAGMENT30 = `
|
|
10081
10194
|
fragment OnChainTransactionFragment on OnChainTransaction {
|
|
10082
10195
|
__typename
|
|
10083
10196
|
... on ChannelClosingTransaction {
|
|
@@ -10220,10 +10333,10 @@ query GetOnChainTransaction($id: ID!) {
|
|
|
10220
10333
|
}
|
|
10221
10334
|
}
|
|
10222
10335
|
|
|
10223
|
-
${
|
|
10336
|
+
${FRAGMENT30}
|
|
10224
10337
|
`,
|
|
10225
10338
|
variables: { id },
|
|
10226
|
-
constructObject: (data) => (0,
|
|
10339
|
+
constructObject: (data) => (0, import_core32.isObject)(data) && "entity" in data && (0, import_core32.isObject)(data.entity) ? OnChainTransactionFromJson(data.entity) : null
|
|
10227
10340
|
};
|
|
10228
10341
|
};
|
|
10229
10342
|
|
|
@@ -10263,7 +10376,7 @@ var RiskRating = /* @__PURE__ */ ((RiskRating2) => {
|
|
|
10263
10376
|
var RiskRating_default = RiskRating;
|
|
10264
10377
|
|
|
10265
10378
|
// src/objects/RoutingTransaction.ts
|
|
10266
|
-
var
|
|
10379
|
+
var import_core33 = require("@lightsparkdev/core");
|
|
10267
10380
|
var RoutingTransactionFromJson = (obj) => {
|
|
10268
10381
|
return {
|
|
10269
10382
|
id: obj["routing_transaction_id"],
|
|
@@ -10281,7 +10394,7 @@ var RoutingTransactionFromJson = (obj) => {
|
|
|
10281
10394
|
failureReason: !!obj["routing_transaction_failure_reason"] ? RoutingTransactionFailureReason_default[obj["routing_transaction_failure_reason"]] ?? RoutingTransactionFailureReason_default.FUTURE_VALUE : null
|
|
10282
10395
|
};
|
|
10283
10396
|
};
|
|
10284
|
-
var
|
|
10397
|
+
var FRAGMENT31 = `
|
|
10285
10398
|
fragment RoutingTransactionFragment on RoutingTransaction {
|
|
10286
10399
|
__typename
|
|
10287
10400
|
routing_transaction_id: id
|
|
@@ -10329,15 +10442,15 @@ query GetRoutingTransaction($id: ID!) {
|
|
|
10329
10442
|
}
|
|
10330
10443
|
}
|
|
10331
10444
|
|
|
10332
|
-
${
|
|
10445
|
+
${FRAGMENT31}
|
|
10333
10446
|
`,
|
|
10334
10447
|
variables: { id },
|
|
10335
|
-
constructObject: (data) => (0,
|
|
10448
|
+
constructObject: (data) => (0, import_core33.isObject)(data) && "entity" in data && (0, import_core33.isObject)(data.entity) ? RoutingTransactionFromJson(data.entity) : null
|
|
10336
10449
|
};
|
|
10337
10450
|
};
|
|
10338
10451
|
|
|
10339
10452
|
// src/objects/Signable.ts
|
|
10340
|
-
var
|
|
10453
|
+
var import_core34 = require("@lightsparkdev/core");
|
|
10341
10454
|
var SignableFromJson = (obj) => {
|
|
10342
10455
|
return {
|
|
10343
10456
|
id: obj["signable_id"],
|
|
@@ -10346,7 +10459,7 @@ var SignableFromJson = (obj) => {
|
|
|
10346
10459
|
typename: "Signable"
|
|
10347
10460
|
};
|
|
10348
10461
|
};
|
|
10349
|
-
var
|
|
10462
|
+
var FRAGMENT32 = `
|
|
10350
10463
|
fragment SignableFragment on Signable {
|
|
10351
10464
|
__typename
|
|
10352
10465
|
signable_id: id
|
|
@@ -10364,10 +10477,10 @@ query GetSignable($id: ID!) {
|
|
|
10364
10477
|
}
|
|
10365
10478
|
}
|
|
10366
10479
|
|
|
10367
|
-
${
|
|
10480
|
+
${FRAGMENT32}
|
|
10368
10481
|
`,
|
|
10369
10482
|
variables: { id },
|
|
10370
|
-
constructObject: (data) => (0,
|
|
10483
|
+
constructObject: (data) => (0, import_core34.isObject)(data) && "entity" in data && (0, import_core34.isObject)(data.entity) ? SignableFromJson(data.entity) : null
|
|
10371
10484
|
};
|
|
10372
10485
|
};
|
|
10373
10486
|
|
|
@@ -10389,7 +10502,7 @@ var TransactionType = /* @__PURE__ */ ((TransactionType2) => {
|
|
|
10389
10502
|
var TransactionType_default = TransactionType;
|
|
10390
10503
|
|
|
10391
10504
|
// src/objects/UmaInvitation.ts
|
|
10392
|
-
var
|
|
10505
|
+
var import_core35 = require("@lightsparkdev/core");
|
|
10393
10506
|
var UmaInvitationFromJson = (obj) => {
|
|
10394
10507
|
return {
|
|
10395
10508
|
id: obj["uma_invitation_id"],
|
|
@@ -10404,7 +10517,7 @@ var UmaInvitationFromJson = (obj) => {
|
|
|
10404
10517
|
incentivesIneligibilityReason: !!obj["uma_invitation_incentives_ineligibility_reason"] ? IncentivesIneligibilityReason_default[obj["uma_invitation_incentives_ineligibility_reason"]] ?? IncentivesIneligibilityReason_default.FUTURE_VALUE : null
|
|
10405
10518
|
};
|
|
10406
10519
|
};
|
|
10407
|
-
var
|
|
10520
|
+
var FRAGMENT33 = `
|
|
10408
10521
|
fragment UmaInvitationFragment on UmaInvitation {
|
|
10409
10522
|
__typename
|
|
10410
10523
|
uma_invitation_id: id
|
|
@@ -10428,10 +10541,10 @@ query GetUmaInvitation($id: ID!) {
|
|
|
10428
10541
|
}
|
|
10429
10542
|
}
|
|
10430
10543
|
|
|
10431
|
-
${
|
|
10544
|
+
${FRAGMENT33}
|
|
10432
10545
|
`,
|
|
10433
10546
|
variables: { id },
|
|
10434
|
-
constructObject: (data) => (0,
|
|
10547
|
+
constructObject: (data) => (0, import_core35.isObject)(data) && "entity" in data && (0, import_core35.isObject)(data.entity) ? UmaInvitationFromJson(data.entity) : null
|
|
10435
10548
|
};
|
|
10436
10549
|
};
|
|
10437
10550
|
|
|
@@ -10511,6 +10624,8 @@ var WebhookEventType_default = WebhookEventType;
|
|
|
10511
10624
|
getLightsparkNodeOwnerQuery,
|
|
10512
10625
|
getLightsparkNodeQuery,
|
|
10513
10626
|
getNodeQuery,
|
|
10627
|
+
getOfferDataQuery,
|
|
10628
|
+
getOfferQuery,
|
|
10514
10629
|
getOnChainTransactionQuery,
|
|
10515
10630
|
getPaymentRequestQuery,
|
|
10516
10631
|
getRoutingTransactionQuery,
|
package/dist/objects/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { A as Account, a as AccountToApiTokensConnection, b as AccountToChannelsConnection, c as AccountToNodesConnection, d as AccountToPaymentRequestsConnection, e as AccountToTransactionsConnection, f as AccountToWalletsConnection, g as AccountToWithdrawalRequestsConnection, h as ApiToken, j as AuditLogActor, B as Balances, l as BlockchainBalance, C as CancelInvoiceInput, m as CancelInvoiceOutput, n as Channel, o as ChannelClosingTransaction, q as ChannelFees, r as ChannelOpeningTransaction, t as ChannelSnapshot, v as ChannelStatus, w as ChannelToTransactionsConnection, x as ClaimUmaInvitationInput, y as ClaimUmaInvitationOutput, z as ClaimUmaInvitationWithIncentivesInput, D as ClaimUmaInvitationWithIncentivesOutput, E as ComplianceProvider, F as Connection, G as CreateApiTokenInput, H as CreateApiTokenOutput, I as CreateInvitationWithIncentivesInput, J as CreateInvitationWithIncentivesOutput, K as CreateInvoiceInput, M as CreateInvoiceOutput, N as CreateLnurlInvoiceInput, O as CreateNodeWalletAddressInput, P as CreateNodeWalletAddressOutput, Q as
|
|
1
|
+
export { A as Account, a as AccountToApiTokensConnection, b as AccountToChannelsConnection, c as AccountToNodesConnection, d as AccountToPaymentRequestsConnection, e as AccountToTransactionsConnection, f as AccountToWalletsConnection, g as AccountToWithdrawalRequestsConnection, h as ApiToken, j as AuditLogActor, B as Balances, l as BlockchainBalance, C as CancelInvoiceInput, m as CancelInvoiceOutput, n as Channel, o as ChannelClosingTransaction, q as ChannelFees, r as ChannelOpeningTransaction, t as ChannelSnapshot, v as ChannelStatus, w as ChannelToTransactionsConnection, x as ClaimUmaInvitationInput, y as ClaimUmaInvitationOutput, z as ClaimUmaInvitationWithIncentivesInput, D as ClaimUmaInvitationWithIncentivesOutput, E as ComplianceProvider, F as Connection, G as CreateApiTokenInput, H as CreateApiTokenOutput, I as CreateInvitationWithIncentivesInput, J as CreateInvitationWithIncentivesOutput, K as CreateInvoiceInput, M as CreateInvoiceOutput, N as CreateLnurlInvoiceInput, O as CreateNodeWalletAddressInput, P as CreateNodeWalletAddressOutput, Q as CreateOfferInput, R as CreateOfferOutput, S as CreateTestModeInvoiceInput, T as CreateTestModeInvoiceOutput, U as CreateTestModePaymentInput, V as CreateTestModePaymentoutput, X as CreateUmaInvitationInput, Y as CreateUmaInvitationOutput, Z as CreateUmaInvoiceInput, _ as CurrencyAmount, $ as CurrencyAmountInput, a0 as CurrencyUnit, a1 as DailyLiquidityForecast, a2 as DeclineToSignMessagesInput, a3 as DeclineToSignMessagesOutput, a4 as DeleteApiTokenInput, a5 as DeleteApiTokenOutput, a6 as Deposit, a8 as Entity, a9 as FailHtlcsInput, aa as FailHtlcsOutput, ab as FeeEstimate, ac as FundNodeInput, ad as FundNodeOutput, ae as GraphNode, af as Hop, ah as HtlcAttemptFailureCode, ai as IdAndSignature, aj as IncentivesIneligibilityReason, ak as IncentivesStatus, al as IncomingPayment, am as IncomingPaymentAttempt, ao as IncomingPaymentAttemptStatus, at as IncomingPaymentToAttemptsConnection, ap as IncomingPaymentsForInvoiceQueryInput, aq as IncomingPaymentsForInvoiceQueryOutput, ar as IncomingPaymentsForPaymentHashQueryInput, as as IncomingPaymentsForPaymentHashQueryOutput, au as Invoice, aw as InvoiceData, ax as InvoiceForPaymentHashInput, ay as InvoiceForPaymentHashOutput, az as InvoiceType, aA as LightningFeeEstimateForInvoiceInput, aB as LightningFeeEstimateForNodeInput, aC as LightningFeeEstimateOutput, aD as LightningPaymentDirection, aE as LightningTransaction, aG as LightsparkNode, aI as LightsparkNodeOwner, aK as LightsparkNodeStatus, aL as LightsparkNodeToChannelsConnection, aM as LightsparkNodeToDailyLiquidityForecastsConnection, aN as LightsparkNodeWithOSK, aO as LightsparkNodeWithRemoteSigning, aP as MultiSigAddressValidationParameters, aQ as Node, aS as NodeAddress, aT as NodeAddressType, aU as NodeToAddressesConnection, aV as Offer, aX as OfferData, aZ as OnChainFeeTarget, a_ as OnChainTransaction, b0 as OutgoingPayment, b1 as OutgoingPaymentAttempt, b2 as OutgoingPaymentAttemptStatus, b3 as OutgoingPaymentAttemptToHopsConnection, b4 as OutgoingPaymentForIdempotencyKeyInput, b5 as OutgoingPaymentForIdempotencyKeyOutput, ba as OutgoingPaymentToAttemptsConnection, b6 as OutgoingPaymentsForInvoiceQueryInput, b7 as OutgoingPaymentsForInvoiceQueryOutput, b8 as OutgoingPaymentsForPaymentHashQueryInput, b9 as OutgoingPaymentsForPaymentHashQueryOutput, bb as PageInfo, bc as PayInvoiceInput, bd as PayInvoiceOutput, bk as PayOfferInput, bl as PayOfferOutput, bm as PayTestModeInvoiceInput, bn as PayUmaInvoiceInput, be as PaymentDirection, bf as PaymentFailureReason, bg as PaymentRequest, bi as PaymentRequestData, bj as PaymentRequestStatus, bo as Permission, bp as PostTransactionData, bq as RegionCode, br as RegisterPaymentInput, bs as RegisterPaymentOutput, bt as ReleaseChannelPerCommitmentSecretInput, bu as ReleaseChannelPerCommitmentSecretOutput, bv as ReleasePaymentPreimageInput, bw as ReleasePaymentPreimageOutput, bx as RemoteSigningSubEventType, by as RequestInitiator, bz as RequestWithdrawalInput, bA as RequestWithdrawalOutput, bB as RichText, bC as RiskRating, bD as RoutingTransaction, bF as RoutingTransactionFailureReason, bG as ScreenNodeInput, bH as ScreenNodeOutput, bI as Secret, bJ as SendPaymentInput, bK as SendPaymentOutput, bL as SetInvoicePaymentHashInput, bM as SetInvoicePaymentHashOutput, bS as SignInvoiceInput, bT as SignInvoiceOutput, bU as SignMessagesInput, bV as SignMessagesOutput, bN as Signable, bP as SignablePayload, bR as SignablePayloadStatus, bW as SingleNodeDashboard, bX as Transaction, bZ as TransactionFailures, b_ as TransactionStatus, b$ as TransactionType, c0 as TransactionUpdate, c1 as UmaInvitation, c3 as UpdateChannelPerCommitmentPointInput, c4 as UpdateChannelPerCommitmentPointOutput, c5 as UpdateNodeSharedSecretInput, c6 as UpdateNodeSharedSecretOutput, c7 as Wallet, c8 as WalletStatus, c9 as WalletToPaymentRequestsConnection, ca as WalletToTransactionsConnection, cb as WalletToWithdrawalRequestsConnection, W as WebhookEventType, cc as Withdrawal, ce as WithdrawalFeeEstimateInput, cf as WithdrawalFeeEstimateOutput, cg as WithdrawalMode, ch as WithdrawalRequest, ci as WithdrawalRequestStatus, cj as WithdrawalRequestToChannelClosingTransactionsConnection, ck as WithdrawalRequestToChannelOpeningTransactionsConnection, cl as WithdrawalRequestToWithdrawalsConnection, i as getApiTokenQuery, k as getAuditLogActorQuery, p as getChannelClosingTransactionQuery, s as getChannelOpeningTransactionQuery, u as getChannelSnapshotQuery, a7 as getDepositQuery, ag as getHopQuery, an as getIncomingPaymentAttemptQuery, av as getInvoiceQuery, aF as getLightningTransactionQuery, aJ as getLightsparkNodeOwnerQuery, aH as getLightsparkNodeQuery, aR as getNodeQuery, aY as getOfferDataQuery, aW as getOfferQuery, a$ as getOnChainTransactionQuery, bh as getPaymentRequestQuery, bE as getRoutingTransactionQuery, bQ as getSignablePayloadQuery, bO as getSignableQuery, bY as getTransactionQuery, c2 as getUmaInvitationQuery, cd as getWithdrawalQuery } from '../index-BxC6kyLD.cjs';
|
|
2
2
|
export { B as BitcoinNetwork } from '../BitcoinNetwork-CIfB1c0X.cjs';
|
|
3
3
|
import '@lightsparkdev/core';
|
|
4
4
|
import 'zen-observable';
|