@devvit/protos 0.12.0-next-2025-04-24-137462f28.0 → 0.12.0-next-2025-04-28-dc6034d73.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.
- package/meta.min.json +22 -12
- package/package.json +6 -6
- package/protos.min.js +1 -1
- package/protos.min.js.map +3 -3
- package/schema/devvit/plugin/redditapi/common/common_msg.proto +12 -1
- package/schema/devvit/ui/effects/v1alpha/show_form.proto +5 -0
- package/schema/devvit/ui/effects/web_view/v1alpha/post_message.proto +2 -0
- package/schema/devvit/ui/events/v1alpha/event.proto +1 -0
- package/schema/devvit/ui/events/v1alpha/web_view.proto +10 -0
- package/schema/snootobuf.devenv.lock +1150 -521
- package/schema/snootobuf.lock +1150 -521
- package/schema/snootobuf.redditapi.lock +1150 -521
- package/schema/snootobuf.ts.lock +1150 -521
- package/types/devvit/plugin/redditapi/common/common_msg.d.ts +19 -0
- package/types/devvit/plugin/redditapi/common/common_msg.d.ts.map +1 -1
- package/types/devvit/plugin/redditapi/common/common_msg.js +110 -0
- package/types/devvit/plugin/redditapi/linksandcomments/linksandcomments_svc.d.ts +20 -0
- package/types/devvit/plugin/redditapi/linksandcomments/linksandcomments_svc.d.ts.map +1 -1
- package/types/devvit/plugin/redditapi/listings/listings_svc.d.ts +80 -0
- package/types/devvit/plugin/redditapi/listings/listings_svc.d.ts.map +1 -1
- package/types/devvit/plugin/redditapi/moderation/moderation_svc.d.ts +71 -1
- package/types/devvit/plugin/redditapi/moderation/moderation_svc.d.ts.map +1 -1
- package/types/devvit/plugin/redditapi/privatemessages/privatemessages_svc.d.ts +10 -0
- package/types/devvit/plugin/redditapi/privatemessages/privatemessages_svc.d.ts.map +1 -1
- package/types/devvit/plugin/redditapi/subreddits/subreddits_svc.d.ts +20 -0
- package/types/devvit/plugin/redditapi/subreddits/subreddits_svc.d.ts.map +1 -1
- package/types/devvit/plugin/redditapi/users/users_svc.d.ts +10 -0
- package/types/devvit/plugin/redditapi/users/users_svc.d.ts.map +1 -1
- package/types/devvit/reddit/custom_post/v1alpha/custom_post.d.ts +24 -0
- package/types/devvit/reddit/custom_post/v1alpha/custom_post.d.ts.map +1 -1
- package/types/devvit/ui/effects/v1alpha/show_form.d.ts +13 -0
- package/types/devvit/ui/effects/v1alpha/show_form.d.ts.map +1 -1
- package/types/devvit/ui/effects/v1alpha/show_form.js +52 -0
- package/types/devvit/ui/effects/web_view/v1alpha/post_message.d.ts +1 -0
- package/types/devvit/ui/effects/web_view/v1alpha/post_message.d.ts.map +1 -1
- package/types/devvit/ui/effects/web_view/v1alpha/post_message.js +15 -1
- package/types/devvit/ui/events/v1alpha/event.d.ts +2 -1
- package/types/devvit/ui/events/v1alpha/event.d.ts.map +1 -1
- package/types/devvit/ui/events/v1alpha/event.js +18 -1
- package/types/devvit/ui/events/v1alpha/web_view.d.ts +16 -0
- package/types/devvit/ui/events/v1alpha/web_view.d.ts.map +1 -1
- 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
|
-
|
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
|
@@ -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
|
+
}
|