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 */
1011use crate::models;
12use serde::{Deserialize, Serialize};
1314#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct AssemblyAiCredential {
16#[serde(rename = "provider")]
17pub provider: ProviderTrue,
18/// This is not returned in the API.
19#[serde(rename = "apiKey")]
20pub api_key: String,
21/// This is the unique identifier for the credential.
22#[serde(rename = "id")]
23pub id: String,
24/// This is the unique identifier for the org that this credential belongs to.
25#[serde(rename = "orgId")]
26pub org_id: String,
27/// This is the ISO 8601 date-time string of when the credential was created.
28#[serde(rename = "createdAt")]
29pub created_at: String,
30/// This is the ISO 8601 date-time string of when the assistant was last updated.
31#[serde(rename = "updatedAt")]
32pub updated_at: String,
33/// This is the name of credential. This is just for your reference.
34#[serde(rename = "name", skip_serializing_if = "Option::is_none")]
35pub name: Option<String>,
36}
3738impl AssemblyAiCredential {
39pub fn new(
40 provider: ProviderTrue,
41 api_key: String,
42 id: String,
43 org_id: String,
44 created_at: String,
45 updated_at: String,
46 ) -> AssemblyAiCredential {
47 AssemblyAiCredential {
48 provider,
49 api_key,
50 id,
51 org_id,
52 created_at,
53 updated_at,
54 name: None,
55 }
56 }
57}
58///
59#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
60pub enum ProviderTrue {
61#[serde(rename = "assembly-ai")]
62AssemblyAi,
63}
6465impl Default for ProviderTrue {
66fn default() -> ProviderTrue {
67Self::AssemblyAi
68 }
69}