@devvit/protos 0.11.18-next-2025-06-17-19-03-37-c416ca6e8.0 → 0.11.18-next-2025-06-17-21-41-57-eba065cfc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,26 @@
1
+ syntax = "proto3";
2
+
3
+ package devvit.ui.effect_types.v1alpha;
4
+
5
+ import "devvit/events/v1alpha/realtime.proto";
6
+
7
+ option go_package = "github.snooguts.net/reddit/reddit-devplatform-monorepo/go-common/generated/protos/types/devvit/ui/effect_types/v1alpha";
8
+ option java_package = "com.reddit.devvit.ui.effect_types.v1alpha";
9
+
10
+ enum RealtimeSubscriptionStatus {
11
+ REALTIME_SUBSCRIBED = 0;
12
+ REALTIME_UNSUBSCRIBED = 1;
13
+ }
14
+
15
+ // Instruct the client to subscribe to realtime events
16
+ message RealtimeSubscriptionsEffect {
17
+ // List of IDs the client should be subscribed to
18
+ repeated string subscription_ids = 1;
19
+ }
20
+
21
+ message RealtimeSubscriptionEvent {
22
+ // Event data from the subscription
23
+ devvit.events.v1alpha.RealtimeEvent event = 1;
24
+ // If set, this event signals a change in the subscription status
25
+ optional RealtimeSubscriptionStatus status = 2;
26
+ }
@@ -2,6 +2,7 @@ syntax = "proto3";
2
2
 
3
3
  package devvit.ui.effects.web_view.v1alpha;
4
4
 
5
+ import "devvit/ui/effect_types/v1alpha/realtime_subscription.proto";
5
6
  import "google/protobuf/struct.proto";
6
7
 
7
8
  option go_package = "github.snooguts.net/reddit/reddit-devplatform-monorepo/go-common/generated/protos/types/devvit/ui/effects/web_view/v1alpha";
@@ -24,6 +25,8 @@ message WebViewInternalMessage {
24
25
  google.protobuf.Struct analytics = 3;
25
26
  // Origin: devvit-client
26
27
  google.protobuf.Struct effect = 4;
28
+ // Origin: devvit-client
29
+ devvit.ui.effect_types.v1alpha.RealtimeSubscriptionsEffect realtime_effect = 6;
27
30
  }
28
31
 
29
32
  optional string id = 5;