@@ -11,6 +11,8 @@ mod background_task;
1111mod endpoint;
1212mod environment;
1313mod event_type;
14+ #[ cfg( feature = "svix_beta" ) ]
15+ mod events_public;
1416mod ingest;
1517mod ingest_endpoint;
1618mod ingest_source;
@@ -21,8 +23,6 @@ mod operational_webhook;
2123mod operational_webhook_endpoint;
2224mod statistics;
2325
24- #[ cfg( feature = "svix_beta" ) ]
25- pub use self :: message:: { V1MessageEventsParams , V1MessageEventsSubscriptionParams } ;
2626pub use self :: {
2727 application:: { Application , ApplicationCreateOptions , ApplicationListOptions } ,
2828 authentication:: {
@@ -68,6 +68,11 @@ pub use self::{
6868 } ,
6969 statistics:: { Statistics , StatisticsAggregateAppStatsOptions } ,
7070} ;
71+ #[ cfg( feature = "svix_beta" ) ]
72+ pub use self :: {
73+ events_public:: { EventsPublic , EventsPublicConsumerOptions , EventsPublicConsumerSeekOptions } ,
74+ message:: { V1MessageEventsParams , V1MessageEventsSubscriptionParams } ,
75+ } ;
7176
7277#[ deprecated = "Use EndpointGetStatusOptions instead" ]
7378pub type EndpointStatsOptions = EndpointGetStatsOptions ;
@@ -99,6 +104,11 @@ impl Svix {
99104 Environment :: new ( & self . cfg )
100105 }
101106
107+ #[ cfg( feature = "svix_beta" ) ]
108+ pub fn events_public ( & self ) -> EventsPublic < ' _ > {
109+ EventsPublic :: new ( & self . cfg )
110+ }
111+
102112 pub fn ingest ( & self ) -> Ingest < ' _ > {
103113 Ingest :: new ( & self . cfg )
104114 }
0 commit comments