@devvit/protos 0.12.0-next-2025-04-24-137462f28.0 → 0.12.0-next-2025-04-28-276a82082.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.
Files changed (42) hide show
  1. package/meta.min.json +22 -12
  2. package/package.json +6 -6
  3. package/protos.min.js +1 -1
  4. package/protos.min.js.map +3 -3
  5. package/schema/devvit/plugin/redditapi/common/common_msg.proto +12 -1
  6. package/schema/devvit/ui/effects/v1alpha/show_form.proto +5 -0
  7. package/schema/devvit/ui/effects/web_view/v1alpha/post_message.proto +2 -0
  8. package/schema/devvit/ui/events/v1alpha/event.proto +1 -0
  9. package/schema/devvit/ui/events/v1alpha/web_view.proto +10 -0
  10. package/schema/snootobuf.devenv.lock +1150 -521
  11. package/schema/snootobuf.lock +1150 -521
  12. package/schema/snootobuf.redditapi.lock +1150 -521
  13. package/schema/snootobuf.ts.lock +1150 -521
  14. package/types/devvit/plugin/redditapi/common/common_msg.d.ts +19 -0
  15. package/types/devvit/plugin/redditapi/common/common_msg.d.ts.map +1 -1
  16. package/types/devvit/plugin/redditapi/common/common_msg.js +110 -0
  17. package/types/devvit/plugin/redditapi/linksandcomments/linksandcomments_svc.d.ts +20 -0
  18. package/types/devvit/plugin/redditapi/linksandcomments/linksandcomments_svc.d.ts.map +1 -1
  19. package/types/devvit/plugin/redditapi/listings/listings_svc.d.ts +80 -0
  20. package/types/devvit/plugin/redditapi/listings/listings_svc.d.ts.map +1 -1
  21. package/types/devvit/plugin/redditapi/moderation/moderation_svc.d.ts +71 -1
  22. package/types/devvit/plugin/redditapi/moderation/moderation_svc.d.ts.map +1 -1
  23. package/types/devvit/plugin/redditapi/privatemessages/privatemessages_svc.d.ts +10 -0
  24. package/types/devvit/plugin/redditapi/privatemessages/privatemessages_svc.d.ts.map +1 -1
  25. package/types/devvit/plugin/redditapi/subreddits/subreddits_svc.d.ts +20 -0
  26. package/types/devvit/plugin/redditapi/subreddits/subreddits_svc.d.ts.map +1 -1
  27. package/types/devvit/plugin/redditapi/users/users_svc.d.ts +10 -0
  28. package/types/devvit/plugin/redditapi/users/users_svc.d.ts.map +1 -1
  29. package/types/devvit/reddit/custom_post/v1alpha/custom_post.d.ts +24 -0
  30. package/types/devvit/reddit/custom_post/v1alpha/custom_post.d.ts.map +1 -1
  31. package/types/devvit/ui/effects/v1alpha/show_form.d.ts +13 -0
  32. package/types/devvit/ui/effects/v1alpha/show_form.d.ts.map +1 -1
  33. package/types/devvit/ui/effects/v1alpha/show_form.js +52 -0
  34. package/types/devvit/ui/effects/web_view/v1alpha/post_message.d.ts +1 -0
  35. package/types/devvit/ui/effects/web_view/v1alpha/post_message.d.ts.map +1 -1
  36. package/types/devvit/ui/effects/web_view/v1alpha/post_message.js +15 -1
  37. package/types/devvit/ui/events/v1alpha/event.d.ts +2 -1
  38. package/types/devvit/ui/events/v1alpha/event.d.ts.map +1 -1
  39. package/types/devvit/ui/events/v1alpha/event.js +18 -1
  40. package/types/devvit/ui/events/v1alpha/web_view.d.ts +16 -0
  41. package/types/devvit/ui/events/v1alpha/web_view.d.ts.map +1 -1
  42. package/types/devvit/ui/events/v1alpha/web_view.js +87 -0
@@ -435,7 +435,18 @@ message RedditObject {
435
435
  // - None: object is not removed
436
436
  google.protobuf.StringValue removed_by_category = 110;
437
437
 
438
- // NEXT: 111
438
+ message GalleryMedia {
439
+ // The URL of the media
440
+ string url = 1;
441
+ // The width of the media in pixels
442
+ int64 width = 2;
443
+ // The height of the media in pixels
444
+ int64 height = 3;
445
+ }
446
+ // List of media (images or gifs) in a gallery post
447
+ repeated GalleryMedia gallery = 111;
448
+
449
+ // NEXT: 112
439
450
  }
440
451
 
441
452
  // @privateRemarks
@@ -19,3 +19,8 @@ message FormSubmittedEvent {
19
19
 
20
20
  optional string form_id = 2;
21
21
  }
22
+
23
+ // Form canceled
24
+ message FormCanceledEvent {
25
+ optional string form_id = 1;
26
+ }
@@ -25,6 +25,8 @@ message WebViewInternalMessage {
25
25
  // Origin: devvit-client
26
26
  google.protobuf.Struct effect = 4;
27
27
  }
28
+
29
+ optional string id = 5;
28
30
  }
29
31
 
30
32
  // Each message described below here will be converted to a Struct and sent to a WebView wrapped in a WebViewPostMessage:
@@ -36,6 +36,7 @@ message UIEvent {
36
36
  BlockingRenderEvent blocking = 13;
37
37
  ResizeEvent resize = 14;
38
38
  WebViewEvent web_view = 20;
39
+ devvit.ui.effects.v1alpha.FormCanceledEvent form_canceled = 21;
39
40
  }
40
41
 
41
42
  // If an event is async, it can be fired in parallel with other events. Async events
@@ -2,6 +2,7 @@ syntax = "proto3";
2
2
 
3
3
  package devvit.ui.events.v1alpha;
4
4
 
5
+ import "devvit/ui/effects/v1alpha/show_form.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/events/v1alpha";
@@ -33,3 +34,12 @@ message WebViewEvent {
33
34
  WebViewFullScreenEvent full_screen = 2;
34
35
  }
35
36
  }
37
+
38
+ message WebViewInternalEventMessage {
39
+ // ID of the event message, matches the id of the WebViewInternalMessage that triggered it
40
+ string id = 1;
41
+ oneof data {
42
+ devvit.ui.effects.v1alpha.FormCanceledEvent form_canceled = 2;
43
+ devvit.ui.effects.v1alpha.FormSubmittedEvent form_submitted = 3;
44
+ }
45
+ }