@bounded-sh/core 0.0.15 → 0.0.16

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.
@@ -1,8 +1,11 @@
1
+ import type { RequestOverrides } from './operations';
1
2
  export type LiveIntentOptions = {
2
3
  /** Per-call timeout (ms) for the HTTP request to the realtime worker. */
3
4
  timeoutMs?: number;
4
5
  /** Extra headers (advanced/testing). */
5
6
  headers?: Record<string, string>;
7
+ /** @internal Per-call auth override used by server WalletClient. */
8
+ _overrides?: RequestOverrides;
6
9
  /**
7
10
  * Fire-and-forget over the room socket without awaiting a server ack — lowest
8
11
  * latency, but a rejection (auth/policy deny, room gone) is NOT surfaced. Use
@@ -32,12 +32,18 @@ export declare class RealtimeStore {
32
32
  private idbDirtyKeys;
33
33
  private closed;
34
34
  private authToken;
35
+ private authPrincipalKey;
35
36
  private authenticating;
37
+ private suppressNextReconnect;
36
38
  init(): Promise<void>;
37
39
  private isServer;
38
40
  private tokenRefreshTimer;
39
41
  private refreshToken;
40
42
  private startTokenRefresh;
43
+ private ensureInitialized;
44
+ private ensureCurrentAuth;
45
+ private rekeySubscriptionsForPrincipal;
46
+ private applyAuthPrincipalChange;
41
47
  private initPromise;
42
48
  private ensureConnected;
43
49
  private connect;
@@ -85,6 +91,8 @@ export declare class RealtimeStore {
85
91
  private rejectAllPending;
86
92
  private setAllSubscriptionStatus;
87
93
  close(): void;
94
+ reconnectWithNewAuth(): Promise<void>;
88
95
  }
89
96
  export declare function getRealtimeStore(): RealtimeStore;
90
97
  export declare function resetRealtimeStore(): void;
98
+ export declare function reconnectRealtimeStoreWithNewAuth(): Promise<void>;