@breeztech/breez-sdk-spark-react-native 0.1.8-dev2 → 0.1.8-dev4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/android/CMakeLists.txt +3 -3
- package/lib/typescript/commonjs/src/generated/breez_sdk_common-ffi.d.ts +152 -0
- package/lib/typescript/commonjs/src/generated/breez_sdk_common-ffi.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/generated/breez_sdk_common.d.ts +3195 -0
- package/lib/typescript/commonjs/src/generated/breez_sdk_common.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/generated/breez_sdk_spark-ffi.d.ts +287 -0
- package/lib/typescript/commonjs/src/generated/breez_sdk_spark-ffi.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/generated/breez_sdk_spark.d.ts +4328 -0
- package/lib/typescript/commonjs/src/generated/breez_sdk_spark.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/generated/breez_sdk_spark_bindings-ffi.d.ts +80 -0
- package/lib/typescript/commonjs/src/generated/breez_sdk_spark_bindings-ffi.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/generated/breez_sdk_spark_bindings.d.ts +16 -0
- package/lib/typescript/commonjs/src/generated/breez_sdk_spark_bindings.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/index.d.ts +13 -0
- package/lib/typescript/commonjs/src/index.d.ts.map +1 -0
- package/lib/typescript/module/src/generated/breez_sdk_common-ffi.d.ts +152 -0
- package/lib/typescript/module/src/generated/breez_sdk_common-ffi.d.ts.map +1 -0
- package/lib/typescript/module/src/generated/breez_sdk_common.d.ts +3195 -0
- package/lib/typescript/module/src/generated/breez_sdk_common.d.ts.map +1 -0
- package/lib/typescript/module/src/generated/breez_sdk_spark-ffi.d.ts +287 -0
- package/lib/typescript/module/src/generated/breez_sdk_spark-ffi.d.ts.map +1 -0
- package/lib/typescript/module/src/generated/breez_sdk_spark.d.ts +4328 -0
- package/lib/typescript/module/src/generated/breez_sdk_spark.d.ts.map +1 -0
- package/lib/typescript/module/src/generated/breez_sdk_spark_bindings-ffi.d.ts +80 -0
- package/lib/typescript/module/src/generated/breez_sdk_spark_bindings-ffi.d.ts.map +1 -0
- package/lib/typescript/module/src/generated/breez_sdk_spark_bindings.d.ts +16 -0
- package/lib/typescript/module/src/generated/breez_sdk_spark_bindings.d.ts.map +1 -0
- package/lib/typescript/module/src/index.d.ts +13 -0
- package/lib/typescript/module/src/index.d.ts.map +1 -0
- package/package.json +4 -3
|
@@ -0,0 +1,3195 @@
|
|
|
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
|
+
* Wrapper around the [`CurrencyInfo`] of a fiat currency
|
|
444
|
+
*/
|
|
445
|
+
export type FiatCurrency = {
|
|
446
|
+
id: string;
|
|
447
|
+
info: CurrencyInfo;
|
|
448
|
+
};
|
|
449
|
+
/**
|
|
450
|
+
* Generated factory for {@link FiatCurrency} record objects.
|
|
451
|
+
*/
|
|
452
|
+
export declare const FiatCurrency: Readonly<{
|
|
453
|
+
/**
|
|
454
|
+
* Create a frozen instance of {@link FiatCurrency}, with defaults specified
|
|
455
|
+
* in Rust, in the {@link breez_sdk_common} crate.
|
|
456
|
+
*/
|
|
457
|
+
create: (partial: Partial<FiatCurrency> & Required<Omit<FiatCurrency, never>>) => FiatCurrency;
|
|
458
|
+
/**
|
|
459
|
+
* Create a frozen instance of {@link FiatCurrency}, with defaults specified
|
|
460
|
+
* in Rust, in the {@link breez_sdk_common} crate.
|
|
461
|
+
*/
|
|
462
|
+
new: (partial: Partial<FiatCurrency> & Required<Omit<FiatCurrency, never>>) => FiatCurrency;
|
|
463
|
+
/**
|
|
464
|
+
* Defaults specified in the {@link breez_sdk_common} crate.
|
|
465
|
+
*/
|
|
466
|
+
defaults: () => Partial<FiatCurrency>;
|
|
467
|
+
}>;
|
|
468
|
+
export type LightningAddressDetails = {
|
|
469
|
+
address: string;
|
|
470
|
+
payRequest: LnurlPayRequestDetails;
|
|
471
|
+
};
|
|
472
|
+
/**
|
|
473
|
+
* Generated factory for {@link LightningAddressDetails} record objects.
|
|
474
|
+
*/
|
|
475
|
+
export declare const LightningAddressDetails: Readonly<{
|
|
476
|
+
/**
|
|
477
|
+
* Create a frozen instance of {@link LightningAddressDetails}, with defaults specified
|
|
478
|
+
* in Rust, in the {@link breez_sdk_common} crate.
|
|
479
|
+
*/
|
|
480
|
+
create: (partial: Partial<LightningAddressDetails> & Required<Omit<LightningAddressDetails, never>>) => LightningAddressDetails;
|
|
481
|
+
/**
|
|
482
|
+
* Create a frozen instance of {@link LightningAddressDetails}, with defaults specified
|
|
483
|
+
* in Rust, in the {@link breez_sdk_common} crate.
|
|
484
|
+
*/
|
|
485
|
+
new: (partial: Partial<LightningAddressDetails> & Required<Omit<LightningAddressDetails, never>>) => LightningAddressDetails;
|
|
486
|
+
/**
|
|
487
|
+
* Defaults specified in the {@link breez_sdk_common} crate.
|
|
488
|
+
*/
|
|
489
|
+
defaults: () => Partial<LightningAddressDetails>;
|
|
490
|
+
}>;
|
|
491
|
+
/**
|
|
492
|
+
* Wrapped in a [`LnurlAuth`], this is the result of [`parse`] when given a LNURL-auth endpoint.
|
|
493
|
+
*
|
|
494
|
+
* It represents the endpoint's parameters for the LNURL workflow.
|
|
495
|
+
*
|
|
496
|
+
* See <https://github.com/lnurl/luds/blob/luds/04.md>
|
|
497
|
+
*/
|
|
498
|
+
export type LnurlAuthRequestDetails = {
|
|
499
|
+
/**
|
|
500
|
+
* Hex encoded 32 bytes of challenge
|
|
501
|
+
*/
|
|
502
|
+
k1: string;
|
|
503
|
+
/**
|
|
504
|
+
* When available, one of: register, login, link, auth
|
|
505
|
+
*/
|
|
506
|
+
action: string | undefined;
|
|
507
|
+
/**
|
|
508
|
+
* Indicates the domain of the LNURL-auth service, to be shown to the user when asking for
|
|
509
|
+
* auth confirmation, as per LUD-04 spec.
|
|
510
|
+
*/
|
|
511
|
+
domain: string;
|
|
512
|
+
/**
|
|
513
|
+
* Indicates the URL of the LNURL-auth service, including the query arguments. This will be
|
|
514
|
+
* extended with the signed challenge and the linking key, then called in the second step of the workflow.
|
|
515
|
+
*/
|
|
516
|
+
url: string;
|
|
517
|
+
};
|
|
518
|
+
/**
|
|
519
|
+
* Generated factory for {@link LnurlAuthRequestDetails} record objects.
|
|
520
|
+
*/
|
|
521
|
+
export declare const LnurlAuthRequestDetails: Readonly<{
|
|
522
|
+
/**
|
|
523
|
+
* Create a frozen instance of {@link LnurlAuthRequestDetails}, with defaults specified
|
|
524
|
+
* in Rust, in the {@link breez_sdk_common} crate.
|
|
525
|
+
*/
|
|
526
|
+
create: (partial: Partial<LnurlAuthRequestDetails> & Required<Omit<LnurlAuthRequestDetails, never>>) => LnurlAuthRequestDetails;
|
|
527
|
+
/**
|
|
528
|
+
* Create a frozen instance of {@link LnurlAuthRequestDetails}, with defaults specified
|
|
529
|
+
* in Rust, in the {@link breez_sdk_common} crate.
|
|
530
|
+
*/
|
|
531
|
+
new: (partial: Partial<LnurlAuthRequestDetails> & Required<Omit<LnurlAuthRequestDetails, never>>) => LnurlAuthRequestDetails;
|
|
532
|
+
/**
|
|
533
|
+
* Defaults specified in the {@link breez_sdk_common} crate.
|
|
534
|
+
*/
|
|
535
|
+
defaults: () => Partial<LnurlAuthRequestDetails>;
|
|
536
|
+
}>;
|
|
537
|
+
/**
|
|
538
|
+
* Wrapped in a [`LnUrlError`], this represents a LNURL-endpoint error.
|
|
539
|
+
*/
|
|
540
|
+
export type LnurlErrorDetails = {
|
|
541
|
+
reason: string;
|
|
542
|
+
};
|
|
543
|
+
/**
|
|
544
|
+
* Generated factory for {@link LnurlErrorDetails} record objects.
|
|
545
|
+
*/
|
|
546
|
+
export declare const LnurlErrorDetails: Readonly<{
|
|
547
|
+
/**
|
|
548
|
+
* Create a frozen instance of {@link LnurlErrorDetails}, with defaults specified
|
|
549
|
+
* in Rust, in the {@link breez_sdk_common} crate.
|
|
550
|
+
*/
|
|
551
|
+
create: (partial: Partial<LnurlErrorDetails> & Required<Omit<LnurlErrorDetails, never>>) => LnurlErrorDetails;
|
|
552
|
+
/**
|
|
553
|
+
* Create a frozen instance of {@link LnurlErrorDetails}, with defaults specified
|
|
554
|
+
* in Rust, in the {@link breez_sdk_common} crate.
|
|
555
|
+
*/
|
|
556
|
+
new: (partial: Partial<LnurlErrorDetails> & Required<Omit<LnurlErrorDetails, never>>) => LnurlErrorDetails;
|
|
557
|
+
/**
|
|
558
|
+
* Defaults specified in the {@link breez_sdk_common} crate.
|
|
559
|
+
*/
|
|
560
|
+
defaults: () => Partial<LnurlErrorDetails>;
|
|
561
|
+
}>;
|
|
562
|
+
export type LnurlPayRequestDetails = {
|
|
563
|
+
callback: string;
|
|
564
|
+
/**
|
|
565
|
+
* The minimum amount, in millisats, that this LNURL-pay endpoint accepts
|
|
566
|
+
*/
|
|
567
|
+
minSendable: bigint;
|
|
568
|
+
/**
|
|
569
|
+
* The maximum amount, in millisats, that this LNURL-pay endpoint accepts
|
|
570
|
+
*/
|
|
571
|
+
maxSendable: bigint;
|
|
572
|
+
/**
|
|
573
|
+
* As per LUD-06, `metadata` is a raw string (e.g. a json representation of the inner map).
|
|
574
|
+
* Use `metadata_vec()` to get the parsed items.
|
|
575
|
+
*/
|
|
576
|
+
metadataStr: string;
|
|
577
|
+
/**
|
|
578
|
+
* The comment length accepted by this endpoint
|
|
579
|
+
*
|
|
580
|
+
* See <https://github.com/lnurl/luds/blob/luds/12.md>
|
|
581
|
+
*/
|
|
582
|
+
commentAllowed: number;
|
|
583
|
+
/**
|
|
584
|
+
* Indicates the domain of the LNURL-pay service, to be shown to the user when asking for
|
|
585
|
+
* payment input, as per LUD-06 spec.
|
|
586
|
+
*
|
|
587
|
+
* Note: this is not the domain of the callback, but the domain of the LNURL-pay endpoint.
|
|
588
|
+
*/
|
|
589
|
+
domain: string;
|
|
590
|
+
url: string;
|
|
591
|
+
/**
|
|
592
|
+
* Optional lightning address if that was used to resolve the lnurl.
|
|
593
|
+
*/
|
|
594
|
+
address: string | undefined;
|
|
595
|
+
/**
|
|
596
|
+
* Value indicating whether the recipient supports Nostr Zaps through NIP-57.
|
|
597
|
+
*
|
|
598
|
+
* See <https://github.com/nostr-protocol/nips/blob/master/57.md>
|
|
599
|
+
*/
|
|
600
|
+
allowsNostr: boolean | undefined;
|
|
601
|
+
/**
|
|
602
|
+
* Optional recipient's lnurl provider's Nostr pubkey for NIP-57. If it exists it should be a
|
|
603
|
+
* valid BIP 340 public key in hex.
|
|
604
|
+
*
|
|
605
|
+
* See <https://github.com/nostr-protocol/nips/blob/master/57.md>
|
|
606
|
+
* See <https://github.com/bitcoin/bips/blob/master/bip-0340.mediawiki>
|
|
607
|
+
*/
|
|
608
|
+
nostrPubkey: string | undefined;
|
|
609
|
+
};
|
|
610
|
+
/**
|
|
611
|
+
* Generated factory for {@link LnurlPayRequestDetails} record objects.
|
|
612
|
+
*/
|
|
613
|
+
export declare const LnurlPayRequestDetails: Readonly<{
|
|
614
|
+
/**
|
|
615
|
+
* Create a frozen instance of {@link LnurlPayRequestDetails}, with defaults specified
|
|
616
|
+
* in Rust, in the {@link breez_sdk_common} crate.
|
|
617
|
+
*/
|
|
618
|
+
create: (partial: Partial<LnurlPayRequestDetails> & Required<Omit<LnurlPayRequestDetails, never>>) => LnurlPayRequestDetails;
|
|
619
|
+
/**
|
|
620
|
+
* Create a frozen instance of {@link LnurlPayRequestDetails}, with defaults specified
|
|
621
|
+
* in Rust, in the {@link breez_sdk_common} crate.
|
|
622
|
+
*/
|
|
623
|
+
new: (partial: Partial<LnurlPayRequestDetails> & Required<Omit<LnurlPayRequestDetails, never>>) => LnurlPayRequestDetails;
|
|
624
|
+
/**
|
|
625
|
+
* Defaults specified in the {@link breez_sdk_common} crate.
|
|
626
|
+
*/
|
|
627
|
+
defaults: () => Partial<LnurlPayRequestDetails>;
|
|
628
|
+
}>;
|
|
629
|
+
export type LnurlWithdrawRequestDetails = {
|
|
630
|
+
callback: string;
|
|
631
|
+
k1: string;
|
|
632
|
+
defaultDescription: string;
|
|
633
|
+
/**
|
|
634
|
+
* The minimum amount, in millisats, that this LNURL-withdraw endpoint accepts
|
|
635
|
+
*/
|
|
636
|
+
minWithdrawable: bigint;
|
|
637
|
+
/**
|
|
638
|
+
* The maximum amount, in millisats, that this LNURL-withdraw endpoint accepts
|
|
639
|
+
*/
|
|
640
|
+
maxWithdrawable: bigint;
|
|
641
|
+
};
|
|
642
|
+
/**
|
|
643
|
+
* Generated factory for {@link LnurlWithdrawRequestDetails} record objects.
|
|
644
|
+
*/
|
|
645
|
+
export declare const LnurlWithdrawRequestDetails: Readonly<{
|
|
646
|
+
/**
|
|
647
|
+
* Create a frozen instance of {@link LnurlWithdrawRequestDetails}, with defaults specified
|
|
648
|
+
* in Rust, in the {@link breez_sdk_common} crate.
|
|
649
|
+
*/
|
|
650
|
+
create: (partial: Partial<LnurlWithdrawRequestDetails> & Required<Omit<LnurlWithdrawRequestDetails, never>>) => LnurlWithdrawRequestDetails;
|
|
651
|
+
/**
|
|
652
|
+
* Create a frozen instance of {@link LnurlWithdrawRequestDetails}, with defaults specified
|
|
653
|
+
* in Rust, in the {@link breez_sdk_common} crate.
|
|
654
|
+
*/
|
|
655
|
+
new: (partial: Partial<LnurlWithdrawRequestDetails> & Required<Omit<LnurlWithdrawRequestDetails, never>>) => LnurlWithdrawRequestDetails;
|
|
656
|
+
/**
|
|
657
|
+
* Defaults specified in the {@link breez_sdk_common} crate.
|
|
658
|
+
*/
|
|
659
|
+
defaults: () => Partial<LnurlWithdrawRequestDetails>;
|
|
660
|
+
}>;
|
|
661
|
+
/**
|
|
662
|
+
* Locale-specific settings for the representation of a currency
|
|
663
|
+
*/
|
|
664
|
+
export type LocaleOverrides = {
|
|
665
|
+
locale: string;
|
|
666
|
+
spacing: /*u32*/ number | undefined;
|
|
667
|
+
symbol: Symbol;
|
|
668
|
+
};
|
|
669
|
+
/**
|
|
670
|
+
* Generated factory for {@link LocaleOverrides} record objects.
|
|
671
|
+
*/
|
|
672
|
+
export declare const LocaleOverrides: Readonly<{
|
|
673
|
+
/**
|
|
674
|
+
* Create a frozen instance of {@link LocaleOverrides}, with defaults specified
|
|
675
|
+
* in Rust, in the {@link breez_sdk_common} crate.
|
|
676
|
+
*/
|
|
677
|
+
create: (partial: Partial<LocaleOverrides> & Required<Omit<LocaleOverrides, never>>) => LocaleOverrides;
|
|
678
|
+
/**
|
|
679
|
+
* Create a frozen instance of {@link LocaleOverrides}, with defaults specified
|
|
680
|
+
* in Rust, in the {@link breez_sdk_common} crate.
|
|
681
|
+
*/
|
|
682
|
+
new: (partial: Partial<LocaleOverrides> & Required<Omit<LocaleOverrides, never>>) => LocaleOverrides;
|
|
683
|
+
/**
|
|
684
|
+
* Defaults specified in the {@link breez_sdk_common} crate.
|
|
685
|
+
*/
|
|
686
|
+
defaults: () => Partial<LocaleOverrides>;
|
|
687
|
+
}>;
|
|
688
|
+
/**
|
|
689
|
+
* Localized name of a currency
|
|
690
|
+
*/
|
|
691
|
+
export type LocalizedName = {
|
|
692
|
+
locale: string;
|
|
693
|
+
name: string;
|
|
694
|
+
};
|
|
695
|
+
/**
|
|
696
|
+
* Generated factory for {@link LocalizedName} record objects.
|
|
697
|
+
*/
|
|
698
|
+
export declare const LocalizedName: Readonly<{
|
|
699
|
+
/**
|
|
700
|
+
* Create a frozen instance of {@link LocalizedName}, with defaults specified
|
|
701
|
+
* in Rust, in the {@link breez_sdk_common} crate.
|
|
702
|
+
*/
|
|
703
|
+
create: (partial: Partial<LocalizedName> & Required<Omit<LocalizedName, never>>) => LocalizedName;
|
|
704
|
+
/**
|
|
705
|
+
* Create a frozen instance of {@link LocalizedName}, with defaults specified
|
|
706
|
+
* in Rust, in the {@link breez_sdk_common} crate.
|
|
707
|
+
*/
|
|
708
|
+
new: (partial: Partial<LocalizedName> & Required<Omit<LocalizedName, never>>) => LocalizedName;
|
|
709
|
+
/**
|
|
710
|
+
* Defaults specified in the {@link breez_sdk_common} crate.
|
|
711
|
+
*/
|
|
712
|
+
defaults: () => Partial<LocalizedName>;
|
|
713
|
+
}>;
|
|
714
|
+
export type MessageSuccessActionData = {
|
|
715
|
+
message: string;
|
|
716
|
+
};
|
|
717
|
+
/**
|
|
718
|
+
* Generated factory for {@link MessageSuccessActionData} record objects.
|
|
719
|
+
*/
|
|
720
|
+
export declare const MessageSuccessActionData: Readonly<{
|
|
721
|
+
/**
|
|
722
|
+
* Create a frozen instance of {@link MessageSuccessActionData}, with defaults specified
|
|
723
|
+
* in Rust, in the {@link breez_sdk_common} crate.
|
|
724
|
+
*/
|
|
725
|
+
create: (partial: Partial<MessageSuccessActionData> & Required<Omit<MessageSuccessActionData, never>>) => MessageSuccessActionData;
|
|
726
|
+
/**
|
|
727
|
+
* Create a frozen instance of {@link MessageSuccessActionData}, with defaults specified
|
|
728
|
+
* in Rust, in the {@link breez_sdk_common} crate.
|
|
729
|
+
*/
|
|
730
|
+
new: (partial: Partial<MessageSuccessActionData> & Required<Omit<MessageSuccessActionData, never>>) => MessageSuccessActionData;
|
|
731
|
+
/**
|
|
732
|
+
* Defaults specified in the {@link breez_sdk_common} crate.
|
|
733
|
+
*/
|
|
734
|
+
defaults: () => Partial<MessageSuccessActionData>;
|
|
735
|
+
}>;
|
|
736
|
+
export type PaymentRequestSource = {
|
|
737
|
+
bip21Uri: string | undefined;
|
|
738
|
+
bip353Address: string | undefined;
|
|
739
|
+
};
|
|
740
|
+
/**
|
|
741
|
+
* Generated factory for {@link PaymentRequestSource} record objects.
|
|
742
|
+
*/
|
|
743
|
+
export declare const PaymentRequestSource: Readonly<{
|
|
744
|
+
/**
|
|
745
|
+
* Create a frozen instance of {@link PaymentRequestSource}, with defaults specified
|
|
746
|
+
* in Rust, in the {@link breez_sdk_common} crate.
|
|
747
|
+
*/
|
|
748
|
+
create: (partial: Partial<PaymentRequestSource> & Required<Omit<PaymentRequestSource, never>>) => PaymentRequestSource;
|
|
749
|
+
/**
|
|
750
|
+
* Create a frozen instance of {@link PaymentRequestSource}, with defaults specified
|
|
751
|
+
* in Rust, in the {@link breez_sdk_common} crate.
|
|
752
|
+
*/
|
|
753
|
+
new: (partial: Partial<PaymentRequestSource> & Required<Omit<PaymentRequestSource, never>>) => PaymentRequestSource;
|
|
754
|
+
/**
|
|
755
|
+
* Defaults specified in the {@link breez_sdk_common} crate.
|
|
756
|
+
*/
|
|
757
|
+
defaults: () => Partial<PaymentRequestSource>;
|
|
758
|
+
}>;
|
|
759
|
+
/**
|
|
760
|
+
* Denominator in an exchange rate
|
|
761
|
+
*/
|
|
762
|
+
export type Rate = {
|
|
763
|
+
coin: string;
|
|
764
|
+
value: number;
|
|
765
|
+
};
|
|
766
|
+
/**
|
|
767
|
+
* Generated factory for {@link Rate} record objects.
|
|
768
|
+
*/
|
|
769
|
+
export declare const Rate: Readonly<{
|
|
770
|
+
/**
|
|
771
|
+
* Create a frozen instance of {@link Rate}, with defaults specified
|
|
772
|
+
* in Rust, in the {@link breez_sdk_common} crate.
|
|
773
|
+
*/
|
|
774
|
+
create: (partial: Partial<Rate> & Required<Omit<Rate, never>>) => Rate;
|
|
775
|
+
/**
|
|
776
|
+
* Create a frozen instance of {@link Rate}, with defaults specified
|
|
777
|
+
* in Rust, in the {@link breez_sdk_common} crate.
|
|
778
|
+
*/
|
|
779
|
+
new: (partial: Partial<Rate> & Required<Omit<Rate, never>>) => Rate;
|
|
780
|
+
/**
|
|
781
|
+
* Defaults specified in the {@link breez_sdk_common} crate.
|
|
782
|
+
*/
|
|
783
|
+
defaults: () => Partial<Rate>;
|
|
784
|
+
}>;
|
|
785
|
+
export type RestResponse = {
|
|
786
|
+
status: number;
|
|
787
|
+
body: string;
|
|
788
|
+
};
|
|
789
|
+
/**
|
|
790
|
+
* Generated factory for {@link RestResponse} record objects.
|
|
791
|
+
*/
|
|
792
|
+
export declare const RestResponse: Readonly<{
|
|
793
|
+
/**
|
|
794
|
+
* Create a frozen instance of {@link RestResponse}, with defaults specified
|
|
795
|
+
* in Rust, in the {@link breez_sdk_common} crate.
|
|
796
|
+
*/
|
|
797
|
+
create: (partial: Partial<RestResponse> & Required<Omit<RestResponse, never>>) => RestResponse;
|
|
798
|
+
/**
|
|
799
|
+
* Create a frozen instance of {@link RestResponse}, with defaults specified
|
|
800
|
+
* in Rust, in the {@link breez_sdk_common} crate.
|
|
801
|
+
*/
|
|
802
|
+
new: (partial: Partial<RestResponse> & Required<Omit<RestResponse, never>>) => RestResponse;
|
|
803
|
+
/**
|
|
804
|
+
* Defaults specified in the {@link breez_sdk_common} crate.
|
|
805
|
+
*/
|
|
806
|
+
defaults: () => Partial<RestResponse>;
|
|
807
|
+
}>;
|
|
808
|
+
export type SatsPaymentDetails = {
|
|
809
|
+
amount: /*u64*/ bigint | undefined;
|
|
810
|
+
};
|
|
811
|
+
/**
|
|
812
|
+
* Generated factory for {@link SatsPaymentDetails} record objects.
|
|
813
|
+
*/
|
|
814
|
+
export declare const SatsPaymentDetails: Readonly<{
|
|
815
|
+
/**
|
|
816
|
+
* Create a frozen instance of {@link SatsPaymentDetails}, with defaults specified
|
|
817
|
+
* in Rust, in the {@link breez_sdk_common} crate.
|
|
818
|
+
*/
|
|
819
|
+
create: (partial: Partial<SatsPaymentDetails> & Required<Omit<SatsPaymentDetails, never>>) => SatsPaymentDetails;
|
|
820
|
+
/**
|
|
821
|
+
* Create a frozen instance of {@link SatsPaymentDetails}, with defaults specified
|
|
822
|
+
* in Rust, in the {@link breez_sdk_common} crate.
|
|
823
|
+
*/
|
|
824
|
+
new: (partial: Partial<SatsPaymentDetails> & Required<Omit<SatsPaymentDetails, never>>) => SatsPaymentDetails;
|
|
825
|
+
/**
|
|
826
|
+
* Defaults specified in the {@link breez_sdk_common} crate.
|
|
827
|
+
*/
|
|
828
|
+
defaults: () => Partial<SatsPaymentDetails>;
|
|
829
|
+
}>;
|
|
830
|
+
export type SilentPaymentAddressDetails = {
|
|
831
|
+
address: string;
|
|
832
|
+
network: BitcoinNetwork;
|
|
833
|
+
source: PaymentRequestSource;
|
|
834
|
+
};
|
|
835
|
+
/**
|
|
836
|
+
* Generated factory for {@link SilentPaymentAddressDetails} record objects.
|
|
837
|
+
*/
|
|
838
|
+
export declare const SilentPaymentAddressDetails: Readonly<{
|
|
839
|
+
/**
|
|
840
|
+
* Create a frozen instance of {@link SilentPaymentAddressDetails}, with defaults specified
|
|
841
|
+
* in Rust, in the {@link breez_sdk_common} crate.
|
|
842
|
+
*/
|
|
843
|
+
create: (partial: Partial<SilentPaymentAddressDetails> & Required<Omit<SilentPaymentAddressDetails, never>>) => SilentPaymentAddressDetails;
|
|
844
|
+
/**
|
|
845
|
+
* Create a frozen instance of {@link SilentPaymentAddressDetails}, with defaults specified
|
|
846
|
+
* in Rust, in the {@link breez_sdk_common} crate.
|
|
847
|
+
*/
|
|
848
|
+
new: (partial: Partial<SilentPaymentAddressDetails> & Required<Omit<SilentPaymentAddressDetails, never>>) => SilentPaymentAddressDetails;
|
|
849
|
+
/**
|
|
850
|
+
* Defaults specified in the {@link breez_sdk_common} crate.
|
|
851
|
+
*/
|
|
852
|
+
defaults: () => Partial<SilentPaymentAddressDetails>;
|
|
853
|
+
}>;
|
|
854
|
+
export type SparkAddress = {
|
|
855
|
+
identityPublicKey: string;
|
|
856
|
+
network: BitcoinNetwork;
|
|
857
|
+
sparkInvoiceFields: SparkInvoiceFields | undefined;
|
|
858
|
+
signature: string | undefined;
|
|
859
|
+
};
|
|
860
|
+
/**
|
|
861
|
+
* Generated factory for {@link SparkAddress} record objects.
|
|
862
|
+
*/
|
|
863
|
+
export declare const SparkAddress: Readonly<{
|
|
864
|
+
/**
|
|
865
|
+
* Create a frozen instance of {@link SparkAddress}, with defaults specified
|
|
866
|
+
* in Rust, in the {@link breez_sdk_common} crate.
|
|
867
|
+
*/
|
|
868
|
+
create: (partial: Partial<SparkAddress> & Required<Omit<SparkAddress, never>>) => SparkAddress;
|
|
869
|
+
/**
|
|
870
|
+
* Create a frozen instance of {@link SparkAddress}, with defaults specified
|
|
871
|
+
* in Rust, in the {@link breez_sdk_common} crate.
|
|
872
|
+
*/
|
|
873
|
+
new: (partial: Partial<SparkAddress> & Required<Omit<SparkAddress, never>>) => SparkAddress;
|
|
874
|
+
/**
|
|
875
|
+
* Defaults specified in the {@link breez_sdk_common} crate.
|
|
876
|
+
*/
|
|
877
|
+
defaults: () => Partial<SparkAddress>;
|
|
878
|
+
}>;
|
|
879
|
+
export type SparkAddressDetails = {
|
|
880
|
+
address: string;
|
|
881
|
+
decodedAddress: SparkAddress;
|
|
882
|
+
source: PaymentRequestSource;
|
|
883
|
+
};
|
|
884
|
+
/**
|
|
885
|
+
* Generated factory for {@link SparkAddressDetails} record objects.
|
|
886
|
+
*/
|
|
887
|
+
export declare const SparkAddressDetails: Readonly<{
|
|
888
|
+
/**
|
|
889
|
+
* Create a frozen instance of {@link SparkAddressDetails}, with defaults specified
|
|
890
|
+
* in Rust, in the {@link breez_sdk_common} crate.
|
|
891
|
+
*/
|
|
892
|
+
create: (partial: Partial<SparkAddressDetails> & Required<Omit<SparkAddressDetails, never>>) => SparkAddressDetails;
|
|
893
|
+
/**
|
|
894
|
+
* Create a frozen instance of {@link SparkAddressDetails}, with defaults specified
|
|
895
|
+
* in Rust, in the {@link breez_sdk_common} crate.
|
|
896
|
+
*/
|
|
897
|
+
new: (partial: Partial<SparkAddressDetails> & Required<Omit<SparkAddressDetails, never>>) => SparkAddressDetails;
|
|
898
|
+
/**
|
|
899
|
+
* Defaults specified in the {@link breez_sdk_common} crate.
|
|
900
|
+
*/
|
|
901
|
+
defaults: () => Partial<SparkAddressDetails>;
|
|
902
|
+
}>;
|
|
903
|
+
export type SparkInvoiceFields = {
|
|
904
|
+
id: string;
|
|
905
|
+
version: number;
|
|
906
|
+
memo: string | undefined;
|
|
907
|
+
senderPublicKey: string | undefined;
|
|
908
|
+
expiryTime: /*u64*/ bigint | undefined;
|
|
909
|
+
paymentType: SparkAddressPaymentType | undefined;
|
|
910
|
+
};
|
|
911
|
+
/**
|
|
912
|
+
* Generated factory for {@link SparkInvoiceFields} record objects.
|
|
913
|
+
*/
|
|
914
|
+
export declare const SparkInvoiceFields: Readonly<{
|
|
915
|
+
/**
|
|
916
|
+
* Create a frozen instance of {@link SparkInvoiceFields}, with defaults specified
|
|
917
|
+
* in Rust, in the {@link breez_sdk_common} crate.
|
|
918
|
+
*/
|
|
919
|
+
create: (partial: Partial<SparkInvoiceFields> & Required<Omit<SparkInvoiceFields, never>>) => SparkInvoiceFields;
|
|
920
|
+
/**
|
|
921
|
+
* Create a frozen instance of {@link SparkInvoiceFields}, with defaults specified
|
|
922
|
+
* in Rust, in the {@link breez_sdk_common} crate.
|
|
923
|
+
*/
|
|
924
|
+
new: (partial: Partial<SparkInvoiceFields> & Required<Omit<SparkInvoiceFields, never>>) => SparkInvoiceFields;
|
|
925
|
+
/**
|
|
926
|
+
* Defaults specified in the {@link breez_sdk_common} crate.
|
|
927
|
+
*/
|
|
928
|
+
defaults: () => Partial<SparkInvoiceFields>;
|
|
929
|
+
}>;
|
|
930
|
+
/**
|
|
931
|
+
* Settings for the symbol representation of a currency
|
|
932
|
+
*/
|
|
933
|
+
export type Symbol = {
|
|
934
|
+
grapheme: string | undefined;
|
|
935
|
+
template: string | undefined;
|
|
936
|
+
rtl: boolean | undefined;
|
|
937
|
+
position: /*u32*/ number | undefined;
|
|
938
|
+
};
|
|
939
|
+
/**
|
|
940
|
+
* Generated factory for {@link Symbol} record objects.
|
|
941
|
+
*/
|
|
942
|
+
export declare const Symbol: Readonly<{
|
|
943
|
+
/**
|
|
944
|
+
* Create a frozen instance of {@link Symbol}, with defaults specified
|
|
945
|
+
* in Rust, in the {@link breez_sdk_common} crate.
|
|
946
|
+
*/
|
|
947
|
+
create: (partial: Partial<Symbol> & Required<Omit<Symbol, never>>) => Symbol;
|
|
948
|
+
/**
|
|
949
|
+
* Create a frozen instance of {@link Symbol}, with defaults specified
|
|
950
|
+
* in Rust, in the {@link breez_sdk_common} crate.
|
|
951
|
+
*/
|
|
952
|
+
new: (partial: Partial<Symbol> & Required<Omit<Symbol, never>>) => Symbol;
|
|
953
|
+
/**
|
|
954
|
+
* Defaults specified in the {@link breez_sdk_common} crate.
|
|
955
|
+
*/
|
|
956
|
+
defaults: () => Partial<Symbol>;
|
|
957
|
+
}>;
|
|
958
|
+
export type TokensPaymentDetails = {
|
|
959
|
+
tokenIdentifier: string | undefined;
|
|
960
|
+
amount: /*u64*/ bigint | undefined;
|
|
961
|
+
};
|
|
962
|
+
/**
|
|
963
|
+
* Generated factory for {@link TokensPaymentDetails} record objects.
|
|
964
|
+
*/
|
|
965
|
+
export declare const TokensPaymentDetails: Readonly<{
|
|
966
|
+
/**
|
|
967
|
+
* Create a frozen instance of {@link TokensPaymentDetails}, with defaults specified
|
|
968
|
+
* in Rust, in the {@link breez_sdk_common} crate.
|
|
969
|
+
*/
|
|
970
|
+
create: (partial: Partial<TokensPaymentDetails> & Required<Omit<TokensPaymentDetails, never>>) => TokensPaymentDetails;
|
|
971
|
+
/**
|
|
972
|
+
* Create a frozen instance of {@link TokensPaymentDetails}, with defaults specified
|
|
973
|
+
* in Rust, in the {@link breez_sdk_common} crate.
|
|
974
|
+
*/
|
|
975
|
+
new: (partial: Partial<TokensPaymentDetails> & Required<Omit<TokensPaymentDetails, never>>) => TokensPaymentDetails;
|
|
976
|
+
/**
|
|
977
|
+
* Defaults specified in the {@link breez_sdk_common} crate.
|
|
978
|
+
*/
|
|
979
|
+
defaults: () => Partial<TokensPaymentDetails>;
|
|
980
|
+
}>;
|
|
981
|
+
export type UrlSuccessActionData = {
|
|
982
|
+
/**
|
|
983
|
+
* Contents description, up to 144 characters
|
|
984
|
+
*/
|
|
985
|
+
description: string;
|
|
986
|
+
/**
|
|
987
|
+
* URL of the success action
|
|
988
|
+
*/
|
|
989
|
+
url: string;
|
|
990
|
+
/**
|
|
991
|
+
* Indicates the success URL domain matches the LNURL callback domain.
|
|
992
|
+
*
|
|
993
|
+
* See <https://github.com/lnurl/luds/blob/luds/09.md>
|
|
994
|
+
*/
|
|
995
|
+
matchesCallbackDomain: boolean;
|
|
996
|
+
};
|
|
997
|
+
/**
|
|
998
|
+
* Generated factory for {@link UrlSuccessActionData} record objects.
|
|
999
|
+
*/
|
|
1000
|
+
export declare const UrlSuccessActionData: Readonly<{
|
|
1001
|
+
/**
|
|
1002
|
+
* Create a frozen instance of {@link UrlSuccessActionData}, with defaults specified
|
|
1003
|
+
* in Rust, in the {@link breez_sdk_common} crate.
|
|
1004
|
+
*/
|
|
1005
|
+
create: (partial: Partial<UrlSuccessActionData> & Required<Omit<UrlSuccessActionData, never>>) => UrlSuccessActionData;
|
|
1006
|
+
/**
|
|
1007
|
+
* Create a frozen instance of {@link UrlSuccessActionData}, with defaults specified
|
|
1008
|
+
* in Rust, in the {@link breez_sdk_common} crate.
|
|
1009
|
+
*/
|
|
1010
|
+
new: (partial: Partial<UrlSuccessActionData> & Required<Omit<UrlSuccessActionData, never>>) => UrlSuccessActionData;
|
|
1011
|
+
/**
|
|
1012
|
+
* Defaults specified in the {@link breez_sdk_common} crate.
|
|
1013
|
+
*/
|
|
1014
|
+
defaults: () => Partial<UrlSuccessActionData>;
|
|
1015
|
+
}>;
|
|
1016
|
+
export declare enum AesSuccessActionDataResult_Tags {
|
|
1017
|
+
Decrypted = "Decrypted",
|
|
1018
|
+
ErrorStatus = "ErrorStatus"
|
|
1019
|
+
}
|
|
1020
|
+
/**
|
|
1021
|
+
* Result of decryption of [`AesSuccessActionData`] payload
|
|
1022
|
+
*/
|
|
1023
|
+
export declare const AesSuccessActionDataResult: Readonly<{
|
|
1024
|
+
instanceOf: (obj: any) => obj is AesSuccessActionDataResult;
|
|
1025
|
+
Decrypted: {
|
|
1026
|
+
new (inner: {
|
|
1027
|
+
data: AesSuccessActionDataDecrypted;
|
|
1028
|
+
}): {
|
|
1029
|
+
readonly tag: AesSuccessActionDataResult_Tags.Decrypted;
|
|
1030
|
+
readonly inner: Readonly<{
|
|
1031
|
+
data: AesSuccessActionDataDecrypted;
|
|
1032
|
+
}>;
|
|
1033
|
+
/**
|
|
1034
|
+
* @private
|
|
1035
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1036
|
+
*/
|
|
1037
|
+
readonly [uniffiTypeNameSymbol]: "AesSuccessActionDataResult";
|
|
1038
|
+
};
|
|
1039
|
+
"new"(inner: {
|
|
1040
|
+
data: AesSuccessActionDataDecrypted;
|
|
1041
|
+
}): {
|
|
1042
|
+
readonly tag: AesSuccessActionDataResult_Tags.Decrypted;
|
|
1043
|
+
readonly inner: Readonly<{
|
|
1044
|
+
data: AesSuccessActionDataDecrypted;
|
|
1045
|
+
}>;
|
|
1046
|
+
/**
|
|
1047
|
+
* @private
|
|
1048
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1049
|
+
*/
|
|
1050
|
+
readonly [uniffiTypeNameSymbol]: "AesSuccessActionDataResult";
|
|
1051
|
+
};
|
|
1052
|
+
instanceOf(obj: any): obj is {
|
|
1053
|
+
readonly tag: AesSuccessActionDataResult_Tags.Decrypted;
|
|
1054
|
+
readonly inner: Readonly<{
|
|
1055
|
+
data: AesSuccessActionDataDecrypted;
|
|
1056
|
+
}>;
|
|
1057
|
+
/**
|
|
1058
|
+
* @private
|
|
1059
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1060
|
+
*/
|
|
1061
|
+
readonly [uniffiTypeNameSymbol]: "AesSuccessActionDataResult";
|
|
1062
|
+
};
|
|
1063
|
+
};
|
|
1064
|
+
ErrorStatus: {
|
|
1065
|
+
new (inner: {
|
|
1066
|
+
reason: string;
|
|
1067
|
+
}): {
|
|
1068
|
+
readonly tag: AesSuccessActionDataResult_Tags.ErrorStatus;
|
|
1069
|
+
readonly inner: Readonly<{
|
|
1070
|
+
reason: string;
|
|
1071
|
+
}>;
|
|
1072
|
+
/**
|
|
1073
|
+
* @private
|
|
1074
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1075
|
+
*/
|
|
1076
|
+
readonly [uniffiTypeNameSymbol]: "AesSuccessActionDataResult";
|
|
1077
|
+
};
|
|
1078
|
+
"new"(inner: {
|
|
1079
|
+
reason: string;
|
|
1080
|
+
}): {
|
|
1081
|
+
readonly tag: AesSuccessActionDataResult_Tags.ErrorStatus;
|
|
1082
|
+
readonly inner: Readonly<{
|
|
1083
|
+
reason: string;
|
|
1084
|
+
}>;
|
|
1085
|
+
/**
|
|
1086
|
+
* @private
|
|
1087
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1088
|
+
*/
|
|
1089
|
+
readonly [uniffiTypeNameSymbol]: "AesSuccessActionDataResult";
|
|
1090
|
+
};
|
|
1091
|
+
instanceOf(obj: any): obj is {
|
|
1092
|
+
readonly tag: AesSuccessActionDataResult_Tags.ErrorStatus;
|
|
1093
|
+
readonly inner: Readonly<{
|
|
1094
|
+
reason: string;
|
|
1095
|
+
}>;
|
|
1096
|
+
/**
|
|
1097
|
+
* @private
|
|
1098
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1099
|
+
*/
|
|
1100
|
+
readonly [uniffiTypeNameSymbol]: "AesSuccessActionDataResult";
|
|
1101
|
+
};
|
|
1102
|
+
};
|
|
1103
|
+
}>;
|
|
1104
|
+
/**
|
|
1105
|
+
* Result of decryption of [`AesSuccessActionData`] payload
|
|
1106
|
+
*/
|
|
1107
|
+
export type AesSuccessActionDataResult = InstanceType<(typeof AesSuccessActionDataResult)[keyof Omit<typeof AesSuccessActionDataResult, 'instanceOf'>]>;
|
|
1108
|
+
export declare enum Amount_Tags {
|
|
1109
|
+
Bitcoin = "Bitcoin",
|
|
1110
|
+
Currency = "Currency"
|
|
1111
|
+
}
|
|
1112
|
+
export declare const Amount: Readonly<{
|
|
1113
|
+
instanceOf: (obj: any) => obj is Amount;
|
|
1114
|
+
Bitcoin: {
|
|
1115
|
+
new (inner: {
|
|
1116
|
+
amountMsat: bigint;
|
|
1117
|
+
}): {
|
|
1118
|
+
readonly tag: Amount_Tags.Bitcoin;
|
|
1119
|
+
readonly inner: Readonly<{
|
|
1120
|
+
amountMsat: bigint;
|
|
1121
|
+
}>;
|
|
1122
|
+
/**
|
|
1123
|
+
* @private
|
|
1124
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1125
|
+
*/
|
|
1126
|
+
readonly [uniffiTypeNameSymbol]: "Amount";
|
|
1127
|
+
};
|
|
1128
|
+
"new"(inner: {
|
|
1129
|
+
amountMsat: bigint;
|
|
1130
|
+
}): {
|
|
1131
|
+
readonly tag: Amount_Tags.Bitcoin;
|
|
1132
|
+
readonly inner: Readonly<{
|
|
1133
|
+
amountMsat: bigint;
|
|
1134
|
+
}>;
|
|
1135
|
+
/**
|
|
1136
|
+
* @private
|
|
1137
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1138
|
+
*/
|
|
1139
|
+
readonly [uniffiTypeNameSymbol]: "Amount";
|
|
1140
|
+
};
|
|
1141
|
+
instanceOf(obj: any): obj is {
|
|
1142
|
+
readonly tag: Amount_Tags.Bitcoin;
|
|
1143
|
+
readonly inner: Readonly<{
|
|
1144
|
+
amountMsat: bigint;
|
|
1145
|
+
}>;
|
|
1146
|
+
/**
|
|
1147
|
+
* @private
|
|
1148
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1149
|
+
*/
|
|
1150
|
+
readonly [uniffiTypeNameSymbol]: "Amount";
|
|
1151
|
+
};
|
|
1152
|
+
};
|
|
1153
|
+
Currency: {
|
|
1154
|
+
new (inner: {
|
|
1155
|
+
/**
|
|
1156
|
+
* The currency that the amount is denominated in.
|
|
1157
|
+
*/ iso4217Code: string;
|
|
1158
|
+
/**
|
|
1159
|
+
* The amount in the currency unit adjusted by the ISO 4712 exponent (e.g., USD cents).
|
|
1160
|
+
*/ fractionalAmount: bigint;
|
|
1161
|
+
}): {
|
|
1162
|
+
readonly tag: Amount_Tags.Currency;
|
|
1163
|
+
readonly inner: Readonly<{
|
|
1164
|
+
iso4217Code: string;
|
|
1165
|
+
fractionalAmount: bigint;
|
|
1166
|
+
}>;
|
|
1167
|
+
/**
|
|
1168
|
+
* @private
|
|
1169
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1170
|
+
*/
|
|
1171
|
+
readonly [uniffiTypeNameSymbol]: "Amount";
|
|
1172
|
+
};
|
|
1173
|
+
"new"(inner: {
|
|
1174
|
+
/**
|
|
1175
|
+
* The currency that the amount is denominated in.
|
|
1176
|
+
*/ iso4217Code: string;
|
|
1177
|
+
/**
|
|
1178
|
+
* The amount in the currency unit adjusted by the ISO 4712 exponent (e.g., USD cents).
|
|
1179
|
+
*/ fractionalAmount: bigint;
|
|
1180
|
+
}): {
|
|
1181
|
+
readonly tag: Amount_Tags.Currency;
|
|
1182
|
+
readonly inner: Readonly<{
|
|
1183
|
+
iso4217Code: string;
|
|
1184
|
+
fractionalAmount: bigint;
|
|
1185
|
+
}>;
|
|
1186
|
+
/**
|
|
1187
|
+
* @private
|
|
1188
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1189
|
+
*/
|
|
1190
|
+
readonly [uniffiTypeNameSymbol]: "Amount";
|
|
1191
|
+
};
|
|
1192
|
+
instanceOf(obj: any): obj is {
|
|
1193
|
+
readonly tag: Amount_Tags.Currency;
|
|
1194
|
+
readonly inner: Readonly<{
|
|
1195
|
+
iso4217Code: string;
|
|
1196
|
+
fractionalAmount: bigint;
|
|
1197
|
+
}>;
|
|
1198
|
+
/**
|
|
1199
|
+
* @private
|
|
1200
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1201
|
+
*/
|
|
1202
|
+
readonly [uniffiTypeNameSymbol]: "Amount";
|
|
1203
|
+
};
|
|
1204
|
+
};
|
|
1205
|
+
}>;
|
|
1206
|
+
export type Amount = InstanceType<(typeof Amount)[keyof Omit<typeof Amount, 'instanceOf'>]>;
|
|
1207
|
+
export declare enum BitcoinNetwork {
|
|
1208
|
+
/**
|
|
1209
|
+
* Mainnet
|
|
1210
|
+
*/
|
|
1211
|
+
Bitcoin = 0,
|
|
1212
|
+
Testnet3 = 1,
|
|
1213
|
+
Testnet4 = 2,
|
|
1214
|
+
Signet = 3,
|
|
1215
|
+
Regtest = 4
|
|
1216
|
+
}
|
|
1217
|
+
export declare enum InputType_Tags {
|
|
1218
|
+
BitcoinAddress = "BitcoinAddress",
|
|
1219
|
+
Bolt11Invoice = "Bolt11Invoice",
|
|
1220
|
+
Bolt12Invoice = "Bolt12Invoice",
|
|
1221
|
+
Bolt12Offer = "Bolt12Offer",
|
|
1222
|
+
LightningAddress = "LightningAddress",
|
|
1223
|
+
LnurlPay = "LnurlPay",
|
|
1224
|
+
SilentPaymentAddress = "SilentPaymentAddress",
|
|
1225
|
+
LnurlAuth = "LnurlAuth",
|
|
1226
|
+
Url = "Url",
|
|
1227
|
+
Bip21 = "Bip21",
|
|
1228
|
+
Bolt12InvoiceRequest = "Bolt12InvoiceRequest",
|
|
1229
|
+
LnurlWithdraw = "LnurlWithdraw",
|
|
1230
|
+
SparkAddress = "SparkAddress"
|
|
1231
|
+
}
|
|
1232
|
+
export declare const InputType: Readonly<{
|
|
1233
|
+
instanceOf: (obj: any) => obj is InputType;
|
|
1234
|
+
BitcoinAddress: {
|
|
1235
|
+
new (v0: BitcoinAddressDetails): {
|
|
1236
|
+
readonly tag: InputType_Tags.BitcoinAddress;
|
|
1237
|
+
readonly inner: Readonly<[BitcoinAddressDetails]>;
|
|
1238
|
+
/**
|
|
1239
|
+
* @private
|
|
1240
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1241
|
+
*/
|
|
1242
|
+
readonly [uniffiTypeNameSymbol]: "InputType";
|
|
1243
|
+
};
|
|
1244
|
+
"new"(v0: BitcoinAddressDetails): {
|
|
1245
|
+
readonly tag: InputType_Tags.BitcoinAddress;
|
|
1246
|
+
readonly inner: Readonly<[BitcoinAddressDetails]>;
|
|
1247
|
+
/**
|
|
1248
|
+
* @private
|
|
1249
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1250
|
+
*/
|
|
1251
|
+
readonly [uniffiTypeNameSymbol]: "InputType";
|
|
1252
|
+
};
|
|
1253
|
+
instanceOf(obj: any): obj is {
|
|
1254
|
+
readonly tag: InputType_Tags.BitcoinAddress;
|
|
1255
|
+
readonly inner: Readonly<[BitcoinAddressDetails]>;
|
|
1256
|
+
/**
|
|
1257
|
+
* @private
|
|
1258
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1259
|
+
*/
|
|
1260
|
+
readonly [uniffiTypeNameSymbol]: "InputType";
|
|
1261
|
+
};
|
|
1262
|
+
};
|
|
1263
|
+
Bolt11Invoice: {
|
|
1264
|
+
new (v0: Bolt11InvoiceDetails): {
|
|
1265
|
+
readonly tag: InputType_Tags.Bolt11Invoice;
|
|
1266
|
+
readonly inner: Readonly<[Bolt11InvoiceDetails]>;
|
|
1267
|
+
/**
|
|
1268
|
+
* @private
|
|
1269
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1270
|
+
*/
|
|
1271
|
+
readonly [uniffiTypeNameSymbol]: "InputType";
|
|
1272
|
+
};
|
|
1273
|
+
"new"(v0: Bolt11InvoiceDetails): {
|
|
1274
|
+
readonly tag: InputType_Tags.Bolt11Invoice;
|
|
1275
|
+
readonly inner: Readonly<[Bolt11InvoiceDetails]>;
|
|
1276
|
+
/**
|
|
1277
|
+
* @private
|
|
1278
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1279
|
+
*/
|
|
1280
|
+
readonly [uniffiTypeNameSymbol]: "InputType";
|
|
1281
|
+
};
|
|
1282
|
+
instanceOf(obj: any): obj is {
|
|
1283
|
+
readonly tag: InputType_Tags.Bolt11Invoice;
|
|
1284
|
+
readonly inner: Readonly<[Bolt11InvoiceDetails]>;
|
|
1285
|
+
/**
|
|
1286
|
+
* @private
|
|
1287
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1288
|
+
*/
|
|
1289
|
+
readonly [uniffiTypeNameSymbol]: "InputType";
|
|
1290
|
+
};
|
|
1291
|
+
};
|
|
1292
|
+
Bolt12Invoice: {
|
|
1293
|
+
new (v0: Bolt12InvoiceDetails): {
|
|
1294
|
+
readonly tag: InputType_Tags.Bolt12Invoice;
|
|
1295
|
+
readonly inner: Readonly<[Bolt12InvoiceDetails]>;
|
|
1296
|
+
/**
|
|
1297
|
+
* @private
|
|
1298
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1299
|
+
*/
|
|
1300
|
+
readonly [uniffiTypeNameSymbol]: "InputType";
|
|
1301
|
+
};
|
|
1302
|
+
"new"(v0: Bolt12InvoiceDetails): {
|
|
1303
|
+
readonly tag: InputType_Tags.Bolt12Invoice;
|
|
1304
|
+
readonly inner: Readonly<[Bolt12InvoiceDetails]>;
|
|
1305
|
+
/**
|
|
1306
|
+
* @private
|
|
1307
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1308
|
+
*/
|
|
1309
|
+
readonly [uniffiTypeNameSymbol]: "InputType";
|
|
1310
|
+
};
|
|
1311
|
+
instanceOf(obj: any): obj is {
|
|
1312
|
+
readonly tag: InputType_Tags.Bolt12Invoice;
|
|
1313
|
+
readonly inner: Readonly<[Bolt12InvoiceDetails]>;
|
|
1314
|
+
/**
|
|
1315
|
+
* @private
|
|
1316
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1317
|
+
*/
|
|
1318
|
+
readonly [uniffiTypeNameSymbol]: "InputType";
|
|
1319
|
+
};
|
|
1320
|
+
};
|
|
1321
|
+
Bolt12Offer: {
|
|
1322
|
+
new (v0: Bolt12OfferDetails): {
|
|
1323
|
+
readonly tag: InputType_Tags.Bolt12Offer;
|
|
1324
|
+
readonly inner: Readonly<[Bolt12OfferDetails]>;
|
|
1325
|
+
/**
|
|
1326
|
+
* @private
|
|
1327
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1328
|
+
*/
|
|
1329
|
+
readonly [uniffiTypeNameSymbol]: "InputType";
|
|
1330
|
+
};
|
|
1331
|
+
"new"(v0: Bolt12OfferDetails): {
|
|
1332
|
+
readonly tag: InputType_Tags.Bolt12Offer;
|
|
1333
|
+
readonly inner: Readonly<[Bolt12OfferDetails]>;
|
|
1334
|
+
/**
|
|
1335
|
+
* @private
|
|
1336
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1337
|
+
*/
|
|
1338
|
+
readonly [uniffiTypeNameSymbol]: "InputType";
|
|
1339
|
+
};
|
|
1340
|
+
instanceOf(obj: any): obj is {
|
|
1341
|
+
readonly tag: InputType_Tags.Bolt12Offer;
|
|
1342
|
+
readonly inner: Readonly<[Bolt12OfferDetails]>;
|
|
1343
|
+
/**
|
|
1344
|
+
* @private
|
|
1345
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1346
|
+
*/
|
|
1347
|
+
readonly [uniffiTypeNameSymbol]: "InputType";
|
|
1348
|
+
};
|
|
1349
|
+
};
|
|
1350
|
+
LightningAddress: {
|
|
1351
|
+
new (v0: LightningAddressDetails): {
|
|
1352
|
+
readonly tag: InputType_Tags.LightningAddress;
|
|
1353
|
+
readonly inner: Readonly<[LightningAddressDetails]>;
|
|
1354
|
+
/**
|
|
1355
|
+
* @private
|
|
1356
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1357
|
+
*/
|
|
1358
|
+
readonly [uniffiTypeNameSymbol]: "InputType";
|
|
1359
|
+
};
|
|
1360
|
+
"new"(v0: LightningAddressDetails): {
|
|
1361
|
+
readonly tag: InputType_Tags.LightningAddress;
|
|
1362
|
+
readonly inner: Readonly<[LightningAddressDetails]>;
|
|
1363
|
+
/**
|
|
1364
|
+
* @private
|
|
1365
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1366
|
+
*/
|
|
1367
|
+
readonly [uniffiTypeNameSymbol]: "InputType";
|
|
1368
|
+
};
|
|
1369
|
+
instanceOf(obj: any): obj is {
|
|
1370
|
+
readonly tag: InputType_Tags.LightningAddress;
|
|
1371
|
+
readonly inner: Readonly<[LightningAddressDetails]>;
|
|
1372
|
+
/**
|
|
1373
|
+
* @private
|
|
1374
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1375
|
+
*/
|
|
1376
|
+
readonly [uniffiTypeNameSymbol]: "InputType";
|
|
1377
|
+
};
|
|
1378
|
+
};
|
|
1379
|
+
LnurlPay: {
|
|
1380
|
+
new (v0: LnurlPayRequestDetails): {
|
|
1381
|
+
readonly tag: InputType_Tags.LnurlPay;
|
|
1382
|
+
readonly inner: Readonly<[LnurlPayRequestDetails]>;
|
|
1383
|
+
/**
|
|
1384
|
+
* @private
|
|
1385
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1386
|
+
*/
|
|
1387
|
+
readonly [uniffiTypeNameSymbol]: "InputType";
|
|
1388
|
+
};
|
|
1389
|
+
"new"(v0: LnurlPayRequestDetails): {
|
|
1390
|
+
readonly tag: InputType_Tags.LnurlPay;
|
|
1391
|
+
readonly inner: Readonly<[LnurlPayRequestDetails]>;
|
|
1392
|
+
/**
|
|
1393
|
+
* @private
|
|
1394
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1395
|
+
*/
|
|
1396
|
+
readonly [uniffiTypeNameSymbol]: "InputType";
|
|
1397
|
+
};
|
|
1398
|
+
instanceOf(obj: any): obj is {
|
|
1399
|
+
readonly tag: InputType_Tags.LnurlPay;
|
|
1400
|
+
readonly inner: Readonly<[LnurlPayRequestDetails]>;
|
|
1401
|
+
/**
|
|
1402
|
+
* @private
|
|
1403
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1404
|
+
*/
|
|
1405
|
+
readonly [uniffiTypeNameSymbol]: "InputType";
|
|
1406
|
+
};
|
|
1407
|
+
};
|
|
1408
|
+
SilentPaymentAddress: {
|
|
1409
|
+
new (v0: SilentPaymentAddressDetails): {
|
|
1410
|
+
readonly tag: InputType_Tags.SilentPaymentAddress;
|
|
1411
|
+
readonly inner: Readonly<[SilentPaymentAddressDetails]>;
|
|
1412
|
+
/**
|
|
1413
|
+
* @private
|
|
1414
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1415
|
+
*/
|
|
1416
|
+
readonly [uniffiTypeNameSymbol]: "InputType";
|
|
1417
|
+
};
|
|
1418
|
+
"new"(v0: SilentPaymentAddressDetails): {
|
|
1419
|
+
readonly tag: InputType_Tags.SilentPaymentAddress;
|
|
1420
|
+
readonly inner: Readonly<[SilentPaymentAddressDetails]>;
|
|
1421
|
+
/**
|
|
1422
|
+
* @private
|
|
1423
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1424
|
+
*/
|
|
1425
|
+
readonly [uniffiTypeNameSymbol]: "InputType";
|
|
1426
|
+
};
|
|
1427
|
+
instanceOf(obj: any): obj is {
|
|
1428
|
+
readonly tag: InputType_Tags.SilentPaymentAddress;
|
|
1429
|
+
readonly inner: Readonly<[SilentPaymentAddressDetails]>;
|
|
1430
|
+
/**
|
|
1431
|
+
* @private
|
|
1432
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1433
|
+
*/
|
|
1434
|
+
readonly [uniffiTypeNameSymbol]: "InputType";
|
|
1435
|
+
};
|
|
1436
|
+
};
|
|
1437
|
+
LnurlAuth: {
|
|
1438
|
+
new (v0: LnurlAuthRequestDetails): {
|
|
1439
|
+
readonly tag: InputType_Tags.LnurlAuth;
|
|
1440
|
+
readonly inner: Readonly<[LnurlAuthRequestDetails]>;
|
|
1441
|
+
/**
|
|
1442
|
+
* @private
|
|
1443
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1444
|
+
*/
|
|
1445
|
+
readonly [uniffiTypeNameSymbol]: "InputType";
|
|
1446
|
+
};
|
|
1447
|
+
"new"(v0: LnurlAuthRequestDetails): {
|
|
1448
|
+
readonly tag: InputType_Tags.LnurlAuth;
|
|
1449
|
+
readonly inner: Readonly<[LnurlAuthRequestDetails]>;
|
|
1450
|
+
/**
|
|
1451
|
+
* @private
|
|
1452
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1453
|
+
*/
|
|
1454
|
+
readonly [uniffiTypeNameSymbol]: "InputType";
|
|
1455
|
+
};
|
|
1456
|
+
instanceOf(obj: any): obj is {
|
|
1457
|
+
readonly tag: InputType_Tags.LnurlAuth;
|
|
1458
|
+
readonly inner: Readonly<[LnurlAuthRequestDetails]>;
|
|
1459
|
+
/**
|
|
1460
|
+
* @private
|
|
1461
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1462
|
+
*/
|
|
1463
|
+
readonly [uniffiTypeNameSymbol]: "InputType";
|
|
1464
|
+
};
|
|
1465
|
+
};
|
|
1466
|
+
Url: {
|
|
1467
|
+
new (v0: string): {
|
|
1468
|
+
readonly tag: InputType_Tags.Url;
|
|
1469
|
+
readonly inner: Readonly<[string]>;
|
|
1470
|
+
/**
|
|
1471
|
+
* @private
|
|
1472
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1473
|
+
*/
|
|
1474
|
+
readonly [uniffiTypeNameSymbol]: "InputType";
|
|
1475
|
+
};
|
|
1476
|
+
"new"(v0: string): {
|
|
1477
|
+
readonly tag: InputType_Tags.Url;
|
|
1478
|
+
readonly inner: Readonly<[string]>;
|
|
1479
|
+
/**
|
|
1480
|
+
* @private
|
|
1481
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1482
|
+
*/
|
|
1483
|
+
readonly [uniffiTypeNameSymbol]: "InputType";
|
|
1484
|
+
};
|
|
1485
|
+
instanceOf(obj: any): obj is {
|
|
1486
|
+
readonly tag: InputType_Tags.Url;
|
|
1487
|
+
readonly inner: Readonly<[string]>;
|
|
1488
|
+
/**
|
|
1489
|
+
* @private
|
|
1490
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1491
|
+
*/
|
|
1492
|
+
readonly [uniffiTypeNameSymbol]: "InputType";
|
|
1493
|
+
};
|
|
1494
|
+
};
|
|
1495
|
+
Bip21: {
|
|
1496
|
+
new (v0: Bip21Details): {
|
|
1497
|
+
readonly tag: InputType_Tags.Bip21;
|
|
1498
|
+
readonly inner: Readonly<[Bip21Details]>;
|
|
1499
|
+
/**
|
|
1500
|
+
* @private
|
|
1501
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1502
|
+
*/
|
|
1503
|
+
readonly [uniffiTypeNameSymbol]: "InputType";
|
|
1504
|
+
};
|
|
1505
|
+
"new"(v0: Bip21Details): {
|
|
1506
|
+
readonly tag: InputType_Tags.Bip21;
|
|
1507
|
+
readonly inner: Readonly<[Bip21Details]>;
|
|
1508
|
+
/**
|
|
1509
|
+
* @private
|
|
1510
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1511
|
+
*/
|
|
1512
|
+
readonly [uniffiTypeNameSymbol]: "InputType";
|
|
1513
|
+
};
|
|
1514
|
+
instanceOf(obj: any): obj is {
|
|
1515
|
+
readonly tag: InputType_Tags.Bip21;
|
|
1516
|
+
readonly inner: Readonly<[Bip21Details]>;
|
|
1517
|
+
/**
|
|
1518
|
+
* @private
|
|
1519
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1520
|
+
*/
|
|
1521
|
+
readonly [uniffiTypeNameSymbol]: "InputType";
|
|
1522
|
+
};
|
|
1523
|
+
};
|
|
1524
|
+
Bolt12InvoiceRequest: {
|
|
1525
|
+
new (v0: Bolt12InvoiceRequestDetails): {
|
|
1526
|
+
readonly tag: InputType_Tags.Bolt12InvoiceRequest;
|
|
1527
|
+
readonly inner: Readonly<[Bolt12InvoiceRequestDetails]>;
|
|
1528
|
+
/**
|
|
1529
|
+
* @private
|
|
1530
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1531
|
+
*/
|
|
1532
|
+
readonly [uniffiTypeNameSymbol]: "InputType";
|
|
1533
|
+
};
|
|
1534
|
+
"new"(v0: Bolt12InvoiceRequestDetails): {
|
|
1535
|
+
readonly tag: InputType_Tags.Bolt12InvoiceRequest;
|
|
1536
|
+
readonly inner: Readonly<[Bolt12InvoiceRequestDetails]>;
|
|
1537
|
+
/**
|
|
1538
|
+
* @private
|
|
1539
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1540
|
+
*/
|
|
1541
|
+
readonly [uniffiTypeNameSymbol]: "InputType";
|
|
1542
|
+
};
|
|
1543
|
+
instanceOf(obj: any): obj is {
|
|
1544
|
+
readonly tag: InputType_Tags.Bolt12InvoiceRequest;
|
|
1545
|
+
readonly inner: Readonly<[Bolt12InvoiceRequestDetails]>;
|
|
1546
|
+
/**
|
|
1547
|
+
* @private
|
|
1548
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1549
|
+
*/
|
|
1550
|
+
readonly [uniffiTypeNameSymbol]: "InputType";
|
|
1551
|
+
};
|
|
1552
|
+
};
|
|
1553
|
+
LnurlWithdraw: {
|
|
1554
|
+
new (v0: LnurlWithdrawRequestDetails): {
|
|
1555
|
+
readonly tag: InputType_Tags.LnurlWithdraw;
|
|
1556
|
+
readonly inner: Readonly<[LnurlWithdrawRequestDetails]>;
|
|
1557
|
+
/**
|
|
1558
|
+
* @private
|
|
1559
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1560
|
+
*/
|
|
1561
|
+
readonly [uniffiTypeNameSymbol]: "InputType";
|
|
1562
|
+
};
|
|
1563
|
+
"new"(v0: LnurlWithdrawRequestDetails): {
|
|
1564
|
+
readonly tag: InputType_Tags.LnurlWithdraw;
|
|
1565
|
+
readonly inner: Readonly<[LnurlWithdrawRequestDetails]>;
|
|
1566
|
+
/**
|
|
1567
|
+
* @private
|
|
1568
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1569
|
+
*/
|
|
1570
|
+
readonly [uniffiTypeNameSymbol]: "InputType";
|
|
1571
|
+
};
|
|
1572
|
+
instanceOf(obj: any): obj is {
|
|
1573
|
+
readonly tag: InputType_Tags.LnurlWithdraw;
|
|
1574
|
+
readonly inner: Readonly<[LnurlWithdrawRequestDetails]>;
|
|
1575
|
+
/**
|
|
1576
|
+
* @private
|
|
1577
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1578
|
+
*/
|
|
1579
|
+
readonly [uniffiTypeNameSymbol]: "InputType";
|
|
1580
|
+
};
|
|
1581
|
+
};
|
|
1582
|
+
SparkAddress: {
|
|
1583
|
+
new (v0: SparkAddressDetails): {
|
|
1584
|
+
readonly tag: InputType_Tags.SparkAddress;
|
|
1585
|
+
readonly inner: Readonly<[SparkAddressDetails]>;
|
|
1586
|
+
/**
|
|
1587
|
+
* @private
|
|
1588
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1589
|
+
*/
|
|
1590
|
+
readonly [uniffiTypeNameSymbol]: "InputType";
|
|
1591
|
+
};
|
|
1592
|
+
"new"(v0: SparkAddressDetails): {
|
|
1593
|
+
readonly tag: InputType_Tags.SparkAddress;
|
|
1594
|
+
readonly inner: Readonly<[SparkAddressDetails]>;
|
|
1595
|
+
/**
|
|
1596
|
+
* @private
|
|
1597
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1598
|
+
*/
|
|
1599
|
+
readonly [uniffiTypeNameSymbol]: "InputType";
|
|
1600
|
+
};
|
|
1601
|
+
instanceOf(obj: any): obj is {
|
|
1602
|
+
readonly tag: InputType_Tags.SparkAddress;
|
|
1603
|
+
readonly inner: Readonly<[SparkAddressDetails]>;
|
|
1604
|
+
/**
|
|
1605
|
+
* @private
|
|
1606
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1607
|
+
*/
|
|
1608
|
+
readonly [uniffiTypeNameSymbol]: "InputType";
|
|
1609
|
+
};
|
|
1610
|
+
};
|
|
1611
|
+
}>;
|
|
1612
|
+
export type InputType = InstanceType<(typeof InputType)[keyof Omit<typeof InputType, 'instanceOf'>]>;
|
|
1613
|
+
export declare enum LnurlCallbackStatus_Tags {
|
|
1614
|
+
Ok = "Ok",
|
|
1615
|
+
ErrorStatus = "ErrorStatus"
|
|
1616
|
+
}
|
|
1617
|
+
/**
|
|
1618
|
+
* Contains the result of the entire LNURL interaction, as reported by the LNURL endpoint.
|
|
1619
|
+
*
|
|
1620
|
+
* * `Ok` indicates the interaction with the endpoint was valid, and the endpoint
|
|
1621
|
+
* - started to pay the invoice asynchronously in the case of LNURL-withdraw,
|
|
1622
|
+
* - verified the client signature in the case of LNURL-auth
|
|
1623
|
+
* * `Error` indicates a generic issue the LNURL endpoint encountered, including a freetext
|
|
1624
|
+
* description of the reason.
|
|
1625
|
+
*
|
|
1626
|
+
* 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>
|
|
1627
|
+
*/
|
|
1628
|
+
export declare const LnurlCallbackStatus: Readonly<{
|
|
1629
|
+
instanceOf: (obj: any) => obj is LnurlCallbackStatus;
|
|
1630
|
+
Ok: {
|
|
1631
|
+
new (): {
|
|
1632
|
+
readonly tag: LnurlCallbackStatus_Tags.Ok;
|
|
1633
|
+
/**
|
|
1634
|
+
* @private
|
|
1635
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1636
|
+
*/
|
|
1637
|
+
readonly [uniffiTypeNameSymbol]: "LnurlCallbackStatus";
|
|
1638
|
+
};
|
|
1639
|
+
"new"(): {
|
|
1640
|
+
readonly tag: LnurlCallbackStatus_Tags.Ok;
|
|
1641
|
+
/**
|
|
1642
|
+
* @private
|
|
1643
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1644
|
+
*/
|
|
1645
|
+
readonly [uniffiTypeNameSymbol]: "LnurlCallbackStatus";
|
|
1646
|
+
};
|
|
1647
|
+
instanceOf(obj: any): obj is {
|
|
1648
|
+
readonly tag: LnurlCallbackStatus_Tags.Ok;
|
|
1649
|
+
/**
|
|
1650
|
+
* @private
|
|
1651
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1652
|
+
*/
|
|
1653
|
+
readonly [uniffiTypeNameSymbol]: "LnurlCallbackStatus";
|
|
1654
|
+
};
|
|
1655
|
+
};
|
|
1656
|
+
ErrorStatus: {
|
|
1657
|
+
new (inner: {
|
|
1658
|
+
errorDetails: LnurlErrorDetails;
|
|
1659
|
+
}): {
|
|
1660
|
+
readonly tag: LnurlCallbackStatus_Tags.ErrorStatus;
|
|
1661
|
+
readonly inner: Readonly<{
|
|
1662
|
+
errorDetails: LnurlErrorDetails;
|
|
1663
|
+
}>;
|
|
1664
|
+
/**
|
|
1665
|
+
* @private
|
|
1666
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1667
|
+
*/
|
|
1668
|
+
readonly [uniffiTypeNameSymbol]: "LnurlCallbackStatus";
|
|
1669
|
+
};
|
|
1670
|
+
"new"(inner: {
|
|
1671
|
+
errorDetails: LnurlErrorDetails;
|
|
1672
|
+
}): {
|
|
1673
|
+
readonly tag: LnurlCallbackStatus_Tags.ErrorStatus;
|
|
1674
|
+
readonly inner: Readonly<{
|
|
1675
|
+
errorDetails: LnurlErrorDetails;
|
|
1676
|
+
}>;
|
|
1677
|
+
/**
|
|
1678
|
+
* @private
|
|
1679
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1680
|
+
*/
|
|
1681
|
+
readonly [uniffiTypeNameSymbol]: "LnurlCallbackStatus";
|
|
1682
|
+
};
|
|
1683
|
+
instanceOf(obj: any): obj is {
|
|
1684
|
+
readonly tag: LnurlCallbackStatus_Tags.ErrorStatus;
|
|
1685
|
+
readonly inner: Readonly<{
|
|
1686
|
+
errorDetails: LnurlErrorDetails;
|
|
1687
|
+
}>;
|
|
1688
|
+
/**
|
|
1689
|
+
* @private
|
|
1690
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1691
|
+
*/
|
|
1692
|
+
readonly [uniffiTypeNameSymbol]: "LnurlCallbackStatus";
|
|
1693
|
+
};
|
|
1694
|
+
};
|
|
1695
|
+
}>;
|
|
1696
|
+
/**
|
|
1697
|
+
* Contains the result of the entire LNURL interaction, as reported by the LNURL endpoint.
|
|
1698
|
+
*
|
|
1699
|
+
* * `Ok` indicates the interaction with the endpoint was valid, and the endpoint
|
|
1700
|
+
* - started to pay the invoice asynchronously in the case of LNURL-withdraw,
|
|
1701
|
+
* - verified the client signature in the case of LNURL-auth
|
|
1702
|
+
* * `Error` indicates a generic issue the LNURL endpoint encountered, including a freetext
|
|
1703
|
+
* description of the reason.
|
|
1704
|
+
*
|
|
1705
|
+
* 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>
|
|
1706
|
+
*/
|
|
1707
|
+
export type LnurlCallbackStatus = InstanceType<(typeof LnurlCallbackStatus)[keyof Omit<typeof LnurlCallbackStatus, 'instanceOf'>]>;
|
|
1708
|
+
export declare enum ServiceConnectivityError_Tags {
|
|
1709
|
+
Builder = "Builder",
|
|
1710
|
+
Redirect = "Redirect",
|
|
1711
|
+
Status = "Status",
|
|
1712
|
+
Timeout = "Timeout",
|
|
1713
|
+
Request = "Request",
|
|
1714
|
+
Connect = "Connect",
|
|
1715
|
+
Body = "Body",
|
|
1716
|
+
Decode = "Decode",
|
|
1717
|
+
Json = "Json",
|
|
1718
|
+
Other = "Other"
|
|
1719
|
+
}
|
|
1720
|
+
export declare const ServiceConnectivityError: Readonly<{
|
|
1721
|
+
instanceOf: (obj: any) => obj is ServiceConnectivityError;
|
|
1722
|
+
Builder: {
|
|
1723
|
+
new (v0: string): {
|
|
1724
|
+
readonly tag: ServiceConnectivityError_Tags.Builder;
|
|
1725
|
+
readonly inner: Readonly<[string]>;
|
|
1726
|
+
/**
|
|
1727
|
+
* @private
|
|
1728
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1729
|
+
*/
|
|
1730
|
+
readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
|
|
1731
|
+
name: string;
|
|
1732
|
+
message: string;
|
|
1733
|
+
stack?: string;
|
|
1734
|
+
cause?: unknown;
|
|
1735
|
+
};
|
|
1736
|
+
"new"(v0: string): {
|
|
1737
|
+
readonly tag: ServiceConnectivityError_Tags.Builder;
|
|
1738
|
+
readonly inner: Readonly<[string]>;
|
|
1739
|
+
/**
|
|
1740
|
+
* @private
|
|
1741
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1742
|
+
*/
|
|
1743
|
+
readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
|
|
1744
|
+
name: string;
|
|
1745
|
+
message: string;
|
|
1746
|
+
stack?: string;
|
|
1747
|
+
cause?: unknown;
|
|
1748
|
+
};
|
|
1749
|
+
instanceOf(obj: any): obj is {
|
|
1750
|
+
readonly tag: ServiceConnectivityError_Tags.Builder;
|
|
1751
|
+
readonly inner: Readonly<[string]>;
|
|
1752
|
+
/**
|
|
1753
|
+
* @private
|
|
1754
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1755
|
+
*/
|
|
1756
|
+
readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
|
|
1757
|
+
name: string;
|
|
1758
|
+
message: string;
|
|
1759
|
+
stack?: string;
|
|
1760
|
+
cause?: unknown;
|
|
1761
|
+
};
|
|
1762
|
+
hasInner(obj: any): obj is {
|
|
1763
|
+
readonly tag: ServiceConnectivityError_Tags.Builder;
|
|
1764
|
+
readonly inner: Readonly<[string]>;
|
|
1765
|
+
/**
|
|
1766
|
+
* @private
|
|
1767
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1768
|
+
*/
|
|
1769
|
+
readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
|
|
1770
|
+
name: string;
|
|
1771
|
+
message: string;
|
|
1772
|
+
stack?: string;
|
|
1773
|
+
cause?: unknown;
|
|
1774
|
+
};
|
|
1775
|
+
getInner(obj: {
|
|
1776
|
+
readonly tag: ServiceConnectivityError_Tags.Builder;
|
|
1777
|
+
readonly inner: Readonly<[string]>;
|
|
1778
|
+
/**
|
|
1779
|
+
* @private
|
|
1780
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1781
|
+
*/
|
|
1782
|
+
readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
|
|
1783
|
+
name: string;
|
|
1784
|
+
message: string;
|
|
1785
|
+
stack?: string;
|
|
1786
|
+
cause?: unknown;
|
|
1787
|
+
}): Readonly<[string]>;
|
|
1788
|
+
isError(error: unknown): error is Error;
|
|
1789
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
1790
|
+
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
|
|
1791
|
+
stackTraceLimit: number;
|
|
1792
|
+
};
|
|
1793
|
+
Redirect: {
|
|
1794
|
+
new (v0: string): {
|
|
1795
|
+
readonly tag: ServiceConnectivityError_Tags.Redirect;
|
|
1796
|
+
readonly inner: Readonly<[string]>;
|
|
1797
|
+
/**
|
|
1798
|
+
* @private
|
|
1799
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1800
|
+
*/
|
|
1801
|
+
readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
|
|
1802
|
+
name: string;
|
|
1803
|
+
message: string;
|
|
1804
|
+
stack?: string;
|
|
1805
|
+
cause?: unknown;
|
|
1806
|
+
};
|
|
1807
|
+
"new"(v0: string): {
|
|
1808
|
+
readonly tag: ServiceConnectivityError_Tags.Redirect;
|
|
1809
|
+
readonly inner: Readonly<[string]>;
|
|
1810
|
+
/**
|
|
1811
|
+
* @private
|
|
1812
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1813
|
+
*/
|
|
1814
|
+
readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
|
|
1815
|
+
name: string;
|
|
1816
|
+
message: string;
|
|
1817
|
+
stack?: string;
|
|
1818
|
+
cause?: unknown;
|
|
1819
|
+
};
|
|
1820
|
+
instanceOf(obj: any): obj is {
|
|
1821
|
+
readonly tag: ServiceConnectivityError_Tags.Redirect;
|
|
1822
|
+
readonly inner: Readonly<[string]>;
|
|
1823
|
+
/**
|
|
1824
|
+
* @private
|
|
1825
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1826
|
+
*/
|
|
1827
|
+
readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
|
|
1828
|
+
name: string;
|
|
1829
|
+
message: string;
|
|
1830
|
+
stack?: string;
|
|
1831
|
+
cause?: unknown;
|
|
1832
|
+
};
|
|
1833
|
+
hasInner(obj: any): obj is {
|
|
1834
|
+
readonly tag: ServiceConnectivityError_Tags.Redirect;
|
|
1835
|
+
readonly inner: Readonly<[string]>;
|
|
1836
|
+
/**
|
|
1837
|
+
* @private
|
|
1838
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1839
|
+
*/
|
|
1840
|
+
readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
|
|
1841
|
+
name: string;
|
|
1842
|
+
message: string;
|
|
1843
|
+
stack?: string;
|
|
1844
|
+
cause?: unknown;
|
|
1845
|
+
};
|
|
1846
|
+
getInner(obj: {
|
|
1847
|
+
readonly tag: ServiceConnectivityError_Tags.Redirect;
|
|
1848
|
+
readonly inner: Readonly<[string]>;
|
|
1849
|
+
/**
|
|
1850
|
+
* @private
|
|
1851
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1852
|
+
*/
|
|
1853
|
+
readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
|
|
1854
|
+
name: string;
|
|
1855
|
+
message: string;
|
|
1856
|
+
stack?: string;
|
|
1857
|
+
cause?: unknown;
|
|
1858
|
+
}): Readonly<[string]>;
|
|
1859
|
+
isError(error: unknown): error is Error;
|
|
1860
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
1861
|
+
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
|
|
1862
|
+
stackTraceLimit: number;
|
|
1863
|
+
};
|
|
1864
|
+
Status: {
|
|
1865
|
+
new (inner: {
|
|
1866
|
+
status: number;
|
|
1867
|
+
body: string;
|
|
1868
|
+
}): {
|
|
1869
|
+
readonly tag: ServiceConnectivityError_Tags.Status;
|
|
1870
|
+
readonly inner: Readonly<{
|
|
1871
|
+
status: number;
|
|
1872
|
+
body: string;
|
|
1873
|
+
}>;
|
|
1874
|
+
/**
|
|
1875
|
+
* @private
|
|
1876
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1877
|
+
*/
|
|
1878
|
+
readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
|
|
1879
|
+
name: string;
|
|
1880
|
+
message: string;
|
|
1881
|
+
stack?: string;
|
|
1882
|
+
cause?: unknown;
|
|
1883
|
+
};
|
|
1884
|
+
"new"(inner: {
|
|
1885
|
+
status: number;
|
|
1886
|
+
body: string;
|
|
1887
|
+
}): {
|
|
1888
|
+
readonly tag: ServiceConnectivityError_Tags.Status;
|
|
1889
|
+
readonly inner: Readonly<{
|
|
1890
|
+
status: number;
|
|
1891
|
+
body: string;
|
|
1892
|
+
}>;
|
|
1893
|
+
/**
|
|
1894
|
+
* @private
|
|
1895
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1896
|
+
*/
|
|
1897
|
+
readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
|
|
1898
|
+
name: string;
|
|
1899
|
+
message: string;
|
|
1900
|
+
stack?: string;
|
|
1901
|
+
cause?: unknown;
|
|
1902
|
+
};
|
|
1903
|
+
instanceOf(obj: any): obj is {
|
|
1904
|
+
readonly tag: ServiceConnectivityError_Tags.Status;
|
|
1905
|
+
readonly inner: Readonly<{
|
|
1906
|
+
status: number;
|
|
1907
|
+
body: string;
|
|
1908
|
+
}>;
|
|
1909
|
+
/**
|
|
1910
|
+
* @private
|
|
1911
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1912
|
+
*/
|
|
1913
|
+
readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
|
|
1914
|
+
name: string;
|
|
1915
|
+
message: string;
|
|
1916
|
+
stack?: string;
|
|
1917
|
+
cause?: unknown;
|
|
1918
|
+
};
|
|
1919
|
+
hasInner(obj: any): obj is {
|
|
1920
|
+
readonly tag: ServiceConnectivityError_Tags.Status;
|
|
1921
|
+
readonly inner: Readonly<{
|
|
1922
|
+
status: number;
|
|
1923
|
+
body: string;
|
|
1924
|
+
}>;
|
|
1925
|
+
/**
|
|
1926
|
+
* @private
|
|
1927
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1928
|
+
*/
|
|
1929
|
+
readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
|
|
1930
|
+
name: string;
|
|
1931
|
+
message: string;
|
|
1932
|
+
stack?: string;
|
|
1933
|
+
cause?: unknown;
|
|
1934
|
+
};
|
|
1935
|
+
getInner(obj: {
|
|
1936
|
+
readonly tag: ServiceConnectivityError_Tags.Status;
|
|
1937
|
+
readonly inner: Readonly<{
|
|
1938
|
+
status: number;
|
|
1939
|
+
body: string;
|
|
1940
|
+
}>;
|
|
1941
|
+
/**
|
|
1942
|
+
* @private
|
|
1943
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1944
|
+
*/
|
|
1945
|
+
readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
|
|
1946
|
+
name: string;
|
|
1947
|
+
message: string;
|
|
1948
|
+
stack?: string;
|
|
1949
|
+
cause?: unknown;
|
|
1950
|
+
}): Readonly<{
|
|
1951
|
+
status: number;
|
|
1952
|
+
body: string;
|
|
1953
|
+
}>;
|
|
1954
|
+
isError(error: unknown): error is Error;
|
|
1955
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
1956
|
+
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
|
|
1957
|
+
stackTraceLimit: number;
|
|
1958
|
+
};
|
|
1959
|
+
Timeout: {
|
|
1960
|
+
new (v0: string): {
|
|
1961
|
+
readonly tag: ServiceConnectivityError_Tags.Timeout;
|
|
1962
|
+
readonly inner: Readonly<[string]>;
|
|
1963
|
+
/**
|
|
1964
|
+
* @private
|
|
1965
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1966
|
+
*/
|
|
1967
|
+
readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
|
|
1968
|
+
name: string;
|
|
1969
|
+
message: string;
|
|
1970
|
+
stack?: string;
|
|
1971
|
+
cause?: unknown;
|
|
1972
|
+
};
|
|
1973
|
+
"new"(v0: string): {
|
|
1974
|
+
readonly tag: ServiceConnectivityError_Tags.Timeout;
|
|
1975
|
+
readonly inner: Readonly<[string]>;
|
|
1976
|
+
/**
|
|
1977
|
+
* @private
|
|
1978
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1979
|
+
*/
|
|
1980
|
+
readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
|
|
1981
|
+
name: string;
|
|
1982
|
+
message: string;
|
|
1983
|
+
stack?: string;
|
|
1984
|
+
cause?: unknown;
|
|
1985
|
+
};
|
|
1986
|
+
instanceOf(obj: any): obj is {
|
|
1987
|
+
readonly tag: ServiceConnectivityError_Tags.Timeout;
|
|
1988
|
+
readonly inner: Readonly<[string]>;
|
|
1989
|
+
/**
|
|
1990
|
+
* @private
|
|
1991
|
+
* This field is private and should not be used, use `tag` instead.
|
|
1992
|
+
*/
|
|
1993
|
+
readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
|
|
1994
|
+
name: string;
|
|
1995
|
+
message: string;
|
|
1996
|
+
stack?: string;
|
|
1997
|
+
cause?: unknown;
|
|
1998
|
+
};
|
|
1999
|
+
hasInner(obj: any): obj is {
|
|
2000
|
+
readonly tag: ServiceConnectivityError_Tags.Timeout;
|
|
2001
|
+
readonly inner: Readonly<[string]>;
|
|
2002
|
+
/**
|
|
2003
|
+
* @private
|
|
2004
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2005
|
+
*/
|
|
2006
|
+
readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
|
|
2007
|
+
name: string;
|
|
2008
|
+
message: string;
|
|
2009
|
+
stack?: string;
|
|
2010
|
+
cause?: unknown;
|
|
2011
|
+
};
|
|
2012
|
+
getInner(obj: {
|
|
2013
|
+
readonly tag: ServiceConnectivityError_Tags.Timeout;
|
|
2014
|
+
readonly inner: Readonly<[string]>;
|
|
2015
|
+
/**
|
|
2016
|
+
* @private
|
|
2017
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2018
|
+
*/
|
|
2019
|
+
readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
|
|
2020
|
+
name: string;
|
|
2021
|
+
message: string;
|
|
2022
|
+
stack?: string;
|
|
2023
|
+
cause?: unknown;
|
|
2024
|
+
}): Readonly<[string]>;
|
|
2025
|
+
isError(error: unknown): error is Error;
|
|
2026
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
2027
|
+
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
|
|
2028
|
+
stackTraceLimit: number;
|
|
2029
|
+
};
|
|
2030
|
+
Request: {
|
|
2031
|
+
new (v0: string): {
|
|
2032
|
+
readonly tag: ServiceConnectivityError_Tags.Request;
|
|
2033
|
+
readonly inner: Readonly<[string]>;
|
|
2034
|
+
/**
|
|
2035
|
+
* @private
|
|
2036
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2037
|
+
*/
|
|
2038
|
+
readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
|
|
2039
|
+
name: string;
|
|
2040
|
+
message: string;
|
|
2041
|
+
stack?: string;
|
|
2042
|
+
cause?: unknown;
|
|
2043
|
+
};
|
|
2044
|
+
"new"(v0: string): {
|
|
2045
|
+
readonly tag: ServiceConnectivityError_Tags.Request;
|
|
2046
|
+
readonly inner: Readonly<[string]>;
|
|
2047
|
+
/**
|
|
2048
|
+
* @private
|
|
2049
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2050
|
+
*/
|
|
2051
|
+
readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
|
|
2052
|
+
name: string;
|
|
2053
|
+
message: string;
|
|
2054
|
+
stack?: string;
|
|
2055
|
+
cause?: unknown;
|
|
2056
|
+
};
|
|
2057
|
+
instanceOf(obj: any): obj is {
|
|
2058
|
+
readonly tag: ServiceConnectivityError_Tags.Request;
|
|
2059
|
+
readonly inner: Readonly<[string]>;
|
|
2060
|
+
/**
|
|
2061
|
+
* @private
|
|
2062
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2063
|
+
*/
|
|
2064
|
+
readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
|
|
2065
|
+
name: string;
|
|
2066
|
+
message: string;
|
|
2067
|
+
stack?: string;
|
|
2068
|
+
cause?: unknown;
|
|
2069
|
+
};
|
|
2070
|
+
hasInner(obj: any): obj is {
|
|
2071
|
+
readonly tag: ServiceConnectivityError_Tags.Request;
|
|
2072
|
+
readonly inner: Readonly<[string]>;
|
|
2073
|
+
/**
|
|
2074
|
+
* @private
|
|
2075
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2076
|
+
*/
|
|
2077
|
+
readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
|
|
2078
|
+
name: string;
|
|
2079
|
+
message: string;
|
|
2080
|
+
stack?: string;
|
|
2081
|
+
cause?: unknown;
|
|
2082
|
+
};
|
|
2083
|
+
getInner(obj: {
|
|
2084
|
+
readonly tag: ServiceConnectivityError_Tags.Request;
|
|
2085
|
+
readonly inner: Readonly<[string]>;
|
|
2086
|
+
/**
|
|
2087
|
+
* @private
|
|
2088
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2089
|
+
*/
|
|
2090
|
+
readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
|
|
2091
|
+
name: string;
|
|
2092
|
+
message: string;
|
|
2093
|
+
stack?: string;
|
|
2094
|
+
cause?: unknown;
|
|
2095
|
+
}): Readonly<[string]>;
|
|
2096
|
+
isError(error: unknown): error is Error;
|
|
2097
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
2098
|
+
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
|
|
2099
|
+
stackTraceLimit: number;
|
|
2100
|
+
};
|
|
2101
|
+
Connect: {
|
|
2102
|
+
new (v0: string): {
|
|
2103
|
+
readonly tag: ServiceConnectivityError_Tags.Connect;
|
|
2104
|
+
readonly inner: Readonly<[string]>;
|
|
2105
|
+
/**
|
|
2106
|
+
* @private
|
|
2107
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2108
|
+
*/
|
|
2109
|
+
readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
|
|
2110
|
+
name: string;
|
|
2111
|
+
message: string;
|
|
2112
|
+
stack?: string;
|
|
2113
|
+
cause?: unknown;
|
|
2114
|
+
};
|
|
2115
|
+
"new"(v0: string): {
|
|
2116
|
+
readonly tag: ServiceConnectivityError_Tags.Connect;
|
|
2117
|
+
readonly inner: Readonly<[string]>;
|
|
2118
|
+
/**
|
|
2119
|
+
* @private
|
|
2120
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2121
|
+
*/
|
|
2122
|
+
readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
|
|
2123
|
+
name: string;
|
|
2124
|
+
message: string;
|
|
2125
|
+
stack?: string;
|
|
2126
|
+
cause?: unknown;
|
|
2127
|
+
};
|
|
2128
|
+
instanceOf(obj: any): obj is {
|
|
2129
|
+
readonly tag: ServiceConnectivityError_Tags.Connect;
|
|
2130
|
+
readonly inner: Readonly<[string]>;
|
|
2131
|
+
/**
|
|
2132
|
+
* @private
|
|
2133
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2134
|
+
*/
|
|
2135
|
+
readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
|
|
2136
|
+
name: string;
|
|
2137
|
+
message: string;
|
|
2138
|
+
stack?: string;
|
|
2139
|
+
cause?: unknown;
|
|
2140
|
+
};
|
|
2141
|
+
hasInner(obj: any): obj is {
|
|
2142
|
+
readonly tag: ServiceConnectivityError_Tags.Connect;
|
|
2143
|
+
readonly inner: Readonly<[string]>;
|
|
2144
|
+
/**
|
|
2145
|
+
* @private
|
|
2146
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2147
|
+
*/
|
|
2148
|
+
readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
|
|
2149
|
+
name: string;
|
|
2150
|
+
message: string;
|
|
2151
|
+
stack?: string;
|
|
2152
|
+
cause?: unknown;
|
|
2153
|
+
};
|
|
2154
|
+
getInner(obj: {
|
|
2155
|
+
readonly tag: ServiceConnectivityError_Tags.Connect;
|
|
2156
|
+
readonly inner: Readonly<[string]>;
|
|
2157
|
+
/**
|
|
2158
|
+
* @private
|
|
2159
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2160
|
+
*/
|
|
2161
|
+
readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
|
|
2162
|
+
name: string;
|
|
2163
|
+
message: string;
|
|
2164
|
+
stack?: string;
|
|
2165
|
+
cause?: unknown;
|
|
2166
|
+
}): Readonly<[string]>;
|
|
2167
|
+
isError(error: unknown): error is Error;
|
|
2168
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
2169
|
+
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
|
|
2170
|
+
stackTraceLimit: number;
|
|
2171
|
+
};
|
|
2172
|
+
Body: {
|
|
2173
|
+
new (v0: string): {
|
|
2174
|
+
readonly tag: ServiceConnectivityError_Tags.Body;
|
|
2175
|
+
readonly inner: Readonly<[string]>;
|
|
2176
|
+
/**
|
|
2177
|
+
* @private
|
|
2178
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2179
|
+
*/
|
|
2180
|
+
readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
|
|
2181
|
+
name: string;
|
|
2182
|
+
message: string;
|
|
2183
|
+
stack?: string;
|
|
2184
|
+
cause?: unknown;
|
|
2185
|
+
};
|
|
2186
|
+
"new"(v0: string): {
|
|
2187
|
+
readonly tag: ServiceConnectivityError_Tags.Body;
|
|
2188
|
+
readonly inner: Readonly<[string]>;
|
|
2189
|
+
/**
|
|
2190
|
+
* @private
|
|
2191
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2192
|
+
*/
|
|
2193
|
+
readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
|
|
2194
|
+
name: string;
|
|
2195
|
+
message: string;
|
|
2196
|
+
stack?: string;
|
|
2197
|
+
cause?: unknown;
|
|
2198
|
+
};
|
|
2199
|
+
instanceOf(obj: any): obj is {
|
|
2200
|
+
readonly tag: ServiceConnectivityError_Tags.Body;
|
|
2201
|
+
readonly inner: Readonly<[string]>;
|
|
2202
|
+
/**
|
|
2203
|
+
* @private
|
|
2204
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2205
|
+
*/
|
|
2206
|
+
readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
|
|
2207
|
+
name: string;
|
|
2208
|
+
message: string;
|
|
2209
|
+
stack?: string;
|
|
2210
|
+
cause?: unknown;
|
|
2211
|
+
};
|
|
2212
|
+
hasInner(obj: any): obj is {
|
|
2213
|
+
readonly tag: ServiceConnectivityError_Tags.Body;
|
|
2214
|
+
readonly inner: Readonly<[string]>;
|
|
2215
|
+
/**
|
|
2216
|
+
* @private
|
|
2217
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2218
|
+
*/
|
|
2219
|
+
readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
|
|
2220
|
+
name: string;
|
|
2221
|
+
message: string;
|
|
2222
|
+
stack?: string;
|
|
2223
|
+
cause?: unknown;
|
|
2224
|
+
};
|
|
2225
|
+
getInner(obj: {
|
|
2226
|
+
readonly tag: ServiceConnectivityError_Tags.Body;
|
|
2227
|
+
readonly inner: Readonly<[string]>;
|
|
2228
|
+
/**
|
|
2229
|
+
* @private
|
|
2230
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2231
|
+
*/
|
|
2232
|
+
readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
|
|
2233
|
+
name: string;
|
|
2234
|
+
message: string;
|
|
2235
|
+
stack?: string;
|
|
2236
|
+
cause?: unknown;
|
|
2237
|
+
}): Readonly<[string]>;
|
|
2238
|
+
isError(error: unknown): error is Error;
|
|
2239
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
2240
|
+
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
|
|
2241
|
+
stackTraceLimit: number;
|
|
2242
|
+
};
|
|
2243
|
+
Decode: {
|
|
2244
|
+
new (v0: string): {
|
|
2245
|
+
readonly tag: ServiceConnectivityError_Tags.Decode;
|
|
2246
|
+
readonly inner: Readonly<[string]>;
|
|
2247
|
+
/**
|
|
2248
|
+
* @private
|
|
2249
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2250
|
+
*/
|
|
2251
|
+
readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
|
|
2252
|
+
name: string;
|
|
2253
|
+
message: string;
|
|
2254
|
+
stack?: string;
|
|
2255
|
+
cause?: unknown;
|
|
2256
|
+
};
|
|
2257
|
+
"new"(v0: string): {
|
|
2258
|
+
readonly tag: ServiceConnectivityError_Tags.Decode;
|
|
2259
|
+
readonly inner: Readonly<[string]>;
|
|
2260
|
+
/**
|
|
2261
|
+
* @private
|
|
2262
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2263
|
+
*/
|
|
2264
|
+
readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
|
|
2265
|
+
name: string;
|
|
2266
|
+
message: string;
|
|
2267
|
+
stack?: string;
|
|
2268
|
+
cause?: unknown;
|
|
2269
|
+
};
|
|
2270
|
+
instanceOf(obj: any): obj is {
|
|
2271
|
+
readonly tag: ServiceConnectivityError_Tags.Decode;
|
|
2272
|
+
readonly inner: Readonly<[string]>;
|
|
2273
|
+
/**
|
|
2274
|
+
* @private
|
|
2275
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2276
|
+
*/
|
|
2277
|
+
readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
|
|
2278
|
+
name: string;
|
|
2279
|
+
message: string;
|
|
2280
|
+
stack?: string;
|
|
2281
|
+
cause?: unknown;
|
|
2282
|
+
};
|
|
2283
|
+
hasInner(obj: any): obj is {
|
|
2284
|
+
readonly tag: ServiceConnectivityError_Tags.Decode;
|
|
2285
|
+
readonly inner: Readonly<[string]>;
|
|
2286
|
+
/**
|
|
2287
|
+
* @private
|
|
2288
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2289
|
+
*/
|
|
2290
|
+
readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
|
|
2291
|
+
name: string;
|
|
2292
|
+
message: string;
|
|
2293
|
+
stack?: string;
|
|
2294
|
+
cause?: unknown;
|
|
2295
|
+
};
|
|
2296
|
+
getInner(obj: {
|
|
2297
|
+
readonly tag: ServiceConnectivityError_Tags.Decode;
|
|
2298
|
+
readonly inner: Readonly<[string]>;
|
|
2299
|
+
/**
|
|
2300
|
+
* @private
|
|
2301
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2302
|
+
*/
|
|
2303
|
+
readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
|
|
2304
|
+
name: string;
|
|
2305
|
+
message: string;
|
|
2306
|
+
stack?: string;
|
|
2307
|
+
cause?: unknown;
|
|
2308
|
+
}): Readonly<[string]>;
|
|
2309
|
+
isError(error: unknown): error is Error;
|
|
2310
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
2311
|
+
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
|
|
2312
|
+
stackTraceLimit: number;
|
|
2313
|
+
};
|
|
2314
|
+
Json: {
|
|
2315
|
+
new (v0: string): {
|
|
2316
|
+
readonly tag: ServiceConnectivityError_Tags.Json;
|
|
2317
|
+
readonly inner: Readonly<[string]>;
|
|
2318
|
+
/**
|
|
2319
|
+
* @private
|
|
2320
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2321
|
+
*/
|
|
2322
|
+
readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
|
|
2323
|
+
name: string;
|
|
2324
|
+
message: string;
|
|
2325
|
+
stack?: string;
|
|
2326
|
+
cause?: unknown;
|
|
2327
|
+
};
|
|
2328
|
+
"new"(v0: string): {
|
|
2329
|
+
readonly tag: ServiceConnectivityError_Tags.Json;
|
|
2330
|
+
readonly inner: Readonly<[string]>;
|
|
2331
|
+
/**
|
|
2332
|
+
* @private
|
|
2333
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2334
|
+
*/
|
|
2335
|
+
readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
|
|
2336
|
+
name: string;
|
|
2337
|
+
message: string;
|
|
2338
|
+
stack?: string;
|
|
2339
|
+
cause?: unknown;
|
|
2340
|
+
};
|
|
2341
|
+
instanceOf(obj: any): obj is {
|
|
2342
|
+
readonly tag: ServiceConnectivityError_Tags.Json;
|
|
2343
|
+
readonly inner: Readonly<[string]>;
|
|
2344
|
+
/**
|
|
2345
|
+
* @private
|
|
2346
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2347
|
+
*/
|
|
2348
|
+
readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
|
|
2349
|
+
name: string;
|
|
2350
|
+
message: string;
|
|
2351
|
+
stack?: string;
|
|
2352
|
+
cause?: unknown;
|
|
2353
|
+
};
|
|
2354
|
+
hasInner(obj: any): obj is {
|
|
2355
|
+
readonly tag: ServiceConnectivityError_Tags.Json;
|
|
2356
|
+
readonly inner: Readonly<[string]>;
|
|
2357
|
+
/**
|
|
2358
|
+
* @private
|
|
2359
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2360
|
+
*/
|
|
2361
|
+
readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
|
|
2362
|
+
name: string;
|
|
2363
|
+
message: string;
|
|
2364
|
+
stack?: string;
|
|
2365
|
+
cause?: unknown;
|
|
2366
|
+
};
|
|
2367
|
+
getInner(obj: {
|
|
2368
|
+
readonly tag: ServiceConnectivityError_Tags.Json;
|
|
2369
|
+
readonly inner: Readonly<[string]>;
|
|
2370
|
+
/**
|
|
2371
|
+
* @private
|
|
2372
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2373
|
+
*/
|
|
2374
|
+
readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
|
|
2375
|
+
name: string;
|
|
2376
|
+
message: string;
|
|
2377
|
+
stack?: string;
|
|
2378
|
+
cause?: unknown;
|
|
2379
|
+
}): Readonly<[string]>;
|
|
2380
|
+
isError(error: unknown): error is Error;
|
|
2381
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
2382
|
+
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
|
|
2383
|
+
stackTraceLimit: number;
|
|
2384
|
+
};
|
|
2385
|
+
Other: {
|
|
2386
|
+
new (v0: string): {
|
|
2387
|
+
readonly tag: ServiceConnectivityError_Tags.Other;
|
|
2388
|
+
readonly inner: Readonly<[string]>;
|
|
2389
|
+
/**
|
|
2390
|
+
* @private
|
|
2391
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2392
|
+
*/
|
|
2393
|
+
readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
|
|
2394
|
+
name: string;
|
|
2395
|
+
message: string;
|
|
2396
|
+
stack?: string;
|
|
2397
|
+
cause?: unknown;
|
|
2398
|
+
};
|
|
2399
|
+
"new"(v0: string): {
|
|
2400
|
+
readonly tag: ServiceConnectivityError_Tags.Other;
|
|
2401
|
+
readonly inner: Readonly<[string]>;
|
|
2402
|
+
/**
|
|
2403
|
+
* @private
|
|
2404
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2405
|
+
*/
|
|
2406
|
+
readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
|
|
2407
|
+
name: string;
|
|
2408
|
+
message: string;
|
|
2409
|
+
stack?: string;
|
|
2410
|
+
cause?: unknown;
|
|
2411
|
+
};
|
|
2412
|
+
instanceOf(obj: any): obj is {
|
|
2413
|
+
readonly tag: ServiceConnectivityError_Tags.Other;
|
|
2414
|
+
readonly inner: Readonly<[string]>;
|
|
2415
|
+
/**
|
|
2416
|
+
* @private
|
|
2417
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2418
|
+
*/
|
|
2419
|
+
readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
|
|
2420
|
+
name: string;
|
|
2421
|
+
message: string;
|
|
2422
|
+
stack?: string;
|
|
2423
|
+
cause?: unknown;
|
|
2424
|
+
};
|
|
2425
|
+
hasInner(obj: any): obj is {
|
|
2426
|
+
readonly tag: ServiceConnectivityError_Tags.Other;
|
|
2427
|
+
readonly inner: Readonly<[string]>;
|
|
2428
|
+
/**
|
|
2429
|
+
* @private
|
|
2430
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2431
|
+
*/
|
|
2432
|
+
readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
|
|
2433
|
+
name: string;
|
|
2434
|
+
message: string;
|
|
2435
|
+
stack?: string;
|
|
2436
|
+
cause?: unknown;
|
|
2437
|
+
};
|
|
2438
|
+
getInner(obj: {
|
|
2439
|
+
readonly tag: ServiceConnectivityError_Tags.Other;
|
|
2440
|
+
readonly inner: Readonly<[string]>;
|
|
2441
|
+
/**
|
|
2442
|
+
* @private
|
|
2443
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2444
|
+
*/
|
|
2445
|
+
readonly [uniffiTypeNameSymbol]: "ServiceConnectivityError";
|
|
2446
|
+
name: string;
|
|
2447
|
+
message: string;
|
|
2448
|
+
stack?: string;
|
|
2449
|
+
cause?: unknown;
|
|
2450
|
+
}): Readonly<[string]>;
|
|
2451
|
+
isError(error: unknown): error is Error;
|
|
2452
|
+
captureStackTrace(targetObject: object, constructorOpt?: Function): void;
|
|
2453
|
+
prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
|
|
2454
|
+
stackTraceLimit: number;
|
|
2455
|
+
};
|
|
2456
|
+
}>;
|
|
2457
|
+
export type ServiceConnectivityError = InstanceType<(typeof ServiceConnectivityError)[keyof Omit<typeof ServiceConnectivityError, 'instanceOf'>]>;
|
|
2458
|
+
export declare enum SparkAddressPaymentType_Tags {
|
|
2459
|
+
TokensPayment = "TokensPayment",
|
|
2460
|
+
SatsPayment = "SatsPayment"
|
|
2461
|
+
}
|
|
2462
|
+
export declare const SparkAddressPaymentType: Readonly<{
|
|
2463
|
+
instanceOf: (obj: any) => obj is SparkAddressPaymentType;
|
|
2464
|
+
TokensPayment: {
|
|
2465
|
+
new (v0: TokensPaymentDetails): {
|
|
2466
|
+
readonly tag: SparkAddressPaymentType_Tags.TokensPayment;
|
|
2467
|
+
readonly inner: Readonly<[TokensPaymentDetails]>;
|
|
2468
|
+
/**
|
|
2469
|
+
* @private
|
|
2470
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2471
|
+
*/
|
|
2472
|
+
readonly [uniffiTypeNameSymbol]: "SparkAddressPaymentType";
|
|
2473
|
+
};
|
|
2474
|
+
"new"(v0: TokensPaymentDetails): {
|
|
2475
|
+
readonly tag: SparkAddressPaymentType_Tags.TokensPayment;
|
|
2476
|
+
readonly inner: Readonly<[TokensPaymentDetails]>;
|
|
2477
|
+
/**
|
|
2478
|
+
* @private
|
|
2479
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2480
|
+
*/
|
|
2481
|
+
readonly [uniffiTypeNameSymbol]: "SparkAddressPaymentType";
|
|
2482
|
+
};
|
|
2483
|
+
instanceOf(obj: any): obj is {
|
|
2484
|
+
readonly tag: SparkAddressPaymentType_Tags.TokensPayment;
|
|
2485
|
+
readonly inner: Readonly<[TokensPaymentDetails]>;
|
|
2486
|
+
/**
|
|
2487
|
+
* @private
|
|
2488
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2489
|
+
*/
|
|
2490
|
+
readonly [uniffiTypeNameSymbol]: "SparkAddressPaymentType";
|
|
2491
|
+
};
|
|
2492
|
+
};
|
|
2493
|
+
SatsPayment: {
|
|
2494
|
+
new (v0: SatsPaymentDetails): {
|
|
2495
|
+
readonly tag: SparkAddressPaymentType_Tags.SatsPayment;
|
|
2496
|
+
readonly inner: Readonly<[SatsPaymentDetails]>;
|
|
2497
|
+
/**
|
|
2498
|
+
* @private
|
|
2499
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2500
|
+
*/
|
|
2501
|
+
readonly [uniffiTypeNameSymbol]: "SparkAddressPaymentType";
|
|
2502
|
+
};
|
|
2503
|
+
"new"(v0: SatsPaymentDetails): {
|
|
2504
|
+
readonly tag: SparkAddressPaymentType_Tags.SatsPayment;
|
|
2505
|
+
readonly inner: Readonly<[SatsPaymentDetails]>;
|
|
2506
|
+
/**
|
|
2507
|
+
* @private
|
|
2508
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2509
|
+
*/
|
|
2510
|
+
readonly [uniffiTypeNameSymbol]: "SparkAddressPaymentType";
|
|
2511
|
+
};
|
|
2512
|
+
instanceOf(obj: any): obj is {
|
|
2513
|
+
readonly tag: SparkAddressPaymentType_Tags.SatsPayment;
|
|
2514
|
+
readonly inner: Readonly<[SatsPaymentDetails]>;
|
|
2515
|
+
/**
|
|
2516
|
+
* @private
|
|
2517
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2518
|
+
*/
|
|
2519
|
+
readonly [uniffiTypeNameSymbol]: "SparkAddressPaymentType";
|
|
2520
|
+
};
|
|
2521
|
+
};
|
|
2522
|
+
}>;
|
|
2523
|
+
export type SparkAddressPaymentType = InstanceType<(typeof SparkAddressPaymentType)[keyof Omit<typeof SparkAddressPaymentType, 'instanceOf'>]>;
|
|
2524
|
+
export declare enum SuccessAction_Tags {
|
|
2525
|
+
Aes = "Aes",
|
|
2526
|
+
Message = "Message",
|
|
2527
|
+
Url = "Url"
|
|
2528
|
+
}
|
|
2529
|
+
/**
|
|
2530
|
+
* Supported success action types
|
|
2531
|
+
*
|
|
2532
|
+
* Receiving any other (unsupported) success action type will result in a failed parsing,
|
|
2533
|
+
* which will abort the LNURL-pay workflow, as per LUD-09.
|
|
2534
|
+
*/
|
|
2535
|
+
export declare const SuccessAction: Readonly<{
|
|
2536
|
+
instanceOf: (obj: any) => obj is SuccessAction;
|
|
2537
|
+
Aes: {
|
|
2538
|
+
new (inner: {
|
|
2539
|
+
data: AesSuccessActionData;
|
|
2540
|
+
}): {
|
|
2541
|
+
readonly tag: SuccessAction_Tags.Aes;
|
|
2542
|
+
readonly inner: Readonly<{
|
|
2543
|
+
data: AesSuccessActionData;
|
|
2544
|
+
}>;
|
|
2545
|
+
/**
|
|
2546
|
+
* @private
|
|
2547
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2548
|
+
*/
|
|
2549
|
+
readonly [uniffiTypeNameSymbol]: "SuccessAction";
|
|
2550
|
+
};
|
|
2551
|
+
"new"(inner: {
|
|
2552
|
+
data: AesSuccessActionData;
|
|
2553
|
+
}): {
|
|
2554
|
+
readonly tag: SuccessAction_Tags.Aes;
|
|
2555
|
+
readonly inner: Readonly<{
|
|
2556
|
+
data: AesSuccessActionData;
|
|
2557
|
+
}>;
|
|
2558
|
+
/**
|
|
2559
|
+
* @private
|
|
2560
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2561
|
+
*/
|
|
2562
|
+
readonly [uniffiTypeNameSymbol]: "SuccessAction";
|
|
2563
|
+
};
|
|
2564
|
+
instanceOf(obj: any): obj is {
|
|
2565
|
+
readonly tag: SuccessAction_Tags.Aes;
|
|
2566
|
+
readonly inner: Readonly<{
|
|
2567
|
+
data: AesSuccessActionData;
|
|
2568
|
+
}>;
|
|
2569
|
+
/**
|
|
2570
|
+
* @private
|
|
2571
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2572
|
+
*/
|
|
2573
|
+
readonly [uniffiTypeNameSymbol]: "SuccessAction";
|
|
2574
|
+
};
|
|
2575
|
+
};
|
|
2576
|
+
Message: {
|
|
2577
|
+
new (inner: {
|
|
2578
|
+
data: MessageSuccessActionData;
|
|
2579
|
+
}): {
|
|
2580
|
+
readonly tag: SuccessAction_Tags.Message;
|
|
2581
|
+
readonly inner: Readonly<{
|
|
2582
|
+
data: MessageSuccessActionData;
|
|
2583
|
+
}>;
|
|
2584
|
+
/**
|
|
2585
|
+
* @private
|
|
2586
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2587
|
+
*/
|
|
2588
|
+
readonly [uniffiTypeNameSymbol]: "SuccessAction";
|
|
2589
|
+
};
|
|
2590
|
+
"new"(inner: {
|
|
2591
|
+
data: MessageSuccessActionData;
|
|
2592
|
+
}): {
|
|
2593
|
+
readonly tag: SuccessAction_Tags.Message;
|
|
2594
|
+
readonly inner: Readonly<{
|
|
2595
|
+
data: MessageSuccessActionData;
|
|
2596
|
+
}>;
|
|
2597
|
+
/**
|
|
2598
|
+
* @private
|
|
2599
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2600
|
+
*/
|
|
2601
|
+
readonly [uniffiTypeNameSymbol]: "SuccessAction";
|
|
2602
|
+
};
|
|
2603
|
+
instanceOf(obj: any): obj is {
|
|
2604
|
+
readonly tag: SuccessAction_Tags.Message;
|
|
2605
|
+
readonly inner: Readonly<{
|
|
2606
|
+
data: MessageSuccessActionData;
|
|
2607
|
+
}>;
|
|
2608
|
+
/**
|
|
2609
|
+
* @private
|
|
2610
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2611
|
+
*/
|
|
2612
|
+
readonly [uniffiTypeNameSymbol]: "SuccessAction";
|
|
2613
|
+
};
|
|
2614
|
+
};
|
|
2615
|
+
Url: {
|
|
2616
|
+
new (inner: {
|
|
2617
|
+
data: UrlSuccessActionData;
|
|
2618
|
+
}): {
|
|
2619
|
+
readonly tag: SuccessAction_Tags.Url;
|
|
2620
|
+
readonly inner: Readonly<{
|
|
2621
|
+
data: UrlSuccessActionData;
|
|
2622
|
+
}>;
|
|
2623
|
+
/**
|
|
2624
|
+
* @private
|
|
2625
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2626
|
+
*/
|
|
2627
|
+
readonly [uniffiTypeNameSymbol]: "SuccessAction";
|
|
2628
|
+
};
|
|
2629
|
+
"new"(inner: {
|
|
2630
|
+
data: UrlSuccessActionData;
|
|
2631
|
+
}): {
|
|
2632
|
+
readonly tag: SuccessAction_Tags.Url;
|
|
2633
|
+
readonly inner: Readonly<{
|
|
2634
|
+
data: UrlSuccessActionData;
|
|
2635
|
+
}>;
|
|
2636
|
+
/**
|
|
2637
|
+
* @private
|
|
2638
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2639
|
+
*/
|
|
2640
|
+
readonly [uniffiTypeNameSymbol]: "SuccessAction";
|
|
2641
|
+
};
|
|
2642
|
+
instanceOf(obj: any): obj is {
|
|
2643
|
+
readonly tag: SuccessAction_Tags.Url;
|
|
2644
|
+
readonly inner: Readonly<{
|
|
2645
|
+
data: UrlSuccessActionData;
|
|
2646
|
+
}>;
|
|
2647
|
+
/**
|
|
2648
|
+
* @private
|
|
2649
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2650
|
+
*/
|
|
2651
|
+
readonly [uniffiTypeNameSymbol]: "SuccessAction";
|
|
2652
|
+
};
|
|
2653
|
+
};
|
|
2654
|
+
}>;
|
|
2655
|
+
/**
|
|
2656
|
+
* Supported success action types
|
|
2657
|
+
*
|
|
2658
|
+
* Receiving any other (unsupported) success action type will result in a failed parsing,
|
|
2659
|
+
* which will abort the LNURL-pay workflow, as per LUD-09.
|
|
2660
|
+
*/
|
|
2661
|
+
export type SuccessAction = InstanceType<(typeof SuccessAction)[keyof Omit<typeof SuccessAction, 'instanceOf'>]>;
|
|
2662
|
+
export declare enum SuccessActionProcessed_Tags {
|
|
2663
|
+
Aes = "Aes",
|
|
2664
|
+
Message = "Message",
|
|
2665
|
+
Url = "Url"
|
|
2666
|
+
}
|
|
2667
|
+
/**
|
|
2668
|
+
* [`SuccessAction`] where contents are ready to be consumed by the caller
|
|
2669
|
+
*
|
|
2670
|
+
* Contents are identical to [`SuccessAction`], except for AES where the ciphertext is decrypted.
|
|
2671
|
+
*/
|
|
2672
|
+
export declare const SuccessActionProcessed: Readonly<{
|
|
2673
|
+
instanceOf: (obj: any) => obj is SuccessActionProcessed;
|
|
2674
|
+
Aes: {
|
|
2675
|
+
new (inner: {
|
|
2676
|
+
result: AesSuccessActionDataResult;
|
|
2677
|
+
}): {
|
|
2678
|
+
readonly tag: SuccessActionProcessed_Tags.Aes;
|
|
2679
|
+
readonly inner: Readonly<{
|
|
2680
|
+
result: AesSuccessActionDataResult;
|
|
2681
|
+
}>;
|
|
2682
|
+
/**
|
|
2683
|
+
* @private
|
|
2684
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2685
|
+
*/
|
|
2686
|
+
readonly [uniffiTypeNameSymbol]: "SuccessActionProcessed";
|
|
2687
|
+
};
|
|
2688
|
+
"new"(inner: {
|
|
2689
|
+
result: AesSuccessActionDataResult;
|
|
2690
|
+
}): {
|
|
2691
|
+
readonly tag: SuccessActionProcessed_Tags.Aes;
|
|
2692
|
+
readonly inner: Readonly<{
|
|
2693
|
+
result: AesSuccessActionDataResult;
|
|
2694
|
+
}>;
|
|
2695
|
+
/**
|
|
2696
|
+
* @private
|
|
2697
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2698
|
+
*/
|
|
2699
|
+
readonly [uniffiTypeNameSymbol]: "SuccessActionProcessed";
|
|
2700
|
+
};
|
|
2701
|
+
instanceOf(obj: any): obj is {
|
|
2702
|
+
readonly tag: SuccessActionProcessed_Tags.Aes;
|
|
2703
|
+
readonly inner: Readonly<{
|
|
2704
|
+
result: AesSuccessActionDataResult;
|
|
2705
|
+
}>;
|
|
2706
|
+
/**
|
|
2707
|
+
* @private
|
|
2708
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2709
|
+
*/
|
|
2710
|
+
readonly [uniffiTypeNameSymbol]: "SuccessActionProcessed";
|
|
2711
|
+
};
|
|
2712
|
+
};
|
|
2713
|
+
Message: {
|
|
2714
|
+
new (inner: {
|
|
2715
|
+
data: MessageSuccessActionData;
|
|
2716
|
+
}): {
|
|
2717
|
+
readonly tag: SuccessActionProcessed_Tags.Message;
|
|
2718
|
+
readonly inner: Readonly<{
|
|
2719
|
+
data: MessageSuccessActionData;
|
|
2720
|
+
}>;
|
|
2721
|
+
/**
|
|
2722
|
+
* @private
|
|
2723
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2724
|
+
*/
|
|
2725
|
+
readonly [uniffiTypeNameSymbol]: "SuccessActionProcessed";
|
|
2726
|
+
};
|
|
2727
|
+
"new"(inner: {
|
|
2728
|
+
data: MessageSuccessActionData;
|
|
2729
|
+
}): {
|
|
2730
|
+
readonly tag: SuccessActionProcessed_Tags.Message;
|
|
2731
|
+
readonly inner: Readonly<{
|
|
2732
|
+
data: MessageSuccessActionData;
|
|
2733
|
+
}>;
|
|
2734
|
+
/**
|
|
2735
|
+
* @private
|
|
2736
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2737
|
+
*/
|
|
2738
|
+
readonly [uniffiTypeNameSymbol]: "SuccessActionProcessed";
|
|
2739
|
+
};
|
|
2740
|
+
instanceOf(obj: any): obj is {
|
|
2741
|
+
readonly tag: SuccessActionProcessed_Tags.Message;
|
|
2742
|
+
readonly inner: Readonly<{
|
|
2743
|
+
data: MessageSuccessActionData;
|
|
2744
|
+
}>;
|
|
2745
|
+
/**
|
|
2746
|
+
* @private
|
|
2747
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2748
|
+
*/
|
|
2749
|
+
readonly [uniffiTypeNameSymbol]: "SuccessActionProcessed";
|
|
2750
|
+
};
|
|
2751
|
+
};
|
|
2752
|
+
Url: {
|
|
2753
|
+
new (inner: {
|
|
2754
|
+
data: UrlSuccessActionData;
|
|
2755
|
+
}): {
|
|
2756
|
+
readonly tag: SuccessActionProcessed_Tags.Url;
|
|
2757
|
+
readonly inner: Readonly<{
|
|
2758
|
+
data: UrlSuccessActionData;
|
|
2759
|
+
}>;
|
|
2760
|
+
/**
|
|
2761
|
+
* @private
|
|
2762
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2763
|
+
*/
|
|
2764
|
+
readonly [uniffiTypeNameSymbol]: "SuccessActionProcessed";
|
|
2765
|
+
};
|
|
2766
|
+
"new"(inner: {
|
|
2767
|
+
data: UrlSuccessActionData;
|
|
2768
|
+
}): {
|
|
2769
|
+
readonly tag: SuccessActionProcessed_Tags.Url;
|
|
2770
|
+
readonly inner: Readonly<{
|
|
2771
|
+
data: UrlSuccessActionData;
|
|
2772
|
+
}>;
|
|
2773
|
+
/**
|
|
2774
|
+
* @private
|
|
2775
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2776
|
+
*/
|
|
2777
|
+
readonly [uniffiTypeNameSymbol]: "SuccessActionProcessed";
|
|
2778
|
+
};
|
|
2779
|
+
instanceOf(obj: any): obj is {
|
|
2780
|
+
readonly tag: SuccessActionProcessed_Tags.Url;
|
|
2781
|
+
readonly inner: Readonly<{
|
|
2782
|
+
data: UrlSuccessActionData;
|
|
2783
|
+
}>;
|
|
2784
|
+
/**
|
|
2785
|
+
* @private
|
|
2786
|
+
* This field is private and should not be used, use `tag` instead.
|
|
2787
|
+
*/
|
|
2788
|
+
readonly [uniffiTypeNameSymbol]: "SuccessActionProcessed";
|
|
2789
|
+
};
|
|
2790
|
+
};
|
|
2791
|
+
}>;
|
|
2792
|
+
/**
|
|
2793
|
+
* [`SuccessAction`] where contents are ready to be consumed by the caller
|
|
2794
|
+
*
|
|
2795
|
+
* Contents are identical to [`SuccessAction`], except for AES where the ciphertext is decrypted.
|
|
2796
|
+
*/
|
|
2797
|
+
export type SuccessActionProcessed = InstanceType<(typeof SuccessActionProcessed)[keyof Omit<typeof SuccessActionProcessed, 'instanceOf'>]>;
|
|
2798
|
+
export interface RestClient {
|
|
2799
|
+
/**
|
|
2800
|
+
* Makes a GET request and logs on DEBUG.
|
|
2801
|
+
* ### Arguments
|
|
2802
|
+
* - `url`: the URL on which GET will be called
|
|
2803
|
+
* - `headers`: optional headers that will be set on the request
|
|
2804
|
+
*/
|
|
2805
|
+
getRequest(url: string, headers: Map<string, string> | undefined, asyncOpts_?: {
|
|
2806
|
+
signal: AbortSignal;
|
|
2807
|
+
}): Promise<RestResponse>;
|
|
2808
|
+
/**
|
|
2809
|
+
* Makes a POST request, and logs on DEBUG.
|
|
2810
|
+
* ### Arguments
|
|
2811
|
+
* - `url`: the URL on which POST will be called
|
|
2812
|
+
* - `headers`: the optional POST headers
|
|
2813
|
+
* - `body`: the optional POST body
|
|
2814
|
+
*/
|
|
2815
|
+
postRequest(url: string, headers: Map<string, string> | undefined, body: string | undefined, asyncOpts_?: {
|
|
2816
|
+
signal: AbortSignal;
|
|
2817
|
+
}): Promise<RestResponse>;
|
|
2818
|
+
/**
|
|
2819
|
+
* Makes a DELETE request, and logs on DEBUG.
|
|
2820
|
+
* ### Arguments
|
|
2821
|
+
* - `url`: the URL on which DELETE will be called
|
|
2822
|
+
* - `headers`: the optional DELETE headers
|
|
2823
|
+
* - `body`: the optional DELETE body
|
|
2824
|
+
*/
|
|
2825
|
+
deleteRequest(url: string, headers: Map<string, string> | undefined, body: string | undefined, asyncOpts_?: {
|
|
2826
|
+
signal: AbortSignal;
|
|
2827
|
+
}): Promise<RestResponse>;
|
|
2828
|
+
}
|
|
2829
|
+
export declare class RestClientImpl extends UniffiAbstractObject implements RestClient {
|
|
2830
|
+
readonly [uniffiTypeNameSymbol] = "RestClientImpl";
|
|
2831
|
+
readonly [destructorGuardSymbol]: UniffiRustArcPtr;
|
|
2832
|
+
readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer;
|
|
2833
|
+
private constructor();
|
|
2834
|
+
/**
|
|
2835
|
+
* Makes a GET request and logs on DEBUG.
|
|
2836
|
+
* ### Arguments
|
|
2837
|
+
* - `url`: the URL on which GET will be called
|
|
2838
|
+
* - `headers`: optional headers that will be set on the request
|
|
2839
|
+
*/
|
|
2840
|
+
getRequest(url: string, headers: Map<string, string> | undefined, asyncOpts_?: {
|
|
2841
|
+
signal: AbortSignal;
|
|
2842
|
+
}): Promise<RestResponse>;
|
|
2843
|
+
/**
|
|
2844
|
+
* Makes a POST request, and logs on DEBUG.
|
|
2845
|
+
* ### Arguments
|
|
2846
|
+
* - `url`: the URL on which POST will be called
|
|
2847
|
+
* - `headers`: the optional POST headers
|
|
2848
|
+
* - `body`: the optional POST body
|
|
2849
|
+
*/
|
|
2850
|
+
postRequest(url: string, headers: Map<string, string> | undefined, body: string | undefined, asyncOpts_?: {
|
|
2851
|
+
signal: AbortSignal;
|
|
2852
|
+
}): Promise<RestResponse>;
|
|
2853
|
+
/**
|
|
2854
|
+
* Makes a DELETE request, and logs on DEBUG.
|
|
2855
|
+
* ### Arguments
|
|
2856
|
+
* - `url`: the URL on which DELETE will be called
|
|
2857
|
+
* - `headers`: the optional DELETE headers
|
|
2858
|
+
* - `body`: the optional DELETE body
|
|
2859
|
+
*/
|
|
2860
|
+
deleteRequest(url: string, headers: Map<string, string> | undefined, body: string | undefined, asyncOpts_?: {
|
|
2861
|
+
signal: AbortSignal;
|
|
2862
|
+
}): Promise<RestResponse>;
|
|
2863
|
+
/**
|
|
2864
|
+
* {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
|
|
2865
|
+
*/
|
|
2866
|
+
uniffiDestroy(): void;
|
|
2867
|
+
static instanceOf(obj: any): obj is RestClientImpl;
|
|
2868
|
+
}
|
|
2869
|
+
/**
|
|
2870
|
+
* This should be called before anything else.
|
|
2871
|
+
*
|
|
2872
|
+
* It is likely that this is being done for you by the library's `index.ts`.
|
|
2873
|
+
*
|
|
2874
|
+
* It checks versions of uniffi between when the Rust scaffolding was generated
|
|
2875
|
+
* and when the bindings were generated.
|
|
2876
|
+
*
|
|
2877
|
+
* It also initializes the machinery to enable Rust to talk back to Javascript.
|
|
2878
|
+
*/
|
|
2879
|
+
declare function uniffiEnsureInitialized(): void;
|
|
2880
|
+
declare const _default: Readonly<{
|
|
2881
|
+
initialize: typeof uniffiEnsureInitialized;
|
|
2882
|
+
converters: {
|
|
2883
|
+
FfiConverterTypeAesSuccessActionData: {
|
|
2884
|
+
read(from: RustBuffer): AesSuccessActionData;
|
|
2885
|
+
write(value: AesSuccessActionData, into: RustBuffer): void;
|
|
2886
|
+
allocationSize(value: AesSuccessActionData): number;
|
|
2887
|
+
lift(value: UniffiByteArray): AesSuccessActionData;
|
|
2888
|
+
lower(value: AesSuccessActionData): UniffiByteArray;
|
|
2889
|
+
};
|
|
2890
|
+
FfiConverterTypeAesSuccessActionDataDecrypted: {
|
|
2891
|
+
read(from: RustBuffer): AesSuccessActionDataDecrypted;
|
|
2892
|
+
write(value: AesSuccessActionDataDecrypted, into: RustBuffer): void;
|
|
2893
|
+
allocationSize(value: AesSuccessActionDataDecrypted): number;
|
|
2894
|
+
lift(value: UniffiByteArray): AesSuccessActionDataDecrypted;
|
|
2895
|
+
lower(value: AesSuccessActionDataDecrypted): UniffiByteArray;
|
|
2896
|
+
};
|
|
2897
|
+
FfiConverterTypeAesSuccessActionDataResult: {
|
|
2898
|
+
read(from: RustBuffer): AesSuccessActionDataResult;
|
|
2899
|
+
write(value: AesSuccessActionDataResult, into: RustBuffer): void;
|
|
2900
|
+
allocationSize(value: AesSuccessActionDataResult): number;
|
|
2901
|
+
lift(value: UniffiByteArray): AesSuccessActionDataResult;
|
|
2902
|
+
lower(value: AesSuccessActionDataResult): UniffiByteArray;
|
|
2903
|
+
};
|
|
2904
|
+
FfiConverterTypeAmount: {
|
|
2905
|
+
read(from: RustBuffer): Amount;
|
|
2906
|
+
write(value: Amount, into: RustBuffer): void;
|
|
2907
|
+
allocationSize(value: Amount): number;
|
|
2908
|
+
lift(value: UniffiByteArray): Amount;
|
|
2909
|
+
lower(value: Amount): UniffiByteArray;
|
|
2910
|
+
};
|
|
2911
|
+
FfiConverterTypeBip21Details: {
|
|
2912
|
+
read(from: RustBuffer): Bip21Details;
|
|
2913
|
+
write(value: Bip21Details, into: RustBuffer): void;
|
|
2914
|
+
allocationSize(value: Bip21Details): number;
|
|
2915
|
+
lift(value: UniffiByteArray): Bip21Details;
|
|
2916
|
+
lower(value: Bip21Details): UniffiByteArray;
|
|
2917
|
+
};
|
|
2918
|
+
FfiConverterTypeBip21Extra: {
|
|
2919
|
+
read(from: RustBuffer): Bip21Extra;
|
|
2920
|
+
write(value: Bip21Extra, into: RustBuffer): void;
|
|
2921
|
+
allocationSize(value: Bip21Extra): number;
|
|
2922
|
+
lift(value: UniffiByteArray): Bip21Extra;
|
|
2923
|
+
lower(value: Bip21Extra): UniffiByteArray;
|
|
2924
|
+
};
|
|
2925
|
+
FfiConverterTypeBitcoinAddressDetails: {
|
|
2926
|
+
read(from: RustBuffer): BitcoinAddressDetails;
|
|
2927
|
+
write(value: BitcoinAddressDetails, into: RustBuffer): void;
|
|
2928
|
+
allocationSize(value: BitcoinAddressDetails): number;
|
|
2929
|
+
lift(value: UniffiByteArray): BitcoinAddressDetails;
|
|
2930
|
+
lower(value: BitcoinAddressDetails): UniffiByteArray;
|
|
2931
|
+
};
|
|
2932
|
+
FfiConverterTypeBitcoinNetwork: {
|
|
2933
|
+
read(from: RustBuffer): BitcoinNetwork;
|
|
2934
|
+
write(value: BitcoinNetwork, into: RustBuffer): void;
|
|
2935
|
+
allocationSize(value: BitcoinNetwork): number;
|
|
2936
|
+
lift(value: UniffiByteArray): BitcoinNetwork;
|
|
2937
|
+
lower(value: BitcoinNetwork): UniffiByteArray;
|
|
2938
|
+
};
|
|
2939
|
+
FfiConverterTypeBolt11Invoice: {
|
|
2940
|
+
read(from: RustBuffer): Bolt11Invoice;
|
|
2941
|
+
write(value: Bolt11Invoice, into: RustBuffer): void;
|
|
2942
|
+
allocationSize(value: Bolt11Invoice): number;
|
|
2943
|
+
lift(value: UniffiByteArray): Bolt11Invoice;
|
|
2944
|
+
lower(value: Bolt11Invoice): UniffiByteArray;
|
|
2945
|
+
};
|
|
2946
|
+
FfiConverterTypeBolt11InvoiceDetails: {
|
|
2947
|
+
read(from: RustBuffer): Bolt11InvoiceDetails;
|
|
2948
|
+
write(value: Bolt11InvoiceDetails, into: RustBuffer): void;
|
|
2949
|
+
allocationSize(value: Bolt11InvoiceDetails): number;
|
|
2950
|
+
lift(value: UniffiByteArray): Bolt11InvoiceDetails;
|
|
2951
|
+
lower(value: Bolt11InvoiceDetails): UniffiByteArray;
|
|
2952
|
+
};
|
|
2953
|
+
FfiConverterTypeBolt11RouteHint: {
|
|
2954
|
+
read(from: RustBuffer): Bolt11RouteHint;
|
|
2955
|
+
write(value: Bolt11RouteHint, into: RustBuffer): void;
|
|
2956
|
+
allocationSize(value: Bolt11RouteHint): number;
|
|
2957
|
+
lift(value: UniffiByteArray): Bolt11RouteHint;
|
|
2958
|
+
lower(value: Bolt11RouteHint): UniffiByteArray;
|
|
2959
|
+
};
|
|
2960
|
+
FfiConverterTypeBolt11RouteHintHop: {
|
|
2961
|
+
read(from: RustBuffer): Bolt11RouteHintHop;
|
|
2962
|
+
write(value: Bolt11RouteHintHop, into: RustBuffer): void;
|
|
2963
|
+
allocationSize(value: Bolt11RouteHintHop): number;
|
|
2964
|
+
lift(value: UniffiByteArray): Bolt11RouteHintHop;
|
|
2965
|
+
lower(value: Bolt11RouteHintHop): UniffiByteArray;
|
|
2966
|
+
};
|
|
2967
|
+
FfiConverterTypeBolt12Invoice: {
|
|
2968
|
+
read(from: RustBuffer): Bolt12Invoice;
|
|
2969
|
+
write(value: Bolt12Invoice, into: RustBuffer): void;
|
|
2970
|
+
allocationSize(value: Bolt12Invoice): number;
|
|
2971
|
+
lift(value: UniffiByteArray): Bolt12Invoice;
|
|
2972
|
+
lower(value: Bolt12Invoice): UniffiByteArray;
|
|
2973
|
+
};
|
|
2974
|
+
FfiConverterTypeBolt12InvoiceDetails: {
|
|
2975
|
+
read(from: RustBuffer): Bolt12InvoiceDetails;
|
|
2976
|
+
write(value: Bolt12InvoiceDetails, into: RustBuffer): void;
|
|
2977
|
+
allocationSize(value: Bolt12InvoiceDetails): number;
|
|
2978
|
+
lift(value: UniffiByteArray): Bolt12InvoiceDetails;
|
|
2979
|
+
lower(value: Bolt12InvoiceDetails): UniffiByteArray;
|
|
2980
|
+
};
|
|
2981
|
+
FfiConverterTypeBolt12InvoiceRequestDetails: {
|
|
2982
|
+
read(from: RustBuffer): Bolt12InvoiceRequestDetails;
|
|
2983
|
+
write(value: Bolt12InvoiceRequestDetails, into: RustBuffer): void;
|
|
2984
|
+
allocationSize(value: Bolt12InvoiceRequestDetails): number;
|
|
2985
|
+
lift(value: UniffiByteArray): Bolt12InvoiceRequestDetails;
|
|
2986
|
+
lower(value: Bolt12InvoiceRequestDetails): UniffiByteArray;
|
|
2987
|
+
};
|
|
2988
|
+
FfiConverterTypeBolt12Offer: {
|
|
2989
|
+
read(from: RustBuffer): Bolt12Offer;
|
|
2990
|
+
write(value: Bolt12Offer, into: RustBuffer): void;
|
|
2991
|
+
allocationSize(value: Bolt12Offer): number;
|
|
2992
|
+
lift(value: UniffiByteArray): Bolt12Offer;
|
|
2993
|
+
lower(value: Bolt12Offer): UniffiByteArray;
|
|
2994
|
+
};
|
|
2995
|
+
FfiConverterTypeBolt12OfferBlindedPath: {
|
|
2996
|
+
read(from: RustBuffer): Bolt12OfferBlindedPath;
|
|
2997
|
+
write(value: Bolt12OfferBlindedPath, into: RustBuffer): void;
|
|
2998
|
+
allocationSize(value: Bolt12OfferBlindedPath): number;
|
|
2999
|
+
lift(value: UniffiByteArray): Bolt12OfferBlindedPath;
|
|
3000
|
+
lower(value: Bolt12OfferBlindedPath): UniffiByteArray;
|
|
3001
|
+
};
|
|
3002
|
+
FfiConverterTypeBolt12OfferDetails: {
|
|
3003
|
+
read(from: RustBuffer): Bolt12OfferDetails;
|
|
3004
|
+
write(value: Bolt12OfferDetails, into: RustBuffer): void;
|
|
3005
|
+
allocationSize(value: Bolt12OfferDetails): number;
|
|
3006
|
+
lift(value: UniffiByteArray): Bolt12OfferDetails;
|
|
3007
|
+
lower(value: Bolt12OfferDetails): UniffiByteArray;
|
|
3008
|
+
};
|
|
3009
|
+
FfiConverterTypeCurrencyInfo: {
|
|
3010
|
+
read(from: RustBuffer): CurrencyInfo;
|
|
3011
|
+
write(value: CurrencyInfo, into: RustBuffer): void;
|
|
3012
|
+
allocationSize(value: CurrencyInfo): number;
|
|
3013
|
+
lift(value: UniffiByteArray): CurrencyInfo;
|
|
3014
|
+
lower(value: CurrencyInfo): UniffiByteArray;
|
|
3015
|
+
};
|
|
3016
|
+
FfiConverterTypeFiatCurrency: {
|
|
3017
|
+
read(from: RustBuffer): FiatCurrency;
|
|
3018
|
+
write(value: FiatCurrency, into: RustBuffer): void;
|
|
3019
|
+
allocationSize(value: FiatCurrency): number;
|
|
3020
|
+
lift(value: UniffiByteArray): FiatCurrency;
|
|
3021
|
+
lower(value: FiatCurrency): UniffiByteArray;
|
|
3022
|
+
};
|
|
3023
|
+
FfiConverterTypeInputType: {
|
|
3024
|
+
read(from: RustBuffer): InputType;
|
|
3025
|
+
write(value: InputType, into: RustBuffer): void;
|
|
3026
|
+
allocationSize(value: InputType): number;
|
|
3027
|
+
lift(value: UniffiByteArray): InputType;
|
|
3028
|
+
lower(value: InputType): UniffiByteArray;
|
|
3029
|
+
};
|
|
3030
|
+
FfiConverterTypeLightningAddressDetails: {
|
|
3031
|
+
read(from: RustBuffer): LightningAddressDetails;
|
|
3032
|
+
write(value: LightningAddressDetails, into: RustBuffer): void;
|
|
3033
|
+
allocationSize(value: LightningAddressDetails): number;
|
|
3034
|
+
lift(value: UniffiByteArray): LightningAddressDetails;
|
|
3035
|
+
lower(value: LightningAddressDetails): UniffiByteArray;
|
|
3036
|
+
};
|
|
3037
|
+
FfiConverterTypeLnurlAuthRequestDetails: {
|
|
3038
|
+
read(from: RustBuffer): LnurlAuthRequestDetails;
|
|
3039
|
+
write(value: LnurlAuthRequestDetails, into: RustBuffer): void;
|
|
3040
|
+
allocationSize(value: LnurlAuthRequestDetails): number;
|
|
3041
|
+
lift(value: UniffiByteArray): LnurlAuthRequestDetails;
|
|
3042
|
+
lower(value: LnurlAuthRequestDetails): UniffiByteArray;
|
|
3043
|
+
};
|
|
3044
|
+
FfiConverterTypeLnurlCallbackStatus: {
|
|
3045
|
+
read(from: RustBuffer): LnurlCallbackStatus;
|
|
3046
|
+
write(value: LnurlCallbackStatus, into: RustBuffer): void;
|
|
3047
|
+
allocationSize(value: LnurlCallbackStatus): number;
|
|
3048
|
+
lift(value: UniffiByteArray): LnurlCallbackStatus;
|
|
3049
|
+
lower(value: LnurlCallbackStatus): UniffiByteArray;
|
|
3050
|
+
};
|
|
3051
|
+
FfiConverterTypeLnurlErrorDetails: {
|
|
3052
|
+
read(from: RustBuffer): LnurlErrorDetails;
|
|
3053
|
+
write(value: LnurlErrorDetails, into: RustBuffer): void;
|
|
3054
|
+
allocationSize(value: LnurlErrorDetails): number;
|
|
3055
|
+
lift(value: UniffiByteArray): LnurlErrorDetails;
|
|
3056
|
+
lower(value: LnurlErrorDetails): UniffiByteArray;
|
|
3057
|
+
};
|
|
3058
|
+
FfiConverterTypeLnurlPayRequestDetails: {
|
|
3059
|
+
read(from: RustBuffer): LnurlPayRequestDetails;
|
|
3060
|
+
write(value: LnurlPayRequestDetails, into: RustBuffer): void;
|
|
3061
|
+
allocationSize(value: LnurlPayRequestDetails): number;
|
|
3062
|
+
lift(value: UniffiByteArray): LnurlPayRequestDetails;
|
|
3063
|
+
lower(value: LnurlPayRequestDetails): UniffiByteArray;
|
|
3064
|
+
};
|
|
3065
|
+
FfiConverterTypeLnurlWithdrawRequestDetails: {
|
|
3066
|
+
read(from: RustBuffer): LnurlWithdrawRequestDetails;
|
|
3067
|
+
write(value: LnurlWithdrawRequestDetails, into: RustBuffer): void;
|
|
3068
|
+
allocationSize(value: LnurlWithdrawRequestDetails): number;
|
|
3069
|
+
lift(value: UniffiByteArray): LnurlWithdrawRequestDetails;
|
|
3070
|
+
lower(value: LnurlWithdrawRequestDetails): UniffiByteArray;
|
|
3071
|
+
};
|
|
3072
|
+
FfiConverterTypeLocaleOverrides: {
|
|
3073
|
+
read(from: RustBuffer): LocaleOverrides;
|
|
3074
|
+
write(value: LocaleOverrides, into: RustBuffer): void;
|
|
3075
|
+
allocationSize(value: LocaleOverrides): number;
|
|
3076
|
+
lift(value: UniffiByteArray): LocaleOverrides;
|
|
3077
|
+
lower(value: LocaleOverrides): UniffiByteArray;
|
|
3078
|
+
};
|
|
3079
|
+
FfiConverterTypeLocalizedName: {
|
|
3080
|
+
read(from: RustBuffer): LocalizedName;
|
|
3081
|
+
write(value: LocalizedName, into: RustBuffer): void;
|
|
3082
|
+
allocationSize(value: LocalizedName): number;
|
|
3083
|
+
lift(value: UniffiByteArray): LocalizedName;
|
|
3084
|
+
lower(value: LocalizedName): UniffiByteArray;
|
|
3085
|
+
};
|
|
3086
|
+
FfiConverterTypeMessageSuccessActionData: {
|
|
3087
|
+
read(from: RustBuffer): MessageSuccessActionData;
|
|
3088
|
+
write(value: MessageSuccessActionData, into: RustBuffer): void;
|
|
3089
|
+
allocationSize(value: MessageSuccessActionData): number;
|
|
3090
|
+
lift(value: UniffiByteArray): MessageSuccessActionData;
|
|
3091
|
+
lower(value: MessageSuccessActionData): UniffiByteArray;
|
|
3092
|
+
};
|
|
3093
|
+
FfiConverterTypePaymentRequestSource: {
|
|
3094
|
+
read(from: RustBuffer): PaymentRequestSource;
|
|
3095
|
+
write(value: PaymentRequestSource, into: RustBuffer): void;
|
|
3096
|
+
allocationSize(value: PaymentRequestSource): number;
|
|
3097
|
+
lift(value: UniffiByteArray): PaymentRequestSource;
|
|
3098
|
+
lower(value: PaymentRequestSource): UniffiByteArray;
|
|
3099
|
+
};
|
|
3100
|
+
FfiConverterTypeRate: {
|
|
3101
|
+
read(from: RustBuffer): Rate;
|
|
3102
|
+
write(value: Rate, into: RustBuffer): void;
|
|
3103
|
+
allocationSize(value: Rate): number;
|
|
3104
|
+
lift(value: UniffiByteArray): Rate;
|
|
3105
|
+
lower(value: Rate): UniffiByteArray;
|
|
3106
|
+
};
|
|
3107
|
+
FfiConverterTypeRestClient: FfiConverterObjectWithCallbacks<RestClient>;
|
|
3108
|
+
FfiConverterTypeRestResponse: {
|
|
3109
|
+
read(from: RustBuffer): RestResponse;
|
|
3110
|
+
write(value: RestResponse, into: RustBuffer): void;
|
|
3111
|
+
allocationSize(value: RestResponse): number;
|
|
3112
|
+
lift(value: UniffiByteArray): RestResponse;
|
|
3113
|
+
lower(value: RestResponse): UniffiByteArray;
|
|
3114
|
+
};
|
|
3115
|
+
FfiConverterTypeSatsPaymentDetails: {
|
|
3116
|
+
read(from: RustBuffer): SatsPaymentDetails;
|
|
3117
|
+
write(value: SatsPaymentDetails, into: RustBuffer): void;
|
|
3118
|
+
allocationSize(value: SatsPaymentDetails): number;
|
|
3119
|
+
lift(value: UniffiByteArray): SatsPaymentDetails;
|
|
3120
|
+
lower(value: SatsPaymentDetails): UniffiByteArray;
|
|
3121
|
+
};
|
|
3122
|
+
FfiConverterTypeSilentPaymentAddressDetails: {
|
|
3123
|
+
read(from: RustBuffer): SilentPaymentAddressDetails;
|
|
3124
|
+
write(value: SilentPaymentAddressDetails, into: RustBuffer): void;
|
|
3125
|
+
allocationSize(value: SilentPaymentAddressDetails): number;
|
|
3126
|
+
lift(value: UniffiByteArray): SilentPaymentAddressDetails;
|
|
3127
|
+
lower(value: SilentPaymentAddressDetails): UniffiByteArray;
|
|
3128
|
+
};
|
|
3129
|
+
FfiConverterTypeSparkAddress: {
|
|
3130
|
+
read(from: RustBuffer): SparkAddress;
|
|
3131
|
+
write(value: SparkAddress, into: RustBuffer): void;
|
|
3132
|
+
allocationSize(value: SparkAddress): number;
|
|
3133
|
+
lift(value: UniffiByteArray): SparkAddress;
|
|
3134
|
+
lower(value: SparkAddress): UniffiByteArray;
|
|
3135
|
+
};
|
|
3136
|
+
FfiConverterTypeSparkAddressDetails: {
|
|
3137
|
+
read(from: RustBuffer): SparkAddressDetails;
|
|
3138
|
+
write(value: SparkAddressDetails, into: RustBuffer): void;
|
|
3139
|
+
allocationSize(value: SparkAddressDetails): number;
|
|
3140
|
+
lift(value: UniffiByteArray): SparkAddressDetails;
|
|
3141
|
+
lower(value: SparkAddressDetails): UniffiByteArray;
|
|
3142
|
+
};
|
|
3143
|
+
FfiConverterTypeSparkAddressPaymentType: {
|
|
3144
|
+
read(from: RustBuffer): SparkAddressPaymentType;
|
|
3145
|
+
write(value: SparkAddressPaymentType, into: RustBuffer): void;
|
|
3146
|
+
allocationSize(value: SparkAddressPaymentType): number;
|
|
3147
|
+
lift(value: UniffiByteArray): SparkAddressPaymentType;
|
|
3148
|
+
lower(value: SparkAddressPaymentType): UniffiByteArray;
|
|
3149
|
+
};
|
|
3150
|
+
FfiConverterTypeSparkInvoiceFields: {
|
|
3151
|
+
read(from: RustBuffer): SparkInvoiceFields;
|
|
3152
|
+
write(value: SparkInvoiceFields, into: RustBuffer): void;
|
|
3153
|
+
allocationSize(value: SparkInvoiceFields): number;
|
|
3154
|
+
lift(value: UniffiByteArray): SparkInvoiceFields;
|
|
3155
|
+
lower(value: SparkInvoiceFields): UniffiByteArray;
|
|
3156
|
+
};
|
|
3157
|
+
FfiConverterTypeSuccessAction: {
|
|
3158
|
+
read(from: RustBuffer): SuccessAction;
|
|
3159
|
+
write(value: SuccessAction, into: RustBuffer): void;
|
|
3160
|
+
allocationSize(value: SuccessAction): number;
|
|
3161
|
+
lift(value: UniffiByteArray): SuccessAction;
|
|
3162
|
+
lower(value: SuccessAction): UniffiByteArray;
|
|
3163
|
+
};
|
|
3164
|
+
FfiConverterTypeSuccessActionProcessed: {
|
|
3165
|
+
read(from: RustBuffer): SuccessActionProcessed;
|
|
3166
|
+
write(value: SuccessActionProcessed, into: RustBuffer): void;
|
|
3167
|
+
allocationSize(value: SuccessActionProcessed): number;
|
|
3168
|
+
lift(value: UniffiByteArray): SuccessActionProcessed;
|
|
3169
|
+
lower(value: SuccessActionProcessed): UniffiByteArray;
|
|
3170
|
+
};
|
|
3171
|
+
FfiConverterTypeSymbol: {
|
|
3172
|
+
read(from: RustBuffer): Symbol;
|
|
3173
|
+
write(value: Symbol, into: RustBuffer): void;
|
|
3174
|
+
allocationSize(value: Symbol): number;
|
|
3175
|
+
lift(value: UniffiByteArray): Symbol;
|
|
3176
|
+
lower(value: Symbol): UniffiByteArray;
|
|
3177
|
+
};
|
|
3178
|
+
FfiConverterTypeTokensPaymentDetails: {
|
|
3179
|
+
read(from: RustBuffer): TokensPaymentDetails;
|
|
3180
|
+
write(value: TokensPaymentDetails, into: RustBuffer): void;
|
|
3181
|
+
allocationSize(value: TokensPaymentDetails): number;
|
|
3182
|
+
lift(value: UniffiByteArray): TokensPaymentDetails;
|
|
3183
|
+
lower(value: TokensPaymentDetails): UniffiByteArray;
|
|
3184
|
+
};
|
|
3185
|
+
FfiConverterTypeUrlSuccessActionData: {
|
|
3186
|
+
read(from: RustBuffer): UrlSuccessActionData;
|
|
3187
|
+
write(value: UrlSuccessActionData, into: RustBuffer): void;
|
|
3188
|
+
allocationSize(value: UrlSuccessActionData): number;
|
|
3189
|
+
lift(value: UniffiByteArray): UrlSuccessActionData;
|
|
3190
|
+
lower(value: UrlSuccessActionData): UniffiByteArray;
|
|
3191
|
+
};
|
|
3192
|
+
};
|
|
3193
|
+
}>;
|
|
3194
|
+
export default _default;
|
|
3195
|
+
//# sourceMappingURL=breez_sdk_common.d.ts.map
|