use conjure_http::endpoint;
/// An Event is an annotated moment or time range.
/// The Event Service is responsible for creating and retrieving events for a particular data source.
#[conjure_http::conjure_client(name = "EventService")]
pub trait EventService<
    #[response_body]
    I: Iterator<
            Item = Result<conjure_http::private::Bytes, conjure_http::private::Error>,
        >,
> {
    /// Creates an event.
    #[endpoint(
        method = POST,
        path = "/event/v1/events",
        name = "createEvent",
        accept = conjure_http::client::StdResponseDeserializer
    )]
    fn create_event(
        &self,
        #[auth]
        auth_: &conjure_object::BearerToken,
        #[body(serializer = conjure_http::client::StdRequestSerializer)]
        request: &super::super::super::objects::event::CreateEvent,
    ) -> Result<
        super::super::super::objects::event::Event,
        conjure_http::private::Error,
    >;
    /// Gets a set of events by UUIDs
    #[endpoint(
        method = POST,
        path = "/event/v1/get-events",
        name = "getEvents",
        accept = conjure_http::client::conjure::CollectionResponseDeserializer
    )]
    fn get_events(
        &self,
        #[auth]
        auth_: &conjure_object::BearerToken,
        #[body(serializer = conjure_http::client::StdRequestSerializer)]
        request: &super::super::super::objects::event::GetEvents,
    ) -> Result<
        std::collections::BTreeSet<super::super::super::objects::event::Event>,
        conjure_http::private::Error,
    >;
    /// Gets a set of events by RID.
    #[endpoint(
        method = POST,
        path = "/event/v1/events/batch-get",
        name = "batchGetEvents",
        accept = conjure_http::client::conjure::CollectionResponseDeserializer
    )]
    fn batch_get_events(
        &self,
        #[auth]
        auth_: &conjure_object::BearerToken,
        #[body(serializer = conjure_http::client::StdRequestSerializer)]
        request: &std::collections::BTreeSet<conjure_object::ResourceIdentifier>,
    ) -> Result<
        std::collections::BTreeSet<super::super::super::objects::event::Event>,
        conjure_http::private::Error,
    >;
    /// Gets a filtered set of events by RID and search filters.
    #[endpoint(
        method = POST,
        path = "/event/v1/events/batch-filter-get",
        name = "batchFilterEvents",
        accept = conjure_http::client::conjure::CollectionResponseDeserializer
    )]
    fn batch_filter_events(
        &self,
        #[auth]
        auth_: &conjure_object::BearerToken,
        #[body(serializer = conjure_http::client::StdRequestSerializer)]
        request: &super::super::super::objects::event::BatchFilterEventsRequest,
    ) -> Result<
        std::collections::BTreeSet<super::super::super::objects::event::Event>,
        conjure_http::private::Error,
    >;
    /// Updates the fields of an event. Empty fields are left unchanged.
    #[endpoint(
        method = POST,
        path = "/event/v1/update-event",
        name = "updateEvent",
        accept = conjure_http::client::StdResponseDeserializer
    )]
    fn update_event(
        &self,
        #[auth]
        auth_: &conjure_object::BearerToken,
        #[body(serializer = conjure_http::client::StdRequestSerializer)]
        request: &super::super::super::objects::event::UpdateEvent,
    ) -> Result<
        super::super::super::objects::event::Event,
        conjure_http::private::Error,
    >;
    /// Updates the fields of an event specified by each request in the batch.
    /// Empty fields in the UpdateEventRequest are left unchanged.
    #[endpoint(
        method = POST,
        path = "/event/v1/events/batch-update",
        name = "batchUpdateEvent",
        accept = conjure_http::client::StdResponseDeserializer
    )]
    fn batch_update_event(
        &self,
        #[auth]
        auth_: &conjure_object::BearerToken,
        #[body(serializer = conjure_http::client::StdRequestSerializer)]
        request: &super::super::super::objects::event::BatchUpdateEventRequest,
    ) -> Result<
        super::super::super::objects::event::BatchUpdateEventResponse,
        conjure_http::private::Error,
    >;
    /// Updates the disposition of an event.
    #[endpoint(
        method = POST,
        path = "/event/v1/update-disposition",
        name = "batchUpdateDisposition",
        accept = conjure_http::client::StdResponseDeserializer
    )]
    fn batch_update_disposition(
        &self,
        #[auth]
        auth_: &conjure_object::BearerToken,
        #[body(serializer = conjure_http::client::StdRequestSerializer)]
        request: &super::super::super::objects::event::BatchUpdateDispositionRequest,
    ) -> Result<
        super::super::super::objects::event::BatchUpdateDispositionResponse,
        conjure_http::private::Error,
    >;
    /// Archives an event
    #[endpoint(
        method = POST,
        path = "/event/v1/archive-event",
        name = "archiveEvent",
        accept = conjure_http::client::conjure::EmptyResponseDeserializer
    )]
    fn archive_event(
        &self,
        #[auth]
        auth_: &conjure_object::BearerToken,
        #[body(serializer = conjure_http::client::StdRequestSerializer)]
        request: &super::super::super::objects::event::ArchiveEvent,
    ) -> Result<(), conjure_http::private::Error>;
    /// Archives a set of events
    #[endpoint(
        method = POST,
        path = "/event/v1/batch-archive-events",
        name = "batchArchiveEvent",
        accept = conjure_http::client::conjure::EmptyResponseDeserializer
    )]
    fn batch_archive_event(
        &self,
        #[auth]
        auth_: &conjure_object::BearerToken,
        #[body(serializer = conjure_http::client::StdRequestSerializer)]
        request: &std::collections::BTreeSet<conjure_object::ResourceIdentifier>,
    ) -> Result<(), conjure_http::private::Error>;
    /// Unarchives a set of events
    #[endpoint(
        method = POST,
        path = "/event/v1/batch-unarchive-events",
        name = "batchUnarchiveEvent",
        accept = conjure_http::client::conjure::EmptyResponseDeserializer
    )]
    fn batch_unarchive_event(
        &self,
        #[auth]
        auth_: &conjure_object::BearerToken,
        #[body(serializer = conjure_http::client::StdRequestSerializer)]
        request: &std::collections::BTreeSet<conjure_object::ResourceIdentifier>,
    ) -> Result<(), conjure_http::private::Error>;
    /// Searches for events that match the given filters.
    #[endpoint(
        method = POST,
        path = "/event/v1/search-events",
        name = "searchEvents",
        accept = conjure_http::client::StdResponseDeserializer
    )]
    fn search_events(
        &self,
        #[auth]
        auth_: &conjure_object::BearerToken,
        #[body(serializer = conjure_http::client::StdRequestSerializer)]
        request: &super::super::super::objects::event::SearchEventsRequest,
    ) -> Result<
        super::super::super::objects::event::SearchEventsResponse,
        conjure_http::private::Error,
    >;
    /// Searches for events matching the given filter and aggregates them based on the requested functions.
    #[endpoint(
        method = POST,
        path = "/event/v1/aggregate-events",
        name = "aggregateEvents",
        accept = conjure_http::client::StdResponseDeserializer
    )]
    fn aggregate_events(
        &self,
        #[auth]
        auth_: &conjure_object::BearerToken,
        #[body(serializer = conjure_http::client::StdRequestSerializer)]
        request: &super::super::super::objects::event::AggregateEventsRequest,
    ) -> Result<
        super::super::super::objects::event::AggregateEventsResponse,
        conjure_http::private::Error,
    >;
    /// Searches for events matching the given filter and aggregates them based on the requested functions.
    /// Returns a list of responses in same order as the batched requests.
    #[endpoint(
        method = POST,
        path = "/event/v1/aggregate-events/batch",
        name = "batchAggregateEvents",
        accept = conjure_http::client::StdResponseDeserializer
    )]
    fn batch_aggregate_events(
        &self,
        #[auth]
        auth_: &conjure_object::BearerToken,
        #[body(serializer = conjure_http::client::StdRequestSerializer)]
        request: &super::super::super::objects::event::BatchAggregateEventsRequest,
    ) -> Result<
        super::super::super::objects::event::BatchAggregateEventsResponse,
        conjure_http::private::Error,
    >;
    /// Gets a histogram of events that match the given filters.
    #[endpoint(
        method = POST,
        path = "/event/v1/histogram",
        name = "getEventsHistogram",
        accept = conjure_http::client::StdResponseDeserializer
    )]
    fn get_events_histogram(
        &self,
        #[auth]
        auth_: &conjure_object::BearerToken,
        #[body(serializer = conjure_http::client::StdRequestSerializer)]
        request: &super::super::super::objects::event::EventsHistogramRequest,
    ) -> Result<
        super::super::super::objects::event::EventsHistogramResponse,
        conjure_http::private::Error,
    >;
    /// Lists the properties and labels of all events in the provided workspaces.
    #[endpoint(
        method = POST,
        path = "/event/v1/list-properties-labels",
        name = "listPropertiesAndLabels",
        accept = conjure_http::client::StdResponseDeserializer
    )]
    fn list_properties_and_labels(
        &self,
        #[auth]
        auth_: &conjure_object::BearerToken,
        #[body(serializer = conjure_http::client::StdRequestSerializer)]
        request: &super::super::super::objects::event::ListPropertiesAndLabelsRequest,
    ) -> Result<
        super::super::super::objects::scout::metadata::ListPropertiesAndLabelsResponse,
        conjure_http::private::Error,
    >;
}
/// An Event is an annotated moment or time range.
/// The Event Service is responsible for creating and retrieving events for a particular data source.
#[conjure_http::conjure_client(name = "EventService")]
pub trait AsyncEventService<
    #[response_body]
    I: conjure_http::private::Stream<
            Item = Result<conjure_http::private::Bytes, conjure_http::private::Error>,
        >,
> {
    /// Creates an event.
    #[endpoint(
        method = POST,
        path = "/event/v1/events",
        name = "createEvent",
        accept = conjure_http::client::StdResponseDeserializer
    )]
    async fn create_event(
        &self,
        #[auth]
        auth_: &conjure_object::BearerToken,
        #[body(serializer = conjure_http::client::StdRequestSerializer)]
        request: &super::super::super::objects::event::CreateEvent,
    ) -> Result<
        super::super::super::objects::event::Event,
        conjure_http::private::Error,
    >;
    /// Gets a set of events by UUIDs
    #[endpoint(
        method = POST,
        path = "/event/v1/get-events",
        name = "getEvents",
        accept = conjure_http::client::conjure::CollectionResponseDeserializer
    )]
    async fn get_events(
        &self,
        #[auth]
        auth_: &conjure_object::BearerToken,
        #[body(serializer = conjure_http::client::StdRequestSerializer)]
        request: &super::super::super::objects::event::GetEvents,
    ) -> Result<
        std::collections::BTreeSet<super::super::super::objects::event::Event>,
        conjure_http::private::Error,
    >;
    /// Gets a set of events by RID.
    #[endpoint(
        method = POST,
        path = "/event/v1/events/batch-get",
        name = "batchGetEvents",
        accept = conjure_http::client::conjure::CollectionResponseDeserializer
    )]
    async fn batch_get_events(
        &self,
        #[auth]
        auth_: &conjure_object::BearerToken,
        #[body(serializer = conjure_http::client::StdRequestSerializer)]
        request: &std::collections::BTreeSet<conjure_object::ResourceIdentifier>,
    ) -> Result<
        std::collections::BTreeSet<super::super::super::objects::event::Event>,
        conjure_http::private::Error,
    >;
    /// Gets a filtered set of events by RID and search filters.
    #[endpoint(
        method = POST,
        path = "/event/v1/events/batch-filter-get",
        name = "batchFilterEvents",
        accept = conjure_http::client::conjure::CollectionResponseDeserializer
    )]
    async fn batch_filter_events(
        &self,
        #[auth]
        auth_: &conjure_object::BearerToken,
        #[body(serializer = conjure_http::client::StdRequestSerializer)]
        request: &super::super::super::objects::event::BatchFilterEventsRequest,
    ) -> Result<
        std::collections::BTreeSet<super::super::super::objects::event::Event>,
        conjure_http::private::Error,
    >;
    /// Updates the fields of an event. Empty fields are left unchanged.
    #[endpoint(
        method = POST,
        path = "/event/v1/update-event",
        name = "updateEvent",
        accept = conjure_http::client::StdResponseDeserializer
    )]
    async fn update_event(
        &self,
        #[auth]
        auth_: &conjure_object::BearerToken,
        #[body(serializer = conjure_http::client::StdRequestSerializer)]
        request: &super::super::super::objects::event::UpdateEvent,
    ) -> Result<
        super::super::super::objects::event::Event,
        conjure_http::private::Error,
    >;
    /// Updates the fields of an event specified by each request in the batch.
    /// Empty fields in the UpdateEventRequest are left unchanged.
    #[endpoint(
        method = POST,
        path = "/event/v1/events/batch-update",
        name = "batchUpdateEvent",
        accept = conjure_http::client::StdResponseDeserializer
    )]
    async fn batch_update_event(
        &self,
        #[auth]
        auth_: &conjure_object::BearerToken,
        #[body(serializer = conjure_http::client::StdRequestSerializer)]
        request: &super::super::super::objects::event::BatchUpdateEventRequest,
    ) -> Result<
        super::super::super::objects::event::BatchUpdateEventResponse,
        conjure_http::private::Error,
    >;
    /// Updates the disposition of an event.
    #[endpoint(
        method = POST,
        path = "/event/v1/update-disposition",
        name = "batchUpdateDisposition",
        accept = conjure_http::client::StdResponseDeserializer
    )]
    async fn batch_update_disposition(
        &self,
        #[auth]
        auth_: &conjure_object::BearerToken,
        #[body(serializer = conjure_http::client::StdRequestSerializer)]
        request: &super::super::super::objects::event::BatchUpdateDispositionRequest,
    ) -> Result<
        super::super::super::objects::event::BatchUpdateDispositionResponse,
        conjure_http::private::Error,
    >;
    /// Archives an event
    #[endpoint(
        method = POST,
        path = "/event/v1/archive-event",
        name = "archiveEvent",
        accept = conjure_http::client::conjure::EmptyResponseDeserializer
    )]
    async fn archive_event(
        &self,
        #[auth]
        auth_: &conjure_object::BearerToken,
        #[body(serializer = conjure_http::client::StdRequestSerializer)]
        request: &super::super::super::objects::event::ArchiveEvent,
    ) -> Result<(), conjure_http::private::Error>;
    /// Archives a set of events
    #[endpoint(
        method = POST,
        path = "/event/v1/batch-archive-events",
        name = "batchArchiveEvent",
        accept = conjure_http::client::conjure::EmptyResponseDeserializer
    )]
    async fn batch_archive_event(
        &self,
        #[auth]
        auth_: &conjure_object::BearerToken,
        #[body(serializer = conjure_http::client::StdRequestSerializer)]
        request: &std::collections::BTreeSet<conjure_object::ResourceIdentifier>,
    ) -> Result<(), conjure_http::private::Error>;
    /// Unarchives a set of events
    #[endpoint(
        method = POST,
        path = "/event/v1/batch-unarchive-events",
        name = "batchUnarchiveEvent",
        accept = conjure_http::client::conjure::EmptyResponseDeserializer
    )]
    async fn batch_unarchive_event(
        &self,
        #[auth]
        auth_: &conjure_object::BearerToken,
        #[body(serializer = conjure_http::client::StdRequestSerializer)]
        request: &std::collections::BTreeSet<conjure_object::ResourceIdentifier>,
    ) -> Result<(), conjure_http::private::Error>;
    /// Searches for events that match the given filters.
    #[endpoint(
        method = POST,
        path = "/event/v1/search-events",
        name = "searchEvents",
        accept = conjure_http::client::StdResponseDeserializer
    )]
    async fn search_events(
        &self,
        #[auth]
        auth_: &conjure_object::BearerToken,
        #[body(serializer = conjure_http::client::StdRequestSerializer)]
        request: &super::super::super::objects::event::SearchEventsRequest,
    ) -> Result<
        super::super::super::objects::event::SearchEventsResponse,
        conjure_http::private::Error,
    >;
    /// Searches for events matching the given filter and aggregates them based on the requested functions.
    #[endpoint(
        method = POST,
        path = "/event/v1/aggregate-events",
        name = "aggregateEvents",
        accept = conjure_http::client::StdResponseDeserializer
    )]
    async fn aggregate_events(
        &self,
        #[auth]
        auth_: &conjure_object::BearerToken,
        #[body(serializer = conjure_http::client::StdRequestSerializer)]
        request: &super::super::super::objects::event::AggregateEventsRequest,
    ) -> Result<
        super::super::super::objects::event::AggregateEventsResponse,
        conjure_http::private::Error,
    >;
    /// Searches for events matching the given filter and aggregates them based on the requested functions.
    /// Returns a list of responses in same order as the batched requests.
    #[endpoint(
        method = POST,
        path = "/event/v1/aggregate-events/batch",
        name = "batchAggregateEvents",
        accept = conjure_http::client::StdResponseDeserializer
    )]
    async fn batch_aggregate_events(
        &self,
        #[auth]
        auth_: &conjure_object::BearerToken,
        #[body(serializer = conjure_http::client::StdRequestSerializer)]
        request: &super::super::super::objects::event::BatchAggregateEventsRequest,
    ) -> Result<
        super::super::super::objects::event::BatchAggregateEventsResponse,
        conjure_http::private::Error,
    >;
    /// Gets a histogram of events that match the given filters.
    #[endpoint(
        method = POST,
        path = "/event/v1/histogram",
        name = "getEventsHistogram",
        accept = conjure_http::client::StdResponseDeserializer
    )]
    async fn get_events_histogram(
        &self,
        #[auth]
        auth_: &conjure_object::BearerToken,
        #[body(serializer = conjure_http::client::StdRequestSerializer)]
        request: &super::super::super::objects::event::EventsHistogramRequest,
    ) -> Result<
        super::super::super::objects::event::EventsHistogramResponse,
        conjure_http::private::Error,
    >;
    /// Lists the properties and labels of all events in the provided workspaces.
    #[endpoint(
        method = POST,
        path = "/event/v1/list-properties-labels",
        name = "listPropertiesAndLabels",
        accept = conjure_http::client::StdResponseDeserializer
    )]
    async fn list_properties_and_labels(
        &self,
        #[auth]
        auth_: &conjure_object::BearerToken,
        #[body(serializer = conjure_http::client::StdRequestSerializer)]
        request: &super::super::super::objects::event::ListPropertiesAndLabelsRequest,
    ) -> Result<
        super::super::super::objects::scout::metadata::ListPropertiesAndLabelsResponse,
        conjure_http::private::Error,
    >;
}
/// An Event is an annotated moment or time range.
/// The Event Service is responsible for creating and retrieving events for a particular data source.
#[conjure_http::conjure_client(name = "EventService", local)]
pub trait LocalAsyncEventService<
    #[response_body]
    I: conjure_http::private::Stream<
            Item = Result<conjure_http::private::Bytes, conjure_http::private::Error>,
        >,
> {
    /// Creates an event.
    #[endpoint(
        method = POST,
        path = "/event/v1/events",
        name = "createEvent",
        accept = conjure_http::client::StdResponseDeserializer
    )]
    async fn create_event(
        &self,
        #[auth]
        auth_: &conjure_object::BearerToken,
        #[body(serializer = conjure_http::client::StdRequestSerializer)]
        request: &super::super::super::objects::event::CreateEvent,
    ) -> Result<
        super::super::super::objects::event::Event,
        conjure_http::private::Error,
    >;
    /// Gets a set of events by UUIDs
    #[endpoint(
        method = POST,
        path = "/event/v1/get-events",
        name = "getEvents",
        accept = conjure_http::client::conjure::CollectionResponseDeserializer
    )]
    async fn get_events(
        &self,
        #[auth]
        auth_: &conjure_object::BearerToken,
        #[body(serializer = conjure_http::client::StdRequestSerializer)]
        request: &super::super::super::objects::event::GetEvents,
    ) -> Result<
        std::collections::BTreeSet<super::super::super::objects::event::Event>,
        conjure_http::private::Error,
    >;
    /// Gets a set of events by RID.
    #[endpoint(
        method = POST,
        path = "/event/v1/events/batch-get",
        name = "batchGetEvents",
        accept = conjure_http::client::conjure::CollectionResponseDeserializer
    )]
    async fn batch_get_events(
        &self,
        #[auth]
        auth_: &conjure_object::BearerToken,
        #[body(serializer = conjure_http::client::StdRequestSerializer)]
        request: &std::collections::BTreeSet<conjure_object::ResourceIdentifier>,
    ) -> Result<
        std::collections::BTreeSet<super::super::super::objects::event::Event>,
        conjure_http::private::Error,
    >;
    /// Gets a filtered set of events by RID and search filters.
    #[endpoint(
        method = POST,
        path = "/event/v1/events/batch-filter-get",
        name = "batchFilterEvents",
        accept = conjure_http::client::conjure::CollectionResponseDeserializer
    )]
    async fn batch_filter_events(
        &self,
        #[auth]
        auth_: &conjure_object::BearerToken,
        #[body(serializer = conjure_http::client::StdRequestSerializer)]
        request: &super::super::super::objects::event::BatchFilterEventsRequest,
    ) -> Result<
        std::collections::BTreeSet<super::super::super::objects::event::Event>,
        conjure_http::private::Error,
    >;
    /// Updates the fields of an event. Empty fields are left unchanged.
    #[endpoint(
        method = POST,
        path = "/event/v1/update-event",
        name = "updateEvent",
        accept = conjure_http::client::StdResponseDeserializer
    )]
    async fn update_event(
        &self,
        #[auth]
        auth_: &conjure_object::BearerToken,
        #[body(serializer = conjure_http::client::StdRequestSerializer)]
        request: &super::super::super::objects::event::UpdateEvent,
    ) -> Result<
        super::super::super::objects::event::Event,
        conjure_http::private::Error,
    >;
    /// Updates the fields of an event specified by each request in the batch.
    /// Empty fields in the UpdateEventRequest are left unchanged.
    #[endpoint(
        method = POST,
        path = "/event/v1/events/batch-update",
        name = "batchUpdateEvent",
        accept = conjure_http::client::StdResponseDeserializer
    )]
    async fn batch_update_event(
        &self,
        #[auth]
        auth_: &conjure_object::BearerToken,
        #[body(serializer = conjure_http::client::StdRequestSerializer)]
        request: &super::super::super::objects::event::BatchUpdateEventRequest,
    ) -> Result<
        super::super::super::objects::event::BatchUpdateEventResponse,
        conjure_http::private::Error,
    >;
    /// Updates the disposition of an event.
    #[endpoint(
        method = POST,
        path = "/event/v1/update-disposition",
        name = "batchUpdateDisposition",
        accept = conjure_http::client::StdResponseDeserializer
    )]
    async fn batch_update_disposition(
        &self,
        #[auth]
        auth_: &conjure_object::BearerToken,
        #[body(serializer = conjure_http::client::StdRequestSerializer)]
        request: &super::super::super::objects::event::BatchUpdateDispositionRequest,
    ) -> Result<
        super::super::super::objects::event::BatchUpdateDispositionResponse,
        conjure_http::private::Error,
    >;
    /// Archives an event
    #[endpoint(
        method = POST,
        path = "/event/v1/archive-event",
        name = "archiveEvent",
        accept = conjure_http::client::conjure::EmptyResponseDeserializer
    )]
    async fn archive_event(
        &self,
        #[auth]
        auth_: &conjure_object::BearerToken,
        #[body(serializer = conjure_http::client::StdRequestSerializer)]
        request: &super::super::super::objects::event::ArchiveEvent,
    ) -> Result<(), conjure_http::private::Error>;
    /// Archives a set of events
    #[endpoint(
        method = POST,
        path = "/event/v1/batch-archive-events",
        name = "batchArchiveEvent",
        accept = conjure_http::client::conjure::EmptyResponseDeserializer
    )]
    async fn batch_archive_event(
        &self,
        #[auth]
        auth_: &conjure_object::BearerToken,
        #[body(serializer = conjure_http::client::StdRequestSerializer)]
        request: &std::collections::BTreeSet<conjure_object::ResourceIdentifier>,
    ) -> Result<(), conjure_http::private::Error>;
    /// Unarchives a set of events
    #[endpoint(
        method = POST,
        path = "/event/v1/batch-unarchive-events",
        name = "batchUnarchiveEvent",
        accept = conjure_http::client::conjure::EmptyResponseDeserializer
    )]
    async fn batch_unarchive_event(
        &self,
        #[auth]
        auth_: &conjure_object::BearerToken,
        #[body(serializer = conjure_http::client::StdRequestSerializer)]
        request: &std::collections::BTreeSet<conjure_object::ResourceIdentifier>,
    ) -> Result<(), conjure_http::private::Error>;
    /// Searches for events that match the given filters.
    #[endpoint(
        method = POST,
        path = "/event/v1/search-events",
        name = "searchEvents",
        accept = conjure_http::client::StdResponseDeserializer
    )]
    async fn search_events(
        &self,
        #[auth]
        auth_: &conjure_object::BearerToken,
        #[body(serializer = conjure_http::client::StdRequestSerializer)]
        request: &super::super::super::objects::event::SearchEventsRequest,
    ) -> Result<
        super::super::super::objects::event::SearchEventsResponse,
        conjure_http::private::Error,
    >;
    /// Searches for events matching the given filter and aggregates them based on the requested functions.
    #[endpoint(
        method = POST,
        path = "/event/v1/aggregate-events",
        name = "aggregateEvents",
        accept = conjure_http::client::StdResponseDeserializer
    )]
    async fn aggregate_events(
        &self,
        #[auth]
        auth_: &conjure_object::BearerToken,
        #[body(serializer = conjure_http::client::StdRequestSerializer)]
        request: &super::super::super::objects::event::AggregateEventsRequest,
    ) -> Result<
        super::super::super::objects::event::AggregateEventsResponse,
        conjure_http::private::Error,
    >;
    /// Searches for events matching the given filter and aggregates them based on the requested functions.
    /// Returns a list of responses in same order as the batched requests.
    #[endpoint(
        method = POST,
        path = "/event/v1/aggregate-events/batch",
        name = "batchAggregateEvents",
        accept = conjure_http::client::StdResponseDeserializer
    )]
    async fn batch_aggregate_events(
        &self,
        #[auth]
        auth_: &conjure_object::BearerToken,
        #[body(serializer = conjure_http::client::StdRequestSerializer)]
        request: &super::super::super::objects::event::BatchAggregateEventsRequest,
    ) -> Result<
        super::super::super::objects::event::BatchAggregateEventsResponse,
        conjure_http::private::Error,
    >;
    /// Gets a histogram of events that match the given filters.
    #[endpoint(
        method = POST,
        path = "/event/v1/histogram",
        name = "getEventsHistogram",
        accept = conjure_http::client::StdResponseDeserializer
    )]
    async fn get_events_histogram(
        &self,
        #[auth]
        auth_: &conjure_object::BearerToken,
        #[body(serializer = conjure_http::client::StdRequestSerializer)]
        request: &super::super::super::objects::event::EventsHistogramRequest,
    ) -> Result<
        super::super::super::objects::event::EventsHistogramResponse,
        conjure_http::private::Error,
    >;
    /// Lists the properties and labels of all events in the provided workspaces.
    #[endpoint(
        method = POST,
        path = "/event/v1/list-properties-labels",
        name = "listPropertiesAndLabels",
        accept = conjure_http::client::StdResponseDeserializer
    )]
    async fn list_properties_and_labels(
        &self,
        #[auth]
        auth_: &conjure_object::BearerToken,
        #[body(serializer = conjure_http::client::StdRequestSerializer)]
        request: &super::super::super::objects::event::ListPropertiesAndLabelsRequest,
    ) -> Result<
        super::super::super::objects::scout::metadata::ListPropertiesAndLabelsResponse,
        conjure_http::private::Error,
    >;
}
