@lightsparkdev/lightspark-sdk 1.5.11 → 1.5.13
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/{chunk-X7VPX3F3.js → chunk-FGFVWCTL.js} +234 -161
- package/dist/{index-dd1501fa.d.ts → index-2b493387.d.ts} +147 -17
- package/dist/index.cjs +227 -152
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +7 -3
- package/dist/objects/index.cjs +226 -151
- 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 +2 -2
- package/src/env.ts +3 -3
- package/src/objects/Account.ts +5 -0
- package/src/objects/ApiToken.ts +6 -0
- package/src/objects/AuditLogActor.ts +96 -0
- package/src/objects/CancelInvoiceInput.ts +4 -0
- package/src/objects/CancelInvoiceOutput.ts +4 -0
- package/src/objects/ChannelSnapshot.ts +68 -17
- package/src/objects/ClaimUmaInvitationInput.ts +5 -0
- package/src/objects/ClaimUmaInvitationOutput.ts +1 -0
- package/src/objects/ClaimUmaInvitationWithIncentivesInput.ts +7 -0
- package/src/objects/ClaimUmaInvitationWithIncentivesOutput.ts +1 -0
- package/src/objects/CreateApiTokenOutput.ts +1 -0
- package/src/objects/CreateInvitationWithIncentivesInput.ts +6 -0
- package/src/objects/CreateInvitationWithIncentivesOutput.ts +1 -0
- package/src/objects/CreateInvoiceInput.ts +4 -1
- package/src/objects/CreateNodeWalletAddressOutput.ts +34 -0
- package/src/objects/CreateUmaInvitationInput.ts +4 -0
- package/src/objects/CreateUmaInvitationOutput.ts +1 -0
- package/src/objects/Entity.ts +57 -45
- package/src/objects/IncomingPayment.ts +13 -0
- package/src/objects/IncomingPaymentsForInvoiceQueryInput.ts +31 -0
- package/src/objects/IncomingPaymentsForInvoiceQueryOutput.ts +71 -0
- package/src/objects/LightningTransaction.ts +12 -0
- package/src/objects/MultiSigAddressValidationParameters.ts +45 -0
- package/src/objects/OutgoingPayment.ts +14 -45
- package/src/objects/OutgoingPaymentAttempt.ts +5 -59
- package/src/objects/OutgoingPaymentsForInvoiceQueryOutput.ts +343 -1
- package/src/objects/PaymentFailureReason.ts +2 -0
- package/src/objects/Transaction.ts +12 -0
- package/src/objects/Wallet.ts +4 -0
- package/src/objects/WebhookEventType.ts +2 -0
- package/src/objects/WithdrawalRequestStatus.ts +2 -0
- package/src/objects/index.ts +11 -1
|
@@ -3,11 +3,6 @@
|
|
|
3
3
|
import { type Query } from "@lightsparkdev/core";
|
|
4
4
|
import autoBind from "auto-bind";
|
|
5
5
|
import type LightsparkClient from "../client.js";
|
|
6
|
-
import type ChannelSnapshot from "./ChannelSnapshot.js";
|
|
7
|
-
import {
|
|
8
|
-
ChannelSnapshotFromJson,
|
|
9
|
-
ChannelSnapshotToJson,
|
|
10
|
-
} from "./ChannelSnapshot.js";
|
|
11
6
|
import type CurrencyAmount from "./CurrencyAmount.js";
|
|
12
7
|
import {
|
|
13
8
|
CurrencyAmountFromJson,
|
|
@@ -66,7 +61,7 @@ class OutgoingPaymentAttempt implements Entity {
|
|
|
66
61
|
**/
|
|
67
62
|
public readonly fees?: CurrencyAmount | undefined,
|
|
68
63
|
/** The channel snapshot at the time the outgoing payment attempt was made. **/
|
|
69
|
-
public readonly
|
|
64
|
+
public readonly channelSnapshotId?: string | undefined,
|
|
70
65
|
) {
|
|
71
66
|
autoBind(this);
|
|
72
67
|
}
|
|
@@ -171,9 +166,8 @@ ${FRAGMENT}
|
|
|
171
166
|
? CurrencyAmountToJson(this.fees)
|
|
172
167
|
: undefined,
|
|
173
168
|
outgoing_payment_attempt_outgoing_payment: { id: this.outgoingPaymentId },
|
|
174
|
-
outgoing_payment_attempt_channel_snapshot:
|
|
175
|
-
|
|
176
|
-
: undefined,
|
|
169
|
+
outgoing_payment_attempt_channel_snapshot:
|
|
170
|
+
{ id: this.channelSnapshotId } ?? undefined,
|
|
177
171
|
};
|
|
178
172
|
}
|
|
179
173
|
}
|
|
@@ -202,11 +196,7 @@ export const OutgoingPaymentAttemptFromJson = (
|
|
|
202
196
|
!!obj["outgoing_payment_attempt_fees"]
|
|
203
197
|
? CurrencyAmountFromJson(obj["outgoing_payment_attempt_fees"])
|
|
204
198
|
: undefined,
|
|
205
|
-
|
|
206
|
-
? ChannelSnapshotFromJson(
|
|
207
|
-
obj["outgoing_payment_attempt_channel_snapshot"],
|
|
208
|
-
)
|
|
209
|
-
: undefined,
|
|
199
|
+
obj["outgoing_payment_attempt_channel_snapshot"]?.id ?? undefined,
|
|
210
200
|
);
|
|
211
201
|
};
|
|
212
202
|
|
|
@@ -241,51 +231,7 @@ fragment OutgoingPaymentAttemptFragment on OutgoingPaymentAttempt {
|
|
|
241
231
|
id
|
|
242
232
|
}
|
|
243
233
|
outgoing_payment_attempt_channel_snapshot: channel_snapshot {
|
|
244
|
-
|
|
245
|
-
channel_snapshot_channel: channel {
|
|
246
|
-
id
|
|
247
|
-
}
|
|
248
|
-
channel_snapshot_timestamp: timestamp
|
|
249
|
-
channel_snapshot_local_balance: local_balance {
|
|
250
|
-
__typename
|
|
251
|
-
currency_amount_original_value: original_value
|
|
252
|
-
currency_amount_original_unit: original_unit
|
|
253
|
-
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
254
|
-
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
255
|
-
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
256
|
-
}
|
|
257
|
-
channel_snapshot_local_unsettled_balance: local_unsettled_balance {
|
|
258
|
-
__typename
|
|
259
|
-
currency_amount_original_value: original_value
|
|
260
|
-
currency_amount_original_unit: original_unit
|
|
261
|
-
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
262
|
-
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
263
|
-
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
264
|
-
}
|
|
265
|
-
channel_snapshot_local_channel_reserve: local_channel_reserve {
|
|
266
|
-
__typename
|
|
267
|
-
currency_amount_original_value: original_value
|
|
268
|
-
currency_amount_original_unit: original_unit
|
|
269
|
-
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
270
|
-
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
271
|
-
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
272
|
-
}
|
|
273
|
-
channel_snapshot_remote_balance: remote_balance {
|
|
274
|
-
__typename
|
|
275
|
-
currency_amount_original_value: original_value
|
|
276
|
-
currency_amount_original_unit: original_unit
|
|
277
|
-
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
278
|
-
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
279
|
-
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
280
|
-
}
|
|
281
|
-
channel_snapshot_remote_unsettled_balance: remote_unsettled_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
|
-
}
|
|
234
|
+
id
|
|
289
235
|
}
|
|
290
236
|
}`;
|
|
291
237
|
|
|
@@ -30,7 +30,349 @@ export const FRAGMENT = `
|
|
|
30
30
|
fragment OutgoingPaymentsForInvoiceQueryOutputFragment on OutgoingPaymentsForInvoiceQueryOutput {
|
|
31
31
|
__typename
|
|
32
32
|
outgoing_payments_for_invoice_query_output_payments: payments {
|
|
33
|
-
|
|
33
|
+
__typename
|
|
34
|
+
outgoing_payment_id: id
|
|
35
|
+
outgoing_payment_created_at: created_at
|
|
36
|
+
outgoing_payment_updated_at: updated_at
|
|
37
|
+
outgoing_payment_status: status
|
|
38
|
+
outgoing_payment_resolved_at: resolved_at
|
|
39
|
+
outgoing_payment_amount: amount {
|
|
40
|
+
__typename
|
|
41
|
+
currency_amount_original_value: original_value
|
|
42
|
+
currency_amount_original_unit: original_unit
|
|
43
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
44
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
45
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
46
|
+
}
|
|
47
|
+
outgoing_payment_transaction_hash: transaction_hash
|
|
48
|
+
outgoing_payment_is_uma: is_uma
|
|
49
|
+
outgoing_payment_origin: origin {
|
|
50
|
+
id
|
|
51
|
+
}
|
|
52
|
+
outgoing_payment_destination: destination {
|
|
53
|
+
id
|
|
54
|
+
}
|
|
55
|
+
outgoing_payment_fees: fees {
|
|
56
|
+
__typename
|
|
57
|
+
currency_amount_original_value: original_value
|
|
58
|
+
currency_amount_original_unit: original_unit
|
|
59
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
60
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
61
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
62
|
+
}
|
|
63
|
+
outgoing_payment_payment_request_data: payment_request_data {
|
|
64
|
+
__typename
|
|
65
|
+
... on InvoiceData {
|
|
66
|
+
__typename
|
|
67
|
+
invoice_data_encoded_payment_request: encoded_payment_request
|
|
68
|
+
invoice_data_bitcoin_network: bitcoin_network
|
|
69
|
+
invoice_data_payment_hash: payment_hash
|
|
70
|
+
invoice_data_amount: amount {
|
|
71
|
+
__typename
|
|
72
|
+
currency_amount_original_value: original_value
|
|
73
|
+
currency_amount_original_unit: original_unit
|
|
74
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
75
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
76
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
77
|
+
}
|
|
78
|
+
invoice_data_created_at: created_at
|
|
79
|
+
invoice_data_expires_at: expires_at
|
|
80
|
+
invoice_data_memo: memo
|
|
81
|
+
invoice_data_destination: destination {
|
|
82
|
+
__typename
|
|
83
|
+
... on GraphNode {
|
|
84
|
+
__typename
|
|
85
|
+
graph_node_id: id
|
|
86
|
+
graph_node_created_at: created_at
|
|
87
|
+
graph_node_updated_at: updated_at
|
|
88
|
+
graph_node_alias: alias
|
|
89
|
+
graph_node_bitcoin_network: bitcoin_network
|
|
90
|
+
graph_node_color: color
|
|
91
|
+
graph_node_conductivity: conductivity
|
|
92
|
+
graph_node_display_name: display_name
|
|
93
|
+
graph_node_public_key: public_key
|
|
94
|
+
}
|
|
95
|
+
... on LightsparkNodeWithOSK {
|
|
96
|
+
__typename
|
|
97
|
+
lightspark_node_with_o_s_k_id: id
|
|
98
|
+
lightspark_node_with_o_s_k_created_at: created_at
|
|
99
|
+
lightspark_node_with_o_s_k_updated_at: updated_at
|
|
100
|
+
lightspark_node_with_o_s_k_alias: alias
|
|
101
|
+
lightspark_node_with_o_s_k_bitcoin_network: bitcoin_network
|
|
102
|
+
lightspark_node_with_o_s_k_color: color
|
|
103
|
+
lightspark_node_with_o_s_k_conductivity: conductivity
|
|
104
|
+
lightspark_node_with_o_s_k_display_name: display_name
|
|
105
|
+
lightspark_node_with_o_s_k_public_key: public_key
|
|
106
|
+
lightspark_node_with_o_s_k_owner: owner {
|
|
107
|
+
id
|
|
108
|
+
}
|
|
109
|
+
lightspark_node_with_o_s_k_status: status
|
|
110
|
+
lightspark_node_with_o_s_k_total_balance: total_balance {
|
|
111
|
+
__typename
|
|
112
|
+
currency_amount_original_value: original_value
|
|
113
|
+
currency_amount_original_unit: original_unit
|
|
114
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
115
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
116
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
117
|
+
}
|
|
118
|
+
lightspark_node_with_o_s_k_total_local_balance: total_local_balance {
|
|
119
|
+
__typename
|
|
120
|
+
currency_amount_original_value: original_value
|
|
121
|
+
currency_amount_original_unit: original_unit
|
|
122
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
123
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
124
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
125
|
+
}
|
|
126
|
+
lightspark_node_with_o_s_k_local_balance: local_balance {
|
|
127
|
+
__typename
|
|
128
|
+
currency_amount_original_value: original_value
|
|
129
|
+
currency_amount_original_unit: original_unit
|
|
130
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
131
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
132
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
133
|
+
}
|
|
134
|
+
lightspark_node_with_o_s_k_remote_balance: remote_balance {
|
|
135
|
+
__typename
|
|
136
|
+
currency_amount_original_value: original_value
|
|
137
|
+
currency_amount_original_unit: original_unit
|
|
138
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
139
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
140
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
141
|
+
}
|
|
142
|
+
lightspark_node_with_o_s_k_blockchain_balance: blockchain_balance {
|
|
143
|
+
__typename
|
|
144
|
+
blockchain_balance_total_balance: total_balance {
|
|
145
|
+
__typename
|
|
146
|
+
currency_amount_original_value: original_value
|
|
147
|
+
currency_amount_original_unit: original_unit
|
|
148
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
149
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
150
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
151
|
+
}
|
|
152
|
+
blockchain_balance_confirmed_balance: confirmed_balance {
|
|
153
|
+
__typename
|
|
154
|
+
currency_amount_original_value: original_value
|
|
155
|
+
currency_amount_original_unit: original_unit
|
|
156
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
157
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
158
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
159
|
+
}
|
|
160
|
+
blockchain_balance_unconfirmed_balance: unconfirmed_balance {
|
|
161
|
+
__typename
|
|
162
|
+
currency_amount_original_value: original_value
|
|
163
|
+
currency_amount_original_unit: original_unit
|
|
164
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
165
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
166
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
167
|
+
}
|
|
168
|
+
blockchain_balance_locked_balance: locked_balance {
|
|
169
|
+
__typename
|
|
170
|
+
currency_amount_original_value: original_value
|
|
171
|
+
currency_amount_original_unit: original_unit
|
|
172
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
173
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
174
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
175
|
+
}
|
|
176
|
+
blockchain_balance_required_reserve: required_reserve {
|
|
177
|
+
__typename
|
|
178
|
+
currency_amount_original_value: original_value
|
|
179
|
+
currency_amount_original_unit: original_unit
|
|
180
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
181
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
182
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
183
|
+
}
|
|
184
|
+
blockchain_balance_available_balance: available_balance {
|
|
185
|
+
__typename
|
|
186
|
+
currency_amount_original_value: original_value
|
|
187
|
+
currency_amount_original_unit: original_unit
|
|
188
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
189
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
190
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
lightspark_node_with_o_s_k_uma_prescreening_utxos: uma_prescreening_utxos
|
|
194
|
+
lightspark_node_with_o_s_k_balances: balances {
|
|
195
|
+
__typename
|
|
196
|
+
balances_owned_balance: owned_balance {
|
|
197
|
+
__typename
|
|
198
|
+
currency_amount_original_value: original_value
|
|
199
|
+
currency_amount_original_unit: original_unit
|
|
200
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
201
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
202
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
203
|
+
}
|
|
204
|
+
balances_available_to_send_balance: available_to_send_balance {
|
|
205
|
+
__typename
|
|
206
|
+
currency_amount_original_value: original_value
|
|
207
|
+
currency_amount_original_unit: original_unit
|
|
208
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
209
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
210
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
211
|
+
}
|
|
212
|
+
balances_available_to_withdraw_balance: available_to_withdraw_balance {
|
|
213
|
+
__typename
|
|
214
|
+
currency_amount_original_value: original_value
|
|
215
|
+
currency_amount_original_unit: original_unit
|
|
216
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
217
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
218
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
lightspark_node_with_o_s_k_encrypted_signing_private_key: encrypted_signing_private_key {
|
|
222
|
+
__typename
|
|
223
|
+
secret_encrypted_value: encrypted_value
|
|
224
|
+
secret_cipher: cipher
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
... on LightsparkNodeWithRemoteSigning {
|
|
228
|
+
__typename
|
|
229
|
+
lightspark_node_with_remote_signing_id: id
|
|
230
|
+
lightspark_node_with_remote_signing_created_at: created_at
|
|
231
|
+
lightspark_node_with_remote_signing_updated_at: updated_at
|
|
232
|
+
lightspark_node_with_remote_signing_alias: alias
|
|
233
|
+
lightspark_node_with_remote_signing_bitcoin_network: bitcoin_network
|
|
234
|
+
lightspark_node_with_remote_signing_color: color
|
|
235
|
+
lightspark_node_with_remote_signing_conductivity: conductivity
|
|
236
|
+
lightspark_node_with_remote_signing_display_name: display_name
|
|
237
|
+
lightspark_node_with_remote_signing_public_key: public_key
|
|
238
|
+
lightspark_node_with_remote_signing_owner: owner {
|
|
239
|
+
id
|
|
240
|
+
}
|
|
241
|
+
lightspark_node_with_remote_signing_status: status
|
|
242
|
+
lightspark_node_with_remote_signing_total_balance: total_balance {
|
|
243
|
+
__typename
|
|
244
|
+
currency_amount_original_value: original_value
|
|
245
|
+
currency_amount_original_unit: original_unit
|
|
246
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
247
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
248
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
249
|
+
}
|
|
250
|
+
lightspark_node_with_remote_signing_total_local_balance: total_local_balance {
|
|
251
|
+
__typename
|
|
252
|
+
currency_amount_original_value: original_value
|
|
253
|
+
currency_amount_original_unit: original_unit
|
|
254
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
255
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
256
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
257
|
+
}
|
|
258
|
+
lightspark_node_with_remote_signing_local_balance: local_balance {
|
|
259
|
+
__typename
|
|
260
|
+
currency_amount_original_value: original_value
|
|
261
|
+
currency_amount_original_unit: original_unit
|
|
262
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
263
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
264
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
265
|
+
}
|
|
266
|
+
lightspark_node_with_remote_signing_remote_balance: remote_balance {
|
|
267
|
+
__typename
|
|
268
|
+
currency_amount_original_value: original_value
|
|
269
|
+
currency_amount_original_unit: original_unit
|
|
270
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
271
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
272
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
273
|
+
}
|
|
274
|
+
lightspark_node_with_remote_signing_blockchain_balance: blockchain_balance {
|
|
275
|
+
__typename
|
|
276
|
+
blockchain_balance_total_balance: total_balance {
|
|
277
|
+
__typename
|
|
278
|
+
currency_amount_original_value: original_value
|
|
279
|
+
currency_amount_original_unit: original_unit
|
|
280
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
281
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
282
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
283
|
+
}
|
|
284
|
+
blockchain_balance_confirmed_balance: confirmed_balance {
|
|
285
|
+
__typename
|
|
286
|
+
currency_amount_original_value: original_value
|
|
287
|
+
currency_amount_original_unit: original_unit
|
|
288
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
289
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
290
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
291
|
+
}
|
|
292
|
+
blockchain_balance_unconfirmed_balance: unconfirmed_balance {
|
|
293
|
+
__typename
|
|
294
|
+
currency_amount_original_value: original_value
|
|
295
|
+
currency_amount_original_unit: original_unit
|
|
296
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
297
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
298
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
299
|
+
}
|
|
300
|
+
blockchain_balance_locked_balance: locked_balance {
|
|
301
|
+
__typename
|
|
302
|
+
currency_amount_original_value: original_value
|
|
303
|
+
currency_amount_original_unit: original_unit
|
|
304
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
305
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
306
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
307
|
+
}
|
|
308
|
+
blockchain_balance_required_reserve: required_reserve {
|
|
309
|
+
__typename
|
|
310
|
+
currency_amount_original_value: original_value
|
|
311
|
+
currency_amount_original_unit: original_unit
|
|
312
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
313
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
314
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
315
|
+
}
|
|
316
|
+
blockchain_balance_available_balance: available_balance {
|
|
317
|
+
__typename
|
|
318
|
+
currency_amount_original_value: original_value
|
|
319
|
+
currency_amount_original_unit: original_unit
|
|
320
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
321
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
322
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
lightspark_node_with_remote_signing_uma_prescreening_utxos: uma_prescreening_utxos
|
|
326
|
+
lightspark_node_with_remote_signing_balances: balances {
|
|
327
|
+
__typename
|
|
328
|
+
balances_owned_balance: owned_balance {
|
|
329
|
+
__typename
|
|
330
|
+
currency_amount_original_value: original_value
|
|
331
|
+
currency_amount_original_unit: original_unit
|
|
332
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
333
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
334
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
335
|
+
}
|
|
336
|
+
balances_available_to_send_balance: available_to_send_balance {
|
|
337
|
+
__typename
|
|
338
|
+
currency_amount_original_value: original_value
|
|
339
|
+
currency_amount_original_unit: original_unit
|
|
340
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
341
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
342
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
343
|
+
}
|
|
344
|
+
balances_available_to_withdraw_balance: available_to_withdraw_balance {
|
|
345
|
+
__typename
|
|
346
|
+
currency_amount_original_value: original_value
|
|
347
|
+
currency_amount_original_unit: original_unit
|
|
348
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
349
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
350
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
}
|
|
357
|
+
outgoing_payment_failure_reason: failure_reason
|
|
358
|
+
outgoing_payment_failure_message: failure_message {
|
|
359
|
+
__typename
|
|
360
|
+
rich_text_text: text
|
|
361
|
+
}
|
|
362
|
+
outgoing_payment_uma_post_transaction_data: uma_post_transaction_data {
|
|
363
|
+
__typename
|
|
364
|
+
post_transaction_data_utxo: utxo
|
|
365
|
+
post_transaction_data_amount: amount {
|
|
366
|
+
__typename
|
|
367
|
+
currency_amount_original_value: original_value
|
|
368
|
+
currency_amount_original_unit: original_unit
|
|
369
|
+
currency_amount_preferred_currency_unit: preferred_currency_unit
|
|
370
|
+
currency_amount_preferred_currency_value_rounded: preferred_currency_value_rounded
|
|
371
|
+
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
outgoing_payment_payment_preimage: payment_preimage
|
|
375
|
+
outgoing_payment_is_internal_payment: is_internal_payment
|
|
34
376
|
}
|
|
35
377
|
}`;
|
|
36
378
|
|
|
@@ -137,7 +137,9 @@ export const TransactionFromJson = (obj: any): Transaction => {
|
|
|
137
137
|
TransactionStatus[obj["incoming_payment_status"]] ??
|
|
138
138
|
TransactionStatus.FUTURE_VALUE,
|
|
139
139
|
CurrencyAmountFromJson(obj["incoming_payment_amount"]),
|
|
140
|
+
obj["incoming_payment_is_uma"],
|
|
140
141
|
obj["incoming_payment_destination"].id,
|
|
142
|
+
obj["incoming_payment_is_internal_payment"],
|
|
141
143
|
"IncomingPayment",
|
|
142
144
|
obj["incoming_payment_resolved_at"],
|
|
143
145
|
obj["incoming_payment_transaction_hash"],
|
|
@@ -155,7 +157,9 @@ export const TransactionFromJson = (obj: any): Transaction => {
|
|
|
155
157
|
TransactionStatus[obj["outgoing_payment_status"]] ??
|
|
156
158
|
TransactionStatus.FUTURE_VALUE,
|
|
157
159
|
CurrencyAmountFromJson(obj["outgoing_payment_amount"]),
|
|
160
|
+
obj["outgoing_payment_is_uma"],
|
|
158
161
|
obj["outgoing_payment_origin"].id,
|
|
162
|
+
obj["outgoing_payment_is_internal_payment"],
|
|
159
163
|
"OutgoingPayment",
|
|
160
164
|
obj["outgoing_payment_resolved_at"],
|
|
161
165
|
obj["outgoing_payment_transaction_hash"],
|
|
@@ -334,6 +338,7 @@ export const TransactionToJson = (obj: Transaction): any => {
|
|
|
334
338
|
incoming_payment_resolved_at: incomingPayment.resolvedAt,
|
|
335
339
|
incoming_payment_amount: CurrencyAmountToJson(incomingPayment.amount),
|
|
336
340
|
incoming_payment_transaction_hash: incomingPayment.transactionHash,
|
|
341
|
+
incoming_payment_is_uma: incomingPayment.isUma,
|
|
337
342
|
incoming_payment_destination: { id: incomingPayment.destinationId },
|
|
338
343
|
incoming_payment_payment_request:
|
|
339
344
|
{ id: incomingPayment.paymentRequestId } ?? undefined,
|
|
@@ -341,6 +346,7 @@ export const TransactionToJson = (obj: Transaction): any => {
|
|
|
341
346
|
incomingPayment.umaPostTransactionData?.map((e) =>
|
|
342
347
|
PostTransactionDataToJson(e),
|
|
343
348
|
),
|
|
349
|
+
incoming_payment_is_internal_payment: incomingPayment.isInternalPayment,
|
|
344
350
|
};
|
|
345
351
|
}
|
|
346
352
|
if (obj.typename == "OutgoingPayment") {
|
|
@@ -354,6 +360,7 @@ export const TransactionToJson = (obj: Transaction): any => {
|
|
|
354
360
|
outgoing_payment_resolved_at: outgoingPayment.resolvedAt,
|
|
355
361
|
outgoing_payment_amount: CurrencyAmountToJson(outgoingPayment.amount),
|
|
356
362
|
outgoing_payment_transaction_hash: outgoingPayment.transactionHash,
|
|
363
|
+
outgoing_payment_is_uma: outgoingPayment.isUma,
|
|
357
364
|
outgoing_payment_origin: { id: outgoingPayment.originId },
|
|
358
365
|
outgoing_payment_destination:
|
|
359
366
|
{ id: outgoingPayment.destinationId } ?? undefined,
|
|
@@ -372,6 +379,7 @@ export const TransactionToJson = (obj: Transaction): any => {
|
|
|
372
379
|
PostTransactionDataToJson(e),
|
|
373
380
|
),
|
|
374
381
|
outgoing_payment_payment_preimage: outgoingPayment.paymentPreimage,
|
|
382
|
+
outgoing_payment_is_internal_payment: outgoingPayment.isInternalPayment,
|
|
375
383
|
};
|
|
376
384
|
}
|
|
377
385
|
if (obj.typename == "RoutingTransaction") {
|
|
@@ -542,6 +550,7 @@ fragment TransactionFragment on Transaction {
|
|
|
542
550
|
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
543
551
|
}
|
|
544
552
|
incoming_payment_transaction_hash: transaction_hash
|
|
553
|
+
incoming_payment_is_uma: is_uma
|
|
545
554
|
incoming_payment_destination: destination {
|
|
546
555
|
id
|
|
547
556
|
}
|
|
@@ -560,6 +569,7 @@ fragment TransactionFragment on Transaction {
|
|
|
560
569
|
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
561
570
|
}
|
|
562
571
|
}
|
|
572
|
+
incoming_payment_is_internal_payment: is_internal_payment
|
|
563
573
|
}
|
|
564
574
|
... on OutgoingPayment {
|
|
565
575
|
__typename
|
|
@@ -577,6 +587,7 @@ fragment TransactionFragment on Transaction {
|
|
|
577
587
|
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
578
588
|
}
|
|
579
589
|
outgoing_payment_transaction_hash: transaction_hash
|
|
590
|
+
outgoing_payment_is_uma: is_uma
|
|
580
591
|
outgoing_payment_origin: origin {
|
|
581
592
|
id
|
|
582
593
|
}
|
|
@@ -903,6 +914,7 @@ fragment TransactionFragment on Transaction {
|
|
|
903
914
|
}
|
|
904
915
|
}
|
|
905
916
|
outgoing_payment_payment_preimage: payment_preimage
|
|
917
|
+
outgoing_payment_is_internal_payment: is_internal_payment
|
|
906
918
|
}
|
|
907
919
|
... on RoutingTransaction {
|
|
908
920
|
__typename
|
package/src/objects/Wallet.ts
CHANGED
|
@@ -192,6 +192,7 @@ query FetchWalletToTransactionsConnection($entity_id: ID!, $first: Int, $after:
|
|
|
192
192
|
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
193
193
|
}
|
|
194
194
|
incoming_payment_transaction_hash: transaction_hash
|
|
195
|
+
incoming_payment_is_uma: is_uma
|
|
195
196
|
incoming_payment_destination: destination {
|
|
196
197
|
id
|
|
197
198
|
}
|
|
@@ -210,6 +211,7 @@ query FetchWalletToTransactionsConnection($entity_id: ID!, $first: Int, $after:
|
|
|
210
211
|
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
211
212
|
}
|
|
212
213
|
}
|
|
214
|
+
incoming_payment_is_internal_payment: is_internal_payment
|
|
213
215
|
}
|
|
214
216
|
... on OutgoingPayment {
|
|
215
217
|
__typename
|
|
@@ -227,6 +229,7 @@ query FetchWalletToTransactionsConnection($entity_id: ID!, $first: Int, $after:
|
|
|
227
229
|
currency_amount_preferred_currency_value_approx: preferred_currency_value_approx
|
|
228
230
|
}
|
|
229
231
|
outgoing_payment_transaction_hash: transaction_hash
|
|
232
|
+
outgoing_payment_is_uma: is_uma
|
|
230
233
|
outgoing_payment_origin: origin {
|
|
231
234
|
id
|
|
232
235
|
}
|
|
@@ -553,6 +556,7 @@ query FetchWalletToTransactionsConnection($entity_id: ID!, $first: Int, $after:
|
|
|
553
556
|
}
|
|
554
557
|
}
|
|
555
558
|
outgoing_payment_payment_preimage: payment_preimage
|
|
559
|
+
outgoing_payment_is_internal_payment: is_internal_payment
|
|
556
560
|
}
|
|
557
561
|
... on RoutingTransaction {
|
|
558
562
|
__typename
|
package/src/objects/index.ts
CHANGED
|
@@ -7,6 +7,10 @@ export { default as AccountToTransactionsConnection } from "./AccountToTransacti
|
|
|
7
7
|
export { default as AccountToWalletsConnection } from "./AccountToWalletsConnection.js";
|
|
8
8
|
export { default as AccountToWithdrawalRequestsConnection } from "./AccountToWithdrawalRequestsConnection.js";
|
|
9
9
|
export { default as ApiToken, getApiTokenQuery } from "./ApiToken.js";
|
|
10
|
+
export {
|
|
11
|
+
default as AuditLogActor,
|
|
12
|
+
getAuditLogActorQuery,
|
|
13
|
+
} from "./AuditLogActor.js";
|
|
10
14
|
export { default as Balances } from "./Balances.js";
|
|
11
15
|
export { default as BitcoinNetwork } from "./BitcoinNetwork.js";
|
|
12
16
|
export { default as BlockchainBalance } from "./BlockchainBalance.js";
|
|
@@ -22,7 +26,10 @@ export {
|
|
|
22
26
|
default as ChannelOpeningTransaction,
|
|
23
27
|
getChannelOpeningTransactionQuery,
|
|
24
28
|
} from "./ChannelOpeningTransaction.js";
|
|
25
|
-
export {
|
|
29
|
+
export {
|
|
30
|
+
default as ChannelSnapshot,
|
|
31
|
+
getChannelSnapshotQuery,
|
|
32
|
+
} from "./ChannelSnapshot.js";
|
|
26
33
|
export { default as ChannelStatus } from "./ChannelStatus.js";
|
|
27
34
|
export { default as ChannelToTransactionsConnection } from "./ChannelToTransactionsConnection.js";
|
|
28
35
|
export { default as ClaimUmaInvitationInput } from "./ClaimUmaInvitationInput.js";
|
|
@@ -72,6 +79,8 @@ export {
|
|
|
72
79
|
} from "./IncomingPaymentAttempt.js";
|
|
73
80
|
export { default as IncomingPaymentAttemptStatus } from "./IncomingPaymentAttemptStatus.js";
|
|
74
81
|
export { default as IncomingPaymentToAttemptsConnection } from "./IncomingPaymentToAttemptsConnection.js";
|
|
82
|
+
export { default as IncomingPaymentsForInvoiceQueryInput } from "./IncomingPaymentsForInvoiceQueryInput.js";
|
|
83
|
+
export { default as IncomingPaymentsForInvoiceQueryOutput } from "./IncomingPaymentsForInvoiceQueryOutput.js";
|
|
75
84
|
export { default as Invoice, getInvoiceQuery } from "./Invoice.js";
|
|
76
85
|
export { default as InvoiceData } from "./InvoiceData.js";
|
|
77
86
|
export { default as InvoiceType } from "./InvoiceType.js";
|
|
@@ -96,6 +105,7 @@ export { default as LightsparkNodeToChannelsConnection } from "./LightsparkNodeT
|
|
|
96
105
|
export { default as LightsparkNodeToDailyLiquidityForecastsConnection } from "./LightsparkNodeToDailyLiquidityForecastsConnection.js";
|
|
97
106
|
export { default as LightsparkNodeWithOSK } from "./LightsparkNodeWithOSK.js";
|
|
98
107
|
export { default as LightsparkNodeWithRemoteSigning } from "./LightsparkNodeWithRemoteSigning.js";
|
|
108
|
+
export { default as MultiSigAddressValidationParameters } from "./MultiSigAddressValidationParameters.js";
|
|
99
109
|
export { default as Node, getNodeQuery } from "./Node.js";
|
|
100
110
|
export { default as NodeAddress } from "./NodeAddress.js";
|
|
101
111
|
export { default as NodeAddressType } from "./NodeAddressType.js";
|