@voice-ai-labs/web-sdk 0.2.0 → 0.4.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 +138 -2
- package/dist/client/base.d.ts +2 -2
- package/dist/client/base.js +2 -2
- package/dist/client/index.d.ts +5 -5
- package/dist/client/index.d.ts.map +1 -1
- package/dist/client/index.js +3 -3
- package/dist/client/index.js.map +1 -1
- package/dist/components/VoiceAgentWidget.d.ts +1 -1
- package/dist/components/VoiceAgentWidget.js +1 -1
- package/dist/index.d.ts +10 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.esm.js +305 -21
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +305 -21
- package/dist/index.js.map +1 -1
- package/dist/types.d.ts +82 -13
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
# Voice.
|
|
1
|
+
# Voice.ai Web SDK
|
|
2
2
|
|
|
3
|
-
The official Voice.
|
|
3
|
+
The official Voice.ai SDK for JavaScript/TypeScript applications.
|
|
4
4
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
@@ -34,6 +34,7 @@ The SDK provides a unified interface for:
|
|
|
34
34
|
|
|
35
35
|
- **Real-time Voice** - Connect to voice agents with live transcription
|
|
36
36
|
- **Agent Management** - Create, update, deploy, and manage agents
|
|
37
|
+
- **Webhooks** - Receive real-time notifications for call events
|
|
37
38
|
- **Analytics** - Access call history and transcripts
|
|
38
39
|
- **Knowledge Base** - Manage RAG documents for your agents
|
|
39
40
|
- **Phone Numbers** - Search and manage phone numbers
|
|
@@ -49,6 +50,44 @@ await voiceai.connect({
|
|
|
49
50
|
});
|
|
50
51
|
```
|
|
51
52
|
|
|
53
|
+
### Error Handling
|
|
54
|
+
|
|
55
|
+
The `connect()` method throws an `Error` if connection fails. Common error cases:
|
|
56
|
+
|
|
57
|
+
```typescript
|
|
58
|
+
try {
|
|
59
|
+
await voiceai.connect({ agentId: 'agent-123' });
|
|
60
|
+
} catch (error) {
|
|
61
|
+
if (error.message.includes('insufficient_credits')) {
|
|
62
|
+
// User is out of credits
|
|
63
|
+
console.error('Out of credits. Please add more credits to continue.');
|
|
64
|
+
} else if (error.message.includes('Authentication failed')) {
|
|
65
|
+
// Invalid API key
|
|
66
|
+
console.error('Invalid API key');
|
|
67
|
+
} else if (error.message.includes('agent_not_deployed')) {
|
|
68
|
+
// Agent is paused or disabled
|
|
69
|
+
console.error('Agent is not deployed');
|
|
70
|
+
} else {
|
|
71
|
+
console.error('Connection failed:', error.message);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
Errors are also emitted via the `onError` handler and reflected in `onStatusChange`:
|
|
77
|
+
|
|
78
|
+
```typescript
|
|
79
|
+
voiceai.onError((error) => {
|
|
80
|
+
console.error('Error:', error.message);
|
|
81
|
+
});
|
|
82
|
+
|
|
83
|
+
voiceai.onStatusChange((status) => {
|
|
84
|
+
if (status.error) {
|
|
85
|
+
// status.error contains the error message string
|
|
86
|
+
console.error('Connection error:', status.error);
|
|
87
|
+
}
|
|
88
|
+
});
|
|
89
|
+
```
|
|
90
|
+
|
|
52
91
|
### Events
|
|
53
92
|
|
|
54
93
|
```typescript
|
|
@@ -197,6 +236,101 @@ const myNumbers = await voiceai.phoneNumbers.list();
|
|
|
197
236
|
await voiceai.phoneNumbers.release('+14155551234');
|
|
198
237
|
```
|
|
199
238
|
|
|
239
|
+
## Webhooks
|
|
240
|
+
|
|
241
|
+
Configure webhooks to receive real-time notifications when call events occur.
|
|
242
|
+
|
|
243
|
+
### Configure Webhook Events
|
|
244
|
+
|
|
245
|
+
```typescript
|
|
246
|
+
// Create agent with webhook events
|
|
247
|
+
const agent = await voiceai.agents.create({
|
|
248
|
+
name: 'Support Agent',
|
|
249
|
+
config: {
|
|
250
|
+
prompt: 'You are a helpful support agent.',
|
|
251
|
+
webhooks: {
|
|
252
|
+
events: {
|
|
253
|
+
url: 'https://your-server.com/webhooks/voice-events',
|
|
254
|
+
secret: 'your-hmac-secret', // Optional: for signature verification
|
|
255
|
+
events: ['call.started', 'call.completed'], // Or omit for all events
|
|
256
|
+
timeout: 5,
|
|
257
|
+
enabled: true
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
});
|
|
262
|
+
|
|
263
|
+
// Update webhook config on existing agent
|
|
264
|
+
await voiceai.agents.update(agentId, {
|
|
265
|
+
config: {
|
|
266
|
+
webhooks: {
|
|
267
|
+
events: {
|
|
268
|
+
url: 'https://your-server.com/webhooks',
|
|
269
|
+
events: ['call.completed'], // Only receive call.completed
|
|
270
|
+
enabled: true
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
});
|
|
275
|
+
```
|
|
276
|
+
|
|
277
|
+
### Event Types
|
|
278
|
+
|
|
279
|
+
| Event | Description |
|
|
280
|
+
|-------|-------------|
|
|
281
|
+
| `call.started` | Call connected, agent ready |
|
|
282
|
+
| `call.completed` | Call ended, includes transcript and usage data |
|
|
283
|
+
|
|
284
|
+
### Webhook Payload
|
|
285
|
+
|
|
286
|
+
Your server receives POST requests with this structure:
|
|
287
|
+
|
|
288
|
+
```typescript
|
|
289
|
+
interface WebhookEvent {
|
|
290
|
+
event: 'call.started' | 'call.completed' | 'test';
|
|
291
|
+
timestamp: string; // ISO 8601
|
|
292
|
+
call_id: string;
|
|
293
|
+
agent_id: string;
|
|
294
|
+
data: {
|
|
295
|
+
call_type: 'web' | 'sip_inbound' | 'sip_outbound';
|
|
296
|
+
// call.started: started_at, from_number?, to_number?
|
|
297
|
+
// call.completed: duration_seconds, credits_used, transcript_uri, transcript_summary
|
|
298
|
+
};
|
|
299
|
+
}
|
|
300
|
+
```
|
|
301
|
+
|
|
302
|
+
### Signature Verification
|
|
303
|
+
|
|
304
|
+
If you configure a `secret`, verify the HMAC-SHA256 signature:
|
|
305
|
+
|
|
306
|
+
```typescript
|
|
307
|
+
import crypto from 'crypto';
|
|
308
|
+
|
|
309
|
+
function verifyWebhook(body: string, headers: Headers, secret: string): boolean {
|
|
310
|
+
const signature = headers.get('x-webhook-signature');
|
|
311
|
+
const timestamp = headers.get('x-webhook-timestamp');
|
|
312
|
+
|
|
313
|
+
if (!signature || !timestamp) return false;
|
|
314
|
+
|
|
315
|
+
const message = `${timestamp}.${body}`;
|
|
316
|
+
const expected = crypto.createHmac('sha256', secret).update(message).digest('hex');
|
|
317
|
+
|
|
318
|
+
return crypto.timingSafeEqual(Buffer.from(expected), Buffer.from(signature));
|
|
319
|
+
}
|
|
320
|
+
```
|
|
321
|
+
|
|
322
|
+
### Webhook Types
|
|
323
|
+
|
|
324
|
+
```typescript
|
|
325
|
+
import type {
|
|
326
|
+
WebhookEventType,
|
|
327
|
+
WebhookEventsConfig,
|
|
328
|
+
WebhooksConfig,
|
|
329
|
+
WebhookEvent,
|
|
330
|
+
WebhookTestResponse,
|
|
331
|
+
} from '@voice-ai-labs/web-sdk';
|
|
332
|
+
```
|
|
333
|
+
|
|
200
334
|
## TypeScript
|
|
201
335
|
|
|
202
336
|
Full TypeScript support with exported types:
|
|
@@ -207,6 +341,8 @@ import VoiceAI, {
|
|
|
207
341
|
type TranscriptionSegment,
|
|
208
342
|
type ConnectionStatus,
|
|
209
343
|
type TTSParams,
|
|
344
|
+
type WebhookEventsConfig,
|
|
345
|
+
type WebhookEvent,
|
|
210
346
|
} from '@voice-ai-labs/web-sdk';
|
|
211
347
|
```
|
|
212
348
|
|
package/dist/client/base.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Base HTTP Client for Voice.
|
|
2
|
+
* Base HTTP Client for Voice.ai API
|
|
3
3
|
*
|
|
4
4
|
* Provides common functionality for all API clients including:
|
|
5
5
|
* - Authentication via Bearer token
|
|
6
6
|
* - Error handling and response parsing
|
|
7
7
|
* - Common HTTP methods (GET, POST, PUT, PATCH, DELETE)
|
|
8
8
|
*/
|
|
9
|
-
/** Error thrown by Voice.
|
|
9
|
+
/** Error thrown by Voice.ai API client */
|
|
10
10
|
export declare class VoiceAIError extends Error {
|
|
11
11
|
readonly status?: number | undefined;
|
|
12
12
|
readonly code?: string | undefined;
|
package/dist/client/base.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Base HTTP Client for Voice.
|
|
2
|
+
* Base HTTP Client for Voice.ai API
|
|
3
3
|
*
|
|
4
4
|
* Provides common functionality for all API clients including:
|
|
5
5
|
* - Authentication via Bearer token
|
|
6
6
|
* - Error handling and response parsing
|
|
7
7
|
* - Common HTTP methods (GET, POST, PUT, PATCH, DELETE)
|
|
8
8
|
*/
|
|
9
|
-
/** Error thrown by Voice.
|
|
9
|
+
/** Error thrown by Voice.ai API client */
|
|
10
10
|
export class VoiceAIError extends Error {
|
|
11
11
|
constructor(message, status, code, detail) {
|
|
12
12
|
super(message);
|
package/dist/client/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* VoiceAIClient - Main API Client for Voice.
|
|
2
|
+
* VoiceAIClient - Main API Client for Voice.ai Agent API
|
|
3
3
|
*
|
|
4
|
-
* Provides access to Voice.
|
|
4
|
+
* Provides access to Voice.ai Agent API functionality through sub-clients:
|
|
5
5
|
* - agents: Agent management (create, update, deploy, pause, delete)
|
|
6
6
|
* - analytics: Call history and stats
|
|
7
7
|
* - knowledgeBase: Knowledge base management for RAG
|
|
@@ -29,14 +29,14 @@
|
|
|
29
29
|
* const history = await client.analytics.getCallHistory();
|
|
30
30
|
* ```
|
|
31
31
|
*/
|
|
32
|
-
import type {
|
|
32
|
+
import type { VoiceAIConfig } from '../types';
|
|
33
33
|
import { AgentClient } from './agents';
|
|
34
34
|
import { AnalyticsClient } from './analytics';
|
|
35
35
|
import { KnowledgeBaseClient } from './knowledge-base';
|
|
36
36
|
import { PhoneNumberClient } from './phone-numbers';
|
|
37
37
|
export { VoiceAIError } from './base';
|
|
38
38
|
/**
|
|
39
|
-
* Main API client for Voice.
|
|
39
|
+
* Main API client for Voice.ai Agent API
|
|
40
40
|
*/
|
|
41
41
|
export declare class VoiceAIClient {
|
|
42
42
|
/** Agent management client */
|
|
@@ -62,7 +62,7 @@ export declare class VoiceAIClient {
|
|
|
62
62
|
* });
|
|
63
63
|
* ```
|
|
64
64
|
*/
|
|
65
|
-
constructor(config:
|
|
65
|
+
constructor(config: VoiceAIConfig);
|
|
66
66
|
}
|
|
67
67
|
export { AgentClient } from './agents';
|
|
68
68
|
export { AnalyticsClient } from './analytics';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/client/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AAEH,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/client/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAEpD,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAEtC;;GAEG;AACH,qBAAa,aAAa;IACxB,8BAA8B;IAC9B,SAAgB,MAAM,EAAE,WAAW,CAAC;IAEpC,uBAAuB;IACvB,SAAgB,SAAS,EAAE,eAAe,CAAC;IAE3C,4BAA4B;IAC5B,SAAgB,aAAa,EAAE,mBAAmB,CAAC;IAEnD,qCAAqC;IACrC,SAAgB,YAAY,EAAE,iBAAiB,CAAC;IAEhD,sBAAsB;IACtB,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,eAAe,CAAiC;IAExE;;;;;;;;;;;;OAYG;gBACS,MAAM,EAAE,aAAa;CAalC;AAGD,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC"}
|
package/dist/client/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* VoiceAIClient - Main API Client for Voice.
|
|
2
|
+
* VoiceAIClient - Main API Client for Voice.ai Agent API
|
|
3
3
|
*
|
|
4
|
-
* Provides access to Voice.
|
|
4
|
+
* Provides access to Voice.ai Agent API functionality through sub-clients:
|
|
5
5
|
* - agents: Agent management (create, update, deploy, pause, delete)
|
|
6
6
|
* - analytics: Call history and stats
|
|
7
7
|
* - knowledgeBase: Knowledge base management for RAG
|
|
@@ -35,7 +35,7 @@ import { KnowledgeBaseClient } from './knowledge-base';
|
|
|
35
35
|
import { PhoneNumberClient } from './phone-numbers';
|
|
36
36
|
export { VoiceAIError } from './base';
|
|
37
37
|
/**
|
|
38
|
-
* Main API client for Voice.
|
|
38
|
+
* Main API client for Voice.ai Agent API
|
|
39
39
|
*/
|
|
40
40
|
export class VoiceAIClient {
|
|
41
41
|
/**
|
package/dist/client/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/client/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AAGH,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,EAAE,mBAA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BAAsB;AACE,6BAAe,GAAG,6BAA6B,CAAC;AA8B1E,mDAAmD;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Voice.
|
|
2
|
+
* Voice.ai Web SDK
|
|
3
3
|
*
|
|
4
|
-
* A single, unified SDK for Voice.
|
|
4
|
+
* A single, unified SDK for Voice.ai services.
|
|
5
5
|
*
|
|
6
6
|
* @example
|
|
7
7
|
* ```typescript
|
|
@@ -26,7 +26,7 @@ import { KnowledgeBaseClient } from './client/knowledge-base';
|
|
|
26
26
|
import { PhoneNumberClient } from './client/phone-numbers';
|
|
27
27
|
import type { ConnectionOptions, ConnectionStatus, TranscriptionHandler, ConnectionStatusHandler, ErrorHandler, AudioCaptureOptions, AgentStateInfo, MicrophoneState, AgentStateHandler, AudioLevelHandler, MicrophoneStateHandler, VoiceAIConfig } from './types';
|
|
28
28
|
/**
|
|
29
|
-
* VoiceAI - The unified Voice.
|
|
29
|
+
* VoiceAI - The unified Voice.ai SDK
|
|
30
30
|
*
|
|
31
31
|
* Provides both real-time voice agent connections and REST API access
|
|
32
32
|
* through a single, easy-to-use interface.
|
|
@@ -76,7 +76,7 @@ export declare class VoiceAI {
|
|
|
76
76
|
* Create a new VoiceAI client
|
|
77
77
|
*
|
|
78
78
|
* @param config - Configuration options
|
|
79
|
-
* @param config.apiKey - Your Voice.
|
|
79
|
+
* @param config.apiKey - Your Voice.ai API key (required)
|
|
80
80
|
* @param config.apiUrl - Custom API URL (optional, defaults to production)
|
|
81
81
|
*/
|
|
82
82
|
constructor(config: VoiceAIConfig);
|
|
@@ -86,10 +86,15 @@ export declare class VoiceAI {
|
|
|
86
86
|
* @param options - Connection options
|
|
87
87
|
* @param options.agentId - ID of the agent to connect to
|
|
88
88
|
* @param options.autoPublishMic - Auto-enable microphone (default: true)
|
|
89
|
+
* @param options.testMode - Test mode to preview paused/undeployed agents (default: false)
|
|
89
90
|
*
|
|
90
91
|
* @example
|
|
91
92
|
* ```typescript
|
|
93
|
+
* // Connect to a deployed agent
|
|
92
94
|
* await voiceai.connect({ agentId: 'agent-123' });
|
|
95
|
+
*
|
|
96
|
+
* // Test a paused agent before deploying
|
|
97
|
+
* await voiceai.connect({ agentId: 'agent-123', testMode: true });
|
|
93
98
|
* ```
|
|
94
99
|
*/
|
|
95
100
|
connect(options: ConnectionOptions): Promise<void>;
|
|
@@ -171,7 +176,7 @@ export declare class VoiceAI {
|
|
|
171
176
|
export default VoiceAI;
|
|
172
177
|
/** Error class for API errors */
|
|
173
178
|
export { VoiceAIError } from './client/base';
|
|
174
|
-
export type { VoiceAIConfig, ConnectionOptions, ConnectionDetails, ConnectionStatus, TranscriptionSegment, TranscriptionHandler, ConnectionStatusHandler, ErrorHandler, AgentStateHandler, AudioLevelHandler, MicrophoneStateHandler, AgentState, AgentStateInfo, AudioLevelInfo, MicrophoneState, AudioCaptureOptions, TTSParams, MCPServerConfig,
|
|
179
|
+
export type { VoiceAIConfig, ConnectionOptions, ConnectionDetails, ConnectionStatus, TranscriptionSegment, TranscriptionHandler, ConnectionStatusHandler, ErrorHandler, AgentStateHandler, AudioLevelHandler, MicrophoneStateHandler, AgentState, AgentStateInfo, AudioLevelInfo, MicrophoneState, AudioCaptureOptions, TTSParams, MCPServerConfig, AgentConfig, Agent, CreateAgentRequest, UpdateAgentRequest, AgentDeployResponse, AgentPauseResponse, AgentDeleteResponse, AgentConnectionStatusResponse, InitAgentRequest, InitAgentResponse, PaginatedAgentResponse, ListAgentsOptions, WebhookEventType, WebhookEventsConfig, WebhooksConfig, WebhookEvent, WebhookTestResponse, CallHistoryItem, PaginatedCallHistoryResponse, GetCallHistoryOptions, TranscriptResponse, KnowledgeBaseDocument, CreateKnowledgeBaseRequest, UpdateKnowledgeBaseRequest, KnowledgeBaseResponse, KnowledgeBaseWithDocuments, PaginatedKnowledgeBaseResponse, PhoneNumberInfo, AvailablePhoneNumber, SearchPhoneNumbersRequest, SearchPhoneNumbersResponse, PurchasePhoneNumberRequest, PurchasePhoneNumberResponse, AllPhoneNumbersResponse, PaginationMeta, PaginationOptions, ErrorResponse, } from './types';
|
|
175
180
|
/**
|
|
176
181
|
* Generate optimized audio capture options for voice agents
|
|
177
182
|
*
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAGH,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,KAAK,EACV,iBAAiB,EAGjB,gBAAgB,EAChB,oBAAoB,EACpB,uBAAuB,EACvB,YAAY,EACZ,mBAAmB,EAEnB,cAAc,EAEd,eAAe,EACf,iBAAiB,EACjB,iBAAiB,EACjB,sBAAsB,EACtB,aAAa,EACd,MAAM,SAAS,CAAC;AAKjB;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,qBAAa,OAAO;IAKlB,sEAAsE;IACtE,SAAgB,MAAM,EAAE,WAAW,CAAC;IAEpC,mDAAmD;IACnD,SAAgB,SAAS,EAAE,eAAe,CAAC;IAE3C,4CAA4C;IAC5C,SAAgB,aAAa,EAAE,mBAAmB,CAAC;IAEnD,4DAA4D;IAC5D,SAAgB,YAAY,EAAE,iBAAiB,CAAC;IAMhD,OAAO,CAAC,IAAI,CAAqB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