@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.
Files changed (22) hide show
  1. package/meta.min.json +6 -6
  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/linksandcomments/linksandcomments_msg.proto +18 -0
  6. package/schema/devvit/plugin/redditapi/linksandcomments/linksandcomments_svc.proto +4 -0
  7. package/schema/snootobuf.devenv.lock +1678 -1016
  8. package/schema/snootobuf.lock +661 -352
  9. package/schema/snootobuf.redditapi.lock +661 -352
  10. package/schema/snootobuf.ts.lock +661 -352
  11. package/types/devvit/plugin/redditapi/linksandcomments/linksandcomments_msg.d.ts +31 -0
  12. package/types/devvit/plugin/redditapi/linksandcomments/linksandcomments_msg.d.ts.map +1 -1
  13. package/types/devvit/plugin/redditapi/linksandcomments/linksandcomments_msg.js +115 -0
  14. package/types/devvit/plugin/redditapi/linksandcomments/linksandcomments_svc.d.ts +38 -7
  15. package/types/devvit/plugin/redditapi/linksandcomments/linksandcomments_svc.d.ts.map +1 -1
  16. package/types/devvit/plugin/redditapi/linksandcomments/linksandcomments_svc.js +16 -1
  17. package/types/devvit/plugin/redditapi/linksandcomments/linksandcomments_svc.twirp-client.d.ts +4 -1
  18. package/types/devvit/plugin/redditapi/linksandcomments/linksandcomments_svc.twirp-client.d.ts.map +1 -1
  19. package/types/devvit/plugin/redditapi/linksandcomments/linksandcomments_svc.twirp-client.js +13 -1
  20. package/types/devvit/plugin/redditapi/linksandcomments/linksandcomments_svc.twirp.d.ts +3 -1
  21. package/types/devvit/plugin/redditapi/linksandcomments/linksandcomments_svc.twirp.d.ts.map +1 -1
  22. 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