@breeztech/breez-sdk-spark-react-native 0.19.0 → 0.19.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@breeztech/breez-sdk-spark-react-native",
3
- "version": "0.19.0",
3
+ "version": "0.19.2",
4
4
  "description": "React Native bindings for the Breez SDK - Nodeless (Spark Implementation)",
5
5
  "source": "./src/index.tsx",
6
6
  "main": "./lib/commonjs/index.js",
@@ -209,7 +209,7 @@
209
209
  "version": "0.49.0"
210
210
  },
211
211
  "checksums": {
212
- "android": "8f4cc1d7ca3efd0c7bf737f02654dd5ce7f92d9af116cea77dc5be70ab08b4b9",
213
- "ios": "0a1c59f6bc32ce9e4f0f7c38f3d5ba96b92d3fe7627914f5c0be6bbe56b9c2b2"
212
+ "android": "27fd14ec552994c550ae390786108cb1c25affe9b5c664b714c41140296c1077",
213
+ "ios": "5131caa1ab496bf73b2ae8ac95d2321275956afe66a4f665ac5d5ec1dce28f84"
214
214
  }
215
215
  }
@@ -2976,10 +2976,11 @@ export type ConnectWithPasskeyRequest = {
2976
2976
  */
2977
2977
  label: string | undefined;
2978
2978
  /**
2979
- * Optional credential IDs to restrict the silent sign-in
2980
- * attempt to (reauthentication path). See
2981
- * [`SignInRequest::allow_credentials`]. Ignored on the fallback
2982
- * registration path.
2979
+ * Optional credential IDs to restrict the sign-in attempt to
2980
+ * (reauthentication path). A non-empty list runs the modal sign-in
2981
+ * rather than the immediate probe (a pin means a credential is already
2982
+ * known). See [`SignInRequest::allow_credentials`]. Ignored on the
2983
+ * fallback registration path.
2983
2984
  */
2984
2985
  allowCredentials: Array<ArrayBuffer> | undefined;
2985
2986
  /**
@@ -3067,10 +3068,17 @@ const FfiConverterTypeConnectWithPasskeyRequest = (() => {
3067
3068
  * registered, when the provider surfaces it. The register path also
3068
3069
  * populates the attestation fields (`aaguid`, `backup_eligible`); the
3069
3070
  * sign-in path sets only `credential_id`.
3071
+ *
3072
+ * `labels` is the user's discovered label set when `request.label` was
3073
+ * `None` (the returning-user multi-wallet case): `wallet` is the default
3074
+ * label, and a host showing more than one entry lets the user pick
3075
+ * another via [`PasskeyClient::sign_in`]. Empty on the register path (a
3076
+ * new user has no other labels) and when a specific label was requested.
3070
3077
  */
3071
3078
  export type ConnectWithPasskeyResponse = {
3072
3079
  wallet: Wallet;
3073
3080
  credential: PasskeyCredential | undefined;
3081
+ labels: Array<string>;
3074
3082
  };
3075
3083
 
3076
3084
  /**
@@ -3112,18 +3120,21 @@ const FfiConverterTypeConnectWithPasskeyResponse = (() => {
3112
3120
  return {
3113
3121
  wallet: FfiConverterTypeWallet.read(from),
3114
3122
  credential: FfiConverterOptionalTypePasskeyCredential.read(from),
3123
+ labels: FfiConverterArrayString.read(from),
3115
3124
  };
3116
3125
  }
3117
3126
  write(value: TypeName, into: RustBuffer): void {
3118
3127
  FfiConverterTypeWallet.write(value.wallet, into);
3119
3128
  FfiConverterOptionalTypePasskeyCredential.write(value.credential, into);
3129
+ FfiConverterArrayString.write(value.labels, into);
3120
3130
  }
3121
3131
  allocationSize(value: TypeName): number {
3122
3132
  return (
3123
3133
  FfiConverterTypeWallet.allocationSize(value.wallet) +
3124
3134
  FfiConverterOptionalTypePasskeyCredential.allocationSize(
3125
3135
  value.credential
3126
- )
3136
+ ) +
3137
+ FfiConverterArrayString.allocationSize(value.labels)
3127
3138
  );
3128
3139
  }
3129
3140
  }
@@ -38497,8 +38508,7 @@ export interface PasskeyClientInterface {
38497
38508
  }): /*throws*/ Promise<PasskeyAvailability>;
38498
38509
  /**
38499
38510
  * Single-CTA onboarding: silent sign-in, falling through to
38500
- * registration when no credential exists on the device. The returned
38501
- * [`ConnectFlow`] tells the caller which path ran.
38511
+ * registration when no credential exists on the device.
38502
38512
  *
38503
38513
  * The silent sign-in pins `prefer_immediately_available_credentials =
38504
38514
  * true` regardless of [`SignInRequest`]: the fallback depends on the OS
@@ -38507,11 +38517,12 @@ export interface PasskeyClientInterface {
38507
38517
  * register path; every other error (`Cancel`, `Timeout`, ...) propagates
38508
38518
  * unchanged.
38509
38519
  *
38510
- * Mobile-only: meant for iOS 18+ / Android 9+ where
38511
- * `preferImmediatelyAvailableCredentials` is honored. The web
38512
- * equivalent (`mediation: 'immediate'`) is not yet stable
38513
- * cross-browser, so this is not surfaced on WASM; web hosts call
38514
- * [`Self::sign_in`] and catch `CredentialNotFound` themselves.
38520
+ * On WASM the silent sign-in maps to `WebAuthn` `uiMode: 'immediate'`
38521
+ * where the browser advertises it. Web hosts gate on the browser's
38522
+ * immediate-mediation capability (the WASM client surfaces it):
38523
+ * without it the probe shows the standard picker and a dismiss is a
38524
+ * cancel, not `CredentialNotFound`, so it never reaches register.
38525
+ * Present an explicit create / sign-in choice there instead.
38515
38526
  */
38516
38527
  connectWithPasskey(
38517
38528
  request: ConnectWithPasskeyRequest,
@@ -38638,8 +38649,7 @@ export class PasskeyClient
38638
38649
 
38639
38650
  /**
38640
38651
  * Single-CTA onboarding: silent sign-in, falling through to
38641
- * registration when no credential exists on the device. The returned
38642
- * [`ConnectFlow`] tells the caller which path ran.
38652
+ * registration when no credential exists on the device.
38643
38653
  *
38644
38654
  * The silent sign-in pins `prefer_immediately_available_credentials =
38645
38655
  * true` regardless of [`SignInRequest`]: the fallback depends on the OS
@@ -38648,11 +38658,12 @@ export class PasskeyClient
38648
38658
  * register path; every other error (`Cancel`, `Timeout`, ...) propagates
38649
38659
  * unchanged.
38650
38660
  *
38651
- * Mobile-only: meant for iOS 18+ / Android 9+ where
38652
- * `preferImmediatelyAvailableCredentials` is honored. The web
38653
- * equivalent (`mediation: 'immediate'`) is not yet stable
38654
- * cross-browser, so this is not surfaced on WASM; web hosts call
38655
- * [`Self::sign_in`] and catch `CredentialNotFound` themselves.
38661
+ * On WASM the silent sign-in maps to `WebAuthn` `uiMode: 'immediate'`
38662
+ * where the browser advertises it. Web hosts gate on the browser's
38663
+ * immediate-mediation capability (the WASM client surfaces it):
38664
+ * without it the probe shows the standard picker and a dismiss is a
38665
+ * cancel, not `CredentialNotFound`, so it never reaches register.
38666
+ * Present an explicit create / sign-in choice there instead.
38656
38667
  */
38657
38668
  public async connectWithPasskey(
38658
38669
  request: ConnectWithPasskeyRequest,
@@ -47014,7 +47025,7 @@ function uniffiEnsureInitialized() {
47014
47025
  }
47015
47026
  if (
47016
47027
  nativeModule().ubrn_uniffi_breez_sdk_spark_checksum_method_passkeyclient_connect_with_passkey() !==
47017
- 47815
47028
+ 32814
47018
47029
  ) {
47019
47030
  throw new UniffiInternalError.ApiChecksumMismatch(
47020
47031
  'uniffi_breez_sdk_spark_checksum_method_passkeyclient_connect_with_passkey'