dsh-mobile 0.1.4 → 0.2.1

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/lib/index.d.mts CHANGED
@@ -284,6 +284,10 @@ interface ResolvedGatewayConfig {
284
284
  readonly instanceId: string;
285
285
  readonly pairingCaFile?: string;
286
286
  readonly tls: TlsConfig;
287
+ /** Whether the public hop is HTTPS, even when a trusted loopback proxy terminates TLS. */
288
+ readonly publicTls: boolean;
289
+ /** LAN discovery is disabled for private proxy listeners such as Funnel ingress. */
290
+ readonly discovery: boolean;
287
291
  readonly pairingTtlMs: number;
288
292
  readonly deviceTtlMs: number;
289
293
  readonly sessionTtlMs: number;
@@ -483,12 +487,12 @@ declare class MobileAccessService extends Service {
483
487
  /** Return the active local generation signal for gateway cancellation wiring. */
484
488
  signal(id: string): AbortSignal | undefined;
485
489
  /** Read a local client entry after validating that it remains inside its directory. */
486
- readClientFile(id: string, kind: 'script' | 'style'): Promise<{
490
+ readClientFile(id: string, kind: 'script' | 'style', signal?: AbortSignal): Promise<{
487
491
  readonly body: Buffer;
488
492
  readonly digest: string;
489
493
  }>;
490
494
  /** Read a local static asset after containment and size checks. */
491
- readAsset(id: string, assetPath: string): Promise<{
495
+ readAsset(id: string, assetPath: string, signal?: AbortSignal): Promise<{
492
496
  readonly body: Buffer;
493
497
  readonly digest: string;
494
498
  readonly name: string;
@@ -516,6 +520,7 @@ declare class MobileAccessGateway {
516
520
  readonly config: ResolvedGatewayConfig;
517
521
  private readonly extensions?;
518
522
  readonly access: AccessController;
523
+ private readonly listenerTlsEnabled;
519
524
  private readonly tlsEnabled;
520
525
  private policy;
521
526
  private server;
@@ -565,7 +570,7 @@ declare class MobileAccessGateway {
565
570
  private readUpgradeResponse;
566
571
  private handleUpgrade;
567
572
  /** Loopback-only DSH WebServer route for opening pairing and managing devices. */
568
- localAdminRoute(): WebRoute;
573
+ localAdminRoute(prefix?: string): WebRoute;
569
574
  /** Close listeners and abort all accepted work before resolving teardown. */
570
575
  close(): Promise<void>;
571
576
  private performClose;