@devvit/protos 0.11.20-next-2025-07-23-18-31-30-344ac3734.0 → 0.11.20-next-2025-07-23-19-34-14-05e5ea9c7.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.
@@ -7,6 +7,14 @@ import "google/protobuf/struct.proto";
7
7
  option go_package = "github.snooguts.net/reddit/reddit-devplatform-monorepo/go-common/generated/protos/types/devvit/ui/effects/web_view/v1alpha";
8
8
  option java_package = "com.reddit.devvit.ui.effects.web_view.v1alpha";
9
9
 
10
+ // The user client hosting the web view.
11
+ enum Client {
12
+ CLIENT_UNSPECIFIED = 0;
13
+ ANDROID = 1;
14
+ IOS = 2;
15
+ SHREDDIT = 3;
16
+ }
17
+
10
18
  // Initialization data sent from the client (Shreddit, Android, iOS) to the
11
19
  // web view.
12
20
  message BridgeContext {
@@ -26,6 +34,36 @@ message BridgeContext {
26
34
  // `devvitdebug` query param of the hosting
27
35
  // window (eg, `reddit.com?devvitdebug=...`).
28
36
  string devvit_debug = 5;
37
+ Client client = 6;
38
+ oneof client_version {
39
+ NativeClientVersion native_version = 7;
40
+ // `@devvit/ui-renderer` version.
41
+ SemVer shreddit_version = 8;
42
+ }
43
+ }
44
+
45
+ // Android or iOS client version. Unavailable for web clients.
46
+ message NativeClientVersion {
47
+ // Year built. Eg, `2025`.
48
+ int32 yyyy = 1;
49
+ // Release number starting from 1 as the first release in January. Eg, `1`.
50
+ int32 release = 2;
51
+ // Release attempt. Eg, `0`.
52
+ int32 attempt = 3;
53
+ // Build number. Eg, `2417036`.
54
+ int32 number = 4;
55
+ }
56
+
57
+ // Semantic version major, minor, and patch number.
58
+ message SemVer {
59
+ // Major version. Eg, `1`.
60
+ int32 major = 1;
61
+ // Minor version. Eg, `2`.
62
+ int32 minor = 2;
63
+ // Patch version. Eg, `3`.
64
+ int32 patch = 3;
65
+ // Original version string.
66
+ string version = 4;
29
67
  }
30
68
 
31
69
  message WebViewContext {
@@ -7,6 +7,14 @@ import "google/protobuf/struct.proto";
7
7
  option go_package = "github.snooguts.net/reddit/reddit-devplatform-monorepo/go-common/generated/protos/types/devvit/ui/effects/web_view/v1alpha";
8
8
  option java_package = "com.reddit.devvit.ui.effects.web_view.v1alpha";
9
9
 
10
+ // The user client hosting the web view.
11
+ enum Client {
12
+ CLIENT_UNSPECIFIED = 0;
13
+ ANDROID = 1;
14
+ IOS = 2;
15
+ SHREDDIT = 3;
16
+ }
17
+
10
18
  // Initialization data sent from the client (Shreddit, Android, iOS) to the
11
19
  // web view.
12
20
  message BridgeContext {
@@ -26,6 +34,36 @@ message BridgeContext {
26
34
  // `devvitdebug` query param of the hosting
27
35
  // window (eg, `reddit.com?devvitdebug=...`).
28
36
  string devvit_debug = 5;
37
+ Client client = 6;
38
+ oneof client_version {
39
+ NativeClientVersion native_version = 7;
40
+ // `@devvit/ui-renderer` version.
41
+ SemVer shreddit_version = 8;
42
+ }
43
+ }
44
+
45
+ // Android or iOS client version. Unavailable for web clients.
46
+ message NativeClientVersion {
47
+ // Year built. Eg, `2025`.
48
+ int32 yyyy = 1;
49
+ // Release number starting from 1 as the first release in January. Eg, `1`.
50
+ int32 release = 2;
51
+ // Release attempt. Eg, `0`.
52
+ int32 attempt = 3;
53
+ // Build number. Eg, `2417036`.
54
+ int32 number = 4;
55
+ }
56
+
57
+ // Semantic version major, minor, and patch number.
58
+ message SemVer {
59
+ // Major version. Eg, `1`.
60
+ int32 major = 1;
61
+ // Minor version. Eg, `2`.
62
+ int32 minor = 2;
63
+ // Patch version. Eg, `3`.
64
+ int32 patch = 3;
65
+ // Original version string.
66
+ string version = 4;
29
67
  }
30
68
 
31
69
  message WebViewContext {