@estuary-ai/sdk 0.5.0 → 0.6.0

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/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2026 estuary.ai
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) 2026 estuary.ai
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/dist/index.d.mts CHANGED
@@ -91,6 +91,17 @@ interface QuotaExceededData {
91
91
  remaining: number;
92
92
  tier: string;
93
93
  }
94
+ /**
95
+ * Emitted when the server ends the session due to inactivity (no conversation
96
+ * activity for the server's idle timeout). The server disconnects the socket
97
+ * right after; the SDK does not auto-reconnect from this — call connect()
98
+ * again on explicit user intent to resume.
99
+ */
100
+ interface SessionTimeoutData {
101
+ reason: string;
102
+ idleSeconds: number;
103
+ timeoutSeconds: number;
104
+ }
94
105
  interface LiveKitTokenResponse {
95
106
  token: string;
96
107
  url: string;
@@ -208,6 +219,7 @@ type EstuaryEventMap = {
208
219
  error: (error: Error) => void;
209
220
  authError: (error: string) => void;
210
221
  quotaExceeded: (data: QuotaExceededData) => void;
222
+ sessionTimeout: (data: SessionTimeoutData) => void;
211
223
  cameraCaptureRequest: (request: CameraCaptureRequest) => void;
212
224
  characterAction: (action: CharacterAction) => void;
213
225
  voiceStarted: () => void;
@@ -454,6 +466,13 @@ declare class EstuaryClient extends TypedEventEmitter<EstuaryEventMap> {
454
466
  startVoice(): Promise<void>;
455
467
  /** Stop voice input */
456
468
  stopVoice(): Promise<void>;
469
+ /**
470
+ * Tear down voice state without requiring an active manager — used when the
471
+ * server ends the session out from under us. Unlike stopVoice(), this also
472
+ * disposes a manager whose transport already died (LiveKit room deleted →
473
+ * isActive is false but the local mic track was never released).
474
+ */
475
+ private releaseVoice;
457
476
  /** Toggle microphone mute */
458
477
  toggleMute(): void;
459
478
  /** Whether the microphone is muted */
package/dist/index.d.ts CHANGED
@@ -91,6 +91,17 @@ interface QuotaExceededData {
91
91
  remaining: number;
92
92
  tier: string;
93
93
  }
94
+ /**
95
+ * Emitted when the server ends the session due to inactivity (no conversation
96
+ * activity for the server's idle timeout). The server disconnects the socket
97
+ * right after; the SDK does not auto-reconnect from this — call connect()
98
+ * again on explicit user intent to resume.
99
+ */
100
+ interface SessionTimeoutData {
101
+ reason: string;
102
+ idleSeconds: number;
103
+ timeoutSeconds: number;
104
+ }
94
105
  interface LiveKitTokenResponse {
95
106
  token: string;
96
107
  url: string;
@@ -208,6 +219,7 @@ type EstuaryEventMap = {
208
219
  error: (error: Error) => void;
209
220
  authError: (error: string) => void;
210
221
  quotaExceeded: (data: QuotaExceededData) => void;
222
+ sessionTimeout: (data: SessionTimeoutData) => void;
211
223
  cameraCaptureRequest: (request: CameraCaptureRequest) => void;
212
224
  characterAction: (action: CharacterAction) => void;
213
225
  voiceStarted: () => void;
@@ -454,6 +466,13 @@ declare class EstuaryClient extends TypedEventEmitter<EstuaryEventMap> {
454
466
  startVoice(): Promise<void>;
455
467
  /** Stop voice input */
456
468
  stopVoice(): Promise<void>;
469
+ /**
470
+ * Tear down voice state without requiring an active manager — used when the
471
+ * server ends the session out from under us. Unlike stopVoice(), this also
472
+ * disposes a manager whose transport already died (LiveKit room deleted →
473
+ * isActive is false but the local mic track was never released).
474
+ */
475
+ private releaseVoice;
457
476
  /** Toggle microphone mute */
458
477
  toggleMute(): void;
459
478
  /** Whether the microphone is muted */