@speeq/client 0.0.0-stage → 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/LICENSE +21 -0
- package/README.md +155 -2
- package/dist/index.cjs +1053 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +273 -0
- package/dist/index.d.ts +273 -0
- package/dist/index.js +1020 -0
- package/dist/index.js.map +1 -0
- package/package.json +58 -3
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,273 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Errors shared by every speeq package. This module has no dependencies (no zod), so browser
|
|
3
|
+
* code can import it from `@speeq/core/errors` without pulling in schemas.
|
|
4
|
+
*/
|
|
5
|
+
/** Every stable error code. Codes are part of the public protocol. Never rename one. */
|
|
6
|
+
declare const ERROR_CODES: readonly ["UNAUTHENTICATED", "FORBIDDEN", "INVALID_INPUT", "NOT_FOUND", "CONFLICT", "RATE_LIMITED", "PROVIDER_ERROR", "TOOL_ERROR", "TOOL_TIMEOUT", "CONFIRMATION_REQUIRED", "SESSION_EXPIRED", "NOT_CONFIGURED", "INTERNAL"];
|
|
7
|
+
/** A stable, machine-readable error code. */
|
|
8
|
+
type ErrorCode = (typeof ERROR_CODES)[number];
|
|
9
|
+
/** Options for constructing a {@link SpeeqError}. */
|
|
10
|
+
interface SpeeqErrorOptions {
|
|
11
|
+
/** Public, user-safe message. Defaults to {@link DEFAULT_ERROR_MESSAGES}. */
|
|
12
|
+
message?: string;
|
|
13
|
+
/** Whether retrying the same request may succeed. Defaults by code. */
|
|
14
|
+
retryable?: boolean;
|
|
15
|
+
/** Suggested wait before retrying, in milliseconds. */
|
|
16
|
+
retryAfterMs?: number;
|
|
17
|
+
/** The underlying error. Kept for server logs, never serialized to clients. */
|
|
18
|
+
cause?: unknown;
|
|
19
|
+
/** Extra structured detail for logs (never sent to clients). */
|
|
20
|
+
details?: Record<string, unknown>;
|
|
21
|
+
}
|
|
22
|
+
/** The single error type used across speeq. Always carries a stable {@link ErrorCode}. */
|
|
23
|
+
declare class SpeeqError extends Error {
|
|
24
|
+
/** Brand used by {@link isSpeeqError} so checks work across bundled copies. */
|
|
25
|
+
readonly isSpeeqError: true;
|
|
26
|
+
readonly code: ErrorCode;
|
|
27
|
+
readonly retryable: boolean;
|
|
28
|
+
readonly retryAfterMs: number | undefined;
|
|
29
|
+
readonly details: Record<string, unknown> | undefined;
|
|
30
|
+
constructor(code: ErrorCode, options?: SpeeqErrorOptions);
|
|
31
|
+
/** HTTP status for this error. */
|
|
32
|
+
get status(): number;
|
|
33
|
+
}
|
|
34
|
+
/** True if `value` is a {@link SpeeqError} (works across duplicated package copies). */
|
|
35
|
+
declare function isSpeeqError(value: unknown): value is SpeeqError;
|
|
36
|
+
/** The client-safe shape of an error, as sent over the wire. */
|
|
37
|
+
interface PublicError {
|
|
38
|
+
code: ErrorCode;
|
|
39
|
+
message: string;
|
|
40
|
+
retryable: boolean;
|
|
41
|
+
retryAfterMs?: number;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/** Callbacks for a {@link SpeechInput} recognition session. */
|
|
45
|
+
interface SpeechInputHandlers {
|
|
46
|
+
/** Partial transcript while the user is speaking. */
|
|
47
|
+
onInterim?(transcript: string): void;
|
|
48
|
+
/** Final transcript of one utterance. */
|
|
49
|
+
onFinal(transcript: string): void;
|
|
50
|
+
/** Recognition failed (no permission, no speech, network). */
|
|
51
|
+
onError?(error: {
|
|
52
|
+
code: "not-allowed" | "no-speech" | "network" | "aborted" | "unsupported" | "other";
|
|
53
|
+
message: string;
|
|
54
|
+
}): void;
|
|
55
|
+
/** Recognition stopped (always called last). */
|
|
56
|
+
onEnd?(): void;
|
|
57
|
+
}
|
|
58
|
+
/** Options for {@link SpeechInput.start}. */
|
|
59
|
+
interface SpeechInputOptions {
|
|
60
|
+
/** BCP 47 tag, e.g. `te-IN`. */
|
|
61
|
+
language: string;
|
|
62
|
+
/** Emit interim transcripts. Default `true`. */
|
|
63
|
+
interimResults?: boolean;
|
|
64
|
+
}
|
|
65
|
+
/** Speech-to-text. The default implementation uses the browser Web Speech API. */
|
|
66
|
+
interface SpeechInput {
|
|
67
|
+
/** Whether speech recognition can work in this environment. */
|
|
68
|
+
readonly supported: boolean;
|
|
69
|
+
start(options: SpeechInputOptions, handlers: SpeechInputHandlers): void;
|
|
70
|
+
/** Stop listening and deliver the final transcript. */
|
|
71
|
+
stop(): void;
|
|
72
|
+
/** Stop listening and discard the transcript. */
|
|
73
|
+
abort(): void;
|
|
74
|
+
}
|
|
75
|
+
/** Options for {@link SpeechOutput.speak}. */
|
|
76
|
+
interface SpeakOptions {
|
|
77
|
+
language: string;
|
|
78
|
+
signal?: AbortSignal;
|
|
79
|
+
}
|
|
80
|
+
/** Text-to-speech. The default implementation uses the browser `speechSynthesis` API. */
|
|
81
|
+
interface SpeechOutput {
|
|
82
|
+
/** Whether speech synthesis exists in this environment. */
|
|
83
|
+
readonly supported: boolean;
|
|
84
|
+
/** Whether a voice exists for `language` on this device. */
|
|
85
|
+
hasVoiceFor(language: string): Promise<boolean>;
|
|
86
|
+
/** Speaks `text`. Resolves when finished or cancelled. Calls queue in order. */
|
|
87
|
+
speak(text: string, options: SpeakOptions): Promise<void>;
|
|
88
|
+
/** Stops speaking and clears the queue. */
|
|
89
|
+
cancel(): void;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
type ConversationEvent = { seq: number; id: string; sessionId: string; ts: string; userId: string | null; turnId?: string | undefined; dedupeKey?: string | undefined; } & ({ type: "session.started"; data: { userId: string | null; language: string; context?: { path: string; title?: string | undefined; data?: Record<string, unknown> | undefined; } | undefined; }; } | { type: "user.message"; data: { text: string; language: string; inputMode?: "text" | "voice" | undefined; context?: { path: string; title?: string | undefined; data?: Record<string, unknown> | undefined; } | undefined; }; } | { type: "assistant.message"; data: { text: string; toolCalls?: { id: string; name: string; args: unknown; providerMetadata?: Record<string, unknown> | undefined; }[] | undefined; }; } | { type: "tool.called"; data: { callId: string; name: string; kind: "custom" | "builtin"; args: unknown; durationMs: number; ok: boolean; errorCode?: "UNAUTHENTICATED" | "FORBIDDEN" | "INVALID_INPUT" | "NOT_FOUND" | "CONFLICT" | "RATE_LIMITED" | "PROVIDER_ERROR" | "TOOL_ERROR" | "TOOL_TIMEOUT" | "CONFIRMATION_REQUIRED" | "SESSION_EXPIRED" | "NOT_CONFIGURED" | "INTERNAL" | undefined; result?: string | undefined; truncated?: boolean | undefined; }; } | { type: "navigation"; data: { routeId: string; href: string; params: Record<string, unknown>; }; } | { type: "confirmation.requested"; data: { confirmationId: string; callId: string; toolName: string; args: unknown; summary: string; }; } | { type: "confirmation.resolved"; data: { confirmationId: string; approved: boolean; userId: string | null; }; } | { type: "error"; data: { code: "UNAUTHENTICATED" | "FORBIDDEN" | "INVALID_INPUT" | "NOT_FOUND" | "CONFLICT" | "RATE_LIMITED" | "PROVIDER_ERROR" | "TOOL_ERROR" | "TOOL_TIMEOUT" | "CONFIRMATION_REQUIRED" | "SESSION_EXPIRED" | "NOT_CONFIGURED" | "INTERNAL"; message: string; }; } | { type: "turn.finished"; data: { reason: "error" | "completed" | "max_steps" | "confirmation_required" | "aborted"; latencyMs: number; firstTokenMs?: number | undefined; usage?: { inputTokens?: number | undefined; outputTokens?: number | undefined; totalTokens?: number | undefined; } | undefined; steps?: number | undefined; }; });
|
|
93
|
+
type SessionSummary = { id: string; userId: string | null; language: string; startedAt: string; lastEventAt: string; eventCount: number; turnCount: number; toolCallCount: number; navigationCount: number; errorCount: number; preview?: string | undefined; };
|
|
94
|
+
type SessionFilter = { userId?: string | undefined; from?: string | undefined; to?: string | undefined; limit?: number | undefined; };
|
|
95
|
+
type SessionListResponse = { sessions: { id: string; userId: string | null; language: string; startedAt: string; lastEventAt: string; eventCount: number; turnCount: number; toolCallCount: number; navigationCount: number; errorCount: number; preview?: string | undefined; }[]; nextCursor: string | null; };
|
|
96
|
+
type SessionDetailResponse = { session: { id: string; userId: string | null; language: string; startedAt: string; lastEventAt: string; eventCount: number; turnCount: number; toolCallCount: number; navigationCount: number; errorCount: number; preview?: string | undefined; }; events: ({ seq: number; id: string; sessionId: string; ts: string; userId: string | null; turnId?: string | undefined; dedupeKey?: string | undefined; } & ({ type: "session.started"; data: { userId: string | null; language: string; context?: { path: string; title?: string | undefined; data?: Record<string, unknown> | undefined; } | undefined; }; } | { type: "user.message"; data: { text: string; language: string; inputMode?: "text" | "voice" | undefined; context?: { path: string; title?: string | undefined; data?: Record<string, unknown> | undefined; } | undefined; }; } | { type: "assistant.message"; data: { text: string; toolCalls?: { id: string; name: string; args: unknown; providerMetadata?: Record<string, unknown> | undefined; }[] | undefined; }; } | { type: "tool.called"; data: { callId: string; name: string; kind: "custom" | "builtin"; args: unknown; durationMs: number; ok: boolean; errorCode?: "UNAUTHENTICATED" | "FORBIDDEN" | "INVALID_INPUT" | "NOT_FOUND" | "CONFLICT" | "RATE_LIMITED" | "PROVIDER_ERROR" | "TOOL_ERROR" | "TOOL_TIMEOUT" | "CONFIRMATION_REQUIRED" | "SESSION_EXPIRED" | "NOT_CONFIGURED" | "INTERNAL" | undefined; result?: string | undefined; truncated?: boolean | undefined; }; } | { type: "navigation"; data: { routeId: string; href: string; params: Record<string, unknown>; }; } | { type: "confirmation.requested"; data: { confirmationId: string; callId: string; toolName: string; args: unknown; summary: string; }; } | { type: "confirmation.resolved"; data: { confirmationId: string; approved: boolean; userId: string | null; }; } | { type: "error"; data: { code: "UNAUTHENTICATED" | "FORBIDDEN" | "INVALID_INPUT" | "NOT_FOUND" | "CONFLICT" | "RATE_LIMITED" | "PROVIDER_ERROR" | "TOOL_ERROR" | "TOOL_TIMEOUT" | "CONFIRMATION_REQUIRED" | "SESSION_EXPIRED" | "NOT_CONFIGURED" | "INTERNAL"; message: string; }; } | { type: "turn.finished"; data: { reason: "error" | "completed" | "max_steps" | "confirmation_required" | "aborted"; latencyMs: number; firstTokenMs?: number | undefined; usage?: { inputTokens?: number | undefined; outputTokens?: number | undefined; totalTokens?: number | undefined; } | undefined; steps?: number | undefined; }; }))[]; };
|
|
97
|
+
type ClientConfig = { agentName: string; languages: string[]; defaultLanguage: string; features: { navigation: boolean; knowledge: boolean; tools: boolean; audit: boolean; }; routes: { id: string; title: string; }[]; };
|
|
98
|
+
type ProtocolEvent = { type: "turn.started"; sessionId: string; language: string; protocolVersion: 1; turnId: string; } | { type: "assistant.delta"; text: string; protocolVersion: 1; turnId: string; } | { type: "assistant.message"; messageId: string; text: string; protocolVersion: 1; turnId: string; } | { type: "tool.started"; callId: string; name: string; kind: "custom" | "builtin"; protocolVersion: 1; turnId: string; } | { type: "tool.finished"; callId: string; name: string; ok: boolean; durationMs: number; protocolVersion: 1; turnId: string; errorCode?: "UNAUTHENTICATED" | "FORBIDDEN" | "INVALID_INPUT" | "NOT_FOUND" | "CONFLICT" | "RATE_LIMITED" | "PROVIDER_ERROR" | "TOOL_ERROR" | "TOOL_TIMEOUT" | "CONFIRMATION_REQUIRED" | "SESSION_EXPIRED" | "NOT_CONFIGURED" | "INTERNAL" | undefined; } | { type: "navigate"; routeId: string; href: string; params: Record<string, unknown>; protocolVersion: 1; turnId: string; } | { type: "confirmation.required"; confirmationId: string; toolName: string; summary: string; args: unknown; protocolVersion: 1; turnId: string; } | { type: "error"; code: "UNAUTHENTICATED" | "FORBIDDEN" | "INVALID_INPUT" | "NOT_FOUND" | "CONFLICT" | "RATE_LIMITED" | "PROVIDER_ERROR" | "TOOL_ERROR" | "TOOL_TIMEOUT" | "CONFIRMATION_REQUIRED" | "SESSION_EXPIRED" | "NOT_CONFIGURED" | "INTERNAL"; message: string; retryable: boolean; protocolVersion: 1; turnId: string; retryAfterMs?: number | undefined; } | { type: "turn.finished"; reason: "error" | "completed" | "max_steps" | "confirmation_required" | "aborted"; latencyMs: number; protocolVersion: 1; turnId: string; firstTokenMs?: number | undefined; usage?: { inputTokens?: number | undefined; outputTokens?: number | undefined; totalTokens?: number | undefined; } | undefined; };
|
|
99
|
+
|
|
100
|
+
/** Connection options for the developer's audit endpoints. */
|
|
101
|
+
interface AuditClientOptions {
|
|
102
|
+
endpoint: string;
|
|
103
|
+
fetch?: typeof fetch;
|
|
104
|
+
/** Default "include". */
|
|
105
|
+
credentials?: RequestCredentials;
|
|
106
|
+
headers?: Record<string, string>;
|
|
107
|
+
}
|
|
108
|
+
/** Session list filters and optional pagination cursor. */
|
|
109
|
+
interface AuditListParams {
|
|
110
|
+
userId?: string;
|
|
111
|
+
from?: string;
|
|
112
|
+
to?: string;
|
|
113
|
+
limit?: number;
|
|
114
|
+
cursor?: string | null;
|
|
115
|
+
}
|
|
116
|
+
/** Reads authorized session summaries and event histories. */
|
|
117
|
+
interface AuditClient {
|
|
118
|
+
listSessions(params?: AuditListParams, signal?: AbortSignal): Promise<SessionListResponse>;
|
|
119
|
+
getSession(sessionId: string, signal?: AbortSignal): Promise<SessionDetailResponse>;
|
|
120
|
+
}
|
|
121
|
+
/** Creates a client that uses the host application's audit authorization. */
|
|
122
|
+
declare function createAuditClient(options: AuditClientOptions): AuditClient;
|
|
123
|
+
|
|
124
|
+
/** Current activity of the client. */
|
|
125
|
+
type SpeeqState = "idle" | "listening" | "thinking" | "speaking" | "error";
|
|
126
|
+
/** One user or assistant message in the local conversation. */
|
|
127
|
+
interface ChatMessage {
|
|
128
|
+
id: string;
|
|
129
|
+
role: "user" | "assistant";
|
|
130
|
+
text: string;
|
|
131
|
+
status: "streaming" | "done" | "interrupted" | "error";
|
|
132
|
+
turnId?: string;
|
|
133
|
+
}
|
|
134
|
+
/** A write action awaiting approval. */
|
|
135
|
+
interface PendingConfirmation {
|
|
136
|
+
confirmationId: string;
|
|
137
|
+
toolName: string;
|
|
138
|
+
summary: string;
|
|
139
|
+
args: unknown;
|
|
140
|
+
}
|
|
141
|
+
/** A navigation request from the assistant. */
|
|
142
|
+
interface NavigateAction {
|
|
143
|
+
routeId: string;
|
|
144
|
+
href: string;
|
|
145
|
+
params: Record<string, unknown>;
|
|
146
|
+
}
|
|
147
|
+
/** Context supplied by the host page. */
|
|
148
|
+
interface PageContextInput {
|
|
149
|
+
path?: string;
|
|
150
|
+
title?: string;
|
|
151
|
+
data?: Record<string, unknown>;
|
|
152
|
+
}
|
|
153
|
+
/** Current view of the conversation and device capabilities. */
|
|
154
|
+
interface SpeeqSnapshot {
|
|
155
|
+
state: SpeeqState;
|
|
156
|
+
language: string;
|
|
157
|
+
languages: string[];
|
|
158
|
+
messages: ChatMessage[];
|
|
159
|
+
interimTranscript: string;
|
|
160
|
+
pendingConfirmation: PendingConfirmation | null;
|
|
161
|
+
error: PublicError | null;
|
|
162
|
+
activeTools: Array<{
|
|
163
|
+
callId: string;
|
|
164
|
+
name: string;
|
|
165
|
+
}>;
|
|
166
|
+
support: {
|
|
167
|
+
speechInput: boolean;
|
|
168
|
+
speechOutput: boolean;
|
|
169
|
+
voiceForLanguage: boolean | null;
|
|
170
|
+
};
|
|
171
|
+
config: ClientConfig | null;
|
|
172
|
+
sessionId: string | null;
|
|
173
|
+
}
|
|
174
|
+
/** Configures transport, speech and host callbacks. */
|
|
175
|
+
interface SpeeqClientOptions {
|
|
176
|
+
/** Base URL of the mounted handler, e.g. "/api/speeq". */
|
|
177
|
+
endpoint: string;
|
|
178
|
+
languages?: string[];
|
|
179
|
+
language?: string;
|
|
180
|
+
onNavigate?: (action: NavigateAction) => void;
|
|
181
|
+
getContext?: () => PageContextInput | undefined;
|
|
182
|
+
/** Omitted or undefined input/output use Web Speech defaults. Pass null to disable either adapter. */
|
|
183
|
+
speech?: {
|
|
184
|
+
input?: SpeechInput | null;
|
|
185
|
+
output?: SpeechOutput | null;
|
|
186
|
+
};
|
|
187
|
+
/** Speak assistant replies when possible. Default true. */
|
|
188
|
+
speakReplies?: boolean;
|
|
189
|
+
/** Send the final voice transcript automatically. Default true. */
|
|
190
|
+
autoSendOnFinal?: boolean;
|
|
191
|
+
/** Default "memory". */
|
|
192
|
+
persistSession?: "memory" | "sessionStorage";
|
|
193
|
+
fetch?: typeof fetch;
|
|
194
|
+
}
|
|
195
|
+
/** Payloads delivered by client event listeners. */
|
|
196
|
+
interface SpeeqClientEvents {
|
|
197
|
+
change: SpeeqSnapshot;
|
|
198
|
+
state: SpeeqState;
|
|
199
|
+
event: ProtocolEvent;
|
|
200
|
+
navigate: NavigateAction;
|
|
201
|
+
error: PublicError;
|
|
202
|
+
}
|
|
203
|
+
/** Controls a headless conversation and exposes its current snapshot. */
|
|
204
|
+
interface SpeeqClient {
|
|
205
|
+
getSnapshot(): SpeeqSnapshot;
|
|
206
|
+
subscribe(listener: () => void): () => void;
|
|
207
|
+
on<K extends keyof SpeeqClientEvents>(event: K, cb: (payload: SpeeqClientEvents[K]) => void): () => void;
|
|
208
|
+
sendText(text: string, options?: {
|
|
209
|
+
inputMode?: "text" | "voice";
|
|
210
|
+
}): Promise<void>;
|
|
211
|
+
startListening(): void;
|
|
212
|
+
stopListening(): void;
|
|
213
|
+
cancel(): void;
|
|
214
|
+
setLanguage(language: string): void;
|
|
215
|
+
confirm(confirmationId: string, approved: boolean): Promise<void>;
|
|
216
|
+
speak(text: string): Promise<void>;
|
|
217
|
+
destroy(): void;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
/** Creates a headless client. The first turn or confirmation establishes the session. */
|
|
221
|
+
declare function createSpeeqClient(options: SpeeqClientOptions): SpeeqClient;
|
|
222
|
+
|
|
223
|
+
type StartOptions = Parameters<SpeechInput["start"]>[0];
|
|
224
|
+
type Handlers = Parameters<SpeechInput["start"]>[1];
|
|
225
|
+
/** Recognizes a single utterance using the browser's Web Speech API. */
|
|
226
|
+
declare class WebSpeechInput implements SpeechInput {
|
|
227
|
+
private active?;
|
|
228
|
+
get supported(): boolean;
|
|
229
|
+
start(options: StartOptions, handlers: Handlers): void;
|
|
230
|
+
stop(): void;
|
|
231
|
+
abort(): void;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
/** Browser voice metadata exposed to a custom voice selector. */
|
|
235
|
+
interface SpeechSynthesisVoiceLike {
|
|
236
|
+
name: string;
|
|
237
|
+
lang: string;
|
|
238
|
+
default: boolean;
|
|
239
|
+
localService: boolean;
|
|
240
|
+
voiceURI: string;
|
|
241
|
+
}
|
|
242
|
+
/** Reports the speech input and output APIs available in the current environment. */
|
|
243
|
+
declare function detectSpeechSupport(): {
|
|
244
|
+
input: boolean;
|
|
245
|
+
output: boolean;
|
|
246
|
+
};
|
|
247
|
+
|
|
248
|
+
/** Controls browser voice selection and playback. */
|
|
249
|
+
interface WebSpeechOutputOptions {
|
|
250
|
+
/** Default 1. */
|
|
251
|
+
rate?: number;
|
|
252
|
+
/** Default 1. */
|
|
253
|
+
pitch?: number;
|
|
254
|
+
/** Override voice choice. Return undefined to fall back to the built-in matching. */
|
|
255
|
+
selectVoice?: (language: string, voices: readonly SpeechSynthesisVoiceLike[]) => SpeechSynthesisVoiceLike | undefined;
|
|
256
|
+
/** Max wait for voiceschanged when the voice list is empty. Default 1500 ms. */
|
|
257
|
+
voicesTimeoutMs?: number;
|
|
258
|
+
}
|
|
259
|
+
/** Speaks utterances using the device's speech synthesis service. */
|
|
260
|
+
declare class WebSpeechOutput implements SpeechOutput {
|
|
261
|
+
private readonly options;
|
|
262
|
+
private waiting?;
|
|
263
|
+
private pending;
|
|
264
|
+
constructor(options?: WebSpeechOutputOptions);
|
|
265
|
+
get supported(): boolean;
|
|
266
|
+
private voice;
|
|
267
|
+
hasVoiceFor(language: string): Promise<boolean>;
|
|
268
|
+
speak(text: string, { language, signal }: Parameters<SpeechOutput["speak"]>[1]): Promise<void>;
|
|
269
|
+
cancel(): void;
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
export { SpeeqError, WebSpeechInput, WebSpeechOutput, createAuditClient, createSpeeqClient, detectSpeechSupport, isSpeeqError };
|
|
273
|
+
export type { AuditClient, AuditClientOptions, AuditListParams, ChatMessage, ConversationEvent, NavigateAction, PageContextInput, PendingConfirmation, SessionDetailResponse, SessionFilter, SessionListResponse, SessionSummary, SpeeqClient, SpeeqClientEvents, SpeeqClientOptions, SpeeqSnapshot, SpeeqState, WebSpeechOutputOptions };
|