@devvit/protos 0.11.0-next-2024-07-10-85ade0a81.0 → 0.11.0-next-2024-07-11-9d8f8bdd4.0
Sign up to get free protection for your applications and to get access to all the features.
- package/index.d.ts +4 -2
- package/index.d.ts.map +1 -1
- package/meta.min.json +17 -9
- package/package.json +7 -7
- package/protos.min.js +2 -2
- package/protos.min.js.map +3 -3
- package/schema/devvit/actor/automation/v1alpha/event_handlers.proto +8 -0
- package/schema/devvit/data/triggers/v1alpha/triggers.proto +7 -1
- package/schema/devvit/dev_portal/nutrition/nutrition.proto +2 -0
- package/schema/devvit/events/v1alpha/events.proto +57 -0
- package/types/devvit/actor/automation/v1alpha/event_handlers.d.ts +591 -1
- package/types/devvit/actor/automation/v1alpha/event_handlers.d.ts.map +1 -1
- package/types/devvit/actor/automation/v1alpha/event_handlers.js +55 -1
- package/types/devvit/data/triggers/v1alpha/triggers.d.ts +4 -1
- package/types/devvit/data/triggers/v1alpha/triggers.d.ts.map +1 -1
- package/types/devvit/data/triggers/v1alpha/triggers.js +37 -1
- package/types/devvit/dev_portal/nutrition/nutrition.d.ts +2 -0
- package/types/devvit/dev_portal/nutrition/nutrition.d.ts.map +1 -1
- package/types/devvit/dev_portal/nutrition/nutrition.js +7 -0
- package/types/devvit/events/v1alpha/events.d.ts +30 -0
- package/types/devvit/events/v1alpha/events.d.ts.map +1 -1
- package/types/devvit/events/v1alpha/events.js +200 -0
- package/types/devvit/gateway/v1alpha/triggers.d.ts +1020 -4
- package/types/devvit/gateway/v1alpha/triggers.d.ts.map +1 -1
@@ -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
|
-
|
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
|
+
}
|