CallRecording is the backend-agnostic facade for Post Call Recording. It selects a backend-specific connector based on the resolved calling backend and delegates all read/delete operations to it, while re-emitting the connector's recording lifecycle events.

Post Call Recording (convergedRecordings) is a Webex Calling cloud capability, so only the Webex Calling (WXC) backend is supported today; other backends (BWRKS/UCM/INVALID) are rejected, following the same convention used by the Voicemail client. Adding support for another backend is a matter of dropping in a new connector and a case here — no consumer-facing changes required.

Example

const callRecording = createCallRecordingClient(webex, logger);

Hierarchy

  • Eventing<CallRecordingEventTypes>
    • CallRecording

Implements

Properties

Methods

Events

Properties

logger: LoggerInterface

Methods

  • Reads Post Call Recordings, delegating to the active backend connector. The operation is selected by the request type and the response type is inferred per request.

    Type Parameters

    • T extends GetCallRecordingRequest

    Parameters

    • request: T

      The discriminated read request.

    Returns Promise<RecordingResponseFor<T>>

  • Permanently deletes a single recording. Per the API the recording cannot be recovered.

    Parameters

    • recordingId: string

      The recording id (id) to delete.

    • Optional options: DeleteRecordingOptions

      Optional reason/comment, only required for Compliance Officer deletions.

    Returns Promise<RecordingDeleteResponse>

Events

  • Type Parameters

    • E extends keyof CallRecordingEventTypes

    Parameters

    • event: E

      Event that is going ot be emitted.

    • Rest ...args: Parameters<CallRecordingEventTypes[E]>

      Parameters that are emitted with the event.

    Returns boolean

  • .

    Type Parameters

    • E extends keyof CallRecordingEventTypes

    Parameters

    • event: E

      Event to listen to.

    • listener: CallRecordingEventTypes[E]

      Callback for event.

    Returns CallRecording

  • .

    Type Parameters

    • E extends keyof CallRecordingEventTypes

    Parameters

    • event: E

      Event to remove listener on.

    • listener: CallRecordingEventTypes[E]

      Callback for event.

    Returns CallRecording