use conjure_http::endpoint;
/// This service provides internal APIs related to modules.
#[conjure_http::conjure_endpoints(
    name = "InternalModuleService",
    use_legacy_error_serialization
)]
pub trait InternalModuleService {
    /// Returns the module definition for the given module reference.
    #[endpoint(
        method = POST,
        path = "/internal/scout/v2/module/unresolved-module/batch-get",
        name = "batchGetUnresolvedModuleDefinition",
        produces = conjure_http::server::StdResponseSerializer
    )]
    fn batch_get_unresolved_module_definition(
        &self,
        #[auth]
        auth_: conjure_object::BearerToken,
        #[body(deserializer = conjure_http::server::StdRequestDeserializer)]
        request: super::super::super::super::objects::module::internal::BatchGetUnresolvedModuleDefinitionsRequest,
    ) -> Result<
        super::super::super::super::objects::module::internal::BatchGetUnresolvedModuleDefinitionsResponse,
        conjure_http::private::Error,
    >;
}
/// This service provides internal APIs related to modules.
#[conjure_http::conjure_endpoints(
    name = "InternalModuleService",
    use_legacy_error_serialization
)]
pub trait AsyncInternalModuleService {
    /// Returns the module definition for the given module reference.
    #[endpoint(
        method = POST,
        path = "/internal/scout/v2/module/unresolved-module/batch-get",
        name = "batchGetUnresolvedModuleDefinition",
        produces = conjure_http::server::StdResponseSerializer
    )]
    async fn batch_get_unresolved_module_definition(
        &self,
        #[auth]
        auth_: conjure_object::BearerToken,
        #[body(deserializer = conjure_http::server::StdRequestDeserializer)]
        request: super::super::super::super::objects::module::internal::BatchGetUnresolvedModuleDefinitionsRequest,
    ) -> Result<
        super::super::super::super::objects::module::internal::BatchGetUnresolvedModuleDefinitionsResponse,
        conjure_http::private::Error,
    >;
}
/// This service provides internal APIs related to modules.
#[conjure_http::conjure_endpoints(
    name = "InternalModuleService",
    use_legacy_error_serialization,
    local
)]
pub trait LocalAsyncInternalModuleService {
    /// Returns the module definition for the given module reference.
    #[endpoint(
        method = POST,
        path = "/internal/scout/v2/module/unresolved-module/batch-get",
        name = "batchGetUnresolvedModuleDefinition",
        produces = conjure_http::server::StdResponseSerializer
    )]
    async fn batch_get_unresolved_module_definition(
        &self,
        #[auth]
        auth_: conjure_object::BearerToken,
        #[body(deserializer = conjure_http::server::StdRequestDeserializer)]
        request: super::super::super::super::objects::module::internal::BatchGetUnresolvedModuleDefinitionsRequest,
    ) -> Result<
        super::super::super::super::objects::module::internal::BatchGetUnresolvedModuleDefinitionsResponse,
        conjure_http::private::Error,
    >;
}
