@breeztech/breez-sdk-spark-react-native 0.3.5-rc1 → 0.4.0-dev3

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.
Files changed (50) hide show
  1. package/android/CMakeLists.txt +0 -1
  2. package/cpp/breeztech-breez-sdk-spark-react-native.cpp +0 -2
  3. package/cpp/generated/breez_sdk_spark.cpp +4802 -907
  4. package/cpp/generated/breez_sdk_spark.hpp +175 -10
  5. package/lib/commonjs/generated/breez_sdk_spark-ffi.js.map +1 -1
  6. package/lib/commonjs/generated/breez_sdk_spark.js +1240 -7403
  7. package/lib/commonjs/generated/breez_sdk_spark.js.map +1 -1
  8. package/lib/commonjs/index.js +0 -14
  9. package/lib/commonjs/index.js.map +1 -1
  10. package/lib/module/generated/breez_sdk_spark-ffi.js.map +1 -1
  11. package/lib/module/generated/breez_sdk_spark.js +1241 -7387
  12. package/lib/module/generated/breez_sdk_spark.js.map +1 -1
  13. package/lib/module/index.js +0 -4
  14. package/lib/module/index.js.map +1 -1
  15. package/lib/typescript/commonjs/src/generated/breez_sdk_spark-ffi.d.ts +90 -5
  16. package/lib/typescript/commonjs/src/generated/breez_sdk_spark-ffi.d.ts.map +1 -1
  17. package/lib/typescript/commonjs/src/generated/breez_sdk_spark.d.ts +5010 -1276
  18. package/lib/typescript/commonjs/src/generated/breez_sdk_spark.d.ts.map +1 -1
  19. package/lib/typescript/commonjs/src/index.d.ts +0 -3
  20. package/lib/typescript/commonjs/src/index.d.ts.map +1 -1
  21. package/lib/typescript/module/src/generated/breez_sdk_spark-ffi.d.ts +90 -5
  22. package/lib/typescript/module/src/generated/breez_sdk_spark-ffi.d.ts.map +1 -1
  23. package/lib/typescript/module/src/generated/breez_sdk_spark.d.ts +5010 -1276
  24. package/lib/typescript/module/src/generated/breez_sdk_spark.d.ts.map +1 -1
  25. package/lib/typescript/module/src/index.d.ts +0 -3
  26. package/lib/typescript/module/src/index.d.ts.map +1 -1
  27. package/package.json +1 -1
  28. package/src/generated/breez_sdk_spark-ffi.ts +255 -11
  29. package/src/generated/breez_sdk_spark.ts +14470 -7146
  30. package/src/index.tsx +0 -4
  31. package/cpp/generated/breez_sdk_common.cpp +0 -6758
  32. package/cpp/generated/breez_sdk_common.hpp +0 -372
  33. package/lib/commonjs/generated/breez_sdk_common-ffi.js +0 -44
  34. package/lib/commonjs/generated/breez_sdk_common-ffi.js.map +0 -1
  35. package/lib/commonjs/generated/breez_sdk_common.js +0 -4993
  36. package/lib/commonjs/generated/breez_sdk_common.js.map +0 -1
  37. package/lib/module/generated/breez_sdk_common-ffi.js +0 -43
  38. package/lib/module/generated/breez_sdk_common-ffi.js.map +0 -1
  39. package/lib/module/generated/breez_sdk_common.js +0 -4985
  40. package/lib/module/generated/breez_sdk_common.js.map +0 -1
  41. package/lib/typescript/commonjs/src/generated/breez_sdk_common-ffi.d.ts +0 -214
  42. package/lib/typescript/commonjs/src/generated/breez_sdk_common-ffi.d.ts.map +0 -1
  43. package/lib/typescript/commonjs/src/generated/breez_sdk_common.d.ts +0 -3720
  44. package/lib/typescript/commonjs/src/generated/breez_sdk_common.d.ts.map +0 -1
  45. package/lib/typescript/module/src/generated/breez_sdk_common-ffi.d.ts +0 -214
  46. package/lib/typescript/module/src/generated/breez_sdk_common-ffi.d.ts.map +0 -1
  47. package/lib/typescript/module/src/generated/breez_sdk_common.d.ts +0 -3720
  48. package/lib/typescript/module/src/generated/breez_sdk_common.d.ts.map +0 -1
  49. package/src/generated/breez_sdk_common-ffi.ts +0 -566
  50. package/src/generated/breez_sdk_common.ts +0 -7412
@@ -1,3720 +0,0 @@
1
- import { type UniffiByteArray, type UniffiRustArcPtr, type UnsafeMutableRawPointer, FfiConverterObjectWithCallbacks, RustBuffer, UniffiAbstractObject, destructorGuardSymbol, pointerLiteralSymbol, uniffiTypeNameSymbol } from 'uniffi-bindgen-react-native';
2
- /**
3
- * Payload of the AES success action, as received from the LNURL endpoint
4
- *
5
- * See [`AesSuccessActionDataDecrypted`] for a similar wrapper containing the decrypted payload
6
- */
7
- export type AesSuccessActionData = {
8
- /**
9
- * Contents description, up to 144 characters
10
- */
11
- description: string;
12
- /**
13
- * Base64, AES-encrypted data where encryption key is payment preimage, up to 4kb of characters
14
- */
15
- ciphertext: string;
16
- /**
17
- * Base64, initialization vector, exactly 24 characters
18
- */
19
- iv: string;
20
- };
21
- /**
22
- * Generated factory for {@link AesSuccessActionData} record objects.
23
- */
24
- export declare const AesSuccessActionData: Readonly<{
25
- /**
26
- * Create a frozen instance of {@link AesSuccessActionData}, with defaults specified
27
- * in Rust, in the {@link breez_sdk_common} crate.
28
- */
29
- create: (partial: Partial<AesSuccessActionData> & Required<Omit<AesSuccessActionData, never>>) => AesSuccessActionData;
30
- /**
31
- * Create a frozen instance of {@link AesSuccessActionData}, with defaults specified
32
- * in Rust, in the {@link breez_sdk_common} crate.
33
- */
34
- new: (partial: Partial<AesSuccessActionData> & Required<Omit<AesSuccessActionData, never>>) => AesSuccessActionData;
35
- /**
36
- * Defaults specified in the {@link breez_sdk_common} crate.
37
- */
38
- defaults: () => Partial<AesSuccessActionData>;
39
- }>;
40
- /**
41
- * Wrapper for the decrypted [`AesSuccessActionData`] payload
42
- */
43
- export type AesSuccessActionDataDecrypted = {
44
- /**
45
- * Contents description, up to 144 characters
46
- */
47
- description: string;
48
- /**
49
- * Decrypted content
50
- */
51
- plaintext: string;
52
- };
53
- /**
54
- * Generated factory for {@link AesSuccessActionDataDecrypted} record objects.
55
- */
56
- export declare const AesSuccessActionDataDecrypted: Readonly<{
57
- /**
58
- * Create a frozen instance of {@link AesSuccessActionDataDecrypted}, with defaults specified
59
- * in Rust, in the {@link breez_sdk_common} crate.
60
- */
61
- create: (partial: Partial<AesSuccessActionDataDecrypted> & Required<Omit<AesSuccessActionDataDecrypted, never>>) => AesSuccessActionDataDecrypted;
62
- /**
63
- * Create a frozen instance of {@link AesSuccessActionDataDecrypted}, with defaults specified
64
- * in Rust, in the {@link breez_sdk_common} crate.
65
- */
66
- new: (partial: Partial<AesSuccessActionDataDecrypted> & Required<Omit<AesSuccessActionDataDecrypted, never>>) => AesSuccessActionDataDecrypted;
67
- /**
68
- * Defaults specified in the {@link breez_sdk_common} crate.
69
- */
70
- defaults: () => Partial<AesSuccessActionDataDecrypted>;
71
- }>;
72
- export type Bip21Details = {
73
- amountSat: /*u64*/ bigint | undefined;
74
- assetId: string | undefined;
75
- uri: string;
76
- extras: Array<Bip21Extra>;
77
- label: string | undefined;
78
- message: string | undefined;
79
- paymentMethods: Array<InputType>;
80
- };
81
- /**
82
- * Generated factory for {@link Bip21Details} record objects.
83
- */
84
- export declare const Bip21Details: Readonly<{
85
- /**
86
- * Create a frozen instance of {@link Bip21Details}, with defaults specified
87
- * in Rust, in the {@link breez_sdk_common} crate.
88
- */
89
- create: (partial: Partial<Bip21Details> & Required<Omit<Bip21Details, never>>) => Bip21Details;
90
- /**
91
- * Create a frozen instance of {@link Bip21Details}, with defaults specified
92
- * in Rust, in the {@link breez_sdk_common} crate.
93
- */
94
- new: (partial: Partial<Bip21Details> & Required<Omit<Bip21Details, never>>) => Bip21Details;
95
- /**
96
- * Defaults specified in the {@link breez_sdk_common} crate.
97
- */
98
- defaults: () => Partial<Bip21Details>;
99
- }>;
100
- export type Bip21Extra = {
101
- key: string;
102
- value: string;
103
- };
104
- /**
105
- * Generated factory for {@link Bip21Extra} record objects.
106
- */
107
- export declare const Bip21Extra: Readonly<{
108
- /**
109
- * Create a frozen instance of {@link Bip21Extra}, with defaults specified
110
- * in Rust, in the {@link breez_sdk_common} crate.
111
- */
112
- create: (partial: Partial<Bip21Extra> & Required<Omit<Bip21Extra, never>>) => Bip21Extra;
113
- /**
114
- * Create a frozen instance of {@link Bip21Extra}, with defaults specified
115
- * in Rust, in the {@link breez_sdk_common} crate.
116
- */
117
- new: (partial: Partial<Bip21Extra> & Required<Omit<Bip21Extra, never>>) => Bip21Extra;
118
- /**
119
- * Defaults specified in the {@link breez_sdk_common} crate.
120
- */
121
- defaults: () => Partial<Bip21Extra>;
122
- }>;
123
- export type BitcoinAddressDetails = {
124
- address: string;
125
- network: BitcoinNetwork;
126
- source: PaymentRequestSource;
127
- };
128
- /**
129
- * Generated factory for {@link BitcoinAddressDetails} record objects.
130
- */
131
- export declare const BitcoinAddressDetails: Readonly<{
132
- /**
133
- * Create a frozen instance of {@link BitcoinAddressDetails}, with defaults specified
134
- * in Rust, in the {@link breez_sdk_common} crate.
135
- */
136
- create: (partial: Partial<BitcoinAddressDetails> & Required<Omit<BitcoinAddressDetails, never>>) => BitcoinAddressDetails;
137
- /**
138
- * Create a frozen instance of {@link BitcoinAddressDetails}, with defaults specified
139
- * in Rust, in the {@link breez_sdk_common} crate.
140
- */
141
- new: (partial: Partial<BitcoinAddressDetails> & Required<Omit<BitcoinAddressDetails, never>>) => BitcoinAddressDetails;
142
- /**
143
- * Defaults specified in the {@link breez_sdk_common} crate.
144
- */
145
- defaults: () => Partial<BitcoinAddressDetails>;
146
- }>;
147
- export type Bolt11Invoice = {
148
- bolt11: string;
149
- source: PaymentRequestSource;
150
- };
151
- /**
152
- * Generated factory for {@link Bolt11Invoice} record objects.
153
- */
154
- export declare const Bolt11Invoice: Readonly<{
155
- /**
156
- * Create a frozen instance of {@link Bolt11Invoice}, with defaults specified
157
- * in Rust, in the {@link breez_sdk_common} crate.
158
- */
159
- create: (partial: Partial<Bolt11Invoice> & Required<Omit<Bolt11Invoice, never>>) => Bolt11Invoice;
160
- /**
161
- * Create a frozen instance of {@link Bolt11Invoice}, with defaults specified
162
- * in Rust, in the {@link breez_sdk_common} crate.
163
- */
164
- new: (partial: Partial<Bolt11Invoice> & Required<Omit<Bolt11Invoice, never>>) => Bolt11Invoice;
165
- /**
166
- * Defaults specified in the {@link breez_sdk_common} crate.
167
- */
168
- defaults: () => Partial<Bolt11Invoice>;
169
- }>;
170
- export type Bolt11InvoiceDetails = {
171
- amountMsat: /*u64*/ bigint | undefined;
172
- description: string | undefined;
173
- descriptionHash: string | undefined;
174
- expiry: bigint;
175
- invoice: Bolt11Invoice;
176
- minFinalCltvExpiryDelta: bigint;
177
- network: BitcoinNetwork;
178
- payeePubkey: string;
179
- paymentHash: string;
180
- paymentSecret: string;
181
- routingHints: Array<Bolt11RouteHint>;
182
- timestamp: bigint;
183
- };
184
- /**
185
- * Generated factory for {@link Bolt11InvoiceDetails} record objects.
186
- */
187
- export declare const Bolt11InvoiceDetails: Readonly<{
188
- /**
189
- * Create a frozen instance of {@link Bolt11InvoiceDetails}, with defaults specified
190
- * in Rust, in the {@link breez_sdk_common} crate.
191
- */
192
- create: (partial: Partial<Bolt11InvoiceDetails> & Required<Omit<Bolt11InvoiceDetails, never>>) => Bolt11InvoiceDetails;
193
- /**
194
- * Create a frozen instance of {@link Bolt11InvoiceDetails}, with defaults specified
195
- * in Rust, in the {@link breez_sdk_common} crate.
196
- */
197
- new: (partial: Partial<Bolt11InvoiceDetails> & Required<Omit<Bolt11InvoiceDetails, never>>) => Bolt11InvoiceDetails;
198
- /**
199
- * Defaults specified in the {@link breez_sdk_common} crate.
200
- */
201
- defaults: () => Partial<Bolt11InvoiceDetails>;
202
- }>;
203
- export type Bolt11RouteHint = {
204
- hops: Array<Bolt11RouteHintHop>;
205
- };
206
- /**
207
- * Generated factory for {@link Bolt11RouteHint} record objects.
208
- */
209
- export declare const Bolt11RouteHint: Readonly<{
210
- /**
211
- * Create a frozen instance of {@link Bolt11RouteHint}, with defaults specified
212
- * in Rust, in the {@link breez_sdk_common} crate.
213
- */
214
- create: (partial: Partial<Bolt11RouteHint> & Required<Omit<Bolt11RouteHint, never>>) => Bolt11RouteHint;
215
- /**
216
- * Create a frozen instance of {@link Bolt11RouteHint}, with defaults specified
217
- * in Rust, in the {@link breez_sdk_common} crate.
218
- */
219
- new: (partial: Partial<Bolt11RouteHint> & Required<Omit<Bolt11RouteHint, never>>) => Bolt11RouteHint;
220
- /**
221
- * Defaults specified in the {@link breez_sdk_common} crate.
222
- */
223
- defaults: () => Partial<Bolt11RouteHint>;
224
- }>;
225
- export type Bolt11RouteHintHop = {
226
- /**
227
- * The `node_id` of the non-target end of the route
228
- */
229
- srcNodeId: string;
230
- /**
231
- * The `short_channel_id` of this channel
232
- */
233
- shortChannelId: string;
234
- /**
235
- * The fees which must be paid to use this channel
236
- */
237
- feesBaseMsat: number;
238
- feesProportionalMillionths: number;
239
- /**
240
- * The difference in CLTV values between this node and the next node.
241
- */
242
- cltvExpiryDelta: number;
243
- /**
244
- * The minimum value, in msat, which must be relayed to the next hop.
245
- */
246
- htlcMinimumMsat: /*u64*/ bigint | undefined;
247
- /**
248
- * The maximum value in msat available for routing with a single HTLC.
249
- */
250
- htlcMaximumMsat: /*u64*/ bigint | undefined;
251
- };
252
- /**
253
- * Generated factory for {@link Bolt11RouteHintHop} record objects.
254
- */
255
- export declare const Bolt11RouteHintHop: Readonly<{
256
- /**
257
- * Create a frozen instance of {@link Bolt11RouteHintHop}, with defaults specified
258
- * in Rust, in the {@link breez_sdk_common} crate.
259
- */
260
- create: (partial: Partial<Bolt11RouteHintHop> & Required<Omit<Bolt11RouteHintHop, never>>) => Bolt11RouteHintHop;
261
- /**
262
- * Create a frozen instance of {@link Bolt11RouteHintHop}, with defaults specified
263
- * in Rust, in the {@link breez_sdk_common} crate.
264
- */
265
- new: (partial: Partial<Bolt11RouteHintHop> & Required<Omit<Bolt11RouteHintHop, never>>) => Bolt11RouteHintHop;
266
- /**
267
- * Defaults specified in the {@link breez_sdk_common} crate.
268
- */
269
- defaults: () => Partial<Bolt11RouteHintHop>;
270
- }>;
271
- export type Bolt12Invoice = {
272
- invoice: string;
273
- source: PaymentRequestSource;
274
- };
275
- /**
276
- * Generated factory for {@link Bolt12Invoice} record objects.
277
- */
278
- export declare const Bolt12Invoice: Readonly<{
279
- /**
280
- * Create a frozen instance of {@link Bolt12Invoice}, with defaults specified
281
- * in Rust, in the {@link breez_sdk_common} crate.
282
- */
283
- create: (partial: Partial<Bolt12Invoice> & Required<Omit<Bolt12Invoice, never>>) => Bolt12Invoice;
284
- /**
285
- * Create a frozen instance of {@link Bolt12Invoice}, with defaults specified
286
- * in Rust, in the {@link breez_sdk_common} crate.
287
- */
288
- new: (partial: Partial<Bolt12Invoice> & Required<Omit<Bolt12Invoice, never>>) => Bolt12Invoice;
289
- /**
290
- * Defaults specified in the {@link breez_sdk_common} crate.
291
- */
292
- defaults: () => Partial<Bolt12Invoice>;
293
- }>;
294
- export type Bolt12InvoiceDetails = {
295
- amountMsat: bigint;
296
- invoice: Bolt12Invoice;
297
- };
298
- /**
299
- * Generated factory for {@link Bolt12InvoiceDetails} record objects.
300
- */
301
- export declare const Bolt12InvoiceDetails: Readonly<{
302
- /**
303
- * Create a frozen instance of {@link Bolt12InvoiceDetails}, with defaults specified
304
- * in Rust, in the {@link breez_sdk_common} crate.
305
- */
306
- create: (partial: Partial<Bolt12InvoiceDetails> & Required<Omit<Bolt12InvoiceDetails, never>>) => Bolt12InvoiceDetails;
307
- /**
308
- * Create a frozen instance of {@link Bolt12InvoiceDetails}, with defaults specified
309
- * in Rust, in the {@link breez_sdk_common} crate.
310
- */
311
- new: (partial: Partial<Bolt12InvoiceDetails> & Required<Omit<Bolt12InvoiceDetails, never>>) => Bolt12InvoiceDetails;
312
- /**
313
- * Defaults specified in the {@link breez_sdk_common} crate.
314
- */
315
- defaults: () => Partial<Bolt12InvoiceDetails>;
316
- }>;
317
- export type Bolt12InvoiceRequestDetails = {};
318
- /**
319
- * Generated factory for {@link Bolt12InvoiceRequestDetails} record objects.
320
- */
321
- export declare const Bolt12InvoiceRequestDetails: Readonly<{
322
- /**
323
- * Create a frozen instance of {@link Bolt12InvoiceRequestDetails}, with defaults specified
324
- * in Rust, in the {@link breez_sdk_common} crate.
325
- */
326
- create: (partial: Partial<Bolt12InvoiceRequestDetails> & Required<Omit<Bolt12InvoiceRequestDetails, never>>) => Bolt12InvoiceRequestDetails;
327
- /**
328
- * Create a frozen instance of {@link Bolt12InvoiceRequestDetails}, with defaults specified
329
- * in Rust, in the {@link breez_sdk_common} crate.
330
- */
331
- new: (partial: Partial<Bolt12InvoiceRequestDetails> & Required<Omit<Bolt12InvoiceRequestDetails, never>>) => Bolt12InvoiceRequestDetails;
332
- /**
333
- * Defaults specified in the {@link breez_sdk_common} crate.
334
- */
335
- defaults: () => Partial<Bolt12InvoiceRequestDetails>;
336
- }>;
337
- export type Bolt12Offer = {
338
- offer: string;
339
- source: PaymentRequestSource;
340
- };
341
- /**
342
- * Generated factory for {@link Bolt12Offer} record objects.
343
- */
344
- export declare const Bolt12Offer: Readonly<{
345
- /**
346
- * Create a frozen instance of {@link Bolt12Offer}, with defaults specified
347
- * in Rust, in the {@link breez_sdk_common} crate.
348
- */
349
- create: (partial: Partial<Bolt12Offer> & Required<Omit<Bolt12Offer, never>>) => Bolt12Offer;
350
- /**
351
- * Create a frozen instance of {@link Bolt12Offer}, with defaults specified
352
- * in Rust, in the {@link breez_sdk_common} crate.
353
- */
354
- new: (partial: Partial<Bolt12Offer> & Required<Omit<Bolt12Offer, never>>) => Bolt12Offer;
355
- /**
356
- * Defaults specified in the {@link breez_sdk_common} crate.
357
- */
358
- defaults: () => Partial<Bolt12Offer>;
359
- }>;
360
- export type Bolt12OfferBlindedPath = {
361
- blindedHops: Array<string>;
362
- };
363
- /**
364
- * Generated factory for {@link Bolt12OfferBlindedPath} record objects.
365
- */
366
- export declare const Bolt12OfferBlindedPath: Readonly<{
367
- /**
368
- * Create a frozen instance of {@link Bolt12OfferBlindedPath}, with defaults specified
369
- * in Rust, in the {@link breez_sdk_common} crate.
370
- */
371
- create: (partial: Partial<Bolt12OfferBlindedPath> & Required<Omit<Bolt12OfferBlindedPath, never>>) => Bolt12OfferBlindedPath;
372
- /**
373
- * Create a frozen instance of {@link Bolt12OfferBlindedPath}, with defaults specified
374
- * in Rust, in the {@link breez_sdk_common} crate.
375
- */
376
- new: (partial: Partial<Bolt12OfferBlindedPath> & Required<Omit<Bolt12OfferBlindedPath, never>>) => Bolt12OfferBlindedPath;
377
- /**
378
- * Defaults specified in the {@link breez_sdk_common} crate.
379
- */
380
- defaults: () => Partial<Bolt12OfferBlindedPath>;
381
- }>;
382
- export type Bolt12OfferDetails = {
383
- absoluteExpiry: /*u64*/ bigint | undefined;
384
- chains: Array<string>;
385
- description: string | undefined;
386
- issuer: string | undefined;
387
- minAmount: Amount | undefined;
388
- offer: Bolt12Offer;
389
- paths: Array<Bolt12OfferBlindedPath>;
390
- signingPubkey: string | undefined;
391
- };
392
- /**
393
- * Generated factory for {@link Bolt12OfferDetails} record objects.
394
- */
395
- export declare const Bolt12OfferDetails: Readonly<{
396
- /**
397
- * Create a frozen instance of {@link Bolt12OfferDetails}, with defaults specified
398
- * in Rust, in the {@link breez_sdk_common} crate.
399
- */
400
- create: (partial: Partial<Bolt12OfferDetails> & Required<Omit<Bolt12OfferDetails, never>>) => Bolt12OfferDetails;
401
- /**
402
- * Create a frozen instance of {@link Bolt12OfferDetails}, with defaults specified
403
- * in Rust, in the {@link breez_sdk_common} crate.
404
- */
405
- new: (partial: Partial<Bolt12OfferDetails> & Required<Omit<Bolt12OfferDetails, never>>) => Bolt12OfferDetails;
406
- /**
407
- * Defaults specified in the {@link breez_sdk_common} crate.
408
- */
409
- defaults: () => Partial<Bolt12OfferDetails>;
410
- }>;
411
- /**
412
- * Details about a supported currency in the fiat rate feed
413
- */
414
- export type CurrencyInfo = {
415
- name: string;
416
- fractionSize: number;
417
- spacing: /*u32*/ number | undefined;
418
- symbol: Symbol | undefined;
419
- uniqSymbol: Symbol | undefined;
420
- localizedName: Array<LocalizedName>;
421
- localeOverrides: Array<LocaleOverrides>;
422
- };
423
- /**
424
- * Generated factory for {@link CurrencyInfo} record objects.
425
- */
426
- export declare const CurrencyInfo: Readonly<{
427
- /**
428
- * Create a frozen instance of {@link CurrencyInfo}, with defaults specified
429
- * in Rust, in the {@link breez_sdk_common} crate.
430
- */
431
- create: (partial: Partial<CurrencyInfo> & Required<Omit<CurrencyInfo, never>>) => CurrencyInfo;
432
- /**
433
- * Create a frozen instance of {@link CurrencyInfo}, with defaults specified
434
- * in Rust, in the {@link breez_sdk_common} crate.
435
- */
436
- new: (partial: Partial<CurrencyInfo> & Required<Omit<CurrencyInfo, never>>) => CurrencyInfo;
437
- /**
438
- * Defaults specified in the {@link breez_sdk_common} crate.
439
- */
440
- defaults: () => Partial<CurrencyInfo>;
441
- }>;
442
- /**
443
- * Configuration for an external input parser
444
- */
445
- export type ExternalInputParser = {
446
- /**
447
- * An arbitrary parser provider id
448
- */
449
- providerId: string;
450
- /**
451
- * The external parser will be used when an input conforms to this regex
452
- */
453
- inputRegex: string;
454
- /**
455
- * The URL of the parser containing a placeholder `<input>` that will be replaced with the
456
- * input to be parsed. The input is sanitized using percent encoding.
457
- */
458
- parserUrl: string;
459
- };
460
- /**
461
- * Generated factory for {@link ExternalInputParser} record objects.
462
- */
463
- export declare const ExternalInputParser: Readonly<{
464
- /**
465
- * Create a frozen instance of {@link ExternalInputParser}, with defaults specified
466
- * in Rust, in the {@link breez_sdk_common} crate.
467
- */
468
- create: (partial: Partial<ExternalInputParser> & Required<Omit<ExternalInputParser, never>>) => ExternalInputParser;
469
- /**
470
- * Create a frozen instance of {@link ExternalInputParser}, with defaults specified
471
- * in Rust, in the {@link breez_sdk_common} crate.
472
- */
473
- new: (partial: Partial<ExternalInputParser> & Required<Omit<ExternalInputParser, never>>) => ExternalInputParser;
474
- /**
475
- * Defaults specified in the {@link breez_sdk_common} crate.
476
- */
477
- defaults: () => Partial<ExternalInputParser>;
478
- }>;
479
- /**
480
- * Wrapper around the [`CurrencyInfo`] of a fiat currency
481
- */
482
- export type FiatCurrency = {
483
- id: string;
484
- info: CurrencyInfo;
485
- };
486
- /**
487
- * Generated factory for {@link FiatCurrency} record objects.
488
- */
489
- export declare const FiatCurrency: Readonly<{
490
- /**
491
- * Create a frozen instance of {@link FiatCurrency}, with defaults specified
492
- * in Rust, in the {@link breez_sdk_common} crate.
493
- */
494
- create: (partial: Partial<FiatCurrency> & Required<Omit<FiatCurrency, never>>) => FiatCurrency;
495
- /**
496
- * Create a frozen instance of {@link FiatCurrency}, with defaults specified
497
- * in Rust, in the {@link breez_sdk_common} crate.
498
- */
499
- new: (partial: Partial<FiatCurrency> & Required<Omit<FiatCurrency, never>>) => FiatCurrency;
500
- /**
501
- * Defaults specified in the {@link breez_sdk_common} crate.
502
- */
503
- defaults: () => Partial<FiatCurrency>;
504
- }>;
505
- export type IncomingChange = {
506
- newState: Record;
507
- oldState: Record | undefined;
508
- };
509
- /**
510
- * Generated factory for {@link IncomingChange} record objects.
511
- */
512
- export declare const IncomingChange: Readonly<{
513
- /**
514
- * Create a frozen instance of {@link IncomingChange}, with defaults specified
515
- * in Rust, in the {@link breez_sdk_common} crate.
516
- */
517
- create: (partial: Partial<IncomingChange> & Required<Omit<IncomingChange, never>>) => IncomingChange;
518
- /**
519
- * Create a frozen instance of {@link IncomingChange}, with defaults specified
520
- * in Rust, in the {@link breez_sdk_common} crate.
521
- */
522
- new: (partial: Partial<IncomingChange> & Required<Omit<IncomingChange, never>>) => IncomingChange;
523
- /**
524
- * Defaults specified in the {@link breez_sdk_common} crate.
525
- */
526
- defaults: () => Partial<IncomingChange>;
527
- }>;
528
- export type LightningAddressDetails = {
529
- address: string;
530
- payRequest: LnurlPayRequestDetails;
531
- };
532
- /**
533
- * Generated factory for {@link LightningAddressDetails} record objects.
534
- */
535
- export declare const LightningAddressDetails: Readonly<{
536
- /**
537
- * Create a frozen instance of {@link LightningAddressDetails}, with defaults specified
538
- * in Rust, in the {@link breez_sdk_common} crate.
539
- */
540
- create: (partial: Partial<LightningAddressDetails> & Required<Omit<LightningAddressDetails, never>>) => LightningAddressDetails;
541
- /**
542
- * Create a frozen instance of {@link LightningAddressDetails}, with defaults specified
543
- * in Rust, in the {@link breez_sdk_common} crate.
544
- */
545
- new: (partial: Partial<LightningAddressDetails> & Required<Omit<LightningAddressDetails, never>>) => LightningAddressDetails;
546
- /**
547
- * Defaults specified in the {@link breez_sdk_common} crate.
548
- */
549
- defaults: () => Partial<LightningAddressDetails>;
550
- }>;
551
- /**
552
- * Wrapped in a [`LnurlAuth`], this is the result of [`parse`] when given a LNURL-auth endpoint.
553
- *
554
- * It represents the endpoint's parameters for the LNURL workflow.
555
- *
556
- * See <https://github.com/lnurl/luds/blob/luds/04.md>
557
- */
558
- export type LnurlAuthRequestDetails = {
559
- /**
560
- * Hex encoded 32 bytes of challenge
561
- */
562
- k1: string;
563
- /**
564
- * When available, one of: register, login, link, auth
565
- */
566
- action: string | undefined;
567
- /**
568
- * Indicates the domain of the LNURL-auth service, to be shown to the user when asking for
569
- * auth confirmation, as per LUD-04 spec.
570
- */
571
- domain: string;
572
- /**
573
- * Indicates the URL of the LNURL-auth service, including the query arguments. This will be
574
- * extended with the signed challenge and the linking key, then called in the second step of the workflow.
575
- */
576
- url: string;
577
- };
578
- /**
579
- * Generated factory for {@link LnurlAuthRequestDetails} record objects.
580
- */
581
- export declare const LnurlAuthRequestDetails: Readonly<{
582
- /**
583
- * Create a frozen instance of {@link LnurlAuthRequestDetails}, with defaults specified
584
- * in Rust, in the {@link breez_sdk_common} crate.
585
- */
586
- create: (partial: Partial<LnurlAuthRequestDetails> & Required<Omit<LnurlAuthRequestDetails, never>>) => LnurlAuthRequestDetails;
587
- /**
588
- * Create a frozen instance of {@link LnurlAuthRequestDetails}, with defaults specified
589
- * in Rust, in the {@link breez_sdk_common} crate.
590
- */
591
- new: (partial: Partial<LnurlAuthRequestDetails> & Required<Omit<LnurlAuthRequestDetails, never>>) => LnurlAuthRequestDetails;
592
- /**
593
- * Defaults specified in the {@link breez_sdk_common} crate.
594
- */
595
- defaults: () => Partial<LnurlAuthRequestDetails>;
596
- }>;
597
- /**
598
- * Wrapped in a [`LnUrlError`], this represents a LNURL-endpoint error.
599
- */
600
- export type LnurlErrorDetails = {
601
- reason: string;
602
- };
603
- /**
604
- * Generated factory for {@link LnurlErrorDetails} record objects.
605
- */
606
- export declare const LnurlErrorDetails: Readonly<{
607
- /**
608
- * Create a frozen instance of {@link LnurlErrorDetails}, with defaults specified
609
- * in Rust, in the {@link breez_sdk_common} crate.
610
- */
611
- create: (partial: Partial<LnurlErrorDetails> & Required<Omit<LnurlErrorDetails, never>>) => LnurlErrorDetails;
612
- /**
613
- * Create a frozen instance of {@link LnurlErrorDetails}, with defaults specified
614
- * in Rust, in the {@link breez_sdk_common} crate.
615
- */
616
- new: (partial: Partial<LnurlErrorDetails> & Required<Omit<LnurlErrorDetails, never>>) => LnurlErrorDetails;
617
- /**
618
- * Defaults specified in the {@link breez_sdk_common} crate.
619
- */
620
- defaults: () => Partial<LnurlErrorDetails>;
621
- }>;
622
- export type LnurlPayRequestDetails = {
623
- callback: string;
624
- /**
625
- * The minimum amount, in millisats, that this LNURL-pay endpoint accepts
626
- */
627
- minSendable: bigint;
628
- /**
629
- * The maximum amount, in millisats, that this LNURL-pay endpoint accepts
630
- */
631
- maxSendable: bigint;
632
- /**
633
- * As per LUD-06, `metadata` is a raw string (e.g. a json representation of the inner map).
634
- * Use `metadata_vec()` to get the parsed items.
635
- */
636
- metadataStr: string;
637
- /**
638
- * The comment length accepted by this endpoint
639
- *
640
- * See <https://github.com/lnurl/luds/blob/luds/12.md>
641
- */
642
- commentAllowed: number;
643
- /**
644
- * Indicates the domain of the LNURL-pay service, to be shown to the user when asking for
645
- * payment input, as per LUD-06 spec.
646
- *
647
- * Note: this is not the domain of the callback, but the domain of the LNURL-pay endpoint.
648
- */
649
- domain: string;
650
- url: string;
651
- /**
652
- * Optional lightning address if that was used to resolve the lnurl.
653
- */
654
- address: string | undefined;
655
- /**
656
- * Value indicating whether the recipient supports Nostr Zaps through NIP-57.
657
- *
658
- * See <https://github.com/nostr-protocol/nips/blob/master/57.md>
659
- */
660
- allowsNostr: boolean | undefined;
661
- /**
662
- * Optional recipient's lnurl provider's Nostr pubkey for NIP-57. If it exists it should be a
663
- * valid BIP 340 public key in hex.
664
- *
665
- * See <https://github.com/nostr-protocol/nips/blob/master/57.md>
666
- * See <https://github.com/bitcoin/bips/blob/master/bip-0340.mediawiki>
667
- */
668
- nostrPubkey: string | undefined;
669
- };
670
- /**
671
- * Generated factory for {@link LnurlPayRequestDetails} record objects.
672
- */
673
- export declare const LnurlPayRequestDetails: Readonly<{
674
- /**
675
- * Create a frozen instance of {@link LnurlPayRequestDetails}, with defaults specified
676
- * in Rust, in the {@link breez_sdk_common} crate.
677
- */
678
- create: (partial: Partial<LnurlPayRequestDetails> & Required<Omit<LnurlPayRequestDetails, never>>) => LnurlPayRequestDetails;
679
- /**
680
- * Create a frozen instance of {@link LnurlPayRequestDetails}, with defaults specified
681
- * in Rust, in the {@link breez_sdk_common} crate.
682
- */
683
- new: (partial: Partial<LnurlPayRequestDetails> & Required<Omit<LnurlPayRequestDetails, never>>) => LnurlPayRequestDetails;
684
- /**
685
- * Defaults specified in the {@link breez_sdk_common} crate.
686
- */
687
- defaults: () => Partial<LnurlPayRequestDetails>;
688
- }>;
689
- export type LnurlWithdrawRequestDetails = {
690
- callback: string;
691
- k1: string;
692
- defaultDescription: string;
693
- /**
694
- * The minimum amount, in millisats, that this LNURL-withdraw endpoint accepts
695
- */
696
- minWithdrawable: bigint;
697
- /**
698
- * The maximum amount, in millisats, that this LNURL-withdraw endpoint accepts
699
- */
700
- maxWithdrawable: bigint;
701
- };
702
- /**
703
- * Generated factory for {@link LnurlWithdrawRequestDetails} record objects.
704
- */
705
- export declare const LnurlWithdrawRequestDetails: Readonly<{
706
- /**
707
- * Create a frozen instance of {@link LnurlWithdrawRequestDetails}, with defaults specified
708
- * in Rust, in the {@link breez_sdk_common} crate.
709
- */
710
- create: (partial: Partial<LnurlWithdrawRequestDetails> & Required<Omit<LnurlWithdrawRequestDetails, never>>) => LnurlWithdrawRequestDetails;
711
- /**
712
- * Create a frozen instance of {@link LnurlWithdrawRequestDetails}, with defaults specified
713
- * in Rust, in the {@link breez_sdk_common} crate.
714
- */
715
- new: (partial: Partial<LnurlWithdrawRequestDetails> & Required<Omit<LnurlWithdrawRequestDetails, never>>) => LnurlWithdrawRequestDetails;
716
- /**
717
- * Defaults specified in the {@link breez_sdk_common} crate.
718
- */
719
- defaults: () => Partial<LnurlWithdrawRequestDetails>;
720
- }>;
721
- /**
722
- * Locale-specific settings for the representation of a currency
723
- */
724
- export type LocaleOverrides = {
725
- locale: string;
726
- spacing: /*u32*/ number | undefined;
727
- symbol: Symbol;
728
- };
729
- /**
730
- * Generated factory for {@link LocaleOverrides} record objects.
731
- */
732
- export declare const LocaleOverrides: Readonly<{
733
- /**
734
- * Create a frozen instance of {@link LocaleOverrides}, with defaults specified
735
- * in Rust, in the {@link breez_sdk_common} crate.
736
- */
737
- create: (partial: Partial<LocaleOverrides> & Required<Omit<LocaleOverrides, never>>) => LocaleOverrides;
738
- /**
739
- * Create a frozen instance of {@link LocaleOverrides}, with defaults specified
740
- * in Rust, in the {@link breez_sdk_common} crate.
741
- */
742
- new: (partial: Partial<LocaleOverrides> & Required<Omit<LocaleOverrides, never>>) => LocaleOverrides;
743
- /**
744
- * Defaults specified in the {@link breez_sdk_common} crate.
745
- */
746
- defaults: () => Partial<LocaleOverrides>;
747
- }>;
748
- /**
749
- * Localized name of a currency
750
- */
751
- export type LocalizedName = {
752
- locale: string;
753
- name: string;
754
- };
755
- /**
756
- * Generated factory for {@link LocalizedName} record objects.
757
- */
758
- export declare const LocalizedName: Readonly<{
759
- /**
760
- * Create a frozen instance of {@link LocalizedName}, with defaults specified
761
- * in Rust, in the {@link breez_sdk_common} crate.
762
- */
763
- create: (partial: Partial<LocalizedName> & Required<Omit<LocalizedName, never>>) => LocalizedName;
764
- /**
765
- * Create a frozen instance of {@link LocalizedName}, with defaults specified
766
- * in Rust, in the {@link breez_sdk_common} crate.
767
- */
768
- new: (partial: Partial<LocalizedName> & Required<Omit<LocalizedName, never>>) => LocalizedName;
769
- /**
770
- * Defaults specified in the {@link breez_sdk_common} crate.
771
- */
772
- defaults: () => Partial<LocalizedName>;
773
- }>;
774
- export type MessageSuccessActionData = {
775
- message: string;
776
- };
777
- /**
778
- * Generated factory for {@link MessageSuccessActionData} record objects.
779
- */
780
- export declare const MessageSuccessActionData: Readonly<{
781
- /**
782
- * Create a frozen instance of {@link MessageSuccessActionData}, with defaults specified
783
- * in Rust, in the {@link breez_sdk_common} crate.
784
- */
785
- create: (partial: Partial<MessageSuccessActionData> & Required<Omit<MessageSuccessActionData, never>>) => MessageSuccessActionData;
786
- /**
787
- * Create a frozen instance of {@link MessageSuccessActionData}, with defaults specified
788
- * in Rust, in the {@link breez_sdk_common} crate.
789
- */
790
- new: (partial: Partial<MessageSuccessActionData> & Required<Omit<MessageSuccessActionData, never>>) => MessageSuccessActionData;
791
- /**
792
- * Defaults specified in the {@link breez_sdk_common} crate.
793
- */
794
- defaults: () => Partial<MessageSuccessActionData>;
795
- }>;
796
- export type OutgoingChange = {
797
- change: RecordChange;
798
- parent: Record | undefined;
799
- };
800
- /**
801
- * Generated factory for {@link OutgoingChange} record objects.
802
- */
803
- export declare const OutgoingChange: Readonly<{
804
- /**
805
- * Create a frozen instance of {@link OutgoingChange}, with defaults specified
806
- * in Rust, in the {@link breez_sdk_common} crate.
807
- */
808
- create: (partial: Partial<OutgoingChange> & Required<Omit<OutgoingChange, never>>) => OutgoingChange;
809
- /**
810
- * Create a frozen instance of {@link OutgoingChange}, with defaults specified
811
- * in Rust, in the {@link breez_sdk_common} crate.
812
- */
813
- new: (partial: Partial<OutgoingChange> & Required<Omit<OutgoingChange, never>>) => OutgoingChange;
814
- /**
815
- * Defaults specified in the {@link breez_sdk_common} crate.
816
- */
817
- defaults: () => Partial<OutgoingChange>;
818
- }>;
819
- export type PaymentRequestSource = {
820
- bip21Uri: string | undefined;
821
- bip353Address: string | undefined;
822
- };
823
- /**
824
- * Generated factory for {@link PaymentRequestSource} record objects.
825
- */
826
- export declare const PaymentRequestSource: Readonly<{
827
- /**
828
- * Create a frozen instance of {@link PaymentRequestSource}, with defaults specified
829
- * in Rust, in the {@link breez_sdk_common} crate.
830
- */
831
- create: (partial: Partial<PaymentRequestSource> & Required<Omit<PaymentRequestSource, never>>) => PaymentRequestSource;
832
- /**
833
- * Create a frozen instance of {@link PaymentRequestSource}, with defaults specified
834
- * in Rust, in the {@link breez_sdk_common} crate.
835
- */
836
- new: (partial: Partial<PaymentRequestSource> & Required<Omit<PaymentRequestSource, never>>) => PaymentRequestSource;
837
- /**
838
- * Defaults specified in the {@link breez_sdk_common} crate.
839
- */
840
- defaults: () => Partial<PaymentRequestSource>;
841
- }>;
842
- /**
843
- * Denominator in an exchange rate
844
- */
845
- export type Rate = {
846
- coin: string;
847
- value: number;
848
- };
849
- /**
850
- * Generated factory for {@link Rate} record objects.
851
- */
852
- export declare const Rate: Readonly<{
853
- /**
854
- * Create a frozen instance of {@link Rate}, with defaults specified
855
- * in Rust, in the {@link breez_sdk_common} crate.
856
- */
857
- create: (partial: Partial<Rate> & Required<Omit<Rate, never>>) => Rate;
858
- /**
859
- * Create a frozen instance of {@link Rate}, with defaults specified
860
- * in Rust, in the {@link breez_sdk_common} crate.
861
- */
862
- new: (partial: Partial<Rate> & Required<Omit<Rate, never>>) => Rate;
863
- /**
864
- * Defaults specified in the {@link breez_sdk_common} crate.
865
- */
866
- defaults: () => Partial<Rate>;
867
- }>;
868
- export type Record = {
869
- id: RecordId;
870
- revision: bigint;
871
- schemaVersion: string;
872
- data: Map<string, string>;
873
- };
874
- /**
875
- * Generated factory for {@link Record} record objects.
876
- */
877
- export declare const Record: Readonly<{
878
- /**
879
- * Create a frozen instance of {@link Record}, with defaults specified
880
- * in Rust, in the {@link breez_sdk_common} crate.
881
- */
882
- create: (partial: Partial<Record> & Required<Omit<Record, never>>) => Record;
883
- /**
884
- * Create a frozen instance of {@link Record}, with defaults specified
885
- * in Rust, in the {@link breez_sdk_common} crate.
886
- */
887
- new: (partial: Partial<Record> & Required<Omit<Record, never>>) => Record;
888
- /**
889
- * Defaults specified in the {@link breez_sdk_common} crate.
890
- */
891
- defaults: () => Partial<Record>;
892
- }>;
893
- export type RecordChange = {
894
- id: RecordId;
895
- schemaVersion: string;
896
- updatedFields: Map<string, string>;
897
- revision: bigint;
898
- };
899
- /**
900
- * Generated factory for {@link RecordChange} record objects.
901
- */
902
- export declare const RecordChange: Readonly<{
903
- /**
904
- * Create a frozen instance of {@link RecordChange}, with defaults specified
905
- * in Rust, in the {@link breez_sdk_common} crate.
906
- */
907
- create: (partial: Partial<RecordChange> & Required<Omit<RecordChange, never>>) => RecordChange;
908
- /**
909
- * Create a frozen instance of {@link RecordChange}, with defaults specified
910
- * in Rust, in the {@link breez_sdk_common} crate.
911
- */
912
- new: (partial: Partial<RecordChange> & Required<Omit<RecordChange, never>>) => RecordChange;
913
- /**
914
- * Defaults specified in the {@link breez_sdk_common} crate.
915
- */
916
- defaults: () => Partial<RecordChange>;
917
- }>;
918
- export type RecordId = {
919
- type: string;
920
- dataId: string;
921
- };
922
- /**
923
- * Generated factory for {@link RecordId} record objects.
924
- */
925
- export declare const RecordId: Readonly<{
926
- /**
927
- * Create a frozen instance of {@link RecordId}, with defaults specified
928
- * in Rust, in the {@link breez_sdk_common} crate.
929
- */
930
- create: (partial: Partial<RecordId> & Required<Omit<RecordId, never>>) => RecordId;
931
- /**
932
- * Create a frozen instance of {@link RecordId}, with defaults specified
933
- * in Rust, in the {@link breez_sdk_common} crate.
934
- */
935
- new: (partial: Partial<RecordId> & Required<Omit<RecordId, never>>) => RecordId;
936
- /**
937
- * Defaults specified in the {@link breez_sdk_common} crate.
938
- */
939
- defaults: () => Partial<RecordId>;
940
- }>;
941
- export type RestResponse = {
942
- status: number;
943
- body: string;
944
- };
945
- /**
946
- * Generated factory for {@link RestResponse} record objects.
947
- */
948
- export declare const RestResponse: Readonly<{
949
- /**
950
- * Create a frozen instance of {@link RestResponse}, with defaults specified
951
- * in Rust, in the {@link breez_sdk_common} crate.
952
- */
953
- create: (partial: Partial<RestResponse> & Required<Omit<RestResponse, never>>) => RestResponse;
954
- /**
955
- * Create a frozen instance of {@link RestResponse}, with defaults specified
956
- * in Rust, in the {@link breez_sdk_common} crate.
957
- */
958
- new: (partial: Partial<RestResponse> & Required<Omit<RestResponse, never>>) => RestResponse;
959
- /**
960
- * Defaults specified in the {@link breez_sdk_common} crate.
961
- */
962
- defaults: () => Partial<RestResponse>;
963
- }>;
964
- export type SilentPaymentAddressDetails = {
965
- address: string;
966
- network: BitcoinNetwork;
967
- source: PaymentRequestSource;
968
- };
969
- /**
970
- * Generated factory for {@link SilentPaymentAddressDetails} record objects.
971
- */
972
- export declare const SilentPaymentAddressDetails: Readonly<{
973
- /**
974
- * Create a frozen instance of {@link SilentPaymentAddressDetails}, with defaults specified
975
- * in Rust, in the {@link breez_sdk_common} crate.
976
- */
977
- create: (partial: Partial<SilentPaymentAddressDetails> & Required<Omit<SilentPaymentAddressDetails, never>>) => SilentPaymentAddressDetails;
978
- /**
979
- * Create a frozen instance of {@link SilentPaymentAddressDetails}, with defaults specified
980
- * in Rust, in the {@link breez_sdk_common} crate.
981
- */
982
- new: (partial: Partial<SilentPaymentAddressDetails> & Required<Omit<SilentPaymentAddressDetails, never>>) => SilentPaymentAddressDetails;
983
- /**
984
- * Defaults specified in the {@link breez_sdk_common} crate.
985
- */
986
- defaults: () => Partial<SilentPaymentAddressDetails>;
987
- }>;
988
- export type SparkAddressDetails = {
989
- /**
990
- * The raw address string
991
- */
992
- address: string;
993
- /**
994
- * The identity public key of the address owner
995
- */
996
- identityPublicKey: string;
997
- network: BitcoinNetwork;
998
- source: PaymentRequestSource;
999
- };
1000
- /**
1001
- * Generated factory for {@link SparkAddressDetails} record objects.
1002
- */
1003
- export declare const SparkAddressDetails: Readonly<{
1004
- /**
1005
- * Create a frozen instance of {@link SparkAddressDetails}, with defaults specified
1006
- * in Rust, in the {@link breez_sdk_common} crate.
1007
- */
1008
- create: (partial: Partial<SparkAddressDetails> & Required<Omit<SparkAddressDetails, never>>) => SparkAddressDetails;
1009
- /**
1010
- * Create a frozen instance of {@link SparkAddressDetails}, with defaults specified
1011
- * in Rust, in the {@link breez_sdk_common} crate.
1012
- */
1013
- new: (partial: Partial<SparkAddressDetails> & Required<Omit<SparkAddressDetails, never>>) => SparkAddressDetails;
1014
- /**
1015
- * Defaults specified in the {@link breez_sdk_common} crate.
1016
- */
1017
- defaults: () => Partial<SparkAddressDetails>;
1018
- }>;
1019
- export type SparkInvoiceDetails = {
1020
- /**
1021
- * The raw invoice string
1022
- */
1023
- invoice: string;
1024
- /**
1025
- * The identity public key of the invoice issuer
1026
- */
1027
- identityPublicKey: string;
1028
- network: BitcoinNetwork;
1029
- /**
1030
- * Optional amount denominated in sats if `token_identifier` is absent, otherwise in the token base units
1031
- */
1032
- amount: CommonU128 | undefined;
1033
- /**
1034
- * The token identifier of the token payment. Absence indicates a Bitcoin payment.
1035
- */
1036
- tokenIdentifier: string | undefined;
1037
- /**
1038
- * Optional expiry time. If not provided, the invoice will never expire.
1039
- */
1040
- expiryTime: /*u64*/ bigint | undefined;
1041
- /**
1042
- * Optional description.
1043
- */
1044
- description: string | undefined;
1045
- /**
1046
- * If set, the invoice may only be fulfilled by a payer with this public key.
1047
- */
1048
- senderPublicKey: string | undefined;
1049
- };
1050
- /**
1051
- * Generated factory for {@link SparkInvoiceDetails} record objects.
1052
- */
1053
- export declare const SparkInvoiceDetails: Readonly<{
1054
- /**
1055
- * Create a frozen instance of {@link SparkInvoiceDetails}, with defaults specified
1056
- * in Rust, in the {@link breez_sdk_common} crate.
1057
- */
1058
- create: (partial: Partial<SparkInvoiceDetails> & Required<Omit<SparkInvoiceDetails, never>>) => SparkInvoiceDetails;
1059
- /**
1060
- * Create a frozen instance of {@link SparkInvoiceDetails}, with defaults specified
1061
- * in Rust, in the {@link breez_sdk_common} crate.
1062
- */
1063
- new: (partial: Partial<SparkInvoiceDetails> & Required<Omit<SparkInvoiceDetails, never>>) => SparkInvoiceDetails;
1064
- /**
1065
- * Defaults specified in the {@link breez_sdk_common} crate.
1066
- */
1067
- defaults: () => Partial<SparkInvoiceDetails>;
1068
- }>;
1069
- /**
1070
- * Settings for the symbol representation of a currency
1071
- */
1072
- export type Symbol = {
1073
- grapheme: string | undefined;
1074
- template: string | undefined;
1075
- rtl: boolean | undefined;
1076
- position: /*u32*/ number | undefined;
1077
- };
1078
- /**
1079
- * Generated factory for {@link Symbol} record objects.
1080
- */
1081
- export declare const Symbol: Readonly<{
1082
- /**
1083
- * Create a frozen instance of {@link Symbol}, with defaults specified
1084
- * in Rust, in the {@link breez_sdk_common} crate.
1085
- */
1086
- create: (partial: Partial<Symbol> & Required<Omit<Symbol, never>>) => Symbol;
1087
- /**
1088
- * Create a frozen instance of {@link Symbol}, with defaults specified
1089
- * in Rust, in the {@link breez_sdk_common} crate.
1090
- */
1091
- new: (partial: Partial<Symbol> & Required<Omit<Symbol, never>>) => Symbol;
1092
- /**
1093
- * Defaults specified in the {@link breez_sdk_common} crate.
1094
- */
1095
- defaults: () => Partial<Symbol>;
1096
- }>;
1097
- export type UnversionedRecordChange = {
1098
- id: RecordId;
1099
- schemaVersion: string;
1100
- updatedFields: Map<string, string>;
1101
- };
1102
- /**
1103
- * Generated factory for {@link UnversionedRecordChange} record objects.
1104
- */
1105
- export declare const UnversionedRecordChange: Readonly<{
1106
- /**
1107
- * Create a frozen instance of {@link UnversionedRecordChange}, with defaults specified
1108
- * in Rust, in the {@link breez_sdk_common} crate.
1109
- */
1110
- create: (partial: Partial<UnversionedRecordChange> & Required<Omit<UnversionedRecordChange, never>>) => UnversionedRecordChange;
1111
- /**
1112
- * Create a frozen instance of {@link UnversionedRecordChange}, with defaults specified
1113
- * in Rust, in the {@link breez_sdk_common} crate.
1114
- */
1115
- new: (partial: Partial<UnversionedRecordChange> & Required<Omit<UnversionedRecordChange, never>>) => UnversionedRecordChange;
1116
- /**
1117
- * Defaults specified in the {@link breez_sdk_common} crate.
1118
- */
1119
- defaults: () => Partial<UnversionedRecordChange>;
1120
- }>;
1121
- export type UrlSuccessActionData = {
1122
- /**
1123
- * Contents description, up to 144 characters
1124
- */
1125
- description: string;
1126
- /**
1127
- * URL of the success action
1128
- */
1129
- url: string;
1130
- /**
1131
- * Indicates the success URL domain matches the LNURL callback domain.
1132
- *
1133
- * See <https://github.com/lnurl/luds/blob/luds/09.md>
1134
- */
1135
- matchesCallbackDomain: boolean;
1136
- };
1137
- /**
1138
- * Generated factory for {@link UrlSuccessActionData} record objects.
1139
- */
1140
- export declare const UrlSuccessActionData: Readonly<{
1141
- /**
1142
- * Create a frozen instance of {@link UrlSuccessActionData}, with defaults specified
1143
- * in Rust, in the {@link breez_sdk_common} crate.
1144
- */
1145
- create: (partial: Partial<UrlSuccessActionData> & Required<Omit<UrlSuccessActionData, never>>) => UrlSuccessActionData;
1146
- /**
1147
- * Create a frozen instance of {@link UrlSuccessActionData}, with defaults specified
1148
- * in Rust, in the {@link breez_sdk_common} crate.
1149
- */
1150
- new: (partial: Partial<UrlSuccessActionData> & Required<Omit<UrlSuccessActionData, never>>) => UrlSuccessActionData;
1151
- /**
1152
- * Defaults specified in the {@link breez_sdk_common} crate.
1153
- */
1154
- defaults: () => Partial<UrlSuccessActionData>;
1155
- }>;
1156
- /**
1157
- * Typealias from the type name used in the UDL file to the custom type. This
1158
- * is needed because the UDL type name is used in function/method signatures.
1159
- */
1160
- export type CommonU128 = bigint;
1161
- export declare enum AesSuccessActionDataResult_Tags {
1162
- Decrypted = "Decrypted",
1163
- ErrorStatus = "ErrorStatus"
1164
- }
1165
- /**
1166
- * Result of decryption of [`AesSuccessActionData`] payload
1167
- */
1168
- export declare const AesSuccessActionDataResult: Readonly<{
1169
- instanceOf: (obj: any) => obj is AesSuccessActionDataResult;
1170
- Decrypted: {
1171
- new (inner: {
1172
- data: AesSuccessActionDataDecrypted;
1173
- }): {
1174
- readonly tag: AesSuccessActionDataResult_Tags.Decrypted;
1175
- readonly inner: Readonly<{
1176
- data: AesSuccessActionDataDecrypted;
1177
- }>;
1178
- /**
1179
- * @private
1180
- * This field is private and should not be used, use `tag` instead.
1181
- */
1182
- readonly [uniffiTypeNameSymbol]: "AesSuccessActionDataResult";
1183
- };
1184
- "new"(inner: {
1185
- data: AesSuccessActionDataDecrypted;
1186
- }): {
1187
- readonly tag: AesSuccessActionDataResult_Tags.Decrypted;
1188
- readonly inner: Readonly<{
1189
- data: AesSuccessActionDataDecrypted;
1190
- }>;
1191
- /**
1192
- * @private
1193
- * This field is private and should not be used, use `tag` instead.
1194
- */
1195
- readonly [uniffiTypeNameSymbol]: "AesSuccessActionDataResult";
1196
- };
1197
- instanceOf(obj: any): obj is {
1198
- readonly tag: AesSuccessActionDataResult_Tags.Decrypted;
1199
- readonly inner: Readonly<{
1200
- data: AesSuccessActionDataDecrypted;
1201
- }>;
1202
- /**
1203
- * @private
1204
- * This field is private and should not be used, use `tag` instead.
1205
- */
1206
- readonly [uniffiTypeNameSymbol]: "AesSuccessActionDataResult";
1207
- };
1208
- };
1209
- ErrorStatus: {
1210
- new (inner: {
1211
- reason: string;
1212
- }): {
1213
- readonly tag: AesSuccessActionDataResult_Tags.ErrorStatus;
1214
- readonly inner: Readonly<{
1215
- reason: string;
1216
- }>;
1217
- /**
1218
- * @private
1219
- * This field is private and should not be used, use `tag` instead.
1220
- */
1221
- readonly [uniffiTypeNameSymbol]: "AesSuccessActionDataResult";
1222
- };
1223
- "new"(inner: {
1224
- reason: string;
1225
- }): {
1226
- readonly tag: AesSuccessActionDataResult_Tags.ErrorStatus;
1227
- readonly inner: Readonly<{
1228
- reason: string;
1229
- }>;
1230
- /**
1231
- * @private
1232
- * This field is private and should not be used, use `tag` instead.
1233
- */
1234
- readonly [uniffiTypeNameSymbol]: "AesSuccessActionDataResult";
1235
- };
1236
- instanceOf(obj: any): obj is {
1237
- readonly tag: AesSuccessActionDataResult_Tags.ErrorStatus;
1238
- readonly inner: Readonly<{
1239
- reason: string;
1240
- }>;
1241
- /**
1242
- * @private
1243
- * This field is private and should not be used, use `tag` instead.
1244
- */
1245
- readonly [uniffiTypeNameSymbol]: "AesSuccessActionDataResult";
1246
- };
1247
- };
1248
- }>;
1249
- /**
1250
- * Result of decryption of [`AesSuccessActionData`] payload
1251
- */
1252
- export type AesSuccessActionDataResult = InstanceType<(typeof AesSuccessActionDataResult)[keyof Omit<typeof AesSuccessActionDataResult, 'instanceOf'>]>;
1253
- export declare enum Amount_Tags {
1254
- Bitcoin = "Bitcoin",
1255
- Currency = "Currency"
1256
- }
1257
- export declare const Amount: Readonly<{
1258
- instanceOf: (obj: any) => obj is Amount;
1259
- Bitcoin: {
1260
- new (inner: {
1261
- amountMsat: bigint;
1262
- }): {
1263
- readonly tag: Amount_Tags.Bitcoin;
1264
- readonly inner: Readonly<{
1265
- amountMsat: bigint;
1266
- }>;
1267
- /**
1268
- * @private
1269
- * This field is private and should not be used, use `tag` instead.
1270
- */
1271
- readonly [uniffiTypeNameSymbol]: "Amount";
1272
- };
1273
- "new"(inner: {
1274
- amountMsat: bigint;
1275
- }): {
1276
- readonly tag: Amount_Tags.Bitcoin;
1277
- readonly inner: Readonly<{
1278
- amountMsat: bigint;
1279
- }>;
1280
- /**
1281
- * @private
1282
- * This field is private and should not be used, use `tag` instead.
1283
- */
1284
- readonly [uniffiTypeNameSymbol]: "Amount";
1285
- };
1286
- instanceOf(obj: any): obj is {
1287
- readonly tag: Amount_Tags.Bitcoin;
1288
- readonly inner: Readonly<{
1289
- amountMsat: bigint;
1290
- }>;
1291
- /**
1292
- * @private
1293
- * This field is private and should not be used, use `tag` instead.
1294
- */
1295
- readonly [uniffiTypeNameSymbol]: "Amount";
1296
- };
1297
- };
1298
- Currency: {
1299
- new (inner: {
1300
- /**
1301
- * The currency that the amount is denominated in.
1302
- */ iso4217Code: string;
1303
- /**
1304
- * The amount in the currency unit adjusted by the ISO 4712 exponent (e.g., USD cents).
1305
- */ fractionalAmount: bigint;
1306
- }): {
1307
- readonly tag: Amount_Tags.Currency;
1308
- readonly inner: Readonly<{
1309
- iso4217Code: string;
1310
- fractionalAmount: bigint;
1311
- }>;
1312
- /**
1313
- * @private
1314
- * This field is private and should not be used, use `tag` instead.
1315
- */
1316
- readonly [uniffiTypeNameSymbol]: "Amount";
1317
- };
1318
- "new"(inner: {
1319
- /**
1320
- * The currency that the amount is denominated in.
1321
- */ iso4217Code: string;
1322
- /**
1323
- * The amount in the currency unit adjusted by the ISO 4712 exponent (e.g., USD cents).
1324
- */ fractionalAmount: bigint;
1325
- }): {
1326
- readonly tag: Amount_Tags.Currency;
1327
- readonly inner: Readonly<{
1328
- iso4217Code: string;
1329
- fractionalAmount: bigint;
1330
- }>;
1331
- /**
1332
- * @private
1333
- * This field is private and should not be used, use `tag` instead.
1334
- */
1335
- readonly [uniffiTypeNameSymbol]: "Amount";
1336
- };
1337
- instanceOf(obj: any): obj is {
1338
- readonly tag: Amount_Tags.Currency;
1339
- readonly inner: Readonly<{
1340
- iso4217Code: string;
1341
- fractionalAmount: bigint;
1342
- }>;
1343
- /**
1344
- * @private
1345
- * This field is private and should not be used, use `tag` instead.
1346
- */
1347
- readonly [uniffiTypeNameSymbol]: "Amount";
1348
- };
1349
- };
1350
- }>;
1351
- export type Amount = InstanceType<(typeof Amount)[keyof Omit<typeof Amount, 'instanceOf'>]>;
1352
- export declare enum BitcoinNetwork {
1353
- /**
1354
- * Mainnet
1355
- */
1356
- Bitcoin = 0,
1357
- Testnet3 = 1,
1358
- Testnet4 = 2,
1359
- Signet = 3,
1360
- Regtest = 4
1361
- }
1362
- export declare enum InputType_Tags {
1363
- BitcoinAddress = "BitcoinAddress",
1364
- Bolt11Invoice = "Bolt11Invoice",
1365
- Bolt12Invoice = "Bolt12Invoice",
1366
- Bolt12Offer = "Bolt12Offer",
1367
- LightningAddress = "LightningAddress",
1368
- LnurlPay = "LnurlPay",
1369
- SilentPaymentAddress = "SilentPaymentAddress",
1370
- LnurlAuth = "LnurlAuth",
1371
- Url = "Url",
1372
- Bip21 = "Bip21",
1373
- Bolt12InvoiceRequest = "Bolt12InvoiceRequest",
1374
- LnurlWithdraw = "LnurlWithdraw",
1375
- SparkAddress = "SparkAddress",
1376
- SparkInvoice = "SparkInvoice"
1377
- }
1378
- export declare const InputType: Readonly<{
1379
- instanceOf: (obj: any) => obj is InputType;
1380
- BitcoinAddress: {
1381
- new (v0: BitcoinAddressDetails): {
1382
- readonly tag: InputType_Tags.BitcoinAddress;
1383
- readonly inner: Readonly<[BitcoinAddressDetails]>;
1384
- /**
1385
- * @private
1386
- * This field is private and should not be used, use `tag` instead.
1387
- */
1388
- readonly [uniffiTypeNameSymbol]: "InputType";
1389
- };
1390
- "new"(v0: BitcoinAddressDetails): {
1391
- readonly tag: InputType_Tags.BitcoinAddress;
1392
- readonly inner: Readonly<[BitcoinAddressDetails]>;
1393
- /**
1394
- * @private
1395
- * This field is private and should not be used, use `tag` instead.
1396
- */
1397
- readonly [uniffiTypeNameSymbol]: "InputType";
1398
- };
1399
- instanceOf(obj: any): obj is {
1400
- readonly tag: InputType_Tags.BitcoinAddress;
1401
- readonly inner: Readonly<[BitcoinAddressDetails]>;
1402
- /**
1403
- * @private
1404
- * This field is private and should not be used, use `tag` instead.
1405
- */
1406
- readonly [uniffiTypeNameSymbol]: "InputType";
1407
- };
1408
- };
1409
- Bolt11Invoice: {
1410
- new (v0: Bolt11InvoiceDetails): {
1411
- readonly tag: InputType_Tags.Bolt11Invoice;
1412
- readonly inner: Readonly<[Bolt11InvoiceDetails]>;
1413
- /**
1414
- * @private
1415
- * This field is private and should not be used, use `tag` instead.
1416
- */
1417
- readonly [uniffiTypeNameSymbol]: "InputType";
1418
- };
1419
- "new"(v0: Bolt11InvoiceDetails): {
1420
- readonly tag: InputType_Tags.Bolt11Invoice;
1421
- readonly inner: Readonly<[Bolt11InvoiceDetails]>;
1422
- /**
1423
- * @private
1424
- * This field is private and should not be used, use `tag` instead.
1425
- */
1426
- readonly [uniffiTypeNameSymbol]: "InputType";
1427
- };
1428
- instanceOf(obj: any): obj is {
1429
- readonly tag: InputType_Tags.Bolt11Invoice;
1430
- readonly inner: Readonly<[Bolt11InvoiceDetails]>;
1431
- /**
1432
- * @private
1433
- * This field is private and should not be used, use `tag` instead.
1434
- */
1435
- readonly [uniffiTypeNameSymbol]: "InputType";
1436
- };
1437
- };
1438
- Bolt12Invoice: {
1439
- new (v0: Bolt12InvoiceDetails): {
1440
- readonly tag: InputType_Tags.Bolt12Invoice;
1441
- readonly inner: Readonly<[Bolt12InvoiceDetails]>;
1442
- /**
1443
- * @private
1444
- * This field is private and should not be used, use `tag` instead.
1445
- */
1446
- readonly [uniffiTypeNameSymbol]: "InputType";
1447
- };
1448
- "new"(v0: Bolt12InvoiceDetails): {
1449
- readonly tag: InputType_Tags.Bolt12Invoice;
1450
- readonly inner: Readonly<[Bolt12InvoiceDetails]>;
1451
- /**
1452
- * @private
1453
- * This field is private and should not be used, use `tag` instead.
1454
- */
1455
- readonly [uniffiTypeNameSymbol]: "InputType";
1456
- };
1457
- instanceOf(obj: any): obj is {
1458
- readonly tag: InputType_Tags.Bolt12Invoice;
1459
- readonly inner: Readonly<[Bolt12InvoiceDetails]>;
1460
- /**
1461
- * @private
1462
- * This field is private and should not be used, use `tag` instead.
1463
- */
1464
- readonly [uniffiTypeNameSymbol]: "InputType";
1465
- };
1466
- };
1467
- Bolt12Offer: {
1468
- new (v0: Bolt12OfferDetails): {
1469
- readonly tag: InputType_Tags.Bolt12Offer;
1470
- readonly inner: Readonly<[Bolt12OfferDetails]>;
1471
- /**
1472
- * @private
1473
- * This field is private and should not be used, use `tag` instead.
1474
- */
1475
- readonly [uniffiTypeNameSymbol]: "InputType";
1476
- };
1477
- "new"(v0: Bolt12OfferDetails): {
1478
- readonly tag: InputType_Tags.Bolt12Offer;
1479
- readonly inner: Readonly<[Bolt12OfferDetails]>;
1480
- /**
1481
- * @private
1482
- * This field is private and should not be used, use `tag` instead.
1483
- */
1484
- readonly [uniffiTypeNameSymbol]: "InputType";
1485
- };
1486
- instanceOf(obj: any): obj is {
1487
- readonly tag: InputType_Tags.Bolt12Offer;
1488
- readonly inner: Readonly<[Bolt12OfferDetails]>;
1489
- /**
1490
- * @private
1491
- * This field is private and should not be used, use `tag` instead.
1492
- */
1493
- readonly [uniffiTypeNameSymbol]: "InputType";
1494
- };
1495
- };
1496
- LightningAddress: {
1497
- new (v0: LightningAddressDetails): {
1498
- readonly tag: InputType_Tags.LightningAddress;
1499
- readonly inner: Readonly<[LightningAddressDetails]>;
1500
- /**
1501
- * @private
1502
- * This field is private and should not be used, use `tag` instead.
1503
- */
1504
- readonly [uniffiTypeNameSymbol]: "InputType";
1505
- };
1506
- "new"(v0: LightningAddressDetails): {
1507
- readonly tag: InputType_Tags.LightningAddress;
1508
- readonly inner: Readonly<[LightningAddressDetails]>;
1509
- /**
1510
- * @private
1511
- * This field is private and should not be used, use `tag` instead.
1512
- */
1513
- readonly [uniffiTypeNameSymbol]: "InputType";
1514
- };
1515
- instanceOf(obj: any): obj is {
1516
- readonly tag: InputType_Tags.LightningAddress;
1517
- readonly inner: Readonly<[LightningAddressDetails]>;
1518
- /**
1519
- * @private
1520
- * This field is private and should not be used, use `tag` instead.
1521
- */
1522
- readonly [uniffiTypeNameSymbol]: "InputType";
1523
- };
1524
- };
1525
- LnurlPay: {
1526
- new (v0: LnurlPayRequestDetails): {
1527
- readonly tag: InputType_Tags.LnurlPay;
1528
- readonly inner: Readonly<[LnurlPayRequestDetails]>;
1529
- /**
1530
- * @private
1531
- * This field is private and should not be used, use `tag` instead.
1532
- */
1533
- readonly [uniffiTypeNameSymbol]: "InputType";
1534
- };
1535
- "new"(v0: LnurlPayRequestDetails): {
1536
- readonly tag: InputType_Tags.LnurlPay;
1537
- readonly inner: Readonly<[LnurlPayRequestDetails]>;
1538
- /**
1539
- * @private
1540
- * This field is private and should not be used, use `tag` instead.
1541
- */
1542
- readonly [uniffiTypeNameSymbol]: "InputType";
1543
- };
1544
- instanceOf(obj: any): obj is {
1545
- readonly tag: InputType_Tags.LnurlPay;
1546
- readonly inner: Readonly<[LnurlPayRequestDetails]>;
1547
- /**
1548
- * @private
1549
- * This field is private and should not be used, use `tag` instead.
1550
- */
1551
- readonly [uniffiTypeNameSymbol]: "InputType";
1552
- };
1553
- };
1554
- SilentPaymentAddress: {
1555
- new (v0: SilentPaymentAddressDetails): {
1556
- readonly tag: InputType_Tags.SilentPaymentAddress;
1557
- readonly inner: Readonly<[SilentPaymentAddressDetails]>;
1558
- /**
1559
- * @private
1560
- * This field is private and should not be used, use `tag` instead.
1561
- */
1562
- readonly [uniffiTypeNameSymbol]: "InputType";
1563
- };
1564
- "new"(v0: SilentPaymentAddressDetails): {
1565
- readonly tag: InputType_Tags.SilentPaymentAddress;
1566
- readonly inner: Readonly<[SilentPaymentAddressDetails]>;
1567
- /**
1568
- * @private
1569
- * This field is private and should not be used, use `tag` instead.
1570
- */
1571
- readonly [uniffiTypeNameSymbol]: "InputType";
1572
- };
1573
- instanceOf(obj: any): obj is {
1574
- readonly tag: InputType_Tags.SilentPaymentAddress;
1575
- readonly inner: Readonly<[SilentPaymentAddressDetails]>;
1576
- /**
1577
- * @private
1578
- * This field is private and should not be used, use `tag` instead.
1579
- */
1580
- readonly [uniffiTypeNameSymbol]: "InputType";
1581
- };
1582
- };
1583
- LnurlAuth: {
1584
- new (v0: LnurlAuthRequestDetails): {
1585
- readonly tag: InputType_Tags.LnurlAuth;
1586
- readonly inner: Readonly<[LnurlAuthRequestDetails]>;
1587
- /**
1588
- * @private
1589
- * This field is private and should not be used, use `tag` instead.
1590
- */
1591
- readonly [uniffiTypeNameSymbol]: "InputType";
1592
- };
1593
- "new"(v0: LnurlAuthRequestDetails): {
1594
- readonly tag: InputType_Tags.LnurlAuth;
1595
- readonly inner: Readonly<[LnurlAuthRequestDetails]>;
1596
- /**
1597
- * @private
1598
- * This field is private and should not be used, use `tag` instead.
1599
- */
1600
- readonly [uniffiTypeNameSymbol]: "InputType";
1601
- };
1602
- instanceOf(obj: any): obj is {
1603
- readonly tag: InputType_Tags.LnurlAuth;
1604
- readonly inner: Readonly<[LnurlAuthRequestDetails]>;
1605
- /**
1606
- * @private
1607
- * This field is private and should not be used, use `tag` instead.
1608
- */
1609
- readonly [uniffiTypeNameSymbol]: "InputType";
1610
- };
1611
- };
1612
- Url: {
1613
- new (v0: string): {
1614
- readonly tag: InputType_Tags.Url;
1615
- readonly inner: Readonly<[string]>;
1616
- /**
1617
- * @private
1618
- * This field is private and should not be used, use `tag` instead.
1619
- */
1620
- readonly [uniffiTypeNameSymbol]: "InputType";
1621
- };
1622
- "new"(v0: string): {
1623
- readonly tag: InputType_Tags.Url;
1624
- readonly inner: Readonly<[string]>;
1625
- /**
1626
- * @private
1627
- * This field is private and should not be used, use `tag` instead.
1628
- */
1629
- readonly [uniffiTypeNameSymbol]: "InputType";
1630
- };
1631
- instanceOf(obj: any): obj is {
1632
- readonly tag: InputType_Tags.Url;
1633
- readonly inner: Readonly<[string]>;
1634
- /**
1635
- * @private
1636
- * This field is private and should not be used, use `tag` instead.
1637
- */
1638
- readonly [uniffiTypeNameSymbol]: "InputType";
1639
- };
1640
- };
1641
- Bip21: {
1642
- new (v0: Bip21Details): {
1643
- readonly tag: InputType_Tags.Bip21;
1644
- readonly inner: Readonly<[Bip21Details]>;
1645
- /**
1646
- * @private
1647
- * This field is private and should not be used, use `tag` instead.
1648
- */
1649
- readonly [uniffiTypeNameSymbol]: "InputType";
1650
- };
1651
- "new"(v0: Bip21Details): {
1652
- readonly tag: InputType_Tags.Bip21;
1653
- readonly inner: Readonly<[Bip21Details]>;
1654
- /**
1655
- * @private
1656
- * This field is private and should not be used, use `tag` instead.
1657
- */
1658
- readonly [uniffiTypeNameSymbol]: "InputType";
1659
- };
1660
- instanceOf(obj: any): obj is {
1661
- readonly tag: InputType_Tags.Bip21;
1662
- readonly inner: Readonly<[Bip21Details]>;
1663
- /**
1664
- * @private
1665
- * This field is private and should not be used, use `tag` instead.
1666
- */
1667
- readonly [uniffiTypeNameSymbol]: "InputType";
1668
- };
1669
- };
1670
- Bolt12InvoiceRequest: {
1671
- new (v0: Bolt12InvoiceRequestDetails): {
1672
- readonly tag: InputType_Tags.Bolt12InvoiceRequest;
1673
- readonly inner: Readonly<[Bolt12InvoiceRequestDetails]>;
1674
- /**
1675
- * @private
1676
- * This field is private and should not be used, use `tag` instead.
1677
- */
1678
- readonly [uniffiTypeNameSymbol]: "InputType";
1679
- };
1680
- "new"(v0: Bolt12InvoiceRequestDetails): {
1681
- readonly tag: InputType_Tags.Bolt12InvoiceRequest;
1682
- readonly inner: Readonly<[Bolt12InvoiceRequestDetails]>;
1683
- /**
1684
- * @private
1685
- * This field is private and should not be used, use `tag` instead.
1686
- */
1687
- readonly [uniffiTypeNameSymbol]: "InputType";
1688
- };
1689
- instanceOf(obj: any): obj is {
1690
- readonly tag: InputType_Tags.Bolt12InvoiceRequest;
1691
- readonly inner: Readonly<[Bolt12InvoiceRequestDetails]>;
1692
- /**
1693
- * @private
1694
- * This field is private and should not be used, use `tag` instead.
1695
- */
1696
- readonly [uniffiTypeNameSymbol]: "InputType";
1697
- };
1698
- };
1699
- LnurlWithdraw: {
1700
- new (v0: LnurlWithdrawRequestDetails): {
1701
- readonly tag: InputType_Tags.LnurlWithdraw;
1702
- readonly inner: Readonly<[LnurlWithdrawRequestDetails]>;
1703
- /**
1704
- * @private
1705
- * This field is private and should not be used, use `tag` instead.
1706
- */
1707
- readonly [uniffiTypeNameSymbol]: "InputType";
1708
- };
1709
- "new"(v0: LnurlWithdrawRequestDetails): {
1710
- readonly tag: InputType_Tags.LnurlWithdraw;
1711
- readonly inner: Readonly<[LnurlWithdrawRequestDetails]>;
1712
- /**
1713
- * @private
1714
- * This field is private and should not be used, use `tag` instead.
1715
- */
1716
- readonly [uniffiTypeNameSymbol]: "InputType";
1717
- };
1718
- instanceOf(obj: any): obj is {
1719
- readonly tag: InputType_Tags.LnurlWithdraw;
1720
- readonly inner: Readonly<[LnurlWithdrawRequestDetails]>;
1721
- /**
1722
- * @private
1723
- * This field is private and should not be used, use `tag` instead.
1724
- */
1725
- readonly [uniffiTypeNameSymbol]: "InputType";
1726
- };
1727
- };
1728
- SparkAddress: {
1729
- new (v0: SparkAddressDetails): {
1730
- readonly tag: InputType_Tags.SparkAddress;
1731
- readonly inner: Readonly<[SparkAddressDetails]>;
1732
- /**
1733
- * @private
1734
- * This field is private and should not be used, use `tag` instead.
1735
- */
1736
- readonly [uniffiTypeNameSymbol]: "InputType";
1737
- };
1738
- "new"(v0: SparkAddressDetails): {
1739
- readonly tag: InputType_Tags.SparkAddress;
1740
- readonly inner: Readonly<[SparkAddressDetails]>;
1741
- /**
1742
- * @private
1743
- * This field is private and should not be used, use `tag` instead.
1744
- */
1745
- readonly [uniffiTypeNameSymbol]: "InputType";
1746
- };
1747
- instanceOf(obj: any): obj is {
1748
- readonly tag: InputType_Tags.SparkAddress;
1749
- readonly inner: Readonly<[SparkAddressDetails]>;
1750
- /**
1751
- * @private
1752
- * This field is private and should not be used, use `tag` instead.
1753
- */
1754
- readonly [uniffiTypeNameSymbol]: "InputType";
1755
- };
1756
- };
1757
- SparkInvoice: {
1758
- new (v0: SparkInvoiceDetails): {
1759
- readonly tag: InputType_Tags.SparkInvoice;
1760
- readonly inner: Readonly<[SparkInvoiceDetails]>;
1761
- /**
1762
- * @private
1763
- * This field is private and should not be used, use `tag` instead.
1764
- */
1765
- readonly [uniffiTypeNameSymbol]: "InputType";
1766
- };
1767
- "new"(v0: SparkInvoiceDetails): {
1768
- readonly tag: InputType_Tags.SparkInvoice;
1769
- readonly inner: Readonly<[SparkInvoiceDetails]>;
1770
- /**
1771
- * @private
1772
- * This field is private and should not be used, use `tag` instead.
1773
- */
1774
- readonly [uniffiTypeNameSymbol]: "InputType";
1775
- };
1776
- instanceOf(obj: any): obj is {
1777
- readonly tag: InputType_Tags.SparkInvoice;
1778
- readonly inner: Readonly<[SparkInvoiceDetails]>;
1779
- /**
1780
- * @private
1781
- * This field is private and should not be used, use `tag` instead.
1782
- */
1783
- readonly [uniffiTypeNameSymbol]: "InputType";
1784
- };
1785
- };
1786
- }>;
1787
- export type InputType = InstanceType<(typeof InputType)[keyof Omit<typeof InputType, 'instanceOf'>]>;
1788
- export declare enum LnurlCallbackStatus_Tags {
1789
- Ok = "Ok",
1790
- ErrorStatus = "ErrorStatus"
1791
- }
1792
- /**
1793
- * Contains the result of the entire LNURL interaction, as reported by the LNURL endpoint.
1794
- *
1795
- * * `Ok` indicates the interaction with the endpoint was valid, and the endpoint
1796
- * - started to pay the invoice asynchronously in the case of LNURL-withdraw,
1797
- * - verified the client signature in the case of LNURL-auth
1798
- * * `Error` indicates a generic issue the LNURL endpoint encountered, including a freetext
1799
- * description of the reason.
1800
- *
1801
- * Both cases are described in LUD-03 <https://github.com/lnurl/luds/blob/luds/03.md> & LUD-04: <https://github.com/lnurl/luds/blob/luds/04.md>
1802
- */
1803
- export declare const LnurlCallbackStatus: Readonly<{
1804
- instanceOf: (obj: any) => obj is LnurlCallbackStatus;
1805
- Ok: {
1806
- new (): {
1807
- readonly tag: LnurlCallbackStatus_Tags.Ok;
1808
- /**
1809
- * @private
1810
- * This field is private and should not be used, use `tag` instead.
1811
- */
1812
- readonly [uniffiTypeNameSymbol]: "LnurlCallbackStatus";
1813
- };
1814
- "new"(): {
1815
- readonly tag: LnurlCallbackStatus_Tags.Ok;
1816
- /**
1817
- * @private
1818
- * This field is private and should not be used, use `tag` instead.
1819
- */
1820
- readonly [uniffiTypeNameSymbol]: "LnurlCallbackStatus";
1821
- };
1822
- instanceOf(obj: any): obj is {
1823
- readonly tag: LnurlCallbackStatus_Tags.Ok;
1824
- /**
1825
- * @private
1826
- * This field is private and should not be used, use `tag` instead.
1827
- */
1828
- readonly [uniffiTypeNameSymbol]: "LnurlCallbackStatus";
1829
- };
1830
- };
1831
- ErrorStatus: {
1832
- new (inner: {
1833
- errorDetails: LnurlErrorDetails;
1834
- }): {
1835
- readonly tag: LnurlCallbackStatus_Tags.ErrorStatus;
1836
- readonly inner: Readonly<{
1837
- errorDetails: LnurlErrorDetails;
1838
- }>;
1839
- /**
1840
- * @private
1841
- * This field is private and should not be used, use `tag` instead.
1842
- */
1843
- readonly [uniffiTypeNameSymbol]: "LnurlCallbackStatus";
1844
- };
1845
- "new"(inner: {
1846
- errorDetails: LnurlErrorDetails;
1847
- }): {
1848
- readonly tag: LnurlCallbackStatus_Tags.ErrorStatus;
1849
- readonly inner: Readonly<{
1850
- errorDetails: LnurlErrorDetails;
1851
- }>;
1852
- /**
1853
- * @private
1854
- * This field is private and should not be used, use `tag` instead.
1855
- */
1856
- readonly [uniffiTypeNameSymbol]: "LnurlCallbackStatus";
1857
- };
1858
- instanceOf(obj: any): obj is {
1859
- readonly tag: LnurlCallbackStatus_Tags.ErrorStatus;
1860
- readonly inner: Readonly<{
1861
- errorDetails: LnurlErrorDetails;
1862
- }>;
1863
- /**
1864
- * @private
1865
- * This field is private and should not be used, use `tag` instead.
1866
- */
1867
- readonly [uniffiTypeNameSymbol]: "LnurlCallbackStatus";
1868
- };
1869
- };
1870
- }>;
1871
- /**
1872
- * Contains the result of the entire LNURL interaction, as reported by the LNURL endpoint.
1873
- *
1874
- * * `Ok` indicates the interaction with the endpoint was valid, and the endpoint
1875
- * - started to pay the invoice asynchronously in the case of LNURL-withdraw,
1876
- * - verified the client signature in the case of LNURL-auth
1877
- * * `Error` indicates a generic issue the LNURL endpoint encountered, including a freetext
1878
- * description of the reason.
1879
- *
1880
- * Both cases are described in LUD-03 <https://github.com/lnurl/luds/blob/luds/03.md> & LUD-04: <https://github.com/lnurl/luds/blob/luds/04.md>
1881
- */
1882
- export type LnurlCallbackStatus = InstanceType<(typeof LnurlCallbackStatus)[keyof Omit<typeof LnurlCallbackStatus, 'instanceOf'>]>;
1883
- export declare enum ServiceConnectivityError_Tags {
1884
- Builder = "Builder",
1885
- Redirect = "Redirect",
1886
- Status = "Status",
1887
- Timeout = "Timeout",
1888
- Request = "Request",
1889
- Connect = "Connect",
1890
- Body = "Body",
1891
- Decode = "Decode",
1892
- Json = "Json",
1893
- Other = "Other"
1894
- }
1895
- export declare const ServiceConnectivityError: Readonly<{
1896
- instanceOf: (obj: any) => obj is ServiceConnectivityError;
1897
- Builder: {
1898
- new (v0: string): {
1899
- readonly tag: ServiceConnectivityError_Tags.Builder;
1900
- readonly inner: Readonly<[string]>;
1901
- /**
1902
- * @private
1903
- * This field is private and should not be used, use `tag` instead.
1904
- */
1905
- readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
1906
- name: string;
1907
- message: string;
1908
- stack?: string;
1909
- cause?: unknown;
1910
- };
1911
- "new"(v0: string): {
1912
- readonly tag: ServiceConnectivityError_Tags.Builder;
1913
- readonly inner: Readonly<[string]>;
1914
- /**
1915
- * @private
1916
- * This field is private and should not be used, use `tag` instead.
1917
- */
1918
- readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
1919
- name: string;
1920
- message: string;
1921
- stack?: string;
1922
- cause?: unknown;
1923
- };
1924
- instanceOf(obj: any): obj is {
1925
- readonly tag: ServiceConnectivityError_Tags.Builder;
1926
- readonly inner: Readonly<[string]>;
1927
- /**
1928
- * @private
1929
- * This field is private and should not be used, use `tag` instead.
1930
- */
1931
- readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
1932
- name: string;
1933
- message: string;
1934
- stack?: string;
1935
- cause?: unknown;
1936
- };
1937
- hasInner(obj: any): obj is {
1938
- readonly tag: ServiceConnectivityError_Tags.Builder;
1939
- readonly inner: Readonly<[string]>;
1940
- /**
1941
- * @private
1942
- * This field is private and should not be used, use `tag` instead.
1943
- */
1944
- readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
1945
- name: string;
1946
- message: string;
1947
- stack?: string;
1948
- cause?: unknown;
1949
- };
1950
- getInner(obj: {
1951
- readonly tag: ServiceConnectivityError_Tags.Builder;
1952
- readonly inner: Readonly<[string]>;
1953
- /**
1954
- * @private
1955
- * This field is private and should not be used, use `tag` instead.
1956
- */
1957
- readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
1958
- name: string;
1959
- message: string;
1960
- stack?: string;
1961
- cause?: unknown;
1962
- }): Readonly<[string]>;
1963
- isError(error: unknown): error is Error;
1964
- captureStackTrace(targetObject: object, constructorOpt?: Function): void;
1965
- prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
1966
- stackTraceLimit: number;
1967
- };
1968
- Redirect: {
1969
- new (v0: string): {
1970
- readonly tag: ServiceConnectivityError_Tags.Redirect;
1971
- readonly inner: Readonly<[string]>;
1972
- /**
1973
- * @private
1974
- * This field is private and should not be used, use `tag` instead.
1975
- */
1976
- readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
1977
- name: string;
1978
- message: string;
1979
- stack?: string;
1980
- cause?: unknown;
1981
- };
1982
- "new"(v0: string): {
1983
- readonly tag: ServiceConnectivityError_Tags.Redirect;
1984
- readonly inner: Readonly<[string]>;
1985
- /**
1986
- * @private
1987
- * This field is private and should not be used, use `tag` instead.
1988
- */
1989
- readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
1990
- name: string;
1991
- message: string;
1992
- stack?: string;
1993
- cause?: unknown;
1994
- };
1995
- instanceOf(obj: any): obj is {
1996
- readonly tag: ServiceConnectivityError_Tags.Redirect;
1997
- readonly inner: Readonly<[string]>;
1998
- /**
1999
- * @private
2000
- * This field is private and should not be used, use `tag` instead.
2001
- */
2002
- readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
2003
- name: string;
2004
- message: string;
2005
- stack?: string;
2006
- cause?: unknown;
2007
- };
2008
- hasInner(obj: any): obj is {
2009
- readonly tag: ServiceConnectivityError_Tags.Redirect;
2010
- readonly inner: Readonly<[string]>;
2011
- /**
2012
- * @private
2013
- * This field is private and should not be used, use `tag` instead.
2014
- */
2015
- readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
2016
- name: string;
2017
- message: string;
2018
- stack?: string;
2019
- cause?: unknown;
2020
- };
2021
- getInner(obj: {
2022
- readonly tag: ServiceConnectivityError_Tags.Redirect;
2023
- readonly inner: Readonly<[string]>;
2024
- /**
2025
- * @private
2026
- * This field is private and should not be used, use `tag` instead.
2027
- */
2028
- readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
2029
- name: string;
2030
- message: string;
2031
- stack?: string;
2032
- cause?: unknown;
2033
- }): Readonly<[string]>;
2034
- isError(error: unknown): error is Error;
2035
- captureStackTrace(targetObject: object, constructorOpt?: Function): void;
2036
- prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
2037
- stackTraceLimit: number;
2038
- };
2039
- Status: {
2040
- new (inner: {
2041
- status: number;
2042
- body: string;
2043
- }): {
2044
- readonly tag: ServiceConnectivityError_Tags.Status;
2045
- readonly inner: Readonly<{
2046
- status: number;
2047
- body: string;
2048
- }>;
2049
- /**
2050
- * @private
2051
- * This field is private and should not be used, use `tag` instead.
2052
- */
2053
- readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
2054
- name: string;
2055
- message: string;
2056
- stack?: string;
2057
- cause?: unknown;
2058
- };
2059
- "new"(inner: {
2060
- status: number;
2061
- body: string;
2062
- }): {
2063
- readonly tag: ServiceConnectivityError_Tags.Status;
2064
- readonly inner: Readonly<{
2065
- status: number;
2066
- body: string;
2067
- }>;
2068
- /**
2069
- * @private
2070
- * This field is private and should not be used, use `tag` instead.
2071
- */
2072
- readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
2073
- name: string;
2074
- message: string;
2075
- stack?: string;
2076
- cause?: unknown;
2077
- };
2078
- instanceOf(obj: any): obj is {
2079
- readonly tag: ServiceConnectivityError_Tags.Status;
2080
- readonly inner: Readonly<{
2081
- status: number;
2082
- body: string;
2083
- }>;
2084
- /**
2085
- * @private
2086
- * This field is private and should not be used, use `tag` instead.
2087
- */
2088
- readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
2089
- name: string;
2090
- message: string;
2091
- stack?: string;
2092
- cause?: unknown;
2093
- };
2094
- hasInner(obj: any): obj is {
2095
- readonly tag: ServiceConnectivityError_Tags.Status;
2096
- readonly inner: Readonly<{
2097
- status: number;
2098
- body: string;
2099
- }>;
2100
- /**
2101
- * @private
2102
- * This field is private and should not be used, use `tag` instead.
2103
- */
2104
- readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
2105
- name: string;
2106
- message: string;
2107
- stack?: string;
2108
- cause?: unknown;
2109
- };
2110
- getInner(obj: {
2111
- readonly tag: ServiceConnectivityError_Tags.Status;
2112
- readonly inner: Readonly<{
2113
- status: number;
2114
- body: string;
2115
- }>;
2116
- /**
2117
- * @private
2118
- * This field is private and should not be used, use `tag` instead.
2119
- */
2120
- readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
2121
- name: string;
2122
- message: string;
2123
- stack?: string;
2124
- cause?: unknown;
2125
- }): Readonly<{
2126
- status: number;
2127
- body: string;
2128
- }>;
2129
- isError(error: unknown): error is Error;
2130
- captureStackTrace(targetObject: object, constructorOpt?: Function): void;
2131
- prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
2132
- stackTraceLimit: number;
2133
- };
2134
- Timeout: {
2135
- new (v0: string): {
2136
- readonly tag: ServiceConnectivityError_Tags.Timeout;
2137
- readonly inner: Readonly<[string]>;
2138
- /**
2139
- * @private
2140
- * This field is private and should not be used, use `tag` instead.
2141
- */
2142
- readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
2143
- name: string;
2144
- message: string;
2145
- stack?: string;
2146
- cause?: unknown;
2147
- };
2148
- "new"(v0: string): {
2149
- readonly tag: ServiceConnectivityError_Tags.Timeout;
2150
- readonly inner: Readonly<[string]>;
2151
- /**
2152
- * @private
2153
- * This field is private and should not be used, use `tag` instead.
2154
- */
2155
- readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
2156
- name: string;
2157
- message: string;
2158
- stack?: string;
2159
- cause?: unknown;
2160
- };
2161
- instanceOf(obj: any): obj is {
2162
- readonly tag: ServiceConnectivityError_Tags.Timeout;
2163
- readonly inner: Readonly<[string]>;
2164
- /**
2165
- * @private
2166
- * This field is private and should not be used, use `tag` instead.
2167
- */
2168
- readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
2169
- name: string;
2170
- message: string;
2171
- stack?: string;
2172
- cause?: unknown;
2173
- };
2174
- hasInner(obj: any): obj is {
2175
- readonly tag: ServiceConnectivityError_Tags.Timeout;
2176
- readonly inner: Readonly<[string]>;
2177
- /**
2178
- * @private
2179
- * This field is private and should not be used, use `tag` instead.
2180
- */
2181
- readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
2182
- name: string;
2183
- message: string;
2184
- stack?: string;
2185
- cause?: unknown;
2186
- };
2187
- getInner(obj: {
2188
- readonly tag: ServiceConnectivityError_Tags.Timeout;
2189
- readonly inner: Readonly<[string]>;
2190
- /**
2191
- * @private
2192
- * This field is private and should not be used, use `tag` instead.
2193
- */
2194
- readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
2195
- name: string;
2196
- message: string;
2197
- stack?: string;
2198
- cause?: unknown;
2199
- }): Readonly<[string]>;
2200
- isError(error: unknown): error is Error;
2201
- captureStackTrace(targetObject: object, constructorOpt?: Function): void;
2202
- prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
2203
- stackTraceLimit: number;
2204
- };
2205
- Request: {
2206
- new (v0: string): {
2207
- readonly tag: ServiceConnectivityError_Tags.Request;
2208
- readonly inner: Readonly<[string]>;
2209
- /**
2210
- * @private
2211
- * This field is private and should not be used, use `tag` instead.
2212
- */
2213
- readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
2214
- name: string;
2215
- message: string;
2216
- stack?: string;
2217
- cause?: unknown;
2218
- };
2219
- "new"(v0: string): {
2220
- readonly tag: ServiceConnectivityError_Tags.Request;
2221
- readonly inner: Readonly<[string]>;
2222
- /**
2223
- * @private
2224
- * This field is private and should not be used, use `tag` instead.
2225
- */
2226
- readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
2227
- name: string;
2228
- message: string;
2229
- stack?: string;
2230
- cause?: unknown;
2231
- };
2232
- instanceOf(obj: any): obj is {
2233
- readonly tag: ServiceConnectivityError_Tags.Request;
2234
- readonly inner: Readonly<[string]>;
2235
- /**
2236
- * @private
2237
- * This field is private and should not be used, use `tag` instead.
2238
- */
2239
- readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
2240
- name: string;
2241
- message: string;
2242
- stack?: string;
2243
- cause?: unknown;
2244
- };
2245
- hasInner(obj: any): obj is {
2246
- readonly tag: ServiceConnectivityError_Tags.Request;
2247
- readonly inner: Readonly<[string]>;
2248
- /**
2249
- * @private
2250
- * This field is private and should not be used, use `tag` instead.
2251
- */
2252
- readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
2253
- name: string;
2254
- message: string;
2255
- stack?: string;
2256
- cause?: unknown;
2257
- };
2258
- getInner(obj: {
2259
- readonly tag: ServiceConnectivityError_Tags.Request;
2260
- readonly inner: Readonly<[string]>;
2261
- /**
2262
- * @private
2263
- * This field is private and should not be used, use `tag` instead.
2264
- */
2265
- readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
2266
- name: string;
2267
- message: string;
2268
- stack?: string;
2269
- cause?: unknown;
2270
- }): Readonly<[string]>;
2271
- isError(error: unknown): error is Error;
2272
- captureStackTrace(targetObject: object, constructorOpt?: Function): void;
2273
- prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
2274
- stackTraceLimit: number;
2275
- };
2276
- Connect: {
2277
- new (v0: string): {
2278
- readonly tag: ServiceConnectivityError_Tags.Connect;
2279
- readonly inner: Readonly<[string]>;
2280
- /**
2281
- * @private
2282
- * This field is private and should not be used, use `tag` instead.
2283
- */
2284
- readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
2285
- name: string;
2286
- message: string;
2287
- stack?: string;
2288
- cause?: unknown;
2289
- };
2290
- "new"(v0: string): {
2291
- readonly tag: ServiceConnectivityError_Tags.Connect;
2292
- readonly inner: Readonly<[string]>;
2293
- /**
2294
- * @private
2295
- * This field is private and should not be used, use `tag` instead.
2296
- */
2297
- readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
2298
- name: string;
2299
- message: string;
2300
- stack?: string;
2301
- cause?: unknown;
2302
- };
2303
- instanceOf(obj: any): obj is {
2304
- readonly tag: ServiceConnectivityError_Tags.Connect;
2305
- readonly inner: Readonly<[string]>;
2306
- /**
2307
- * @private
2308
- * This field is private and should not be used, use `tag` instead.
2309
- */
2310
- readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
2311
- name: string;
2312
- message: string;
2313
- stack?: string;
2314
- cause?: unknown;
2315
- };
2316
- hasInner(obj: any): obj is {
2317
- readonly tag: ServiceConnectivityError_Tags.Connect;
2318
- readonly inner: Readonly<[string]>;
2319
- /**
2320
- * @private
2321
- * This field is private and should not be used, use `tag` instead.
2322
- */
2323
- readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
2324
- name: string;
2325
- message: string;
2326
- stack?: string;
2327
- cause?: unknown;
2328
- };
2329
- getInner(obj: {
2330
- readonly tag: ServiceConnectivityError_Tags.Connect;
2331
- readonly inner: Readonly<[string]>;
2332
- /**
2333
- * @private
2334
- * This field is private and should not be used, use `tag` instead.
2335
- */
2336
- readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
2337
- name: string;
2338
- message: string;
2339
- stack?: string;
2340
- cause?: unknown;
2341
- }): Readonly<[string]>;
2342
- isError(error: unknown): error is Error;
2343
- captureStackTrace(targetObject: object, constructorOpt?: Function): void;
2344
- prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
2345
- stackTraceLimit: number;
2346
- };
2347
- Body: {
2348
- new (v0: string): {
2349
- readonly tag: ServiceConnectivityError_Tags.Body;
2350
- readonly inner: Readonly<[string]>;
2351
- /**
2352
- * @private
2353
- * This field is private and should not be used, use `tag` instead.
2354
- */
2355
- readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
2356
- name: string;
2357
- message: string;
2358
- stack?: string;
2359
- cause?: unknown;
2360
- };
2361
- "new"(v0: string): {
2362
- readonly tag: ServiceConnectivityError_Tags.Body;
2363
- readonly inner: Readonly<[string]>;
2364
- /**
2365
- * @private
2366
- * This field is private and should not be used, use `tag` instead.
2367
- */
2368
- readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
2369
- name: string;
2370
- message: string;
2371
- stack?: string;
2372
- cause?: unknown;
2373
- };
2374
- instanceOf(obj: any): obj is {
2375
- readonly tag: ServiceConnectivityError_Tags.Body;
2376
- readonly inner: Readonly<[string]>;
2377
- /**
2378
- * @private
2379
- * This field is private and should not be used, use `tag` instead.
2380
- */
2381
- readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
2382
- name: string;
2383
- message: string;
2384
- stack?: string;
2385
- cause?: unknown;
2386
- };
2387
- hasInner(obj: any): obj is {
2388
- readonly tag: ServiceConnectivityError_Tags.Body;
2389
- readonly inner: Readonly<[string]>;
2390
- /**
2391
- * @private
2392
- * This field is private and should not be used, use `tag` instead.
2393
- */
2394
- readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
2395
- name: string;
2396
- message: string;
2397
- stack?: string;
2398
- cause?: unknown;
2399
- };
2400
- getInner(obj: {
2401
- readonly tag: ServiceConnectivityError_Tags.Body;
2402
- readonly inner: Readonly<[string]>;
2403
- /**
2404
- * @private
2405
- * This field is private and should not be used, use `tag` instead.
2406
- */
2407
- readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
2408
- name: string;
2409
- message: string;
2410
- stack?: string;
2411
- cause?: unknown;
2412
- }): Readonly<[string]>;
2413
- isError(error: unknown): error is Error;
2414
- captureStackTrace(targetObject: object, constructorOpt?: Function): void;
2415
- prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
2416
- stackTraceLimit: number;
2417
- };
2418
- Decode: {
2419
- new (v0: string): {
2420
- readonly tag: ServiceConnectivityError_Tags.Decode;
2421
- readonly inner: Readonly<[string]>;
2422
- /**
2423
- * @private
2424
- * This field is private and should not be used, use `tag` instead.
2425
- */
2426
- readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
2427
- name: string;
2428
- message: string;
2429
- stack?: string;
2430
- cause?: unknown;
2431
- };
2432
- "new"(v0: string): {
2433
- readonly tag: ServiceConnectivityError_Tags.Decode;
2434
- readonly inner: Readonly<[string]>;
2435
- /**
2436
- * @private
2437
- * This field is private and should not be used, use `tag` instead.
2438
- */
2439
- readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
2440
- name: string;
2441
- message: string;
2442
- stack?: string;
2443
- cause?: unknown;
2444
- };
2445
- instanceOf(obj: any): obj is {
2446
- readonly tag: ServiceConnectivityError_Tags.Decode;
2447
- readonly inner: Readonly<[string]>;
2448
- /**
2449
- * @private
2450
- * This field is private and should not be used, use `tag` instead.
2451
- */
2452
- readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
2453
- name: string;
2454
- message: string;
2455
- stack?: string;
2456
- cause?: unknown;
2457
- };
2458
- hasInner(obj: any): obj is {
2459
- readonly tag: ServiceConnectivityError_Tags.Decode;
2460
- readonly inner: Readonly<[string]>;
2461
- /**
2462
- * @private
2463
- * This field is private and should not be used, use `tag` instead.
2464
- */
2465
- readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
2466
- name: string;
2467
- message: string;
2468
- stack?: string;
2469
- cause?: unknown;
2470
- };
2471
- getInner(obj: {
2472
- readonly tag: ServiceConnectivityError_Tags.Decode;
2473
- readonly inner: Readonly<[string]>;
2474
- /**
2475
- * @private
2476
- * This field is private and should not be used, use `tag` instead.
2477
- */
2478
- readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
2479
- name: string;
2480
- message: string;
2481
- stack?: string;
2482
- cause?: unknown;
2483
- }): Readonly<[string]>;
2484
- isError(error: unknown): error is Error;
2485
- captureStackTrace(targetObject: object, constructorOpt?: Function): void;
2486
- prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
2487
- stackTraceLimit: number;
2488
- };
2489
- Json: {
2490
- new (v0: string): {
2491
- readonly tag: ServiceConnectivityError_Tags.Json;
2492
- readonly inner: Readonly<[string]>;
2493
- /**
2494
- * @private
2495
- * This field is private and should not be used, use `tag` instead.
2496
- */
2497
- readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
2498
- name: string;
2499
- message: string;
2500
- stack?: string;
2501
- cause?: unknown;
2502
- };
2503
- "new"(v0: string): {
2504
- readonly tag: ServiceConnectivityError_Tags.Json;
2505
- readonly inner: Readonly<[string]>;
2506
- /**
2507
- * @private
2508
- * This field is private and should not be used, use `tag` instead.
2509
- */
2510
- readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
2511
- name: string;
2512
- message: string;
2513
- stack?: string;
2514
- cause?: unknown;
2515
- };
2516
- instanceOf(obj: any): obj is {
2517
- readonly tag: ServiceConnectivityError_Tags.Json;
2518
- readonly inner: Readonly<[string]>;
2519
- /**
2520
- * @private
2521
- * This field is private and should not be used, use `tag` instead.
2522
- */
2523
- readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
2524
- name: string;
2525
- message: string;
2526
- stack?: string;
2527
- cause?: unknown;
2528
- };
2529
- hasInner(obj: any): obj is {
2530
- readonly tag: ServiceConnectivityError_Tags.Json;
2531
- readonly inner: Readonly<[string]>;
2532
- /**
2533
- * @private
2534
- * This field is private and should not be used, use `tag` instead.
2535
- */
2536
- readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
2537
- name: string;
2538
- message: string;
2539
- stack?: string;
2540
- cause?: unknown;
2541
- };
2542
- getInner(obj: {
2543
- readonly tag: ServiceConnectivityError_Tags.Json;
2544
- readonly inner: Readonly<[string]>;
2545
- /**
2546
- * @private
2547
- * This field is private and should not be used, use `tag` instead.
2548
- */
2549
- readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
2550
- name: string;
2551
- message: string;
2552
- stack?: string;
2553
- cause?: unknown;
2554
- }): Readonly<[string]>;
2555
- isError(error: unknown): error is Error;
2556
- captureStackTrace(targetObject: object, constructorOpt?: Function): void;
2557
- prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
2558
- stackTraceLimit: number;
2559
- };
2560
- Other: {
2561
- new (v0: string): {
2562
- readonly tag: ServiceConnectivityError_Tags.Other;
2563
- readonly inner: Readonly<[string]>;
2564
- /**
2565
- * @private
2566
- * This field is private and should not be used, use `tag` instead.
2567
- */
2568
- readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
2569
- name: string;
2570
- message: string;
2571
- stack?: string;
2572
- cause?: unknown;
2573
- };
2574
- "new"(v0: string): {
2575
- readonly tag: ServiceConnectivityError_Tags.Other;
2576
- readonly inner: Readonly<[string]>;
2577
- /**
2578
- * @private
2579
- * This field is private and should not be used, use `tag` instead.
2580
- */
2581
- readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
2582
- name: string;
2583
- message: string;
2584
- stack?: string;
2585
- cause?: unknown;
2586
- };
2587
- instanceOf(obj: any): obj is {
2588
- readonly tag: ServiceConnectivityError_Tags.Other;
2589
- readonly inner: Readonly<[string]>;
2590
- /**
2591
- * @private
2592
- * This field is private and should not be used, use `tag` instead.
2593
- */
2594
- readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
2595
- name: string;
2596
- message: string;
2597
- stack?: string;
2598
- cause?: unknown;
2599
- };
2600
- hasInner(obj: any): obj is {
2601
- readonly tag: ServiceConnectivityError_Tags.Other;
2602
- readonly inner: Readonly<[string]>;
2603
- /**
2604
- * @private
2605
- * This field is private and should not be used, use `tag` instead.
2606
- */
2607
- readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
2608
- name: string;
2609
- message: string;
2610
- stack?: string;
2611
- cause?: unknown;
2612
- };
2613
- getInner(obj: {
2614
- readonly tag: ServiceConnectivityError_Tags.Other;
2615
- readonly inner: Readonly<[string]>;
2616
- /**
2617
- * @private
2618
- * This field is private and should not be used, use `tag` instead.
2619
- */
2620
- readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
2621
- name: string;
2622
- message: string;
2623
- stack?: string;
2624
- cause?: unknown;
2625
- }): Readonly<[string]>;
2626
- isError(error: unknown): error is Error;
2627
- captureStackTrace(targetObject: object, constructorOpt?: Function): void;
2628
- prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
2629
- stackTraceLimit: number;
2630
- };
2631
- }>;
2632
- export type ServiceConnectivityError = InstanceType<(typeof ServiceConnectivityError)[keyof Omit<typeof ServiceConnectivityError, 'instanceOf'>]>;
2633
- export declare enum SuccessAction_Tags {
2634
- Aes = "Aes",
2635
- Message = "Message",
2636
- Url = "Url"
2637
- }
2638
- /**
2639
- * Supported success action types
2640
- *
2641
- * Receiving any other (unsupported) success action type will result in a failed parsing,
2642
- * which will abort the LNURL-pay workflow, as per LUD-09.
2643
- */
2644
- export declare const SuccessAction: Readonly<{
2645
- instanceOf: (obj: any) => obj is SuccessAction;
2646
- Aes: {
2647
- new (inner: {
2648
- data: AesSuccessActionData;
2649
- }): {
2650
- readonly tag: SuccessAction_Tags.Aes;
2651
- readonly inner: Readonly<{
2652
- data: AesSuccessActionData;
2653
- }>;
2654
- /**
2655
- * @private
2656
- * This field is private and should not be used, use `tag` instead.
2657
- */
2658
- readonly [uniffiTypeNameSymbol]: "SuccessAction";
2659
- };
2660
- "new"(inner: {
2661
- data: AesSuccessActionData;
2662
- }): {
2663
- readonly tag: SuccessAction_Tags.Aes;
2664
- readonly inner: Readonly<{
2665
- data: AesSuccessActionData;
2666
- }>;
2667
- /**
2668
- * @private
2669
- * This field is private and should not be used, use `tag` instead.
2670
- */
2671
- readonly [uniffiTypeNameSymbol]: "SuccessAction";
2672
- };
2673
- instanceOf(obj: any): obj is {
2674
- readonly tag: SuccessAction_Tags.Aes;
2675
- readonly inner: Readonly<{
2676
- data: AesSuccessActionData;
2677
- }>;
2678
- /**
2679
- * @private
2680
- * This field is private and should not be used, use `tag` instead.
2681
- */
2682
- readonly [uniffiTypeNameSymbol]: "SuccessAction";
2683
- };
2684
- };
2685
- Message: {
2686
- new (inner: {
2687
- data: MessageSuccessActionData;
2688
- }): {
2689
- readonly tag: SuccessAction_Tags.Message;
2690
- readonly inner: Readonly<{
2691
- data: MessageSuccessActionData;
2692
- }>;
2693
- /**
2694
- * @private
2695
- * This field is private and should not be used, use `tag` instead.
2696
- */
2697
- readonly [uniffiTypeNameSymbol]: "SuccessAction";
2698
- };
2699
- "new"(inner: {
2700
- data: MessageSuccessActionData;
2701
- }): {
2702
- readonly tag: SuccessAction_Tags.Message;
2703
- readonly inner: Readonly<{
2704
- data: MessageSuccessActionData;
2705
- }>;
2706
- /**
2707
- * @private
2708
- * This field is private and should not be used, use `tag` instead.
2709
- */
2710
- readonly [uniffiTypeNameSymbol]: "SuccessAction";
2711
- };
2712
- instanceOf(obj: any): obj is {
2713
- readonly tag: SuccessAction_Tags.Message;
2714
- readonly inner: Readonly<{
2715
- data: MessageSuccessActionData;
2716
- }>;
2717
- /**
2718
- * @private
2719
- * This field is private and should not be used, use `tag` instead.
2720
- */
2721
- readonly [uniffiTypeNameSymbol]: "SuccessAction";
2722
- };
2723
- };
2724
- Url: {
2725
- new (inner: {
2726
- data: UrlSuccessActionData;
2727
- }): {
2728
- readonly tag: SuccessAction_Tags.Url;
2729
- readonly inner: Readonly<{
2730
- data: UrlSuccessActionData;
2731
- }>;
2732
- /**
2733
- * @private
2734
- * This field is private and should not be used, use `tag` instead.
2735
- */
2736
- readonly [uniffiTypeNameSymbol]: "SuccessAction";
2737
- };
2738
- "new"(inner: {
2739
- data: UrlSuccessActionData;
2740
- }): {
2741
- readonly tag: SuccessAction_Tags.Url;
2742
- readonly inner: Readonly<{
2743
- data: UrlSuccessActionData;
2744
- }>;
2745
- /**
2746
- * @private
2747
- * This field is private and should not be used, use `tag` instead.
2748
- */
2749
- readonly [uniffiTypeNameSymbol]: "SuccessAction";
2750
- };
2751
- instanceOf(obj: any): obj is {
2752
- readonly tag: SuccessAction_Tags.Url;
2753
- readonly inner: Readonly<{
2754
- data: UrlSuccessActionData;
2755
- }>;
2756
- /**
2757
- * @private
2758
- * This field is private and should not be used, use `tag` instead.
2759
- */
2760
- readonly [uniffiTypeNameSymbol]: "SuccessAction";
2761
- };
2762
- };
2763
- }>;
2764
- /**
2765
- * Supported success action types
2766
- *
2767
- * Receiving any other (unsupported) success action type will result in a failed parsing,
2768
- * which will abort the LNURL-pay workflow, as per LUD-09.
2769
- */
2770
- export type SuccessAction = InstanceType<(typeof SuccessAction)[keyof Omit<typeof SuccessAction, 'instanceOf'>]>;
2771
- export declare enum SuccessActionProcessed_Tags {
2772
- Aes = "Aes",
2773
- Message = "Message",
2774
- Url = "Url"
2775
- }
2776
- /**
2777
- * [`SuccessAction`] where contents are ready to be consumed by the caller
2778
- *
2779
- * Contents are identical to [`SuccessAction`], except for AES where the ciphertext is decrypted.
2780
- */
2781
- export declare const SuccessActionProcessed: Readonly<{
2782
- instanceOf: (obj: any) => obj is SuccessActionProcessed;
2783
- Aes: {
2784
- new (inner: {
2785
- result: AesSuccessActionDataResult;
2786
- }): {
2787
- readonly tag: SuccessActionProcessed_Tags.Aes;
2788
- readonly inner: Readonly<{
2789
- result: AesSuccessActionDataResult;
2790
- }>;
2791
- /**
2792
- * @private
2793
- * This field is private and should not be used, use `tag` instead.
2794
- */
2795
- readonly [uniffiTypeNameSymbol]: "SuccessActionProcessed";
2796
- };
2797
- "new"(inner: {
2798
- result: AesSuccessActionDataResult;
2799
- }): {
2800
- readonly tag: SuccessActionProcessed_Tags.Aes;
2801
- readonly inner: Readonly<{
2802
- result: AesSuccessActionDataResult;
2803
- }>;
2804
- /**
2805
- * @private
2806
- * This field is private and should not be used, use `tag` instead.
2807
- */
2808
- readonly [uniffiTypeNameSymbol]: "SuccessActionProcessed";
2809
- };
2810
- instanceOf(obj: any): obj is {
2811
- readonly tag: SuccessActionProcessed_Tags.Aes;
2812
- readonly inner: Readonly<{
2813
- result: AesSuccessActionDataResult;
2814
- }>;
2815
- /**
2816
- * @private
2817
- * This field is private and should not be used, use `tag` instead.
2818
- */
2819
- readonly [uniffiTypeNameSymbol]: "SuccessActionProcessed";
2820
- };
2821
- };
2822
- Message: {
2823
- new (inner: {
2824
- data: MessageSuccessActionData;
2825
- }): {
2826
- readonly tag: SuccessActionProcessed_Tags.Message;
2827
- readonly inner: Readonly<{
2828
- data: MessageSuccessActionData;
2829
- }>;
2830
- /**
2831
- * @private
2832
- * This field is private and should not be used, use `tag` instead.
2833
- */
2834
- readonly [uniffiTypeNameSymbol]: "SuccessActionProcessed";
2835
- };
2836
- "new"(inner: {
2837
- data: MessageSuccessActionData;
2838
- }): {
2839
- readonly tag: SuccessActionProcessed_Tags.Message;
2840
- readonly inner: Readonly<{
2841
- data: MessageSuccessActionData;
2842
- }>;
2843
- /**
2844
- * @private
2845
- * This field is private and should not be used, use `tag` instead.
2846
- */
2847
- readonly [uniffiTypeNameSymbol]: "SuccessActionProcessed";
2848
- };
2849
- instanceOf(obj: any): obj is {
2850
- readonly tag: SuccessActionProcessed_Tags.Message;
2851
- readonly inner: Readonly<{
2852
- data: MessageSuccessActionData;
2853
- }>;
2854
- /**
2855
- * @private
2856
- * This field is private and should not be used, use `tag` instead.
2857
- */
2858
- readonly [uniffiTypeNameSymbol]: "SuccessActionProcessed";
2859
- };
2860
- };
2861
- Url: {
2862
- new (inner: {
2863
- data: UrlSuccessActionData;
2864
- }): {
2865
- readonly tag: SuccessActionProcessed_Tags.Url;
2866
- readonly inner: Readonly<{
2867
- data: UrlSuccessActionData;
2868
- }>;
2869
- /**
2870
- * @private
2871
- * This field is private and should not be used, use `tag` instead.
2872
- */
2873
- readonly [uniffiTypeNameSymbol]: "SuccessActionProcessed";
2874
- };
2875
- "new"(inner: {
2876
- data: UrlSuccessActionData;
2877
- }): {
2878
- readonly tag: SuccessActionProcessed_Tags.Url;
2879
- readonly inner: Readonly<{
2880
- data: UrlSuccessActionData;
2881
- }>;
2882
- /**
2883
- * @private
2884
- * This field is private and should not be used, use `tag` instead.
2885
- */
2886
- readonly [uniffiTypeNameSymbol]: "SuccessActionProcessed";
2887
- };
2888
- instanceOf(obj: any): obj is {
2889
- readonly tag: SuccessActionProcessed_Tags.Url;
2890
- readonly inner: Readonly<{
2891
- data: UrlSuccessActionData;
2892
- }>;
2893
- /**
2894
- * @private
2895
- * This field is private and should not be used, use `tag` instead.
2896
- */
2897
- readonly [uniffiTypeNameSymbol]: "SuccessActionProcessed";
2898
- };
2899
- };
2900
- }>;
2901
- /**
2902
- * [`SuccessAction`] where contents are ready to be consumed by the caller
2903
- *
2904
- * Contents are identical to [`SuccessAction`], except for AES where the ciphertext is decrypted.
2905
- */
2906
- export type SuccessActionProcessed = InstanceType<(typeof SuccessActionProcessed)[keyof Omit<typeof SuccessActionProcessed, 'instanceOf'>]>;
2907
- export declare enum SyncStorageError_Tags {
2908
- Implementation = "Implementation",
2909
- InitializationError = "InitializationError",
2910
- Serialization = "Serialization"
2911
- }
2912
- /**
2913
- * Errors that can occur during storage operations
2914
- */
2915
- export declare const SyncStorageError: Readonly<{
2916
- instanceOf: (obj: any) => obj is SyncStorageError;
2917
- Implementation: {
2918
- new (v0: string): {
2919
- readonly tag: SyncStorageError_Tags.Implementation;
2920
- readonly inner: Readonly<[string]>;
2921
- /**
2922
- * @private
2923
- * This field is private and should not be used, use `tag` instead.
2924
- */
2925
- readonly [uniffiTypeNameSymbol]: "SyncStorageError";
2926
- name: string;
2927
- message: string;
2928
- stack?: string;
2929
- cause?: unknown;
2930
- };
2931
- "new"(v0: string): {
2932
- readonly tag: SyncStorageError_Tags.Implementation;
2933
- readonly inner: Readonly<[string]>;
2934
- /**
2935
- * @private
2936
- * This field is private and should not be used, use `tag` instead.
2937
- */
2938
- readonly [uniffiTypeNameSymbol]: "SyncStorageError";
2939
- name: string;
2940
- message: string;
2941
- stack?: string;
2942
- cause?: unknown;
2943
- };
2944
- instanceOf(obj: any): obj is {
2945
- readonly tag: SyncStorageError_Tags.Implementation;
2946
- readonly inner: Readonly<[string]>;
2947
- /**
2948
- * @private
2949
- * This field is private and should not be used, use `tag` instead.
2950
- */
2951
- readonly [uniffiTypeNameSymbol]: "SyncStorageError";
2952
- name: string;
2953
- message: string;
2954
- stack?: string;
2955
- cause?: unknown;
2956
- };
2957
- hasInner(obj: any): obj is {
2958
- readonly tag: SyncStorageError_Tags.Implementation;
2959
- readonly inner: Readonly<[string]>;
2960
- /**
2961
- * @private
2962
- * This field is private and should not be used, use `tag` instead.
2963
- */
2964
- readonly [uniffiTypeNameSymbol]: "SyncStorageError";
2965
- name: string;
2966
- message: string;
2967
- stack?: string;
2968
- cause?: unknown;
2969
- };
2970
- getInner(obj: {
2971
- readonly tag: SyncStorageError_Tags.Implementation;
2972
- readonly inner: Readonly<[string]>;
2973
- /**
2974
- * @private
2975
- * This field is private and should not be used, use `tag` instead.
2976
- */
2977
- readonly [uniffiTypeNameSymbol]: "SyncStorageError";
2978
- name: string;
2979
- message: string;
2980
- stack?: string;
2981
- cause?: unknown;
2982
- }): Readonly<[string]>;
2983
- isError(error: unknown): error is Error;
2984
- captureStackTrace(targetObject: object, constructorOpt?: Function): void;
2985
- prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
2986
- stackTraceLimit: number;
2987
- };
2988
- InitializationError: {
2989
- new (v0: string): {
2990
- readonly tag: SyncStorageError_Tags.InitializationError;
2991
- readonly inner: Readonly<[string]>;
2992
- /**
2993
- * @private
2994
- * This field is private and should not be used, use `tag` instead.
2995
- */
2996
- readonly [uniffiTypeNameSymbol]: "SyncStorageError";
2997
- name: string;
2998
- message: string;
2999
- stack?: string;
3000
- cause?: unknown;
3001
- };
3002
- "new"(v0: string): {
3003
- readonly tag: SyncStorageError_Tags.InitializationError;
3004
- readonly inner: Readonly<[string]>;
3005
- /**
3006
- * @private
3007
- * This field is private and should not be used, use `tag` instead.
3008
- */
3009
- readonly [uniffiTypeNameSymbol]: "SyncStorageError";
3010
- name: string;
3011
- message: string;
3012
- stack?: string;
3013
- cause?: unknown;
3014
- };
3015
- instanceOf(obj: any): obj is {
3016
- readonly tag: SyncStorageError_Tags.InitializationError;
3017
- readonly inner: Readonly<[string]>;
3018
- /**
3019
- * @private
3020
- * This field is private and should not be used, use `tag` instead.
3021
- */
3022
- readonly [uniffiTypeNameSymbol]: "SyncStorageError";
3023
- name: string;
3024
- message: string;
3025
- stack?: string;
3026
- cause?: unknown;
3027
- };
3028
- hasInner(obj: any): obj is {
3029
- readonly tag: SyncStorageError_Tags.InitializationError;
3030
- readonly inner: Readonly<[string]>;
3031
- /**
3032
- * @private
3033
- * This field is private and should not be used, use `tag` instead.
3034
- */
3035
- readonly [uniffiTypeNameSymbol]: "SyncStorageError";
3036
- name: string;
3037
- message: string;
3038
- stack?: string;
3039
- cause?: unknown;
3040
- };
3041
- getInner(obj: {
3042
- readonly tag: SyncStorageError_Tags.InitializationError;
3043
- readonly inner: Readonly<[string]>;
3044
- /**
3045
- * @private
3046
- * This field is private and should not be used, use `tag` instead.
3047
- */
3048
- readonly [uniffiTypeNameSymbol]: "SyncStorageError";
3049
- name: string;
3050
- message: string;
3051
- stack?: string;
3052
- cause?: unknown;
3053
- }): Readonly<[string]>;
3054
- isError(error: unknown): error is Error;
3055
- captureStackTrace(targetObject: object, constructorOpt?: Function): void;
3056
- prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
3057
- stackTraceLimit: number;
3058
- };
3059
- Serialization: {
3060
- new (v0: string): {
3061
- readonly tag: SyncStorageError_Tags.Serialization;
3062
- readonly inner: Readonly<[string]>;
3063
- /**
3064
- * @private
3065
- * This field is private and should not be used, use `tag` instead.
3066
- */
3067
- readonly [uniffiTypeNameSymbol]: "SyncStorageError";
3068
- name: string;
3069
- message: string;
3070
- stack?: string;
3071
- cause?: unknown;
3072
- };
3073
- "new"(v0: string): {
3074
- readonly tag: SyncStorageError_Tags.Serialization;
3075
- readonly inner: Readonly<[string]>;
3076
- /**
3077
- * @private
3078
- * This field is private and should not be used, use `tag` instead.
3079
- */
3080
- readonly [uniffiTypeNameSymbol]: "SyncStorageError";
3081
- name: string;
3082
- message: string;
3083
- stack?: string;
3084
- cause?: unknown;
3085
- };
3086
- instanceOf(obj: any): obj is {
3087
- readonly tag: SyncStorageError_Tags.Serialization;
3088
- readonly inner: Readonly<[string]>;
3089
- /**
3090
- * @private
3091
- * This field is private and should not be used, use `tag` instead.
3092
- */
3093
- readonly [uniffiTypeNameSymbol]: "SyncStorageError";
3094
- name: string;
3095
- message: string;
3096
- stack?: string;
3097
- cause?: unknown;
3098
- };
3099
- hasInner(obj: any): obj is {
3100
- readonly tag: SyncStorageError_Tags.Serialization;
3101
- readonly inner: Readonly<[string]>;
3102
- /**
3103
- * @private
3104
- * This field is private and should not be used, use `tag` instead.
3105
- */
3106
- readonly [uniffiTypeNameSymbol]: "SyncStorageError";
3107
- name: string;
3108
- message: string;
3109
- stack?: string;
3110
- cause?: unknown;
3111
- };
3112
- getInner(obj: {
3113
- readonly tag: SyncStorageError_Tags.Serialization;
3114
- readonly inner: Readonly<[string]>;
3115
- /**
3116
- * @private
3117
- * This field is private and should not be used, use `tag` instead.
3118
- */
3119
- readonly [uniffiTypeNameSymbol]: "SyncStorageError";
3120
- name: string;
3121
- message: string;
3122
- stack?: string;
3123
- cause?: unknown;
3124
- }): Readonly<[string]>;
3125
- isError(error: unknown): error is Error;
3126
- captureStackTrace(targetObject: object, constructorOpt?: Function): void;
3127
- prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
3128
- stackTraceLimit: number;
3129
- };
3130
- }>;
3131
- /**
3132
- * Errors that can occur during storage operations
3133
- */
3134
- export type SyncStorageError = InstanceType<(typeof SyncStorageError)[keyof Omit<typeof SyncStorageError, 'instanceOf'>]>;
3135
- /**
3136
- * Trait covering fiat-related functionality
3137
- */
3138
- export interface FiatService {
3139
- /**
3140
- * List all supported fiat currencies for which there is a known exchange rate.
3141
- */
3142
- fetchFiatCurrencies(asyncOpts_?: {
3143
- signal: AbortSignal;
3144
- }): Promise<Array<FiatCurrency>>;
3145
- /**
3146
- * Get the live rates from the server.
3147
- */
3148
- fetchFiatRates(asyncOpts_?: {
3149
- signal: AbortSignal;
3150
- }): Promise<Array<Rate>>;
3151
- }
3152
- /**
3153
- * Trait covering fiat-related functionality
3154
- */
3155
- export declare class FiatServiceImpl extends UniffiAbstractObject implements FiatService {
3156
- readonly [uniffiTypeNameSymbol] = "FiatServiceImpl";
3157
- readonly [destructorGuardSymbol]: UniffiRustArcPtr;
3158
- readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer;
3159
- private constructor();
3160
- /**
3161
- * List all supported fiat currencies for which there is a known exchange rate.
3162
- */
3163
- fetchFiatCurrencies(asyncOpts_?: {
3164
- signal: AbortSignal;
3165
- }): Promise<Array<FiatCurrency>>;
3166
- /**
3167
- * Get the live rates from the server.
3168
- */
3169
- fetchFiatRates(asyncOpts_?: {
3170
- signal: AbortSignal;
3171
- }): Promise<Array<Rate>>;
3172
- /**
3173
- * {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
3174
- */
3175
- uniffiDestroy(): void;
3176
- static instanceOf(obj: any): obj is FiatServiceImpl;
3177
- }
3178
- export interface RestClient {
3179
- /**
3180
- * Makes a GET request and logs on DEBUG.
3181
- * ### Arguments
3182
- * - `url`: the URL on which GET will be called
3183
- * - `headers`: optional headers that will be set on the request
3184
- */
3185
- getRequest(url: string, headers: Map<string, string> | undefined, asyncOpts_?: {
3186
- signal: AbortSignal;
3187
- }): Promise<RestResponse>;
3188
- /**
3189
- * Makes a POST request, and logs on DEBUG.
3190
- * ### Arguments
3191
- * - `url`: the URL on which POST will be called
3192
- * - `headers`: the optional POST headers
3193
- * - `body`: the optional POST body
3194
- */
3195
- postRequest(url: string, headers: Map<string, string> | undefined, body: string | undefined, asyncOpts_?: {
3196
- signal: AbortSignal;
3197
- }): Promise<RestResponse>;
3198
- /**
3199
- * Makes a DELETE request, and logs on DEBUG.
3200
- * ### Arguments
3201
- * - `url`: the URL on which DELETE will be called
3202
- * - `headers`: the optional DELETE headers
3203
- * - `body`: the optional DELETE body
3204
- */
3205
- deleteRequest(url: string, headers: Map<string, string> | undefined, body: string | undefined, asyncOpts_?: {
3206
- signal: AbortSignal;
3207
- }): Promise<RestResponse>;
3208
- }
3209
- export declare class RestClientImpl extends UniffiAbstractObject implements RestClient {
3210
- readonly [uniffiTypeNameSymbol] = "RestClientImpl";
3211
- readonly [destructorGuardSymbol]: UniffiRustArcPtr;
3212
- readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer;
3213
- private constructor();
3214
- /**
3215
- * Makes a GET request and logs on DEBUG.
3216
- * ### Arguments
3217
- * - `url`: the URL on which GET will be called
3218
- * - `headers`: optional headers that will be set on the request
3219
- */
3220
- getRequest(url: string, headers: Map<string, string> | undefined, asyncOpts_?: {
3221
- signal: AbortSignal;
3222
- }): Promise<RestResponse>;
3223
- /**
3224
- * Makes a POST request, and logs on DEBUG.
3225
- * ### Arguments
3226
- * - `url`: the URL on which POST will be called
3227
- * - `headers`: the optional POST headers
3228
- * - `body`: the optional POST body
3229
- */
3230
- postRequest(url: string, headers: Map<string, string> | undefined, body: string | undefined, asyncOpts_?: {
3231
- signal: AbortSignal;
3232
- }): Promise<RestResponse>;
3233
- /**
3234
- * Makes a DELETE request, and logs on DEBUG.
3235
- * ### Arguments
3236
- * - `url`: the URL on which DELETE will be called
3237
- * - `headers`: the optional DELETE headers
3238
- * - `body`: the optional DELETE body
3239
- */
3240
- deleteRequest(url: string, headers: Map<string, string> | undefined, body: string | undefined, asyncOpts_?: {
3241
- signal: AbortSignal;
3242
- }): Promise<RestResponse>;
3243
- /**
3244
- * {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
3245
- */
3246
- uniffiDestroy(): void;
3247
- static instanceOf(obj: any): obj is RestClientImpl;
3248
- }
3249
- export interface SyncStorage {
3250
- addOutgoingChange(record: UnversionedRecordChange, asyncOpts_?: {
3251
- signal: AbortSignal;
3252
- }): Promise</*u64*/ bigint>;
3253
- completeOutgoingSync(record: Record, asyncOpts_?: {
3254
- signal: AbortSignal;
3255
- }): Promise<void>;
3256
- getPendingOutgoingChanges(limit: number, asyncOpts_?: {
3257
- signal: AbortSignal;
3258
- }): Promise<Array<OutgoingChange>>;
3259
- /**
3260
- * Get the revision number of the last synchronized record
3261
- */
3262
- getLastRevision(asyncOpts_?: {
3263
- signal: AbortSignal;
3264
- }): Promise</*u64*/ bigint>;
3265
- /**
3266
- * Insert incoming records from remote sync
3267
- */
3268
- insertIncomingRecords(records: Array<Record>, asyncOpts_?: {
3269
- signal: AbortSignal;
3270
- }): Promise<void>;
3271
- /**
3272
- * Delete an incoming record after it has been processed
3273
- */
3274
- deleteIncomingRecord(record: Record, asyncOpts_?: {
3275
- signal: AbortSignal;
3276
- }): Promise<void>;
3277
- /**
3278
- * Update revision numbers of pending outgoing records to be higher than the given revision
3279
- */
3280
- rebasePendingOutgoingRecords(revision: bigint, asyncOpts_?: {
3281
- signal: AbortSignal;
3282
- }): Promise<void>;
3283
- /**
3284
- * Get incoming records that need to be processed, up to the specified limit
3285
- */
3286
- getIncomingRecords(limit: number, asyncOpts_?: {
3287
- signal: AbortSignal;
3288
- }): Promise<Array<IncomingChange>>;
3289
- /**
3290
- * Get the latest outgoing record if any exists
3291
- */
3292
- getLatestOutgoingChange(asyncOpts_?: {
3293
- signal: AbortSignal;
3294
- }): Promise<OutgoingChange | undefined>;
3295
- /**
3296
- * Update the sync state record from an incoming record
3297
- */
3298
- updateRecordFromIncoming(record: Record, asyncOpts_?: {
3299
- signal: AbortSignal;
3300
- }): Promise<void>;
3301
- }
3302
- export declare class SyncStorageImpl extends UniffiAbstractObject implements SyncStorage {
3303
- readonly [uniffiTypeNameSymbol] = "SyncStorageImpl";
3304
- readonly [destructorGuardSymbol]: UniffiRustArcPtr;
3305
- readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer;
3306
- private constructor();
3307
- addOutgoingChange(record: UnversionedRecordChange, asyncOpts_?: {
3308
- signal: AbortSignal;
3309
- }): Promise</*u64*/ bigint>;
3310
- completeOutgoingSync(record: Record, asyncOpts_?: {
3311
- signal: AbortSignal;
3312
- }): Promise<void>;
3313
- getPendingOutgoingChanges(limit: number, asyncOpts_?: {
3314
- signal: AbortSignal;
3315
- }): Promise<Array<OutgoingChange>>;
3316
- /**
3317
- * Get the revision number of the last synchronized record
3318
- */
3319
- getLastRevision(asyncOpts_?: {
3320
- signal: AbortSignal;
3321
- }): Promise</*u64*/ bigint>;
3322
- /**
3323
- * Insert incoming records from remote sync
3324
- */
3325
- insertIncomingRecords(records: Array<Record>, asyncOpts_?: {
3326
- signal: AbortSignal;
3327
- }): Promise<void>;
3328
- /**
3329
- * Delete an incoming record after it has been processed
3330
- */
3331
- deleteIncomingRecord(record: Record, asyncOpts_?: {
3332
- signal: AbortSignal;
3333
- }): Promise<void>;
3334
- /**
3335
- * Update revision numbers of pending outgoing records to be higher than the given revision
3336
- */
3337
- rebasePendingOutgoingRecords(revision: bigint, asyncOpts_?: {
3338
- signal: AbortSignal;
3339
- }): Promise<void>;
3340
- /**
3341
- * Get incoming records that need to be processed, up to the specified limit
3342
- */
3343
- getIncomingRecords(limit: number, asyncOpts_?: {
3344
- signal: AbortSignal;
3345
- }): Promise<Array<IncomingChange>>;
3346
- /**
3347
- * Get the latest outgoing record if any exists
3348
- */
3349
- getLatestOutgoingChange(asyncOpts_?: {
3350
- signal: AbortSignal;
3351
- }): Promise<OutgoingChange | undefined>;
3352
- /**
3353
- * Update the sync state record from an incoming record
3354
- */
3355
- updateRecordFromIncoming(record: Record, asyncOpts_?: {
3356
- signal: AbortSignal;
3357
- }): Promise<void>;
3358
- /**
3359
- * {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
3360
- */
3361
- uniffiDestroy(): void;
3362
- static instanceOf(obj: any): obj is SyncStorageImpl;
3363
- }
3364
- /**
3365
- * This should be called before anything else.
3366
- *
3367
- * It is likely that this is being done for you by the library's `index.ts`.
3368
- *
3369
- * It checks versions of uniffi between when the Rust scaffolding was generated
3370
- * and when the bindings were generated.
3371
- *
3372
- * It also initializes the machinery to enable Rust to talk back to Javascript.
3373
- */
3374
- declare function uniffiEnsureInitialized(): void;
3375
- declare const _default: Readonly<{
3376
- initialize: typeof uniffiEnsureInitialized;
3377
- converters: {
3378
- FfiConverterTypeAesSuccessActionData: {
3379
- read(from: RustBuffer): AesSuccessActionData;
3380
- write(value: AesSuccessActionData, into: RustBuffer): void;
3381
- allocationSize(value: AesSuccessActionData): number;
3382
- lift(value: UniffiByteArray): AesSuccessActionData;
3383
- lower(value: AesSuccessActionData): UniffiByteArray;
3384
- };
3385
- FfiConverterTypeAesSuccessActionDataDecrypted: {
3386
- read(from: RustBuffer): AesSuccessActionDataDecrypted;
3387
- write(value: AesSuccessActionDataDecrypted, into: RustBuffer): void;
3388
- allocationSize(value: AesSuccessActionDataDecrypted): number;
3389
- lift(value: UniffiByteArray): AesSuccessActionDataDecrypted;
3390
- lower(value: AesSuccessActionDataDecrypted): UniffiByteArray;
3391
- };
3392
- FfiConverterTypeAesSuccessActionDataResult: {
3393
- read(from: RustBuffer): AesSuccessActionDataResult;
3394
- write(value: AesSuccessActionDataResult, into: RustBuffer): void;
3395
- allocationSize(value: AesSuccessActionDataResult): number;
3396
- lift(value: UniffiByteArray): AesSuccessActionDataResult;
3397
- lower(value: AesSuccessActionDataResult): UniffiByteArray;
3398
- };
3399
- FfiConverterTypeAmount: {
3400
- read(from: RustBuffer): Amount;
3401
- write(value: Amount, into: RustBuffer): void;
3402
- allocationSize(value: Amount): number;
3403
- lift(value: UniffiByteArray): Amount;
3404
- lower(value: Amount): UniffiByteArray;
3405
- };
3406
- FfiConverterTypeBip21Details: {
3407
- read(from: RustBuffer): Bip21Details;
3408
- write(value: Bip21Details, into: RustBuffer): void;
3409
- allocationSize(value: Bip21Details): number;
3410
- lift(value: UniffiByteArray): Bip21Details;
3411
- lower(value: Bip21Details): UniffiByteArray;
3412
- };
3413
- FfiConverterTypeBip21Extra: {
3414
- read(from: RustBuffer): Bip21Extra;
3415
- write(value: Bip21Extra, into: RustBuffer): void;
3416
- allocationSize(value: Bip21Extra): number;
3417
- lift(value: UniffiByteArray): Bip21Extra;
3418
- lower(value: Bip21Extra): UniffiByteArray;
3419
- };
3420
- FfiConverterTypeBitcoinAddressDetails: {
3421
- read(from: RustBuffer): BitcoinAddressDetails;
3422
- write(value: BitcoinAddressDetails, into: RustBuffer): void;
3423
- allocationSize(value: BitcoinAddressDetails): number;
3424
- lift(value: UniffiByteArray): BitcoinAddressDetails;
3425
- lower(value: BitcoinAddressDetails): UniffiByteArray;
3426
- };
3427
- FfiConverterTypeBitcoinNetwork: {
3428
- read(from: RustBuffer): BitcoinNetwork;
3429
- write(value: BitcoinNetwork, into: RustBuffer): void;
3430
- allocationSize(value: BitcoinNetwork): number;
3431
- lift(value: UniffiByteArray): BitcoinNetwork;
3432
- lower(value: BitcoinNetwork): UniffiByteArray;
3433
- };
3434
- FfiConverterTypeBolt11Invoice: {
3435
- read(from: RustBuffer): Bolt11Invoice;
3436
- write(value: Bolt11Invoice, into: RustBuffer): void;
3437
- allocationSize(value: Bolt11Invoice): number;
3438
- lift(value: UniffiByteArray): Bolt11Invoice;
3439
- lower(value: Bolt11Invoice): UniffiByteArray;
3440
- };
3441
- FfiConverterTypeBolt11InvoiceDetails: {
3442
- read(from: RustBuffer): Bolt11InvoiceDetails;
3443
- write(value: Bolt11InvoiceDetails, into: RustBuffer): void;
3444
- allocationSize(value: Bolt11InvoiceDetails): number;
3445
- lift(value: UniffiByteArray): Bolt11InvoiceDetails;
3446
- lower(value: Bolt11InvoiceDetails): UniffiByteArray;
3447
- };
3448
- FfiConverterTypeBolt11RouteHint: {
3449
- read(from: RustBuffer): Bolt11RouteHint;
3450
- write(value: Bolt11RouteHint, into: RustBuffer): void;
3451
- allocationSize(value: Bolt11RouteHint): number;
3452
- lift(value: UniffiByteArray): Bolt11RouteHint;
3453
- lower(value: Bolt11RouteHint): UniffiByteArray;
3454
- };
3455
- FfiConverterTypeBolt11RouteHintHop: {
3456
- read(from: RustBuffer): Bolt11RouteHintHop;
3457
- write(value: Bolt11RouteHintHop, into: RustBuffer): void;
3458
- allocationSize(value: Bolt11RouteHintHop): number;
3459
- lift(value: UniffiByteArray): Bolt11RouteHintHop;
3460
- lower(value: Bolt11RouteHintHop): UniffiByteArray;
3461
- };
3462
- FfiConverterTypeBolt12Invoice: {
3463
- read(from: RustBuffer): Bolt12Invoice;
3464
- write(value: Bolt12Invoice, into: RustBuffer): void;
3465
- allocationSize(value: Bolt12Invoice): number;
3466
- lift(value: UniffiByteArray): Bolt12Invoice;
3467
- lower(value: Bolt12Invoice): UniffiByteArray;
3468
- };
3469
- FfiConverterTypeBolt12InvoiceDetails: {
3470
- read(from: RustBuffer): Bolt12InvoiceDetails;
3471
- write(value: Bolt12InvoiceDetails, into: RustBuffer): void;
3472
- allocationSize(value: Bolt12InvoiceDetails): number;
3473
- lift(value: UniffiByteArray): Bolt12InvoiceDetails;
3474
- lower(value: Bolt12InvoiceDetails): UniffiByteArray;
3475
- };
3476
- FfiConverterTypeBolt12InvoiceRequestDetails: {
3477
- read(from: RustBuffer): Bolt12InvoiceRequestDetails;
3478
- write(value: Bolt12InvoiceRequestDetails, into: RustBuffer): void;
3479
- allocationSize(value: Bolt12InvoiceRequestDetails): number;
3480
- lift(value: UniffiByteArray): Bolt12InvoiceRequestDetails;
3481
- lower(value: Bolt12InvoiceRequestDetails): UniffiByteArray;
3482
- };
3483
- FfiConverterTypeBolt12Offer: {
3484
- read(from: RustBuffer): Bolt12Offer;
3485
- write(value: Bolt12Offer, into: RustBuffer): void;
3486
- allocationSize(value: Bolt12Offer): number;
3487
- lift(value: UniffiByteArray): Bolt12Offer;
3488
- lower(value: Bolt12Offer): UniffiByteArray;
3489
- };
3490
- FfiConverterTypeBolt12OfferBlindedPath: {
3491
- read(from: RustBuffer): Bolt12OfferBlindedPath;
3492
- write(value: Bolt12OfferBlindedPath, into: RustBuffer): void;
3493
- allocationSize(value: Bolt12OfferBlindedPath): number;
3494
- lift(value: UniffiByteArray): Bolt12OfferBlindedPath;
3495
- lower(value: Bolt12OfferBlindedPath): UniffiByteArray;
3496
- };
3497
- FfiConverterTypeBolt12OfferDetails: {
3498
- read(from: RustBuffer): Bolt12OfferDetails;
3499
- write(value: Bolt12OfferDetails, into: RustBuffer): void;
3500
- allocationSize(value: Bolt12OfferDetails): number;
3501
- lift(value: UniffiByteArray): Bolt12OfferDetails;
3502
- lower(value: Bolt12OfferDetails): UniffiByteArray;
3503
- };
3504
- FfiConverterTypeCurrencyInfo: {
3505
- read(from: RustBuffer): CurrencyInfo;
3506
- write(value: CurrencyInfo, into: RustBuffer): void;
3507
- allocationSize(value: CurrencyInfo): number;
3508
- lift(value: UniffiByteArray): CurrencyInfo;
3509
- lower(value: CurrencyInfo): UniffiByteArray;
3510
- };
3511
- FfiConverterTypeExternalInputParser: {
3512
- read(from: RustBuffer): ExternalInputParser;
3513
- write(value: ExternalInputParser, into: RustBuffer): void;
3514
- allocationSize(value: ExternalInputParser): number;
3515
- lift(value: UniffiByteArray): ExternalInputParser;
3516
- lower(value: ExternalInputParser): UniffiByteArray;
3517
- };
3518
- FfiConverterTypeFiatCurrency: {
3519
- read(from: RustBuffer): FiatCurrency;
3520
- write(value: FiatCurrency, into: RustBuffer): void;
3521
- allocationSize(value: FiatCurrency): number;
3522
- lift(value: UniffiByteArray): FiatCurrency;
3523
- lower(value: FiatCurrency): UniffiByteArray;
3524
- };
3525
- FfiConverterTypeFiatService: FfiConverterObjectWithCallbacks<FiatService>;
3526
- FfiConverterTypeIncomingChange: {
3527
- read(from: RustBuffer): IncomingChange;
3528
- write(value: IncomingChange, into: RustBuffer): void;
3529
- allocationSize(value: IncomingChange): number;
3530
- lift(value: UniffiByteArray): IncomingChange;
3531
- lower(value: IncomingChange): UniffiByteArray;
3532
- };
3533
- FfiConverterTypeInputType: {
3534
- read(from: RustBuffer): InputType;
3535
- write(value: InputType, into: RustBuffer): void;
3536
- allocationSize(value: InputType): number;
3537
- lift(value: UniffiByteArray): InputType;
3538
- lower(value: InputType): UniffiByteArray;
3539
- };
3540
- FfiConverterTypeLightningAddressDetails: {
3541
- read(from: RustBuffer): LightningAddressDetails;
3542
- write(value: LightningAddressDetails, into: RustBuffer): void;
3543
- allocationSize(value: LightningAddressDetails): number;
3544
- lift(value: UniffiByteArray): LightningAddressDetails;
3545
- lower(value: LightningAddressDetails): UniffiByteArray;
3546
- };
3547
- FfiConverterTypeLnurlAuthRequestDetails: {
3548
- read(from: RustBuffer): LnurlAuthRequestDetails;
3549
- write(value: LnurlAuthRequestDetails, into: RustBuffer): void;
3550
- allocationSize(value: LnurlAuthRequestDetails): number;
3551
- lift(value: UniffiByteArray): LnurlAuthRequestDetails;
3552
- lower(value: LnurlAuthRequestDetails): UniffiByteArray;
3553
- };
3554
- FfiConverterTypeLnurlCallbackStatus: {
3555
- read(from: RustBuffer): LnurlCallbackStatus;
3556
- write(value: LnurlCallbackStatus, into: RustBuffer): void;
3557
- allocationSize(value: LnurlCallbackStatus): number;
3558
- lift(value: UniffiByteArray): LnurlCallbackStatus;
3559
- lower(value: LnurlCallbackStatus): UniffiByteArray;
3560
- };
3561
- FfiConverterTypeLnurlErrorDetails: {
3562
- read(from: RustBuffer): LnurlErrorDetails;
3563
- write(value: LnurlErrorDetails, into: RustBuffer): void;
3564
- allocationSize(value: LnurlErrorDetails): number;
3565
- lift(value: UniffiByteArray): LnurlErrorDetails;
3566
- lower(value: LnurlErrorDetails): UniffiByteArray;
3567
- };
3568
- FfiConverterTypeLnurlPayRequestDetails: {
3569
- read(from: RustBuffer): LnurlPayRequestDetails;
3570
- write(value: LnurlPayRequestDetails, into: RustBuffer): void;
3571
- allocationSize(value: LnurlPayRequestDetails): number;
3572
- lift(value: UniffiByteArray): LnurlPayRequestDetails;
3573
- lower(value: LnurlPayRequestDetails): UniffiByteArray;
3574
- };
3575
- FfiConverterTypeLnurlWithdrawRequestDetails: {
3576
- read(from: RustBuffer): LnurlWithdrawRequestDetails;
3577
- write(value: LnurlWithdrawRequestDetails, into: RustBuffer): void;
3578
- allocationSize(value: LnurlWithdrawRequestDetails): number;
3579
- lift(value: UniffiByteArray): LnurlWithdrawRequestDetails;
3580
- lower(value: LnurlWithdrawRequestDetails): UniffiByteArray;
3581
- };
3582
- FfiConverterTypeLocaleOverrides: {
3583
- read(from: RustBuffer): LocaleOverrides;
3584
- write(value: LocaleOverrides, into: RustBuffer): void;
3585
- allocationSize(value: LocaleOverrides): number;
3586
- lift(value: UniffiByteArray): LocaleOverrides;
3587
- lower(value: LocaleOverrides): UniffiByteArray;
3588
- };
3589
- FfiConverterTypeLocalizedName: {
3590
- read(from: RustBuffer): LocalizedName;
3591
- write(value: LocalizedName, into: RustBuffer): void;
3592
- allocationSize(value: LocalizedName): number;
3593
- lift(value: UniffiByteArray): LocalizedName;
3594
- lower(value: LocalizedName): UniffiByteArray;
3595
- };
3596
- FfiConverterTypeMessageSuccessActionData: {
3597
- read(from: RustBuffer): MessageSuccessActionData;
3598
- write(value: MessageSuccessActionData, into: RustBuffer): void;
3599
- allocationSize(value: MessageSuccessActionData): number;
3600
- lift(value: UniffiByteArray): MessageSuccessActionData;
3601
- lower(value: MessageSuccessActionData): UniffiByteArray;
3602
- };
3603
- FfiConverterTypeOutgoingChange: {
3604
- read(from: RustBuffer): OutgoingChange;
3605
- write(value: OutgoingChange, into: RustBuffer): void;
3606
- allocationSize(value: OutgoingChange): number;
3607
- lift(value: UniffiByteArray): OutgoingChange;
3608
- lower(value: OutgoingChange): UniffiByteArray;
3609
- };
3610
- FfiConverterTypePaymentRequestSource: {
3611
- read(from: RustBuffer): PaymentRequestSource;
3612
- write(value: PaymentRequestSource, into: RustBuffer): void;
3613
- allocationSize(value: PaymentRequestSource): number;
3614
- lift(value: UniffiByteArray): PaymentRequestSource;
3615
- lower(value: PaymentRequestSource): UniffiByteArray;
3616
- };
3617
- FfiConverterTypeRate: {
3618
- read(from: RustBuffer): Rate;
3619
- write(value: Rate, into: RustBuffer): void;
3620
- allocationSize(value: Rate): number;
3621
- lift(value: UniffiByteArray): Rate;
3622
- lower(value: Rate): UniffiByteArray;
3623
- };
3624
- FfiConverterTypeRecord: {
3625
- read(from: RustBuffer): Record;
3626
- write(value: Record, into: RustBuffer): void;
3627
- allocationSize(value: Record): number;
3628
- lift(value: UniffiByteArray): Record;
3629
- lower(value: Record): UniffiByteArray;
3630
- };
3631
- FfiConverterTypeRecordChange: {
3632
- read(from: RustBuffer): RecordChange;
3633
- write(value: RecordChange, into: RustBuffer): void;
3634
- allocationSize(value: RecordChange): number;
3635
- lift(value: UniffiByteArray): RecordChange;
3636
- lower(value: RecordChange): UniffiByteArray;
3637
- };
3638
- FfiConverterTypeRecordId: {
3639
- read(from: RustBuffer): RecordId;
3640
- write(value: RecordId, into: RustBuffer): void;
3641
- allocationSize(value: RecordId): number;
3642
- lift(value: UniffiByteArray): RecordId;
3643
- lower(value: RecordId): UniffiByteArray;
3644
- };
3645
- FfiConverterTypeRestClient: FfiConverterObjectWithCallbacks<RestClient>;
3646
- FfiConverterTypeRestResponse: {
3647
- read(from: RustBuffer): RestResponse;
3648
- write(value: RestResponse, into: RustBuffer): void;
3649
- allocationSize(value: RestResponse): number;
3650
- lift(value: UniffiByteArray): RestResponse;
3651
- lower(value: RestResponse): UniffiByteArray;
3652
- };
3653
- FfiConverterTypeSilentPaymentAddressDetails: {
3654
- read(from: RustBuffer): SilentPaymentAddressDetails;
3655
- write(value: SilentPaymentAddressDetails, into: RustBuffer): void;
3656
- allocationSize(value: SilentPaymentAddressDetails): number;
3657
- lift(value: UniffiByteArray): SilentPaymentAddressDetails;
3658
- lower(value: SilentPaymentAddressDetails): UniffiByteArray;
3659
- };
3660
- FfiConverterTypeSparkAddressDetails: {
3661
- read(from: RustBuffer): SparkAddressDetails;
3662
- write(value: SparkAddressDetails, into: RustBuffer): void;
3663
- allocationSize(value: SparkAddressDetails): number;
3664
- lift(value: UniffiByteArray): SparkAddressDetails;
3665
- lower(value: SparkAddressDetails): UniffiByteArray;
3666
- };
3667
- FfiConverterTypeSparkInvoiceDetails: {
3668
- read(from: RustBuffer): SparkInvoiceDetails;
3669
- write(value: SparkInvoiceDetails, into: RustBuffer): void;
3670
- allocationSize(value: SparkInvoiceDetails): number;
3671
- lift(value: UniffiByteArray): SparkInvoiceDetails;
3672
- lower(value: SparkInvoiceDetails): UniffiByteArray;
3673
- };
3674
- FfiConverterTypeSuccessAction: {
3675
- read(from: RustBuffer): SuccessAction;
3676
- write(value: SuccessAction, into: RustBuffer): void;
3677
- allocationSize(value: SuccessAction): number;
3678
- lift(value: UniffiByteArray): SuccessAction;
3679
- lower(value: SuccessAction): UniffiByteArray;
3680
- };
3681
- FfiConverterTypeSuccessActionProcessed: {
3682
- read(from: RustBuffer): SuccessActionProcessed;
3683
- write(value: SuccessActionProcessed, into: RustBuffer): void;
3684
- allocationSize(value: SuccessActionProcessed): number;
3685
- lift(value: UniffiByteArray): SuccessActionProcessed;
3686
- lower(value: SuccessActionProcessed): UniffiByteArray;
3687
- };
3688
- FfiConverterTypeSymbol: {
3689
- read(from: RustBuffer): Symbol;
3690
- write(value: Symbol, into: RustBuffer): void;
3691
- allocationSize(value: Symbol): number;
3692
- lift(value: UniffiByteArray): Symbol;
3693
- lower(value: Symbol): UniffiByteArray;
3694
- };
3695
- FfiConverterTypeSyncStorage: FfiConverterObjectWithCallbacks<SyncStorage>;
3696
- FfiConverterTypeUnversionedRecordChange: {
3697
- read(from: RustBuffer): UnversionedRecordChange;
3698
- write(value: UnversionedRecordChange, into: RustBuffer): void;
3699
- allocationSize(value: UnversionedRecordChange): number;
3700
- lift(value: UniffiByteArray): UnversionedRecordChange;
3701
- lower(value: UnversionedRecordChange): UniffiByteArray;
3702
- };
3703
- FfiConverterTypeUrlSuccessActionData: {
3704
- read(from: RustBuffer): UrlSuccessActionData;
3705
- write(value: UrlSuccessActionData, into: RustBuffer): void;
3706
- allocationSize(value: UrlSuccessActionData): number;
3707
- lift(value: UniffiByteArray): UrlSuccessActionData;
3708
- lower(value: UrlSuccessActionData): UniffiByteArray;
3709
- };
3710
- FfiConverterTypecommon_u128: {
3711
- lift(value: Uint8Array<ArrayBufferLike>): bigint;
3712
- lower(value: bigint): Uint8Array<ArrayBufferLike>;
3713
- read(from: RustBuffer): bigint;
3714
- write(value: bigint, into: RustBuffer): void;
3715
- allocationSize(value: bigint): number;
3716
- };
3717
- };
3718
- }>;
3719
- export default _default;
3720
- //# sourceMappingURL=breez_sdk_common.d.ts.map