@breeztech/breez-sdk-spark-react-native 0.10.0 → 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +16 -0
- package/android/proguard-rules.pro +4 -0
- package/cpp/generated/breez_sdk_spark.cpp +2535 -557
- package/cpp/generated/breez_sdk_spark.hpp +119 -0
- package/lib/commonjs/generated/breez_sdk_spark-ffi.js.map +1 -1
- package/lib/commonjs/generated/breez_sdk_spark.js +350 -16
- package/lib/commonjs/generated/breez_sdk_spark.js.map +1 -1
- package/lib/module/generated/breez_sdk_spark-ffi.js.map +1 -1
- package/lib/module/generated/breez_sdk_spark.js +349 -15
- package/lib/module/generated/breez_sdk_spark.js.map +1 -1
- package/lib/typescript/commonjs/src/generated/breez_sdk_spark-ffi.d.ts +69 -17
- package/lib/typescript/commonjs/src/generated/breez_sdk_spark-ffi.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/generated/breez_sdk_spark.d.ts +1900 -141
- package/lib/typescript/commonjs/src/generated/breez_sdk_spark.d.ts.map +1 -1
- package/lib/typescript/module/src/generated/breez_sdk_spark-ffi.d.ts +69 -17
- package/lib/typescript/module/src/generated/breez_sdk_spark-ffi.d.ts.map +1 -1
- package/lib/typescript/module/src/generated/breez_sdk_spark.d.ts +1900 -141
- package/lib/typescript/module/src/generated/breez_sdk_spark.d.ts.map +1 -1
- package/package.json +3 -3
- package/plugin/build/index.d.ts +5 -0
- package/plugin/build/index.js +2 -2
- package/plugin/build/withBinaryArtifacts.d.ts +1 -1
- package/plugin/build/withBinaryArtifacts.js +5 -7
- package/plugin/build/withIOS.d.ts +5 -1
- package/plugin/build/withIOS.js +14 -4
- package/src/generated/breez_sdk_spark-ffi.ts +161 -17
- package/src/generated/breez_sdk_spark.ts +7159 -4248
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@breeztech/breez-sdk-spark-react-native",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.0",
|
|
4
4
|
"description": "React Native bindings for the Breez SDK - Nodeless (Spark Implementation)",
|
|
5
5
|
"source": "./src/index.tsx",
|
|
6
6
|
"main": "./lib/commonjs/index.js",
|
|
@@ -197,7 +197,7 @@
|
|
|
197
197
|
"version": "0.49.0"
|
|
198
198
|
},
|
|
199
199
|
"checksums": {
|
|
200
|
-
"android": "
|
|
201
|
-
"ios": "
|
|
200
|
+
"android": "12e8c7330845372cab3e92467e2dd119c0a671f1c9210b3cc64a0a96817f852a",
|
|
201
|
+
"ios": "5dae2860ef281cb77e08dc221a4dcb33add48034ec136c87d8bf3d7407bb459a"
|
|
202
202
|
}
|
|
203
203
|
}
|
package/plugin/build/index.d.ts
CHANGED
|
@@ -5,6 +5,11 @@ export type BreezSdkPluginOptions = {
|
|
|
5
5
|
* Set to true if you want to handle binary downloads manually
|
|
6
6
|
*/
|
|
7
7
|
skipBinaryDownload?: boolean;
|
|
8
|
+
/**
|
|
9
|
+
* Add webcredentials:keys.breez.technology to the iOS Associated Domains
|
|
10
|
+
* entitlement, required for passkey-based seed derivation (default: false)
|
|
11
|
+
*/
|
|
12
|
+
enablePasskey?: boolean;
|
|
8
13
|
};
|
|
9
14
|
declare const _default: ConfigPlugin<void | BreezSdkPluginOptions>;
|
|
10
15
|
export default _default;
|
package/plugin/build/index.js
CHANGED
|
@@ -6,14 +6,14 @@ const withAndroid_1 = require("./withAndroid");
|
|
|
6
6
|
const withIOS_1 = require("./withIOS");
|
|
7
7
|
const utils_1 = require("./utils");
|
|
8
8
|
const withBreezSdk = (config, options) => {
|
|
9
|
-
const { skipBinaryDownload = false } = options || {};
|
|
9
|
+
const { skipBinaryDownload = false, enablePasskey = false } = options || {};
|
|
10
10
|
return (0, config_plugins_1.withPlugins)(config, [
|
|
11
11
|
// Download binary artifacts first
|
|
12
12
|
...(skipBinaryDownload ? [] : [withBinaryArtifacts_1.withBinaryArtifacts]),
|
|
13
13
|
// Configure Android
|
|
14
14
|
withAndroid_1.withBreezSdkAndroid,
|
|
15
15
|
// Configure iOS
|
|
16
|
-
withIOS_1.withBreezSdkIOS,
|
|
16
|
+
[withIOS_1.withBreezSdkIOS, { enablePasskey }],
|
|
17
17
|
]);
|
|
18
18
|
};
|
|
19
19
|
exports.default = (0, config_plugins_1.createRunOncePlugin)(withBreezSdk, utils_1.sdkPackage.name, utils_1.sdkPackage.version);
|
|
@@ -34,6 +34,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
36
|
exports.withBinaryArtifacts = void 0;
|
|
37
|
+
const config_plugins_1 = require("@expo/config-plugins");
|
|
37
38
|
const path = __importStar(require("path"));
|
|
38
39
|
const fs = __importStar(require("fs"));
|
|
39
40
|
const child_process_1 = require("child_process");
|
|
@@ -42,22 +43,19 @@ const child_process_1 = require("child_process");
|
|
|
42
43
|
* This runs during expo prebuild to ensure binaries are available
|
|
43
44
|
*/
|
|
44
45
|
const withBinaryArtifacts = (config) => {
|
|
45
|
-
return {
|
|
46
|
-
...config,
|
|
47
|
-
async prebuildAsync(config) {
|
|
46
|
+
return (0, config_plugins_1.withDangerousMod)(config, ['android', (config) => {
|
|
48
47
|
try {
|
|
49
|
-
|
|
48
|
+
downloadBinaryArtifacts();
|
|
50
49
|
}
|
|
51
50
|
catch (error) {
|
|
52
51
|
console.warn('Failed to download Breez SDK binary artifacts:', error);
|
|
53
52
|
console.warn('You may need to run the postinstall script manually or check your network connection.');
|
|
54
53
|
}
|
|
55
54
|
return config;
|
|
56
|
-
}
|
|
57
|
-
};
|
|
55
|
+
}]);
|
|
58
56
|
};
|
|
59
57
|
exports.withBinaryArtifacts = withBinaryArtifacts;
|
|
60
|
-
|
|
58
|
+
function downloadBinaryArtifacts() {
|
|
61
59
|
const packageRoot = findPackageRoot();
|
|
62
60
|
if (!packageRoot) {
|
|
63
61
|
throw new Error('Could not find @breeztech/breez-sdk-spark-react-native package');
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { type ConfigPlugin } from '@expo/config-plugins';
|
|
2
|
+
type WithIOSOptions = {
|
|
3
|
+
enablePasskey: boolean;
|
|
4
|
+
};
|
|
2
5
|
/**
|
|
3
6
|
* Configure iOS build settings for Breez SDK
|
|
4
7
|
* The podspec already defines the minimum iOS version via min_ios_version_supported
|
|
5
8
|
*/
|
|
6
|
-
export declare const withBreezSdkIOS: ConfigPlugin
|
|
9
|
+
export declare const withBreezSdkIOS: ConfigPlugin<WithIOSOptions>;
|
|
10
|
+
export {};
|
package/plugin/build/withIOS.js
CHANGED
|
@@ -1,13 +1,23 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.withBreezSdkIOS = void 0;
|
|
4
|
+
const config_plugins_1 = require("@expo/config-plugins");
|
|
4
5
|
/**
|
|
5
6
|
* Configure iOS build settings for Breez SDK
|
|
6
7
|
* The podspec already defines the minimum iOS version via min_ios_version_supported
|
|
7
8
|
*/
|
|
8
|
-
const withBreezSdkIOS = (config) => {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
const withBreezSdkIOS = (config, { enablePasskey }) => {
|
|
10
|
+
if (!enablePasskey) {
|
|
11
|
+
return config;
|
|
12
|
+
}
|
|
13
|
+
return (0, config_plugins_1.withEntitlementsPlist)(config, (config) => {
|
|
14
|
+
const domain = 'webcredentials:keys.breez.technology';
|
|
15
|
+
const domains = config.modResults['com.apple.developer.associated-domains'] ?? [];
|
|
16
|
+
if (!domains.includes(domain)) {
|
|
17
|
+
domains.push(domain);
|
|
18
|
+
}
|
|
19
|
+
config.modResults['com.apple.developer.associated-domains'] = domains;
|
|
20
|
+
return config;
|
|
21
|
+
});
|
|
12
22
|
};
|
|
13
23
|
exports.withBreezSdkIOS = withBreezSdkIOS;
|
|
@@ -58,6 +58,10 @@ interface NativeModuleInterface {
|
|
|
58
58
|
ptr: bigint,
|
|
59
59
|
uniffi_out_err: UniffiRustCallStatus
|
|
60
60
|
): void;
|
|
61
|
+
ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_add_contact(
|
|
62
|
+
ptr: bigint,
|
|
63
|
+
request: Uint8Array
|
|
64
|
+
): bigint;
|
|
61
65
|
ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_add_event_listener(
|
|
62
66
|
ptr: bigint,
|
|
63
67
|
listener: bigint
|
|
@@ -85,6 +89,10 @@ interface NativeModuleInterface {
|
|
|
85
89
|
ptr: bigint,
|
|
86
90
|
request: Uint8Array
|
|
87
91
|
): bigint;
|
|
92
|
+
ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_delete_contact(
|
|
93
|
+
ptr: bigint,
|
|
94
|
+
id: Uint8Array
|
|
95
|
+
): bigint;
|
|
88
96
|
ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_delete_lightning_address(
|
|
89
97
|
ptr: bigint
|
|
90
98
|
): bigint;
|
|
@@ -121,6 +129,10 @@ interface NativeModuleInterface {
|
|
|
121
129
|
ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_get_user_settings(
|
|
122
130
|
ptr: bigint
|
|
123
131
|
): bigint;
|
|
132
|
+
ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_list_contacts(
|
|
133
|
+
ptr: bigint,
|
|
134
|
+
request: Uint8Array
|
|
135
|
+
): bigint;
|
|
124
136
|
ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_list_fiat_currencies(
|
|
125
137
|
ptr: bigint
|
|
126
138
|
): bigint;
|
|
@@ -194,6 +206,10 @@ interface NativeModuleInterface {
|
|
|
194
206
|
ptr: bigint,
|
|
195
207
|
request: Uint8Array
|
|
196
208
|
): bigint;
|
|
209
|
+
ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_update_contact(
|
|
210
|
+
ptr: bigint,
|
|
211
|
+
request: Uint8Array
|
|
212
|
+
): bigint;
|
|
197
213
|
ubrn_uniffi_breez_sdk_spark_fn_method_breezsdk_update_user_settings(
|
|
198
214
|
ptr: bigint,
|
|
199
215
|
request: Uint8Array
|
|
@@ -308,6 +324,48 @@ interface NativeModuleInterface {
|
|
|
308
324
|
ubrn_uniffi_breez_sdk_spark_fn_method_fiatservice_fetch_fiat_rates(
|
|
309
325
|
ptr: bigint
|
|
310
326
|
): bigint;
|
|
327
|
+
ubrn_uniffi_breez_sdk_spark_fn_clone_passkey(
|
|
328
|
+
ptr: bigint,
|
|
329
|
+
uniffi_out_err: UniffiRustCallStatus
|
|
330
|
+
): bigint;
|
|
331
|
+
ubrn_uniffi_breez_sdk_spark_fn_free_passkey(
|
|
332
|
+
ptr: bigint,
|
|
333
|
+
uniffi_out_err: UniffiRustCallStatus
|
|
334
|
+
): void;
|
|
335
|
+
ubrn_uniffi_breez_sdk_spark_fn_constructor_passkey_new(
|
|
336
|
+
prfProvider: bigint,
|
|
337
|
+
relayConfig: Uint8Array,
|
|
338
|
+
uniffi_out_err: UniffiRustCallStatus
|
|
339
|
+
): bigint;
|
|
340
|
+
ubrn_uniffi_breez_sdk_spark_fn_method_passkey_get_wallet(
|
|
341
|
+
ptr: bigint,
|
|
342
|
+
walletName: Uint8Array
|
|
343
|
+
): bigint;
|
|
344
|
+
ubrn_uniffi_breez_sdk_spark_fn_method_passkey_is_available(
|
|
345
|
+
ptr: bigint
|
|
346
|
+
): bigint;
|
|
347
|
+
ubrn_uniffi_breez_sdk_spark_fn_method_passkey_list_wallet_names(
|
|
348
|
+
ptr: bigint
|
|
349
|
+
): bigint;
|
|
350
|
+
ubrn_uniffi_breez_sdk_spark_fn_method_passkey_store_wallet_name(
|
|
351
|
+
ptr: bigint,
|
|
352
|
+
walletName: Uint8Array
|
|
353
|
+
): bigint;
|
|
354
|
+
ubrn_uniffi_breez_sdk_spark_fn_clone_passkeyprfprovider(
|
|
355
|
+
ptr: bigint,
|
|
356
|
+
uniffi_out_err: UniffiRustCallStatus
|
|
357
|
+
): bigint;
|
|
358
|
+
ubrn_uniffi_breez_sdk_spark_fn_free_passkeyprfprovider(
|
|
359
|
+
ptr: bigint,
|
|
360
|
+
uniffi_out_err: UniffiRustCallStatus
|
|
361
|
+
): void;
|
|
362
|
+
ubrn_uniffi_breez_sdk_spark_fn_method_passkeyprfprovider_derive_prf_seed(
|
|
363
|
+
ptr: bigint,
|
|
364
|
+
salt: Uint8Array
|
|
365
|
+
): bigint;
|
|
366
|
+
ubrn_uniffi_breez_sdk_spark_fn_method_passkeyprfprovider_is_prf_available(
|
|
367
|
+
ptr: bigint
|
|
368
|
+
): bigint;
|
|
311
369
|
ubrn_uniffi_breez_sdk_spark_fn_clone_paymentobserver(
|
|
312
370
|
ptr: bigint,
|
|
313
371
|
uniffi_out_err: UniffiRustCallStatus
|
|
@@ -463,6 +521,22 @@ interface NativeModuleInterface {
|
|
|
463
521
|
ptr: bigint,
|
|
464
522
|
metadata: Uint8Array
|
|
465
523
|
): bigint;
|
|
524
|
+
ubrn_uniffi_breez_sdk_spark_fn_method_storage_list_contacts(
|
|
525
|
+
ptr: bigint,
|
|
526
|
+
request: Uint8Array
|
|
527
|
+
): bigint;
|
|
528
|
+
ubrn_uniffi_breez_sdk_spark_fn_method_storage_get_contact(
|
|
529
|
+
ptr: bigint,
|
|
530
|
+
id: Uint8Array
|
|
531
|
+
): bigint;
|
|
532
|
+
ubrn_uniffi_breez_sdk_spark_fn_method_storage_insert_contact(
|
|
533
|
+
ptr: bigint,
|
|
534
|
+
contact: Uint8Array
|
|
535
|
+
): bigint;
|
|
536
|
+
ubrn_uniffi_breez_sdk_spark_fn_method_storage_delete_contact(
|
|
537
|
+
ptr: bigint,
|
|
538
|
+
id: Uint8Array
|
|
539
|
+
): bigint;
|
|
466
540
|
ubrn_uniffi_breez_sdk_spark_fn_method_storage_add_outgoing_change(
|
|
467
541
|
ptr: bigint,
|
|
468
542
|
record: Uint8Array
|
|
@@ -708,6 +782,7 @@ interface NativeModuleInterface {
|
|
|
708
782
|
ubrn_uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_get_transaction_hex(): number;
|
|
709
783
|
ubrn_uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_broadcast_transaction(): number;
|
|
710
784
|
ubrn_uniffi_breez_sdk_spark_checksum_method_bitcoinchainservice_recommended_fees(): number;
|
|
785
|
+
ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_add_contact(): number;
|
|
711
786
|
ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_add_event_listener(): number;
|
|
712
787
|
ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_buy_bitcoin(): number;
|
|
713
788
|
ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_cancel_leaf_optimization(): number;
|
|
@@ -715,6 +790,7 @@ interface NativeModuleInterface {
|
|
|
715
790
|
ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_check_message(): number;
|
|
716
791
|
ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_claim_deposit(): number;
|
|
717
792
|
ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_claim_htlc_payment(): number;
|
|
793
|
+
ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_delete_contact(): number;
|
|
718
794
|
ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_delete_lightning_address(): number;
|
|
719
795
|
ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_disconnect(): number;
|
|
720
796
|
ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_fetch_conversion_limits(): number;
|
|
@@ -725,6 +801,7 @@ interface NativeModuleInterface {
|
|
|
725
801
|
ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_get_token_issuer(): number;
|
|
726
802
|
ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_get_tokens_metadata(): number;
|
|
727
803
|
ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_get_user_settings(): number;
|
|
804
|
+
ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_list_contacts(): number;
|
|
728
805
|
ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_list_fiat_currencies(): number;
|
|
729
806
|
ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_list_fiat_rates(): number;
|
|
730
807
|
ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_list_payments(): number;
|
|
@@ -744,6 +821,7 @@ interface NativeModuleInterface {
|
|
|
744
821
|
ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_sign_message(): number;
|
|
745
822
|
ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_start_leaf_optimization(): number;
|
|
746
823
|
ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_sync_wallet(): number;
|
|
824
|
+
ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_update_contact(): number;
|
|
747
825
|
ubrn_uniffi_breez_sdk_spark_checksum_method_breezsdk_update_user_settings(): number;
|
|
748
826
|
ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_identity_public_key(): number;
|
|
749
827
|
ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_derive_public_key(): number;
|
|
@@ -767,6 +845,12 @@ interface NativeModuleInterface {
|
|
|
767
845
|
ubrn_uniffi_breez_sdk_spark_checksum_method_externalsigner_aggregate_frost(): number;
|
|
768
846
|
ubrn_uniffi_breez_sdk_spark_checksum_method_fiatservice_fetch_fiat_currencies(): number;
|
|
769
847
|
ubrn_uniffi_breez_sdk_spark_checksum_method_fiatservice_fetch_fiat_rates(): number;
|
|
848
|
+
ubrn_uniffi_breez_sdk_spark_checksum_method_passkey_get_wallet(): number;
|
|
849
|
+
ubrn_uniffi_breez_sdk_spark_checksum_method_passkey_is_available(): number;
|
|
850
|
+
ubrn_uniffi_breez_sdk_spark_checksum_method_passkey_list_wallet_names(): number;
|
|
851
|
+
ubrn_uniffi_breez_sdk_spark_checksum_method_passkey_store_wallet_name(): number;
|
|
852
|
+
ubrn_uniffi_breez_sdk_spark_checksum_method_passkeyprfprovider_derive_prf_seed(): number;
|
|
853
|
+
ubrn_uniffi_breez_sdk_spark_checksum_method_passkeyprfprovider_is_prf_available(): number;
|
|
770
854
|
ubrn_uniffi_breez_sdk_spark_checksum_method_paymentobserver_before_send(): number;
|
|
771
855
|
ubrn_uniffi_breez_sdk_spark_checksum_method_restclient_get_request(): number;
|
|
772
856
|
ubrn_uniffi_breez_sdk_spark_checksum_method_restclient_post_request(): number;
|
|
@@ -794,6 +878,10 @@ interface NativeModuleInterface {
|
|
|
794
878
|
ubrn_uniffi_breez_sdk_spark_checksum_method_storage_list_deposits(): number;
|
|
795
879
|
ubrn_uniffi_breez_sdk_spark_checksum_method_storage_update_deposit(): number;
|
|
796
880
|
ubrn_uniffi_breez_sdk_spark_checksum_method_storage_set_lnurl_metadata(): number;
|
|
881
|
+
ubrn_uniffi_breez_sdk_spark_checksum_method_storage_list_contacts(): number;
|
|
882
|
+
ubrn_uniffi_breez_sdk_spark_checksum_method_storage_get_contact(): number;
|
|
883
|
+
ubrn_uniffi_breez_sdk_spark_checksum_method_storage_insert_contact(): number;
|
|
884
|
+
ubrn_uniffi_breez_sdk_spark_checksum_method_storage_delete_contact(): number;
|
|
797
885
|
ubrn_uniffi_breez_sdk_spark_checksum_method_storage_add_outgoing_change(): number;
|
|
798
886
|
ubrn_uniffi_breez_sdk_spark_checksum_method_storage_complete_outgoing_sync(): number;
|
|
799
887
|
ubrn_uniffi_breez_sdk_spark_checksum_method_storage_get_pending_outgoing_changes(): number;
|
|
@@ -810,6 +898,7 @@ interface NativeModuleInterface {
|
|
|
810
898
|
ubrn_uniffi_breez_sdk_spark_checksum_method_tokenissuer_get_issuer_token_metadata(): number;
|
|
811
899
|
ubrn_uniffi_breez_sdk_spark_checksum_method_tokenissuer_mint_issuer_token(): number;
|
|
812
900
|
ubrn_uniffi_breez_sdk_spark_checksum_method_tokenissuer_unfreeze_issuer_token(): number;
|
|
901
|
+
ubrn_uniffi_breez_sdk_spark_checksum_constructor_passkey_new(): number;
|
|
813
902
|
ubrn_uniffi_breez_sdk_spark_checksum_constructor_sdkbuilder_new(): number;
|
|
814
903
|
ubrn_uniffi_breez_sdk_spark_checksum_method_eventlistener_on_event(): number;
|
|
815
904
|
ubrn_uniffi_breez_sdk_spark_checksum_method_logger_log(): number;
|
|
@@ -829,6 +918,9 @@ interface NativeModuleInterface {
|
|
|
829
918
|
ubrn_uniffi_breez_sdk_spark_fn_init_callback_vtable_fiatservice(
|
|
830
919
|
vtable: UniffiVTableCallbackInterfaceFiatService
|
|
831
920
|
): void;
|
|
921
|
+
ubrn_uniffi_breez_sdk_spark_fn_init_callback_vtable_passkeyprfprovider(
|
|
922
|
+
vtable: UniffiVTableCallbackInterfacePasskeyPrfProvider
|
|
923
|
+
): void;
|
|
832
924
|
ubrn_uniffi_breez_sdk_spark_fn_init_callback_vtable_paymentobserver(
|
|
833
925
|
vtable: UniffiVTableCallbackInterfacePaymentObserver
|
|
834
926
|
): void;
|
|
@@ -854,6 +946,14 @@ interface NativeModuleInterface {
|
|
|
854
946
|
pointer: bigint,
|
|
855
947
|
uniffi_out_err: UniffiRustCallStatus
|
|
856
948
|
): UniffiRustArcPtr;
|
|
949
|
+
ubrn_uniffi_internal_fn_method_passkey_ffi__bless_pointer(
|
|
950
|
+
pointer: bigint,
|
|
951
|
+
uniffi_out_err: UniffiRustCallStatus
|
|
952
|
+
): UniffiRustArcPtr;
|
|
953
|
+
ubrn_uniffi_internal_fn_method_passkeyprfprovider_ffi__bless_pointer(
|
|
954
|
+
pointer: bigint,
|
|
955
|
+
uniffi_out_err: UniffiRustCallStatus
|
|
956
|
+
): UniffiRustArcPtr;
|
|
857
957
|
ubrn_uniffi_internal_fn_method_paymentobserver_ffi__bless_pointer(
|
|
858
958
|
pointer: bigint,
|
|
859
959
|
uniffi_out_err: UniffiRustCallStatus
|
|
@@ -1173,6 +1273,17 @@ type UniffiCallbackInterfaceFiatServiceMethod1 = (
|
|
|
1173
1273
|
uniffiFutureCallback: UniffiForeignFutureCompleteRustBuffer,
|
|
1174
1274
|
uniffiCallbackData: bigint
|
|
1175
1275
|
) => UniffiResult<UniffiForeignFuture>;
|
|
1276
|
+
type UniffiCallbackInterfacePasskeyPrfProviderMethod0 = (
|
|
1277
|
+
uniffiHandle: bigint,
|
|
1278
|
+
salt: Uint8Array,
|
|
1279
|
+
uniffiFutureCallback: UniffiForeignFutureCompleteRustBuffer,
|
|
1280
|
+
uniffiCallbackData: bigint
|
|
1281
|
+
) => UniffiResult<UniffiForeignFuture>;
|
|
1282
|
+
type UniffiCallbackInterfacePasskeyPrfProviderMethod1 = (
|
|
1283
|
+
uniffiHandle: bigint,
|
|
1284
|
+
uniffiFutureCallback: UniffiForeignFutureCompleteI8,
|
|
1285
|
+
uniffiCallbackData: bigint
|
|
1286
|
+
) => UniffiResult<UniffiForeignFuture>;
|
|
1176
1287
|
type UniffiCallbackInterfacePaymentObserverMethod0 = (
|
|
1177
1288
|
uniffiHandle: bigint,
|
|
1178
1289
|
payments: Uint8Array,
|
|
@@ -1293,53 +1404,77 @@ type UniffiCallbackInterfaceStorageMethod13 = (
|
|
|
1293
1404
|
uniffiCallbackData: bigint
|
|
1294
1405
|
) => UniffiResult<UniffiForeignFuture>;
|
|
1295
1406
|
type UniffiCallbackInterfaceStorageMethod14 = (
|
|
1407
|
+
uniffiHandle: bigint,
|
|
1408
|
+
request: Uint8Array,
|
|
1409
|
+
uniffiFutureCallback: UniffiForeignFutureCompleteRustBuffer,
|
|
1410
|
+
uniffiCallbackData: bigint
|
|
1411
|
+
) => UniffiResult<UniffiForeignFuture>;
|
|
1412
|
+
type UniffiCallbackInterfaceStorageMethod15 = (
|
|
1413
|
+
uniffiHandle: bigint,
|
|
1414
|
+
id: Uint8Array,
|
|
1415
|
+
uniffiFutureCallback: UniffiForeignFutureCompleteRustBuffer,
|
|
1416
|
+
uniffiCallbackData: bigint
|
|
1417
|
+
) => UniffiResult<UniffiForeignFuture>;
|
|
1418
|
+
type UniffiCallbackInterfaceStorageMethod16 = (
|
|
1419
|
+
uniffiHandle: bigint,
|
|
1420
|
+
contact: Uint8Array,
|
|
1421
|
+
uniffiFutureCallback: UniffiForeignFutureCompleteVoid,
|
|
1422
|
+
uniffiCallbackData: bigint
|
|
1423
|
+
) => UniffiResult<UniffiForeignFuture>;
|
|
1424
|
+
type UniffiCallbackInterfaceStorageMethod17 = (
|
|
1425
|
+
uniffiHandle: bigint,
|
|
1426
|
+
id: Uint8Array,
|
|
1427
|
+
uniffiFutureCallback: UniffiForeignFutureCompleteVoid,
|
|
1428
|
+
uniffiCallbackData: bigint
|
|
1429
|
+
) => UniffiResult<UniffiForeignFuture>;
|
|
1430
|
+
type UniffiCallbackInterfaceStorageMethod18 = (
|
|
1296
1431
|
uniffiHandle: bigint,
|
|
1297
1432
|
record: Uint8Array,
|
|
1298
1433
|
uniffiFutureCallback: UniffiForeignFutureCompleteU64,
|
|
1299
1434
|
uniffiCallbackData: bigint
|
|
1300
1435
|
) => UniffiResult<UniffiForeignFuture>;
|
|
1301
|
-
type
|
|
1436
|
+
type UniffiCallbackInterfaceStorageMethod19 = (
|
|
1302
1437
|
uniffiHandle: bigint,
|
|
1303
1438
|
record: Uint8Array,
|
|
1304
1439
|
localRevision: bigint,
|
|
1305
1440
|
uniffiFutureCallback: UniffiForeignFutureCompleteVoid,
|
|
1306
1441
|
uniffiCallbackData: bigint
|
|
1307
1442
|
) => UniffiResult<UniffiForeignFuture>;
|
|
1308
|
-
type
|
|
1443
|
+
type UniffiCallbackInterfaceStorageMethod20 = (
|
|
1309
1444
|
uniffiHandle: bigint,
|
|
1310
1445
|
limit: number,
|
|
1311
1446
|
uniffiFutureCallback: UniffiForeignFutureCompleteRustBuffer,
|
|
1312
1447
|
uniffiCallbackData: bigint
|
|
1313
1448
|
) => UniffiResult<UniffiForeignFuture>;
|
|
1314
|
-
type
|
|
1449
|
+
type UniffiCallbackInterfaceStorageMethod21 = (
|
|
1315
1450
|
uniffiHandle: bigint,
|
|
1316
1451
|
uniffiFutureCallback: UniffiForeignFutureCompleteU64,
|
|
1317
1452
|
uniffiCallbackData: bigint
|
|
1318
1453
|
) => UniffiResult<UniffiForeignFuture>;
|
|
1319
|
-
type
|
|
1454
|
+
type UniffiCallbackInterfaceStorageMethod22 = (
|
|
1320
1455
|
uniffiHandle: bigint,
|
|
1321
1456
|
records: Uint8Array,
|
|
1322
1457
|
uniffiFutureCallback: UniffiForeignFutureCompleteVoid,
|
|
1323
1458
|
uniffiCallbackData: bigint
|
|
1324
1459
|
) => UniffiResult<UniffiForeignFuture>;
|
|
1325
|
-
type
|
|
1460
|
+
type UniffiCallbackInterfaceStorageMethod23 = (
|
|
1326
1461
|
uniffiHandle: bigint,
|
|
1327
1462
|
record: Uint8Array,
|
|
1328
1463
|
uniffiFutureCallback: UniffiForeignFutureCompleteVoid,
|
|
1329
1464
|
uniffiCallbackData: bigint
|
|
1330
1465
|
) => UniffiResult<UniffiForeignFuture>;
|
|
1331
|
-
type
|
|
1466
|
+
type UniffiCallbackInterfaceStorageMethod24 = (
|
|
1332
1467
|
uniffiHandle: bigint,
|
|
1333
1468
|
limit: number,
|
|
1334
1469
|
uniffiFutureCallback: UniffiForeignFutureCompleteRustBuffer,
|
|
1335
1470
|
uniffiCallbackData: bigint
|
|
1336
1471
|
) => UniffiResult<UniffiForeignFuture>;
|
|
1337
|
-
type
|
|
1472
|
+
type UniffiCallbackInterfaceStorageMethod25 = (
|
|
1338
1473
|
uniffiHandle: bigint,
|
|
1339
1474
|
uniffiFutureCallback: UniffiForeignFutureCompleteRustBuffer,
|
|
1340
1475
|
uniffiCallbackData: bigint
|
|
1341
1476
|
) => UniffiResult<UniffiForeignFuture>;
|
|
1342
|
-
type
|
|
1477
|
+
type UniffiCallbackInterfaceStorageMethod26 = (
|
|
1343
1478
|
uniffiHandle: bigint,
|
|
1344
1479
|
record: Uint8Array,
|
|
1345
1480
|
uniffiFutureCallback: UniffiForeignFutureCompleteVoid,
|
|
@@ -1389,6 +1524,11 @@ export type UniffiVTableCallbackInterfaceFiatService = {
|
|
|
1389
1524
|
fetchFiatRates: UniffiCallbackInterfaceFiatServiceMethod1;
|
|
1390
1525
|
uniffiFree: UniffiCallbackInterfaceFree;
|
|
1391
1526
|
};
|
|
1527
|
+
export type UniffiVTableCallbackInterfacePasskeyPrfProvider = {
|
|
1528
|
+
derivePrfSeed: UniffiCallbackInterfacePasskeyPrfProviderMethod0;
|
|
1529
|
+
isPrfAvailable: UniffiCallbackInterfacePasskeyPrfProviderMethod1;
|
|
1530
|
+
uniffiFree: UniffiCallbackInterfaceFree;
|
|
1531
|
+
};
|
|
1392
1532
|
export type UniffiVTableCallbackInterfacePaymentObserver = {
|
|
1393
1533
|
beforeSend: UniffiCallbackInterfacePaymentObserverMethod0;
|
|
1394
1534
|
uniffiFree: UniffiCallbackInterfaceFree;
|
|
@@ -1414,15 +1554,19 @@ export type UniffiVTableCallbackInterfaceStorage = {
|
|
|
1414
1554
|
listDeposits: UniffiCallbackInterfaceStorageMethod11;
|
|
1415
1555
|
updateDeposit: UniffiCallbackInterfaceStorageMethod12;
|
|
1416
1556
|
setLnurlMetadata: UniffiCallbackInterfaceStorageMethod13;
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1557
|
+
listContacts: UniffiCallbackInterfaceStorageMethod14;
|
|
1558
|
+
getContact: UniffiCallbackInterfaceStorageMethod15;
|
|
1559
|
+
insertContact: UniffiCallbackInterfaceStorageMethod16;
|
|
1560
|
+
deleteContact: UniffiCallbackInterfaceStorageMethod17;
|
|
1561
|
+
addOutgoingChange: UniffiCallbackInterfaceStorageMethod18;
|
|
1562
|
+
completeOutgoingSync: UniffiCallbackInterfaceStorageMethod19;
|
|
1563
|
+
getPendingOutgoingChanges: UniffiCallbackInterfaceStorageMethod20;
|
|
1564
|
+
getLastRevision: UniffiCallbackInterfaceStorageMethod21;
|
|
1565
|
+
insertIncomingRecords: UniffiCallbackInterfaceStorageMethod22;
|
|
1566
|
+
deleteIncomingRecord: UniffiCallbackInterfaceStorageMethod23;
|
|
1567
|
+
getIncomingRecords: UniffiCallbackInterfaceStorageMethod24;
|
|
1568
|
+
getLatestOutgoingChange: UniffiCallbackInterfaceStorageMethod25;
|
|
1569
|
+
updateRecordFromIncoming: UniffiCallbackInterfaceStorageMethod26;
|
|
1426
1570
|
uniffiFree: UniffiCallbackInterfaceFree;
|
|
1427
1571
|
};
|
|
1428
1572
|
|