@speakai/shared 2.1.4 → 2.1.6
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/dist/enums/menu.d.ts +7 -2
- package/dist/enums/menu.d.ts.map +1 -1
- package/dist/enums/menu.js +6 -0
- package/dist/enums/menu.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/schemas/dashboard-spec.schema.d.ts.map +1 -1
- package/dist/schemas/dashboard-spec.schema.js +15 -1
- package/dist/schemas/dashboard-spec.schema.js.map +1 -1
- package/dist/voice/enums/agent.d.ts +19 -0
- package/dist/voice/enums/agent.d.ts.map +1 -0
- package/dist/voice/enums/agent.js +18 -0
- package/dist/voice/enums/agent.js.map +1 -0
- package/dist/voice/enums/auth.d.ts +19 -0
- package/dist/voice/enums/auth.d.ts.map +1 -0
- package/dist/voice/enums/auth.js +21 -0
- package/dist/voice/enums/auth.js.map +1 -0
- package/dist/voice/enums/avatar.d.ts +6 -0
- package/dist/voice/enums/avatar.d.ts.map +1 -0
- package/dist/voice/enums/avatar.js +5 -0
- package/dist/voice/enums/avatar.js.map +1 -0
- package/dist/voice/enums/billing.d.ts +26 -0
- package/dist/voice/enums/billing.d.ts.map +1 -0
- package/dist/voice/enums/billing.js +29 -0
- package/dist/voice/enums/billing.js.map +1 -0
- package/dist/voice/enums/conversation.d.ts +62 -0
- package/dist/voice/enums/conversation.d.ts.map +1 -0
- package/dist/voice/enums/conversation.js +73 -0
- package/dist/voice/enums/conversation.js.map +1 -0
- package/dist/voice/enums/dataCollection.d.ts +54 -0
- package/dist/voice/enums/dataCollection.d.ts.map +1 -0
- package/dist/voice/enums/dataCollection.js +59 -0
- package/dist/voice/enums/dataCollection.js.map +1 -0
- package/dist/voice/enums/index.d.ts +22 -0
- package/dist/voice/enums/index.d.ts.map +1 -0
- package/dist/voice/enums/index.js +22 -0
- package/dist/voice/enums/index.js.map +1 -0
- package/dist/voice/enums/integration.d.ts +80 -0
- package/dist/voice/enums/integration.d.ts.map +1 -0
- package/dist/voice/enums/integration.js +96 -0
- package/dist/voice/enums/integration.js.map +1 -0
- package/dist/voice/enums/livekit.d.ts +26 -0
- package/dist/voice/enums/livekit.d.ts.map +1 -0
- package/dist/voice/enums/livekit.js +35 -0
- package/dist/voice/enums/livekit.js.map +1 -0
- package/dist/voice/enums/notification.d.ts +6 -0
- package/dist/voice/enums/notification.d.ts.map +1 -0
- package/dist/voice/enums/notification.js +5 -0
- package/dist/voice/enums/notification.js.map +1 -0
- package/dist/voice/enums/organization.d.ts +11 -0
- package/dist/voice/enums/organization.d.ts.map +1 -0
- package/dist/voice/enums/organization.js +12 -0
- package/dist/voice/enums/organization.js.map +1 -0
- package/dist/voice/enums/providers.d.ts +28 -0
- package/dist/voice/enums/providers.d.ts.map +1 -0
- package/dist/voice/enums/providers.js +35 -0
- package/dist/voice/enums/providers.js.map +1 -0
- package/dist/voice/enums/structuredOutput.d.ts +15 -0
- package/dist/voice/enums/structuredOutput.d.ts.map +1 -0
- package/dist/voice/enums/structuredOutput.js +16 -0
- package/dist/voice/enums/structuredOutput.js.map +1 -0
- package/dist/voice/enums/telephony.d.ts +6 -0
- package/dist/voice/enums/telephony.d.ts.map +1 -0
- package/dist/voice/enums/telephony.js +5 -0
- package/dist/voice/enums/telephony.js.map +1 -0
- package/dist/voice/enums/voice.d.ts +6 -0
- package/dist/voice/enums/voice.d.ts.map +1 -0
- package/dist/voice/enums/voice.js +5 -0
- package/dist/voice/enums/voice.js.map +1 -0
- package/dist/voice/index.d.ts +11 -0
- package/dist/voice/index.d.ts.map +1 -0
- package/dist/voice/index.js +11 -0
- package/dist/voice/index.js.map +1 -0
- package/dist/voice/interfaces/agent.d.ts +246 -0
- package/dist/voice/interfaces/agent.d.ts.map +1 -0
- package/dist/voice/interfaces/agent.js +12 -0
- package/dist/voice/interfaces/agent.js.map +1 -0
- package/dist/voice/interfaces/analytics.d.ts +45 -0
- package/dist/voice/interfaces/analytics.d.ts.map +1 -0
- package/dist/voice/interfaces/analytics.js +6 -0
- package/dist/voice/interfaces/analytics.js.map +1 -0
- package/dist/voice/interfaces/avatar.d.ts +60 -0
- package/dist/voice/interfaces/avatar.d.ts.map +1 -0
- package/dist/voice/interfaces/avatar.js +5 -0
- package/dist/voice/interfaces/avatar.js.map +1 -0
- package/dist/voice/interfaces/billing.d.ts +130 -0
- package/dist/voice/interfaces/billing.d.ts.map +1 -0
- package/dist/voice/interfaces/billing.js +6 -0
- package/dist/voice/interfaces/billing.js.map +1 -0
- package/dist/voice/interfaces/conversation.d.ts +132 -0
- package/dist/voice/interfaces/conversation.d.ts.map +1 -0
- package/dist/voice/interfaces/conversation.js +6 -0
- package/dist/voice/interfaces/conversation.js.map +1 -0
- package/dist/voice/interfaces/dataCollection.d.ts +173 -0
- package/dist/voice/interfaces/dataCollection.d.ts.map +1 -0
- package/dist/voice/interfaces/dataCollection.js +6 -0
- package/dist/voice/interfaces/dataCollection.js.map +1 -0
- package/dist/voice/interfaces/index.d.ts +23 -0
- package/dist/voice/interfaces/index.d.ts.map +1 -0
- package/dist/voice/interfaces/index.js +23 -0
- package/dist/voice/interfaces/index.js.map +1 -0
- package/dist/voice/interfaces/integration.d.ts +146 -0
- package/dist/voice/interfaces/integration.d.ts.map +1 -0
- package/dist/voice/interfaces/integration.js +2 -0
- package/dist/voice/interfaces/integration.js.map +1 -0
- package/dist/voice/interfaces/kbGap.d.ts +21 -0
- package/dist/voice/interfaces/kbGap.d.ts.map +1 -0
- package/dist/voice/interfaces/kbGap.js +2 -0
- package/dist/voice/interfaces/kbGap.js.map +1 -0
- package/dist/voice/interfaces/knowledgeBase.d.ts +24 -0
- package/dist/voice/interfaces/knowledgeBase.d.ts.map +1 -0
- package/dist/voice/interfaces/knowledgeBase.js +6 -0
- package/dist/voice/interfaces/knowledgeBase.js.map +1 -0
- package/dist/voice/interfaces/livekit.d.ts +29 -0
- package/dist/voice/interfaces/livekit.d.ts.map +1 -0
- package/dist/voice/interfaces/livekit.js +5 -0
- package/dist/voice/interfaces/livekit.js.map +1 -0
- package/dist/voice/interfaces/notification.d.ts +19 -0
- package/dist/voice/interfaces/notification.d.ts.map +1 -0
- package/dist/voice/interfaces/notification.js +5 -0
- package/dist/voice/interfaces/notification.js.map +1 -0
- package/dist/voice/interfaces/organization.d.ts +49 -0
- package/dist/voice/interfaces/organization.d.ts.map +1 -0
- package/dist/voice/interfaces/organization.js +9 -0
- package/dist/voice/interfaces/organization.js.map +1 -0
- package/dist/voice/interfaces/structuredOutput.d.ts +75 -0
- package/dist/voice/interfaces/structuredOutput.d.ts.map +1 -0
- package/dist/voice/interfaces/structuredOutput.js +6 -0
- package/dist/voice/interfaces/structuredOutput.js.map +1 -0
- package/dist/voice/interfaces/telephony.d.ts +116 -0
- package/dist/voice/interfaces/telephony.d.ts.map +1 -0
- package/dist/voice/interfaces/telephony.js +5 -0
- package/dist/voice/interfaces/telephony.js.map +1 -0
- package/dist/voice/interfaces/testing.d.ts +141 -0
- package/dist/voice/interfaces/testing.d.ts.map +1 -0
- package/dist/voice/interfaces/testing.js +6 -0
- package/dist/voice/interfaces/testing.js.map +1 -0
- package/dist/voice/interfaces/voice.d.ts +34 -0
- package/dist/voice/interfaces/voice.d.ts.map +1 -0
- package/dist/voice/interfaces/voice.js +5 -0
- package/dist/voice/interfaces/voice.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* LiveKit Types
|
|
3
|
+
*/
|
|
4
|
+
export var LiveKitDataMessageType;
|
|
5
|
+
(function (LiveKitDataMessageType) {
|
|
6
|
+
// Existing message types (locked contract)
|
|
7
|
+
LiveKitDataMessageType["USER_MESSAGE"] = "user_message";
|
|
8
|
+
LiveKitDataMessageType["AGENT_MESSAGE"] = "agent_message";
|
|
9
|
+
LiveKitDataMessageType["AGENT_STATE"] = "agent_state";
|
|
10
|
+
LiveKitDataMessageType["USER_STATE"] = "user_state";
|
|
11
|
+
// Session lifecycle
|
|
12
|
+
LiveKitDataMessageType["SESSION_WARNING"] = "session_warning";
|
|
13
|
+
LiveKitDataMessageType["CALL_ENDING"] = "call_ending";
|
|
14
|
+
// Transfer status
|
|
15
|
+
LiveKitDataMessageType["TRANSFER_STARTED"] = "transfer_started";
|
|
16
|
+
LiveKitDataMessageType["TRANSFER_COMPLETED"] = "transfer_completed";
|
|
17
|
+
LiveKitDataMessageType["TRANSFER_FAILED"] = "transfer_failed";
|
|
18
|
+
// Canvas / content sharing
|
|
19
|
+
LiveKitDataMessageType["CANVAS_SHOW"] = "canvas_show";
|
|
20
|
+
LiveKitDataMessageType["CANVAS_CLEAR"] = "canvas_clear";
|
|
21
|
+
LiveKitDataMessageType["CANVAS_COMPLETED"] = "canvas_completed";
|
|
22
|
+
// Web search state
|
|
23
|
+
LiveKitDataMessageType["WEB_SEARCH_START"] = "web_search_start";
|
|
24
|
+
LiveKitDataMessageType["WEB_SEARCH_END"] = "web_search_end";
|
|
25
|
+
// Tool call state (live-UI frames for a Composio tool running)
|
|
26
|
+
LiveKitDataMessageType["TOOL_CALL_START"] = "tool_call_start";
|
|
27
|
+
LiveKitDataMessageType["TOOL_CALL_END"] = "tool_call_end";
|
|
28
|
+
// Resource sharing
|
|
29
|
+
LiveKitDataMessageType["RESOURCE_LINK"] = "resource_link";
|
|
30
|
+
// Data collection
|
|
31
|
+
LiveKitDataMessageType["DATA_COLLECTION_COMPLETE"] = "data_collection_complete";
|
|
32
|
+
// Avatar lifecycle
|
|
33
|
+
LiveKitDataMessageType["AVATAR_DEGRADED_CAPACITY"] = "avatar_degraded_capacity";
|
|
34
|
+
})(LiveKitDataMessageType || (LiveKitDataMessageType = {}));
|
|
35
|
+
//# sourceMappingURL=livekit.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"livekit.js","sourceRoot":"","sources":["../../../src/voice/enums/livekit.ts"],"names":[],"mappings":"AAAA;;GAEG;AAOH,MAAM,CAAN,IAAY,sBA6BX;AA7BD,WAAY,sBAAsB;IAChC,2CAA2C;IAC3C,uDAAmC,CAAA;IACnC,yDAAoC,CAAA;IACpC,qDAAkC,CAAA;IAClC,mDAAiC,CAAA;IACjC,oBAAoB;IACpB,6DAAsC,CAAA;IACtC,qDAAkC,CAAA;IAClC,kBAAkB;IAClB,+DAAuC,CAAA;IACvC,mEAAyC,CAAA;IACzC,6DAAsC,CAAA;IACtC,2BAA2B;IAC3B,qDAAkC,CAAA;IAClC,uDAAmC,CAAA;IACnC,+DAAuC,CAAA;IACvC,mBAAmB;IACnB,+DAAuC,CAAA;IACvC,2DAAqC,CAAA;IACrC,+DAA+D;IAC/D,6DAAsC,CAAA;IACtC,yDAAoC,CAAA;IACpC,mBAAmB;IACnB,yDAAoC,CAAA;IACpC,kBAAkB;IAClB,+EAAqD,CAAA;IACrD,mBAAmB;IACnB,+EAAqD,CAAA;AACvD,CAAC,EA7BW,sBAAsB,KAAtB,sBAAsB,QA6BjC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Notification Types
|
|
3
|
+
*/
|
|
4
|
+
export type VoiceNotificationType = "agent_created" | "agent_updated" | "agent_deleted" | "conversation_recorded" | "ai_usage_charged" | "low_credits" | "tool_connected" | "tool_expiry_warning" | "tool_disconnected";
|
|
5
|
+
export type NotificationResourceType = "agent" | "conversation" | "integration";
|
|
6
|
+
//# sourceMappingURL=notification.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notification.d.ts","sourceRoot":"","sources":["../../../src/voice/enums/notification.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,MAAM,MAAM,qBAAqB,GAC7B,eAAe,GACf,eAAe,GACf,eAAe,GACf,uBAAuB,GACvB,kBAAkB,GAClB,aAAa,GACb,gBAAgB,GAChB,qBAAqB,GACrB,mBAAmB,CAAC;AAExB,MAAM,MAAM,wBAAwB,GAChC,OAAO,GACP,cAAc,GACd,aAAa,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notification.js","sourceRoot":"","sources":["../../../src/voice/enums/notification.ts"],"names":[],"mappings":"AAAA;;GAEG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"organization.d.ts","sourceRoot":"","sources":["../../../src/voice/enums/organization.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,oBAAY,OAAO;IACjB,KAAK,UAAW;IAChB,KAAK,UAAW;IAChB,MAAM,WAAW;IACjB,MAAM,WAAW;CAClB;AAED,eAAO,MAAM,SAAS,WAAyB,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Organization Enums
|
|
3
|
+
*/
|
|
4
|
+
export var OrgRole;
|
|
5
|
+
(function (OrgRole) {
|
|
6
|
+
OrgRole["OWNER"] = "owner";
|
|
7
|
+
OrgRole["ADMIN"] = "admin";
|
|
8
|
+
OrgRole["EDITOR"] = "editor";
|
|
9
|
+
OrgRole["VIEWER"] = "viewer";
|
|
10
|
+
})(OrgRole || (OrgRole = {}));
|
|
11
|
+
export const ORG_ROLES = Object.values(OrgRole);
|
|
12
|
+
//# sourceMappingURL=organization.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"organization.js","sourceRoot":"","sources":["../../../src/voice/enums/organization.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,MAAM,CAAN,IAAY,OAKX;AALD,WAAY,OAAO;IACjB,0BAAgB,CAAA;IAChB,0BAAgB,CAAA;IAChB,4BAAiB,CAAA;IACjB,4BAAiB,CAAA;AACnB,CAAC,EALW,OAAO,KAAP,OAAO,QAKlB;AAED,MAAM,CAAC,MAAM,SAAS,GAAG,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Provider Enums
|
|
3
|
+
* Single source of truth for all AI service providers
|
|
4
|
+
*/
|
|
5
|
+
export declare enum STTProvider {
|
|
6
|
+
DEEPGRAM = "deepgram",
|
|
7
|
+
OPENAI = "openai",
|
|
8
|
+
GOOGLE = "google",
|
|
9
|
+
AZURE = "azure",
|
|
10
|
+
GROQ = "groq",
|
|
11
|
+
ASSEMBLYAI = "assemblyai"
|
|
12
|
+
}
|
|
13
|
+
export declare enum TTSProvider {
|
|
14
|
+
ELEVENLABS = "elevenlabs",
|
|
15
|
+
OPENAI = "openai",
|
|
16
|
+
DEEPGRAM = "deepgram",
|
|
17
|
+
CARTESIA = "cartesia",
|
|
18
|
+
GOOGLE = "google",
|
|
19
|
+
AZURE = "azure"
|
|
20
|
+
}
|
|
21
|
+
export declare enum AvatarProvider {
|
|
22
|
+
BEY = "bey",
|
|
23
|
+
TAVUS = "tavus",
|
|
24
|
+
HEYGEN = "heygen",
|
|
25
|
+
SYNTHESIA = "synthesia",
|
|
26
|
+
D_ID = "d-id"
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=providers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"providers.d.ts","sourceRoot":"","sources":["../../../src/voice/enums/providers.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,oBAAY,WAAW;IACrB,QAAQ,aAAa;IACrB,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,KAAK,UAAU;IACf,IAAI,SAAS;IACb,UAAU,eAAe;CAC1B;AAED,oBAAY,WAAW;IACrB,UAAU,eAAe;IACzB,MAAM,WAAW;IACjB,QAAQ,aAAa;IACrB,QAAQ,aAAa;IACrB,MAAM,WAAW;IACjB,KAAK,UAAU;CAChB;AAOD,oBAAY,cAAc;IACxB,GAAG,QAAQ;IACX,KAAK,UAAU;IACf,MAAM,WAAW;IACjB,SAAS,cAAc;IACvB,IAAI,SAAS;CACd"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Provider Enums
|
|
3
|
+
* Single source of truth for all AI service providers
|
|
4
|
+
*/
|
|
5
|
+
export var STTProvider;
|
|
6
|
+
(function (STTProvider) {
|
|
7
|
+
STTProvider["DEEPGRAM"] = "deepgram";
|
|
8
|
+
STTProvider["OPENAI"] = "openai";
|
|
9
|
+
STTProvider["GOOGLE"] = "google";
|
|
10
|
+
STTProvider["AZURE"] = "azure";
|
|
11
|
+
STTProvider["GROQ"] = "groq";
|
|
12
|
+
STTProvider["ASSEMBLYAI"] = "assemblyai";
|
|
13
|
+
})(STTProvider || (STTProvider = {}));
|
|
14
|
+
export var TTSProvider;
|
|
15
|
+
(function (TTSProvider) {
|
|
16
|
+
TTSProvider["ELEVENLABS"] = "elevenlabs";
|
|
17
|
+
TTSProvider["OPENAI"] = "openai";
|
|
18
|
+
TTSProvider["DEEPGRAM"] = "deepgram";
|
|
19
|
+
TTSProvider["CARTESIA"] = "cartesia";
|
|
20
|
+
TTSProvider["GOOGLE"] = "google";
|
|
21
|
+
TTSProvider["AZURE"] = "azure";
|
|
22
|
+
})(TTSProvider || (TTSProvider = {}));
|
|
23
|
+
// NOTE: The LLM provider + model enum + pricing are the canonical ones in
|
|
24
|
+
// `@speakai/shared` (single source of truth across speak-server + voice-agent).
|
|
25
|
+
// Import `LLMProvider`, `LLMModels`, and `getModelPricing` / `MODEL_PRICING`
|
|
26
|
+
// from "@speakai/shared" — do not redefine them here.
|
|
27
|
+
export var AvatarProvider;
|
|
28
|
+
(function (AvatarProvider) {
|
|
29
|
+
AvatarProvider["BEY"] = "bey";
|
|
30
|
+
AvatarProvider["TAVUS"] = "tavus";
|
|
31
|
+
AvatarProvider["HEYGEN"] = "heygen";
|
|
32
|
+
AvatarProvider["SYNTHESIA"] = "synthesia";
|
|
33
|
+
AvatarProvider["D_ID"] = "d-id";
|
|
34
|
+
})(AvatarProvider || (AvatarProvider = {}));
|
|
35
|
+
//# sourceMappingURL=providers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"providers.js","sourceRoot":"","sources":["../../../src/voice/enums/providers.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,MAAM,CAAN,IAAY,WAOX;AAPD,WAAY,WAAW;IACrB,oCAAqB,CAAA;IACrB,gCAAiB,CAAA;IACjB,gCAAiB,CAAA;IACjB,8BAAe,CAAA;IACf,4BAAa,CAAA;IACb,wCAAyB,CAAA;AAC3B,CAAC,EAPW,WAAW,KAAX,WAAW,QAOtB;AAED,MAAM,CAAN,IAAY,WAOX;AAPD,WAAY,WAAW;IACrB,wCAAyB,CAAA;IACzB,gCAAiB,CAAA;IACjB,oCAAqB,CAAA;IACrB,oCAAqB,CAAA;IACrB,gCAAiB,CAAA;IACjB,8BAAe,CAAA;AACjB,CAAC,EAPW,WAAW,KAAX,WAAW,QAOtB;AAED,0EAA0E;AAC1E,gFAAgF;AAChF,6EAA6E;AAC7E,sDAAsD;AAEtD,MAAM,CAAN,IAAY,cAMX;AAND,WAAY,cAAc;IACxB,6BAAW,CAAA;IACX,iCAAe,CAAA;IACf,mCAAiB,CAAA;IACjB,yCAAuB,CAAA;IACvB,+BAAa,CAAA;AACf,CAAC,EANW,cAAc,KAAd,cAAc,QAMzB"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Structured Output Enums
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Supported types for structured outputs
|
|
6
|
+
*/
|
|
7
|
+
export declare enum StructuredOutputType {
|
|
8
|
+
STRING = "string",
|
|
9
|
+
BOOLEAN = "boolean",
|
|
10
|
+
NUMBER = "number",
|
|
11
|
+
INTEGER = "integer",
|
|
12
|
+
OBJECT = "object",
|
|
13
|
+
ARRAY = "array"
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=structuredOutput.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"structuredOutput.d.ts","sourceRoot":"","sources":["../../../src/voice/enums/structuredOutput.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;GAEG;AACH,oBAAY,oBAAoB;IAC9B,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,KAAK,UAAU;CAChB"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Structured Output Enums
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Supported types for structured outputs
|
|
6
|
+
*/
|
|
7
|
+
export var StructuredOutputType;
|
|
8
|
+
(function (StructuredOutputType) {
|
|
9
|
+
StructuredOutputType["STRING"] = "string";
|
|
10
|
+
StructuredOutputType["BOOLEAN"] = "boolean";
|
|
11
|
+
StructuredOutputType["NUMBER"] = "number";
|
|
12
|
+
StructuredOutputType["INTEGER"] = "integer";
|
|
13
|
+
StructuredOutputType["OBJECT"] = "object";
|
|
14
|
+
StructuredOutputType["ARRAY"] = "array";
|
|
15
|
+
})(StructuredOutputType || (StructuredOutputType = {}));
|
|
16
|
+
//# sourceMappingURL=structuredOutput.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"structuredOutput.js","sourceRoot":"","sources":["../../../src/voice/enums/structuredOutput.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;GAEG;AACH,MAAM,CAAN,IAAY,oBAOX;AAPD,WAAY,oBAAoB;IAC9B,yCAAiB,CAAA;IACjB,2CAAmB,CAAA;IACnB,yCAAiB,CAAA;IACjB,2CAAmB,CAAA;IACnB,yCAAiB,CAAA;IACjB,uCAAe,CAAA;AACjB,CAAC,EAPW,oBAAoB,KAApB,oBAAoB,QAO/B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"telephony.d.ts","sourceRoot":"","sources":["../../../src/voice/enums/telephony.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,MAAM,MAAM,eAAe,GAAG,WAAW,GAAG,MAAM,CAAC;AAEnD,MAAM,MAAM,iBAAiB,GAAG,SAAS,GAAG,QAAQ,GAAG,UAAU,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"telephony.js","sourceRoot":"","sources":["../../../src/voice/enums/telephony.ts"],"names":[],"mappings":"AAAA;;GAEG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"voice.d.ts","sourceRoot":"","sources":["../../../src/voice/enums/voice.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,MAAM,MAAM,WAAW,GAAG,QAAQ,GAAG,UAAU,GAAG,YAAY,GAAG,OAAO,CAAC;AAEzE,MAAM,MAAM,aAAa,GACrB,SAAS,GACT,QAAQ,GACR,QAAQ,GACR,cAAc,GACd,gBAAgB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"voice.js","sourceRoot":"","sources":["../../../src/voice/enums/voice.ts"],"names":[],"mappings":"AAAA;;GAEG"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Voice Agent domain types (enums + interfaces).
|
|
3
|
+
*
|
|
4
|
+
* Re-exported from the root barrel (`@speakai/shared`) — there is no separate
|
|
5
|
+
* `/voice` subpath. Types that overlap a platform concept carry a `Voice` prefix
|
|
6
|
+
* (e.g. `VoiceIntegrationAuthType` with 'apiKey' vs the platform
|
|
7
|
+
* `IntegrationAuthType` with 'api_key') so both value sets coexist on the root.
|
|
8
|
+
*/
|
|
9
|
+
export * from "./enums/index.js";
|
|
10
|
+
export * from "./interfaces/index.js";
|
|
11
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/voice/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Voice Agent domain types (enums + interfaces).
|
|
3
|
+
*
|
|
4
|
+
* Re-exported from the root barrel (`@speakai/shared`) — there is no separate
|
|
5
|
+
* `/voice` subpath. Types that overlap a platform concept carry a `Voice` prefix
|
|
6
|
+
* (e.g. `VoiceIntegrationAuthType` with 'apiKey' vs the platform
|
|
7
|
+
* `IntegrationAuthType` with 'api_key') so both value sets coexist on the root.
|
|
8
|
+
*/
|
|
9
|
+
export * from "./enums/index.js";
|
|
10
|
+
export * from "./interfaces/index.js";
|
|
11
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/voice/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC"}
|
|
@@ -0,0 +1,246 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Agent Types and Interfaces
|
|
3
|
+
* Client-facing agent contract shared across backend and client.
|
|
4
|
+
*
|
|
5
|
+
* The proprietary agent-generation pipeline types (GenerationMeta/Step/Event,
|
|
6
|
+
* ExtractedInput, InstructionGapSuggestion, GENERATION_STEP_ORDER/_LABELS,
|
|
7
|
+
* PromptQuality, …) and the runtime AgentConfig/WorkerConfig live privately in
|
|
8
|
+
* speak-server (`@speak-voice-generation-internal`) and are intentionally NOT
|
|
9
|
+
* part of this public package.
|
|
10
|
+
*/
|
|
11
|
+
import { AvatarProvider, TTSProvider, STTProvider } from "../enums/providers.js";
|
|
12
|
+
import { LLMProvider } from "../../enums/llm.js";
|
|
13
|
+
import { AgentStatusType } from "../enums/agent.js";
|
|
14
|
+
import { IntegrationSlug } from "../enums/integration.js";
|
|
15
|
+
import { AgentTelephonySettings } from "./telephony.js";
|
|
16
|
+
/**
|
|
17
|
+
* Pronunciation rule for TTS providers that support pronunciation dictionaries
|
|
18
|
+
* (currently ElevenLabs). `term` is the input text to match; `pronounceAs` is the
|
|
19
|
+
* alias the TTS should speak instead.
|
|
20
|
+
*/
|
|
21
|
+
export interface PronunciationRule {
|
|
22
|
+
term: string;
|
|
23
|
+
pronounceAs: string;
|
|
24
|
+
caseSensitive?: boolean;
|
|
25
|
+
wordBoundaries?: boolean;
|
|
26
|
+
type?: "alias" | "phoneme";
|
|
27
|
+
alphabet?: "cmu-arpabet";
|
|
28
|
+
}
|
|
29
|
+
export type PronunciationAlphabet = "cmu-arpabet" | "respelling";
|
|
30
|
+
export type PronunciationSyncStatus = "synced" | "unsynced" | "failed" | "not_applicable";
|
|
31
|
+
export interface PronunciationSuggestion {
|
|
32
|
+
phonemes: string;
|
|
33
|
+
syllable_breakdown: string;
|
|
34
|
+
confidence: "high" | "medium" | "low";
|
|
35
|
+
}
|
|
36
|
+
export interface PronunciationSuggestionInput {
|
|
37
|
+
term: string;
|
|
38
|
+
alphabet: PronunciationAlphabet;
|
|
39
|
+
hint?: string;
|
|
40
|
+
}
|
|
41
|
+
export interface PronunciationData {
|
|
42
|
+
rules: PronunciationRule[];
|
|
43
|
+
syncStatus: PronunciationSyncStatus;
|
|
44
|
+
syncedAt?: string;
|
|
45
|
+
elevenLabsDictId?: string;
|
|
46
|
+
elevenLabsVersionId?: string;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Widget configuration for embedded agents
|
|
50
|
+
*/
|
|
51
|
+
export interface WidgetConfig {
|
|
52
|
+
displayMode?: "floating" | "inline";
|
|
53
|
+
position?: "bottom-left" | "bottom-right";
|
|
54
|
+
bubbleIconType?: "avatar" | "generic";
|
|
55
|
+
buttonSize?: "small" | "medium" | "large";
|
|
56
|
+
buttonColor?: string;
|
|
57
|
+
theme?: "light" | "dark" | "auto";
|
|
58
|
+
compactMode?: boolean;
|
|
59
|
+
defaultMode?: "voice" | "avatar";
|
|
60
|
+
showAvatar?: boolean;
|
|
61
|
+
voiceEnabled?: boolean;
|
|
62
|
+
fontFamily?: string;
|
|
63
|
+
borderRadius?: number;
|
|
64
|
+
backgroundColor?: string;
|
|
65
|
+
enableUserCamera?: boolean;
|
|
66
|
+
/** When true, the chat panel opens automatically once the agent joins the conversation. Defaults to false. */
|
|
67
|
+
chatOpenByDefault?: boolean;
|
|
68
|
+
language?: string;
|
|
69
|
+
companyLogoUrl?: string;
|
|
70
|
+
/** Launcher greeting title beside the bubble. Default: "👋 Hi! Want to chat?" */
|
|
71
|
+
launcherTitle?: string;
|
|
72
|
+
/** Launcher greeting subtitle beside the bubble. Default: "Start a conversation" */
|
|
73
|
+
launcherSubtitle?: string;
|
|
74
|
+
/** Whether the launcher greeting is shown (floating mode only). Default: true */
|
|
75
|
+
showLauncher?: boolean;
|
|
76
|
+
/** Title on the pre-start screen. Default: "Ready to start" */
|
|
77
|
+
beforeCallTitle?: string;
|
|
78
|
+
/** Description on the pre-start screen. Default: "Tap below to start a quick conversation." */
|
|
79
|
+
beforeCallDescription?: string;
|
|
80
|
+
/** Label for the start button. Default: "Start conversation" */
|
|
81
|
+
startButtonLabel?: string;
|
|
82
|
+
/** Title on the post-end screen. Default: "Thanks for chatting" */
|
|
83
|
+
afterCallTitle?: string;
|
|
84
|
+
/** Description on the post-end screen. Default: "We hope it was useful." */
|
|
85
|
+
afterCallDescription?: string;
|
|
86
|
+
/** When true, show the post-call feedback card (stars + comment). Default: false */
|
|
87
|
+
feedbackEnabled?: boolean;
|
|
88
|
+
}
|
|
89
|
+
/** Subset of WidgetConfig for API update payloads (partial updates) */
|
|
90
|
+
export type WidgetConfigUpdate = Partial<WidgetConfig>;
|
|
91
|
+
/**
|
|
92
|
+
* Agent share settings
|
|
93
|
+
*/
|
|
94
|
+
export interface AgentShareSettings {
|
|
95
|
+
isPublic: boolean;
|
|
96
|
+
shareToken?: string;
|
|
97
|
+
shortCode?: string;
|
|
98
|
+
allowedDomains: string[];
|
|
99
|
+
expiresAt?: string;
|
|
100
|
+
widgetConfig?: WidgetConfig;
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* A single Composio tool selected for an agent.
|
|
104
|
+
*
|
|
105
|
+
* The tool's JSON Schema (`paramsSchema`) is persisted at pick-time so the
|
|
106
|
+
* worker/dispatcher can register the live LiveKit tool without making a
|
|
107
|
+
* Composio API call. Connections are ORG-scoped (D3): `slug` references an
|
|
108
|
+
* org-connected app, and `toolName` is the specific Composio tool slug on
|
|
109
|
+
* that app.
|
|
110
|
+
*/
|
|
111
|
+
export interface AgentSelectedTool {
|
|
112
|
+
/** The org-connected Composio app this tool belongs to (e.g. IntegrationSlug.GMAIL). */
|
|
113
|
+
slug: IntegrationSlug;
|
|
114
|
+
/** Composio tool slug, e.g. "GMAIL_SEND_EMAIL". */
|
|
115
|
+
toolName: string;
|
|
116
|
+
/** Human-readable label shown in the UI. */
|
|
117
|
+
displayName: string;
|
|
118
|
+
/** The tool's JSON Schema, persisted at pick-time so the worker needs no Composio call. */
|
|
119
|
+
paramsSchema: Record<string, any>;
|
|
120
|
+
/** When true, the agent must confirm with the user before invoking (drives the confirm gate). */
|
|
121
|
+
destructive?: boolean;
|
|
122
|
+
/**
|
|
123
|
+
* Provider-side account id (Composio connected-account id) this tool is bound
|
|
124
|
+
* to. Optional for backwards compatibility; pins the tool to a specific
|
|
125
|
+
* connected account when multiple accounts exist for the same provider.
|
|
126
|
+
*/
|
|
127
|
+
providerAccountId?: string;
|
|
128
|
+
/** Best-effort account email for the bound account (display only; may be absent). */
|
|
129
|
+
accountEmail?: string;
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* Full Agent entity (for client/frontend use)
|
|
133
|
+
*/
|
|
134
|
+
export interface Agent {
|
|
135
|
+
agentId: string;
|
|
136
|
+
userId: string;
|
|
137
|
+
name: string;
|
|
138
|
+
avatar: {
|
|
139
|
+
avatarId?: string;
|
|
140
|
+
avatarUrl?: string;
|
|
141
|
+
provider?: AvatarProvider;
|
|
142
|
+
tavusFaceId?: string;
|
|
143
|
+
tavusPalId?: string;
|
|
144
|
+
};
|
|
145
|
+
voice: {
|
|
146
|
+
provider: TTSProvider;
|
|
147
|
+
voiceId: string;
|
|
148
|
+
model?: string;
|
|
149
|
+
pronunciationRules?: PronunciationRule[];
|
|
150
|
+
elevenLabsDictId?: string;
|
|
151
|
+
elevenLabsVersionId?: string;
|
|
152
|
+
pronunciationSyncedAt?: string;
|
|
153
|
+
/**
|
|
154
|
+
* Set to `true` when the most recent ElevenLabs sync attempt failed. The
|
|
155
|
+
* UI uses this to show a persistent "Sync failed" banner across page
|
|
156
|
+
* reloads. Cleared on the next successful sync or when rules are cleared.
|
|
157
|
+
*/
|
|
158
|
+
pronunciationSyncFailed?: boolean;
|
|
159
|
+
};
|
|
160
|
+
stt: {
|
|
161
|
+
provider: STTProvider;
|
|
162
|
+
model?: string;
|
|
163
|
+
lexiconTerms?: string[];
|
|
164
|
+
};
|
|
165
|
+
llm: {
|
|
166
|
+
provider: LLMProvider;
|
|
167
|
+
model?: string;
|
|
168
|
+
};
|
|
169
|
+
personality: string;
|
|
170
|
+
instructions: string;
|
|
171
|
+
chatSettings: {
|
|
172
|
+
welcomeMessage: string;
|
|
173
|
+
conversationStarters: string[];
|
|
174
|
+
maxResponseLength?: number;
|
|
175
|
+
topicsToAvoid: string[];
|
|
176
|
+
maxSessionLength: number;
|
|
177
|
+
language: string;
|
|
178
|
+
};
|
|
179
|
+
knowledgeBaseId?: string;
|
|
180
|
+
creativityLevel: number;
|
|
181
|
+
conversationMode: "voice" | "avatar";
|
|
182
|
+
recordingEnabled?: boolean;
|
|
183
|
+
status: AgentStatusType;
|
|
184
|
+
shareSettings: AgentShareSettings;
|
|
185
|
+
structuredOutputIds?: string[];
|
|
186
|
+
telephony?: AgentTelephonySettings;
|
|
187
|
+
conversationCount?: number;
|
|
188
|
+
websiteUrl?: string;
|
|
189
|
+
enableWebSearch?: boolean;
|
|
190
|
+
/** Composio tools (max 3) selected for this agent; enforced backend-side. */
|
|
191
|
+
selectedTools?: AgentSelectedTool[];
|
|
192
|
+
createdAt: string;
|
|
193
|
+
updatedAt: string;
|
|
194
|
+
}
|
|
195
|
+
/**
|
|
196
|
+
* Request to create a new agent
|
|
197
|
+
*/
|
|
198
|
+
export interface CreateAgentRequest {
|
|
199
|
+
name: string;
|
|
200
|
+
avatar?: {
|
|
201
|
+
avatarId?: string;
|
|
202
|
+
avatarUrl?: string;
|
|
203
|
+
provider?: AvatarProvider;
|
|
204
|
+
tavusFaceId?: string;
|
|
205
|
+
tavusPalId?: string;
|
|
206
|
+
};
|
|
207
|
+
voice: {
|
|
208
|
+
provider: TTSProvider;
|
|
209
|
+
voiceId: string;
|
|
210
|
+
model?: string;
|
|
211
|
+
};
|
|
212
|
+
stt?: {
|
|
213
|
+
provider: STTProvider;
|
|
214
|
+
model?: string;
|
|
215
|
+
};
|
|
216
|
+
llm?: {
|
|
217
|
+
provider: LLMProvider;
|
|
218
|
+
model?: string;
|
|
219
|
+
};
|
|
220
|
+
personality: string;
|
|
221
|
+
instructions: string;
|
|
222
|
+
chatSettings: {
|
|
223
|
+
welcomeMessage: string;
|
|
224
|
+
conversationStarters: string[];
|
|
225
|
+
maxResponseLength?: number;
|
|
226
|
+
topicsToAvoid: string[];
|
|
227
|
+
maxSessionLength: number;
|
|
228
|
+
language: string;
|
|
229
|
+
};
|
|
230
|
+
creativityLevel: number;
|
|
231
|
+
}
|
|
232
|
+
export interface AgentResource {
|
|
233
|
+
resourceId: string;
|
|
234
|
+
agentId: string;
|
|
235
|
+
organizationId: string;
|
|
236
|
+
url: string;
|
|
237
|
+
title: string;
|
|
238
|
+
description: string;
|
|
239
|
+
action: "link" | "presentation";
|
|
240
|
+
contentType?: "video" | "pdf" | "image";
|
|
241
|
+
isDeleted?: boolean;
|
|
242
|
+
deletedAt?: Date;
|
|
243
|
+
createdAt?: Date;
|
|
244
|
+
updatedAt?: Date;
|
|
245
|
+
}
|
|
246
|
+
//# sourceMappingURL=agent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent.d.ts","sourceRoot":"","sources":["../../../src/voice/interfaces/agent.ts"],"names":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AAc,CAAC;IAChC,WAAW,CAAC,EAAE,OAAO,GAAG,KAAK,GAAG,OAAO,CAAC;IACxC,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,IAAI,CAAC;IACjB,SAAS,CAAC,EAAE,IAAI,CAAC;IACjB,SAAS,CAAC,EAAE,IAAI,CAAC;CAClB"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Agent Types and Interfaces
|
|
3
|
+
* Client-facing agent contract shared across backend and client.
|
|
4
|
+
*
|
|
5
|
+
* The proprietary agent-generation pipeline types (GenerationMeta/Step/Event,
|
|
6
|
+
* ExtractedInput, InstructionGapSuggestion, GENERATION_STEP_ORDER/_LABELS,
|
|
7
|
+
* PromptQuality, …) and the runtime AgentConfig/WorkerConfig live privately in
|
|
8
|
+
* speak-server (`@speak-voice-generation-internal`) and are intentionally NOT
|
|
9
|
+
* part of this public package.
|
|
10
|
+
*/
|
|
11
|
+
export {};
|
|
12
|
+
//# sourceMappingURL=agent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent.js","sourceRoot":"","sources":["../../../src/voice/interfaces/agent.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Analytics Interfaces
|
|
3
|
+
* Dashboard and reporting aggregations
|
|
4
|
+
*/
|
|
5
|
+
export interface DailyCount {
|
|
6
|
+
date: string;
|
|
7
|
+
count: number;
|
|
8
|
+
}
|
|
9
|
+
export interface AnalyticsOverview {
|
|
10
|
+
totalConversations: number;
|
|
11
|
+
thisWeekCount: number;
|
|
12
|
+
lastWeekCount: number;
|
|
13
|
+
completionRate: number;
|
|
14
|
+
avgDurationSeconds: number;
|
|
15
|
+
dailyCounts: DailyCount[];
|
|
16
|
+
}
|
|
17
|
+
export interface EngagementBucket {
|
|
18
|
+
label: string;
|
|
19
|
+
minMessages: number;
|
|
20
|
+
maxMessages: number | null;
|
|
21
|
+
count: number;
|
|
22
|
+
percentage: number;
|
|
23
|
+
avgDurationSeconds: number;
|
|
24
|
+
sentimentBreakdown: {
|
|
25
|
+
positive: number;
|
|
26
|
+
neutral: number;
|
|
27
|
+
negative: number;
|
|
28
|
+
unanalyzed: number;
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
export interface EngagementFunnel {
|
|
32
|
+
buckets: EngagementBucket[];
|
|
33
|
+
totalConversations: number;
|
|
34
|
+
since: string | null;
|
|
35
|
+
}
|
|
36
|
+
export interface AgentFunnelSummary {
|
|
37
|
+
agentId: string;
|
|
38
|
+
agentName: string;
|
|
39
|
+
totalConversations: number;
|
|
40
|
+
bounceRate: number;
|
|
41
|
+
briefRate: number;
|
|
42
|
+
engagedRate: number;
|
|
43
|
+
deepRate: number;
|
|
44
|
+
}
|
|
45
|
+
//# sourceMappingURL=analytics.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"analytics.d.ts","sourceRoot":"","sources":["../../../src/voice/interfaces/analytics.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,iBAAiB;IAChC,kBAAkB,EAAE,MAAM,CAAC;IAC3B,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,MAAM,CAAC;IACtB,cAAc,EAAE,MAAM,CAAC;IACvB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,WAAW,EAAE,UAAU,EAAE,CAAC;CAC3B;AAED,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,kBAAkB,EAAE,MAAM,C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