pub struct Session {Show 13 fields
pub id: String,
pub org_id: String,
pub created_at: String,
pub updated_at: String,
pub name: Option<String>,
pub status: Option<StatusTrue>,
pub expiration_seconds: Option<f64>,
pub assistant_id: Option<String>,
pub assistant: Option<CreateAssistantDto>,
pub messages: Option<Vec<MessageArrayInner>>,
pub customer: Option<CreateCustomerDto>,
pub phone_number_id: Option<String>,
pub phone_number: Option<ImportTwilioPhoneNumberDto>,
}
Fields§
§id: String
This is the unique identifier for the session.
org_id: String
This is the unique identifier for the organization that owns this session.
created_at: String
This is the ISO 8601 timestamp indicating when the session was created.
updated_at: String
This is the ISO 8601 timestamp indicating when the session was last updated.
name: Option<String>
This is a user-defined name for the session. Maximum length is 40 characters.
status: Option<StatusTrue>
This is the current status of the session. Can be either ‘active’ or ‘completed’.
expiration_seconds: Option<f64>
Session expiration time in seconds. Defaults to 24 hours (86400 seconds) if not set.
assistant_id: Option<String>
This is the ID of the assistant associated with this session. Use this when referencing an existing assistant.
assistant: Option<CreateAssistantDto>
This is the assistant configuration for this session. Use this when creating a new assistant configuration. If assistantId is provided, this will be ignored.
messages: Option<Vec<MessageArrayInner>>
This is an array of chat messages in the session.
customer: Option<CreateCustomerDto>
This is the customer information associated with this session.
phone_number_id: Option<String>
This is the ID of the phone number associated with this session.
phone_number: Option<ImportTwilioPhoneNumberDto>
This is the phone number configuration for this session.