@devvit/protos 0.11.8-next-2025-03-06-e69f04396.0 → 0.11.8-next-2025-03-10-50b0ed2ce.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 +11 -6
- 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 +14 -0
- package/schema/devvit/plugin/redditapi/linksandcomments/linksandcomments_msg.proto +7 -0
- package/schema/snootobuf.devenv.lock +760 -398
- package/schema/snootobuf.lock +760 -398
- package/schema/snootobuf.redditapi.lock +760 -398
- package/schema/snootobuf.ts.lock +760 -398
- package/types/devvit/plugin/redditapi/common/common_msg.d.ts +24 -0
- package/types/devvit/plugin/redditapi/common/common_msg.d.ts.map +1 -1
- package/types/devvit/plugin/redditapi/common/common_msg.js +102 -0
- package/types/devvit/plugin/redditapi/linksandcomments/linksandcomments_msg.d.ts +7 -0
- package/types/devvit/plugin/redditapi/linksandcomments/linksandcomments_msg.d.ts.map +1 -1
- package/types/devvit/plugin/redditapi/linksandcomments/linksandcomments_msg.js +50 -1
- package/types/devvit/plugin/redditapi/linksandcomments/linksandcomments_svc.d.ts +31 -1
- package/types/devvit/plugin/redditapi/linksandcomments/linksandcomments_svc.d.ts.map +1 -1
@@ -630,3 +630,17 @@ message ApiClientConfig {
|
|
630
630
|
// func fixMethodNameResponse([]bytes) (*ResponseType, error)
|
631
631
|
bool use_custom_response_parser = 8;
|
632
632
|
}
|
633
|
+
|
634
|
+
// Indicates who the request should be made on behalf of. Currently, only 'APP' or 'USER' types are supported.
|
635
|
+
enum RunAs {
|
636
|
+
APP = 0;
|
637
|
+
USER = 1;
|
638
|
+
}
|
639
|
+
|
640
|
+
// Represents data on the user's content submission
|
641
|
+
message UserGeneratedContent {
|
642
|
+
// The text body of the content
|
643
|
+
string text = 1;
|
644
|
+
// The imageUrls attached to the content, if any
|
645
|
+
repeated string image_urls = 2;
|
646
|
+
}
|
@@ -2,6 +2,7 @@ syntax = "proto3";
|
|
2
2
|
|
3
3
|
package devvit.plugin.redditapi.linksandcomments;
|
4
4
|
|
5
|
+
import "devvit/plugin/redditapi/common/common_msg.proto";
|
5
6
|
import "devvit/reddit/comment.proto";
|
6
7
|
import "google/protobuf/any.proto";
|
7
8
|
import "google/protobuf/struct.proto";
|
@@ -22,6 +23,8 @@ message CommentRequest {
|
|
22
23
|
// Post or Comment thing ID
|
23
24
|
// @example "t3_abc123"
|
24
25
|
string thing_id = 3;
|
26
|
+
// Indicates who the Comment should be created as
|
27
|
+
plugin.redditapi.common.RunAs run_as = 4;
|
25
28
|
}
|
26
29
|
|
27
30
|
message FollowPostRequest {
|
@@ -201,6 +204,10 @@ message SubmitRequest {
|
|
201
204
|
google.protobuf.StringValue richtext_fallback = 21;
|
202
205
|
// If `kind` is "image" this must be set to the images URLs
|
203
206
|
google.protobuf.ListValue image_urls = 22;
|
207
|
+
// Indicates who the Post should be submited as
|
208
|
+
plugin.redditapi.common.RunAs run_as = 23;
|
209
|
+
// The UserGeneratedContent attached to the Post
|
210
|
+
plugin.redditapi.common.UserGeneratedContent user_generated_content = 24;
|
204
211
|
|
205
212
|
// Removed fields
|
206
213
|
reserved 11;
|