vapi_client/models/update_org_dto.rs
1/*
2 * Vapi API
3 *
4 * API for building voice assistants
5 *
6 * The version of the OpenAPI document: 1.0
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11use serde::{Deserialize, Serialize};
12use utoipa::OpenApi;
13
14
15use crate::models;
16
17#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize, OpenApi)]
18pub struct UpdateOrgDto {
19 /// 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.
20 #[serde(rename = "hipaaEnabled", skip_serializing_if = "Option::is_none")]
21 pub hipaa_enabled: Option<bool>,
22 /// This is the ID of the subscription the org belongs to.
23 #[serde(rename = "subscriptionId", skip_serializing_if = "Option::is_none")]
24 pub subscription_id: Option<String>,
25 /// This is the name of the org. This is just for your own reference.
26 #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
27 pub name: Option<String>,
28 /// This is the channel of the org. There is the cluster the API traffic for the org will be directed.
29 #[serde(rename = "channel", skip_serializing_if = "Option::is_none")]
30 pub channel: Option<Channel>,
31 /// This is the monthly billing limit for the org. To go beyond $1000/mo, please contact us at support@vapi.ai.
32 #[serde(rename = "billingLimit", skip_serializing_if = "Option::is_none")]
33 pub billing_limit: Option<f64>,
34 /// 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
35 #[serde(rename = "server", skip_serializing_if = "Option::is_none")]
36 pub server: Option<models::Server>,
37 /// 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.
38 #[serde(rename = "concurrencyLimit", skip_serializing_if = "Option::is_none")]
39 pub concurrency_limit: Option<f64>,
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 }
53 }
54}
55/// This is the channel of the org. There is the cluster the API traffic for the org will be directed.
56#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize, OpenApi)]
57pub enum Channel {
58 #[serde(rename = "default")]
59 Default,
60 #[serde(rename = "weekly")]
61 Weekly,
62}
63
64impl Default for Channel {
65 fn default() -> Channel {
66 Self::Default
67 }
68}