ysyt-agent-sdk 1.1.0 → 1.1.2

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.
@@ -50,7 +50,10 @@ export declare enum WebsocketTypeEnum {
50
50
  CONTINUOUS_NOT_ANSWER = 133,
51
51
  PREVIEW_OUT_CALL = 134,
52
52
  SIGN_OUT = 135,
53
- SIGN_IN_SWITCH_DEVICE = 136
53
+ SIGN_IN_SWITCH_DEVICE = 136,
54
+ LISTEN_CALL_FAILED = 137,
55
+ LISTEN_INCOMING_CALL = 138,
56
+ LISTEN_INCOMING_CALL_OFF_HOOK = 139
54
57
  }
55
58
  export declare enum WebRtcCallSipEventEnum {
56
59
  WEB_RTC_CONNECTING = "connecting",
@@ -108,7 +111,11 @@ export declare enum CallSipCallEventEnum {
108
111
  TRANSFER_INCOMING_CALL = "transfer_incoming_call",
109
112
  TRANSFER_OFF_HOOK = "transfer_off_hook",
110
113
  TRANSFER_END = "transfer_end",
111
- REJECT = "reject"
114
+ REJECT = "reject",
115
+ LISTEN_CALL_FAILED = "listen_call_failed",
116
+ LISTEN_INCOMING_CALL = "listen_incoming_call",
117
+ LISTEN_INCOMING_CALL_OFF_HOOK = "listen_incoming_call_off_hook",
118
+ LISTEN_HANGUP = "listen_hangup"
112
119
  }
113
120
  export declare enum EventName {
114
121
  EVENT_ALL = "event_all",
@@ -137,5 +144,6 @@ export declare enum DisplayTextEnum {
137
144
  TRANSFERRING = "\u8F6C\u63A5\u4E2D",
138
145
  TRANSFER_INCOMING_CALL = "\u8F6C\u63A5\u6765\u7535",
139
146
  HOLDING = "\u4FDD\u6301\u4E2D",
140
- MUTING = "\u9759\u97F3\u4E2D"
147
+ MUTING = "\u9759\u97F3\u4E2D",
148
+ LISTENING = "\u76D1\u542C\u6765\u7535"
141
149
  }
@@ -316,6 +316,13 @@ export interface Events {
316
316
  agent_no: string;
317
317
  answer_device: 2 | 3;
318
318
  };
319
+ [CallSipCallEventEnum.LISTEN_CALL_FAILED]: unknown;
320
+ [CallSipCallEventEnum.LISTEN_INCOMING_CALL]: {
321
+ session_id: string;
322
+ };
323
+ [CallSipCallEventEnum.LISTEN_INCOMING_CALL_OFF_HOOK]: {
324
+ session_id: string;
325
+ };
319
326
  [key: string]: unknown;
320
327
  [key: symbol]: unknown;
321
328
  }
@@ -11,3 +11,4 @@ export declare const transferConfig: ActionConfigsType;
11
11
  export declare const conferenceConfig: ActionConfigsType;
12
12
  export declare const incomingCallConfig: ActionConfigsType;
13
13
  export declare const incomingCallAnswerConfig: ActionConfigsType;
14
+ export declare const listenSuccessConfig: ActionConfigsType;