1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/*
* Vapi API
*
* Voice AI for developers.
*
* The version of the OpenAPI document: 1.0
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct MonitorPlan {
/// This determines whether the assistant's calls allow live listening. Defaults to true. Fetch `call.monitor.listenUrl` to get the live listening URL. @default true
#[serde(rename = "listenEnabled", skip_serializing_if = "Option::is_none")]
pub listen_enabled: Option<bool>,
/// This enables authentication on the `call.monitor.listenUrl`. If `listenAuthenticationEnabled` is `true`, the `call.monitor.listenUrl` will require an `Authorization: Bearer <vapi-public-api-key>` header. @default false
#[serde(
rename = "listenAuthenticationEnabled",
skip_serializing_if = "Option::is_none"
)]
pub listen_authentication_enabled: Option<bool>,
/// This determines whether the assistant's calls allow live control. Defaults to true. Fetch `call.monitor.controlUrl` to get the live control URL. To use, send any control message via a POST request to `call.monitor.controlUrl`. Here are the types of controls supported: https://docs.vapi.ai/api-reference/messages/client-inbound-message @default true
#[serde(rename = "controlEnabled", skip_serializing_if = "Option::is_none")]
pub control_enabled: Option<bool>,
/// This enables authentication on the `call.monitor.controlUrl`. If `controlAuthenticationEnabled` is `true`, the `call.monitor.controlUrl` will require an `Authorization: Bearer <vapi-public-api-key>` header. @default false
#[serde(
rename = "controlAuthenticationEnabled",
skip_serializing_if = "Option::is_none"
)]
pub control_authentication_enabled: Option<bool>,
}
impl MonitorPlan {
pub fn new() -> MonitorPlan {
MonitorPlan {
listen_enabled: None,
listen_authentication_enabled: None,
control_enabled: None,
control_authentication_enabled: None,
}
}
}