@devvit/protos 0.11.4-next-2024-12-03-2baa412bf.0 → 0.11.4-next-2024-12-03-7d3fffba9.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 +6 -6
- package/package.json +6 -6
- package/protos.min.js +1 -1
- package/protos.min.js.map +3 -3
- package/schema/devvit/plugin/redditapi/linksandcomments/linksandcomments_msg.proto +18 -0
- package/schema/devvit/plugin/redditapi/linksandcomments/linksandcomments_svc.proto +4 -0
- package/schema/snootobuf.devenv.lock +1678 -1016
- package/schema/snootobuf.lock +661 -352
- package/schema/snootobuf.redditapi.lock +661 -352
- package/schema/snootobuf.ts.lock +661 -352
- package/types/devvit/plugin/redditapi/linksandcomments/linksandcomments_msg.d.ts +31 -0
- package/types/devvit/plugin/redditapi/linksandcomments/linksandcomments_msg.d.ts.map +1 -1
- package/types/devvit/plugin/redditapi/linksandcomments/linksandcomments_msg.js +115 -0
- package/types/devvit/plugin/redditapi/linksandcomments/linksandcomments_svc.d.ts +38 -7
- package/types/devvit/plugin/redditapi/linksandcomments/linksandcomments_svc.d.ts.map +1 -1
- package/types/devvit/plugin/redditapi/linksandcomments/linksandcomments_svc.js +16 -1
- package/types/devvit/plugin/redditapi/linksandcomments/linksandcomments_svc.twirp-client.d.ts +4 -1
- package/types/devvit/plugin/redditapi/linksandcomments/linksandcomments_svc.twirp-client.d.ts.map +1 -1
- package/types/devvit/plugin/redditapi/linksandcomments/linksandcomments_svc.twirp-client.js +13 -1
- package/types/devvit/plugin/redditapi/linksandcomments/linksandcomments_svc.twirp.d.ts +3 -1
- package/types/devvit/plugin/redditapi/linksandcomments/linksandcomments_svc.twirp.d.ts.map +1 -1
- package/types/devvit/plugin/redditapi/linksandcomments/linksandcomments_svc.twirp.js +67 -1
@@ -225,6 +225,24 @@ message EditCustomPostRequest {
|
|
225
225
|
optional google.protobuf.StringValue richtext_fallback = 2;
|
226
226
|
}
|
227
227
|
|
228
|
+
message SetCustomPostPreviewRequest {
|
229
|
+
// Post or Comment thing ID
|
230
|
+
// @example "t3_abc123"
|
231
|
+
string thing_id = 1;
|
232
|
+
|
233
|
+
enum BodyType {
|
234
|
+
// Default value. Should not be used for requests.
|
235
|
+
UNKNOWN = 0;
|
236
|
+
// Body is a Blocks rendering, and should be present in `blocks_render_content`.
|
237
|
+
BLOCKS = 1;
|
238
|
+
}
|
239
|
+
BodyType body_type = 2;
|
240
|
+
|
241
|
+
// For body_type=BLOCKS, this is a base64-encoded Block proto.
|
242
|
+
// See: devvit.ui.block_kit.v1beta.Block
|
243
|
+
google.protobuf.StringValue blocks_render_content = 3;
|
244
|
+
}
|
245
|
+
|
228
246
|
// Response Types
|
229
247
|
message JsonWrappedComment {
|
230
248
|
message WrappedComment {
|
@@ -149,6 +149,10 @@ service LinksAndComments {
|
|
149
149
|
}
|
150
150
|
// Edit or set fields unique to developer platform custom posts
|
151
151
|
rpc EditCustomPost(EditCustomPostRequest) returns (devvit.plugin.redditapi.common.JsonRedditObjects);
|
152
|
+
|
153
|
+
// Update the custom post preview content for a Custom Post.
|
154
|
+
rpc SetCustomPostPreview(SetCustomPostPreviewRequest) returns (google.protobuf.Empty);
|
155
|
+
|
152
156
|
// Set the "sticky" or "pinned" status of a Post
|
153
157
|
//
|
154
158
|
// If the post was created by the current user they can pin the post
|