@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.
Files changed (27) hide show
  1. package/README.md +16 -0
  2. package/android/proguard-rules.pro +4 -0
  3. package/cpp/generated/breez_sdk_spark.cpp +2535 -557
  4. package/cpp/generated/breez_sdk_spark.hpp +119 -0
  5. package/lib/commonjs/generated/breez_sdk_spark-ffi.js.map +1 -1
  6. package/lib/commonjs/generated/breez_sdk_spark.js +350 -16
  7. package/lib/commonjs/generated/breez_sdk_spark.js.map +1 -1
  8. package/lib/module/generated/breez_sdk_spark-ffi.js.map +1 -1
  9. package/lib/module/generated/breez_sdk_spark.js +349 -15
  10. package/lib/module/generated/breez_sdk_spark.js.map +1 -1
  11. package/lib/typescript/commonjs/src/generated/breez_sdk_spark-ffi.d.ts +69 -17
  12. package/lib/typescript/commonjs/src/generated/breez_sdk_spark-ffi.d.ts.map +1 -1
  13. package/lib/typescript/commonjs/src/generated/breez_sdk_spark.d.ts +1900 -141
  14. package/lib/typescript/commonjs/src/generated/breez_sdk_spark.d.ts.map +1 -1
  15. package/lib/typescript/module/src/generated/breez_sdk_spark-ffi.d.ts +69 -17
  16. package/lib/typescript/module/src/generated/breez_sdk_spark-ffi.d.ts.map +1 -1
  17. package/lib/typescript/module/src/generated/breez_sdk_spark.d.ts +1900 -141
  18. package/lib/typescript/module/src/generated/breez_sdk_spark.d.ts.map +1 -1
  19. package/package.json +3 -3
  20. package/plugin/build/index.d.ts +5 -0
  21. package/plugin/build/index.js +2 -2
  22. package/plugin/build/withBinaryArtifacts.d.ts +1 -1
  23. package/plugin/build/withBinaryArtifacts.js +5 -7
  24. package/plugin/build/withIOS.d.ts +5 -1
  25. package/plugin/build/withIOS.js +14 -4
  26. package/src/generated/breez_sdk_spark-ffi.ts +161 -17
  27. package/src/generated/breez_sdk_spark.ts +7159 -4248
@@ -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
  */
@@ -2845,6 +2932,43 @@ export declare const MintIssuerTokenRequest: Readonly<{
2845
2932
  */
2846
2933
  defaults: () => Partial<MintIssuerTokenRequest>;
2847
2934
  }>;
2935
+ /**
2936
+ * Configuration for Nostr relay connections used in `Passkey`.
2937
+ *
2938
+ * Relay URLs are managed internally by the client:
2939
+ * - Public relays are always included
2940
+ * - Breez relay is added when `breez_api_key` is provided (enables NIP-42 auth)
2941
+ */
2942
+ export type NostrRelayConfig = {
2943
+ /**
2944
+ * Optional Breez API key for authenticated access to the Breez relay.
2945
+ * When provided, the Breez relay is added and NIP-42 authentication is enabled.
2946
+ */
2947
+ breezApiKey: string | undefined;
2948
+ /**
2949
+ * Connection timeout in seconds. Defaults to 30 when `None`.
2950
+ */
2951
+ timeoutSecs: /*u32*/ number | undefined;
2952
+ };
2953
+ /**
2954
+ * Generated factory for {@link NostrRelayConfig} record objects.
2955
+ */
2956
+ export declare const NostrRelayConfig: Readonly<{
2957
+ /**
2958
+ * Create a frozen instance of {@link NostrRelayConfig}, with defaults specified
2959
+ * in Rust, in the {@link breez_sdk_spark} crate.
2960
+ */
2961
+ create: (partial: Partial<NostrRelayConfig> & Required<Omit<NostrRelayConfig, "breezApiKey" | "timeoutSecs">>) => NostrRelayConfig;
2962
+ /**
2963
+ * Create a frozen instance of {@link NostrRelayConfig}, with defaults specified
2964
+ * in Rust, in the {@link breez_sdk_spark} crate.
2965
+ */
2966
+ new: (partial: Partial<NostrRelayConfig> & Required<Omit<NostrRelayConfig, "breezApiKey" | "timeoutSecs">>) => NostrRelayConfig;
2967
+ /**
2968
+ * Defaults specified in the {@link breez_sdk_spark} crate.
2969
+ */
2970
+ defaults: () => Partial<NostrRelayConfig>;
2971
+ }>;
2848
2972
  export type OptimizationConfig = {
2849
2973
  /**
2850
2974
  * Whether automatic leaf optimization is enabled.
@@ -4103,12 +4227,12 @@ export declare const StorageListPaymentsRequest: Readonly<{
4103
4227
  * Create a frozen instance of {@link StorageListPaymentsRequest}, with defaults specified
4104
4228
  * in Rust, in the {@link breez_sdk_spark} crate.
4105
4229
  */
4106
- create: (partial: Partial<StorageListPaymentsRequest> & Required<Omit<StorageListPaymentsRequest, "typeFilter" | "statusFilter" | "assetFilter" | "paymentDetailsFilter" | "fromTimestamp" | "toTimestamp" | "offset" | "limit" | "sortAscending">>) => StorageListPaymentsRequest;
4230
+ create: (partial: Partial<StorageListPaymentsRequest> & Required<Omit<StorageListPaymentsRequest, "offset" | "limit" | "typeFilter" | "statusFilter" | "assetFilter" | "paymentDetailsFilter" | "fromTimestamp" | "toTimestamp" | "sortAscending">>) => StorageListPaymentsRequest;
4107
4231
  /**
4108
4232
  * Create a frozen instance of {@link StorageListPaymentsRequest}, with defaults specified
4109
4233
  * in Rust, in the {@link breez_sdk_spark} crate.
4110
4234
  */
4111
- new: (partial: Partial<StorageListPaymentsRequest> & Required<Omit<StorageListPaymentsRequest, "typeFilter" | "statusFilter" | "assetFilter" | "paymentDetailsFilter" | "fromTimestamp" | "toTimestamp" | "offset" | "limit" | "sortAscending">>) => StorageListPaymentsRequest;
4235
+ new: (partial: Partial<StorageListPaymentsRequest> & Required<Omit<StorageListPaymentsRequest, "offset" | "limit" | "typeFilter" | "statusFilter" | "assetFilter" | "paymentDetailsFilter" | "fromTimestamp" | "toTimestamp" | "sortAscending">>) => StorageListPaymentsRequest;
4112
4236
  /**
4113
4237
  * Defaults specified in the {@link breez_sdk_spark} crate.
4114
4238
  */
@@ -4338,6 +4462,36 @@ export declare const UnversionedRecordChange: Readonly<{
4338
4462
  */
4339
4463
  defaults: () => Partial<UnversionedRecordChange>;
4340
4464
  }>;
4465
+ /**
4466
+ * Request to update an existing contact.
4467
+ */
4468
+ export type UpdateContactRequest = {
4469
+ id: string;
4470
+ name: string;
4471
+ /**
4472
+ * A Lightning address (user@domain).
4473
+ */
4474
+ paymentIdentifier: string;
4475
+ };
4476
+ /**
4477
+ * Generated factory for {@link UpdateContactRequest} record objects.
4478
+ */
4479
+ export declare const UpdateContactRequest: Readonly<{
4480
+ /**
4481
+ * Create a frozen instance of {@link UpdateContactRequest}, with defaults specified
4482
+ * in Rust, in the {@link breez_sdk_spark} crate.
4483
+ */
4484
+ create: (partial: Partial<UpdateContactRequest> & Required<Omit<UpdateContactRequest, never>>) => UpdateContactRequest;
4485
+ /**
4486
+ * Create a frozen instance of {@link UpdateContactRequest}, with defaults specified
4487
+ * in Rust, in the {@link breez_sdk_spark} crate.
4488
+ */
4489
+ new: (partial: Partial<UpdateContactRequest> & Required<Omit<UpdateContactRequest, never>>) => UpdateContactRequest;
4490
+ /**
4491
+ * Defaults specified in the {@link breez_sdk_spark} crate.
4492
+ */
4493
+ defaults: () => Partial<UpdateContactRequest>;
4494
+ }>;
4341
4495
  export type UpdateUserSettingsRequest = {
4342
4496
  sparkPrivateModeEnabled: boolean | undefined;
4343
4497
  };
@@ -4442,6 +4596,40 @@ export declare const Utxo: Readonly<{
4442
4596
  */
4443
4597
  defaults: () => Partial<Utxo>;
4444
4598
  }>;
4599
+ /**
4600
+ * A wallet derived from a passkey.
4601
+ *
4602
+ * Contains the derived seed and the wallet name used during derivation.
4603
+ */
4604
+ export type Wallet = {
4605
+ /**
4606
+ * The derived seed.
4607
+ */
4608
+ seed: Seed;
4609
+ /**
4610
+ * The wallet name used for derivation (either user-provided or the default).
4611
+ */
4612
+ name: string;
4613
+ };
4614
+ /**
4615
+ * Generated factory for {@link Wallet} record objects.
4616
+ */
4617
+ export declare const Wallet: Readonly<{
4618
+ /**
4619
+ * Create a frozen instance of {@link Wallet}, with defaults specified
4620
+ * in Rust, in the {@link breez_sdk_spark} crate.
4621
+ */
4622
+ create: (partial: Partial<Wallet> & Required<Omit<Wallet, never>>) => Wallet;
4623
+ /**
4624
+ * Create a frozen instance of {@link Wallet}, with defaults specified
4625
+ * in Rust, in the {@link breez_sdk_spark} crate.
4626
+ */
4627
+ new: (partial: Partial<Wallet> & Required<Omit<Wallet, never>>) => Wallet;
4628
+ /**
4629
+ * Defaults specified in the {@link breez_sdk_spark} crate.
4630
+ */
4631
+ defaults: () => Partial<Wallet>;
4632
+ }>;
4445
4633
  /**
4446
4634
  * Typealias from the type name used in the UDL file to the custom type. This
4447
4635
  * is needed because the UDL type name is used in function/method signatures.
@@ -6455,141 +6643,1196 @@ export declare const OptimizationEvent: Readonly<{
6455
6643
  };
6456
6644
  }>;
6457
6645
  export type OptimizationEvent = InstanceType<(typeof OptimizationEvent)[keyof Omit<typeof OptimizationEvent, 'instanceOf'>]>;
6458
- export declare enum PaymentDetails_Tags {
6459
- Spark = "Spark",
6460
- Token = "Token",
6461
- Lightning = "Lightning",
6462
- Withdraw = "Withdraw",
6463
- Deposit = "Deposit"
6646
+ export declare enum PasskeyError_Tags {
6647
+ PrfError = "PrfError",
6648
+ RelayConnectionFailed = "RelayConnectionFailed",
6649
+ NostrWriteFailed = "NostrWriteFailed",
6650
+ NostrReadFailed = "NostrReadFailed",
6651
+ KeyDerivationError = "KeyDerivationError",
6652
+ InvalidPrfOutput = "InvalidPrfOutput",
6653
+ MnemonicError = "MnemonicError",
6654
+ InvalidSalt = "InvalidSalt",
6655
+ Generic = "Generic"
6464
6656
  }
6465
- export declare const PaymentDetails: Readonly<{
6466
- instanceOf: (obj: any) => obj is PaymentDetails;
6467
- Spark: {
6468
- new (inner: {
6469
- /**
6470
- * The invoice details if the payment fulfilled a spark invoice
6471
- */ invoiceDetails: SparkInvoicePaymentDetails | undefined;
6472
- /**
6473
- * The HTLC transfer details if the payment fulfilled an HTLC transfer
6474
- */ htlcDetails: SparkHtlcDetails | undefined;
6475
- /**
6476
- * The information for a conversion
6477
- */ conversionInfo: ConversionInfo | undefined;
6478
- }): {
6479
- readonly tag: PaymentDetails_Tags.Spark;
6480
- readonly inner: Readonly<{
6481
- invoiceDetails: SparkInvoicePaymentDetails | undefined;
6482
- htlcDetails: SparkHtlcDetails | undefined;
6483
- conversionInfo: ConversionInfo | undefined;
6484
- }>;
6657
+ /**
6658
+ * Error type for passkey operations.
6659
+ */
6660
+ export declare const PasskeyError: Readonly<{
6661
+ instanceOf: (obj: any) => obj is PasskeyError;
6662
+ PrfError: {
6663
+ new (v0: PasskeyPrfError): {
6664
+ readonly tag: PasskeyError_Tags.PrfError;
6665
+ readonly inner: Readonly<[PasskeyPrfError]>;
6485
6666
  /**
6486
6667
  * @private
6487
6668
  * This field is private and should not be used, use `tag` instead.
6488
6669
  */
6489
- readonly [uniffiTypeNameSymbol]: "PaymentDetails";
6670
+ readonly [uniffiTypeNameSymbol]: "PasskeyError";
6671
+ name: string;
6672
+ message: string;
6673
+ stack?: string;
6674
+ cause?: unknown;
6490
6675
  };
6491
- "new"(inner: {
6492
- /**
6493
- * The invoice details if the payment fulfilled a spark invoice
6494
- */ invoiceDetails: SparkInvoicePaymentDetails | undefined;
6495
- /**
6496
- * The HTLC transfer details if the payment fulfilled an HTLC transfer
6497
- */ htlcDetails: SparkHtlcDetails | undefined;
6498
- /**
6499
- * The information for a conversion
6500
- */ conversionInfo: ConversionInfo | undefined;
6501
- }): {
6502
- readonly tag: PaymentDetails_Tags.Spark;
6503
- readonly inner: Readonly<{
6504
- invoiceDetails: SparkInvoicePaymentDetails | undefined;
6505
- htlcDetails: SparkHtlcDetails | undefined;
6506
- conversionInfo: ConversionInfo | undefined;
6507
- }>;
6676
+ "new"(v0: PasskeyPrfError): {
6677
+ readonly tag: PasskeyError_Tags.PrfError;
6678
+ readonly inner: Readonly<[PasskeyPrfError]>;
6508
6679
  /**
6509
6680
  * @private
6510
6681
  * This field is private and should not be used, use `tag` instead.
6511
6682
  */
6512
- readonly [uniffiTypeNameSymbol]: "PaymentDetails";
6683
+ readonly [uniffiTypeNameSymbol]: "PasskeyError";
6684
+ name: string;
6685
+ message: string;
6686
+ stack?: string;
6687
+ cause?: unknown;
6513
6688
  };
6514
6689
  instanceOf(obj: any): obj is {
6515
- readonly tag: PaymentDetails_Tags.Spark;
6516
- readonly inner: Readonly<{
6517
- invoiceDetails: SparkInvoicePaymentDetails | undefined;
6518
- htlcDetails: SparkHtlcDetails | undefined;
6519
- conversionInfo: ConversionInfo | undefined;
6520
- }>;
6690
+ readonly tag: PasskeyError_Tags.PrfError;
6691
+ readonly inner: Readonly<[PasskeyPrfError]>;
6521
6692
  /**
6522
6693
  * @private
6523
6694
  * This field is private and should not be used, use `tag` instead.
6524
6695
  */
6525
- readonly [uniffiTypeNameSymbol]: "PaymentDetails";
6696
+ readonly [uniffiTypeNameSymbol]: "PasskeyError";
6697
+ name: string;
6698
+ message: string;
6699
+ stack?: string;
6700
+ cause?: unknown;
6526
6701
  };
6527
- };
6528
- Token: {
6529
- new (inner: {
6530
- metadata: TokenMetadata;
6531
- txHash: string;
6532
- txType: TokenTransactionType;
6533
- /**
6534
- * The invoice details if the payment fulfilled a spark invoice
6535
- */ invoiceDetails: SparkInvoicePaymentDetails | undefined;
6536
- /**
6537
- * The information for a conversion
6538
- */ conversionInfo: ConversionInfo | undefined;
6539
- }): {
6540
- readonly tag: PaymentDetails_Tags.Token;
6541
- readonly inner: Readonly<{
6542
- metadata: TokenMetadata;
6543
- txHash: string;
6544
- txType: TokenTransactionType;
6545
- invoiceDetails: SparkInvoicePaymentDetails | undefined;
6546
- conversionInfo: ConversionInfo | undefined;
6547
- }>;
6702
+ hasInner(obj: any): obj is {
6703
+ readonly tag: PasskeyError_Tags.PrfError;
6704
+ readonly inner: Readonly<[PasskeyPrfError]>;
6548
6705
  /**
6549
6706
  * @private
6550
6707
  * This field is private and should not be used, use `tag` instead.
6551
6708
  */
6552
- readonly [uniffiTypeNameSymbol]: "PaymentDetails";
6709
+ readonly [uniffiTypeNameSymbol]: "PasskeyError";
6710
+ name: string;
6711
+ message: string;
6712
+ stack?: string;
6713
+ cause?: unknown;
6553
6714
  };
6554
- "new"(inner: {
6555
- metadata: TokenMetadata;
6556
- txHash: string;
6557
- txType: TokenTransactionType;
6558
- /**
6559
- * The invoice details if the payment fulfilled a spark invoice
6560
- */ invoiceDetails: SparkInvoicePaymentDetails | undefined;
6561
- /**
6562
- * The information for a conversion
6563
- */ conversionInfo: ConversionInfo | undefined;
6564
- }): {
6565
- readonly tag: PaymentDetails_Tags.Token;
6566
- readonly inner: Readonly<{
6567
- metadata: TokenMetadata;
6568
- txHash: string;
6569
- txType: TokenTransactionType;
6570
- invoiceDetails: SparkInvoicePaymentDetails | undefined;
6571
- conversionInfo: ConversionInfo | undefined;
6572
- }>;
6715
+ getInner(obj: {
6716
+ readonly tag: PasskeyError_Tags.PrfError;
6717
+ readonly inner: Readonly<[PasskeyPrfError]>;
6573
6718
  /**
6574
6719
  * @private
6575
6720
  * This field is private and should not be used, use `tag` instead.
6576
6721
  */
6577
- readonly [uniffiTypeNameSymbol]: "PaymentDetails";
6578
- };
6579
- instanceOf(obj: any): obj is {
6580
- readonly tag: PaymentDetails_Tags.Token;
6581
- readonly inner: Readonly<{
6582
- metadata: TokenMetadata;
6583
- txHash: string;
6584
- txType: TokenTransactionType;
6585
- invoiceDetails: SparkInvoicePaymentDetails | undefined;
6586
- conversionInfo: ConversionInfo | undefined;
6587
- }>;
6722
+ readonly [uniffiTypeNameSymbol]: "PasskeyError";
6723
+ name: string;
6724
+ message: string;
6725
+ stack?: string;
6726
+ cause?: unknown;
6727
+ }): Readonly<[PasskeyPrfError]>;
6728
+ isError(error: unknown): error is Error;
6729
+ captureStackTrace(targetObject: object, constructorOpt?: Function): void;
6730
+ prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
6731
+ stackTraceLimit: number;
6732
+ };
6733
+ RelayConnectionFailed: {
6734
+ new (v0: string): {
6735
+ readonly tag: PasskeyError_Tags.RelayConnectionFailed;
6736
+ readonly inner: Readonly<[string]>;
6588
6737
  /**
6589
6738
  * @private
6590
6739
  * This field is private and should not be used, use `tag` instead.
6591
6740
  */
6592
- readonly [uniffiTypeNameSymbol]: "PaymentDetails";
6741
+ readonly [uniffiTypeNameSymbol]: "PasskeyError";
6742
+ name: string;
6743
+ message: string;
6744
+ stack?: string;
6745
+ cause?: unknown;
6746
+ };
6747
+ "new"(v0: string): {
6748
+ readonly tag: PasskeyError_Tags.RelayConnectionFailed;
6749
+ readonly inner: Readonly<[string]>;
6750
+ /**
6751
+ * @private
6752
+ * This field is private and should not be used, use `tag` instead.
6753
+ */
6754
+ readonly [uniffiTypeNameSymbol]: "PasskeyError";
6755
+ name: string;
6756
+ message: string;
6757
+ stack?: string;
6758
+ cause?: unknown;
6759
+ };
6760
+ instanceOf(obj: any): obj is {
6761
+ readonly tag: PasskeyError_Tags.RelayConnectionFailed;
6762
+ readonly inner: Readonly<[string]>;
6763
+ /**
6764
+ * @private
6765
+ * This field is private and should not be used, use `tag` instead.
6766
+ */
6767
+ readonly [uniffiTypeNameSymbol]: "PasskeyError";
6768
+ name: string;
6769
+ message: string;
6770
+ stack?: string;
6771
+ cause?: unknown;
6772
+ };
6773
+ hasInner(obj: any): obj is {
6774
+ readonly tag: PasskeyError_Tags.RelayConnectionFailed;
6775
+ readonly inner: Readonly<[string]>;
6776
+ /**
6777
+ * @private
6778
+ * This field is private and should not be used, use `tag` instead.
6779
+ */
6780
+ readonly [uniffiTypeNameSymbol]: "PasskeyError";
6781
+ name: string;
6782
+ message: string;
6783
+ stack?: string;
6784
+ cause?: unknown;
6785
+ };
6786
+ getInner(obj: {
6787
+ readonly tag: PasskeyError_Tags.RelayConnectionFailed;
6788
+ readonly inner: Readonly<[string]>;
6789
+ /**
6790
+ * @private
6791
+ * This field is private and should not be used, use `tag` instead.
6792
+ */
6793
+ readonly [uniffiTypeNameSymbol]: "PasskeyError";
6794
+ name: string;
6795
+ message: string;
6796
+ stack?: string;
6797
+ cause?: unknown;
6798
+ }): Readonly<[string]>;
6799
+ isError(error: unknown): error is Error;
6800
+ captureStackTrace(targetObject: object, constructorOpt?: Function): void;
6801
+ prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
6802
+ stackTraceLimit: number;
6803
+ };
6804
+ NostrWriteFailed: {
6805
+ new (v0: string): {
6806
+ readonly tag: PasskeyError_Tags.NostrWriteFailed;
6807
+ readonly inner: Readonly<[string]>;
6808
+ /**
6809
+ * @private
6810
+ * This field is private and should not be used, use `tag` instead.
6811
+ */
6812
+ readonly [uniffiTypeNameSymbol]: "PasskeyError";
6813
+ name: string;
6814
+ message: string;
6815
+ stack?: string;
6816
+ cause?: unknown;
6817
+ };
6818
+ "new"(v0: string): {
6819
+ readonly tag: PasskeyError_Tags.NostrWriteFailed;
6820
+ readonly inner: Readonly<[string]>;
6821
+ /**
6822
+ * @private
6823
+ * This field is private and should not be used, use `tag` instead.
6824
+ */
6825
+ readonly [uniffiTypeNameSymbol]: "PasskeyError";
6826
+ name: string;
6827
+ message: string;
6828
+ stack?: string;
6829
+ cause?: unknown;
6830
+ };
6831
+ instanceOf(obj: any): obj is {
6832
+ readonly tag: PasskeyError_Tags.NostrWriteFailed;
6833
+ readonly inner: Readonly<[string]>;
6834
+ /**
6835
+ * @private
6836
+ * This field is private and should not be used, use `tag` instead.
6837
+ */
6838
+ readonly [uniffiTypeNameSymbol]: "PasskeyError";
6839
+ name: string;
6840
+ message: string;
6841
+ stack?: string;
6842
+ cause?: unknown;
6843
+ };
6844
+ hasInner(obj: any): obj is {
6845
+ readonly tag: PasskeyError_Tags.NostrWriteFailed;
6846
+ readonly inner: Readonly<[string]>;
6847
+ /**
6848
+ * @private
6849
+ * This field is private and should not be used, use `tag` instead.
6850
+ */
6851
+ readonly [uniffiTypeNameSymbol]: "PasskeyError";
6852
+ name: string;
6853
+ message: string;
6854
+ stack?: string;
6855
+ cause?: unknown;
6856
+ };
6857
+ getInner(obj: {
6858
+ readonly tag: PasskeyError_Tags.NostrWriteFailed;
6859
+ readonly inner: Readonly<[string]>;
6860
+ /**
6861
+ * @private
6862
+ * This field is private and should not be used, use `tag` instead.
6863
+ */
6864
+ readonly [uniffiTypeNameSymbol]: "PasskeyError";
6865
+ name: string;
6866
+ message: string;
6867
+ stack?: string;
6868
+ cause?: unknown;
6869
+ }): Readonly<[string]>;
6870
+ isError(error: unknown): error is Error;
6871
+ captureStackTrace(targetObject: object, constructorOpt?: Function): void;
6872
+ prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
6873
+ stackTraceLimit: number;
6874
+ };
6875
+ NostrReadFailed: {
6876
+ new (v0: string): {
6877
+ readonly tag: PasskeyError_Tags.NostrReadFailed;
6878
+ readonly inner: Readonly<[string]>;
6879
+ /**
6880
+ * @private
6881
+ * This field is private and should not be used, use `tag` instead.
6882
+ */
6883
+ readonly [uniffiTypeNameSymbol]: "PasskeyError";
6884
+ name: string;
6885
+ message: string;
6886
+ stack?: string;
6887
+ cause?: unknown;
6888
+ };
6889
+ "new"(v0: string): {
6890
+ readonly tag: PasskeyError_Tags.NostrReadFailed;
6891
+ readonly inner: Readonly<[string]>;
6892
+ /**
6893
+ * @private
6894
+ * This field is private and should not be used, use `tag` instead.
6895
+ */
6896
+ readonly [uniffiTypeNameSymbol]: "PasskeyError";
6897
+ name: string;
6898
+ message: string;
6899
+ stack?: string;
6900
+ cause?: unknown;
6901
+ };
6902
+ instanceOf(obj: any): obj is {
6903
+ readonly tag: PasskeyError_Tags.NostrReadFailed;
6904
+ readonly inner: Readonly<[string]>;
6905
+ /**
6906
+ * @private
6907
+ * This field is private and should not be used, use `tag` instead.
6908
+ */
6909
+ readonly [uniffiTypeNameSymbol]: "PasskeyError";
6910
+ name: string;
6911
+ message: string;
6912
+ stack?: string;
6913
+ cause?: unknown;
6914
+ };
6915
+ hasInner(obj: any): obj is {
6916
+ readonly tag: PasskeyError_Tags.NostrReadFailed;
6917
+ readonly inner: Readonly<[string]>;
6918
+ /**
6919
+ * @private
6920
+ * This field is private and should not be used, use `tag` instead.
6921
+ */
6922
+ readonly [uniffiTypeNameSymbol]: "PasskeyError";
6923
+ name: string;
6924
+ message: string;
6925
+ stack?: string;
6926
+ cause?: unknown;
6927
+ };
6928
+ getInner(obj: {
6929
+ readonly tag: PasskeyError_Tags.NostrReadFailed;
6930
+ readonly inner: Readonly<[string]>;
6931
+ /**
6932
+ * @private
6933
+ * This field is private and should not be used, use `tag` instead.
6934
+ */
6935
+ readonly [uniffiTypeNameSymbol]: "PasskeyError";
6936
+ name: string;
6937
+ message: string;
6938
+ stack?: string;
6939
+ cause?: unknown;
6940
+ }): Readonly<[string]>;
6941
+ isError(error: unknown): error is Error;
6942
+ captureStackTrace(targetObject: object, constructorOpt?: Function): void;
6943
+ prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
6944
+ stackTraceLimit: number;
6945
+ };
6946
+ KeyDerivationError: {
6947
+ new (v0: string): {
6948
+ readonly tag: PasskeyError_Tags.KeyDerivationError;
6949
+ readonly inner: Readonly<[string]>;
6950
+ /**
6951
+ * @private
6952
+ * This field is private and should not be used, use `tag` instead.
6953
+ */
6954
+ readonly [uniffiTypeNameSymbol]: "PasskeyError";
6955
+ name: string;
6956
+ message: string;
6957
+ stack?: string;
6958
+ cause?: unknown;
6959
+ };
6960
+ "new"(v0: string): {
6961
+ readonly tag: PasskeyError_Tags.KeyDerivationError;
6962
+ readonly inner: Readonly<[string]>;
6963
+ /**
6964
+ * @private
6965
+ * This field is private and should not be used, use `tag` instead.
6966
+ */
6967
+ readonly [uniffiTypeNameSymbol]: "PasskeyError";
6968
+ name: string;
6969
+ message: string;
6970
+ stack?: string;
6971
+ cause?: unknown;
6972
+ };
6973
+ instanceOf(obj: any): obj is {
6974
+ readonly tag: PasskeyError_Tags.KeyDerivationError;
6975
+ readonly inner: Readonly<[string]>;
6976
+ /**
6977
+ * @private
6978
+ * This field is private and should not be used, use `tag` instead.
6979
+ */
6980
+ readonly [uniffiTypeNameSymbol]: "PasskeyError";
6981
+ name: string;
6982
+ message: string;
6983
+ stack?: string;
6984
+ cause?: unknown;
6985
+ };
6986
+ hasInner(obj: any): obj is {
6987
+ readonly tag: PasskeyError_Tags.KeyDerivationError;
6988
+ readonly inner: Readonly<[string]>;
6989
+ /**
6990
+ * @private
6991
+ * This field is private and should not be used, use `tag` instead.
6992
+ */
6993
+ readonly [uniffiTypeNameSymbol]: "PasskeyError";
6994
+ name: string;
6995
+ message: string;
6996
+ stack?: string;
6997
+ cause?: unknown;
6998
+ };
6999
+ getInner(obj: {
7000
+ readonly tag: PasskeyError_Tags.KeyDerivationError;
7001
+ readonly inner: Readonly<[string]>;
7002
+ /**
7003
+ * @private
7004
+ * This field is private and should not be used, use `tag` instead.
7005
+ */
7006
+ readonly [uniffiTypeNameSymbol]: "PasskeyError";
7007
+ name: string;
7008
+ message: string;
7009
+ stack?: string;
7010
+ cause?: unknown;
7011
+ }): Readonly<[string]>;
7012
+ isError(error: unknown): error is Error;
7013
+ captureStackTrace(targetObject: object, constructorOpt?: Function): void;
7014
+ prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
7015
+ stackTraceLimit: number;
7016
+ };
7017
+ InvalidPrfOutput: {
7018
+ new (v0: string): {
7019
+ readonly tag: PasskeyError_Tags.InvalidPrfOutput;
7020
+ readonly inner: Readonly<[string]>;
7021
+ /**
7022
+ * @private
7023
+ * This field is private and should not be used, use `tag` instead.
7024
+ */
7025
+ readonly [uniffiTypeNameSymbol]: "PasskeyError";
7026
+ name: string;
7027
+ message: string;
7028
+ stack?: string;
7029
+ cause?: unknown;
7030
+ };
7031
+ "new"(v0: string): {
7032
+ readonly tag: PasskeyError_Tags.InvalidPrfOutput;
7033
+ readonly inner: Readonly<[string]>;
7034
+ /**
7035
+ * @private
7036
+ * This field is private and should not be used, use `tag` instead.
7037
+ */
7038
+ readonly [uniffiTypeNameSymbol]: "PasskeyError";
7039
+ name: string;
7040
+ message: string;
7041
+ stack?: string;
7042
+ cause?: unknown;
7043
+ };
7044
+ instanceOf(obj: any): obj is {
7045
+ readonly tag: PasskeyError_Tags.InvalidPrfOutput;
7046
+ readonly inner: Readonly<[string]>;
7047
+ /**
7048
+ * @private
7049
+ * This field is private and should not be used, use `tag` instead.
7050
+ */
7051
+ readonly [uniffiTypeNameSymbol]: "PasskeyError";
7052
+ name: string;
7053
+ message: string;
7054
+ stack?: string;
7055
+ cause?: unknown;
7056
+ };
7057
+ hasInner(obj: any): obj is {
7058
+ readonly tag: PasskeyError_Tags.InvalidPrfOutput;
7059
+ readonly inner: Readonly<[string]>;
7060
+ /**
7061
+ * @private
7062
+ * This field is private and should not be used, use `tag` instead.
7063
+ */
7064
+ readonly [uniffiTypeNameSymbol]: "PasskeyError";
7065
+ name: string;
7066
+ message: string;
7067
+ stack?: string;
7068
+ cause?: unknown;
7069
+ };
7070
+ getInner(obj: {
7071
+ readonly tag: PasskeyError_Tags.InvalidPrfOutput;
7072
+ readonly inner: Readonly<[string]>;
7073
+ /**
7074
+ * @private
7075
+ * This field is private and should not be used, use `tag` instead.
7076
+ */
7077
+ readonly [uniffiTypeNameSymbol]: "PasskeyError";
7078
+ name: string;
7079
+ message: string;
7080
+ stack?: string;
7081
+ cause?: unknown;
7082
+ }): Readonly<[string]>;
7083
+ isError(error: unknown): error is Error;
7084
+ captureStackTrace(targetObject: object, constructorOpt?: Function): void;
7085
+ prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
7086
+ stackTraceLimit: number;
7087
+ };
7088
+ MnemonicError: {
7089
+ new (v0: string): {
7090
+ readonly tag: PasskeyError_Tags.MnemonicError;
7091
+ readonly inner: Readonly<[string]>;
7092
+ /**
7093
+ * @private
7094
+ * This field is private and should not be used, use `tag` instead.
7095
+ */
7096
+ readonly [uniffiTypeNameSymbol]: "PasskeyError";
7097
+ name: string;
7098
+ message: string;
7099
+ stack?: string;
7100
+ cause?: unknown;
7101
+ };
7102
+ "new"(v0: string): {
7103
+ readonly tag: PasskeyError_Tags.MnemonicError;
7104
+ readonly inner: Readonly<[string]>;
7105
+ /**
7106
+ * @private
7107
+ * This field is private and should not be used, use `tag` instead.
7108
+ */
7109
+ readonly [uniffiTypeNameSymbol]: "PasskeyError";
7110
+ name: string;
7111
+ message: string;
7112
+ stack?: string;
7113
+ cause?: unknown;
7114
+ };
7115
+ instanceOf(obj: any): obj is {
7116
+ readonly tag: PasskeyError_Tags.MnemonicError;
7117
+ readonly inner: Readonly<[string]>;
7118
+ /**
7119
+ * @private
7120
+ * This field is private and should not be used, use `tag` instead.
7121
+ */
7122
+ readonly [uniffiTypeNameSymbol]: "PasskeyError";
7123
+ name: string;
7124
+ message: string;
7125
+ stack?: string;
7126
+ cause?: unknown;
7127
+ };
7128
+ hasInner(obj: any): obj is {
7129
+ readonly tag: PasskeyError_Tags.MnemonicError;
7130
+ readonly inner: Readonly<[string]>;
7131
+ /**
7132
+ * @private
7133
+ * This field is private and should not be used, use `tag` instead.
7134
+ */
7135
+ readonly [uniffiTypeNameSymbol]: "PasskeyError";
7136
+ name: string;
7137
+ message: string;
7138
+ stack?: string;
7139
+ cause?: unknown;
7140
+ };
7141
+ getInner(obj: {
7142
+ readonly tag: PasskeyError_Tags.MnemonicError;
7143
+ readonly inner: Readonly<[string]>;
7144
+ /**
7145
+ * @private
7146
+ * This field is private and should not be used, use `tag` instead.
7147
+ */
7148
+ readonly [uniffiTypeNameSymbol]: "PasskeyError";
7149
+ name: string;
7150
+ message: string;
7151
+ stack?: string;
7152
+ cause?: unknown;
7153
+ }): Readonly<[string]>;
7154
+ isError(error: unknown): error is Error;
7155
+ captureStackTrace(targetObject: object, constructorOpt?: Function): void;
7156
+ prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
7157
+ stackTraceLimit: number;
7158
+ };
7159
+ InvalidSalt: {
7160
+ new (v0: string): {
7161
+ readonly tag: PasskeyError_Tags.InvalidSalt;
7162
+ readonly inner: Readonly<[string]>;
7163
+ /**
7164
+ * @private
7165
+ * This field is private and should not be used, use `tag` instead.
7166
+ */
7167
+ readonly [uniffiTypeNameSymbol]: "PasskeyError";
7168
+ name: string;
7169
+ message: string;
7170
+ stack?: string;
7171
+ cause?: unknown;
7172
+ };
7173
+ "new"(v0: string): {
7174
+ readonly tag: PasskeyError_Tags.InvalidSalt;
7175
+ readonly inner: Readonly<[string]>;
7176
+ /**
7177
+ * @private
7178
+ * This field is private and should not be used, use `tag` instead.
7179
+ */
7180
+ readonly [uniffiTypeNameSymbol]: "PasskeyError";
7181
+ name: string;
7182
+ message: string;
7183
+ stack?: string;
7184
+ cause?: unknown;
7185
+ };
7186
+ instanceOf(obj: any): obj is {
7187
+ readonly tag: PasskeyError_Tags.InvalidSalt;
7188
+ readonly inner: Readonly<[string]>;
7189
+ /**
7190
+ * @private
7191
+ * This field is private and should not be used, use `tag` instead.
7192
+ */
7193
+ readonly [uniffiTypeNameSymbol]: "PasskeyError";
7194
+ name: string;
7195
+ message: string;
7196
+ stack?: string;
7197
+ cause?: unknown;
7198
+ };
7199
+ hasInner(obj: any): obj is {
7200
+ readonly tag: PasskeyError_Tags.InvalidSalt;
7201
+ readonly inner: Readonly<[string]>;
7202
+ /**
7203
+ * @private
7204
+ * This field is private and should not be used, use `tag` instead.
7205
+ */
7206
+ readonly [uniffiTypeNameSymbol]: "PasskeyError";
7207
+ name: string;
7208
+ message: string;
7209
+ stack?: string;
7210
+ cause?: unknown;
7211
+ };
7212
+ getInner(obj: {
7213
+ readonly tag: PasskeyError_Tags.InvalidSalt;
7214
+ readonly inner: Readonly<[string]>;
7215
+ /**
7216
+ * @private
7217
+ * This field is private and should not be used, use `tag` instead.
7218
+ */
7219
+ readonly [uniffiTypeNameSymbol]: "PasskeyError";
7220
+ name: string;
7221
+ message: string;
7222
+ stack?: string;
7223
+ cause?: unknown;
7224
+ }): Readonly<[string]>;
7225
+ isError(error: unknown): error is Error;
7226
+ captureStackTrace(targetObject: object, constructorOpt?: Function): void;
7227
+ prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
7228
+ stackTraceLimit: number;
7229
+ };
7230
+ Generic: {
7231
+ new (v0: string): {
7232
+ readonly tag: PasskeyError_Tags.Generic;
7233
+ readonly inner: Readonly<[string]>;
7234
+ /**
7235
+ * @private
7236
+ * This field is private and should not be used, use `tag` instead.
7237
+ */
7238
+ readonly [uniffiTypeNameSymbol]: "PasskeyError";
7239
+ name: string;
7240
+ message: string;
7241
+ stack?: string;
7242
+ cause?: unknown;
7243
+ };
7244
+ "new"(v0: string): {
7245
+ readonly tag: PasskeyError_Tags.Generic;
7246
+ readonly inner: Readonly<[string]>;
7247
+ /**
7248
+ * @private
7249
+ * This field is private and should not be used, use `tag` instead.
7250
+ */
7251
+ readonly [uniffiTypeNameSymbol]: "PasskeyError";
7252
+ name: string;
7253
+ message: string;
7254
+ stack?: string;
7255
+ cause?: unknown;
7256
+ };
7257
+ instanceOf(obj: any): obj is {
7258
+ readonly tag: PasskeyError_Tags.Generic;
7259
+ readonly inner: Readonly<[string]>;
7260
+ /**
7261
+ * @private
7262
+ * This field is private and should not be used, use `tag` instead.
7263
+ */
7264
+ readonly [uniffiTypeNameSymbol]: "PasskeyError";
7265
+ name: string;
7266
+ message: string;
7267
+ stack?: string;
7268
+ cause?: unknown;
7269
+ };
7270
+ hasInner(obj: any): obj is {
7271
+ readonly tag: PasskeyError_Tags.Generic;
7272
+ readonly inner: Readonly<[string]>;
7273
+ /**
7274
+ * @private
7275
+ * This field is private and should not be used, use `tag` instead.
7276
+ */
7277
+ readonly [uniffiTypeNameSymbol]: "PasskeyError";
7278
+ name: string;
7279
+ message: string;
7280
+ stack?: string;
7281
+ cause?: unknown;
7282
+ };
7283
+ getInner(obj: {
7284
+ readonly tag: PasskeyError_Tags.Generic;
7285
+ readonly inner: Readonly<[string]>;
7286
+ /**
7287
+ * @private
7288
+ * This field is private and should not be used, use `tag` instead.
7289
+ */
7290
+ readonly [uniffiTypeNameSymbol]: "PasskeyError";
7291
+ name: string;
7292
+ message: string;
7293
+ stack?: string;
7294
+ cause?: unknown;
7295
+ }): Readonly<[string]>;
7296
+ isError(error: unknown): error is Error;
7297
+ captureStackTrace(targetObject: object, constructorOpt?: Function): void;
7298
+ prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
7299
+ stackTraceLimit: number;
7300
+ };
7301
+ }>;
7302
+ /**
7303
+ * Error type for passkey operations.
7304
+ */
7305
+ export type PasskeyError = InstanceType<(typeof PasskeyError)[keyof Omit<typeof PasskeyError, 'instanceOf'>]>;
7306
+ export declare enum PasskeyPrfError_Tags {
7307
+ PrfNotSupported = "PrfNotSupported",
7308
+ UserCancelled = "UserCancelled",
7309
+ CredentialNotFound = "CredentialNotFound",
7310
+ AuthenticationFailed = "AuthenticationFailed",
7311
+ PrfEvaluationFailed = "PrfEvaluationFailed",
7312
+ Generic = "Generic"
7313
+ }
7314
+ /**
7315
+ * Error type for passkey PRF operations.
7316
+ * Platforms implement `PasskeyPrfProvider` and return this error type.
7317
+ */
7318
+ export declare const PasskeyPrfError: Readonly<{
7319
+ instanceOf: (obj: any) => obj is PasskeyPrfError;
7320
+ PrfNotSupported: {
7321
+ new (): {
7322
+ readonly tag: PasskeyPrfError_Tags.PrfNotSupported;
7323
+ /**
7324
+ * @private
7325
+ * This field is private and should not be used, use `tag` instead.
7326
+ */
7327
+ readonly [uniffiTypeNameSymbol]: "PasskeyPrfError";
7328
+ name: string;
7329
+ message: string;
7330
+ stack?: string;
7331
+ cause?: unknown;
7332
+ };
7333
+ "new"(): {
7334
+ readonly tag: PasskeyPrfError_Tags.PrfNotSupported;
7335
+ /**
7336
+ * @private
7337
+ * This field is private and should not be used, use `tag` instead.
7338
+ */
7339
+ readonly [uniffiTypeNameSymbol]: "PasskeyPrfError";
7340
+ name: string;
7341
+ message: string;
7342
+ stack?: string;
7343
+ cause?: unknown;
7344
+ };
7345
+ instanceOf(obj: any): obj is {
7346
+ readonly tag: PasskeyPrfError_Tags.PrfNotSupported;
7347
+ /**
7348
+ * @private
7349
+ * This field is private and should not be used, use `tag` instead.
7350
+ */
7351
+ readonly [uniffiTypeNameSymbol]: "PasskeyPrfError";
7352
+ name: string;
7353
+ message: string;
7354
+ stack?: string;
7355
+ cause?: unknown;
7356
+ };
7357
+ hasInner(obj: any): obj is {
7358
+ readonly tag: PasskeyPrfError_Tags.PrfNotSupported;
7359
+ /**
7360
+ * @private
7361
+ * This field is private and should not be used, use `tag` instead.
7362
+ */
7363
+ readonly [uniffiTypeNameSymbol]: "PasskeyPrfError";
7364
+ name: string;
7365
+ message: string;
7366
+ stack?: string;
7367
+ cause?: unknown;
7368
+ };
7369
+ isError(error: unknown): error is Error;
7370
+ captureStackTrace(targetObject: object, constructorOpt?: Function): void;
7371
+ prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
7372
+ stackTraceLimit: number;
7373
+ };
7374
+ UserCancelled: {
7375
+ new (): {
7376
+ readonly tag: PasskeyPrfError_Tags.UserCancelled;
7377
+ /**
7378
+ * @private
7379
+ * This field is private and should not be used, use `tag` instead.
7380
+ */
7381
+ readonly [uniffiTypeNameSymbol]: "PasskeyPrfError";
7382
+ name: string;
7383
+ message: string;
7384
+ stack?: string;
7385
+ cause?: unknown;
7386
+ };
7387
+ "new"(): {
7388
+ readonly tag: PasskeyPrfError_Tags.UserCancelled;
7389
+ /**
7390
+ * @private
7391
+ * This field is private and should not be used, use `tag` instead.
7392
+ */
7393
+ readonly [uniffiTypeNameSymbol]: "PasskeyPrfError";
7394
+ name: string;
7395
+ message: string;
7396
+ stack?: string;
7397
+ cause?: unknown;
7398
+ };
7399
+ instanceOf(obj: any): obj is {
7400
+ readonly tag: PasskeyPrfError_Tags.UserCancelled;
7401
+ /**
7402
+ * @private
7403
+ * This field is private and should not be used, use `tag` instead.
7404
+ */
7405
+ readonly [uniffiTypeNameSymbol]: "PasskeyPrfError";
7406
+ name: string;
7407
+ message: string;
7408
+ stack?: string;
7409
+ cause?: unknown;
7410
+ };
7411
+ hasInner(obj: any): obj is {
7412
+ readonly tag: PasskeyPrfError_Tags.UserCancelled;
7413
+ /**
7414
+ * @private
7415
+ * This field is private and should not be used, use `tag` instead.
7416
+ */
7417
+ readonly [uniffiTypeNameSymbol]: "PasskeyPrfError";
7418
+ name: string;
7419
+ message: string;
7420
+ stack?: string;
7421
+ cause?: unknown;
7422
+ };
7423
+ isError(error: unknown): error is Error;
7424
+ captureStackTrace(targetObject: object, constructorOpt?: Function): void;
7425
+ prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
7426
+ stackTraceLimit: number;
7427
+ };
7428
+ CredentialNotFound: {
7429
+ new (): {
7430
+ readonly tag: PasskeyPrfError_Tags.CredentialNotFound;
7431
+ /**
7432
+ * @private
7433
+ * This field is private and should not be used, use `tag` instead.
7434
+ */
7435
+ readonly [uniffiTypeNameSymbol]: "PasskeyPrfError";
7436
+ name: string;
7437
+ message: string;
7438
+ stack?: string;
7439
+ cause?: unknown;
7440
+ };
7441
+ "new"(): {
7442
+ readonly tag: PasskeyPrfError_Tags.CredentialNotFound;
7443
+ /**
7444
+ * @private
7445
+ * This field is private and should not be used, use `tag` instead.
7446
+ */
7447
+ readonly [uniffiTypeNameSymbol]: "PasskeyPrfError";
7448
+ name: string;
7449
+ message: string;
7450
+ stack?: string;
7451
+ cause?: unknown;
7452
+ };
7453
+ instanceOf(obj: any): obj is {
7454
+ readonly tag: PasskeyPrfError_Tags.CredentialNotFound;
7455
+ /**
7456
+ * @private
7457
+ * This field is private and should not be used, use `tag` instead.
7458
+ */
7459
+ readonly [uniffiTypeNameSymbol]: "PasskeyPrfError";
7460
+ name: string;
7461
+ message: string;
7462
+ stack?: string;
7463
+ cause?: unknown;
7464
+ };
7465
+ hasInner(obj: any): obj is {
7466
+ readonly tag: PasskeyPrfError_Tags.CredentialNotFound;
7467
+ /**
7468
+ * @private
7469
+ * This field is private and should not be used, use `tag` instead.
7470
+ */
7471
+ readonly [uniffiTypeNameSymbol]: "PasskeyPrfError";
7472
+ name: string;
7473
+ message: string;
7474
+ stack?: string;
7475
+ cause?: unknown;
7476
+ };
7477
+ isError(error: unknown): error is Error;
7478
+ captureStackTrace(targetObject: object, constructorOpt?: Function): void;
7479
+ prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
7480
+ stackTraceLimit: number;
7481
+ };
7482
+ AuthenticationFailed: {
7483
+ new (v0: string): {
7484
+ readonly tag: PasskeyPrfError_Tags.AuthenticationFailed;
7485
+ readonly inner: Readonly<[string]>;
7486
+ /**
7487
+ * @private
7488
+ * This field is private and should not be used, use `tag` instead.
7489
+ */
7490
+ readonly [uniffiTypeNameSymbol]: "PasskeyPrfError";
7491
+ name: string;
7492
+ message: string;
7493
+ stack?: string;
7494
+ cause?: unknown;
7495
+ };
7496
+ "new"(v0: string): {
7497
+ readonly tag: PasskeyPrfError_Tags.AuthenticationFailed;
7498
+ readonly inner: Readonly<[string]>;
7499
+ /**
7500
+ * @private
7501
+ * This field is private and should not be used, use `tag` instead.
7502
+ */
7503
+ readonly [uniffiTypeNameSymbol]: "PasskeyPrfError";
7504
+ name: string;
7505
+ message: string;
7506
+ stack?: string;
7507
+ cause?: unknown;
7508
+ };
7509
+ instanceOf(obj: any): obj is {
7510
+ readonly tag: PasskeyPrfError_Tags.AuthenticationFailed;
7511
+ readonly inner: Readonly<[string]>;
7512
+ /**
7513
+ * @private
7514
+ * This field is private and should not be used, use `tag` instead.
7515
+ */
7516
+ readonly [uniffiTypeNameSymbol]: "PasskeyPrfError";
7517
+ name: string;
7518
+ message: string;
7519
+ stack?: string;
7520
+ cause?: unknown;
7521
+ };
7522
+ hasInner(obj: any): obj is {
7523
+ readonly tag: PasskeyPrfError_Tags.AuthenticationFailed;
7524
+ readonly inner: Readonly<[string]>;
7525
+ /**
7526
+ * @private
7527
+ * This field is private and should not be used, use `tag` instead.
7528
+ */
7529
+ readonly [uniffiTypeNameSymbol]: "PasskeyPrfError";
7530
+ name: string;
7531
+ message: string;
7532
+ stack?: string;
7533
+ cause?: unknown;
7534
+ };
7535
+ getInner(obj: {
7536
+ readonly tag: PasskeyPrfError_Tags.AuthenticationFailed;
7537
+ readonly inner: Readonly<[string]>;
7538
+ /**
7539
+ * @private
7540
+ * This field is private and should not be used, use `tag` instead.
7541
+ */
7542
+ readonly [uniffiTypeNameSymbol]: "PasskeyPrfError";
7543
+ name: string;
7544
+ message: string;
7545
+ stack?: string;
7546
+ cause?: unknown;
7547
+ }): Readonly<[string]>;
7548
+ isError(error: unknown): error is Error;
7549
+ captureStackTrace(targetObject: object, constructorOpt?: Function): void;
7550
+ prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
7551
+ stackTraceLimit: number;
7552
+ };
7553
+ PrfEvaluationFailed: {
7554
+ new (v0: string): {
7555
+ readonly tag: PasskeyPrfError_Tags.PrfEvaluationFailed;
7556
+ readonly inner: Readonly<[string]>;
7557
+ /**
7558
+ * @private
7559
+ * This field is private and should not be used, use `tag` instead.
7560
+ */
7561
+ readonly [uniffiTypeNameSymbol]: "PasskeyPrfError";
7562
+ name: string;
7563
+ message: string;
7564
+ stack?: string;
7565
+ cause?: unknown;
7566
+ };
7567
+ "new"(v0: string): {
7568
+ readonly tag: PasskeyPrfError_Tags.PrfEvaluationFailed;
7569
+ readonly inner: Readonly<[string]>;
7570
+ /**
7571
+ * @private
7572
+ * This field is private and should not be used, use `tag` instead.
7573
+ */
7574
+ readonly [uniffiTypeNameSymbol]: "PasskeyPrfError";
7575
+ name: string;
7576
+ message: string;
7577
+ stack?: string;
7578
+ cause?: unknown;
7579
+ };
7580
+ instanceOf(obj: any): obj is {
7581
+ readonly tag: PasskeyPrfError_Tags.PrfEvaluationFailed;
7582
+ readonly inner: Readonly<[string]>;
7583
+ /**
7584
+ * @private
7585
+ * This field is private and should not be used, use `tag` instead.
7586
+ */
7587
+ readonly [uniffiTypeNameSymbol]: "PasskeyPrfError";
7588
+ name: string;
7589
+ message: string;
7590
+ stack?: string;
7591
+ cause?: unknown;
7592
+ };
7593
+ hasInner(obj: any): obj is {
7594
+ readonly tag: PasskeyPrfError_Tags.PrfEvaluationFailed;
7595
+ readonly inner: Readonly<[string]>;
7596
+ /**
7597
+ * @private
7598
+ * This field is private and should not be used, use `tag` instead.
7599
+ */
7600
+ readonly [uniffiTypeNameSymbol]: "PasskeyPrfError";
7601
+ name: string;
7602
+ message: string;
7603
+ stack?: string;
7604
+ cause?: unknown;
7605
+ };
7606
+ getInner(obj: {
7607
+ readonly tag: PasskeyPrfError_Tags.PrfEvaluationFailed;
7608
+ readonly inner: Readonly<[string]>;
7609
+ /**
7610
+ * @private
7611
+ * This field is private and should not be used, use `tag` instead.
7612
+ */
7613
+ readonly [uniffiTypeNameSymbol]: "PasskeyPrfError";
7614
+ name: string;
7615
+ message: string;
7616
+ stack?: string;
7617
+ cause?: unknown;
7618
+ }): Readonly<[string]>;
7619
+ isError(error: unknown): error is Error;
7620
+ captureStackTrace(targetObject: object, constructorOpt?: Function): void;
7621
+ prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
7622
+ stackTraceLimit: number;
7623
+ };
7624
+ Generic: {
7625
+ new (v0: string): {
7626
+ readonly tag: PasskeyPrfError_Tags.Generic;
7627
+ readonly inner: Readonly<[string]>;
7628
+ /**
7629
+ * @private
7630
+ * This field is private and should not be used, use `tag` instead.
7631
+ */
7632
+ readonly [uniffiTypeNameSymbol]: "PasskeyPrfError";
7633
+ name: string;
7634
+ message: string;
7635
+ stack?: string;
7636
+ cause?: unknown;
7637
+ };
7638
+ "new"(v0: string): {
7639
+ readonly tag: PasskeyPrfError_Tags.Generic;
7640
+ readonly inner: Readonly<[string]>;
7641
+ /**
7642
+ * @private
7643
+ * This field is private and should not be used, use `tag` instead.
7644
+ */
7645
+ readonly [uniffiTypeNameSymbol]: "PasskeyPrfError";
7646
+ name: string;
7647
+ message: string;
7648
+ stack?: string;
7649
+ cause?: unknown;
7650
+ };
7651
+ instanceOf(obj: any): obj is {
7652
+ readonly tag: PasskeyPrfError_Tags.Generic;
7653
+ readonly inner: Readonly<[string]>;
7654
+ /**
7655
+ * @private
7656
+ * This field is private and should not be used, use `tag` instead.
7657
+ */
7658
+ readonly [uniffiTypeNameSymbol]: "PasskeyPrfError";
7659
+ name: string;
7660
+ message: string;
7661
+ stack?: string;
7662
+ cause?: unknown;
7663
+ };
7664
+ hasInner(obj: any): obj is {
7665
+ readonly tag: PasskeyPrfError_Tags.Generic;
7666
+ readonly inner: Readonly<[string]>;
7667
+ /**
7668
+ * @private
7669
+ * This field is private and should not be used, use `tag` instead.
7670
+ */
7671
+ readonly [uniffiTypeNameSymbol]: "PasskeyPrfError";
7672
+ name: string;
7673
+ message: string;
7674
+ stack?: string;
7675
+ cause?: unknown;
7676
+ };
7677
+ getInner(obj: {
7678
+ readonly tag: PasskeyPrfError_Tags.Generic;
7679
+ readonly inner: Readonly<[string]>;
7680
+ /**
7681
+ * @private
7682
+ * This field is private and should not be used, use `tag` instead.
7683
+ */
7684
+ readonly [uniffiTypeNameSymbol]: "PasskeyPrfError";
7685
+ name: string;
7686
+ message: string;
7687
+ stack?: string;
7688
+ cause?: unknown;
7689
+ }): Readonly<[string]>;
7690
+ isError(error: unknown): error is Error;
7691
+ captureStackTrace(targetObject: object, constructorOpt?: Function): void;
7692
+ prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
7693
+ stackTraceLimit: number;
7694
+ };
7695
+ }>;
7696
+ /**
7697
+ * Error type for passkey PRF operations.
7698
+ * Platforms implement `PasskeyPrfProvider` and return this error type.
7699
+ */
7700
+ export type PasskeyPrfError = InstanceType<(typeof PasskeyPrfError)[keyof Omit<typeof PasskeyPrfError, 'instanceOf'>]>;
7701
+ export declare enum PaymentDetails_Tags {
7702
+ Spark = "Spark",
7703
+ Token = "Token",
7704
+ Lightning = "Lightning",
7705
+ Withdraw = "Withdraw",
7706
+ Deposit = "Deposit"
7707
+ }
7708
+ export declare const PaymentDetails: Readonly<{
7709
+ instanceOf: (obj: any) => obj is PaymentDetails;
7710
+ Spark: {
7711
+ new (inner: {
7712
+ /**
7713
+ * The invoice details if the payment fulfilled a spark invoice
7714
+ */ invoiceDetails: SparkInvoicePaymentDetails | undefined;
7715
+ /**
7716
+ * The HTLC transfer details if the payment fulfilled an HTLC transfer
7717
+ */ htlcDetails: SparkHtlcDetails | undefined;
7718
+ /**
7719
+ * The information for a conversion
7720
+ */ conversionInfo: ConversionInfo | undefined;
7721
+ }): {
7722
+ readonly tag: PaymentDetails_Tags.Spark;
7723
+ readonly inner: Readonly<{
7724
+ invoiceDetails: SparkInvoicePaymentDetails | undefined;
7725
+ htlcDetails: SparkHtlcDetails | undefined;
7726
+ conversionInfo: ConversionInfo | undefined;
7727
+ }>;
7728
+ /**
7729
+ * @private
7730
+ * This field is private and should not be used, use `tag` instead.
7731
+ */
7732
+ readonly [uniffiTypeNameSymbol]: "PaymentDetails";
7733
+ };
7734
+ "new"(inner: {
7735
+ /**
7736
+ * The invoice details if the payment fulfilled a spark invoice
7737
+ */ invoiceDetails: SparkInvoicePaymentDetails | undefined;
7738
+ /**
7739
+ * The HTLC transfer details if the payment fulfilled an HTLC transfer
7740
+ */ htlcDetails: SparkHtlcDetails | undefined;
7741
+ /**
7742
+ * The information for a conversion
7743
+ */ conversionInfo: ConversionInfo | undefined;
7744
+ }): {
7745
+ readonly tag: PaymentDetails_Tags.Spark;
7746
+ readonly inner: Readonly<{
7747
+ invoiceDetails: SparkInvoicePaymentDetails | undefined;
7748
+ htlcDetails: SparkHtlcDetails | undefined;
7749
+ conversionInfo: ConversionInfo | undefined;
7750
+ }>;
7751
+ /**
7752
+ * @private
7753
+ * This field is private and should not be used, use `tag` instead.
7754
+ */
7755
+ readonly [uniffiTypeNameSymbol]: "PaymentDetails";
7756
+ };
7757
+ instanceOf(obj: any): obj is {
7758
+ readonly tag: PaymentDetails_Tags.Spark;
7759
+ readonly inner: Readonly<{
7760
+ invoiceDetails: SparkInvoicePaymentDetails | undefined;
7761
+ htlcDetails: SparkHtlcDetails | undefined;
7762
+ conversionInfo: ConversionInfo | undefined;
7763
+ }>;
7764
+ /**
7765
+ * @private
7766
+ * This field is private and should not be used, use `tag` instead.
7767
+ */
7768
+ readonly [uniffiTypeNameSymbol]: "PaymentDetails";
7769
+ };
7770
+ };
7771
+ Token: {
7772
+ new (inner: {
7773
+ metadata: TokenMetadata;
7774
+ txHash: string;
7775
+ txType: TokenTransactionType;
7776
+ /**
7777
+ * The invoice details if the payment fulfilled a spark invoice
7778
+ */ invoiceDetails: SparkInvoicePaymentDetails | undefined;
7779
+ /**
7780
+ * The information for a conversion
7781
+ */ conversionInfo: ConversionInfo | undefined;
7782
+ }): {
7783
+ readonly tag: PaymentDetails_Tags.Token;
7784
+ readonly inner: Readonly<{
7785
+ metadata: TokenMetadata;
7786
+ txHash: string;
7787
+ txType: TokenTransactionType;
7788
+ invoiceDetails: SparkInvoicePaymentDetails | undefined;
7789
+ conversionInfo: ConversionInfo | undefined;
7790
+ }>;
7791
+ /**
7792
+ * @private
7793
+ * This field is private and should not be used, use `tag` instead.
7794
+ */
7795
+ readonly [uniffiTypeNameSymbol]: "PaymentDetails";
7796
+ };
7797
+ "new"(inner: {
7798
+ metadata: TokenMetadata;
7799
+ txHash: string;
7800
+ txType: TokenTransactionType;
7801
+ /**
7802
+ * The invoice details if the payment fulfilled a spark invoice
7803
+ */ invoiceDetails: SparkInvoicePaymentDetails | undefined;
7804
+ /**
7805
+ * The information for a conversion
7806
+ */ conversionInfo: ConversionInfo | undefined;
7807
+ }): {
7808
+ readonly tag: PaymentDetails_Tags.Token;
7809
+ readonly inner: Readonly<{
7810
+ metadata: TokenMetadata;
7811
+ txHash: string;
7812
+ txType: TokenTransactionType;
7813
+ invoiceDetails: SparkInvoicePaymentDetails | undefined;
7814
+ conversionInfo: ConversionInfo | undefined;
7815
+ }>;
7816
+ /**
7817
+ * @private
7818
+ * This field is private and should not be used, use `tag` instead.
7819
+ */
7820
+ readonly [uniffiTypeNameSymbol]: "PaymentDetails";
7821
+ };
7822
+ instanceOf(obj: any): obj is {
7823
+ readonly tag: PaymentDetails_Tags.Token;
7824
+ readonly inner: Readonly<{
7825
+ metadata: TokenMetadata;
7826
+ txHash: string;
7827
+ txType: TokenTransactionType;
7828
+ invoiceDetails: SparkInvoicePaymentDetails | undefined;
7829
+ conversionInfo: ConversionInfo | undefined;
7830
+ }>;
7831
+ /**
7832
+ * @private
7833
+ * This field is private and should not be used, use `tag` instead.
7834
+ */
7835
+ readonly [uniffiTypeNameSymbol]: "PaymentDetails";
6593
7836
  };
6594
7837
  };
6595
7838
  Lightning: {
@@ -8464,7 +9707,8 @@ export declare enum SdkEvent_Tags {
8464
9707
  PaymentSucceeded = "PaymentSucceeded",
8465
9708
  PaymentPending = "PaymentPending",
8466
9709
  PaymentFailed = "PaymentFailed",
8467
- Optimization = "Optimization"
9710
+ Optimization = "Optimization",
9711
+ LightningAddressChanged = "LightningAddressChanged"
8468
9712
  }
8469
9713
  /**
8470
9714
  * Events emitted by the SDK
@@ -8731,6 +9975,45 @@ export declare const SdkEvent: Readonly<{
8731
9975
  readonly [uniffiTypeNameSymbol]: "SdkEvent";
8732
9976
  };
8733
9977
  };
9978
+ LightningAddressChanged: {
9979
+ new (inner: {
9980
+ lightningAddress: LightningAddressInfo | undefined;
9981
+ }): {
9982
+ readonly tag: SdkEvent_Tags.LightningAddressChanged;
9983
+ readonly inner: Readonly<{
9984
+ lightningAddress: LightningAddressInfo | undefined;
9985
+ }>;
9986
+ /**
9987
+ * @private
9988
+ * This field is private and should not be used, use `tag` instead.
9989
+ */
9990
+ readonly [uniffiTypeNameSymbol]: "SdkEvent";
9991
+ };
9992
+ "new"(inner: {
9993
+ lightningAddress: LightningAddressInfo | undefined;
9994
+ }): {
9995
+ readonly tag: SdkEvent_Tags.LightningAddressChanged;
9996
+ readonly inner: Readonly<{
9997
+ lightningAddress: LightningAddressInfo | undefined;
9998
+ }>;
9999
+ /**
10000
+ * @private
10001
+ * This field is private and should not be used, use `tag` instead.
10002
+ */
10003
+ readonly [uniffiTypeNameSymbol]: "SdkEvent";
10004
+ };
10005
+ instanceOf(obj: any): obj is {
10006
+ readonly tag: SdkEvent_Tags.LightningAddressChanged;
10007
+ readonly inner: Readonly<{
10008
+ lightningAddress: LightningAddressInfo | undefined;
10009
+ }>;
10010
+ /**
10011
+ * @private
10012
+ * This field is private and should not be used, use `tag` instead.
10013
+ */
10014
+ readonly [uniffiTypeNameSymbol]: "SdkEvent";
10015
+ };
10016
+ };
8734
10017
  }>;
8735
10018
  /**
8736
10019
  * Events emitted by the SDK
@@ -10514,7 +11797,8 @@ export declare enum StorageError_Tags {
10514
11797
  Connection = "Connection",
10515
11798
  Implementation = "Implementation",
10516
11799
  InitializationError = "InitializationError",
10517
- Serialization = "Serialization"
11800
+ Serialization = "Serialization",
11801
+ NotFound = "NotFound"
10518
11802
  }
10519
11803
  /**
10520
11804
  * Errors that can occur during storage operations
@@ -10663,9 +11947,80 @@ export declare const StorageError: Readonly<{
10663
11947
  prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
10664
11948
  stackTraceLimit: number;
10665
11949
  };
10666
- InitializationError: {
11950
+ InitializationError: {
11951
+ new (v0: string): {
11952
+ readonly tag: StorageError_Tags.InitializationError;
11953
+ readonly inner: Readonly<[string]>;
11954
+ /**
11955
+ * @private
11956
+ * This field is private and should not be used, use `tag` instead.
11957
+ */
11958
+ readonly [uniffiTypeNameSymbol]: "StorageError";
11959
+ name: string;
11960
+ message: string;
11961
+ stack?: string;
11962
+ cause?: unknown;
11963
+ };
11964
+ "new"(v0: string): {
11965
+ readonly tag: StorageError_Tags.InitializationError;
11966
+ readonly inner: Readonly<[string]>;
11967
+ /**
11968
+ * @private
11969
+ * This field is private and should not be used, use `tag` instead.
11970
+ */
11971
+ readonly [uniffiTypeNameSymbol]: "StorageError";
11972
+ name: string;
11973
+ message: string;
11974
+ stack?: string;
11975
+ cause?: unknown;
11976
+ };
11977
+ instanceOf(obj: any): obj is {
11978
+ readonly tag: StorageError_Tags.InitializationError;
11979
+ readonly inner: Readonly<[string]>;
11980
+ /**
11981
+ * @private
11982
+ * This field is private and should not be used, use `tag` instead.
11983
+ */
11984
+ readonly [uniffiTypeNameSymbol]: "StorageError";
11985
+ name: string;
11986
+ message: string;
11987
+ stack?: string;
11988
+ cause?: unknown;
11989
+ };
11990
+ hasInner(obj: any): obj is {
11991
+ readonly tag: StorageError_Tags.InitializationError;
11992
+ readonly inner: Readonly<[string]>;
11993
+ /**
11994
+ * @private
11995
+ * This field is private and should not be used, use `tag` instead.
11996
+ */
11997
+ readonly [uniffiTypeNameSymbol]: "StorageError";
11998
+ name: string;
11999
+ message: string;
12000
+ stack?: string;
12001
+ cause?: unknown;
12002
+ };
12003
+ getInner(obj: {
12004
+ readonly tag: StorageError_Tags.InitializationError;
12005
+ readonly inner: Readonly<[string]>;
12006
+ /**
12007
+ * @private
12008
+ * This field is private and should not be used, use `tag` instead.
12009
+ */
12010
+ readonly [uniffiTypeNameSymbol]: "StorageError";
12011
+ name: string;
12012
+ message: string;
12013
+ stack?: string;
12014
+ cause?: unknown;
12015
+ }): Readonly<[string]>;
12016
+ isError(error: unknown): error is Error;
12017
+ captureStackTrace(targetObject: object, constructorOpt?: Function): void;
12018
+ prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
12019
+ stackTraceLimit: number;
12020
+ };
12021
+ Serialization: {
10667
12022
  new (v0: string): {
10668
- readonly tag: StorageError_Tags.InitializationError;
12023
+ readonly tag: StorageError_Tags.Serialization;
10669
12024
  readonly inner: Readonly<[string]>;
10670
12025
  /**
10671
12026
  * @private
@@ -10678,7 +12033,7 @@ export declare const StorageError: Readonly<{
10678
12033
  cause?: unknown;
10679
12034
  };
10680
12035
  "new"(v0: string): {
10681
- readonly tag: StorageError_Tags.InitializationError;
12036
+ readonly tag: StorageError_Tags.Serialization;
10682
12037
  readonly inner: Readonly<[string]>;
10683
12038
  /**
10684
12039
  * @private
@@ -10691,7 +12046,7 @@ export declare const StorageError: Readonly<{
10691
12046
  cause?: unknown;
10692
12047
  };
10693
12048
  instanceOf(obj: any): obj is {
10694
- readonly tag: StorageError_Tags.InitializationError;
12049
+ readonly tag: StorageError_Tags.Serialization;
10695
12050
  readonly inner: Readonly<[string]>;
10696
12051
  /**
10697
12052
  * @private
@@ -10704,7 +12059,7 @@ export declare const StorageError: Readonly<{
10704
12059
  cause?: unknown;
10705
12060
  };
10706
12061
  hasInner(obj: any): obj is {
10707
- readonly tag: StorageError_Tags.InitializationError;
12062
+ readonly tag: StorageError_Tags.Serialization;
10708
12063
  readonly inner: Readonly<[string]>;
10709
12064
  /**
10710
12065
  * @private
@@ -10717,7 +12072,7 @@ export declare const StorageError: Readonly<{
10717
12072
  cause?: unknown;
10718
12073
  };
10719
12074
  getInner(obj: {
10720
- readonly tag: StorageError_Tags.InitializationError;
12075
+ readonly tag: StorageError_Tags.Serialization;
10721
12076
  readonly inner: Readonly<[string]>;
10722
12077
  /**
10723
12078
  * @private
@@ -10734,10 +12089,9 @@ export declare const StorageError: Readonly<{
10734
12089
  prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
10735
12090
  stackTraceLimit: number;
10736
12091
  };
10737
- Serialization: {
10738
- new (v0: string): {
10739
- readonly tag: StorageError_Tags.Serialization;
10740
- readonly inner: Readonly<[string]>;
12092
+ NotFound: {
12093
+ new (): {
12094
+ readonly tag: StorageError_Tags.NotFound;
10741
12095
  /**
10742
12096
  * @private
10743
12097
  * This field is private and should not be used, use `tag` instead.
@@ -10748,9 +12102,8 @@ export declare const StorageError: Readonly<{
10748
12102
  stack?: string;
10749
12103
  cause?: unknown;
10750
12104
  };
10751
- "new"(v0: string): {
10752
- readonly tag: StorageError_Tags.Serialization;
10753
- readonly inner: Readonly<[string]>;
12105
+ "new"(): {
12106
+ readonly tag: StorageError_Tags.NotFound;
10754
12107
  /**
10755
12108
  * @private
10756
12109
  * This field is private and should not be used, use `tag` instead.
@@ -10762,8 +12115,7 @@ export declare const StorageError: Readonly<{
10762
12115
  cause?: unknown;
10763
12116
  };
10764
12117
  instanceOf(obj: any): obj is {
10765
- readonly tag: StorageError_Tags.Serialization;
10766
- readonly inner: Readonly<[string]>;
12118
+ readonly tag: StorageError_Tags.NotFound;
10767
12119
  /**
10768
12120
  * @private
10769
12121
  * This field is private and should not be used, use `tag` instead.
@@ -10775,8 +12127,7 @@ export declare const StorageError: Readonly<{
10775
12127
  cause?: unknown;
10776
12128
  };
10777
12129
  hasInner(obj: any): obj is {
10778
- readonly tag: StorageError_Tags.Serialization;
10779
- readonly inner: Readonly<[string]>;
12130
+ readonly tag: StorageError_Tags.NotFound;
10780
12131
  /**
10781
12132
  * @private
10782
12133
  * This field is private and should not be used, use `tag` instead.
@@ -10787,19 +12138,6 @@ export declare const StorageError: Readonly<{
10787
12138
  stack?: string;
10788
12139
  cause?: unknown;
10789
12140
  };
10790
- getInner(obj: {
10791
- readonly tag: StorageError_Tags.Serialization;
10792
- readonly inner: Readonly<[string]>;
10793
- /**
10794
- * @private
10795
- * This field is private and should not be used, use `tag` instead.
10796
- */
10797
- readonly [uniffiTypeNameSymbol]: "StorageError";
10798
- name: string;
10799
- message: string;
10800
- stack?: string;
10801
- cause?: unknown;
10802
- }): Readonly<[string]>;
10803
12141
  isError(error: unknown): error is Error;
10804
12142
  captureStackTrace(targetObject: object, constructorOpt?: Function): void;
10805
12143
  prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
@@ -11384,6 +12722,20 @@ export declare class BitcoinChainServiceImpl extends UniffiAbstractObject implem
11384
12722
  * with request/response objects and comprehensive error handling.
11385
12723
  */
11386
12724
  export interface BreezSdkInterface {
12725
+ /**
12726
+ * Adds a new contact.
12727
+ *
12728
+ * # Arguments
12729
+ *
12730
+ * * `request` - The request containing the contact details
12731
+ *
12732
+ * # Returns
12733
+ *
12734
+ * The created contact or an error
12735
+ */
12736
+ addContact(request: AddContactRequest, asyncOpts_?: {
12737
+ signal: AbortSignal;
12738
+ }): Promise<Contact>;
11387
12739
  /**
11388
12740
  * Registers a listener to receive SDK events
11389
12741
  *
@@ -11446,6 +12798,20 @@ export interface BreezSdkInterface {
11446
12798
  claimHtlcPayment(request: ClaimHtlcPaymentRequest, asyncOpts_?: {
11447
12799
  signal: AbortSignal;
11448
12800
  }): Promise<ClaimHtlcPaymentResponse>;
12801
+ /**
12802
+ * Deletes a contact by its ID.
12803
+ *
12804
+ * # Arguments
12805
+ *
12806
+ * * `id` - The ID of the contact to delete
12807
+ *
12808
+ * # Returns
12809
+ *
12810
+ * Success or an error
12811
+ */
12812
+ deleteContact(id: string, asyncOpts_?: {
12813
+ signal: AbortSignal;
12814
+ }): Promise<void>;
11449
12815
  deleteLightningAddress(asyncOpts_?: {
11450
12816
  signal: AbortSignal;
11451
12817
  }): Promise<void>;
@@ -11504,6 +12870,20 @@ export interface BreezSdkInterface {
11504
12870
  getUserSettings(asyncOpts_?: {
11505
12871
  signal: AbortSignal;
11506
12872
  }): Promise<UserSettings>;
12873
+ /**
12874
+ * Lists contacts with optional pagination.
12875
+ *
12876
+ * # Arguments
12877
+ *
12878
+ * * `request` - The request containing optional pagination parameters
12879
+ *
12880
+ * # Returns
12881
+ *
12882
+ * A list of contacts or an error
12883
+ */
12884
+ listContacts(request: ListContactsRequest, asyncOpts_?: {
12885
+ signal: AbortSignal;
12886
+ }): Promise<Array<Contact>>;
11507
12887
  /**
11508
12888
  * List fiat currencies for which there is a known exchange rate,
11509
12889
  * sorted by the canonical name of the currency.
@@ -11644,6 +13024,20 @@ export interface BreezSdkInterface {
11644
13024
  syncWallet(request: SyncWalletRequest, asyncOpts_?: {
11645
13025
  signal: AbortSignal;
11646
13026
  }): Promise<SyncWalletResponse>;
13027
+ /**
13028
+ * Updates an existing contact.
13029
+ *
13030
+ * # Arguments
13031
+ *
13032
+ * * `request` - The request containing the updated contact details
13033
+ *
13034
+ * # Returns
13035
+ *
13036
+ * The updated contact or an error
13037
+ */
13038
+ updateContact(request: UpdateContactRequest, asyncOpts_?: {
13039
+ signal: AbortSignal;
13040
+ }): Promise<Contact>;
11647
13041
  /**
11648
13042
  * Updates the user settings for the wallet.
11649
13043
  *
@@ -11662,6 +13056,20 @@ export declare class BreezSdk extends UniffiAbstractObject implements BreezSdkIn
11662
13056
  readonly [destructorGuardSymbol]: UniffiRustArcPtr;
11663
13057
  readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer;
11664
13058
  private constructor();
13059
+ /**
13060
+ * Adds a new contact.
13061
+ *
13062
+ * # Arguments
13063
+ *
13064
+ * * `request` - The request containing the contact details
13065
+ *
13066
+ * # Returns
13067
+ *
13068
+ * The created contact or an error
13069
+ */
13070
+ addContact(request: AddContactRequest, asyncOpts_?: {
13071
+ signal: AbortSignal;
13072
+ }): Promise<Contact>;
11665
13073
  /**
11666
13074
  * Registers a listener to receive SDK events
11667
13075
  *
@@ -11724,6 +13132,20 @@ export declare class BreezSdk extends UniffiAbstractObject implements BreezSdkIn
11724
13132
  claimHtlcPayment(request: ClaimHtlcPaymentRequest, asyncOpts_?: {
11725
13133
  signal: AbortSignal;
11726
13134
  }): Promise<ClaimHtlcPaymentResponse>;
13135
+ /**
13136
+ * Deletes a contact by its ID.
13137
+ *
13138
+ * # Arguments
13139
+ *
13140
+ * * `id` - The ID of the contact to delete
13141
+ *
13142
+ * # Returns
13143
+ *
13144
+ * Success or an error
13145
+ */
13146
+ deleteContact(id: string, asyncOpts_?: {
13147
+ signal: AbortSignal;
13148
+ }): Promise<void>;
11727
13149
  deleteLightningAddress(asyncOpts_?: {
11728
13150
  signal: AbortSignal;
11729
13151
  }): Promise<void>;
@@ -11782,6 +13204,20 @@ export declare class BreezSdk extends UniffiAbstractObject implements BreezSdkIn
11782
13204
  getUserSettings(asyncOpts_?: {
11783
13205
  signal: AbortSignal;
11784
13206
  }): Promise<UserSettings>;
13207
+ /**
13208
+ * Lists contacts with optional pagination.
13209
+ *
13210
+ * # Arguments
13211
+ *
13212
+ * * `request` - The request containing optional pagination parameters
13213
+ *
13214
+ * # Returns
13215
+ *
13216
+ * A list of contacts or an error
13217
+ */
13218
+ listContacts(request: ListContactsRequest, asyncOpts_?: {
13219
+ signal: AbortSignal;
13220
+ }): Promise<Array<Contact>>;
11785
13221
  /**
11786
13222
  * List fiat currencies for which there is a known exchange rate,
11787
13223
  * sorted by the canonical name of the currency.
@@ -11922,6 +13358,20 @@ export declare class BreezSdk extends UniffiAbstractObject implements BreezSdkIn
11922
13358
  syncWallet(request: SyncWalletRequest, asyncOpts_?: {
11923
13359
  signal: AbortSignal;
11924
13360
  }): Promise<SyncWalletResponse>;
13361
+ /**
13362
+ * Updates an existing contact.
13363
+ *
13364
+ * # Arguments
13365
+ *
13366
+ * * `request` - The request containing the updated contact details
13367
+ *
13368
+ * # Returns
13369
+ *
13370
+ * The updated contact or an error
13371
+ */
13372
+ updateContact(request: UpdateContactRequest, asyncOpts_?: {
13373
+ signal: AbortSignal;
13374
+ }): Promise<Contact>;
11925
13375
  /**
11926
13376
  * Updates the user settings for the wallet.
11927
13377
  *
@@ -12582,6 +14032,221 @@ export declare class FiatServiceImpl extends UniffiAbstractObject implements Fia
12582
14032
  uniffiDestroy(): void;
12583
14033
  static instanceOf(obj: any): obj is FiatServiceImpl;
12584
14034
  }
14035
+ /**
14036
+ * Orchestrates passkey-based wallet creation and restore operations.
14037
+ *
14038
+ * This struct coordinates between the platform's passkey PRF provider and
14039
+ * Nostr relays to derive wallet mnemonics and manage wallet names.
14040
+ *
14041
+ * The Nostr identity (derived from the passkey's magic salt) is cached after
14042
+ * the first derivation so that subsequent calls to [`Passkey::list_wallet_names`]
14043
+ * and [`Passkey::store_wallet_name`] do not require additional PRF interactions.
14044
+ */
14045
+ export interface PasskeyInterface {
14046
+ /**
14047
+ * Derive a wallet for a given wallet name.
14048
+ *
14049
+ * Uses the passkey PRF to derive a 24-word BIP39 mnemonic from the wallet name
14050
+ * and returns it as a [`Wallet`] containing the seed and resolved name.
14051
+ * This works for both creating a new wallet and restoring an existing one.
14052
+ *
14053
+ * # Arguments
14054
+ * * `wallet_name` - A user-chosen wallet name (e.g., "personal", "business").
14055
+ * If `None`, defaults to [`DEFAULT_WALLET_NAME`].
14056
+ */
14057
+ getWallet(walletName: string | undefined, asyncOpts_?: {
14058
+ signal: AbortSignal;
14059
+ }): Promise<Wallet>;
14060
+ /**
14061
+ * Check if passkey PRF is available on this device.
14062
+ *
14063
+ * Delegates to the platform's `PasskeyPrfProvider` implementation.
14064
+ */
14065
+ isAvailable(asyncOpts_?: {
14066
+ signal: AbortSignal;
14067
+ }): Promise<boolean>;
14068
+ /**
14069
+ * List all wallet names published to Nostr for this passkey's identity.
14070
+ *
14071
+ * Queries Nostr relays for all wallet names associated with the Nostr identity
14072
+ * derived from this passkey. Requires 1 PRF call.
14073
+ */
14074
+ listWalletNames(asyncOpts_?: {
14075
+ signal: AbortSignal;
14076
+ }): Promise<Array<string>>;
14077
+ /**
14078
+ * Publish a wallet name to Nostr relays for this passkey's identity.
14079
+ *
14080
+ * Idempotent: if the wallet name already exists, it is not published again.
14081
+ * Requires 1 PRF call.
14082
+ *
14083
+ * # Arguments
14084
+ * * `wallet_name` - A user-chosen wallet name (e.g., "personal", "business")
14085
+ */
14086
+ storeWalletName(walletName: string, asyncOpts_?: {
14087
+ signal: AbortSignal;
14088
+ }): Promise<void>;
14089
+ }
14090
+ /**
14091
+ * Orchestrates passkey-based wallet creation and restore operations.
14092
+ *
14093
+ * This struct coordinates between the platform's passkey PRF provider and
14094
+ * Nostr relays to derive wallet mnemonics and manage wallet names.
14095
+ *
14096
+ * The Nostr identity (derived from the passkey's magic salt) is cached after
14097
+ * the first derivation so that subsequent calls to [`Passkey::list_wallet_names`]
14098
+ * and [`Passkey::store_wallet_name`] do not require additional PRF interactions.
14099
+ */
14100
+ export declare class Passkey extends UniffiAbstractObject implements PasskeyInterface {
14101
+ readonly [uniffiTypeNameSymbol] = "Passkey";
14102
+ readonly [destructorGuardSymbol]: UniffiRustArcPtr;
14103
+ readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer;
14104
+ /**
14105
+ * Create a new `Passkey` instance.
14106
+ *
14107
+ * # Arguments
14108
+ * * `prf_provider` - Platform implementation of passkey PRF operations
14109
+ * * `relay_config` - Optional configuration for Nostr relay connections (uses default if None)
14110
+ */
14111
+ constructor(prfProvider: PasskeyPrfProvider, relayConfig: NostrRelayConfig | undefined);
14112
+ /**
14113
+ * Derive a wallet for a given wallet name.
14114
+ *
14115
+ * Uses the passkey PRF to derive a 24-word BIP39 mnemonic from the wallet name
14116
+ * and returns it as a [`Wallet`] containing the seed and resolved name.
14117
+ * This works for both creating a new wallet and restoring an existing one.
14118
+ *
14119
+ * # Arguments
14120
+ * * `wallet_name` - A user-chosen wallet name (e.g., "personal", "business").
14121
+ * If `None`, defaults to [`DEFAULT_WALLET_NAME`].
14122
+ */
14123
+ getWallet(walletName: string | undefined, asyncOpts_?: {
14124
+ signal: AbortSignal;
14125
+ }): Promise<Wallet>;
14126
+ /**
14127
+ * Check if passkey PRF is available on this device.
14128
+ *
14129
+ * Delegates to the platform's `PasskeyPrfProvider` implementation.
14130
+ */
14131
+ isAvailable(asyncOpts_?: {
14132
+ signal: AbortSignal;
14133
+ }): Promise<boolean>;
14134
+ /**
14135
+ * List all wallet names published to Nostr for this passkey's identity.
14136
+ *
14137
+ * Queries Nostr relays for all wallet names associated with the Nostr identity
14138
+ * derived from this passkey. Requires 1 PRF call.
14139
+ */
14140
+ listWalletNames(asyncOpts_?: {
14141
+ signal: AbortSignal;
14142
+ }): Promise<Array<string>>;
14143
+ /**
14144
+ * Publish a wallet name to Nostr relays for this passkey's identity.
14145
+ *
14146
+ * Idempotent: if the wallet name already exists, it is not published again.
14147
+ * Requires 1 PRF call.
14148
+ *
14149
+ * # Arguments
14150
+ * * `wallet_name` - A user-chosen wallet name (e.g., "personal", "business")
14151
+ */
14152
+ storeWalletName(walletName: string, asyncOpts_?: {
14153
+ signal: AbortSignal;
14154
+ }): Promise<void>;
14155
+ /**
14156
+ * {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
14157
+ */
14158
+ uniffiDestroy(): void;
14159
+ static instanceOf(obj: any): obj is Passkey;
14160
+ }
14161
+ /**
14162
+ * Trait for passkey PRF (Pseudo-Random Function) operations.
14163
+ *
14164
+ * Platforms must implement this trait to provide passkey PRF functionality.
14165
+ * The implementation is responsible for:
14166
+ * - Authenticating the user via platform-specific passkey APIs (`WebAuthn`, native passkey managers)
14167
+ * - Evaluating the PRF extension with the provided salt
14168
+ * - Returning the 32-byte PRF output
14169
+ */
14170
+ export interface PasskeyPrfProvider {
14171
+ /**
14172
+ * Derive a 32-byte seed from passkey PRF with the given salt.
14173
+ *
14174
+ * The platform authenticates the user via passkey and evaluates the PRF extension.
14175
+ * The salt is used as input to the PRF to derive a deterministic output.
14176
+ *
14177
+ * # Arguments
14178
+ * * `salt` - The salt string to use for PRF evaluation
14179
+ *
14180
+ * # Returns
14181
+ * * `Ok(Vec<u8>)` - The 32-byte PRF output
14182
+ * * `Err(PasskeyPrfError)` - If authentication fails or PRF is not supported
14183
+ */
14184
+ derivePrfSeed(salt: string, asyncOpts_?: {
14185
+ signal: AbortSignal;
14186
+ }): Promise<ArrayBuffer>;
14187
+ /**
14188
+ * Check if a PRF-capable passkey is available on this device.
14189
+ *
14190
+ * This allows applications to gracefully degrade if passkey PRF is not supported.
14191
+ *
14192
+ * # Returns
14193
+ * * `Ok(true)` - PRF-capable passkey is available
14194
+ * * `Ok(false)` - No PRF-capable passkey available
14195
+ * * `Err(PasskeyPrfError)` - If the check fails
14196
+ */
14197
+ isPrfAvailable(asyncOpts_?: {
14198
+ signal: AbortSignal;
14199
+ }): Promise<boolean>;
14200
+ }
14201
+ /**
14202
+ * Trait for passkey PRF (Pseudo-Random Function) operations.
14203
+ *
14204
+ * Platforms must implement this trait to provide passkey PRF functionality.
14205
+ * The implementation is responsible for:
14206
+ * - Authenticating the user via platform-specific passkey APIs (`WebAuthn`, native passkey managers)
14207
+ * - Evaluating the PRF extension with the provided salt
14208
+ * - Returning the 32-byte PRF output
14209
+ */
14210
+ export declare class PasskeyPrfProviderImpl extends UniffiAbstractObject implements PasskeyPrfProvider {
14211
+ readonly [uniffiTypeNameSymbol] = "PasskeyPrfProviderImpl";
14212
+ readonly [destructorGuardSymbol]: UniffiRustArcPtr;
14213
+ readonly [pointerLiteralSymbol]: UnsafeMutableRawPointer;
14214
+ private constructor();
14215
+ /**
14216
+ * Derive a 32-byte seed from passkey PRF with the given salt.
14217
+ *
14218
+ * The platform authenticates the user via passkey and evaluates the PRF extension.
14219
+ * The salt is used as input to the PRF to derive a deterministic output.
14220
+ *
14221
+ * # Arguments
14222
+ * * `salt` - The salt string to use for PRF evaluation
14223
+ *
14224
+ * # Returns
14225
+ * * `Ok(Vec<u8>)` - The 32-byte PRF output
14226
+ * * `Err(PasskeyPrfError)` - If authentication fails or PRF is not supported
14227
+ */
14228
+ derivePrfSeed(salt: string, asyncOpts_?: {
14229
+ signal: AbortSignal;
14230
+ }): Promise<ArrayBuffer>;
14231
+ /**
14232
+ * Check if a PRF-capable passkey is available on this device.
14233
+ *
14234
+ * This allows applications to gracefully degrade if passkey PRF is not supported.
14235
+ *
14236
+ * # Returns
14237
+ * * `Ok(true)` - PRF-capable passkey is available
14238
+ * * `Ok(false)` - No PRF-capable passkey available
14239
+ * * `Err(PasskeyPrfError)` - If the check fails
14240
+ */
14241
+ isPrfAvailable(asyncOpts_?: {
14242
+ signal: AbortSignal;
14243
+ }): Promise<boolean>;
14244
+ /**
14245
+ * {@inheritDoc uniffi-bindgen-react-native#UniffiAbstractObject.uniffiDestroy}
14246
+ */
14247
+ uniffiDestroy(): void;
14248
+ static instanceOf(obj: any): obj is PasskeyPrfProviderImpl;
14249
+ }
12585
14250
  /**
12586
14251
  * This interface is used to observe outgoing payments before Lightning, Spark and onchain Bitcoin payments.
12587
14252
  * If the implementation returns an error, the payment is cancelled.
@@ -13015,6 +14680,31 @@ export interface Storage {
13015
14680
  setLnurlMetadata(metadata: Array<SetLnurlMetadataItem>, asyncOpts_?: {
13016
14681
  signal: AbortSignal;
13017
14682
  }): Promise<void>;
14683
+ /**
14684
+ * Lists contacts from storage with optional pagination
14685
+ */
14686
+ listContacts(request: ListContactsRequest, asyncOpts_?: {
14687
+ signal: AbortSignal;
14688
+ }): Promise<Array<Contact>>;
14689
+ /**
14690
+ * Gets a single contact by its ID
14691
+ */
14692
+ getContact(id: string, asyncOpts_?: {
14693
+ signal: AbortSignal;
14694
+ }): Promise<Contact>;
14695
+ /**
14696
+ * Inserts or updates a contact in storage (upsert by id).
14697
+ * Preserves `created_at` on update.
14698
+ */
14699
+ insertContact(contact: Contact, asyncOpts_?: {
14700
+ signal: AbortSignal;
14701
+ }): Promise<void>;
14702
+ /**
14703
+ * Deletes a contact by its ID
14704
+ */
14705
+ deleteContact(id: string, asyncOpts_?: {
14706
+ signal: AbortSignal;
14707
+ }): Promise<void>;
13018
14708
  addOutgoingChange(record: UnversionedRecordChange, asyncOpts_?: {
13019
14709
  signal: AbortSignal;
13020
14710
  }): Promise</*u64*/ bigint>;
@@ -13222,6 +14912,31 @@ export declare class StorageImpl extends UniffiAbstractObject implements Storage
13222
14912
  setLnurlMetadata(metadata: Array<SetLnurlMetadataItem>, asyncOpts_?: {
13223
14913
  signal: AbortSignal;
13224
14914
  }): Promise<void>;
14915
+ /**
14916
+ * Lists contacts from storage with optional pagination
14917
+ */
14918
+ listContacts(request: ListContactsRequest, asyncOpts_?: {
14919
+ signal: AbortSignal;
14920
+ }): Promise<Array<Contact>>;
14921
+ /**
14922
+ * Gets a single contact by its ID
14923
+ */
14924
+ getContact(id: string, asyncOpts_?: {
14925
+ signal: AbortSignal;
14926
+ }): Promise<Contact>;
14927
+ /**
14928
+ * Inserts or updates a contact in storage (upsert by id).
14929
+ * Preserves `created_at` on update.
14930
+ */
14931
+ insertContact(contact: Contact, asyncOpts_?: {
14932
+ signal: AbortSignal;
14933
+ }): Promise<void>;
14934
+ /**
14935
+ * Deletes a contact by its ID
14936
+ */
14937
+ deleteContact(id: string, asyncOpts_?: {
14938
+ signal: AbortSignal;
14939
+ }): Promise<void>;
13225
14940
  addOutgoingChange(record: UnversionedRecordChange, asyncOpts_?: {
13226
14941
  signal: AbortSignal;
13227
14942
  }): Promise</*u64*/ bigint>;
@@ -13513,6 +15228,13 @@ declare function uniffiEnsureInitialized(): void;
13513
15228
  declare const _default: Readonly<{
13514
15229
  initialize: typeof uniffiEnsureInitialized;
13515
15230
  converters: {
15231
+ FfiConverterTypeAddContactRequest: {
15232
+ read(from: RustBuffer): AddContactRequest;
15233
+ write(value: AddContactRequest, into: RustBuffer): void;
15234
+ allocationSize(value: AddContactRequest): number;
15235
+ lift(value: UniffiByteArray): AddContactRequest;
15236
+ lower(value: AddContactRequest): UniffiByteArray;
15237
+ };
13516
15238
  FfiConverterTypeAesSuccessActionData: {
13517
15239
  read(from: RustBuffer): AesSuccessActionData;
13518
15240
  write(value: AesSuccessActionData, into: RustBuffer): void;
@@ -13746,6 +15468,13 @@ declare const _default: Readonly<{
13746
15468
  lift(value: UniffiByteArray): ConnectWithSignerRequest;
13747
15469
  lower(value: ConnectWithSignerRequest): UniffiByteArray;
13748
15470
  };
15471
+ FfiConverterTypeContact: {
15472
+ read(from: RustBuffer): Contact;
15473
+ write(value: Contact, into: RustBuffer): void;
15474
+ allocationSize(value: Contact): number;
15475
+ lift(value: UniffiByteArray): Contact;
15476
+ lower(value: Contact): UniffiByteArray;
15477
+ };
13749
15478
  FfiConverterTypeConversionDetails: {
13750
15479
  read(from: RustBuffer): ConversionDetails;
13751
15480
  write(value: ConversionDetails, into: RustBuffer): void;
@@ -14112,6 +15841,13 @@ declare const _default: Readonly<{
14112
15841
  lift(value: UniffiByteArray): LightningAddressInfo;
14113
15842
  lower(value: LightningAddressInfo): UniffiByteArray;
14114
15843
  };
15844
+ FfiConverterTypeListContactsRequest: {
15845
+ read(from: RustBuffer): ListContactsRequest;
15846
+ write(value: ListContactsRequest, into: RustBuffer): void;
15847
+ allocationSize(value: ListContactsRequest): number;
15848
+ lift(value: UniffiByteArray): ListContactsRequest;
15849
+ lower(value: ListContactsRequest): UniffiByteArray;
15850
+ };
14115
15851
  FfiConverterTypeListFiatCurrenciesResponse: {
14116
15852
  read(from: RustBuffer): ListFiatCurrenciesResponse;
14117
15853
  write(value: ListFiatCurrenciesResponse, into: RustBuffer): void;
@@ -14301,6 +16037,13 @@ declare const _default: Readonly<{
14301
16037
  lift(value: UniffiByteArray): Network;
14302
16038
  lower(value: Network): UniffiByteArray;
14303
16039
  };
16040
+ FfiConverterTypeNostrRelayConfig: {
16041
+ read(from: RustBuffer): NostrRelayConfig;
16042
+ write(value: NostrRelayConfig, into: RustBuffer): void;
16043
+ allocationSize(value: NostrRelayConfig): number;
16044
+ lift(value: UniffiByteArray): NostrRelayConfig;
16045
+ lower(value: NostrRelayConfig): UniffiByteArray;
16046
+ };
14304
16047
  FfiConverterTypeOnchainConfirmationSpeed: {
14305
16048
  read(from: RustBuffer): OnchainConfirmationSpeed;
14306
16049
  write(value: OnchainConfirmationSpeed, into: RustBuffer): void;
@@ -14336,6 +16079,8 @@ declare const _default: Readonly<{
14336
16079
  lift(value: UniffiByteArray): OutgoingChange;
14337
16080
  lower(value: OutgoingChange): UniffiByteArray;
14338
16081
  };
16082
+ FfiConverterTypePasskey: FfiConverterObject<PasskeyInterface>;
16083
+ FfiConverterTypePasskeyPrfProvider: FfiConverterObjectWithCallbacks<PasskeyPrfProvider>;
14339
16084
  FfiConverterTypePayment: {
14340
16085
  read(from: RustBuffer): Payment;
14341
16086
  write(value: Payment, into: RustBuffer): void;
@@ -14796,6 +16541,13 @@ declare const _default: Readonly<{
14796
16541
  lift(value: UniffiByteArray): UnversionedRecordChange;
14797
16542
  lower(value: UnversionedRecordChange): UniffiByteArray;
14798
16543
  };
16544
+ FfiConverterTypeUpdateContactRequest: {
16545
+ read(from: RustBuffer): UpdateContactRequest;
16546
+ write(value: UpdateContactRequest, into: RustBuffer): void;
16547
+ allocationSize(value: UpdateContactRequest): number;
16548
+ lift(value: UniffiByteArray): UpdateContactRequest;
16549
+ lower(value: UpdateContactRequest): UniffiByteArray;
16550
+ };
14799
16551
  FfiConverterTypeUpdateDepositPayload: {
14800
16552
  read(from: RustBuffer): UpdateDepositPayload;
14801
16553
  write(value: UpdateDepositPayload, into: RustBuffer): void;
@@ -14831,6 +16583,13 @@ declare const _default: Readonly<{
14831
16583
  lift(value: UniffiByteArray): Utxo;
14832
16584
  lower(value: Utxo): UniffiByteArray;
14833
16585
  };
16586
+ FfiConverterTypeWallet: {
16587
+ read(from: RustBuffer): Wallet;
16588
+ write(value: Wallet, into: RustBuffer): void;
16589
+ allocationSize(value: Wallet): number;
16590
+ lift(value: UniffiByteArray): Wallet;
16591
+ lower(value: Wallet): UniffiByteArray;
16592
+ };
14834
16593
  FfiConverterTypeu128: {
14835
16594
  lift(value: Uint8Array<ArrayBufferLike>): bigint;
14836
16595
  lower(value: bigint): Uint8Array<ArrayBufferLike>;