// @generated by jacquard-lexicon. DO NOT EDIT.
//
// Lexicon: com.5jiji.test.listVideos
//
// This file was automatically generated from Lexicon schemas.
// Any manual changes will be overwritten on the next regeneration.

#[allow(unused_imports)]
use alloc::collections::BTreeMap;

#[allow(unused_imports)]
use core::marker::PhantomData;
use jacquard_common::{BosStr, DefaultStr, FromStaticStr};
use jacquard_common::deps::bytes::Bytes;
use jacquard_common::deps::smol_str::SmolStr;
use jacquard_common::types::value::Data;
use jacquard_derive::IntoStatic;
use serde::{Serialize, Deserialize};

#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(rename_all = "camelCase")]
pub struct ListVideos;
/// The list of videos

#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, IntoStatic)]
#[serde(rename_all = "camelCase")]
pub struct ListVideosOutput {
    pub body: Bytes,
}

/** Response marker for the `com.5jiji.test.listVideos` query.

Implements `jacquard_common::xrpc::XrpcResp`; successful bodies decode as `Self::Output<S>`, which is `ListVideosOutput` for this endpoint.*/
pub struct ListVideosResponse;
impl jacquard_common::xrpc::XrpcResp for ListVideosResponse {
    const NSID: &'static str = "com.5jiji.test.listVideos";
    const ENCODING: &'static str = "application/json";
    type Output<S: BosStr> = ListVideosOutput;
    type Err = jacquard_common::xrpc::GenericError;
}

impl jacquard_common::xrpc::XrpcRequest for ListVideos {
    const NSID: &'static str = "com.5jiji.test.listVideos";
    const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query;
    type Response = ListVideosResponse;
}

/** Endpoint marker for the `com.5jiji.test.listVideos` query.

Path: `/xrpc/com.5jiji.test.listVideos`. The request payload type is `ListVideos`; send that request with `jacquard::Client` or use this marker through lower-level `XrpcEndpoint` APIs.*/
pub struct ListVideosRequest;
impl jacquard_common::xrpc::XrpcEndpoint for ListVideosRequest {
    const PATH: &'static str = "/xrpc/com.5jiji.test.listVideos";
    const METHOD: jacquard_common::xrpc::XrpcMethod = jacquard_common::xrpc::XrpcMethod::Query;
    type Request<S: BosStr> = ListVideos;
    type Response = ListVideosResponse;
}