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<ChannelTrue>,
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<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    /// Stores the information about the compliance plan enforced at the organization level. Currently pciEnabled is supported through this field. When this is enabled, any logs, recordings, or transcriptions will be shipped to the customer endpoints if provided else lost. At the end of the call, you will receive an end-of-call-report message to store on your server, if webhook is provided. Defaults to false. When PCI is enabled, only PCI-compliant Providers will be available for LLM, Voice and transcribers. This is due to the compliance requirements of PCI. Other providers may not meet these requirements.
38    #[serde(rename = "compliancePlan", skip_serializing_if = "Option::is_none")]
39    pub compliance_plan: Option<models::CompliancePlan>,
40}
41
42impl UpdateOrgDto {
43    pub fn new() -> UpdateOrgDto {
44        UpdateOrgDto {
45            hipaa_enabled: None,
46            subscription_id: None,
47            name: None,
48            channel: None,
49            billing_limit: None,
50            server: None,
51            concurrency_limit: None,
52            compliance_plan: None,
53        }
54    }
55}
56/// This is the channel of the org. There is the cluster the API traffic for the org will be directed.
57#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
58pub enum ChannelTrue {
59    #[serde(rename = "default")]
60    Default,
61    #[serde(rename = "weekly")]
62    Weekly,
63}
64
65impl Default for ChannelTrue {
66    fn default() -> ChannelTrue {
67        Self::Default
68    }
69}