@@ -11,6 +11,8 @@ mod background_task;
11
11
mod endpoint;
12
12
mod environment;
13
13
mod event_type;
14
+ #[ cfg( feature = "svix_beta" ) ]
15
+ mod events_public;
14
16
mod ingest;
15
17
mod ingest_endpoint;
16
18
mod ingest_source;
@@ -21,8 +23,6 @@ mod operational_webhook;
21
23
mod operational_webhook_endpoint;
22
24
mod statistics;
23
25
24
- #[ cfg( feature = "svix_beta" ) ]
25
- pub use self :: message:: { V1MessageEventsParams , V1MessageEventsSubscriptionParams } ;
26
26
pub use self :: {
27
27
application:: { Application , ApplicationCreateOptions , ApplicationListOptions } ,
28
28
authentication:: {
@@ -68,6 +68,11 @@ pub use self::{
68
68
} ,
69
69
statistics:: { Statistics , StatisticsAggregateAppStatsOptions } ,
70
70
} ;
71
+ #[ cfg( feature = "svix_beta" ) ]
72
+ pub use self :: {
73
+ events_public:: { EventsPublic , EventsPublicConsumerOptions , EventsPublicConsumerSeekOptions } ,
74
+ message:: { V1MessageEventsParams , V1MessageEventsSubscriptionParams } ,
75
+ } ;
71
76
72
77
#[ deprecated = "Use EndpointGetStatusOptions instead" ]
73
78
pub type EndpointStatsOptions = EndpointGetStatsOptions ;
@@ -99,6 +104,11 @@ impl Svix {
99
104
Environment :: new ( & self . cfg )
100
105
}
101
106
107
+ #[ cfg( feature = "svix_beta" ) ]
108
+ pub fn events_public ( & self ) -> EventsPublic < ' _ > {
109
+ EventsPublic :: new ( & self . cfg )
110
+ }
111
+
102
112
pub fn ingest ( & self ) -> Ingest < ' _ > {
103
113
Ingest :: new ( & self . cfg )
104
114
}
0 commit comments