@devvit/protos 0.11.0-next-2024-07-10-032c868ba.0 → 0.11.0-next-2024-07-10-c63149a74.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -87,3 +87,11 @@ service OnModMail {
87
87
  service OnAccountDelete {
88
88
  rpc OnAccountDelete(devvit.events.v1alpha.AccountDelete) returns (HandlerResult);
89
89
  }
90
+
91
+ service OnPostNsfwUpdate {
92
+ rpc OnPostNsfwUpdate(devvit.events.v1alpha.PostNsfwUpdate) returns (HandlerResult);
93
+ }
94
+
95
+ service OnPostSpoilerUpdate {
96
+ rpc OnPostSpoilerUpdate(devvit.events.v1alpha.PostSpoilerUpdate) returns (HandlerResult);
97
+ }
@@ -141,7 +141,13 @@ message TriggerEvent {
141
141
  },
142
142
  (devvit.options.firehose_event_type) = COMMENT_APPROVE
143
143
  ];
144
+ devvit.events.v1alpha.PostNsfwUpdate nsfw_post_update = 120 [(devvit.options.deliver_to) = {
145
+ to: [GATEWAY]
146
+ }];
144
147
 
145
- // NEXT: 120
148
+ devvit.events.v1alpha.PostSpoilerUpdate spoiler_post_update = 121 [(devvit.options.deliver_to) = {
149
+ to: [GATEWAY]
150
+ }];
151
+ // NEXT: 122
146
152
  }
147
153
  }
@@ -351,3 +351,60 @@ message Vote {
351
351
  reserved 1 to 3;
352
352
  reserved "thing_id", "upvotes", "downvotes";
353
353
  }
354
+
355
+ message PostNsfwUpdate {
356
+ option (devvit.options.trigger) = {
357
+ source: "moderator"
358
+ action: "mark_nsfw"
359
+ noun: "post"
360
+ };
361
+ option (devvit.options.trigger) = {
362
+ source: "moderator"
363
+ action: "marknsfw"
364
+ noun: "post"
365
+ };
366
+ option (devvit.options.trigger) = {
367
+ source: "automoderator"
368
+ action: "mark_nsfw"
369
+ noun: "post"
370
+ };
371
+ option (devvit.options.trigger) = {
372
+ source: "automoderator"
373
+ action: "unmark_nsfw"
374
+ noun: "post"
375
+ };
376
+
377
+ devvit.reddit.v2alpha.PostV2 post = 1;
378
+ devvit.reddit.v2alpha.UserV2 author = 2;
379
+ bool is_nsfw = 3 [(devvit.options.v2_event_path) = "target_post.nsfw"];
380
+
381
+ devvit.reddit.v2alpha.SubredditV2 subreddit = 10 [(devvit.options.secondary_hydration_path) = "post.subreddit_id"];
382
+ }
383
+
384
+ message PostSpoilerUpdate {
385
+ option (devvit.options.trigger) = {
386
+ source: "moderator"
387
+ action: "mark_spoiler"
388
+ noun: "post"
389
+ };
390
+ option (devvit.options.trigger) = {
391
+ source: "moderator"
392
+ action: "unmark_spoiler"
393
+ noun: "post"
394
+ };
395
+ option (devvit.options.trigger) = {
396
+ source: "automoderator"
397
+ action: "mark_spoiler"
398
+ noun: "post"
399
+ };
400
+ option (devvit.options.trigger) = {
401
+ source: "automoderator"
402
+ action: "unmark_spoiler"
403
+ noun: "post"
404
+ };
405
+ devvit.reddit.v2alpha.PostV2 post = 1;
406
+ devvit.reddit.v2alpha.UserV2 author = 2;
407
+ bool is_nsfw = 3 [(devvit.options.v2_event_path) = "target_post.spoiler"];
408
+
409
+ devvit.reddit.v2alpha.SubredditV2 subreddit = 10 [(devvit.options.secondary_hydration_path) = "post.subreddit_id"];
410
+ }