@nemphi/sdk 0.2.4853 → 0.2.4898

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/index.d.ts CHANGED
@@ -5056,6 +5056,19 @@ export interface PublicCallCenterCall {
5056
5056
  status: MarketingCallStatus;
5057
5057
  key?: string;
5058
5058
  join_token?: string | null;
5059
+ /** Present while the queue's voice agent holds the call: the page sends it the caller's audio too. */
5060
+ voice_agent?: boolean;
5061
+ }
5062
+ /** The caller's microphone pushed to the voice agent's media app. */
5063
+ export interface PublicCallCenterAgentPush {
5064
+ session_id: string;
5065
+ /** The SDP answer to the browser's offer. */
5066
+ sdp: string;
5067
+ }
5068
+ /** The agent's voice pulled into the caller's session: an SDP offer to answer when `renegotiate`. */
5069
+ export interface PublicCallCenterAgentPull {
5070
+ sdp: string;
5071
+ renegotiate: boolean;
5059
5072
  }
5060
5073
  /** One person's call-center desk (`callcenter.desk`). */
5061
5074
  export interface CallCenterDesk {
@@ -9329,6 +9342,16 @@ export interface NemphiClient {
9329
9342
  getPublicCallCenterCall(key: string, callId: string, callerKey: string): Promise<PublicCallCenterCall>;
9330
9343
  /** Hangs up a web call that is still ringing. */
9331
9344
  hangUpPublicCallCenterCall(key: string, callId: string, callerKey: string): Promise<PublicCallCenterCall>;
9345
+ /**
9346
+ * While the queue's voice agent holds a web call (`voice_agent`), pushes
9347
+ * the caller's microphone to the agent's media app: the browser's SDP
9348
+ * offer for transceiver `mid` in, the session and the SDP answer out.
9349
+ */
9350
+ pushPublicCallCenterAgent(key: string, callId: string, callerKey: string, sdp: string, mid: string): Promise<PublicCallCenterAgentPush>;
9351
+ /** Pulls the agent's voice into the caller's session; 409 `agent_not_ready` until it is seated. */
9352
+ pullPublicCallCenterAgent(key: string, callId: string, callerKey: string, sessionId: string): Promise<PublicCallCenterAgentPull>;
9353
+ /** Hands the browser's SDP answer to a pull's offer back. */
9354
+ answerPublicCallCenterAgent(key: string, callId: string, callerKey: string, sessionId: string, sdp: string): Promise<void>;
9332
9355
  /** Claims a guest seat on a call link; poll `getPublicCallParticipant` with the result. */
9333
9356
  joinPublicCall(token: string, name: string): Promise<PublicCallJoin>;
9334
9357
  /** Polls a guest seat for its media token. Unauthenticated. */