@voice-session/web 0.1.0 → 0.2.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/README.md +6 -17
- package/dist/index.cjs +6 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -7
- package/dist/index.d.ts +2 -7
- package/dist/index.js +6 -6
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -12,15 +12,10 @@ type RealtimeSessionEvents = {
|
|
|
12
12
|
error: Error;
|
|
13
13
|
level: number;
|
|
14
14
|
};
|
|
15
|
-
type
|
|
16
|
-
baseUrl: string;
|
|
17
|
-
clientToken: string;
|
|
18
|
-
};
|
|
19
|
-
type DirectSessionOptions = {
|
|
15
|
+
type RealtimeSessionOptions = {
|
|
20
16
|
url: string;
|
|
21
17
|
token: string;
|
|
22
18
|
};
|
|
23
|
-
type RealtimeSessionOptions = TokenSessionOptions | DirectSessionOptions;
|
|
24
19
|
type StartOptions = {
|
|
25
20
|
microphone?: boolean;
|
|
26
21
|
};
|
|
@@ -35,4 +30,4 @@ declare class RealtimeSession {
|
|
|
35
30
|
end(): Promise<void>;
|
|
36
31
|
}
|
|
37
32
|
|
|
38
|
-
export { type AgentState, type
|
|
33
|
+
export { type AgentState, type EventHandler, RealtimeSession, type RealtimeSessionEvents, type RealtimeSessionOptions, type StartOptions, type TranscriptEvent, type TranscriptRole };
|
package/dist/index.d.ts
CHANGED
|
@@ -12,15 +12,10 @@ type RealtimeSessionEvents = {
|
|
|
12
12
|
error: Error;
|
|
13
13
|
level: number;
|
|
14
14
|
};
|
|
15
|
-
type
|
|
16
|
-
baseUrl: string;
|
|
17
|
-
clientToken: string;
|
|
18
|
-
};
|
|
19
|
-
type DirectSessionOptions = {
|
|
15
|
+
type RealtimeSessionOptions = {
|
|
20
16
|
url: string;
|
|
21
17
|
token: string;
|
|
22
18
|
};
|
|
23
|
-
type RealtimeSessionOptions = TokenSessionOptions | DirectSessionOptions;
|
|
24
19
|
type StartOptions = {
|
|
25
20
|
microphone?: boolean;
|
|
26
21
|
};
|
|
@@ -35,4 +30,4 @@ declare class RealtimeSession {
|
|
|
35
30
|
end(): Promise<void>;
|
|
36
31
|
}
|
|
37
32
|
|
|
38
|
-
export { type AgentState, type
|
|
33
|
+
export { type AgentState, type EventHandler, RealtimeSession, type RealtimeSessionEvents, type RealtimeSessionOptions, type StartOptions, type TranscriptEvent, type TranscriptRole };
|