@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.
@@ -1141,10 +1141,11 @@ export type ConnectWithPasskeyRequest = {
1141
1141
  */
1142
1142
  label: string | undefined;
1143
1143
  /**
1144
- * Optional credential IDs to restrict the silent sign-in
1145
- * attempt to (reauthentication path). See
1146
- * [`SignInRequest::allow_credentials`]. Ignored on the fallback
1147
- * registration path.
1144
+ * Optional credential IDs to restrict the sign-in attempt to
1145
+ * (reauthentication path). A non-empty list runs the modal sign-in
1146
+ * rather than the immediate probe (a pin means a credential is already
1147
+ * known). See [`SignInRequest::allow_credentials`]. Ignored on the
1148
+ * fallback registration path.
1148
1149
  */
1149
1150
  allowCredentials: Array<ArrayBuffer> | undefined;
1150
1151
  /**
@@ -1181,10 +1182,17 @@ export declare const ConnectWithPasskeyRequest: Readonly<{
1181
1182
  * registered, when the provider surfaces it. The register path also
1182
1183
  * populates the attestation fields (`aaguid`, `backup_eligible`); the
1183
1184
  * sign-in path sets only `credential_id`.
1185
+ *
1186
+ * `labels` is the user's discovered label set when `request.label` was
1187
+ * `None` (the returning-user multi-wallet case): `wallet` is the default
1188
+ * label, and a host showing more than one entry lets the user pick
1189
+ * another via [`PasskeyClient::sign_in`]. Empty on the register path (a
1190
+ * new user has no other labels) and when a specific label was requested.
1184
1191
  */
1185
1192
  export type ConnectWithPasskeyResponse = {
1186
1193
  wallet: Wallet;
1187
1194
  credential: PasskeyCredential | undefined;
1195
+ labels: Array<string>;
1188
1196
  };
1189
1197
  /**
1190
1198
  * Generated factory for {@link ConnectWithPasskeyResponse} record objects.
@@ -20032,8 +20040,7 @@ export interface PasskeyClientInterface {
20032
20040
  }): Promise<PasskeyAvailability>;
20033
20041
  /**
20034
20042
  * Single-CTA onboarding: silent sign-in, falling through to
20035
- * registration when no credential exists on the device. The returned
20036
- * [`ConnectFlow`] tells the caller which path ran.
20043
+ * registration when no credential exists on the device.
20037
20044
  *
20038
20045
  * The silent sign-in pins `prefer_immediately_available_credentials =
20039
20046
  * true` regardless of [`SignInRequest`]: the fallback depends on the OS
@@ -20042,11 +20049,12 @@ export interface PasskeyClientInterface {
20042
20049
  * register path; every other error (`Cancel`, `Timeout`, ...) propagates
20043
20050
  * unchanged.
20044
20051
  *
20045
- * Mobile-only: meant for iOS 18+ / Android 9+ where
20046
- * `preferImmediatelyAvailableCredentials` is honored. The web
20047
- * equivalent (`mediation: 'immediate'`) is not yet stable
20048
- * cross-browser, so this is not surfaced on WASM; web hosts call
20049
- * [`Self::sign_in`] and catch `CredentialNotFound` themselves.
20052
+ * On WASM the silent sign-in maps to `WebAuthn` `uiMode: 'immediate'`
20053
+ * where the browser advertises it. Web hosts gate on the browser's
20054
+ * immediate-mediation capability (the WASM client surfaces it):
20055
+ * without it the probe shows the standard picker and a dismiss is a
20056
+ * cancel, not `CredentialNotFound`, so it never reaches register.
20057
+ * Present an explicit create / sign-in choice there instead.
20050
20058
  */
20051
20059
  connectWithPasskey(request: ConnectWithPasskeyRequest, asyncOpts_?: {
20052
20060
  signal: AbortSignal;
@@ -20111,8 +20119,7 @@ export declare class PasskeyClient extends UniffiAbstractObject implements Passk
20111
20119
  }): Promise<PasskeyAvailability>;
20112
20120
  /**
20113
20121
  * Single-CTA onboarding: silent sign-in, falling through to
20114
- * registration when no credential exists on the device. The returned
20115
- * [`ConnectFlow`] tells the caller which path ran.
20122
+ * registration when no credential exists on the device.
20116
20123
  *
20117
20124
  * The silent sign-in pins `prefer_immediately_available_credentials =
20118
20125
  * true` regardless of [`SignInRequest`]: the fallback depends on the OS
@@ -20121,11 +20128,12 @@ export declare class PasskeyClient extends UniffiAbstractObject implements Passk
20121
20128
  * register path; every other error (`Cancel`, `Timeout`, ...) propagates
20122
20129
  * unchanged.
20123
20130
  *
20124
- * Mobile-only: meant for iOS 18+ / Android 9+ where
20125
- * `preferImmediatelyAvailableCredentials` is honored. The web
20126
- * equivalent (`mediation: 'immediate'`) is not yet stable
20127
- * cross-browser, so this is not surfaced on WASM; web hosts call
20128
- * [`Self::sign_in`] and catch `CredentialNotFound` themselves.
20131
+ * On WASM the silent sign-in maps to `WebAuthn` `uiMode: 'immediate'`
20132
+ * where the browser advertises it. Web hosts gate on the browser's
20133
+ * immediate-mediation capability (the WASM client surfaces it):
20134
+ * without it the probe shows the standard picker and a dismiss is a
20135
+ * cancel, not `CredentialNotFound`, so it never reaches register.
20136
+ * Present an explicit create / sign-in choice there instead.
20129
20137
  */
20130
20138
  connectWithPasskey(request: ConnectWithPasskeyRequest, asyncOpts_?: {
20131
20139
  signal: AbortSignal;