@rdlabo/ionic-angular-kit 21.4.6 → 21.4.8

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": "@rdlabo/ionic-angular-kit",
3
- "version": "21.4.6",
3
+ "version": "21.4.8",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/rdlabo-team/ionic-angular-library.git"
@@ -434,6 +434,8 @@ declare class OfflineSessionService {
434
434
  activateSession(userId: number, scopeIds: readonly number[], authSubject: string | null): Promise<void>;
435
435
  activateSession(userId: number, scopeIds: readonly number[], authSubject: string | null, lease: OfflineSessionTransitionLease): Promise<boolean>;
436
436
  clearActiveSession(): Promise<void>;
437
+ /** Immediately revoke local and remote runtime access while durable cleanup is pending. */
438
+ revokeAccess(): void;
437
439
  /** Disable remote pull/replay eligibility while retaining the verified local manifest. */
438
440
  suspendRemoteSession(): Promise<void>;
439
441
  /**
@@ -694,6 +696,8 @@ declare class OfflineSyncService {
694
696
  /** Restores local outbox visibility without enabling pull or replay transport. */
695
697
  refreshLocalSession(): Promise<void>;
696
698
  resetSession(): Promise<void>;
699
+ /** Synchronously invalidate in-flight enqueue and transport work owned by the current session. */
700
+ revokeSession(): void;
697
701
  enqueue<T>(request: EnqueueOfflineCommand<T>, options?: {
698
702
  flush?: boolean;
699
703
  }): Promise<string>;
@@ -4,7 +4,7 @@ import { ModalOptions, PopoverOptions, ToastOptions, LoadingOptions, AlertContro
4
4
  import { PluginListenerHandle } from '@capacitor/core';
5
5
  import { Observable } from 'rxjs';
6
6
  import { RouterStateSnapshot, UrlTree, CanActivateFn } from '@angular/router';
7
- import { HttpRequest, HttpResponse, HttpErrorResponse, HttpEvent, HttpInterceptorFn } from '@angular/common/http';
7
+ import { HttpContextToken, HttpRequest, HttpResponse, HttpErrorResponse, HttpEvent, HttpInterceptorFn } from '@angular/common/http';
8
8
  import { ImpactStyle } from '@capacitor/haptics';
9
9
 
10
10
  /**
@@ -907,6 +907,12 @@ interface KitAuthRecoveryConfig {
907
907
  isUnavailableError?(error: unknown): boolean;
908
908
  /** Optional online-recovery lifecycle used after local-only route access. */
909
909
  remoteRecovery?: {
910
+ /**
911
+ * Delay before probing authentication again while local access remains active.
912
+ *
913
+ * @defaultValue 30000
914
+ */
915
+ retryDelayMs?: number;
910
916
  availability(): Observable<boolean>;
911
917
  reauthenticate(lease: KitAuthAccessLease): Promise<KitRemoteAccessRecovery | false>;
912
918
  };
@@ -949,6 +955,7 @@ declare class KitAuthAccessService {
949
955
  /** Coordinates single-flight recovery from local-only mode to remote access. */
950
956
  declare class KitAuthRecoveryService {
951
957
  #private;
958
+ constructor();
952
959
  /** Subscribe to the configured remote-availability stream once. */
953
960
  initialize(): void;
954
961
  /** Run one ordered remote recovery attempt, coalescing concurrent triggers. */
@@ -1147,6 +1154,17 @@ declare const kitRequireConfirmingGuard: CanActivateFn;
1147
1154
  */
1148
1155
  declare const kitRequireAuthorizedGuard: CanActivateFn;
1149
1156
 
1157
+ /**
1158
+ * Marks the narrowly scoped credential-exchange request that establishes remote access.
1159
+ *
1160
+ * @remarks
1161
+ * When shared auth access enforcement is enabled, the application starts in `none` (or may be
1162
+ * recovering from `local`) and therefore cannot make ordinary authenticated requests. The one
1163
+ * server request that verifies the current provider credential must set this context token. It
1164
+ * still runs the complete header, retry, denial, and error pipeline; only the pre-existing
1165
+ * `remote` access requirement is deferred until that exchange succeeds.
1166
+ */
1167
+ declare const KIT_AUTH_BOOTSTRAP_REQUEST: HttpContextToken<boolean>;
1150
1168
  /**
1151
1169
  * True when the error is the fleet maintenance short-circuit (`503` + body `code: 'MAINTENANCE'`).
1152
1170
  *
@@ -1711,5 +1729,5 @@ type ComponentPropsType<T> = {
1711
1729
  [K in keyof T]: InputSignal<T[K]> | InputSignalWithTransform<T[K], any>;
1712
1730
  };
1713
1731
 
1714
- export { KIT_AUTH_CONFIG, KIT_AUTH_RECOVERY_CONFIG, KIT_HTTP_CONFIG, KIT_LAST_AUTH_EMAIL_KEY, KIT_OVERLAY_CONFIG, KIT_REALTIME_CLIENT_ID, KIT_THEME_STORAGE_KEY, KitAuthAccessService, KitAuthInputDirective, KitAuthRecoveryService, KitLoadingController, KitMaintenanceController, KitOverlayController, KitRealtimeConnection, KitRealtimeLivenessWatchdog, KitReloadAlertController, KitStorageService, arrayConcatById, disableHandler, isExplicitAuthDenial, isMaintenanceError, kitAuthInterceptor, kitChangeEventDisabled, kitClearStoragePreservingKeys, kitCreateDidEnter, kitForgetEmail, kitImpact, kitIsValidEmail, kitKeyboardInit, kitPresentAuthFailedAlert, kitPresentLanguageActionSheet, kitRealtimeProtocols, kitRecallEmail, kitRememberEmail, kitRequireAuthorizedGuard, kitRequireConfirmingGuard, kitRequiredUnauthorizedGuard, mountViewModel, objectEqual, provideKitAuth, provideKitHttp, provideKitOverlay, toKitWebSocketUrl };
1732
+ export { KIT_AUTH_BOOTSTRAP_REQUEST, KIT_AUTH_CONFIG, KIT_AUTH_RECOVERY_CONFIG, KIT_HTTP_CONFIG, KIT_LAST_AUTH_EMAIL_KEY, KIT_OVERLAY_CONFIG, KIT_REALTIME_CLIENT_ID, KIT_THEME_STORAGE_KEY, KitAuthAccessService, KitAuthInputDirective, KitAuthRecoveryService, KitLoadingController, KitMaintenanceController, KitOverlayController, KitRealtimeConnection, KitRealtimeLivenessWatchdog, KitReloadAlertController, KitStorageService, arrayConcatById, disableHandler, isExplicitAuthDenial, isMaintenanceError, kitAuthInterceptor, kitChangeEventDisabled, kitClearStoragePreservingKeys, kitCreateDidEnter, kitForgetEmail, kitImpact, kitIsValidEmail, kitKeyboardInit, kitPresentAuthFailedAlert, kitPresentLanguageActionSheet, kitRealtimeProtocols, kitRecallEmail, kitRememberEmail, kitRequireAuthorizedGuard, kitRequireConfirmingGuard, kitRequiredUnauthorizedGuard, mountViewModel, objectEqual, provideKitAuth, provideKitHttp, provideKitOverlay, toKitWebSocketUrl };
1715
1733
  export type { ComponentPropsType, KitAlertCloseOptions, KitAlertConfirmOptions, KitAuthAccessLease, KitAuthAccessMode, KitAuthConfig, KitAuthFailedAlertOptions, KitAuthGuardState, KitAuthInputMode, KitAuthRecoveryConfig, KitAuthRedirects, KitAuthState, KitClearableStore, KitClientRealtimeEvent, KitEmailStore, KitHttpConfig, KitKeyboardAdjust, KitLabels, KitLanguageActionSheetOptions, KitLanguageOption, KitMaintenanceOptions, KitModalPresentOptions, KitOverlayConfig, KitRealtimeConnectionOptions, KitRealtimeEvent, KitRealtimeSocketTarget, KitReloadAlertOptions, KitRemoteAccessRecovery, ModalMetadata, ReactiveHost, ViewModelHost };