@breeztech/breez-sdk-spark 0.5.2 → 0.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Binary file
@@ -80,24 +80,16 @@ export interface BitcoinAddressDetails {
80
80
  source: PaymentRequestSource;
81
81
  }
82
82
 
83
- export interface ReceivePaymentResponse {
84
- paymentRequest: string;
85
- fee: bigint;
83
+ export interface ReceivePaymentRequest {
84
+ paymentMethod: ReceivePaymentMethod;
86
85
  }
87
86
 
88
- export interface PrepareSendPaymentRequest {
87
+ export interface LnurlWithdrawResponse {
89
88
  paymentRequest: string;
90
- amount?: bigint;
91
- tokenIdentifier?: string;
89
+ payment?: Payment;
92
90
  }
93
91
 
94
- export interface SendOnchainFeeQuote {
95
- id: string;
96
- expiresAt: number;
97
- speedFast: SendOnchainSpeedFeeQuote;
98
- speedMedium: SendOnchainSpeedFeeQuote;
99
- speedSlow: SendOnchainSpeedFeeQuote;
100
- }
92
+ export type ReceivePaymentMethod = { type: "sparkAddress" } | { type: "sparkInvoice"; amount?: bigint; tokenIdentifier?: string; expiryTime?: number; description?: string; senderPublicKey?: string } | { type: "bitcoinAddress" } | { type: "bolt11Invoice"; description: string; amountSats?: number };
101
93
 
102
94
  export interface DepositInfo {
103
95
  txid: string;
@@ -108,16 +100,16 @@ export interface DepositInfo {
108
100
  claimError?: DepositClaimError;
109
101
  }
110
102
 
111
- export interface SetLnurlMetadataItem {
112
- paymentHash: string;
113
- senderComment?: string;
114
- nostrZapRequest?: string;
115
- nostrZapReceipt?: string;
103
+ export interface PaymentMetadata {
104
+ lnurlPayInfo?: LnurlPayInfo;
105
+ lnurlWithdrawInfo?: LnurlWithdrawInfo;
106
+ lnurlDescription?: string;
116
107
  }
117
108
 
118
- export interface Credentials {
119
- username: string;
120
- password: string;
109
+ export interface ExternalInputParser {
110
+ providerId: string;
111
+ inputRegex: string;
112
+ parserUrl: string;
121
113
  }
122
114
 
123
115
  export type Network = "mainnet" | "regtest";
@@ -128,8 +120,8 @@ export interface SilentPaymentAddressDetails {
128
120
  source: PaymentRequestSource;
129
121
  }
130
122
 
131
- export interface GetTokensMetadataResponse {
132
- tokensMetadata: TokenMetadata[];
123
+ export interface GetTokensMetadataRequest {
124
+ tokenIdentifiers: string[];
133
125
  }
134
126
 
135
127
  export interface Bolt11RouteHint {
@@ -141,26 +133,28 @@ export interface RefundDepositResponse {
141
133
  txHex: string;
142
134
  }
143
135
 
144
- export interface SendPaymentResponse {
145
- payment: Payment;
136
+ export interface SendPaymentRequest {
137
+ prepareResponse: PrepareSendPaymentResponse;
138
+ options?: SendPaymentOptions;
139
+ idempotencyKey?: string;
146
140
  }
147
141
 
148
142
  export type InputType = ({ type: "bitcoinAddress" } & BitcoinAddressDetails) | ({ type: "bolt11Invoice" } & Bolt11InvoiceDetails) | ({ type: "bolt12Invoice" } & Bolt12InvoiceDetails) | ({ type: "bolt12Offer" } & Bolt12OfferDetails) | ({ type: "lightningAddress" } & LightningAddressDetails) | ({ type: "lnurlPay" } & LnurlPayRequestDetails) | ({ type: "silentPaymentAddress" } & SilentPaymentAddressDetails) | ({ type: "lnurlAuth" } & LnurlAuthRequestDetails) | ({ type: "url" } & string) | ({ type: "bip21" } & Bip21Details) | ({ type: "bolt12InvoiceRequest" } & Bolt12InvoiceRequestDetails) | ({ type: "lnurlWithdraw" } & LnurlWithdrawRequestDetails) | ({ type: "sparkAddress" } & SparkAddressDetails) | ({ type: "sparkInvoice" } & SparkInvoiceDetails);
149
143
 
150
- export interface LnurlWithdrawResponse {
151
- paymentRequest: string;
152
- payment?: Payment;
144
+ export interface LnurlWithdrawRequest {
145
+ amountSats: number;
146
+ withdrawRequest: LnurlWithdrawRequestDetails;
147
+ completionTimeoutSecs?: number;
153
148
  }
154
149
 
155
- export interface UnversionedRecordChange {
156
- id: RecordId;
157
- schemaVersion: string;
158
- updatedFields: Map<string, string>;
150
+ export interface RecordId {
151
+ type: string;
152
+ dataId: string;
159
153
  }
160
154
 
161
- export interface OutgoingChange {
162
- change: RecordChange;
163
- parent?: Record;
155
+ export interface IncomingChange {
156
+ newState: Record;
157
+ oldState?: Record;
164
158
  }
165
159
 
166
160
  export interface SparkInvoicePaymentDetails {
@@ -178,98 +172,100 @@ export interface PaymentRequestSource {
178
172
  bip353Address?: string;
179
173
  }
180
174
 
181
- export interface TokenMetadata {
182
- identifier: string;
183
- issuerPublicKey: string;
184
- name: string;
185
- ticker: string;
186
- decimals: number;
187
- maxSupply: bigint;
188
- isFreezable: boolean;
175
+ export interface TokenBalance {
176
+ balance: bigint;
177
+ tokenMetadata: TokenMetadata;
189
178
  }
190
179
 
191
- export interface CheckMessageRequest {
192
- message: string;
180
+ export interface SignMessageResponse {
193
181
  pubkey: string;
194
182
  signature: string;
195
183
  }
196
184
 
197
- export interface LogEntry {
198
- line: string;
199
- level: string;
185
+ export interface GetPaymentResponse {
186
+ payment: Payment;
200
187
  }
201
188
 
202
189
  export type PaymentDetails = { type: "spark"; invoiceDetails?: SparkInvoicePaymentDetails; htlcDetails?: SparkHtlcDetails } | { type: "token"; metadata: TokenMetadata; txHash: string; invoiceDetails?: SparkInvoicePaymentDetails } | { type: "lightning"; description?: string; preimage?: string; invoice: string; paymentHash: string; destinationPubkey: string; lnurlPayInfo?: LnurlPayInfo; lnurlWithdrawInfo?: LnurlWithdrawInfo; lnurlReceiveMetadata?: LnurlReceiveMetadata } | { type: "withdraw"; txId: string } | { type: "deposit"; txId: string };
203
190
 
204
- export interface Symbol {
205
- grapheme?: string;
206
- template?: string;
207
- rtl?: boolean;
208
- position?: number;
191
+ export interface LocalizedName {
192
+ locale: string;
193
+ name: string;
209
194
  }
210
195
 
211
- export interface LnurlPayRequest {
212
- prepareResponse: PrepareLnurlPayResponse;
213
- idempotencyKey?: string;
196
+ export interface PrepareLnurlPayResponse {
197
+ amountSats: number;
198
+ comment?: string;
199
+ payRequest: LnurlPayRequestDetails;
200
+ feeSats: number;
201
+ invoiceDetails: Bolt11InvoiceDetails;
202
+ successAction?: SuccessAction;
214
203
  }
215
204
 
216
- export interface RecordId {
217
- type: string;
218
- dataId: string;
205
+ export interface CheckMessageResponse {
206
+ isValid: boolean;
219
207
  }
220
208
 
221
- export interface SignMessageRequest {
222
- message: string;
223
- compact: boolean;
224
- }
209
+ export type ProvisionalPaymentDetails = { type: "bitcoin"; withdrawalAddress: string } | { type: "lightning"; invoice: string } | { type: "spark"; payRequest: string } | { type: "token"; tokenId: string; payRequest: string };
225
210
 
226
211
  export type Seed = { type: "mnemonic"; mnemonic: string; passphrase?: string } | ({ type: "entropy" } & number[]);
227
212
 
228
213
  export type SparkHtlcStatus = "waitingForPreimage" | "preimageShared" | "returned";
229
214
 
230
- export interface GetTokensMetadataRequest {
231
- tokenIdentifiers: string[];
215
+ export interface Symbol {
216
+ grapheme?: string;
217
+ template?: string;
218
+ rtl?: boolean;
219
+ position?: number;
232
220
  }
233
221
 
234
- export type Fee = { type: "fixed"; amount: number } | { type: "rate"; satPerVbyte: number };
222
+ export type MaxFee = { type: "fixed"; amount: number } | { type: "rate"; satPerVbyte: number } | { type: "networkRecommended"; leewaySatPerVbyte: number };
235
223
 
236
- export interface ClaimHtlcPaymentRequest {
237
- preimage: string;
224
+ export interface UpdateUserSettingsRequest {
225
+ sparkPrivateModeEnabled?: boolean;
238
226
  }
239
227
 
240
- export interface LightningAddressInfo {
241
- description: string;
242
- lightningAddress: string;
243
- lnurl: string;
228
+ export interface RegisterLightningAddressRequest {
244
229
  username: string;
230
+ description?: string;
245
231
  }
246
232
 
247
233
  export type KeySetType = "default" | "taproot" | "nativeSegwit" | "wrappedSegwit" | "legacy";
248
234
 
249
- export interface LocalizedName {
235
+ export interface LocaleOverrides {
250
236
  locale: string;
251
- name: string;
237
+ spacing?: number;
238
+ symbol: Symbol;
252
239
  }
253
240
 
254
- export interface ListPaymentsResponse {
255
- payments: Payment[];
256
- }
241
+ export type AssetFilter = { type: "bitcoin" } | { type: "token"; tokenIdentifier?: string };
257
242
 
258
243
  export interface ListUnclaimedDepositsResponse {
259
244
  deposits: DepositInfo[];
260
245
  }
261
246
 
262
- export interface ListFiatCurrenciesResponse {
263
- currencies: FiatCurrency[];
247
+ export interface LightningAddressInfo {
248
+ description: string;
249
+ lightningAddress: string;
250
+ lnurl: string;
251
+ username: string;
264
252
  }
265
253
 
266
- export interface SyncWalletRequest {}
254
+ export interface TokenMetadata {
255
+ identifier: string;
256
+ issuerPublicKey: string;
257
+ name: string;
258
+ ticker: string;
259
+ decimals: number;
260
+ maxSupply: bigint;
261
+ isFreezable: boolean;
262
+ }
267
263
 
268
264
  export interface Config {
269
265
  apiKey?: string;
270
266
  network: Network;
271
267
  syncIntervalSecs: number;
272
- maxDepositClaimFee?: Fee;
268
+ maxDepositClaimFee?: MaxFee;
273
269
  lnurlDomain?: string;
274
270
  preferSparkOverLightning: boolean;
275
271
  externalInputParsers?: ExternalInputParser[];
@@ -278,56 +274,50 @@ export interface Config {
278
274
  privateEnabledDefault: boolean;
279
275
  }
280
276
 
281
- export type ProvisionalPaymentDetails = { type: "bitcoin"; withdrawalAddress: string } | { type: "lightning"; invoice: string } | { type: "spark"; payRequest: string } | { type: "token"; tokenId: string; payRequest: string };
277
+ export interface ProvisionalPayment {
278
+ paymentId: string;
279
+ amount: bigint;
280
+ details: ProvisionalPaymentDetails;
281
+ }
282
282
 
283
- export interface SendPaymentRequest {
284
- prepareResponse: PrepareSendPaymentResponse;
285
- options?: SendPaymentOptions;
286
- idempotencyKey?: string;
283
+ export interface SparkHtlcOptions {
284
+ paymentHash: string;
285
+ expiryDurationSecs: number;
287
286
  }
288
287
 
289
- export interface SyncWalletResponse {}
288
+ export interface SyncWalletRequest {}
290
289
 
291
290
  export interface MessageSuccessActionData {
292
291
  message: string;
293
292
  }
294
293
 
295
- export interface PrepareSendPaymentResponse {
296
- paymentMethod: SendPaymentMethod;
297
- amount: bigint;
294
+ export interface PrepareSendPaymentRequest {
295
+ paymentRequest: string;
296
+ amount?: bigint;
298
297
  tokenIdentifier?: string;
299
298
  }
300
299
 
301
- export interface Record {
300
+ export interface RecordChange {
302
301
  id: RecordId;
303
- revision: number;
304
302
  schemaVersion: string;
305
- data: Map<string, string>;
303
+ updatedFields: Map<string, string>;
304
+ revision: number;
306
305
  }
307
306
 
308
307
  export type DepositClaimError = { type: "maxDepositClaimFeeExceeded"; tx: string; vout: number; maxFee?: Fee; requiredFeeSats: number; requiredFeeRateSatPerVbyte: number } | { type: "missingUtxo"; tx: string; vout: number } | { type: "generic"; message: string };
309
308
 
310
- export interface PaymentMetadata {
311
- lnurlPayInfo?: LnurlPayInfo;
312
- lnurlWithdrawInfo?: LnurlWithdrawInfo;
313
- lnurlDescription?: string;
309
+ export interface LogEntry {
310
+ line: string;
311
+ level: string;
314
312
  }
315
313
 
316
314
  export interface ListUnclaimedDepositsRequest {}
317
315
 
318
- export interface CheckLightningAddressRequest {
319
- username: string;
320
- }
321
-
322
- export interface TokenBalance {
323
- balance: bigint;
324
- tokenMetadata: TokenMetadata;
325
- }
326
-
327
- export type SendPaymentMethod = { type: "bitcoinAddress"; address: BitcoinAddressDetails; feeQuote: SendOnchainFeeQuote } | { type: "bolt11Invoice"; invoiceDetails: Bolt11InvoiceDetails; sparkTransferFeeSats?: number; lightningFeeSats: number } | { type: "sparkAddress"; address: string; fee: bigint; tokenIdentifier?: string } | { type: "sparkInvoice"; sparkInvoiceDetails: SparkInvoiceDetails; fee: bigint; tokenIdentifier?: string };
316
+ export type UpdateDepositPayload = { type: "claimError"; error: DepositClaimError } | { type: "refund"; refundTxid: string; refundTx: string };
328
317
 
329
- export interface ReceivePaymentRequest {
330
- paymentMethod: ReceivePaymentMethod;
318
+ export interface GetInfoResponse {
319
+ balanceSats: number;
320
+ tokenBalances: Map<string, TokenBalance>;
331
321
  }
332
322
 
333
323
  export interface SendOnchainSpeedFeeQuote {
@@ -335,6 +325,16 @@ export interface SendOnchainSpeedFeeQuote {
335
325
  l1BroadcastFeeSat: number;
336
326
  }
337
327
 
328
+ export type SendPaymentMethod = { type: "bitcoinAddress"; address: BitcoinAddressDetails; feeQuote: SendOnchainFeeQuote } | { type: "bolt11Invoice"; invoiceDetails: Bolt11InvoiceDetails; sparkTransferFeeSats?: number; lightningFeeSats: number } | { type: "sparkAddress"; address: string; fee: bigint; tokenIdentifier?: string } | { type: "sparkInvoice"; sparkInvoiceDetails: SparkInvoiceDetails; fee: bigint; tokenIdentifier?: string };
329
+
330
+ export interface SendOnchainFeeQuote {
331
+ id: string;
332
+ expiresAt: number;
333
+ speedFast: SendOnchainSpeedFeeQuote;
334
+ speedMedium: SendOnchainSpeedFeeQuote;
335
+ speedSlow: SendOnchainSpeedFeeQuote;
336
+ }
337
+
338
338
  export interface Bolt12Invoice {
339
339
  invoice: string;
340
340
  source: PaymentRequestSource;
@@ -350,8 +350,9 @@ export interface LnurlWithdrawRequestDetails {
350
350
  maxWithdrawable: number;
351
351
  }
352
352
 
353
- export interface UserSettings {
354
- sparkPrivateModeEnabled: boolean;
353
+ export interface OutgoingChange {
354
+ change: RecordChange;
355
+ parent?: Record;
355
356
  }
356
357
 
357
358
  export interface Bolt12OfferBlindedPath {
@@ -367,26 +368,34 @@ export interface LnurlAuthRequestDetails {
367
368
  url: string;
368
369
  }
369
370
 
370
- export type UpdateDepositPayload = { type: "claimError"; error: DepositClaimError } | { type: "refund"; refundTxid: string; refundTx: string };
371
+ export interface SetLnurlMetadataItem {
372
+ paymentHash: string;
373
+ senderComment?: string;
374
+ nostrZapRequest?: string;
375
+ nostrZapReceipt?: string;
376
+ }
371
377
 
372
- export interface IncomingChange {
373
- newState: Record;
374
- oldState?: Record;
378
+ export interface Record {
379
+ id: RecordId;
380
+ revision: number;
381
+ schemaVersion: string;
382
+ data: Map<string, string>;
375
383
  }
376
384
 
377
- export interface LnurlPayResponse {
378
- payment: Payment;
379
- successAction?: SuccessActionProcessed;
385
+ export interface LnurlPayRequest {
386
+ prepareResponse: PrepareLnurlPayResponse;
387
+ idempotencyKey?: string;
380
388
  }
381
389
 
382
- export interface CheckMessageResponse {
383
- isValid: boolean;
390
+ export interface CheckMessageRequest {
391
+ message: string;
392
+ pubkey: string;
393
+ signature: string;
384
394
  }
385
395
 
386
- export interface LnurlWithdrawRequest {
387
- amountSats: number;
388
- withdrawRequest: LnurlWithdrawRequestDetails;
389
- completionTimeoutSecs?: number;
396
+ export interface LnurlPayResponse {
397
+ payment: Payment;
398
+ successAction?: SuccessActionProcessed;
390
399
  }
391
400
 
392
401
  export interface LnurlPayRequestDetails {
@@ -407,8 +416,8 @@ export interface Bolt12InvoiceDetails {
407
416
  invoice: Bolt12Invoice;
408
417
  }
409
418
 
410
- export interface GetPaymentRequest {
411
- paymentId: string;
419
+ export interface ListPaymentsResponse {
420
+ payments: Payment[];
412
421
  }
413
422
 
414
423
  export type PaymentMethod = "lightning" | "spark" | "token" | "deposit" | "withdraw" | "unknown";
@@ -419,13 +428,11 @@ export interface UrlSuccessActionData {
419
428
  matchesCallbackDomain: boolean;
420
429
  }
421
430
 
422
- export interface PrepareLnurlPayResponse {
431
+ export interface PrepareLnurlPayRequest {
423
432
  amountSats: number;
424
433
  comment?: string;
425
434
  payRequest: LnurlPayRequestDetails;
426
- feeSats: number;
427
- invoiceDetails: Bolt11InvoiceDetails;
428
- successAction?: SuccessAction;
435
+ validateSuccessActionUrl?: boolean;
429
436
  }
430
437
 
431
438
  export interface RefundDepositRequest {
@@ -435,23 +442,20 @@ export interface RefundDepositRequest {
435
442
  fee: Fee;
436
443
  }
437
444
 
438
- export interface ListFiatRatesResponse {
439
- rates: Rate[];
445
+ export interface ListFiatCurrenciesResponse {
446
+ currencies: FiatCurrency[];
440
447
  }
441
448
 
442
- export type SdkEvent = { type: "synced" } | { type: "dataSynced"; didPullNewRecords: boolean } | { type: "unclaimedDeposits"; unclaimedDeposits: DepositInfo[] } | { type: "claimedDeposits"; claimedDeposits: DepositInfo[] } | { type: "paymentSucceeded"; payment: Payment } | { type: "paymentPending"; payment: Payment } | { type: "paymentFailed"; payment: Payment };
449
+ export type SdkEvent = { type: "synced" } | { type: "unclaimedDeposits"; unclaimedDeposits: DepositInfo[] } | { type: "claimedDeposits"; claimedDeposits: DepositInfo[] } | { type: "paymentSucceeded"; payment: Payment } | { type: "paymentPending"; payment: Payment } | { type: "paymentFailed"; payment: Payment };
443
450
 
444
- export interface ProvisionalPayment {
445
- paymentId: string;
446
- amount: bigint;
447
- details: ProvisionalPaymentDetails;
451
+ export interface GetTokensMetadataResponse {
452
+ tokensMetadata: TokenMetadata[];
448
453
  }
449
454
 
450
455
  export type SuccessActionProcessed = { type: "aes"; result: AesSuccessActionDataResult } | { type: "message"; data: MessageSuccessActionData } | { type: "url"; data: UrlSuccessActionData };
451
456
 
452
- export interface RegisterLightningAddressRequest {
457
+ export interface CheckLightningAddressRequest {
453
458
  username: string;
454
- description?: string;
455
459
  }
456
460
 
457
461
  export interface Bolt11RouteHintHop {
@@ -464,12 +468,11 @@ export interface Bolt11RouteHintHop {
464
468
  htlcMaximumMsat?: number;
465
469
  }
466
470
 
467
- export interface Rate {
468
- coin: string;
469
- value: number;
471
+ export interface ListFiatRatesResponse {
472
+ rates: Rate[];
470
473
  }
471
474
 
472
- export type SendPaymentOptions = { type: "bitcoinAddress"; confirmationSpeed: OnchainConfirmationSpeed } | { type: "bolt11Invoice"; preferSpark: boolean; completionTimeoutSecs?: number } | { type: "sparkAddress"; htlcOptions?: SparkHtlcOptions };
475
+ export type OnchainConfirmationSpeed = "fast" | "medium" | "slow";
473
476
 
474
477
  export interface SparkInvoiceDetails {
475
478
  invoice: string;
@@ -482,14 +485,9 @@ export interface SparkInvoiceDetails {
482
485
  senderPublicKey?: string;
483
486
  }
484
487
 
485
- export interface CurrencyInfo {
486
- name: string;
487
- fractionSize: number;
488
- spacing?: number;
489
- symbol?: Symbol;
490
- uniqSymbol?: Symbol;
491
- localizedName: LocalizedName[];
492
- localeOverrides: LocaleOverrides[];
488
+ export interface FiatCurrency {
489
+ id: string;
490
+ info: CurrencyInfo;
493
491
  }
494
492
 
495
493
  export interface Bolt11InvoiceDetails {
@@ -520,35 +518,42 @@ export interface SparkAddressDetails {
520
518
 
521
519
  export interface Bolt12InvoiceRequestDetails {}
522
520
 
523
- export type AssetFilter = { type: "bitcoin" } | { type: "token"; tokenIdentifier?: string };
521
+ export interface ListPaymentsRequest {
522
+ typeFilter?: PaymentType[];
523
+ statusFilter?: PaymentStatus[];
524
+ assetFilter?: AssetFilter;
525
+ sparkHtlcStatusFilter?: SparkHtlcStatus[];
526
+ fromTimestamp?: number;
527
+ toTimestamp?: number;
528
+ offset?: number;
529
+ limit?: number;
530
+ sortAscending?: boolean;
531
+ }
524
532
 
525
- export interface SignMessageResponse {
526
- pubkey: string;
527
- signature: string;
533
+ export interface LnurlReceiveMetadata {
534
+ nostrZapRequest?: string;
535
+ nostrZapReceipt?: string;
536
+ senderComment?: string;
528
537
  }
529
538
 
530
- export interface ExternalInputParser {
531
- providerId: string;
532
- inputRegex: string;
533
- parserUrl: string;
539
+ export interface SignMessageRequest {
540
+ message: string;
541
+ compact: boolean;
534
542
  }
535
543
 
536
- export interface ClaimHtlcPaymentResponse {
537
- payment: Payment;
544
+ export type Fee = { type: "fixed"; amount: number } | { type: "rate"; satPerVbyte: number };
545
+
546
+ export interface ClaimHtlcPaymentRequest {
547
+ preimage: string;
538
548
  }
539
549
 
540
550
  export type PaymentStatus = "completed" | "pending" | "failed";
541
551
 
542
- export interface LnurlReceiveMetadata {
543
- nostrZapRequest?: string;
544
- nostrZapReceipt?: string;
545
- senderComment?: string;
552
+ export interface ClaimHtlcPaymentResponse {
553
+ payment: Payment;
546
554
  }
547
555
 
548
- export interface SparkHtlcOptions {
549
- paymentHash: string;
550
- expiryDurationSecs: number;
551
- }
556
+ export type SendPaymentOptions = { type: "bitcoinAddress"; confirmationSpeed: OnchainConfirmationSpeed } | { type: "bolt11Invoice"; preferSpark: boolean; completionTimeoutSecs?: number } | { type: "sparkAddress"; htlcOptions?: SparkHtlcOptions };
552
557
 
553
558
  export interface Payment {
554
559
  id: string;
@@ -575,7 +580,11 @@ export interface LnurlPayInfo {
575
580
  rawSuccessAction?: SuccessAction;
576
581
  }
577
582
 
578
- export type OnchainConfirmationSpeed = "fast" | "medium" | "slow";
583
+ export interface PrepareSendPaymentResponse {
584
+ paymentMethod: SendPaymentMethod;
585
+ amount: bigint;
586
+ tokenIdentifier?: string;
587
+ }
579
588
 
580
589
  export interface SparkHtlcDetails {
581
590
  paymentHash: string;
@@ -594,16 +603,8 @@ export interface Bip21Details {
594
603
  paymentMethods: InputType[];
595
604
  }
596
605
 
597
- export interface ListPaymentsRequest {
598
- typeFilter?: PaymentType[];
599
- statusFilter?: PaymentStatus[];
600
- assetFilter?: AssetFilter;
601
- sparkHtlcStatusFilter?: SparkHtlcStatus[];
602
- fromTimestamp?: number;
603
- toTimestamp?: number;
604
- offset?: number;
605
- limit?: number;
606
- sortAscending?: boolean;
606
+ export interface SendPaymentResponse {
607
+ payment: Payment;
607
608
  }
608
609
 
609
610
  export interface LightningAddressDetails {
@@ -611,12 +612,12 @@ export interface LightningAddressDetails {
611
612
  payRequest: LnurlPayRequestDetails;
612
613
  }
613
614
 
614
- export interface UpdateUserSettingsRequest {
615
- sparkPrivateModeEnabled?: boolean;
615
+ export interface UserSettings {
616
+ sparkPrivateModeEnabled: boolean;
616
617
  }
617
618
 
618
- export interface GetPaymentResponse {
619
- payment: Payment;
619
+ export interface GetPaymentRequest {
620
+ paymentId: string;
620
621
  }
621
622
 
622
623
  export interface Bolt11Invoice {
@@ -646,48 +647,49 @@ export interface Bip21Extra {
646
647
  value: string;
647
648
  }
648
649
 
649
- export interface FiatCurrency {
650
- id: string;
651
- info: CurrencyInfo;
650
+ export interface Rate {
651
+ coin: string;
652
+ value: number;
652
653
  }
653
654
 
654
655
  export type AesSuccessActionDataResult = { type: "decrypted"; data: AesSuccessActionDataDecrypted } | { type: "errorStatus"; reason: string };
655
656
 
656
- export type ReceivePaymentMethod = { type: "sparkAddress" } | { type: "sparkInvoice"; amount?: bigint; tokenIdentifier?: string; expiryTime?: number; description?: string; senderPublicKey?: string } | { type: "bitcoinAddress" } | { type: "bolt11Invoice"; description: string; amountSats?: number };
657
+ export interface SyncWalletResponse {}
657
658
 
658
- export interface RecordChange {
659
+ export interface UnversionedRecordChange {
659
660
  id: RecordId;
660
661
  schemaVersion: string;
661
662
  updatedFields: Map<string, string>;
662
- revision: number;
663
663
  }
664
664
 
665
665
  export interface ClaimDepositResponse {
666
666
  payment: Payment;
667
667
  }
668
668
 
669
- export interface PrepareLnurlPayRequest {
670
- amountSats: number;
671
- comment?: string;
672
- payRequest: LnurlPayRequestDetails;
673
- validateSuccessActionUrl?: boolean;
669
+ export interface ReceivePaymentResponse {
670
+ paymentRequest: string;
671
+ fee: bigint;
674
672
  }
675
673
 
676
- export interface LocaleOverrides {
677
- locale: string;
674
+ export interface CurrencyInfo {
675
+ name: string;
676
+ fractionSize: number;
678
677
  spacing?: number;
679
- symbol: Symbol;
680
- }
681
-
682
- export interface GetInfoResponse {
683
- balanceSats: number;
684
- tokenBalances: Map<string, TokenBalance>;
678
+ symbol?: Symbol;
679
+ uniqSymbol?: Symbol;
680
+ localizedName: LocalizedName[];
681
+ localeOverrides: LocaleOverrides[];
685
682
  }
686
683
 
687
684
  export interface GetInfoRequest {
688
685
  ensureSynced?: boolean;
689
686
  }
690
687
 
688
+ export interface Credentials {
689
+ username: string;
690
+ password: string;
691
+ }
692
+
691
693
  export interface ConnectRequest {
692
694
  config: Config;
693
695
  seed: Seed;
@@ -699,7 +701,7 @@ export type SuccessAction = { type: "aes"; data: AesSuccessActionData } | { type
699
701
  export interface ClaimDepositRequest {
700
702
  txid: string;
701
703
  vout: number;
702
- maxFee?: Fee;
704
+ maxFee?: MaxFee;
703
705
  }
704
706
 
705
707
  export interface FreezeIssuerTokenResponse {