@lightsparkdev/lightspark-sdk 1.2.3 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -0
- package/dist/{BitcoinNetwork-37e9f091.d.ts → BitcoinNetwork-972b1d01.d.ts} +4 -6
- package/dist/{chunk-NCPWHRFO.js → chunk-Y55D3PD4.js} +11 -11
- package/dist/env.d.cts +1 -1
- package/dist/env.d.ts +1 -1
- package/dist/{index-449c9f58.d.ts → index-a5028d74.d.ts} +572 -943
- package/dist/index.cjs +263 -232
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +43 -12
- package/dist/objects/index.d.cts +2 -2
- package/dist/objects/index.d.ts +2 -2
- package/dist/objects/index.js +1 -1
- package/package.json +2 -2
- package/src/client.ts +18 -0
- package/src/graphql/CancelInvoice.ts +17 -0
- package/src/objects/Account.ts +2 -2
- package/src/objects/AccountToApiTokensConnection.ts +3 -6
- package/src/objects/AccountToChannelsConnection.ts +3 -3
- package/src/objects/AccountToNodesConnection.ts +3 -6
- package/src/objects/AccountToPaymentRequestsConnection.ts +3 -6
- package/src/objects/AccountToTransactionsConnection.ts +5 -8
- package/src/objects/AccountToWalletsConnection.ts +3 -6
- package/src/objects/ApiToken.ts +7 -8
- package/src/objects/Balances.ts +16 -18
- package/src/objects/BitcoinNetwork.ts +4 -6
- package/src/objects/BlockchainBalance.ts +1 -4
- package/src/objects/CancelInvoiceInput.ts +18 -0
- package/src/objects/CancelInvoiceOutput.ts +26 -0
- package/src/objects/Channel.ts +16 -25
- package/src/objects/ChannelClosingTransaction.ts +10 -17
- package/src/objects/ChannelFees.ts +1 -4
- package/src/objects/ChannelOpeningTransaction.ts +10 -17
- package/src/objects/ChannelStatus.ts +13 -19
- package/src/objects/ChannelToTransactionsConnection.ts +6 -6
- package/src/objects/ComplianceProvider.ts +2 -3
- package/src/objects/Connection.ts +3 -6
- package/src/objects/CreateApiTokenInput.ts +1 -4
- package/src/objects/CreateLnurlInvoiceInput.ts +2 -2
- package/src/objects/CreateTestModePaymentoutput.ts +2 -2
- package/src/objects/CurrencyAmount.ts +4 -6
- package/src/objects/CurrencyUnit.ts +7 -11
- package/src/objects/Deposit.ts +10 -16
- package/src/objects/Entity.ts +2 -2
- package/src/objects/FeeEstimate.ts +3 -3
- package/src/objects/GraphNode.ts +13 -20
- package/src/objects/Hop.ts +4 -7
- package/src/objects/HtlcAttemptFailureCode.ts +4 -5
- package/src/objects/IncentivesIneligibilityReason.ts +13 -25
- package/src/objects/IncentivesStatus.ts +5 -8
- package/src/objects/IncomingPayment.ts +5 -12
- package/src/objects/IncomingPaymentAttempt.ts +3 -4
- package/src/objects/IncomingPaymentAttemptStatus.ts +3 -7
- package/src/objects/IncomingPaymentToAttemptsConnection.ts +3 -6
- package/src/objects/InvoiceData.ts +2 -2
- package/src/objects/InvoiceType.ts +2 -3
- package/src/objects/LightningFeeEstimateForInvoiceInput.ts +2 -2
- package/src/objects/LightningTransaction.ts +4 -8
- package/src/objects/LightsparkNode.ts +19 -25
- package/src/objects/LightsparkNodeStatus.ts +2 -3
- package/src/objects/LightsparkNodeToChannelsConnection.ts +3 -6
- package/src/objects/LightsparkNodeWithOSK.ts +19 -27
- package/src/objects/LightsparkNodeWithRemoteSigning.ts +17 -25
- package/src/objects/Node.ts +13 -19
- package/src/objects/NodeAddressType.ts +4 -5
- package/src/objects/NodeToAddressesConnection.ts +4 -4
- package/src/objects/OnChainTransaction.ts +11 -18
- package/src/objects/OutgoingPayment.ts +7 -19
- package/src/objects/OutgoingPaymentAttempt.ts +11 -19
- package/src/objects/OutgoingPaymentAttemptStatus.ts +3 -7
- package/src/objects/OutgoingPaymentAttemptToHopsConnection.ts +5 -9
- package/src/objects/OutgoingPaymentToAttemptsConnection.ts +3 -6
- package/src/objects/PageInfo.ts +2 -3
- package/src/objects/PayInvoiceInput.ts +4 -4
- package/src/objects/PaymentDirection.ts +2 -3
- package/src/objects/PaymentFailureReason.ts +4 -5
- package/src/objects/PaymentRequest.ts +3 -4
- package/src/objects/PaymentRequestData.ts +3 -3
- package/src/objects/PaymentRequestStatus.ts +4 -5
- package/src/objects/Permission.ts +4 -5
- package/src/objects/PostTransactionData.ts +3 -6
- package/src/objects/RegionCode.ts +12 -43
- package/src/objects/RegisterPaymentInput.ts +5 -9
- package/src/objects/RemoteSigningSubEventType.ts +3 -7
- package/src/objects/RiskRating.ts +5 -6
- package/src/objects/RoutingTransaction.ts +8 -15
- package/src/objects/RoutingTransactionFailureReason.ts +4 -6
- package/src/objects/ScreenNodeInput.ts +2 -2
- package/src/objects/SendPaymentInput.ts +2 -2
- package/src/objects/SetInvoicePaymentHashInput.ts +2 -2
- package/src/objects/SignablePayload.ts +2 -2
- package/src/objects/SignablePayloadStatus.ts +2 -3
- package/src/objects/Transaction.ts +4 -9
- package/src/objects/TransactionFailures.ts +1 -4
- package/src/objects/TransactionStatus.ts +6 -11
- package/src/objects/TransactionType.ts +12 -22
- package/src/objects/UmaInvitation.ts +2 -8
- package/src/objects/Wallet.ts +3 -4
- package/src/objects/WalletStatus.ts +12 -25
- package/src/objects/WalletToPaymentRequestsConnection.ts +3 -6
- package/src/objects/WalletToTransactionsConnection.ts +3 -6
- package/src/objects/WebhookEventType.ts +4 -5
- package/src/objects/Withdrawal.ts +11 -18
- package/src/objects/WithdrawalMode.ts +3 -7
- package/src/objects/WithdrawalRequest.ts +3 -7
- package/src/objects/WithdrawalRequestStatus.ts +2 -3
- package/src/objects/WithdrawalRequestToChannelClosingTransactionsConnection.ts +4 -10
- package/src/objects/WithdrawalRequestToChannelOpeningTransactionsConnection.ts +4 -10
- package/src/objects/index.ts +2 -0
- package/src/tests/integration/general-regtest.test.ts +14 -0
package/dist/index.cjs
CHANGED
|
@@ -1949,7 +1949,7 @@ var import_core9 = require("@lightsparkdev/core");
|
|
|
1949
1949
|
// package.json
|
|
1950
1950
|
var package_default = {
|
|
1951
1951
|
name: "@lightsparkdev/lightspark-sdk",
|
|
1952
|
-
version: "1.
|
|
1952
|
+
version: "1.3.0",
|
|
1953
1953
|
description: "Lightspark JS SDK",
|
|
1954
1954
|
author: "Lightspark Inc.",
|
|
1955
1955
|
keywords: [
|
|
@@ -2037,7 +2037,7 @@ var package_default = {
|
|
|
2037
2037
|
},
|
|
2038
2038
|
license: "Apache-2.0",
|
|
2039
2039
|
dependencies: {
|
|
2040
|
-
"@lightsparkdev/core": "1.0.
|
|
2040
|
+
"@lightsparkdev/core": "1.0.12",
|
|
2041
2041
|
"@lightsparkdev/crypto-wasm": "0.1.2",
|
|
2042
2042
|
"auto-bind": "^5.0.1",
|
|
2043
2043
|
"crypto-browserify": "^3.12.0",
|
|
@@ -2327,217 +2327,6 @@ var BitcoinFeeEstimate = `
|
|
|
2327
2327
|
${FRAGMENT2}
|
|
2328
2328
|
`;
|
|
2329
2329
|
|
|
2330
|
-
// src/objects/IncentivesIneligibilityReason.ts
|
|
2331
|
-
var IncentivesIneligibilityReason = /* @__PURE__ */ ((IncentivesIneligibilityReason2) => {
|
|
2332
|
-
IncentivesIneligibilityReason2["FUTURE_VALUE"] = "FUTURE_VALUE";
|
|
2333
|
-
IncentivesIneligibilityReason2["DISABLED"] = "DISABLED";
|
|
2334
|
-
IncentivesIneligibilityReason2["SENDER_NOT_ELIGIBLE"] = "SENDER_NOT_ELIGIBLE";
|
|
2335
|
-
IncentivesIneligibilityReason2["RECEIVER_NOT_ELIGIBLE"] = "RECEIVER_NOT_ELIGIBLE";
|
|
2336
|
-
IncentivesIneligibilityReason2["SENDING_VASP_NOT_ELIGIBLE"] = "SENDING_VASP_NOT_ELIGIBLE";
|
|
2337
|
-
IncentivesIneligibilityReason2["RECEIVING_VASP_NOT_ELIGIBLE"] = "RECEIVING_VASP_NOT_ELIGIBLE";
|
|
2338
|
-
IncentivesIneligibilityReason2["NOT_CROSS_BORDER"] = "NOT_CROSS_BORDER";
|
|
2339
|
-
return IncentivesIneligibilityReason2;
|
|
2340
|
-
})(IncentivesIneligibilityReason || {});
|
|
2341
|
-
var IncentivesIneligibilityReason_default = IncentivesIneligibilityReason;
|
|
2342
|
-
|
|
2343
|
-
// src/objects/IncentivesStatus.ts
|
|
2344
|
-
var IncentivesStatus = /* @__PURE__ */ ((IncentivesStatus2) => {
|
|
2345
|
-
IncentivesStatus2["FUTURE_VALUE"] = "FUTURE_VALUE";
|
|
2346
|
-
IncentivesStatus2["PENDING"] = "PENDING";
|
|
2347
|
-
IncentivesStatus2["VALIDATED"] = "VALIDATED";
|
|
2348
|
-
IncentivesStatus2["INELIGIBLE"] = "INELIGIBLE";
|
|
2349
|
-
return IncentivesStatus2;
|
|
2350
|
-
})(IncentivesStatus || {});
|
|
2351
|
-
var IncentivesStatus_default = IncentivesStatus;
|
|
2352
|
-
|
|
2353
|
-
// src/objects/UmaInvitation.ts
|
|
2354
|
-
var UmaInvitationFromJson = (obj) => {
|
|
2355
|
-
return {
|
|
2356
|
-
id: obj["uma_invitation_id"],
|
|
2357
|
-
createdAt: obj["uma_invitation_created_at"],
|
|
2358
|
-
updatedAt: obj["uma_invitation_updated_at"],
|
|
2359
|
-
code: obj["uma_invitation_code"],
|
|
2360
|
-
url: obj["uma_invitation_url"],
|
|
2361
|
-
inviterUma: obj["uma_invitation_inviter_uma"],
|
|
2362
|
-
incentivesStatus: IncentivesStatus_default[obj["uma_invitation_incentives_status"]] ?? IncentivesStatus_default.FUTURE_VALUE,
|
|
2363
|
-
typename: "UmaInvitation",
|
|
2364
|
-
inviteeUma: obj["uma_invitation_invitee_uma"],
|
|
2365
|
-
incentivesIneligibilityReason: !!obj["uma_invitation_incentives_ineligibility_reason"] ? IncentivesIneligibilityReason_default[obj["uma_invitation_incentives_ineligibility_reason"]] ?? IncentivesIneligibilityReason_default.FUTURE_VALUE : null
|
|
2366
|
-
};
|
|
2367
|
-
};
|
|
2368
|
-
var FRAGMENT3 = `
|
|
2369
|
-
fragment UmaInvitationFragment on UmaInvitation {
|
|
2370
|
-
__typename
|
|
2371
|
-
uma_invitation_id: id
|
|
2372
|
-
uma_invitation_created_at: created_at
|
|
2373
|
-
uma_invitation_updated_at: updated_at
|
|
2374
|
-
uma_invitation_code: code
|
|
2375
|
-
uma_invitation_url: url
|
|
2376
|
-
uma_invitation_inviter_uma: inviter_uma
|
|
2377
|
-
uma_invitation_invitee_uma: invitee_uma
|
|
2378
|
-
uma_invitation_incentives_status: incentives_status
|
|
2379
|
-
uma_invitation_incentives_ineligibility_reason: incentives_ineligibility_reason
|
|
2380
|
-
}`;
|
|
2381
|
-
var getUmaInvitationQuery = (id) => {
|
|
2382
|
-
return {
|
|
2383
|
-
queryPayload: `
|
|
2384
|
-
query GetUmaInvitation($id: ID!) {
|
|
2385
|
-
entity(id: $id) {
|
|
2386
|
-
... on UmaInvitation {
|
|
2387
|
-
...UmaInvitationFragment
|
|
2388
|
-
}
|
|
2389
|
-
}
|
|
2390
|
-
}
|
|
2391
|
-
|
|
2392
|
-
${FRAGMENT3}
|
|
2393
|
-
`,
|
|
2394
|
-
variables: { id },
|
|
2395
|
-
constructObject: (data) => UmaInvitationFromJson(data.entity)
|
|
2396
|
-
};
|
|
2397
|
-
};
|
|
2398
|
-
|
|
2399
|
-
// src/graphql/ClaimUmaInvitation.ts
|
|
2400
|
-
var ClaimUmaInvitation = `
|
|
2401
|
-
mutation ClaimUmaInvitation(
|
|
2402
|
-
$invitationCode: String!
|
|
2403
|
-
$inviteeUma: String!
|
|
2404
|
-
) {
|
|
2405
|
-
claim_uma_invitation(input: {
|
|
2406
|
-
invitation_code: $invitationCode
|
|
2407
|
-
invitee_uma: $inviteeUma
|
|
2408
|
-
}) {
|
|
2409
|
-
invitation {
|
|
2410
|
-
...UmaInvitationFragment
|
|
2411
|
-
}
|
|
2412
|
-
}
|
|
2413
|
-
}
|
|
2414
|
-
|
|
2415
|
-
${FRAGMENT3}
|
|
2416
|
-
`;
|
|
2417
|
-
|
|
2418
|
-
// src/graphql/ClaimUmaInvitationWithIncentives.ts
|
|
2419
|
-
var ClaimUmaInvitationWithIncentives = `
|
|
2420
|
-
mutation ClaimUmaInvitationWithIncentives(
|
|
2421
|
-
$invitationCode: String!
|
|
2422
|
-
$inviteeUma: String!
|
|
2423
|
-
$inviteePhoneHash: String!
|
|
2424
|
-
$inviteeRegion: RegionCode!
|
|
2425
|
-
) {
|
|
2426
|
-
claim_uma_invitation_with_incentives(input: {
|
|
2427
|
-
invitation_code: $invitationCode
|
|
2428
|
-
invitee_uma: $inviteeUma
|
|
2429
|
-
invitee_phone_hash: $inviteePhoneHash
|
|
2430
|
-
invitee_region: $inviteeRegion
|
|
2431
|
-
}) {
|
|
2432
|
-
invitation {
|
|
2433
|
-
...UmaInvitationFragment
|
|
2434
|
-
}
|
|
2435
|
-
}
|
|
2436
|
-
}
|
|
2437
|
-
|
|
2438
|
-
${FRAGMENT3}
|
|
2439
|
-
`;
|
|
2440
|
-
|
|
2441
|
-
// src/objects/Permission.ts
|
|
2442
|
-
var Permission = /* @__PURE__ */ ((Permission2) => {
|
|
2443
|
-
Permission2["FUTURE_VALUE"] = "FUTURE_VALUE";
|
|
2444
|
-
Permission2["ALL"] = "ALL";
|
|
2445
|
-
Permission2["MAINNET_VIEW"] = "MAINNET_VIEW";
|
|
2446
|
-
Permission2["MAINNET_TRANSACT"] = "MAINNET_TRANSACT";
|
|
2447
|
-
Permission2["MAINNET_MANAGE"] = "MAINNET_MANAGE";
|
|
2448
|
-
Permission2["TESTNET_VIEW"] = "TESTNET_VIEW";
|
|
2449
|
-
Permission2["TESTNET_TRANSACT"] = "TESTNET_TRANSACT";
|
|
2450
|
-
Permission2["TESTNET_MANAGE"] = "TESTNET_MANAGE";
|
|
2451
|
-
Permission2["REGTEST_VIEW"] = "REGTEST_VIEW";
|
|
2452
|
-
Permission2["REGTEST_TRANSACT"] = "REGTEST_TRANSACT";
|
|
2453
|
-
Permission2["REGTEST_MANAGE"] = "REGTEST_MANAGE";
|
|
2454
|
-
Permission2["USER_VIEW"] = "USER_VIEW";
|
|
2455
|
-
Permission2["USER_MANAGE"] = "USER_MANAGE";
|
|
2456
|
-
Permission2["ACCOUNT_VIEW"] = "ACCOUNT_VIEW";
|
|
2457
|
-
Permission2["ACCOUNT_MANAGE"] = "ACCOUNT_MANAGE";
|
|
2458
|
-
return Permission2;
|
|
2459
|
-
})(Permission || {});
|
|
2460
|
-
var Permission_default = Permission;
|
|
2461
|
-
|
|
2462
|
-
// src/objects/ApiToken.ts
|
|
2463
|
-
var ApiTokenFromJson = (obj) => {
|
|
2464
|
-
return {
|
|
2465
|
-
id: obj["api_token_id"],
|
|
2466
|
-
createdAt: obj["api_token_created_at"],
|
|
2467
|
-
updatedAt: obj["api_token_updated_at"],
|
|
2468
|
-
clientId: obj["api_token_client_id"],
|
|
2469
|
-
name: obj["api_token_name"],
|
|
2470
|
-
permissions: obj["api_token_permissions"].map((e) => Permission_default[e]),
|
|
2471
|
-
typename: "ApiToken"
|
|
2472
|
-
};
|
|
2473
|
-
};
|
|
2474
|
-
var FRAGMENT4 = `
|
|
2475
|
-
fragment ApiTokenFragment on ApiToken {
|
|
2476
|
-
__typename
|
|
2477
|
-
api_token_id: id
|
|
2478
|
-
api_token_created_at: created_at
|
|
2479
|
-
api_token_updated_at: updated_at
|
|
2480
|
-
api_token_client_id: client_id
|
|
2481
|
-
api_token_name: name
|
|
2482
|
-
api_token_permissions: permissions
|
|
2483
|
-
}`;
|
|
2484
|
-
var getApiTokenQuery = (id) => {
|
|
2485
|
-
return {
|
|
2486
|
-
queryPayload: `
|
|
2487
|
-
query GetApiToken($id: ID!) {
|
|
2488
|
-
entity(id: $id) {
|
|
2489
|
-
... on ApiToken {
|
|
2490
|
-
...ApiTokenFragment
|
|
2491
|
-
}
|
|
2492
|
-
}
|
|
2493
|
-
}
|
|
2494
|
-
|
|
2495
|
-
${FRAGMENT4}
|
|
2496
|
-
`,
|
|
2497
|
-
variables: { id },
|
|
2498
|
-
constructObject: (data) => ApiTokenFromJson(data.entity)
|
|
2499
|
-
};
|
|
2500
|
-
};
|
|
2501
|
-
|
|
2502
|
-
// src/graphql/CreateApiToken.ts
|
|
2503
|
-
var CreateApiToken = `
|
|
2504
|
-
mutation CreateApiToken(
|
|
2505
|
-
$name: String!
|
|
2506
|
-
$permissions: [Permission!]!
|
|
2507
|
-
) {
|
|
2508
|
-
create_api_token(input: {
|
|
2509
|
-
name: $name
|
|
2510
|
-
permissions: $permissions
|
|
2511
|
-
}) {
|
|
2512
|
-
api_token {
|
|
2513
|
-
...ApiTokenFragment
|
|
2514
|
-
}
|
|
2515
|
-
client_secret
|
|
2516
|
-
}
|
|
2517
|
-
}
|
|
2518
|
-
|
|
2519
|
-
${FRAGMENT4}
|
|
2520
|
-
`;
|
|
2521
|
-
|
|
2522
|
-
// src/graphql/CreateInvoice.ts
|
|
2523
|
-
var CreateInvoice = `
|
|
2524
|
-
mutation CreateInvoice(
|
|
2525
|
-
$node_id: ID!
|
|
2526
|
-
$amount_msats: Long!
|
|
2527
|
-
$memo: String
|
|
2528
|
-
$type: InvoiceType = null
|
|
2529
|
-
$expiry_secs: Int = null
|
|
2530
|
-
) {
|
|
2531
|
-
create_invoice(input: { node_id: $node_id, amount_msats: $amount_msats, memo: $memo, invoice_type: $type, expiry_secs: $expiry_secs }) {
|
|
2532
|
-
invoice {
|
|
2533
|
-
data {
|
|
2534
|
-
encoded_payment_request
|
|
2535
|
-
}
|
|
2536
|
-
}
|
|
2537
|
-
}
|
|
2538
|
-
}
|
|
2539
|
-
`;
|
|
2540
|
-
|
|
2541
2330
|
// src/objects/BitcoinNetwork.ts
|
|
2542
2331
|
var BitcoinNetwork = /* @__PURE__ */ ((BitcoinNetwork2) => {
|
|
2543
2332
|
BitcoinNetwork2["FUTURE_VALUE"] = "FUTURE_VALUE";
|
|
@@ -2681,7 +2470,7 @@ query GetGraphNode($id: ID!) {
|
|
|
2681
2470
|
}
|
|
2682
2471
|
}
|
|
2683
2472
|
|
|
2684
|
-
${
|
|
2473
|
+
${FRAGMENT3}
|
|
2685
2474
|
`,
|
|
2686
2475
|
variables: { id },
|
|
2687
2476
|
constructObject: (data) => GraphNodeFromJson(data.entity)
|
|
@@ -2716,7 +2505,7 @@ var GraphNodeFromJson = (obj) => {
|
|
|
2716
2505
|
obj["graph_node_public_key"]
|
|
2717
2506
|
);
|
|
2718
2507
|
};
|
|
2719
|
-
var
|
|
2508
|
+
var FRAGMENT3 = `
|
|
2720
2509
|
fragment GraphNodeFragment on GraphNode {
|
|
2721
2510
|
__typename
|
|
2722
2511
|
graph_node_id: id
|
|
@@ -2905,7 +2694,7 @@ query GetChannel($id: ID!) {
|
|
|
2905
2694
|
}
|
|
2906
2695
|
}
|
|
2907
2696
|
|
|
2908
|
-
${
|
|
2697
|
+
${FRAGMENT4}
|
|
2909
2698
|
`,
|
|
2910
2699
|
variables: { id },
|
|
2911
2700
|
constructObject: (data) => ChannelFromJson(data.entity)
|
|
@@ -2958,7 +2747,7 @@ var ChannelFromJson = (obj) => {
|
|
|
2958
2747
|
obj["channel_short_channel_id"]
|
|
2959
2748
|
);
|
|
2960
2749
|
};
|
|
2961
|
-
var
|
|
2750
|
+
var FRAGMENT4 = `
|
|
2962
2751
|
fragment ChannelFragment on Channel {
|
|
2963
2752
|
__typename
|
|
2964
2753
|
channel_id: id
|
|
@@ -3282,7 +3071,7 @@ query GetLightsparkNodeWithOSK($id: ID!) {
|
|
|
3282
3071
|
}
|
|
3283
3072
|
}
|
|
3284
3073
|
|
|
3285
|
-
${
|
|
3074
|
+
${FRAGMENT5}
|
|
3286
3075
|
`,
|
|
3287
3076
|
variables: { id },
|
|
3288
3077
|
constructObject: (data) => LightsparkNodeWithOSKFromJson(data.entity)
|
|
@@ -3343,7 +3132,7 @@ var LightsparkNodeWithOSKFromJson = (obj) => {
|
|
|
3343
3132
|
) : void 0
|
|
3344
3133
|
);
|
|
3345
3134
|
};
|
|
3346
|
-
var
|
|
3135
|
+
var FRAGMENT5 = `
|
|
3347
3136
|
fragment LightsparkNodeWithOSKFragment on LightsparkNodeWithOSK {
|
|
3348
3137
|
__typename
|
|
3349
3138
|
lightspark_node_with_o_s_k_id: id
|
|
@@ -3667,7 +3456,7 @@ query GetLightsparkNodeWithRemoteSigning($id: ID!) {
|
|
|
3667
3456
|
}
|
|
3668
3457
|
}
|
|
3669
3458
|
|
|
3670
|
-
${
|
|
3459
|
+
${FRAGMENT6}
|
|
3671
3460
|
`,
|
|
3672
3461
|
variables: { id },
|
|
3673
3462
|
constructObject: (data) => LightsparkNodeWithRemoteSigningFromJson(data.entity)
|
|
@@ -3730,7 +3519,7 @@ var LightsparkNodeWithRemoteSigningFromJson = (obj) => {
|
|
|
3730
3519
|
!!obj["lightspark_node_with_remote_signing_balances"] ? BalancesFromJson(obj["lightspark_node_with_remote_signing_balances"]) : void 0
|
|
3731
3520
|
);
|
|
3732
3521
|
};
|
|
3733
|
-
var
|
|
3522
|
+
var FRAGMENT6 = `
|
|
3734
3523
|
fragment LightsparkNodeWithRemoteSigningFragment on LightsparkNodeWithRemoteSigning {
|
|
3735
3524
|
__typename
|
|
3736
3525
|
lightspark_node_with_remote_signing_id: id
|
|
@@ -4026,7 +3815,7 @@ var NodeToJson = (obj) => {
|
|
|
4026
3815
|
`Couldn't find a concrete type for interface Node corresponding to the typename=${obj.typename}`
|
|
4027
3816
|
);
|
|
4028
3817
|
};
|
|
4029
|
-
var
|
|
3818
|
+
var FRAGMENT7 = `
|
|
4030
3819
|
fragment NodeFragment on Node {
|
|
4031
3820
|
__typename
|
|
4032
3821
|
... on GraphNode {
|
|
@@ -4312,7 +4101,7 @@ query GetNode($id: ID!) {
|
|
|
4312
4101
|
}
|
|
4313
4102
|
}
|
|
4314
4103
|
|
|
4315
|
-
${
|
|
4104
|
+
${FRAGMENT7}
|
|
4316
4105
|
`,
|
|
4317
4106
|
variables: { id },
|
|
4318
4107
|
constructObject: (data) => NodeFromJson(data.entity)
|
|
@@ -4333,7 +4122,7 @@ var InvoiceDataFromJson = (obj) => {
|
|
|
4333
4122
|
memo: obj["invoice_data_memo"]
|
|
4334
4123
|
};
|
|
4335
4124
|
};
|
|
4336
|
-
var
|
|
4125
|
+
var FRAGMENT8 = `
|
|
4337
4126
|
fragment InvoiceDataFragment on InvoiceData {
|
|
4338
4127
|
__typename
|
|
4339
4128
|
invoice_data_encoded_payment_request: encoded_payment_request
|
|
@@ -4647,7 +4436,7 @@ var InvoiceFromJson = (obj) => {
|
|
|
4647
4436
|
amountPaid: !!obj["invoice_amount_paid"] ? CurrencyAmountFromJson(obj["invoice_amount_paid"]) : void 0
|
|
4648
4437
|
};
|
|
4649
4438
|
};
|
|
4650
|
-
var
|
|
4439
|
+
var FRAGMENT9 = `
|
|
4651
4440
|
fragment InvoiceFragment on Invoice {
|
|
4652
4441
|
__typename
|
|
4653
4442
|
invoice_id: id
|
|
@@ -4965,13 +4754,239 @@ query GetInvoice($id: ID!) {
|
|
|
4965
4754
|
}
|
|
4966
4755
|
}
|
|
4967
4756
|
|
|
4968
|
-
${
|
|
4757
|
+
${FRAGMENT9}
|
|
4969
4758
|
`,
|
|
4970
4759
|
variables: { id },
|
|
4971
4760
|
constructObject: (data) => InvoiceFromJson(data.entity)
|
|
4972
4761
|
};
|
|
4973
4762
|
};
|
|
4974
4763
|
|
|
4764
|
+
// src/graphql/CancelInvoice.ts
|
|
4765
|
+
var CancelInvoice = `
|
|
4766
|
+
mutation CancelInvoice(
|
|
4767
|
+
$invoice_id: ID!
|
|
4768
|
+
) {
|
|
4769
|
+
cancel_invoice(input: { invoice_id: $invoice_id }) {
|
|
4770
|
+
invoice {
|
|
4771
|
+
...InvoiceFragment
|
|
4772
|
+
}
|
|
4773
|
+
}
|
|
4774
|
+
}
|
|
4775
|
+
|
|
4776
|
+
${FRAGMENT9}
|
|
4777
|
+
`;
|
|
4778
|
+
|
|
4779
|
+
// src/objects/IncentivesIneligibilityReason.ts
|
|
4780
|
+
var IncentivesIneligibilityReason = /* @__PURE__ */ ((IncentivesIneligibilityReason2) => {
|
|
4781
|
+
IncentivesIneligibilityReason2["FUTURE_VALUE"] = "FUTURE_VALUE";
|
|
4782
|
+
IncentivesIneligibilityReason2["DISABLED"] = "DISABLED";
|
|
4783
|
+
IncentivesIneligibilityReason2["SENDER_NOT_ELIGIBLE"] = "SENDER_NOT_ELIGIBLE";
|
|
4784
|
+
IncentivesIneligibilityReason2["RECEIVER_NOT_ELIGIBLE"] = "RECEIVER_NOT_ELIGIBLE";
|
|
4785
|
+
IncentivesIneligibilityReason2["SENDING_VASP_NOT_ELIGIBLE"] = "SENDING_VASP_NOT_ELIGIBLE";
|
|
4786
|
+
IncentivesIneligibilityReason2["RECEIVING_VASP_NOT_ELIGIBLE"] = "RECEIVING_VASP_NOT_ELIGIBLE";
|
|
4787
|
+
IncentivesIneligibilityReason2["NOT_CROSS_BORDER"] = "NOT_CROSS_BORDER";
|
|
4788
|
+
return IncentivesIneligibilityReason2;
|
|
4789
|
+
})(IncentivesIneligibilityReason || {});
|
|
4790
|
+
var IncentivesIneligibilityReason_default = IncentivesIneligibilityReason;
|
|
4791
|
+
|
|
4792
|
+
// src/objects/IncentivesStatus.ts
|
|
4793
|
+
var IncentivesStatus = /* @__PURE__ */ ((IncentivesStatus2) => {
|
|
4794
|
+
IncentivesStatus2["FUTURE_VALUE"] = "FUTURE_VALUE";
|
|
4795
|
+
IncentivesStatus2["PENDING"] = "PENDING";
|
|
4796
|
+
IncentivesStatus2["VALIDATED"] = "VALIDATED";
|
|
4797
|
+
IncentivesStatus2["INELIGIBLE"] = "INELIGIBLE";
|
|
4798
|
+
return IncentivesStatus2;
|
|
4799
|
+
})(IncentivesStatus || {});
|
|
4800
|
+
var IncentivesStatus_default = IncentivesStatus;
|
|
4801
|
+
|
|
4802
|
+
// src/objects/UmaInvitation.ts
|
|
4803
|
+
var UmaInvitationFromJson = (obj) => {
|
|
4804
|
+
return {
|
|
4805
|
+
id: obj["uma_invitation_id"],
|
|
4806
|
+
createdAt: obj["uma_invitation_created_at"],
|
|
4807
|
+
updatedAt: obj["uma_invitation_updated_at"],
|
|
4808
|
+
code: obj["uma_invitation_code"],
|
|
4809
|
+
url: obj["uma_invitation_url"],
|
|
4810
|
+
inviterUma: obj["uma_invitation_inviter_uma"],
|
|
4811
|
+
incentivesStatus: IncentivesStatus_default[obj["uma_invitation_incentives_status"]] ?? IncentivesStatus_default.FUTURE_VALUE,
|
|
4812
|
+
typename: "UmaInvitation",
|
|
4813
|
+
inviteeUma: obj["uma_invitation_invitee_uma"],
|
|
4814
|
+
incentivesIneligibilityReason: !!obj["uma_invitation_incentives_ineligibility_reason"] ? IncentivesIneligibilityReason_default[obj["uma_invitation_incentives_ineligibility_reason"]] ?? IncentivesIneligibilityReason_default.FUTURE_VALUE : null
|
|
4815
|
+
};
|
|
4816
|
+
};
|
|
4817
|
+
var FRAGMENT10 = `
|
|
4818
|
+
fragment UmaInvitationFragment on UmaInvitation {
|
|
4819
|
+
__typename
|
|
4820
|
+
uma_invitation_id: id
|
|
4821
|
+
uma_invitation_created_at: created_at
|
|
4822
|
+
uma_invitation_updated_at: updated_at
|
|
4823
|
+
uma_invitation_code: code
|
|
4824
|
+
uma_invitation_url: url
|
|
4825
|
+
uma_invitation_inviter_uma: inviter_uma
|
|
4826
|
+
uma_invitation_invitee_uma: invitee_uma
|
|
4827
|
+
uma_invitation_incentives_status: incentives_status
|
|
4828
|
+
uma_invitation_incentives_ineligibility_reason: incentives_ineligibility_reason
|
|
4829
|
+
}`;
|
|
4830
|
+
var getUmaInvitationQuery = (id) => {
|
|
4831
|
+
return {
|
|
4832
|
+
queryPayload: `
|
|
4833
|
+
query GetUmaInvitation($id: ID!) {
|
|
4834
|
+
entity(id: $id) {
|
|
4835
|
+
... on UmaInvitation {
|
|
4836
|
+
...UmaInvitationFragment
|
|
4837
|
+
}
|
|
4838
|
+
}
|
|
4839
|
+
}
|
|
4840
|
+
|
|
4841
|
+
${FRAGMENT10}
|
|
4842
|
+
`,
|
|
4843
|
+
variables: { id },
|
|
4844
|
+
constructObject: (data) => UmaInvitationFromJson(data.entity)
|
|
4845
|
+
};
|
|
4846
|
+
};
|
|
4847
|
+
|
|
4848
|
+
// src/graphql/ClaimUmaInvitation.ts
|
|
4849
|
+
var ClaimUmaInvitation = `
|
|
4850
|
+
mutation ClaimUmaInvitation(
|
|
4851
|
+
$invitationCode: String!
|
|
4852
|
+
$inviteeUma: String!
|
|
4853
|
+
) {
|
|
4854
|
+
claim_uma_invitation(input: {
|
|
4855
|
+
invitation_code: $invitationCode
|
|
4856
|
+
invitee_uma: $inviteeUma
|
|
4857
|
+
}) {
|
|
4858
|
+
invitation {
|
|
4859
|
+
...UmaInvitationFragment
|
|
4860
|
+
}
|
|
4861
|
+
}
|
|
4862
|
+
}
|
|
4863
|
+
|
|
4864
|
+
${FRAGMENT10}
|
|
4865
|
+
`;
|
|
4866
|
+
|
|
4867
|
+
// src/graphql/ClaimUmaInvitationWithIncentives.ts
|
|
4868
|
+
var ClaimUmaInvitationWithIncentives = `
|
|
4869
|
+
mutation ClaimUmaInvitationWithIncentives(
|
|
4870
|
+
$invitationCode: String!
|
|
4871
|
+
$inviteeUma: String!
|
|
4872
|
+
$inviteePhoneHash: String!
|
|
4873
|
+
$inviteeRegion: RegionCode!
|
|
4874
|
+
) {
|
|
4875
|
+
claim_uma_invitation_with_incentives(input: {
|
|
4876
|
+
invitation_code: $invitationCode
|
|
4877
|
+
invitee_uma: $inviteeUma
|
|
4878
|
+
invitee_phone_hash: $inviteePhoneHash
|
|
4879
|
+
invitee_region: $inviteeRegion
|
|
4880
|
+
}) {
|
|
4881
|
+
invitation {
|
|
4882
|
+
...UmaInvitationFragment
|
|
4883
|
+
}
|
|
4884
|
+
}
|
|
4885
|
+
}
|
|
4886
|
+
|
|
4887
|
+
${FRAGMENT10}
|
|
4888
|
+
`;
|
|
4889
|
+
|
|
4890
|
+
// src/objects/Permission.ts
|
|
4891
|
+
var Permission = /* @__PURE__ */ ((Permission2) => {
|
|
4892
|
+
Permission2["FUTURE_VALUE"] = "FUTURE_VALUE";
|
|
4893
|
+
Permission2["ALL"] = "ALL";
|
|
4894
|
+
Permission2["MAINNET_VIEW"] = "MAINNET_VIEW";
|
|
4895
|
+
Permission2["MAINNET_TRANSACT"] = "MAINNET_TRANSACT";
|
|
4896
|
+
Permission2["MAINNET_MANAGE"] = "MAINNET_MANAGE";
|
|
4897
|
+
Permission2["TESTNET_VIEW"] = "TESTNET_VIEW";
|
|
4898
|
+
Permission2["TESTNET_TRANSACT"] = "TESTNET_TRANSACT";
|
|
4899
|
+
Permission2["TESTNET_MANAGE"] = "TESTNET_MANAGE";
|
|
4900
|
+
Permission2["REGTEST_VIEW"] = "REGTEST_VIEW";
|
|
4901
|
+
Permission2["REGTEST_TRANSACT"] = "REGTEST_TRANSACT";
|
|
4902
|
+
Permission2["REGTEST_MANAGE"] = "REGTEST_MANAGE";
|
|
4903
|
+
Permission2["USER_VIEW"] = "USER_VIEW";
|
|
4904
|
+
Permission2["USER_MANAGE"] = "USER_MANAGE";
|
|
4905
|
+
Permission2["ACCOUNT_VIEW"] = "ACCOUNT_VIEW";
|
|
4906
|
+
Permission2["ACCOUNT_MANAGE"] = "ACCOUNT_MANAGE";
|
|
4907
|
+
return Permission2;
|
|
4908
|
+
})(Permission || {});
|
|
4909
|
+
var Permission_default = Permission;
|
|
4910
|
+
|
|
4911
|
+
// src/objects/ApiToken.ts
|
|
4912
|
+
var ApiTokenFromJson = (obj) => {
|
|
4913
|
+
return {
|
|
4914
|
+
id: obj["api_token_id"],
|
|
4915
|
+
createdAt: obj["api_token_created_at"],
|
|
4916
|
+
updatedAt: obj["api_token_updated_at"],
|
|
4917
|
+
clientId: obj["api_token_client_id"],
|
|
4918
|
+
name: obj["api_token_name"],
|
|
4919
|
+
permissions: obj["api_token_permissions"].map((e) => Permission_default[e]),
|
|
4920
|
+
typename: "ApiToken"
|
|
4921
|
+
};
|
|
4922
|
+
};
|
|
4923
|
+
var FRAGMENT11 = `
|
|
4924
|
+
fragment ApiTokenFragment on ApiToken {
|
|
4925
|
+
__typename
|
|
4926
|
+
api_token_id: id
|
|
4927
|
+
api_token_created_at: created_at
|
|
4928
|
+
api_token_updated_at: updated_at
|
|
4929
|
+
api_token_client_id: client_id
|
|
4930
|
+
api_token_name: name
|
|
4931
|
+
api_token_permissions: permissions
|
|
4932
|
+
}`;
|
|
4933
|
+
var getApiTokenQuery = (id) => {
|
|
4934
|
+
return {
|
|
4935
|
+
queryPayload: `
|
|
4936
|
+
query GetApiToken($id: ID!) {
|
|
4937
|
+
entity(id: $id) {
|
|
4938
|
+
... on ApiToken {
|
|
4939
|
+
...ApiTokenFragment
|
|
4940
|
+
}
|
|
4941
|
+
}
|
|
4942
|
+
}
|
|
4943
|
+
|
|
4944
|
+
${FRAGMENT11}
|
|
4945
|
+
`,
|
|
4946
|
+
variables: { id },
|
|
4947
|
+
constructObject: (data) => ApiTokenFromJson(data.entity)
|
|
4948
|
+
};
|
|
4949
|
+
};
|
|
4950
|
+
|
|
4951
|
+
// src/graphql/CreateApiToken.ts
|
|
4952
|
+
var CreateApiToken = `
|
|
4953
|
+
mutation CreateApiToken(
|
|
4954
|
+
$name: String!
|
|
4955
|
+
$permissions: [Permission!]!
|
|
4956
|
+
) {
|
|
4957
|
+
create_api_token(input: {
|
|
4958
|
+
name: $name
|
|
4959
|
+
permissions: $permissions
|
|
4960
|
+
}) {
|
|
4961
|
+
api_token {
|
|
4962
|
+
...ApiTokenFragment
|
|
4963
|
+
}
|
|
4964
|
+
client_secret
|
|
4965
|
+
}
|
|
4966
|
+
}
|
|
4967
|
+
|
|
4968
|
+
${FRAGMENT11}
|
|
4969
|
+
`;
|
|
4970
|
+
|
|
4971
|
+
// src/graphql/CreateInvoice.ts
|
|
4972
|
+
var CreateInvoice = `
|
|
4973
|
+
mutation CreateInvoice(
|
|
4974
|
+
$node_id: ID!
|
|
4975
|
+
$amount_msats: Long!
|
|
4976
|
+
$memo: String
|
|
4977
|
+
$type: InvoiceType = null
|
|
4978
|
+
$expiry_secs: Int = null
|
|
4979
|
+
) {
|
|
4980
|
+
create_invoice(input: { node_id: $node_id, amount_msats: $amount_msats, memo: $memo, invoice_type: $type, expiry_secs: $expiry_secs }) {
|
|
4981
|
+
invoice {
|
|
4982
|
+
data {
|
|
4983
|
+
encoded_payment_request
|
|
4984
|
+
}
|
|
4985
|
+
}
|
|
4986
|
+
}
|
|
4987
|
+
}
|
|
4988
|
+
`;
|
|
4989
|
+
|
|
4975
4990
|
// src/graphql/CreateLnurlInvoice.ts
|
|
4976
4991
|
var CreateLnurlInvoice = `
|
|
4977
4992
|
mutation CreateLnurlInvoice(
|
|
@@ -4991,7 +5006,7 @@ mutation CreateLnurlInvoice(
|
|
|
4991
5006
|
}
|
|
4992
5007
|
}
|
|
4993
5008
|
}
|
|
4994
|
-
${
|
|
5009
|
+
${FRAGMENT9}
|
|
4995
5010
|
`;
|
|
4996
5011
|
|
|
4997
5012
|
// src/graphql/CreateNodeWalletAddress.ts
|
|
@@ -5323,7 +5338,7 @@ var CreateUmaInvitation = `
|
|
|
5323
5338
|
}
|
|
5324
5339
|
}
|
|
5325
5340
|
|
|
5326
|
-
${
|
|
5341
|
+
${FRAGMENT10}
|
|
5327
5342
|
`;
|
|
5328
5343
|
|
|
5329
5344
|
// src/graphql/CreateUmaInvitationWithIncentives.ts
|
|
@@ -5344,7 +5359,7 @@ var CreateUmaInvitationWithIncentives = `
|
|
|
5344
5359
|
}
|
|
5345
5360
|
}
|
|
5346
5361
|
|
|
5347
|
-
${
|
|
5362
|
+
${FRAGMENT10}
|
|
5348
5363
|
`;
|
|
5349
5364
|
|
|
5350
5365
|
// src/graphql/CreateUmaInvoice.ts
|
|
@@ -5366,7 +5381,7 @@ mutation CreateUmaInvoice(
|
|
|
5366
5381
|
}
|
|
5367
5382
|
}
|
|
5368
5383
|
}
|
|
5369
|
-
${
|
|
5384
|
+
${FRAGMENT9}
|
|
5370
5385
|
`;
|
|
5371
5386
|
|
|
5372
5387
|
// src/graphql/DecodeInvoice.ts
|
|
@@ -5380,7 +5395,7 @@ var DecodeInvoice = `
|
|
|
5380
5395
|
}
|
|
5381
5396
|
}
|
|
5382
5397
|
|
|
5383
|
-
${
|
|
5398
|
+
${FRAGMENT8}
|
|
5384
5399
|
`;
|
|
5385
5400
|
|
|
5386
5401
|
// src/graphql/DeleteApiToken.ts
|
|
@@ -5406,7 +5421,7 @@ var FetchUmaInvitation = `
|
|
|
5406
5421
|
}
|
|
5407
5422
|
}
|
|
5408
5423
|
|
|
5409
|
-
${
|
|
5424
|
+
${FRAGMENT10}
|
|
5410
5425
|
`;
|
|
5411
5426
|
|
|
5412
5427
|
// src/graphql/FundNode.ts
|
|
@@ -12013,6 +12028,22 @@ var LightsparkClient = class {
|
|
|
12013
12028
|
}
|
|
12014
12029
|
return InvoiceFromJson(invoiceJson);
|
|
12015
12030
|
}
|
|
12031
|
+
/**
|
|
12032
|
+
* Cancels an existing unpaid invoice and returns that invoice. Cancelled invoices cannot be paid.
|
|
12033
|
+
*
|
|
12034
|
+
* @param invoiceId The ID of the invoice to cancel.
|
|
12035
|
+
* @returns The cancelled invoice, or undefined if the invoice could not be cancelled.
|
|
12036
|
+
*/
|
|
12037
|
+
async cancelInvoice(invoiceId) {
|
|
12038
|
+
const response = await this.requester.makeRawRequest(CancelInvoice, {
|
|
12039
|
+
invoice_id: invoiceId
|
|
12040
|
+
});
|
|
12041
|
+
const invoiceJson = response.cancel_invoice?.invoice;
|
|
12042
|
+
if (!invoiceJson) {
|
|
12043
|
+
return void 0;
|
|
12044
|
+
}
|
|
12045
|
+
return InvoiceFromJson(invoiceJson);
|
|
12046
|
+
}
|
|
12016
12047
|
/**
|
|
12017
12048
|
* Decodes an encoded lightning invoice string.
|
|
12018
12049
|
*
|
package/dist/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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 ApiToken, B as Balances, i as BlockchainBalance, C as
|
|
4
|
-
import { B as BitcoinNetwork } from './BitcoinNetwork-
|
|
2
|
+
import { W as WebhookEventType, L as LightsparkClient } from './index-a5028d74.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 ApiToken, B as Balances, i as BlockchainBalance, C as CancelInvoiceInput, j as CancelInvoiceOutput, k as Channel, l as ChannelClosingTransaction, n as ChannelFees, o as ChannelOpeningTransaction, q as ChannelSnapshot, r as ChannelStatus, s as ChannelToTransactionsConnection, t as ClaimUmaInvitationInput, u as ClaimUmaInvitationOutput, v as ClaimUmaInvitationWithIncentivesInput, w as ClaimUmaInvitationWithIncentivesOutput, x as ComplianceProvider, y as Connection, z as CreateApiTokenInput, D as CreateApiTokenOutput, E as CreateInvitationWithIncentivesInput, F as CreateInvitationWithIncentivesOutput, G as CreateInvoiceInput, H as CreateInvoiceOutput, I as CreateLnurlInvoiceInput, J as CreateNodeWalletAddressInput, K as CreateNodeWalletAddressOutput, M as CreateTestModeInvoiceInput, N as CreateTestModeInvoiceOutput, O as CreateTestModePaymentInput, P as CreateTestModePaymentoutput, Q as CreateUmaInvitationInput, R as CreateUmaInvitationOutput, S as CreateUmaInvoiceInput, T as CurrencyAmount, U as CurrencyUnit, V as DeclineToSignMessagesInput, X as DeclineToSignMessagesOutput, Y as DeleteApiTokenInput, Z as DeleteApiTokenOutput, _ as Deposit, a0 as Entity, a1 as FeeEstimate, a2 as FundNodeInput, a3 as FundNodeOutput, a4 as GraphNode, a5 as Hop, a7 as HtlcAttemptFailureCode, a8 as IdAndSignature, a9 as IncentivesIneligibilityReason, aa as IncentivesStatus, ab as IncomingPayment, ac as IncomingPaymentAttempt, ae as IncomingPaymentAttemptStatus, af as IncomingPaymentToAttemptsConnection, ag as Invoice, ai as InvoiceData, aj as InvoiceType, ak as LightningFeeEstimateForInvoiceInput, al as LightningFeeEstimateForNodeInput, am as LightningFeeEstimateOutput, an as LightningTransaction, ap as LightsparkNode, ar as LightsparkNodeOwner, at as LightsparkNodeStatus, au as LightsparkNodeToChannelsConnection, av as LightsparkNodeWithOSK, aw as LightsparkNodeWithRemoteSigning, ax as Node, az as NodeAddress, aA as NodeAddressType, aB as NodeToAddressesConnection, aC as OnChainTransaction, aE as OutgoingPayment, aF as OutgoingPaymentAttempt, aG as OutgoingPaymentAttemptStatus, aH as OutgoingPaymentAttemptToHopsConnection, aI as OutgoingPaymentToAttemptsConnection, aJ as OutgoingPaymentsForInvoiceQueryInput, aK as OutgoingPaymentsForInvoiceQueryOutput, aL as PageInfo, aM as PayInvoiceInput, aN as PayInvoiceOutput, aO as PayUmaInvoiceInput, aP as PaymentDirection, aQ as PaymentFailureReason, aR as PaymentRequest, aT as PaymentRequestData, aU as PaymentRequestStatus, aV as Permission, aW as PostTransactionData, aX as RegionCode, aY as RegisterPaymentInput, aZ as RegisterPaymentOutput, a_ as ReleaseChannelPerCommitmentSecretInput, a$ as ReleaseChannelPerCommitmentSecretOutput, b0 as ReleasePaymentPreimageInput, b1 as ReleasePaymentPreimageOutput, b2 as RemoteSigningSubEventType, b3 as RequestWithdrawalInput, b4 as RequestWithdrawalOutput, b5 as RichText, b6 as RiskRating, b7 as RoutingTransaction, b9 as RoutingTransactionFailureReason, ba as ScreenNodeInput, bb as ScreenNodeOutput, bc as Secret, bd as SendPaymentInput, be as SendPaymentOutput, bf as SetInvoicePaymentHashInput, bg as SetInvoicePaymentHashOutput, bh as SignInvoiceInput, bi as SignInvoiceOutput, bj as SignMessagesInput, bk as SignMessagesOutput, bl as Signable, bn as SignablePayload, bp as SignablePayloadStatus, bq as SingleNodeDashboard, br as Transaction, bt as TransactionFailures, bu as TransactionStatus, bv as TransactionType, bw as TransactionUpdate, bx as UmaInvitation, bz as UpdateChannelPerCommitmentPointInput, bA as UpdateChannelPerCommitmentPointOutput, bB as UpdateNodeSharedSecretInput, bC as UpdateNodeSharedSecretOutput, bD as Wallet, bE as WalletStatus, bF as WalletToPaymentRequestsConnection, bG as WalletToTransactionsConnection, bH as Withdrawal, bJ as WithdrawalMode, bK as WithdrawalRequest, bL as WithdrawalRequestStatus, bM as WithdrawalRequestToChannelClosingTransactionsConnection, bN as WithdrawalRequestToChannelOpeningTransactionsConnection, h as getApiTokenQuery, m as getChannelClosingTransactionQuery, p as getChannelOpeningTransactionQuery, $ as getDepositQuery, a6 as getHopQuery, ad as getIncomingPaymentAttemptQuery, ah as getInvoiceQuery, ao as getLightningTransactionQuery, as as getLightsparkNodeOwnerQuery, aq as getLightsparkNodeQuery, ay as getNodeQuery, aD as getOnChainTransactionQuery, aS as getPaymentRequestQuery, b8 as getRoutingTransactionQuery, bo as getSignablePayloadQuery, bm as getSignableQuery, bs as getTransactionQuery, by as getUmaInvitationQuery, bI as getWithdrawalQuery } from './index-a5028d74.js';
|
|
4
|
+
import { B as BitcoinNetwork } from './BitcoinNetwork-972b1d01.js';
|
|
5
5
|
import 'zen-observable';
|
|
6
6
|
|
|
7
7
|
declare class AccountTokenAuthProvider implements AuthProvider {
|