@lightsparkdev/lightspark-sdk 0.4.10 → 1.0.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 +30 -0
- package/README.md +1 -1
- package/dist/{chunk-NXUFC5J7.js → chunk-LZC5C5NI.js} +2908 -635
- package/dist/{index-3ffe9e7b.d.ts → index-09d4ac20.d.ts} +373 -62
- package/dist/index.cjs +3395 -842
- package/dist/index.d.ts +2 -2
- package/dist/index.js +390 -94
- package/dist/objects/index.cjs +2735 -553
- package/dist/objects/index.d.ts +1 -1
- package/dist/objects/index.js +17 -5
- package/package.json +12 -9
- package/src/NodeKeyLoaderCache.ts +87 -0
- package/src/SigningKeyLoader.ts +177 -0
- package/src/auth/AccountTokenAuthProvider.ts +4 -4
- package/src/client.ts +209 -118
- package/src/graphql/CreateInvoice.ts +3 -2
- package/src/graphql/CreateLnurlInvoice.ts +2 -0
- package/src/graphql/CreateUmaInvoice.ts +23 -0
- package/src/graphql/MultiNodeDashboard.ts +0 -3
- package/src/graphql/PayUmaInvoice.ts +29 -0
- package/src/graphql/RecoverNodeSigningKey.ts +1 -1
- package/src/graphql/SingleNodeDashboard.ts +0 -1
- package/src/lightspark_crypto/lightspark_crypto.d.ts +157 -0
- package/src/lightspark_crypto/lightspark_crypto.js +1010 -0
- package/src/lightspark_crypto/lightspark_crypto_bg.wasm +0 -0
- package/src/lightspark_crypto/lightspark_crypto_bg.wasm.d.ts +120 -0
- package/src/lightspark_crypto/package.json +11 -0
- package/src/objects/Account.ts +437 -120
- package/src/objects/AccountToApiTokensConnection.ts +3 -3
- package/src/objects/AccountToChannelsConnection.ts +4 -4
- package/src/objects/AccountToNodesConnection.ts +2 -15
- package/src/objects/AccountToPaymentRequestsConnection.ts +3 -3
- package/src/objects/AccountToTransactionsConnection.ts +6 -6
- package/src/objects/AccountToWalletsConnection.ts +2 -2
- package/src/objects/Balances.ts +2 -2
- package/src/objects/Channel.ts +4 -4
- package/src/objects/ChannelClosingTransaction.ts +2 -2
- package/src/objects/ChannelOpeningTransaction.ts +2 -2
- package/src/objects/ChannelToTransactionsConnection.ts +4 -4
- package/src/objects/{CryptoSanctionsScreeningProvider.ts → ComplianceProvider.ts} +3 -3
- package/src/objects/Connection.ts +25 -31
- package/src/objects/CreateApiTokenInput.ts +1 -1
- package/src/objects/CreateApiTokenOutput.ts +1 -1
- package/src/objects/CreateInvoiceInput.ts +0 -6
- package/src/objects/CreateLnurlInvoiceInput.ts +1 -7
- package/src/objects/CreateNodeWalletAddressInput.ts +1 -1
- package/src/objects/CreateNodeWalletAddressOutput.ts +1 -1
- package/src/objects/CreateTestModeInvoiceInput.ts +1 -1
- package/src/objects/CreateTestModeInvoiceOutput.ts +1 -1
- package/src/objects/CreateTestModePaymentInput.ts +1 -1
- package/src/objects/CreateTestModePaymentoutput.ts +14 -2
- package/src/objects/CreateUmaInvoiceInput.ts +24 -0
- package/src/objects/DeclineToSignMessagesInput.ts +16 -0
- package/src/objects/DeclineToSignMessagesOutput.ts +28 -0
- package/src/objects/DeleteApiTokenOutput.ts +1 -1
- package/src/objects/Entity.ts +401 -66
- package/src/objects/GraphNode.ts +3 -3
- package/src/objects/IdAndSignature.ts +16 -0
- package/src/objects/IncomingPayment.ts +21 -8
- package/src/objects/IncomingPaymentAttempt.ts +2 -2
- package/src/objects/IncomingPaymentToAttemptsConnection.ts +3 -3
- package/src/objects/Invoice.ts +118 -21
- package/src/objects/InvoiceData.ts +118 -21
- package/src/objects/LightningFeeEstimateForInvoiceInput.ts +1 -1
- package/src/objects/LightningFeeEstimateForNodeInput.ts +1 -1
- package/src/objects/LightningFeeEstimateOutput.ts +2 -2
- package/src/objects/LightningTransaction.ts +155 -31
- package/src/objects/LightsparkNode.ts +272 -112
- package/src/objects/LightsparkNodeOwner.ts +8 -4
- package/src/objects/LightsparkNodeToChannelsConnection.ts +3 -3
- package/src/objects/LightsparkNodeWithOSK.ts +389 -0
- package/src/objects/LightsparkNodeWithRemoteSigning.ts +384 -0
- package/src/objects/Node.ts +213 -60
- package/src/objects/NodeToAddressesConnection.ts +2 -2
- package/src/objects/OnChainTransaction.ts +2 -2
- package/src/objects/OutgoingPayment.ts +139 -24
- package/src/objects/OutgoingPaymentAttempt.ts +5 -5
- package/src/objects/OutgoingPaymentAttemptToHopsConnection.ts +3 -3
- package/src/objects/OutgoingPaymentToAttemptsConnection.ts +3 -3
- package/src/objects/OutgoingPaymentsForInvoiceQueryInput.ts +25 -0
- package/src/objects/OutgoingPaymentsForInvoiceQueryOutput.ts +28 -0
- package/src/objects/PayUmaInvoiceInput.ts +25 -0
- package/src/objects/{LightsparkNodePurpose.ts → PaymentDirection.ts} +5 -7
- package/src/objects/PaymentRequest.ts +119 -22
- package/src/objects/PaymentRequestData.ts +119 -22
- package/src/objects/PostTransactionData.ts +39 -0
- package/src/objects/RegisterPaymentInput.ts +31 -0
- package/src/objects/RegisterPaymentOutput.ts +23 -0
- package/src/objects/ReleaseChannelPerCommitmentSecretInput.ts +23 -0
- package/src/objects/ReleaseChannelPerCommitmentSecretOutput.ts +23 -0
- package/src/objects/ReleasePaymentPreimageInput.ts +20 -0
- package/src/objects/ReleasePaymentPreimageOutput.ts +23 -0
- package/src/objects/RemoteSigningSubEventType.ts +26 -0
- package/src/objects/RequestWithdrawalInput.ts +1 -1
- package/src/objects/RequestWithdrawalOutput.ts +1 -1
- package/src/objects/RoutingTransaction.ts +1 -1
- package/src/objects/ScreenNodeInput.ts +20 -0
- package/src/objects/ScreenNodeOutput.ts +22 -0
- package/src/objects/SetInvoicePaymentHashInput.ts +24 -0
- package/src/objects/SetInvoicePaymentHashOutput.ts +23 -0
- package/src/objects/SignInvoiceInput.ts +19 -0
- package/src/objects/SignInvoiceOutput.ts +21 -0
- package/src/objects/SignMessagesInput.ts +18 -0
- package/src/objects/SignMessagesOutput.ts +26 -0
- package/src/objects/Signable.ts +58 -0
- package/src/objects/SignablePayload.ts +93 -0
- package/src/objects/SignablePayloadStatus.ts +17 -0
- package/src/objects/SingleNodeDashboard.ts +0 -2
- package/src/objects/Transaction.ts +153 -29
- package/src/objects/TransactionFailures.ts +1 -1
- package/src/objects/UpdateChannelPerCommitmentPointInput.ts +25 -0
- package/src/objects/UpdateChannelPerCommitmentPointOutput.ts +23 -0
- package/src/objects/UpdateNodeSharedSecretInput.ts +18 -0
- package/src/objects/UpdateNodeSharedSecretOutput.ts +23 -0
- package/src/objects/Wallet.ts +271 -51
- package/src/objects/WalletToPaymentRequestsConnection.ts +3 -3
- package/src/objects/WalletToTransactionsConnection.ts +3 -3
- package/src/objects/WithdrawalRequest.ts +6 -6
- package/src/objects/WithdrawalRequestToChannelClosingTransactionsConnection.ts +2 -2
- package/src/objects/WithdrawalRequestToChannelOpeningTransactionsConnection.ts +2 -2
- package/src/objects/index.ts +37 -4
- package/src/{__tests__ → tests}/webhooks.test.ts +1 -1
- package/src/webhooks.ts +1 -1
- package/src/objects/ScreenBitcoinAddressesInput.ts +0 -23
- package/src/objects/ScreenBitcoinAddressesOutput.ts +0 -25
package/src/objects/Account.ts
CHANGED
|
@@ -32,7 +32,7 @@ class Account implements LightsparkNodeOwner {
|
|
|
32
32
|
public readonly createdAt: string,
|
|
33
33
|
public readonly updatedAt: string,
|
|
34
34
|
public readonly typename: string,
|
|
35
|
-
public readonly name?: string
|
|
35
|
+
public readonly name?: string,
|
|
36
36
|
) {
|
|
37
37
|
autoBind(this);
|
|
38
38
|
}
|
|
@@ -40,7 +40,7 @@ class Account implements LightsparkNodeOwner {
|
|
|
40
40
|
public async getApiTokens(
|
|
41
41
|
client: LightsparkClient,
|
|
42
42
|
first: number | undefined = undefined,
|
|
43
|
-
after: string | undefined = undefined
|
|
43
|
+
after: string | undefined = undefined,
|
|
44
44
|
): Promise<AccountToApiTokensConnection> {
|
|
45
45
|
return (await client.executeRawQuery({
|
|
46
46
|
queryPayload: `
|
|
@@ -82,7 +82,7 @@ query FetchAccountToApiTokensConnection($first: Int, $after: String) {
|
|
|
82
82
|
public async getBlockchainBalance(
|
|
83
83
|
client: LightsparkClient,
|
|
84
84
|
bitcoinNetworks: BitcoinNetwork[] | undefined = undefined,
|
|
85
|
-
nodeIds: string[] | undefined = undefined
|
|
85
|
+
nodeIds: string[] | undefined = undefined,
|
|
86
86
|
): Promise<BlockchainBalance | null> {
|
|
87
87
|
return await client.executeRawQuery({
|
|
88
88
|
queryPayload: `
|
|
@@ -155,7 +155,7 @@ query FetchAccountBlockchainBalance($bitcoin_networks: [BitcoinNetwork!], $node_
|
|
|
155
155
|
public async getConductivity(
|
|
156
156
|
client: LightsparkClient,
|
|
157
157
|
bitcoinNetworks: BitcoinNetwork[] | undefined = undefined,
|
|
158
|
-
nodeIds: string[] | undefined = undefined
|
|
158
|
+
nodeIds: string[] | undefined = undefined,
|
|
159
159
|
): Promise<number> {
|
|
160
160
|
return await client.executeRawQuery({
|
|
161
161
|
queryPayload: `
|
|
@@ -178,7 +178,7 @@ query FetchAccountConductivity($bitcoin_networks: [BitcoinNetwork!], $node_ids:
|
|
|
178
178
|
public async getLocalBalance(
|
|
179
179
|
client: LightsparkClient,
|
|
180
180
|
bitcoinNetworks: BitcoinNetwork[] | undefined = undefined,
|
|
181
|
-
nodeIds: string[] | undefined = undefined
|
|
181
|
+
nodeIds: string[] | undefined = undefined,
|
|
182
182
|
): Promise<CurrencyAmount | null> {
|
|
183
183
|
return await client.executeRawQuery({
|
|
184
184
|
queryPayload: `
|
|
@@ -210,7 +210,7 @@ query FetchAccountLocalBalance($bitcoin_networks: [BitcoinNetwork!], $node_ids:
|
|
|
210
210
|
first: number | undefined = undefined,
|
|
211
211
|
bitcoinNetworks: BitcoinNetwork[] | undefined = undefined,
|
|
212
212
|
nodeIds: string[] | undefined = undefined,
|
|
213
|
-
after: string | undefined = undefined
|
|
213
|
+
after: string | undefined = undefined,
|
|
214
214
|
): Promise<AccountToNodesConnection> {
|
|
215
215
|
return (await client.executeRawQuery({
|
|
216
216
|
queryPayload: `
|
|
@@ -227,27 +227,24 @@ query FetchAccountToNodesConnection($first: Int, $bitcoin_networks: [BitcoinNetw
|
|
|
227
227
|
page_info_start_cursor: start_cursor
|
|
228
228
|
page_info_end_cursor: end_cursor
|
|
229
229
|
}
|
|
230
|
-
account_to_nodes_connection_purpose: purpose
|
|
231
230
|
account_to_nodes_connection_entities: entities {
|
|
232
231
|
__typename
|
|
233
|
-
|
|
234
|
-
lightspark_node_created_at: created_at
|
|
235
|
-
lightspark_node_updated_at: updated_at
|
|
236
|
-
lightspark_node_alias: alias
|
|
237
|
-
lightspark_node_bitcoin_network: bitcoin_network
|
|
238
|
-
lightspark_node_color: color
|
|
239
|
-
lightspark_node_conductivity: conductivity
|
|
240
|
-
lightspark_node_display_name: display_name
|
|
241
|
-
lightspark_node_public_key: public_key
|
|
242
|
-
lightspark_node_account: account {
|
|
243
|
-
id
|
|
244
|
-
}
|
|
245
|
-
lightspark_node_owner: owner {
|
|
246
|
-
id
|
|
247
|
-
}
|
|
248
|
-
lightspark_node_blockchain_balance: blockchain_balance {
|
|
232
|
+
... on LightsparkNodeWithOSK {
|
|
249
233
|
__typename
|
|
250
|
-
|
|
234
|
+
lightspark_node_with_o_s_k_id: id
|
|
235
|
+
lightspark_node_with_o_s_k_created_at: created_at
|
|
236
|
+
lightspark_node_with_o_s_k_updated_at: updated_at
|
|
237
|
+
lightspark_node_with_o_s_k_alias: alias
|
|
238
|
+
lightspark_node_with_o_s_k_bitcoin_network: bitcoin_network
|
|
239
|
+
lightspark_node_with_o_s_k_color: color
|
|
240
|
+
lightspark_node_with_o_s_k_conductivity: conductivity
|
|
241
|
+
lightspark_node_with_o_s_k_display_name: display_name
|
|
242
|
+
lightspark_node_with_o_s_k_public_key: public_key
|
|
243
|
+
lightspark_node_with_o_s_k_owner: owner {
|
|
244
|
+
id
|
|
245
|
+
}
|
|
246
|
+
lightspark_node_with_o_s_k_status: status
|
|
247
|
+
lightspark_node_with_o_s_k_total_balance: total_balance {
|
|
251
248
|
__typename
|
|
252
249
|
currency_amount_original_value: original_value
|
|
253
250
|
currency_amount_original_unit: original_unit
|
|
@@ -255,7 +252,7 @@ query FetchAccountToNodesConnection($first: Int, $bitcoin_networks: [BitcoinNetw
|
|
|
255
252
|
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
256
253
|
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
257
254
|
}
|
|
258
|
-
|
|
255
|
+
lightspark_node_with_o_s_k_total_local_balance: total_local_balance {
|
|
259
256
|
__typename
|
|
260
257
|
currency_amount_original_value: original_value
|
|
261
258
|
currency_amount_original_unit: original_unit
|
|
@@ -263,7 +260,7 @@ query FetchAccountToNodesConnection($first: Int, $bitcoin_networks: [BitcoinNetw
|
|
|
263
260
|
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
264
261
|
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
265
262
|
}
|
|
266
|
-
|
|
263
|
+
lightspark_node_with_o_s_k_local_balance: local_balance {
|
|
267
264
|
__typename
|
|
268
265
|
currency_amount_original_value: original_value
|
|
269
266
|
currency_amount_original_unit: original_unit
|
|
@@ -271,7 +268,7 @@ query FetchAccountToNodesConnection($first: Int, $bitcoin_networks: [BitcoinNetw
|
|
|
271
268
|
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
272
269
|
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
273
270
|
}
|
|
274
|
-
|
|
271
|
+
lightspark_node_with_o_s_k_remote_balance: remote_balance {
|
|
275
272
|
__typename
|
|
276
273
|
currency_amount_original_value: original_value
|
|
277
274
|
currency_amount_original_unit: original_unit
|
|
@@ -279,7 +276,80 @@ query FetchAccountToNodesConnection($first: Int, $bitcoin_networks: [BitcoinNetw
|
|
|
279
276
|
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
280
277
|
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
281
278
|
}
|
|
282
|
-
|
|
279
|
+
lightspark_node_with_o_s_k_blockchain_balance: blockchain_balance {
|
|
280
|
+
__typename
|
|
281
|
+
blockchain_balance_total_balance: total_balance {
|
|
282
|
+
__typename
|
|
283
|
+
currency_amount_original_value: original_value
|
|
284
|
+
currency_amount_original_unit: original_unit
|
|
285
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
286
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
287
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
288
|
+
}
|
|
289
|
+
blockchain_balance_confirmed_balance: confirmed_balance {
|
|
290
|
+
__typename
|
|
291
|
+
currency_amount_original_value: original_value
|
|
292
|
+
currency_amount_original_unit: original_unit
|
|
293
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
294
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
295
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
296
|
+
}
|
|
297
|
+
blockchain_balance_unconfirmed_balance: unconfirmed_balance {
|
|
298
|
+
__typename
|
|
299
|
+
currency_amount_original_value: original_value
|
|
300
|
+
currency_amount_original_unit: original_unit
|
|
301
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
302
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
303
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
304
|
+
}
|
|
305
|
+
blockchain_balance_locked_balance: locked_balance {
|
|
306
|
+
__typename
|
|
307
|
+
currency_amount_original_value: original_value
|
|
308
|
+
currency_amount_original_unit: original_unit
|
|
309
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
310
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
311
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
312
|
+
}
|
|
313
|
+
blockchain_balance_required_reserve: required_reserve {
|
|
314
|
+
__typename
|
|
315
|
+
currency_amount_original_value: original_value
|
|
316
|
+
currency_amount_original_unit: original_unit
|
|
317
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
318
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
319
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
320
|
+
}
|
|
321
|
+
blockchain_balance_available_balance: available_balance {
|
|
322
|
+
__typename
|
|
323
|
+
currency_amount_original_value: original_value
|
|
324
|
+
currency_amount_original_unit: original_unit
|
|
325
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
326
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
327
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
lightspark_node_with_o_s_k_uma_prescreening_utxos: uma_prescreening_utxos
|
|
331
|
+
lightspark_node_with_o_s_k_encrypted_signing_private_key: encrypted_signing_private_key {
|
|
332
|
+
__typename
|
|
333
|
+
secret_encrypted_value: encrypted_value
|
|
334
|
+
secret_cipher: cipher
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
... on LightsparkNodeWithRemoteSigning {
|
|
338
|
+
__typename
|
|
339
|
+
lightspark_node_with_remote_signing_id: id
|
|
340
|
+
lightspark_node_with_remote_signing_created_at: created_at
|
|
341
|
+
lightspark_node_with_remote_signing_updated_at: updated_at
|
|
342
|
+
lightspark_node_with_remote_signing_alias: alias
|
|
343
|
+
lightspark_node_with_remote_signing_bitcoin_network: bitcoin_network
|
|
344
|
+
lightspark_node_with_remote_signing_color: color
|
|
345
|
+
lightspark_node_with_remote_signing_conductivity: conductivity
|
|
346
|
+
lightspark_node_with_remote_signing_display_name: display_name
|
|
347
|
+
lightspark_node_with_remote_signing_public_key: public_key
|
|
348
|
+
lightspark_node_with_remote_signing_owner: owner {
|
|
349
|
+
id
|
|
350
|
+
}
|
|
351
|
+
lightspark_node_with_remote_signing_status: status
|
|
352
|
+
lightspark_node_with_remote_signing_total_balance: total_balance {
|
|
283
353
|
__typename
|
|
284
354
|
currency_amount_original_value: original_value
|
|
285
355
|
currency_amount_original_unit: original_unit
|
|
@@ -287,7 +357,7 @@ query FetchAccountToNodesConnection($first: Int, $bitcoin_networks: [BitcoinNetw
|
|
|
287
357
|
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
288
358
|
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
289
359
|
}
|
|
290
|
-
|
|
360
|
+
lightspark_node_with_remote_signing_total_local_balance: total_local_balance {
|
|
291
361
|
__typename
|
|
292
362
|
currency_amount_original_value: original_value
|
|
293
363
|
currency_amount_original_unit: original_unit
|
|
@@ -295,46 +365,75 @@ query FetchAccountToNodesConnection($first: Int, $bitcoin_networks: [BitcoinNetw
|
|
|
295
365
|
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
296
366
|
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
297
367
|
}
|
|
368
|
+
lightspark_node_with_remote_signing_local_balance: local_balance {
|
|
369
|
+
__typename
|
|
370
|
+
currency_amount_original_value: original_value
|
|
371
|
+
currency_amount_original_unit: original_unit
|
|
372
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
373
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
374
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
375
|
+
}
|
|
376
|
+
lightspark_node_with_remote_signing_remote_balance: remote_balance {
|
|
377
|
+
__typename
|
|
378
|
+
currency_amount_original_value: original_value
|
|
379
|
+
currency_amount_original_unit: original_unit
|
|
380
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
381
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
382
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
383
|
+
}
|
|
384
|
+
lightspark_node_with_remote_signing_blockchain_balance: blockchain_balance {
|
|
385
|
+
__typename
|
|
386
|
+
blockchain_balance_total_balance: total_balance {
|
|
387
|
+
__typename
|
|
388
|
+
currency_amount_original_value: original_value
|
|
389
|
+
currency_amount_original_unit: original_unit
|
|
390
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
391
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
392
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
393
|
+
}
|
|
394
|
+
blockchain_balance_confirmed_balance: confirmed_balance {
|
|
395
|
+
__typename
|
|
396
|
+
currency_amount_original_value: original_value
|
|
397
|
+
currency_amount_original_unit: original_unit
|
|
398
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
399
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
400
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
401
|
+
}
|
|
402
|
+
blockchain_balance_unconfirmed_balance: unconfirmed_balance {
|
|
403
|
+
__typename
|
|
404
|
+
currency_amount_original_value: original_value
|
|
405
|
+
currency_amount_original_unit: original_unit
|
|
406
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
407
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
408
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
409
|
+
}
|
|
410
|
+
blockchain_balance_locked_balance: locked_balance {
|
|
411
|
+
__typename
|
|
412
|
+
currency_amount_original_value: original_value
|
|
413
|
+
currency_amount_original_unit: original_unit
|
|
414
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
415
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
416
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
417
|
+
}
|
|
418
|
+
blockchain_balance_required_reserve: required_reserve {
|
|
419
|
+
__typename
|
|
420
|
+
currency_amount_original_value: original_value
|
|
421
|
+
currency_amount_original_unit: original_unit
|
|
422
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
423
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
424
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
425
|
+
}
|
|
426
|
+
blockchain_balance_available_balance: available_balance {
|
|
427
|
+
__typename
|
|
428
|
+
currency_amount_original_value: original_value
|
|
429
|
+
currency_amount_original_unit: original_unit
|
|
430
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
431
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
432
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
433
|
+
}
|
|
434
|
+
}
|
|
435
|
+
lightspark_node_with_remote_signing_uma_prescreening_utxos: uma_prescreening_utxos
|
|
298
436
|
}
|
|
299
|
-
lightspark_node_encrypted_signing_private_key: encrypted_signing_private_key {
|
|
300
|
-
__typename
|
|
301
|
-
secret_encrypted_value: encrypted_value
|
|
302
|
-
secret_cipher: cipher
|
|
303
|
-
}
|
|
304
|
-
lightspark_node_total_balance: total_balance {
|
|
305
|
-
__typename
|
|
306
|
-
currency_amount_original_value: original_value
|
|
307
|
-
currency_amount_original_unit: original_unit
|
|
308
|
-
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
309
|
-
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
310
|
-
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
311
|
-
}
|
|
312
|
-
lightspark_node_total_local_balance: total_local_balance {
|
|
313
|
-
__typename
|
|
314
|
-
currency_amount_original_value: original_value
|
|
315
|
-
currency_amount_original_unit: original_unit
|
|
316
|
-
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
317
|
-
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
318
|
-
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
319
|
-
}
|
|
320
|
-
lightspark_node_local_balance: local_balance {
|
|
321
|
-
__typename
|
|
322
|
-
currency_amount_original_value: original_value
|
|
323
|
-
currency_amount_original_unit: original_unit
|
|
324
|
-
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
325
|
-
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
326
|
-
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
327
|
-
}
|
|
328
|
-
lightspark_node_purpose: purpose
|
|
329
|
-
lightspark_node_remote_balance: remote_balance {
|
|
330
|
-
__typename
|
|
331
|
-
currency_amount_original_value: original_value
|
|
332
|
-
currency_amount_original_unit: original_unit
|
|
333
|
-
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
334
|
-
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
335
|
-
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
336
|
-
}
|
|
337
|
-
lightspark_node_status: status
|
|
338
437
|
}
|
|
339
438
|
}
|
|
340
439
|
}
|
|
@@ -357,7 +456,7 @@ query FetchAccountToNodesConnection($first: Int, $bitcoin_networks: [BitcoinNetw
|
|
|
357
456
|
public async getRemoteBalance(
|
|
358
457
|
client: LightsparkClient,
|
|
359
458
|
bitcoinNetworks: BitcoinNetwork[] | undefined = undefined,
|
|
360
|
-
nodeIds: string[] | undefined = undefined
|
|
459
|
+
nodeIds: string[] | undefined = undefined,
|
|
361
460
|
): Promise<CurrencyAmount | null> {
|
|
362
461
|
return await client.executeRawQuery({
|
|
363
462
|
queryPayload: `
|
|
@@ -389,7 +488,7 @@ query FetchAccountRemoteBalance($bitcoin_networks: [BitcoinNetwork!], $node_ids:
|
|
|
389
488
|
afterDate: string | undefined = undefined,
|
|
390
489
|
beforeDate: string | undefined = undefined,
|
|
391
490
|
bitcoinNetworks: BitcoinNetwork[] | undefined = undefined,
|
|
392
|
-
nodeIds: string[] | undefined = undefined
|
|
491
|
+
nodeIds: string[] | undefined = undefined,
|
|
393
492
|
): Promise<number> {
|
|
394
493
|
return await client.executeRawQuery({
|
|
395
494
|
queryPayload: `
|
|
@@ -420,7 +519,7 @@ query FetchAccountUptimePercentage($after_date: DateTime, $before_date: DateTime
|
|
|
420
519
|
lightningNodeId: string | undefined = undefined,
|
|
421
520
|
afterDate: string | undefined = undefined,
|
|
422
521
|
beforeDate: string | undefined = undefined,
|
|
423
|
-
first: number | undefined = undefined
|
|
522
|
+
first: number | undefined = undefined,
|
|
424
523
|
): Promise<AccountToChannelsConnection> {
|
|
425
524
|
return (await client.executeRawQuery({
|
|
426
525
|
queryPayload: `
|
|
@@ -553,7 +652,7 @@ query FetchAccountToChannelsConnection($bitcoin_network: BitcoinNetwork!, $light
|
|
|
553
652
|
bitcoinNetwork: BitcoinNetwork | undefined = undefined,
|
|
554
653
|
lightningNodeId: string | undefined = undefined,
|
|
555
654
|
statuses: TransactionStatus[] | undefined = undefined,
|
|
556
|
-
excludeFailures: TransactionFailures | undefined = undefined
|
|
655
|
+
excludeFailures: TransactionFailures | undefined = undefined,
|
|
557
656
|
): Promise<AccountToTransactionsConnection> {
|
|
558
657
|
return (await client.executeRawQuery({
|
|
559
658
|
queryPayload: `
|
|
@@ -708,15 +807,24 @@ query FetchAccountToTransactionsConnection($first: Int, $after: String, $types:
|
|
|
708
807
|
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
709
808
|
}
|
|
710
809
|
incoming_payment_transaction_hash: transaction_hash
|
|
711
|
-
incoming_payment_origin: origin {
|
|
712
|
-
id
|
|
713
|
-
}
|
|
714
810
|
incoming_payment_destination: destination {
|
|
715
811
|
id
|
|
716
812
|
}
|
|
717
813
|
incoming_payment_payment_request: payment_request {
|
|
718
814
|
id
|
|
719
815
|
}
|
|
816
|
+
incoming_payment_uma_post_transaction_data: uma_post_transaction_data {
|
|
817
|
+
__typename
|
|
818
|
+
post_transaction_data_utxo: utxo
|
|
819
|
+
post_transaction_data_amount: amount {
|
|
820
|
+
__typename
|
|
821
|
+
currency_amount_original_value: original_value
|
|
822
|
+
currency_amount_original_unit: original_unit
|
|
823
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
824
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
825
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
826
|
+
}
|
|
827
|
+
}
|
|
720
828
|
}
|
|
721
829
|
... on OutgoingPayment {
|
|
722
830
|
__typename
|
|
@@ -780,24 +888,54 @@ query FetchAccountToTransactionsConnection($first: Int, $after: String, $types:
|
|
|
780
888
|
graph_node_display_name: display_name
|
|
781
889
|
graph_node_public_key: public_key
|
|
782
890
|
}
|
|
783
|
-
... on
|
|
891
|
+
... on LightsparkNodeWithOSK {
|
|
784
892
|
__typename
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
893
|
+
lightspark_node_with_o_s_k_id: id
|
|
894
|
+
lightspark_node_with_o_s_k_created_at: created_at
|
|
895
|
+
lightspark_node_with_o_s_k_updated_at: updated_at
|
|
896
|
+
lightspark_node_with_o_s_k_alias: alias
|
|
897
|
+
lightspark_node_with_o_s_k_bitcoin_network: bitcoin_network
|
|
898
|
+
lightspark_node_with_o_s_k_color: color
|
|
899
|
+
lightspark_node_with_o_s_k_conductivity: conductivity
|
|
900
|
+
lightspark_node_with_o_s_k_display_name: display_name
|
|
901
|
+
lightspark_node_with_o_s_k_public_key: public_key
|
|
902
|
+
lightspark_node_with_o_s_k_owner: owner {
|
|
795
903
|
id
|
|
796
904
|
}
|
|
797
|
-
|
|
798
|
-
|
|
905
|
+
lightspark_node_with_o_s_k_status: status
|
|
906
|
+
lightspark_node_with_o_s_k_total_balance: total_balance {
|
|
907
|
+
__typename
|
|
908
|
+
currency_amount_original_value: original_value
|
|
909
|
+
currency_amount_original_unit: original_unit
|
|
910
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
911
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
912
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
799
913
|
}
|
|
800
|
-
|
|
914
|
+
lightspark_node_with_o_s_k_total_local_balance: total_local_balance {
|
|
915
|
+
__typename
|
|
916
|
+
currency_amount_original_value: original_value
|
|
917
|
+
currency_amount_original_unit: original_unit
|
|
918
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
919
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
920
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
921
|
+
}
|
|
922
|
+
lightspark_node_with_o_s_k_local_balance: local_balance {
|
|
923
|
+
__typename
|
|
924
|
+
currency_amount_original_value: original_value
|
|
925
|
+
currency_amount_original_unit: original_unit
|
|
926
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
927
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
928
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
929
|
+
}
|
|
930
|
+
lightspark_node_with_o_s_k_remote_balance: remote_balance {
|
|
931
|
+
__typename
|
|
932
|
+
currency_amount_original_value: original_value
|
|
933
|
+
currency_amount_original_unit: original_unit
|
|
934
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
935
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
936
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
937
|
+
}
|
|
938
|
+
lightspark_node_with_o_s_k_blockchain_balance: blockchain_balance {
|
|
801
939
|
__typename
|
|
802
940
|
blockchain_balance_total_balance: total_balance {
|
|
803
941
|
__typename
|
|
@@ -848,12 +986,29 @@ query FetchAccountToTransactionsConnection($first: Int, $after: String, $types:
|
|
|
848
986
|
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
849
987
|
}
|
|
850
988
|
}
|
|
851
|
-
|
|
989
|
+
lightspark_node_with_o_s_k_uma_prescreening_utxos: uma_prescreening_utxos
|
|
990
|
+
lightspark_node_with_o_s_k_encrypted_signing_private_key: encrypted_signing_private_key {
|
|
852
991
|
__typename
|
|
853
992
|
secret_encrypted_value: encrypted_value
|
|
854
993
|
secret_cipher: cipher
|
|
855
994
|
}
|
|
856
|
-
|
|
995
|
+
}
|
|
996
|
+
... on LightsparkNodeWithRemoteSigning {
|
|
997
|
+
__typename
|
|
998
|
+
lightspark_node_with_remote_signing_id: id
|
|
999
|
+
lightspark_node_with_remote_signing_created_at: created_at
|
|
1000
|
+
lightspark_node_with_remote_signing_updated_at: updated_at
|
|
1001
|
+
lightspark_node_with_remote_signing_alias: alias
|
|
1002
|
+
lightspark_node_with_remote_signing_bitcoin_network: bitcoin_network
|
|
1003
|
+
lightspark_node_with_remote_signing_color: color
|
|
1004
|
+
lightspark_node_with_remote_signing_conductivity: conductivity
|
|
1005
|
+
lightspark_node_with_remote_signing_display_name: display_name
|
|
1006
|
+
lightspark_node_with_remote_signing_public_key: public_key
|
|
1007
|
+
lightspark_node_with_remote_signing_owner: owner {
|
|
1008
|
+
id
|
|
1009
|
+
}
|
|
1010
|
+
lightspark_node_with_remote_signing_status: status
|
|
1011
|
+
lightspark_node_with_remote_signing_total_balance: total_balance {
|
|
857
1012
|
__typename
|
|
858
1013
|
currency_amount_original_value: original_value
|
|
859
1014
|
currency_amount_original_unit: original_unit
|
|
@@ -861,7 +1016,7 @@ query FetchAccountToTransactionsConnection($first: Int, $after: String, $types:
|
|
|
861
1016
|
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
862
1017
|
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
863
1018
|
}
|
|
864
|
-
|
|
1019
|
+
lightspark_node_with_remote_signing_total_local_balance: total_local_balance {
|
|
865
1020
|
__typename
|
|
866
1021
|
currency_amount_original_value: original_value
|
|
867
1022
|
currency_amount_original_unit: original_unit
|
|
@@ -869,7 +1024,7 @@ query FetchAccountToTransactionsConnection($first: Int, $after: String, $types:
|
|
|
869
1024
|
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
870
1025
|
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
871
1026
|
}
|
|
872
|
-
|
|
1027
|
+
lightspark_node_with_remote_signing_local_balance: local_balance {
|
|
873
1028
|
__typename
|
|
874
1029
|
currency_amount_original_value: original_value
|
|
875
1030
|
currency_amount_original_unit: original_unit
|
|
@@ -877,8 +1032,7 @@ query FetchAccountToTransactionsConnection($first: Int, $after: String, $types:
|
|
|
877
1032
|
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
878
1033
|
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
879
1034
|
}
|
|
880
|
-
|
|
881
|
-
lightspark_node_remote_balance: remote_balance {
|
|
1035
|
+
lightspark_node_with_remote_signing_remote_balance: remote_balance {
|
|
882
1036
|
__typename
|
|
883
1037
|
currency_amount_original_value: original_value
|
|
884
1038
|
currency_amount_original_unit: original_unit
|
|
@@ -886,7 +1040,58 @@ query FetchAccountToTransactionsConnection($first: Int, $after: String, $types:
|
|
|
886
1040
|
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
887
1041
|
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
888
1042
|
}
|
|
889
|
-
|
|
1043
|
+
lightspark_node_with_remote_signing_blockchain_balance: blockchain_balance {
|
|
1044
|
+
__typename
|
|
1045
|
+
blockchain_balance_total_balance: total_balance {
|
|
1046
|
+
__typename
|
|
1047
|
+
currency_amount_original_value: original_value
|
|
1048
|
+
currency_amount_original_unit: original_unit
|
|
1049
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
1050
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
1051
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
1052
|
+
}
|
|
1053
|
+
blockchain_balance_confirmed_balance: confirmed_balance {
|
|
1054
|
+
__typename
|
|
1055
|
+
currency_amount_original_value: original_value
|
|
1056
|
+
currency_amount_original_unit: original_unit
|
|
1057
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
1058
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
1059
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
1060
|
+
}
|
|
1061
|
+
blockchain_balance_unconfirmed_balance: unconfirmed_balance {
|
|
1062
|
+
__typename
|
|
1063
|
+
currency_amount_original_value: original_value
|
|
1064
|
+
currency_amount_original_unit: original_unit
|
|
1065
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
1066
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
1067
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
1068
|
+
}
|
|
1069
|
+
blockchain_balance_locked_balance: locked_balance {
|
|
1070
|
+
__typename
|
|
1071
|
+
currency_amount_original_value: original_value
|
|
1072
|
+
currency_amount_original_unit: original_unit
|
|
1073
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
1074
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
1075
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
1076
|
+
}
|
|
1077
|
+
blockchain_balance_required_reserve: required_reserve {
|
|
1078
|
+
__typename
|
|
1079
|
+
currency_amount_original_value: original_value
|
|
1080
|
+
currency_amount_original_unit: original_unit
|
|
1081
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
1082
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
1083
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
1084
|
+
}
|
|
1085
|
+
blockchain_balance_available_balance: available_balance {
|
|
1086
|
+
__typename
|
|
1087
|
+
currency_amount_original_value: original_value
|
|
1088
|
+
currency_amount_original_unit: original_unit
|
|
1089
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
1090
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
1091
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
1092
|
+
}
|
|
1093
|
+
}
|
|
1094
|
+
lightspark_node_with_remote_signing_uma_prescreening_utxos: uma_prescreening_utxos
|
|
890
1095
|
}
|
|
891
1096
|
}
|
|
892
1097
|
}
|
|
@@ -896,6 +1101,18 @@ query FetchAccountToTransactionsConnection($first: Int, $after: String, $types:
|
|
|
896
1101
|
__typename
|
|
897
1102
|
rich_text_text: text
|
|
898
1103
|
}
|
|
1104
|
+
outgoing_payment_uma_post_transaction_data: uma_post_transaction_data {
|
|
1105
|
+
__typename
|
|
1106
|
+
post_transaction_data_utxo: utxo
|
|
1107
|
+
post_transaction_data_amount: amount {
|
|
1108
|
+
__typename
|
|
1109
|
+
currency_amount_original_value: original_value
|
|
1110
|
+
currency_amount_original_unit: original_unit
|
|
1111
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
1112
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
1113
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
1114
|
+
}
|
|
1115
|
+
}
|
|
899
1116
|
}
|
|
900
1117
|
... on RoutingTransaction {
|
|
901
1118
|
__typename
|
|
@@ -996,7 +1213,7 @@ query FetchAccountToTransactionsConnection($first: Int, $after: String, $types:
|
|
|
996
1213
|
afterDate: string | undefined = undefined,
|
|
997
1214
|
beforeDate: string | undefined = undefined,
|
|
998
1215
|
bitcoinNetwork: BitcoinNetwork | undefined = undefined,
|
|
999
|
-
lightningNodeId: string | undefined = undefined
|
|
1216
|
+
lightningNodeId: string | undefined = undefined,
|
|
1000
1217
|
): Promise<AccountToPaymentRequestsConnection> {
|
|
1001
1218
|
return (await client.executeRawQuery({
|
|
1002
1219
|
queryPayload: `
|
|
@@ -1050,24 +1267,54 @@ query FetchAccountToPaymentRequestsConnection($first: Int, $after: String, $afte
|
|
|
1050
1267
|
graph_node_display_name: display_name
|
|
1051
1268
|
graph_node_public_key: public_key
|
|
1052
1269
|
}
|
|
1053
|
-
... on
|
|
1270
|
+
... on LightsparkNodeWithOSK {
|
|
1054
1271
|
__typename
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1272
|
+
lightspark_node_with_o_s_k_id: id
|
|
1273
|
+
lightspark_node_with_o_s_k_created_at: created_at
|
|
1274
|
+
lightspark_node_with_o_s_k_updated_at: updated_at
|
|
1275
|
+
lightspark_node_with_o_s_k_alias: alias
|
|
1276
|
+
lightspark_node_with_o_s_k_bitcoin_network: bitcoin_network
|
|
1277
|
+
lightspark_node_with_o_s_k_color: color
|
|
1278
|
+
lightspark_node_with_o_s_k_conductivity: conductivity
|
|
1279
|
+
lightspark_node_with_o_s_k_display_name: display_name
|
|
1280
|
+
lightspark_node_with_o_s_k_public_key: public_key
|
|
1281
|
+
lightspark_node_with_o_s_k_owner: owner {
|
|
1065
1282
|
id
|
|
1066
1283
|
}
|
|
1067
|
-
|
|
1068
|
-
|
|
1284
|
+
lightspark_node_with_o_s_k_status: status
|
|
1285
|
+
lightspark_node_with_o_s_k_total_balance: total_balance {
|
|
1286
|
+
__typename
|
|
1287
|
+
currency_amount_original_value: original_value
|
|
1288
|
+
currency_amount_original_unit: original_unit
|
|
1289
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
1290
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
1291
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
1292
|
+
}
|
|
1293
|
+
lightspark_node_with_o_s_k_total_local_balance: total_local_balance {
|
|
1294
|
+
__typename
|
|
1295
|
+
currency_amount_original_value: original_value
|
|
1296
|
+
currency_amount_original_unit: original_unit
|
|
1297
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
1298
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
1299
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
1300
|
+
}
|
|
1301
|
+
lightspark_node_with_o_s_k_local_balance: local_balance {
|
|
1302
|
+
__typename
|
|
1303
|
+
currency_amount_original_value: original_value
|
|
1304
|
+
currency_amount_original_unit: original_unit
|
|
1305
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
1306
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
1307
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
1069
1308
|
}
|
|
1070
|
-
|
|
1309
|
+
lightspark_node_with_o_s_k_remote_balance: remote_balance {
|
|
1310
|
+
__typename
|
|
1311
|
+
currency_amount_original_value: original_value
|
|
1312
|
+
currency_amount_original_unit: original_unit
|
|
1313
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
1314
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
1315
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
1316
|
+
}
|
|
1317
|
+
lightspark_node_with_o_s_k_blockchain_balance: blockchain_balance {
|
|
1071
1318
|
__typename
|
|
1072
1319
|
blockchain_balance_total_balance: total_balance {
|
|
1073
1320
|
__typename
|
|
@@ -1118,12 +1365,29 @@ query FetchAccountToPaymentRequestsConnection($first: Int, $after: String, $afte
|
|
|
1118
1365
|
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
1119
1366
|
}
|
|
1120
1367
|
}
|
|
1121
|
-
|
|
1368
|
+
lightspark_node_with_o_s_k_uma_prescreening_utxos: uma_prescreening_utxos
|
|
1369
|
+
lightspark_node_with_o_s_k_encrypted_signing_private_key: encrypted_signing_private_key {
|
|
1122
1370
|
__typename
|
|
1123
1371
|
secret_encrypted_value: encrypted_value
|
|
1124
1372
|
secret_cipher: cipher
|
|
1125
1373
|
}
|
|
1126
|
-
|
|
1374
|
+
}
|
|
1375
|
+
... on LightsparkNodeWithRemoteSigning {
|
|
1376
|
+
__typename
|
|
1377
|
+
lightspark_node_with_remote_signing_id: id
|
|
1378
|
+
lightspark_node_with_remote_signing_created_at: created_at
|
|
1379
|
+
lightspark_node_with_remote_signing_updated_at: updated_at
|
|
1380
|
+
lightspark_node_with_remote_signing_alias: alias
|
|
1381
|
+
lightspark_node_with_remote_signing_bitcoin_network: bitcoin_network
|
|
1382
|
+
lightspark_node_with_remote_signing_color: color
|
|
1383
|
+
lightspark_node_with_remote_signing_conductivity: conductivity
|
|
1384
|
+
lightspark_node_with_remote_signing_display_name: display_name
|
|
1385
|
+
lightspark_node_with_remote_signing_public_key: public_key
|
|
1386
|
+
lightspark_node_with_remote_signing_owner: owner {
|
|
1387
|
+
id
|
|
1388
|
+
}
|
|
1389
|
+
lightspark_node_with_remote_signing_status: status
|
|
1390
|
+
lightspark_node_with_remote_signing_total_balance: total_balance {
|
|
1127
1391
|
__typename
|
|
1128
1392
|
currency_amount_original_value: original_value
|
|
1129
1393
|
currency_amount_original_unit: original_unit
|
|
@@ -1131,7 +1395,7 @@ query FetchAccountToPaymentRequestsConnection($first: Int, $after: String, $afte
|
|
|
1131
1395
|
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
1132
1396
|
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
1133
1397
|
}
|
|
1134
|
-
|
|
1398
|
+
lightspark_node_with_remote_signing_total_local_balance: total_local_balance {
|
|
1135
1399
|
__typename
|
|
1136
1400
|
currency_amount_original_value: original_value
|
|
1137
1401
|
currency_amount_original_unit: original_unit
|
|
@@ -1139,7 +1403,7 @@ query FetchAccountToPaymentRequestsConnection($first: Int, $after: String, $afte
|
|
|
1139
1403
|
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
1140
1404
|
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
1141
1405
|
}
|
|
1142
|
-
|
|
1406
|
+
lightspark_node_with_remote_signing_local_balance: local_balance {
|
|
1143
1407
|
__typename
|
|
1144
1408
|
currency_amount_original_value: original_value
|
|
1145
1409
|
currency_amount_original_unit: original_unit
|
|
@@ -1147,8 +1411,7 @@ query FetchAccountToPaymentRequestsConnection($first: Int, $after: String, $afte
|
|
|
1147
1411
|
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
1148
1412
|
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
1149
1413
|
}
|
|
1150
|
-
|
|
1151
|
-
lightspark_node_remote_balance: remote_balance {
|
|
1414
|
+
lightspark_node_with_remote_signing_remote_balance: remote_balance {
|
|
1152
1415
|
__typename
|
|
1153
1416
|
currency_amount_original_value: original_value
|
|
1154
1417
|
currency_amount_original_unit: original_unit
|
|
@@ -1156,7 +1419,58 @@ query FetchAccountToPaymentRequestsConnection($first: Int, $after: String, $afte
|
|
|
1156
1419
|
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
1157
1420
|
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
1158
1421
|
}
|
|
1159
|
-
|
|
1422
|
+
lightspark_node_with_remote_signing_blockchain_balance: blockchain_balance {
|
|
1423
|
+
__typename
|
|
1424
|
+
blockchain_balance_total_balance: total_balance {
|
|
1425
|
+
__typename
|
|
1426
|
+
currency_amount_original_value: original_value
|
|
1427
|
+
currency_amount_original_unit: original_unit
|
|
1428
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
1429
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
1430
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
1431
|
+
}
|
|
1432
|
+
blockchain_balance_confirmed_balance: confirmed_balance {
|
|
1433
|
+
__typename
|
|
1434
|
+
currency_amount_original_value: original_value
|
|
1435
|
+
currency_amount_original_unit: original_unit
|
|
1436
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
1437
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
1438
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
1439
|
+
}
|
|
1440
|
+
blockchain_balance_unconfirmed_balance: unconfirmed_balance {
|
|
1441
|
+
__typename
|
|
1442
|
+
currency_amount_original_value: original_value
|
|
1443
|
+
currency_amount_original_unit: original_unit
|
|
1444
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
1445
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
1446
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
1447
|
+
}
|
|
1448
|
+
blockchain_balance_locked_balance: locked_balance {
|
|
1449
|
+
__typename
|
|
1450
|
+
currency_amount_original_value: original_value
|
|
1451
|
+
currency_amount_original_unit: original_unit
|
|
1452
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
1453
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
1454
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
1455
|
+
}
|
|
1456
|
+
blockchain_balance_required_reserve: required_reserve {
|
|
1457
|
+
__typename
|
|
1458
|
+
currency_amount_original_value: original_value
|
|
1459
|
+
currency_amount_original_unit: original_unit
|
|
1460
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
1461
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
1462
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
1463
|
+
}
|
|
1464
|
+
blockchain_balance_available_balance: available_balance {
|
|
1465
|
+
__typename
|
|
1466
|
+
currency_amount_original_value: original_value
|
|
1467
|
+
currency_amount_original_unit: original_unit
|
|
1468
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
1469
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
1470
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
1471
|
+
}
|
|
1472
|
+
}
|
|
1473
|
+
lightspark_node_with_remote_signing_uma_prescreening_utxos: uma_prescreening_utxos
|
|
1160
1474
|
}
|
|
1161
1475
|
}
|
|
1162
1476
|
}
|
|
@@ -1195,7 +1509,7 @@ query FetchAccountToPaymentRequestsConnection($first: Int, $after: String, $afte
|
|
|
1195
1509
|
client: LightsparkClient,
|
|
1196
1510
|
first: number | undefined = undefined,
|
|
1197
1511
|
after: string | undefined = undefined,
|
|
1198
|
-
thirdPartyIds: string[] | undefined = undefined
|
|
1512
|
+
thirdPartyIds: string[] | undefined = undefined,
|
|
1199
1513
|
): Promise<AccountToWalletsConnection> {
|
|
1200
1514
|
return (await client.executeRawQuery({
|
|
1201
1515
|
queryPayload: `
|
|
@@ -1246,6 +1560,9 @@ query FetchAccountToWalletsConnection($first: Int, $after: String, $third_party_
|
|
|
1246
1560
|
}
|
|
1247
1561
|
}
|
|
1248
1562
|
wallet_third_party_identifier: third_party_identifier
|
|
1563
|
+
wallet_account: account {
|
|
1564
|
+
id
|
|
1565
|
+
}
|
|
1249
1566
|
wallet_status: status
|
|
1250
1567
|
}
|
|
1251
1568
|
}
|
|
@@ -1286,7 +1603,7 @@ export const AccountFromJson = (obj: any): Account => {
|
|
|
1286
1603
|
obj["account_created_at"],
|
|
1287
1604
|
obj["account_updated_at"],
|
|
1288
1605
|
"Account",
|
|
1289
|
-
obj["account_name"]
|
|
1606
|
+
obj["account_name"],
|
|
1290
1607
|
);
|
|
1291
1608
|
};
|
|
1292
1609
|
|