<?php

namespace bird\classes;

require_once WD . '/modules/bird/interfaces/bird_voice_insights_client_i.php';
require_once WD . '/modules/bird/classes/bird_api_client.php';

use bird\interfaces\bird_voice_insights_client_i;

class bird_voice_insights_client extends bird_api_client implements bird_voice_insights_client_i
{
    public function getVoiceCallInsights(string $workspaceId, string $channelId, string $callId): array|object|null
    {
        return $this->get($this->birdVoiceCallCommandPath($workspaceId, $channelId, $callId, 'insights'));
    }

    public function getVoiceCallsLog(string $workspaceId, array $query = []): array|object|null
    {
        return $this->get($this->birdVoiceCallsLogPath($workspaceId), $query);
    }
}
