Reads Post Call Recordings. The GetCallRecordingRequest type selects the operation
and constrains the rest of the request body; the resolved response type is inferred per
request via RecordingResponseFor:
LIST -> RecordingListResponse. Query is
orderType=DESC&orderBy=appCreateTime&status&category=calling&offset=0&limit.
status and max come from GetRecordingsOptions.DETAIL (GET .../convergedRecordings/{recordingId}) -> RecordingResponse.METADATA uses the same detail URL and maps owner plus serviceData ->
RecordingMetadataResponse.BY_CALL_SESSION -> RecordingListResponse. User Hub has no session filter, so this
fetches the list and keeps rows whose serviceData.callSessionId matches.const list = await callRecording.getCallRecording({type: RecordingRequestType.LIST, options: {max: 30}});
const one = await callRecording.getCallRecording({type: RecordingRequestType.DETAIL, recordingId});
const meta = await callRecording.getCallRecording({type: RecordingRequestType.METADATA, recordingId});
const bySession = await callRecording.getCallRecording({
type: RecordingRequestType.BY_CALL_SESSION,
callSessionId,
options: {max: 100},
});
The discriminated read request.
Moves a recording to the recycle bin (soft delete).
Calls POST .../convergedRecordings/softDelete with { recordUUIDs: [recordingId] }.
The recording can be restored from the recycle bin via the platform restore API. Requires
spark:recordings_write on the access token (recording owner). Control Hub
"Delete recordings and transcripts" enables this for the user; it does not grant
compliance-officer permanent delete.
Mercury emits convergedRecordings.updated + TRASH, surfaced as callRecording:deleted.
await callRecording.deleteRecording(recordingId);
The recording id (id) to move to the recycle bin.
Optional _options: DeleteRecordingOptionsDeprecated. Ignored.
.
Event to listen to.
Callback for event.
.
Event to remove listener on.
Callback for event.
Interface for the CallRecording client.
Provides read access to Post Call Recordings through a single getCallRecording method (listing, single fetch, lookup by call session, and metadata — selected by the request
type), moves a recording to the recycle bin (soft delete), and emits recording lifecycle events received over Mercury.