@breeztech/breez-sdk-spark-react-native 0.10.0 → 0.11.0-dev2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. package/{breeztech-breez-sdk-spark-react-native.podspec → BreezSdkSparkReactNative.podspec} +2 -2
  2. package/android/CMakeLists.txt +3 -4
  3. package/android/proguard-rules.pro +4 -0
  4. package/cpp/generated/breez_sdk_spark.cpp +1567 -514
  5. package/cpp/generated/breez_sdk_spark.hpp +73 -25
  6. package/lib/commonjs/generated/breez_sdk_spark-ffi.js.map +1 -1
  7. package/lib/commonjs/generated/breez_sdk_spark.js +186 -81
  8. package/lib/commonjs/generated/breez_sdk_spark.js.map +1 -1
  9. package/lib/commonjs/generated/breez_sdk_spark_bindings.js +4 -2
  10. package/lib/commonjs/generated/breez_sdk_spark_bindings.js.map +1 -1
  11. package/lib/commonjs/index.js +11 -1
  12. package/lib/commonjs/index.js.map +1 -1
  13. package/lib/module/generated/breez_sdk_spark-ffi.js.map +1 -1
  14. package/lib/module/generated/breez_sdk_spark.js +185 -80
  15. package/lib/module/generated/breez_sdk_spark.js.map +1 -1
  16. package/lib/module/generated/breez_sdk_spark_bindings.js +4 -2
  17. package/lib/module/generated/breez_sdk_spark_bindings.js.map +1 -1
  18. package/lib/module/index.js +7 -0
  19. package/lib/module/index.js.map +1 -1
  20. package/lib/typescript/commonjs/src/generated/breez_sdk_spark-ffi.d.ts +95 -71
  21. package/lib/typescript/commonjs/src/generated/breez_sdk_spark-ffi.d.ts.map +1 -1
  22. package/lib/typescript/commonjs/src/generated/breez_sdk_spark.d.ts +409 -5
  23. package/lib/typescript/commonjs/src/generated/breez_sdk_spark.d.ts.map +1 -1
  24. package/lib/typescript/commonjs/src/index.d.ts +1 -0
  25. package/lib/typescript/commonjs/src/index.d.ts.map +1 -1
  26. package/lib/typescript/module/src/generated/breez_sdk_spark-ffi.d.ts +95 -71
  27. package/lib/typescript/module/src/generated/breez_sdk_spark-ffi.d.ts.map +1 -1
  28. package/lib/typescript/module/src/generated/breez_sdk_spark.d.ts +409 -5
  29. package/lib/typescript/module/src/generated/breez_sdk_spark.d.ts.map +1 -1
  30. package/lib/typescript/module/src/index.d.ts +1 -0
  31. package/lib/typescript/module/src/index.d.ts.map +1 -1
  32. package/package.json +4 -4
  33. package/src/generated/breez_sdk_spark-ffi.ts +163 -95
  34. package/src/generated/breez_sdk_spark.ts +1919 -771
  35. package/src/generated/breez_sdk_spark_bindings.ts +2 -2
  36. package/src/index.tsx +7 -0
@@ -73,6 +73,35 @@ export interface EventListener {
73
73
  export interface Logger {
74
74
  log(l: LogEntry): void;
75
75
  }
76
+ /**
77
+ * Request to add a new contact.
78
+ */
79
+ export type AddContactRequest = {
80
+ name: string;
81
+ /**
82
+ * A Lightning address (user@domain).
83
+ */
84
+ paymentIdentifier: string;
85
+ };
86
+ /**
87
+ * Generated factory for {@link AddContactRequest} record objects.
88
+ */
89
+ export declare const AddContactRequest: Readonly<{
90
+ /**
91
+ * Create a frozen instance of {@link AddContactRequest}, with defaults specified
92
+ * in Rust, in the {@link breez_sdk_spark} crate.
93
+ */
94
+ create: (partial: Partial<AddContactRequest> & Required<Omit<AddContactRequest, never>>) => AddContactRequest;
95
+ /**
96
+ * Create a frozen instance of {@link AddContactRequest}, with defaults specified
97
+ * in Rust, in the {@link breez_sdk_spark} crate.
98
+ */
99
+ new: (partial: Partial<AddContactRequest> & Required<Omit<AddContactRequest, never>>) => AddContactRequest;
100
+ /**
101
+ * Defaults specified in the {@link breez_sdk_spark} crate.
102
+ */
103
+ defaults: () => Partial<AddContactRequest>;
104
+ }>;
76
105
  /**
77
106
  * Payload of the AES success action, as received from the LNURL endpoint
78
107
  *
@@ -869,6 +898,38 @@ export declare const ConnectWithSignerRequest: Readonly<{
869
898
  */
870
899
  defaults: () => Partial<ConnectWithSignerRequest>;
871
900
  }>;
901
+ /**
902
+ * A contact entry containing a name and payment identifier.
903
+ */
904
+ export type Contact = {
905
+ id: string;
906
+ name: string;
907
+ /**
908
+ * A Lightning address (user@domain).
909
+ */
910
+ paymentIdentifier: string;
911
+ createdAt: bigint;
912
+ updatedAt: bigint;
913
+ };
914
+ /**
915
+ * Generated factory for {@link Contact} record objects.
916
+ */
917
+ export declare const Contact: Readonly<{
918
+ /**
919
+ * Create a frozen instance of {@link Contact}, with defaults specified
920
+ * in Rust, in the {@link breez_sdk_spark} crate.
921
+ */
922
+ create: (partial: Partial<Contact> & Required<Omit<Contact, never>>) => Contact;
923
+ /**
924
+ * Create a frozen instance of {@link Contact}, with defaults specified
925
+ * in Rust, in the {@link breez_sdk_spark} crate.
926
+ */
927
+ new: (partial: Partial<Contact> & Required<Omit<Contact, never>>) => Contact;
928
+ /**
929
+ * Defaults specified in the {@link breez_sdk_spark} crate.
930
+ */
931
+ defaults: () => Partial<Contact>;
932
+ }>;
872
933
  /**
873
934
  * Outlines the steps involved in a conversion
874
935
  */
@@ -2144,6 +2205,32 @@ export declare const LightningAddressInfo: Readonly<{
2144
2205
  */
2145
2206
  defaults: () => Partial<LightningAddressInfo>;
2146
2207
  }>;
2208
+ /**
2209
+ * Request to list contacts with optional pagination.
2210
+ */
2211
+ export type ListContactsRequest = {
2212
+ offset: /*u32*/ number | undefined;
2213
+ limit: /*u32*/ number | undefined;
2214
+ };
2215
+ /**
2216
+ * Generated factory for {@link ListContactsRequest} record objects.
2217
+ */
2218
+ export declare const ListContactsRequest: Readonly<{
2219
+ /**
2220
+ * Create a frozen instance of {@link ListContactsRequest}, with defaults specified
2221
+ * in Rust, in the {@link breez_sdk_spark} crate.
2222
+ */
2223
+ create: (partial: Partial<ListContactsRequest> & Required<Omit<ListContactsRequest, "offset" | "limit">>) => ListContactsRequest;
2224
+ /**
2225
+ * Create a frozen instance of {@link ListContactsRequest}, with defaults specified
2226
+ * in Rust, in the {@link breez_sdk_spark} crate.
2227
+ */
2228
+ new: (partial: Partial<ListContactsRequest> & Required<Omit<ListContactsRequest, "offset" | "limit">>) => ListContactsRequest;
2229
+ /**
2230
+ * Defaults specified in the {@link breez_sdk_spark} crate.
2231
+ */
2232
+ defaults: () => Partial<ListContactsRequest>;
2233
+ }>;
2147
2234
  /**
2148
2235
  * Response from listing fiat currencies
2149
2236
  */
@@ -2237,12 +2324,12 @@ export declare const ListPaymentsRequest: Readonly<{
2237
2324
  * Create a frozen instance of {@link ListPaymentsRequest}, with defaults specified
2238
2325
  * in Rust, in the {@link breez_sdk_spark} crate.
2239
2326
  */
2240
- create: (partial: Partial<ListPaymentsRequest> & Required<Omit<ListPaymentsRequest, "typeFilter" | "statusFilter" | "assetFilter" | "paymentDetailsFilter" | "fromTimestamp" | "toTimestamp" | "offset" | "limit" | "sortAscending">>) => ListPaymentsRequest;
2327
+ create: (partial: Partial<ListPaymentsRequest> & Required<Omit<ListPaymentsRequest, "offset" | "limit" | "typeFilter" | "statusFilter" | "assetFilter" | "paymentDetailsFilter" | "fromTimestamp" | "toTimestamp" | "sortAscending">>) => ListPaymentsRequest;
2241
2328
  /**
2242
2329
  * Create a frozen instance of {@link ListPaymentsRequest}, with defaults specified
2243
2330
  * in Rust, in the {@link breez_sdk_spark} crate.
2244
2331
  */
2245
- new: (partial: Partial<ListPaymentsRequest> & Required<Omit<ListPaymentsRequest, "typeFilter" | "statusFilter" | "assetFilter" | "paymentDetailsFilter" | "fromTimestamp" | "toTimestamp" | "offset" | "limit" | "sortAscending">>) => ListPaymentsRequest;
2332
+ new: (partial: Partial<ListPaymentsRequest> & Required<Omit<ListPaymentsRequest, "offset" | "limit" | "typeFilter" | "statusFilter" | "assetFilter" | "paymentDetailsFilter" | "fromTimestamp" | "toTimestamp" | "sortAscending">>) => ListPaymentsRequest;
2246
2333
  /**
2247
2334
  * Defaults specified in the {@link breez_sdk_spark} crate.
2248
2335
  */
@@ -4103,12 +4190,12 @@ export declare const StorageListPaymentsRequest: Readonly<{
4103
4190
  * Create a frozen instance of {@link StorageListPaymentsRequest}, with defaults specified
4104
4191
  * in Rust, in the {@link breez_sdk_spark} crate.
4105
4192
  */
4106
- create: (partial: Partial<StorageListPaymentsRequest> & Required<Omit<StorageListPaymentsRequest, "typeFilter" | "statusFilter" | "assetFilter" | "paymentDetailsFilter" | "fromTimestamp" | "toTimestamp" | "offset" | "limit" | "sortAscending">>) => StorageListPaymentsRequest;
4193
+ create: (partial: Partial<StorageListPaymentsRequest> & Required<Omit<StorageListPaymentsRequest, "offset" | "limit" | "typeFilter" | "statusFilter" | "assetFilter" | "paymentDetailsFilter" | "fromTimestamp" | "toTimestamp" | "sortAscending">>) => StorageListPaymentsRequest;
4107
4194
  /**
4108
4195
  * Create a frozen instance of {@link StorageListPaymentsRequest}, with defaults specified
4109
4196
  * in Rust, in the {@link breez_sdk_spark} crate.
4110
4197
  */
4111
- new: (partial: Partial<StorageListPaymentsRequest> & Required<Omit<StorageListPaymentsRequest, "typeFilter" | "statusFilter" | "assetFilter" | "paymentDetailsFilter" | "fromTimestamp" | "toTimestamp" | "offset" | "limit" | "sortAscending">>) => StorageListPaymentsRequest;
4198
+ new: (partial: Partial<StorageListPaymentsRequest> & Required<Omit<StorageListPaymentsRequest, "offset" | "limit" | "typeFilter" | "statusFilter" | "assetFilter" | "paymentDetailsFilter" | "fromTimestamp" | "toTimestamp" | "sortAscending">>) => StorageListPaymentsRequest;
4112
4199
  /**
4113
4200
  * Defaults specified in the {@link breez_sdk_spark} crate.
4114
4201
  */
@@ -4338,6 +4425,36 @@ export declare const UnversionedRecordChange: Readonly<{
4338
4425
  */
4339
4426
  defaults: () => Partial<UnversionedRecordChange>;
4340
4427
  }>;
4428
+ /**
4429
+ * Request to update an existing contact.
4430
+ */
4431
+ export type UpdateContactRequest = {
4432
+ id: string;
4433
+ name: string;
4434
+ /**
4435
+ * A Lightning address (user@domain).
4436
+ */
4437
+ paymentIdentifier: string;
4438
+ };
4439
+ /**
4440
+ * Generated factory for {@link UpdateContactRequest} record objects.
4441
+ */
4442
+ export declare const UpdateContactRequest: Readonly<{
4443
+ /**
4444
+ * Create a frozen instance of {@link UpdateContactRequest}, with defaults specified
4445
+ * in Rust, in the {@link breez_sdk_spark} crate.
4446
+ */
4447
+ create: (partial: Partial<UpdateContactRequest> & Required<Omit<UpdateContactRequest, never>>) => UpdateContactRequest;
4448
+ /**
4449
+ * Create a frozen instance of {@link UpdateContactRequest}, with defaults specified
4450
+ * in Rust, in the {@link breez_sdk_spark} crate.
4451
+ */
4452
+ new: (partial: Partial<UpdateContactRequest> & Required<Omit<UpdateContactRequest, never>>) => UpdateContactRequest;
4453
+ /**
4454
+ * Defaults specified in the {@link breez_sdk_spark} crate.
4455
+ */
4456
+ defaults: () => Partial<UpdateContactRequest>;
4457
+ }>;
4341
4458
  export type UpdateUserSettingsRequest = {
4342
4459
  sparkPrivateModeEnabled: boolean | undefined;
4343
4460
  };
@@ -10514,7 +10631,8 @@ export declare enum StorageError_Tags {
10514
10631
  Connection = "Connection",
10515
10632
  Implementation = "Implementation",
10516
10633
  InitializationError = "InitializationError",
10517
- Serialization = "Serialization"
10634
+ Serialization = "Serialization",
10635
+ NotFound = "NotFound"
10518
10636
  }
10519
10637
  /**
10520
10638
  * Errors that can occur during storage operations
@@ -10805,6 +10923,60 @@ export declare const StorageError: Readonly<{
10805
10923
  prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
10806
10924
  stackTraceLimit: number;
10807
10925
  };
10926
+ NotFound: {
10927
+ new (): {
10928
+ readonly tag: StorageError_Tags.NotFound;
10929
+ /**
10930
+ * @private
10931
+ * This field is private and should not be used, use `tag` instead.
10932
+ */
10933
+ readonly [uniffiTypeNameSymbol]: "StorageError";
10934
+ name: string;
10935
+ message: string;
10936
+ stack?: string;
10937
+ cause?: unknown;
10938
+ };
10939
+ "new"(): {
10940
+ readonly tag: StorageError_Tags.NotFound;
10941
+ /**
10942
+ * @private
10943
+ * This field is private and should not be used, use `tag` instead.
10944
+ */
10945
+ readonly [uniffiTypeNameSymbol]: "StorageError";
10946
+ name: string;
10947
+ message: string;
10948
+ stack?: string;
10949
+ cause?: unknown;
10950
+ };
10951
+ instanceOf(obj: any): obj is {
10952
+ readonly tag: StorageError_Tags.NotFound;
10953
+ /**
10954
+ * @private
10955
+ * This field is private and should not be used, use `tag` instead.
10956
+ */
10957
+ readonly [uniffiTypeNameSymbol]: "StorageError";
10958
+ name: string;
10959
+ message: string;
10960
+ stack?: string;
10961
+ cause?: unknown;
10962
+ };
10963
+ hasInner(obj: any): obj is {
10964
+ readonly tag: StorageError_Tags.NotFound;
10965
+ /**
10966
+ * @private
10967
+ * This field is private and should not be used, use `tag` instead.
10968
+ */
10969
+ readonly [uniffiTypeNameSymbol]: "StorageError";
10970
+ name: string;
10971
+ message: string;
10972
+ stack?: string;
10973
+ cause?: unknown;
10974
+ };
10975
+ isError(error: unknown): error is Error;
10976
+ captureStackTrace(targetObject: object, constructorOpt?: Function): void;
10977
+ prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
10978
+ stackTraceLimit: number;
10979
+ };
10808
10980
  }>;
10809
10981
  /**
10810
10982
  * Errors that can occur during storage operations
@@ -11384,6 +11556,20 @@ export declare class BitcoinChainServiceImpl extends UniffiAbstractObject implem
11384
11556
  * with request/response objects and comprehensive error handling.
11385
11557
  */
11386
11558
  export interface BreezSdkInterface {
11559
+ /**
11560
+ * Adds a new contact.
11561
+ *
11562
+ * # Arguments
11563
+ *
11564
+ * * `request` - The request containing the contact details
11565
+ *
11566
+ * # Returns
11567
+ *
11568
+ * The created contact or an error
11569
+ */
11570
+ addContact(request: AddContactRequest, asyncOpts_?: {
11571
+ signal: AbortSignal;
11572
+ }): Promise<Contact>;
11387
11573
  /**
11388
11574
  * Registers a listener to receive SDK events
11389
11575
  *
@@ -11446,6 +11632,20 @@ export interface BreezSdkInterface {
11446
11632
  claimHtlcPayment(request: ClaimHtlcPaymentRequest, asyncOpts_?: {
11447
11633
  signal: AbortSignal;
11448
11634
  }): Promise<ClaimHtlcPaymentResponse>;
11635
+ /**
11636
+ * Deletes a contact by its ID.
11637
+ *
11638
+ * # Arguments
11639
+ *
11640
+ * * `id` - The ID of the contact to delete
11641
+ *
11642
+ * # Returns
11643
+ *
11644
+ * Success or an error
11645
+ */
11646
+ deleteContact(id: string, asyncOpts_?: {
11647
+ signal: AbortSignal;
11648
+ }): Promise<void>;
11449
11649
  deleteLightningAddress(asyncOpts_?: {
11450
11650
  signal: AbortSignal;
11451
11651
  }): Promise<void>;
@@ -11504,6 +11704,20 @@ export interface BreezSdkInterface {
11504
11704
  getUserSettings(asyncOpts_?: {
11505
11705
  signal: AbortSignal;
11506
11706
  }): Promise<UserSettings>;
11707
+ /**
11708
+ * Lists contacts with optional pagination.
11709
+ *
11710
+ * # Arguments
11711
+ *
11712
+ * * `request` - The request containing optional pagination parameters
11713
+ *
11714
+ * # Returns
11715
+ *
11716
+ * A list of contacts or an error
11717
+ */
11718
+ listContacts(request: ListContactsRequest, asyncOpts_?: {
11719
+ signal: AbortSignal;
11720
+ }): Promise<Array<Contact>>;
11507
11721
  /**
11508
11722
  * List fiat currencies for which there is a known exchange rate,
11509
11723
  * sorted by the canonical name of the currency.
@@ -11644,6 +11858,20 @@ export interface BreezSdkInterface {
11644
11858
  syncWallet(request: SyncWalletRequest, asyncOpts_?: {
11645
11859
  signal: AbortSignal;
11646
11860
  }): Promise<SyncWalletResponse>;
11861
+ /**
11862
+ * Updates an existing contact.
11863
+ *
11864
+ * # Arguments
11865
+ *
11866
+ * * `request` - The request containing the updated contact details
11867
+ *
11868
+ * # Returns
11869
+ *
11870
+ * The updated contact or an error
11871
+ */
11872
+ updateContact(request: UpdateContactRequest, asyncOpts_?: {
11873
+ signal: AbortSignal;
11874
+ }): Promise<Contact>;
11647
11875
  /**
11648
11876
  * Updates the user settings for the wallet.
11649
11877
  *
@@ -11662,6 +11890,20 @@ export declare class BreezSdk extends UniffiAbstractObject implements BreezSdkIn
11662
11890
  readonly [destructorGuardSymbol]: UniffiRustArcPtr;
11663
11891
  readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer;
11664
11892
  private constructor();
11893
+ /**
11894
+ * Adds a new contact.
11895
+ *
11896
+ * # Arguments
11897
+ *
11898
+ * * `request` - The request containing the contact details
11899
+ *
11900
+ * # Returns
11901
+ *
11902
+ * The created contact or an error
11903
+ */
11904
+ addContact(request: AddContactRequest, asyncOpts_?: {
11905
+ signal: AbortSignal;
11906
+ }): Promise<Contact>;
11665
11907
  /**
11666
11908
  * Registers a listener to receive SDK events
11667
11909
  *
@@ -11724,6 +11966,20 @@ export declare class BreezSdk extends UniffiAbstractObject implements BreezSdkIn
11724
11966
  claimHtlcPayment(request: ClaimHtlcPaymentRequest, asyncOpts_?: {
11725
11967
  signal: AbortSignal;
11726
11968
  }): Promise<ClaimHtlcPaymentResponse>;
11969
+ /**
11970
+ * Deletes a contact by its ID.
11971
+ *
11972
+ * # Arguments
11973
+ *
11974
+ * * `id` - The ID of the contact to delete
11975
+ *
11976
+ * # Returns
11977
+ *
11978
+ * Success or an error
11979
+ */
11980
+ deleteContact(id: string, asyncOpts_?: {
11981
+ signal: AbortSignal;
11982
+ }): Promise<void>;
11727
11983
  deleteLightningAddress(asyncOpts_?: {
11728
11984
  signal: AbortSignal;
11729
11985
  }): Promise<void>;
@@ -11782,6 +12038,20 @@ export declare class BreezSdk extends UniffiAbstractObject implements BreezSdkIn
11782
12038
  getUserSettings(asyncOpts_?: {
11783
12039
  signal: AbortSignal;
11784
12040
  }): Promise<UserSettings>;
12041
+ /**
12042
+ * Lists contacts with optional pagination.
12043
+ *
12044
+ * # Arguments
12045
+ *
12046
+ * * `request` - The request containing optional pagination parameters
12047
+ *
12048
+ * # Returns
12049
+ *
12050
+ * A list of contacts or an error
12051
+ */
12052
+ listContacts(request: ListContactsRequest, asyncOpts_?: {
12053
+ signal: AbortSignal;
12054
+ }): Promise<Array<Contact>>;
11785
12055
  /**
11786
12056
  * List fiat currencies for which there is a known exchange rate,
11787
12057
  * sorted by the canonical name of the currency.
@@ -11922,6 +12192,20 @@ export declare class BreezSdk extends UniffiAbstractObject implements BreezSdkIn
11922
12192
  syncWallet(request: SyncWalletRequest, asyncOpts_?: {
11923
12193
  signal: AbortSignal;
11924
12194
  }): Promise<SyncWalletResponse>;
12195
+ /**
12196
+ * Updates an existing contact.
12197
+ *
12198
+ * # Arguments
12199
+ *
12200
+ * * `request` - The request containing the updated contact details
12201
+ *
12202
+ * # Returns
12203
+ *
12204
+ * The updated contact or an error
12205
+ */
12206
+ updateContact(request: UpdateContactRequest, asyncOpts_?: {
12207
+ signal: AbortSignal;
12208
+ }): Promise<Contact>;
11925
12209
  /**
11926
12210
  * Updates the user settings for the wallet.
11927
12211
  *
@@ -13015,6 +13299,31 @@ export interface Storage {
13015
13299
  setLnurlMetadata(metadata: Array<SetLnurlMetadataItem>, asyncOpts_?: {
13016
13300
  signal: AbortSignal;
13017
13301
  }): Promise<void>;
13302
+ /**
13303
+ * Lists contacts from storage with optional pagination
13304
+ */
13305
+ listContacts(request: ListContactsRequest, asyncOpts_?: {
13306
+ signal: AbortSignal;
13307
+ }): Promise<Array<Contact>>;
13308
+ /**
13309
+ * Gets a single contact by its ID
13310
+ */
13311
+ getContact(id: string, asyncOpts_?: {
13312
+ signal: AbortSignal;
13313
+ }): Promise<Contact>;
13314
+ /**
13315
+ * Inserts or updates a contact in storage (upsert by id).
13316
+ * Preserves `created_at` on update.
13317
+ */
13318
+ insertContact(contact: Contact, asyncOpts_?: {
13319
+ signal: AbortSignal;
13320
+ }): Promise<void>;
13321
+ /**
13322
+ * Deletes a contact by its ID
13323
+ */
13324
+ deleteContact(id: string, asyncOpts_?: {
13325
+ signal: AbortSignal;
13326
+ }): Promise<void>;
13018
13327
  addOutgoingChange(record: UnversionedRecordChange, asyncOpts_?: {
13019
13328
  signal: AbortSignal;
13020
13329
  }): Promise</*u64*/ bigint>;
@@ -13222,6 +13531,31 @@ export declare class StorageImpl extends UniffiAbstractObject implements Storage
13222
13531
  setLnurlMetadata(metadata: Array<SetLnurlMetadataItem>, asyncOpts_?: {
13223
13532
  signal: AbortSignal;
13224
13533
  }): Promise<void>;
13534
+ /**
13535
+ * Lists contacts from storage with optional pagination
13536
+ */
13537
+ listContacts(request: ListContactsRequest, asyncOpts_?: {
13538
+ signal: AbortSignal;
13539
+ }): Promise<Array<Contact>>;
13540
+ /**
13541
+ * Gets a single contact by its ID
13542
+ */
13543
+ getContact(id: string, asyncOpts_?: {
13544
+ signal: AbortSignal;
13545
+ }): Promise<Contact>;
13546
+ /**
13547
+ * Inserts or updates a contact in storage (upsert by id).
13548
+ * Preserves `created_at` on update.
13549
+ */
13550
+ insertContact(contact: Contact, asyncOpts_?: {
13551
+ signal: AbortSignal;
13552
+ }): Promise<void>;
13553
+ /**
13554
+ * Deletes a contact by its ID
13555
+ */
13556
+ deleteContact(id: string, asyncOpts_?: {
13557
+ signal: AbortSignal;
13558
+ }): Promise<void>;
13225
13559
  addOutgoingChange(record: UnversionedRecordChange, asyncOpts_?: {
13226
13560
  signal: AbortSignal;
13227
13561
  }): Promise</*u64*/ bigint>;
@@ -13513,6 +13847,13 @@ declare function uniffiEnsureInitialized(): void;
13513
13847
  declare const _default: Readonly<{
13514
13848
  initialize: typeof uniffiEnsureInitialized;
13515
13849
  converters: {
13850
+ FfiConverterTypeAddContactRequest: {
13851
+ read(from: RustBuffer): AddContactRequest;
13852
+ write(value: AddContactRequest, into: RustBuffer): void;
13853
+ allocationSize(value: AddContactRequest): number;
13854
+ lift(value: UniffiByteArray): AddContactRequest;
13855
+ lower(value: AddContactRequest): UniffiByteArray;
13856
+ };
13516
13857
  FfiConverterTypeAesSuccessActionData: {
13517
13858
  read(from: RustBuffer): AesSuccessActionData;
13518
13859
  write(value: AesSuccessActionData, into: RustBuffer): void;
@@ -13676,6 +14017,13 @@ declare const _default: Readonly<{
13676
14017
  lift(value: UniffiByteArray): ChainApiType;
13677
14018
  lower(value: ChainApiType): UniffiByteArray;
13678
14019
  };
14020
+ FfiConverterTypeChainServiceError: {
14021
+ read(from: RustBuffer): ChainServiceError;
14022
+ write(value: ChainServiceError, into: RustBuffer): void;
14023
+ allocationSize(value: ChainServiceError): number;
14024
+ lift(value: UniffiByteArray): ChainServiceError;
14025
+ lower(value: ChainServiceError): UniffiByteArray;
14026
+ };
13679
14027
  FfiConverterTypeCheckLightningAddressRequest: {
13680
14028
  read(from: RustBuffer): CheckLightningAddressRequest;
13681
14029
  write(value: CheckLightningAddressRequest, into: RustBuffer): void;
@@ -13746,6 +14094,13 @@ declare const _default: Readonly<{
13746
14094
  lift(value: UniffiByteArray): ConnectWithSignerRequest;
13747
14095
  lower(value: ConnectWithSignerRequest): UniffiByteArray;
13748
14096
  };
14097
+ FfiConverterTypeContact: {
14098
+ read(from: RustBuffer): Contact;
14099
+ write(value: Contact, into: RustBuffer): void;
14100
+ allocationSize(value: Contact): number;
14101
+ lift(value: UniffiByteArray): Contact;
14102
+ lower(value: Contact): UniffiByteArray;
14103
+ };
13749
14104
  FfiConverterTypeConversionDetails: {
13750
14105
  read(from: RustBuffer): ConversionDetails;
13751
14106
  write(value: ConversionDetails, into: RustBuffer): void;
@@ -14112,6 +14467,13 @@ declare const _default: Readonly<{
14112
14467
  lift(value: UniffiByteArray): LightningAddressInfo;
14113
14468
  lower(value: LightningAddressInfo): UniffiByteArray;
14114
14469
  };
14470
+ FfiConverterTypeListContactsRequest: {
14471
+ read(from: RustBuffer): ListContactsRequest;
14472
+ write(value: ListContactsRequest, into: RustBuffer): void;
14473
+ allocationSize(value: ListContactsRequest): number;
14474
+ lift(value: UniffiByteArray): ListContactsRequest;
14475
+ lower(value: ListContactsRequest): UniffiByteArray;
14476
+ };
14115
14477
  FfiConverterTypeListFiatCurrenciesResponse: {
14116
14478
  read(from: RustBuffer): ListFiatCurrenciesResponse;
14117
14479
  write(value: ListFiatCurrenciesResponse, into: RustBuffer): void;
@@ -14372,6 +14734,13 @@ declare const _default: Readonly<{
14372
14734
  lower(value: PaymentMethod): UniffiByteArray;
14373
14735
  };
14374
14736
  FfiConverterTypePaymentObserver: FfiConverterObjectWithCallbacks<PaymentObserver>;
14737
+ FfiConverterTypePaymentObserverError: {
14738
+ read(from: RustBuffer): PaymentObserverError;
14739
+ write(value: PaymentObserverError, into: RustBuffer): void;
14740
+ allocationSize(value: PaymentObserverError): number;
14741
+ lift(value: UniffiByteArray): PaymentObserverError;
14742
+ lower(value: PaymentObserverError): UniffiByteArray;
14743
+ };
14375
14744
  FfiConverterTypePaymentRequestSource: {
14376
14745
  read(from: RustBuffer): PaymentRequestSource;
14377
14746
  write(value: PaymentRequestSource, into: RustBuffer): void;
@@ -14542,6 +14911,13 @@ declare const _default: Readonly<{
14542
14911
  lower(value: SchnorrSignatureBytes): UniffiByteArray;
14543
14912
  };
14544
14913
  FfiConverterTypeSdkBuilder: FfiConverterObject<SdkBuilderInterface>;
14914
+ FfiConverterTypeSdkError: {
14915
+ read(from: RustBuffer): SdkError;
14916
+ write(value: SdkError, into: RustBuffer): void;
14917
+ allocationSize(value: SdkError): number;
14918
+ lift(value: UniffiByteArray): SdkError;
14919
+ lower(value: SdkError): UniffiByteArray;
14920
+ };
14545
14921
  FfiConverterTypeSdkEvent: {
14546
14922
  read(from: RustBuffer): SdkEvent;
14547
14923
  write(value: SdkEvent, into: RustBuffer): void;
@@ -14605,6 +14981,13 @@ declare const _default: Readonly<{
14605
14981
  lift(value: UniffiByteArray): SendPaymentResponse;
14606
14982
  lower(value: SendPaymentResponse): UniffiByteArray;
14607
14983
  };
14984
+ FfiConverterTypeServiceConnectivityError: {
14985
+ read(from: RustBuffer): ServiceConnectivityError;
14986
+ write(value: ServiceConnectivityError, into: RustBuffer): void;
14987
+ allocationSize(value: ServiceConnectivityError): number;
14988
+ lift(value: UniffiByteArray): ServiceConnectivityError;
14989
+ lower(value: ServiceConnectivityError): UniffiByteArray;
14990
+ };
14608
14991
  FfiConverterTypeServiceStatus: {
14609
14992
  read(from: RustBuffer): ServiceStatus;
14610
14993
  write(value: ServiceStatus, into: RustBuffer): void;
@@ -14633,6 +15016,13 @@ declare const _default: Readonly<{
14633
15016
  lift(value: UniffiByteArray): SignMessageResponse;
14634
15017
  lower(value: SignMessageResponse): UniffiByteArray;
14635
15018
  };
15019
+ FfiConverterTypeSignerError: {
15020
+ read(from: RustBuffer): SignerError;
15021
+ write(value: SignerError, into: RustBuffer): void;
15022
+ allocationSize(value: SignerError): number;
15023
+ lift(value: UniffiByteArray): SignerError;
15024
+ lower(value: SignerError): UniffiByteArray;
15025
+ };
14636
15026
  FfiConverterTypeSilentPaymentAddressDetails: {
14637
15027
  read(from: RustBuffer): SilentPaymentAddressDetails;
14638
15028
  write(value: SilentPaymentAddressDetails, into: RustBuffer): void;
@@ -14697,6 +15087,13 @@ declare const _default: Readonly<{
14697
15087
  lower(value: StableBalanceConfig): UniffiByteArray;
14698
15088
  };
14699
15089
  FfiConverterTypeStorage: FfiConverterObjectWithCallbacks<Storage>;
15090
+ FfiConverterTypeStorageError: {
15091
+ read(from: RustBuffer): StorageError;
15092
+ write(value: StorageError, into: RustBuffer): void;
15093
+ allocationSize(value: StorageError): number;
15094
+ lift(value: UniffiByteArray): StorageError;
15095
+ lower(value: StorageError): UniffiByteArray;
15096
+ };
14700
15097
  FfiConverterTypeStorageListPaymentsRequest: {
14701
15098
  read(from: RustBuffer): StorageListPaymentsRequest;
14702
15099
  write(value: StorageListPaymentsRequest, into: RustBuffer): void;
@@ -14796,6 +15193,13 @@ declare const _default: Readonly<{
14796
15193
  lift(value: UniffiByteArray): UnversionedRecordChange;
14797
15194
  lower(value: UnversionedRecordChange): UniffiByteArray;
14798
15195
  };
15196
+ FfiConverterTypeUpdateContactRequest: {
15197
+ read(from: RustBuffer): UpdateContactRequest;
15198
+ write(value: UpdateContactRequest, into: RustBuffer): void;
15199
+ allocationSize(value: UpdateContactRequest): number;
15200
+ lift(value: UniffiByteArray): UpdateContactRequest;
15201
+ lower(value: UpdateContactRequest): UniffiByteArray;
15202
+ };
14799
15203
  FfiConverterTypeUpdateDepositPayload: {
14800
15204
  read(from: RustBuffer): UpdateDepositPayload;
14801
15205
  write(value: UpdateDepositPayload, into: RustBuffer): void;