ysyt-agent-sdk 2.0.52 → 2.0.54
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/src/types/Enum.d.ts
CHANGED
|
@@ -59,7 +59,8 @@ export declare enum WebsocketTypeEnum {
|
|
|
59
59
|
CALL_FORCE_INSERT = 142,
|
|
60
60
|
INTERNAL_CALL_START_CONSULT = 145,
|
|
61
61
|
INTERNAL_CALL_END_CONSULT = 146,
|
|
62
|
-
CALL_SIP_INCOMING_CALL = 147
|
|
62
|
+
CALL_SIP_INCOMING_CALL = 147,
|
|
63
|
+
CALL_REAL_TIME_TRANSCRIPT = 148
|
|
63
64
|
}
|
|
64
65
|
export declare enum WebRtcCallSipEventEnum {
|
|
65
66
|
WEB_RTC_CONNECTING = "connecting",
|
|
@@ -135,7 +136,8 @@ export declare enum CallSipCallEventEnum {
|
|
|
135
136
|
CALL_FORCE_INSERT_SUCCESS = "call_force_insert_success",
|
|
136
137
|
CALL_FORCE_INSERT_SUCCESS_LISTENER = "call_force_insert_success_listener",
|
|
137
138
|
CALL_FORCE_INSERT_FAILED = "call_force_insert_failed",
|
|
138
|
-
CALL_SIP_INCOMING_CALL = "call_sip_incoming_call"
|
|
139
|
+
CALL_SIP_INCOMING_CALL = "call_sip_incoming_call",
|
|
140
|
+
REAL_TIME_TRANSCRIPTION = "real_time_transcription"
|
|
139
141
|
}
|
|
140
142
|
export declare enum EventName {
|
|
141
143
|
EVENT_ALL = "event_all",
|
|
@@ -126,9 +126,6 @@ export interface SeatStatusItemType {
|
|
|
126
126
|
}
|
|
127
127
|
export type AgentStateDataType = Pick<SeatStatusItemType, 'state_name' | 'state'>[];
|
|
128
128
|
export interface CallCrmObject {
|
|
129
|
-
/**
|
|
130
|
-
* 号码归属地城市
|
|
131
|
-
*/
|
|
132
129
|
city: string;
|
|
133
130
|
/**
|
|
134
131
|
* 联系次数
|
|
@@ -227,6 +224,14 @@ export interface Events {
|
|
|
227
224
|
[EventName.AGENT_INIT_STATUS]: boolean;
|
|
228
225
|
[EventName.KICK_OFF]: unknown;
|
|
229
226
|
[CallSipCallEventEnum.CALL_SIP_INCOMING_CALL]: unknown;
|
|
227
|
+
[CallSipCallEventEnum.REAL_TIME_TRANSCRIPTION]: {
|
|
228
|
+
start_time: string;
|
|
229
|
+
session_id: string;
|
|
230
|
+
dialog: {
|
|
231
|
+
type: 0 | 1;
|
|
232
|
+
text: string;
|
|
233
|
+
};
|
|
234
|
+
};
|
|
230
235
|
[CallSipCallEventEnum.CALL_PROGRESS]: string;
|
|
231
236
|
[WebRtcCallSipEventEnum.WEB_RTC_CONNECTING]: unknown;
|
|
232
237
|
[WebRtcCallSipEventEnum.WEB_RTC_CONNECTED]: unknown;
|