vapi_client/models/
update_org_dto.rs

1/*
2 * Vapi API
3 *
4 * Voice AI for developers.
5 *
6 * The version of the OpenAPI document: 1.0
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct UpdateOrgDto {
16    /// When this is enabled, no logs, recordings, or transcriptions will be stored. At the end of the call, you will still receive an end-of-call-report message to store on your server. Defaults to false. When HIPAA is enabled, only OpenAI/Custom LLM or Azure Providers will be available for LLM and Voice respectively. This is due to the compliance requirements of HIPAA. Other providers may not meet these requirements.
17    #[serde(rename = "hipaaEnabled", skip_serializing_if = "Option::is_none")]
18    pub hipaa_enabled: Option<bool>,
19    /// This is the ID of the subscription the org belongs to.
20    #[serde(rename = "subscriptionId", skip_serializing_if = "Option::is_none")]
21    pub subscription_id: Option<String>,
22    /// This is the name of the org. This is just for your own reference.
23    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
24    pub name: Option<String>,
25    /// This is the channel of the org. There is the cluster the API traffic for the org will be directed.
26    #[serde(rename = "channel", skip_serializing_if = "Option::is_none")]
27    pub channel: Option<Channel>,
28    /// This is the monthly billing limit for the org. To go beyond $1000/mo, please contact us at support@vapi.ai.
29    #[serde(rename = "billingLimit", skip_serializing_if = "Option::is_none")]
30    pub billing_limit: Option<f64>,
31    /// This is where Vapi will send webhooks. You can find all webhooks available along with their shape in ServerMessage schema.  The order of precedence is:  1. assistant.server 2. phoneNumber.server 3. org.server
32    #[serde(rename = "server", skip_serializing_if = "Option::is_none")]
33    pub server: Option<Box<models::Server>>,
34    /// This is the concurrency limit for the org. This is the maximum number of calls that can be active at any given time. To go beyond 10, please contact us at support@vapi.ai.
35    #[serde(rename = "concurrencyLimit", skip_serializing_if = "Option::is_none")]
36    pub concurrency_limit: Option<f64>,
37}
38
39impl UpdateOrgDto {
40    pub fn new() -> UpdateOrgDto {
41        UpdateOrgDto {
42            hipaa_enabled: None,
43            subscription_id: None,
44            name: None,
45            channel: None,
46            billing_limit: None,
47            server: None,
48            concurrency_limit: None,
49        }
50    }
51}
52/// This is the channel of the org. There is the cluster the API traffic for the org will be directed.
53#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
54pub enum Channel {
55    #[serde(rename = "default")]
56    Default,
57    #[serde(rename = "weekly")]
58    Weekly,
59}
60
61impl Default for Channel {
62    fn default() -> Channel {
63        Self::Default
64    }
65}
66