roark_rs/models/interface_type.rs
1/*
2 * Roark Analytics API
3 *
4 * # Roark Analytics API - Voice AI Analytics Platform The Roark Analytics API provides comprehensive monitoring, evaluation, and analytics capabilities for voice AI agents. This API allows developers to seamlessly integrate with the Roark platform to track call quality, analyze agent performance, and extract insights from voice interactions. ## Key Features - **Real-time Call Analysis**: Upload and analyze voice call recordings with AI-powered insights - **Sentiment Analysis**: Extract emotional tone, key phrases, and sentiment scores across 64+ emotions - **Agent Performance Evaluation**: Create custom evaluation jobs with configurable metrics and scoring - **Platform Integrations**: Native support for VAPI and Retell AI with webhook-based data ingestion - **Custom Analytics**: Build custom analytics pipelines with flexible data models and properties ## Authentication All API endpoints require Bearer token authentication. Include your API token in the Authorization header: ``` Authorization: Bearer YOUR_API_TOKEN ``` ## Rate Limiting The API implements rate limiting to ensure service stability. Rate limit headers are included in responses. ## Error Handling The API uses standard HTTP status codes and returns structured error responses with detailed error information including error types, codes, and human-readable messages. ## Rust Code Generation This OpenAPI specification has been optimized for Rust code generation with: - Snake_case field naming conventions - Proper nullable field handling with Option<T> - Comprehensive documentation for generated code - Type-safe enum definitions - Structured error handling
5 *
6 * The version of the OpenAPI document: 1.0.0
7 * Contact: support@roark.ai
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// InterfaceType : Interface type used for the call: - phone: Traditional phone call (PSTN, SIP, etc.) - web: Web-based call (WebRTC, browser-based)
15/// Interface type used for the call: - phone: Traditional phone call (PSTN, SIP, etc.) - web: Web-based call (WebRTC, browser-based)
16#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
17pub enum InterfaceType {
18 #[serde(rename = "phone")]
19 Phone,
20 #[serde(rename = "web")]
21 Web,
22
23}
24
25impl std::fmt::Display for InterfaceType {
26 fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
27 match self {
28 Self::Phone => write!(f, "phone"),
29 Self::Web => write!(f, "web"),
30 }
31 }
32}
33
34impl Default for InterfaceType {
35 fn default() -> InterfaceType {
36 Self::Phone
37 }
38}
39