use mogh_resolver::Resolve;
use serde::{Deserialize, Serialize};
use typeshare::typeshare;
use crate::entities::terminal::{Terminal, TerminalTarget};
use super::KomodoReadRequest;
#[cfg(feature = "utoipa")]
#[utoipa::path(
post,
path = "/ListTerminals",
description = "List Terminals.",
request_body(content = ListTerminals),
responses(
(status = 200, description = "The list of terminals", body = ListTerminalsResponse),
),
)]
pub fn list_terminals() {}
#[typeshare]
#[derive(Debug, Clone, Default, Serialize, Deserialize, Resolve)]
#[cfg_attr(feature = "utoipa", derive(utoipa::ToSchema))]
#[empty_traits(KomodoReadRequest)]
#[response(ListTerminalsResponse)]
#[error(mogh_error::Error)]
pub struct ListTerminals {
pub target: Option<TerminalTarget>,
#[serde(default)]
pub use_names: bool,
}
#[typeshare]
pub type ListTerminalsResponse = Vec<Terminal>;