@devvit/protos 0.11.1-next-2024-10-14-1a4ab1d31.0 → 0.11.1-next-2024-10-14-af7baa6eb.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/index.d.ts +1 -1
- package/index.d.ts.map +1 -1
- package/index.js +1 -1
- package/meta.min.json +11 -9
- package/package.json +6 -6
- package/protos.min.js +1 -1
- package/protos.min.js.map +3 -3
- package/schema/.snootobuf/deps/devvit/data/api/v1alpha/delivery.proto +21 -2
- package/schema/.snootobuf/deps/devvit/data/api/v1alpha/filter.proto +2 -3
- package/schema/.snootobuf/deps/devvit/events/v1alpha/events.proto +36 -0
- package/schema/.snootobuf/deps/devvit/reddit/v2alpha/userv2.proto +1 -0
- package/schema/.snootobuf/deps/devvit/triggers/v1alpha/triggers.proto +9 -1
- package/schema/.snootobuf/deps/evaluator/evaluator.proto +32 -27
- package/schema/.snootobuf/deps/reddit/devvit/subreddit/v1/context_action.proto +48 -0
- package/schema/.snootobuf/deps/reddit/devvit/subreddit/v1/manifest.proto +70 -0
- package/schema/.snootobuf/deps/reddit/devvit/subreddit/v1/service.proto +11 -0
- package/schema/devvit/actor/automation/v1alpha/event_handlers.proto +8 -0
- package/schema/snootobuf.devenv.lock +1177 -137
- package/schema/snootobuf.lock +1179 -137
- package/schema/snootobuf.redditapi.lock +1177 -137
- package/schema/snootobuf.ts.lock +1177 -137
- package/schema/snootobuf.yaml +2 -2
- package/types/devvit/actor/automation/v1alpha/event_handlers.d.ts +415 -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/actor/automation/v1alpha/event_handlers.twirp-client.d.ts +33 -1
- package/types/devvit/actor/automation/v1alpha/event_handlers.twirp-client.d.ts.map +1 -1
- package/types/devvit/actor/automation/v1alpha/event_handlers.twirp-client.js +45 -1
- package/types/devvit/actor/automation/v1alpha/event_handlers.twirp.d.ts +17 -1
- package/types/devvit/actor/automation/v1alpha/event_handlers.twirp.d.ts.map +1 -1
- package/types/devvit/actor/automation/v1alpha/event_handlers.twirp.js +177 -1
- package/types/devvit/events/v1alpha/events.d.ts +32 -0
- package/types/devvit/events/v1alpha/events.d.ts.map +1 -1
- package/types/devvit/events/v1alpha/events.js +226 -0
- package/types/devvit/gateway/v1alpha/triggers.d.ts +714 -50
- package/types/devvit/gateway/v1alpha/triggers.d.ts.map +1 -1
- package/types/devvit/reddit/v2alpha/userv2.d.ts +1 -0
- package/types/devvit/reddit/v2alpha/userv2.d.ts.map +1 -1
- package/types/devvit/reddit/v2alpha/userv2.js +15 -0
- package/types/devvit/triggers/v1alpha/triggers.d.ts +4 -2
- package/types/devvit/triggers/v1alpha/triggers.d.ts.map +1 -1
- package/types/devvit/triggers/v1alpha/triggers.js +41 -1
@@ -5,7 +5,7 @@
|
|
5
5
|
*/
|
6
6
|
import _m0 from "protobufjs/minimal.js";
|
7
7
|
import { Metadata } from "../../../../../lib/Types.js";
|
8
|
-
import { AccountDelete, AppInstall, AppUpgrade, CommentApprove, CommentCreate, CommentDelete, CommentReport, CommentSubmit, CommentUpdate, PostApprove, PostCreate, PostDelete, PostFlairUpdate, PostNsfwUpdate, PostReport, PostSpoilerUpdate, PostSubmit, PostUpdate, SubredditSubscribe } from "../../../events/v1alpha/events.js";
|
8
|
+
import { AccountDelete, AppInstall, AppUpgrade, AutomoderatorFilterComment, AutomoderatorFilterPost, CommentApprove, CommentCreate, CommentDelete, CommentReport, CommentSubmit, CommentUpdate, PostApprove, PostCreate, PostDelete, PostFlairUpdate, PostNsfwUpdate, PostReport, PostSpoilerUpdate, PostSubmit, PostUpdate, SubredditSubscribe } from "../../../events/v1alpha/events.js";
|
9
9
|
import { ModAction } from "../../../reddit/v2alpha/modaction.js";
|
10
10
|
import { ModMail } from "../../../reddit/v2alpha/modmail.js";
|
11
11
|
/** This needs to rectified with StepResult at some point */
|
@@ -157,6 +157,7 @@ export declare const OnPostSubmitDefinition: {
|
|
157
157
|
karma?: number;
|
158
158
|
iconImage?: string;
|
159
159
|
description?: string;
|
160
|
+
suspended?: boolean;
|
160
161
|
} | undefined;
|
161
162
|
subreddit?: {
|
162
163
|
id?: string;
|
@@ -283,6 +284,7 @@ export declare const OnPostSubmitDefinition: {
|
|
283
284
|
karma?: number;
|
284
285
|
iconImage?: string;
|
285
286
|
description?: string;
|
287
|
+
suspended?: boolean;
|
286
288
|
} | undefined;
|
287
289
|
subreddit?: {
|
288
290
|
id?: string;
|
@@ -450,6 +452,7 @@ export declare const OnPostCreateDefinition: {
|
|
450
452
|
karma?: number;
|
451
453
|
iconImage?: string;
|
452
454
|
description?: string;
|
455
|
+
suspended?: boolean;
|
453
456
|
} | undefined;
|
454
457
|
subreddit?: {
|
455
458
|
id?: string;
|
@@ -576,6 +579,7 @@ export declare const OnPostCreateDefinition: {
|
|
576
579
|
karma?: number;
|
577
580
|
iconImage?: string;
|
578
581
|
description?: string;
|
582
|
+
suspended?: boolean;
|
579
583
|
} | undefined;
|
580
584
|
subreddit?: {
|
581
585
|
id?: string;
|
@@ -743,6 +747,7 @@ export declare const OnPostUpdateDefinition: {
|
|
743
747
|
karma?: number;
|
744
748
|
iconImage?: string;
|
745
749
|
description?: string;
|
750
|
+
suspended?: boolean;
|
746
751
|
} | undefined;
|
747
752
|
previousBody?: string;
|
748
753
|
subreddit?: {
|
@@ -870,6 +875,7 @@ export declare const OnPostUpdateDefinition: {
|
|
870
875
|
karma?: number;
|
871
876
|
iconImage?: string;
|
872
877
|
description?: string;
|
878
|
+
suspended?: boolean;
|
873
879
|
} | undefined;
|
874
880
|
previousBody?: string;
|
875
881
|
subreddit?: {
|
@@ -1289,6 +1295,7 @@ export declare const OnPostFlairUpdateDefinition: {
|
|
1289
1295
|
karma?: number;
|
1290
1296
|
iconImage?: string;
|
1291
1297
|
description?: string;
|
1298
|
+
suspended?: boolean;
|
1292
1299
|
} | undefined;
|
1293
1300
|
subreddit?: {
|
1294
1301
|
id?: string;
|
@@ -1415,6 +1422,7 @@ export declare const OnPostFlairUpdateDefinition: {
|
|
1415
1422
|
karma?: number;
|
1416
1423
|
iconImage?: string;
|
1417
1424
|
description?: string;
|
1425
|
+
suspended?: boolean;
|
1418
1426
|
} | undefined;
|
1419
1427
|
subreddit?: {
|
1420
1428
|
id?: string;
|
@@ -1494,6 +1502,7 @@ export declare const OnPostDeleteDefinition: {
|
|
1494
1502
|
karma?: number;
|
1495
1503
|
iconImage?: string;
|
1496
1504
|
description?: string;
|
1505
|
+
suspended?: boolean;
|
1497
1506
|
} | undefined;
|
1498
1507
|
createdAt?: Date | undefined;
|
1499
1508
|
source?: import("../../../events/v1alpha/events.js").EventSource;
|
@@ -1535,6 +1544,7 @@ export declare const OnPostDeleteDefinition: {
|
|
1535
1544
|
karma?: number;
|
1536
1545
|
iconImage?: string;
|
1537
1546
|
description?: string;
|
1547
|
+
suspended?: boolean;
|
1538
1548
|
} | undefined;
|
1539
1549
|
createdAt?: Date | undefined;
|
1540
1550
|
source?: import("../../../events/v1alpha/events.js").EventSource;
|
@@ -1706,6 +1716,7 @@ export declare const OnPostApproveDefinition: {
|
|
1706
1716
|
karma?: number;
|
1707
1717
|
iconImage?: string;
|
1708
1718
|
description?: string;
|
1719
|
+
suspended?: boolean;
|
1709
1720
|
} | undefined;
|
1710
1721
|
source?: import("../../../events/v1alpha/events.js").EventSource;
|
1711
1722
|
subreddit?: {
|
@@ -1834,6 +1845,7 @@ export declare const OnPostApproveDefinition: {
|
|
1834
1845
|
karma?: number;
|
1835
1846
|
iconImage?: string;
|
1836
1847
|
description?: string;
|
1848
|
+
suspended?: boolean;
|
1837
1849
|
} | undefined;
|
1838
1850
|
source?: import("../../../events/v1alpha/events.js").EventSource;
|
1839
1851
|
subreddit?: {
|
@@ -1934,6 +1946,7 @@ export declare const OnCommentSubmitDefinition: {
|
|
1934
1946
|
karma?: number;
|
1935
1947
|
iconImage?: string;
|
1936
1948
|
description?: string;
|
1949
|
+
suspended?: boolean;
|
1937
1950
|
} | undefined;
|
1938
1951
|
post?: {
|
1939
1952
|
id?: string;
|
@@ -2082,6 +2095,7 @@ export declare const OnCommentSubmitDefinition: {
|
|
2082
2095
|
karma?: number;
|
2083
2096
|
iconImage?: string;
|
2084
2097
|
description?: string;
|
2098
|
+
suspended?: boolean;
|
2085
2099
|
} | undefined;
|
2086
2100
|
post?: {
|
2087
2101
|
id?: string;
|
@@ -2271,6 +2285,7 @@ export declare const OnCommentCreateDefinition: {
|
|
2271
2285
|
karma?: number;
|
2272
2286
|
iconImage?: string;
|
2273
2287
|
description?: string;
|
2288
|
+
suspended?: boolean;
|
2274
2289
|
} | undefined;
|
2275
2290
|
post?: {
|
2276
2291
|
id?: string;
|
@@ -2419,6 +2434,7 @@ export declare const OnCommentCreateDefinition: {
|
|
2419
2434
|
karma?: number;
|
2420
2435
|
iconImage?: string;
|
2421
2436
|
description?: string;
|
2437
|
+
suspended?: boolean;
|
2422
2438
|
} | undefined;
|
2423
2439
|
post?: {
|
2424
2440
|
id?: string;
|
@@ -2608,6 +2624,7 @@ export declare const OnCommentUpdateDefinition: {
|
|
2608
2624
|
karma?: number;
|
2609
2625
|
iconImage?: string;
|
2610
2626
|
description?: string;
|
2627
|
+
suspended?: boolean;
|
2611
2628
|
} | undefined;
|
2612
2629
|
post?: {
|
2613
2630
|
id?: string;
|
@@ -2757,6 +2774,7 @@ export declare const OnCommentUpdateDefinition: {
|
|
2757
2774
|
karma?: number;
|
2758
2775
|
iconImage?: string;
|
2759
2776
|
description?: string;
|
2777
|
+
suspended?: boolean;
|
2760
2778
|
} | undefined;
|
2761
2779
|
post?: {
|
2762
2780
|
id?: string;
|
@@ -3044,6 +3062,7 @@ export declare const OnCommentDeleteDefinition: {
|
|
3044
3062
|
karma?: number;
|
3045
3063
|
iconImage?: string;
|
3046
3064
|
description?: string;
|
3065
|
+
suspended?: boolean;
|
3047
3066
|
} | undefined;
|
3048
3067
|
createdAt?: Date | undefined;
|
3049
3068
|
source?: import("../../../events/v1alpha/events.js").EventSource;
|
@@ -3087,6 +3106,7 @@ export declare const OnCommentDeleteDefinition: {
|
|
3087
3106
|
karma?: number;
|
3088
3107
|
iconImage?: string;
|
3089
3108
|
description?: string;
|
3109
|
+
suspended?: boolean;
|
3090
3110
|
} | undefined;
|
3091
3111
|
createdAt?: Date | undefined;
|
3092
3112
|
source?: import("../../../events/v1alpha/events.js").EventSource;
|
@@ -3280,6 +3300,7 @@ export declare const OnCommentApproveDefinition: {
|
|
3280
3300
|
karma?: number;
|
3281
3301
|
iconImage?: string;
|
3282
3302
|
description?: string;
|
3303
|
+
suspended?: boolean;
|
3283
3304
|
} | undefined;
|
3284
3305
|
source?: import("../../../events/v1alpha/events.js").EventSource;
|
3285
3306
|
subreddit?: {
|
@@ -3430,6 +3451,7 @@ export declare const OnCommentApproveDefinition: {
|
|
3430
3451
|
karma?: number;
|
3431
3452
|
iconImage?: string;
|
3432
3453
|
description?: string;
|
3454
|
+
suspended?: boolean;
|
3433
3455
|
} | undefined;
|
3434
3456
|
source?: import("../../../events/v1alpha/events.js").EventSource;
|
3435
3457
|
subreddit?: {
|
@@ -3520,6 +3542,7 @@ export declare const OnSubredditSubscribeDefinition: {
|
|
3520
3542
|
karma?: number;
|
3521
3543
|
iconImage?: string;
|
3522
3544
|
description?: string;
|
3545
|
+
suspended?: boolean;
|
3523
3546
|
} | undefined;
|
3524
3547
|
} | undefined): SubredditSubscribe;
|
3525
3548
|
fromPartial(object: {
|
@@ -3556,6 +3579,7 @@ export declare const OnSubredditSubscribeDefinition: {
|
|
3556
3579
|
karma?: number;
|
3557
3580
|
iconImage?: string;
|
3558
3581
|
description?: string;
|
3582
|
+
suspended?: boolean;
|
3559
3583
|
} | undefined;
|
3560
3584
|
}): SubredditSubscribe;
|
3561
3585
|
};
|
@@ -3633,6 +3657,7 @@ export declare const OnAppInstallDefinition: {
|
|
3633
3657
|
karma?: number;
|
3634
3658
|
iconImage?: string;
|
3635
3659
|
description?: string;
|
3660
|
+
suspended?: boolean;
|
3636
3661
|
} | undefined;
|
3637
3662
|
} | undefined): AppInstall;
|
3638
3663
|
fromPartial(object: {
|
@@ -3669,6 +3694,7 @@ export declare const OnAppInstallDefinition: {
|
|
3669
3694
|
karma?: number;
|
3670
3695
|
iconImage?: string;
|
3671
3696
|
description?: string;
|
3697
|
+
suspended?: boolean;
|
3672
3698
|
} | undefined;
|
3673
3699
|
}): AppInstall;
|
3674
3700
|
};
|
@@ -3746,6 +3772,7 @@ export declare const OnAppUpgradeDefinition: {
|
|
3746
3772
|
karma?: number;
|
3747
3773
|
iconImage?: string;
|
3748
3774
|
description?: string;
|
3775
|
+
suspended?: boolean;
|
3749
3776
|
} | undefined;
|
3750
3777
|
} | undefined): AppUpgrade;
|
3751
3778
|
fromPartial(object: {
|
@@ -3782,6 +3809,7 @@ export declare const OnAppUpgradeDefinition: {
|
|
3782
3809
|
karma?: number;
|
3783
3810
|
iconImage?: string;
|
3784
3811
|
description?: string;
|
3812
|
+
suspended?: boolean;
|
3785
3813
|
} | undefined;
|
3786
3814
|
}): AppUpgrade;
|
3787
3815
|
};
|
@@ -3861,6 +3889,7 @@ export declare const OnModActionDefinition: {
|
|
3861
3889
|
karma?: number;
|
3862
3890
|
iconImage?: string;
|
3863
3891
|
description?: string;
|
3892
|
+
suspended?: boolean;
|
3864
3893
|
} | undefined;
|
3865
3894
|
targetUser?: {
|
3866
3895
|
id?: string;
|
@@ -3883,6 +3912,7 @@ export declare const OnModActionDefinition: {
|
|
3883
3912
|
karma?: number;
|
3884
3913
|
iconImage?: string;
|
3885
3914
|
description?: string;
|
3915
|
+
suspended?: boolean;
|
3886
3916
|
} | undefined;
|
3887
3917
|
targetComment?: {
|
3888
3918
|
id?: string;
|
@@ -4033,6 +4063,7 @@ export declare const OnModActionDefinition: {
|
|
4033
4063
|
karma?: number;
|
4034
4064
|
iconImage?: string;
|
4035
4065
|
description?: string;
|
4066
|
+
suspended?: boolean;
|
4036
4067
|
} | undefined;
|
4037
4068
|
targetUser?: {
|
4038
4069
|
id?: string;
|
@@ -4055,6 +4086,7 @@ export declare const OnModActionDefinition: {
|
|
4055
4086
|
karma?: number;
|
4056
4087
|
iconImage?: string;
|
4057
4088
|
description?: string;
|
4089
|
+
suspended?: boolean;
|
4058
4090
|
} | undefined;
|
4059
4091
|
targetComment?: {
|
4060
4092
|
id?: string;
|
@@ -4232,6 +4264,7 @@ export declare const OnModMailDefinition: {
|
|
4232
4264
|
karma?: number;
|
4233
4265
|
iconImage?: string;
|
4234
4266
|
description?: string;
|
4267
|
+
suspended?: boolean;
|
4235
4268
|
} | undefined;
|
4236
4269
|
createdAt?: Date | undefined;
|
4237
4270
|
messageAuthorType?: string;
|
@@ -4287,6 +4320,7 @@ export declare const OnModMailDefinition: {
|
|
4287
4320
|
karma?: number;
|
4288
4321
|
iconImage?: string;
|
4289
4322
|
description?: string;
|
4323
|
+
suspended?: boolean;
|
4290
4324
|
} | undefined;
|
4291
4325
|
createdAt?: Date | undefined;
|
4292
4326
|
messageAuthorType?: string;
|
@@ -4385,6 +4419,7 @@ export declare const OnAccountDeleteDefinition: {
|
|
4385
4419
|
karma?: number;
|
4386
4420
|
iconImage?: string;
|
4387
4421
|
description?: string;
|
4422
|
+
suspended?: boolean;
|
4388
4423
|
} | undefined;
|
4389
4424
|
} | undefined): AccountDelete;
|
4390
4425
|
fromPartial(object: {
|
@@ -4411,6 +4446,7 @@ export declare const OnAccountDeleteDefinition: {
|
|
4411
4446
|
karma?: number;
|
4412
4447
|
iconImage?: string;
|
4413
4448
|
description?: string;
|
4449
|
+
suspended?: boolean;
|
4414
4450
|
} | undefined;
|
4415
4451
|
}): AccountDelete;
|
4416
4452
|
};
|
@@ -4566,6 +4602,7 @@ export declare const OnPostNsfwUpdateDefinition: {
|
|
4566
4602
|
karma?: number;
|
4567
4603
|
iconImage?: string;
|
4568
4604
|
description?: string;
|
4605
|
+
suspended?: boolean;
|
4569
4606
|
} | undefined;
|
4570
4607
|
isNsfw?: boolean;
|
4571
4608
|
subreddit?: {
|
@@ -4693,6 +4730,7 @@ export declare const OnPostNsfwUpdateDefinition: {
|
|
4693
4730
|
karma?: number;
|
4694
4731
|
iconImage?: string;
|
4695
4732
|
description?: string;
|
4733
|
+
suspended?: boolean;
|
4696
4734
|
} | undefined;
|
4697
4735
|
isNsfw?: boolean;
|
4698
4736
|
subreddit?: {
|
@@ -4861,6 +4899,7 @@ export declare const OnPostSpoilerUpdateDefinition: {
|
|
4861
4899
|
karma?: number;
|
4862
4900
|
iconImage?: string;
|
4863
4901
|
description?: string;
|
4902
|
+
suspended?: boolean;
|
4864
4903
|
} | undefined;
|
4865
4904
|
isSpoiler?: boolean;
|
4866
4905
|
subreddit?: {
|
@@ -4988,6 +5027,7 @@ export declare const OnPostSpoilerUpdateDefinition: {
|
|
4988
5027
|
karma?: number;
|
4989
5028
|
iconImage?: string;
|
4990
5029
|
description?: string;
|
5030
|
+
suspended?: boolean;
|
4991
5031
|
} | undefined;
|
4992
5032
|
isSpoiler?: boolean;
|
4993
5033
|
subreddit?: {
|
@@ -5019,6 +5059,380 @@ export declare const OnPostSpoilerUpdateDefinition: {
|
|
5019
5059
|
};
|
5020
5060
|
};
|
5021
5061
|
};
|
5062
|
+
export interface OnAutomoderatorFilterPost {
|
5063
|
+
OnAutomoderatorFilterPost(request: AutomoderatorFilterPost, metadata?: Metadata): Promise<HandlerResult>;
|
5064
|
+
}
|
5065
|
+
export declare const OnAutomoderatorFilterPostServiceName = "devvit.actor.automation.v1alpha.OnAutomoderatorFilterPost";
|
5066
|
+
export declare class OnAutomoderatorFilterPostClientImpl implements OnAutomoderatorFilterPost {
|
5067
|
+
private readonly rpc;
|
5068
|
+
private readonly service;
|
5069
|
+
constructor(rpc: Rpc, opts?: {
|
5070
|
+
service?: string;
|
5071
|
+
});
|
5072
|
+
OnAutomoderatorFilterPost(request: AutomoderatorFilterPost, metadata?: Metadata): Promise<HandlerResult>;
|
5073
|
+
}
|
5074
|
+
export type OnAutomoderatorFilterPostDefinition = typeof OnAutomoderatorFilterPostDefinition;
|
5075
|
+
export declare const OnAutomoderatorFilterPostDefinition: {
|
5076
|
+
readonly name: "OnAutomoderatorFilterPost";
|
5077
|
+
readonly fullName: "devvit.actor.automation.v1alpha.OnAutomoderatorFilterPost";
|
5078
|
+
readonly methods: {
|
5079
|
+
readonly onAutomoderatorFilterPost: {
|
5080
|
+
readonly name: "OnAutomoderatorFilterPost";
|
5081
|
+
readonly requestType: {
|
5082
|
+
$type: "devvit.events.v1alpha.AutomoderatorFilterPost";
|
5083
|
+
encode(message: AutomoderatorFilterPost, writer?: _m0.Writer): _m0.Writer;
|
5084
|
+
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): AutomoderatorFilterPost;
|
5085
|
+
fromJSON(object: any): AutomoderatorFilterPost;
|
5086
|
+
toJSON(message: AutomoderatorFilterPost): unknown;
|
5087
|
+
create(base?: {
|
5088
|
+
post?: {
|
5089
|
+
id?: string;
|
5090
|
+
title?: string;
|
5091
|
+
selftext?: string;
|
5092
|
+
nsfw?: boolean;
|
5093
|
+
authorId?: string;
|
5094
|
+
crowdControlLevel?: import("../../../reddit/v2alpha/postv2.js").CrowdControlLevel;
|
5095
|
+
numReports?: number;
|
5096
|
+
isGallery?: boolean;
|
5097
|
+
isMeta?: boolean;
|
5098
|
+
createdAt?: number;
|
5099
|
+
isApproved?: boolean;
|
5100
|
+
isArchived?: boolean;
|
5101
|
+
distinguished?: import("../../../reddit/v2alpha/postv2.js").DistinguishType;
|
5102
|
+
ignoreReports?: boolean;
|
5103
|
+
isSelf?: boolean;
|
5104
|
+
isVideo?: boolean;
|
5105
|
+
isLocked?: boolean;
|
5106
|
+
isSpoiler?: boolean;
|
5107
|
+
subredditId?: string;
|
5108
|
+
upvotes?: number;
|
5109
|
+
downvotes?: number;
|
5110
|
+
url?: string;
|
5111
|
+
isSticky?: boolean;
|
5112
|
+
linkFlair?: {
|
5113
|
+
text?: string;
|
5114
|
+
cssClass?: string;
|
5115
|
+
backgroundColor?: string;
|
5116
|
+
templateId?: string;
|
5117
|
+
textColor?: string;
|
5118
|
+
} | undefined;
|
5119
|
+
authorFlair?: {
|
5120
|
+
userId?: string;
|
5121
|
+
subredditId?: string;
|
5122
|
+
text?: string;
|
5123
|
+
cssClass?: string;
|
5124
|
+
templateId?: string;
|
5125
|
+
textColor?: string;
|
5126
|
+
backgroundColor?: string;
|
5127
|
+
enabled?: boolean;
|
5128
|
+
} | undefined;
|
5129
|
+
spam?: boolean;
|
5130
|
+
deleted?: boolean;
|
5131
|
+
languageCode?: string;
|
5132
|
+
updatedAt?: number;
|
5133
|
+
gildings?: number;
|
5134
|
+
score?: number;
|
5135
|
+
numComments?: number;
|
5136
|
+
thumbnail?: string;
|
5137
|
+
media?: {
|
5138
|
+
type?: string;
|
5139
|
+
oembed?: {
|
5140
|
+
type?: string;
|
5141
|
+
version?: string;
|
5142
|
+
title?: string;
|
5143
|
+
description?: string;
|
5144
|
+
authorName?: string;
|
5145
|
+
authorUrl?: string;
|
5146
|
+
providerName?: string;
|
5147
|
+
providerUrl?: string;
|
5148
|
+
thumbnailUrl?: string;
|
5149
|
+
thumbnailWidth?: number;
|
5150
|
+
thumbnailHeight?: number;
|
5151
|
+
html?: string;
|
5152
|
+
width?: number;
|
5153
|
+
height?: number;
|
5154
|
+
} | undefined;
|
5155
|
+
redditVideo?: {
|
5156
|
+
bitrateKbps?: number;
|
5157
|
+
fallbackUrl?: string;
|
5158
|
+
height?: number;
|
5159
|
+
width?: number;
|
5160
|
+
scrubberMediaUrl?: string;
|
5161
|
+
dashUrl?: string;
|
5162
|
+
duration?: number;
|
5163
|
+
hlsUrl?: string;
|
5164
|
+
isGif?: boolean;
|
5165
|
+
transcodingStatus?: string;
|
5166
|
+
} | undefined;
|
5167
|
+
} | undefined;
|
5168
|
+
crosspostParentId?: string;
|
5169
|
+
permalink?: string;
|
5170
|
+
isPoll?: boolean;
|
5171
|
+
isPromoted?: boolean;
|
5172
|
+
isMultiMedia?: boolean;
|
5173
|
+
type?: string;
|
5174
|
+
unlisted?: boolean;
|
5175
|
+
galleryImages?: string[];
|
5176
|
+
isImage?: boolean;
|
5177
|
+
} | undefined;
|
5178
|
+
removedAt?: Date | undefined;
|
5179
|
+
reason?: string;
|
5180
|
+
author?: string;
|
5181
|
+
subreddit?: {
|
5182
|
+
id?: string;
|
5183
|
+
name?: string;
|
5184
|
+
nsfw?: boolean;
|
5185
|
+
type?: import("../../../reddit/v2alpha/subredditv2.js").SubredditType;
|
5186
|
+
spam?: boolean;
|
5187
|
+
quarantined?: boolean;
|
5188
|
+
topics?: string[];
|
5189
|
+
rating?: import("../../../reddit/v2alpha/subredditv2.js").SubredditRating;
|
5190
|
+
subscribersCount?: number;
|
5191
|
+
permalink?: string;
|
5192
|
+
} | undefined;
|
5193
|
+
} | undefined): AutomoderatorFilterPost;
|
5194
|
+
fromPartial(object: {
|
5195
|
+
post?: {
|
5196
|
+
id?: string;
|
5197
|
+
title?: string;
|
5198
|
+
selftext?: string;
|
5199
|
+
nsfw?: boolean;
|
5200
|
+
authorId?: string;
|
5201
|
+
crowdControlLevel?: import("../../../reddit/v2alpha/postv2.js").CrowdControlLevel;
|
5202
|
+
numReports?: number;
|
5203
|
+
isGallery?: boolean;
|
5204
|
+
isMeta?: boolean;
|
5205
|
+
createdAt?: number;
|
5206
|
+
isApproved?: boolean;
|
5207
|
+
isArchived?: boolean;
|
5208
|
+
distinguished?: import("../../../reddit/v2alpha/postv2.js").DistinguishType;
|
5209
|
+
ignoreReports?: boolean;
|
5210
|
+
isSelf?: boolean;
|
5211
|
+
isVideo?: boolean;
|
5212
|
+
isLocked?: boolean;
|
5213
|
+
isSpoiler?: boolean;
|
5214
|
+
subredditId?: string;
|
5215
|
+
upvotes?: number;
|
5216
|
+
downvotes?: number;
|
5217
|
+
url?: string;
|
5218
|
+
isSticky?: boolean;
|
5219
|
+
linkFlair?: {
|
5220
|
+
text?: string;
|
5221
|
+
cssClass?: string;
|
5222
|
+
backgroundColor?: string;
|
5223
|
+
templateId?: string;
|
5224
|
+
textColor?: string;
|
5225
|
+
} | undefined;
|
5226
|
+
authorFlair?: {
|
5227
|
+
userId?: string;
|
5228
|
+
subredditId?: string;
|
5229
|
+
text?: string;
|
5230
|
+
cssClass?: string;
|
5231
|
+
templateId?: string;
|
5232
|
+
textColor?: string;
|
5233
|
+
backgroundColor?: string;
|
5234
|
+
enabled?: boolean;
|
5235
|
+
} | undefined;
|
5236
|
+
spam?: boolean;
|
5237
|
+
deleted?: boolean;
|
5238
|
+
languageCode?: string;
|
5239
|
+
updatedAt?: number;
|
5240
|
+
gildings?: number;
|
5241
|
+
score?: number;
|
5242
|
+
numComments?: number;
|
5243
|
+
thumbnail?: string;
|
5244
|
+
media?: {
|
5245
|
+
type?: string;
|
5246
|
+
oembed?: {
|
5247
|
+
type?: string;
|
5248
|
+
version?: string;
|
5249
|
+
title?: string;
|
5250
|
+
description?: string;
|
5251
|
+
authorName?: string;
|
5252
|
+
authorUrl?: string;
|
5253
|
+
providerName?: string;
|
5254
|
+
providerUrl?: string;
|
5255
|
+
thumbnailUrl?: string;
|
5256
|
+
thumbnailWidth?: number;
|
5257
|
+
thumbnailHeight?: number;
|
5258
|
+
html?: string;
|
5259
|
+
width?: number;
|
5260
|
+
height?: number;
|
5261
|
+
} | undefined;
|
5262
|
+
redditVideo?: {
|
5263
|
+
bitrateKbps?: number;
|
5264
|
+
fallbackUrl?: string;
|
5265
|
+
height?: number;
|
5266
|
+
width?: number;
|
5267
|
+
scrubberMediaUrl?: string;
|
5268
|
+
dashUrl?: string;
|
5269
|
+
duration?: number;
|
5270
|
+
hlsUrl?: string;
|
5271
|
+
isGif?: boolean;
|
5272
|
+
transcodingStatus?: string;
|
5273
|
+
} | undefined;
|
5274
|
+
} | undefined;
|
5275
|
+
crosspostParentId?: string;
|
5276
|
+
permalink?: string;
|
5277
|
+
isPoll?: boolean;
|
5278
|
+
isPromoted?: boolean;
|
5279
|
+
isMultiMedia?: boolean;
|
5280
|
+
type?: string;
|
5281
|
+
unlisted?: boolean;
|
5282
|
+
galleryImages?: string[];
|
5283
|
+
isImage?: boolean;
|
5284
|
+
} | undefined;
|
5285
|
+
removedAt?: Date | undefined;
|
5286
|
+
reason?: string;
|
5287
|
+
author?: string;
|
5288
|
+
subreddit?: {
|
5289
|
+
id?: string;
|
5290
|
+
name?: string;
|
5291
|
+
nsfw?: boolean;
|
5292
|
+
type?: import("../../../reddit/v2alpha/subredditv2.js").SubredditType;
|
5293
|
+
spam?: boolean;
|
5294
|
+
quarantined?: boolean;
|
5295
|
+
topics?: string[];
|
5296
|
+
rating?: import("../../../reddit/v2alpha/subredditv2.js").SubredditRating;
|
5297
|
+
subscribersCount?: number;
|
5298
|
+
permalink?: string;
|
5299
|
+
} | undefined;
|
5300
|
+
}): AutomoderatorFilterPost;
|
5301
|
+
};
|
5302
|
+
readonly requestStream: false;
|
5303
|
+
readonly responseType: {
|
5304
|
+
$type: "devvit.actor.automation.v1alpha.HandlerResult";
|
5305
|
+
encode(_: HandlerResult, writer?: _m0.Writer): _m0.Writer;
|
5306
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): HandlerResult;
|
5307
|
+
fromJSON(_: any): HandlerResult;
|
5308
|
+
toJSON(_: HandlerResult): unknown;
|
5309
|
+
create(base?: DeepPartial<HandlerResult>): HandlerResult;
|
5310
|
+
fromPartial(_: DeepPartial<HandlerResult>): HandlerResult;
|
5311
|
+
};
|
5312
|
+
readonly responseStream: false;
|
5313
|
+
readonly options: {};
|
5314
|
+
};
|
5315
|
+
};
|
5316
|
+
};
|
5317
|
+
export interface OnAutomoderatorFilterComment {
|
5318
|
+
OnAutomoderatorFilterComment(request: AutomoderatorFilterComment, metadata?: Metadata): Promise<HandlerResult>;
|
5319
|
+
}
|
5320
|
+
export declare const OnAutomoderatorFilterCommentServiceName = "devvit.actor.automation.v1alpha.OnAutomoderatorFilterComment";
|
5321
|
+
export declare class OnAutomoderatorFilterCommentClientImpl implements OnAutomoderatorFilterComment {
|
5322
|
+
private readonly rpc;
|
5323
|
+
private readonly service;
|
5324
|
+
constructor(rpc: Rpc, opts?: {
|
5325
|
+
service?: string;
|
5326
|
+
});
|
5327
|
+
OnAutomoderatorFilterComment(request: AutomoderatorFilterComment, metadata?: Metadata): Promise<HandlerResult>;
|
5328
|
+
}
|
5329
|
+
export type OnAutomoderatorFilterCommentDefinition = typeof OnAutomoderatorFilterCommentDefinition;
|
5330
|
+
export declare const OnAutomoderatorFilterCommentDefinition: {
|
5331
|
+
readonly name: "OnAutomoderatorFilterComment";
|
5332
|
+
readonly fullName: "devvit.actor.automation.v1alpha.OnAutomoderatorFilterComment";
|
5333
|
+
readonly methods: {
|
5334
|
+
readonly onAutomoderatorFilterComment: {
|
5335
|
+
readonly name: "OnAutomoderatorFilterComment";
|
5336
|
+
readonly requestType: {
|
5337
|
+
$type: "devvit.events.v1alpha.AutomoderatorFilterComment";
|
5338
|
+
encode(message: AutomoderatorFilterComment, writer?: _m0.Writer): _m0.Writer;
|
5339
|
+
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): AutomoderatorFilterComment;
|
5340
|
+
fromJSON(object: any): AutomoderatorFilterComment;
|
5341
|
+
toJSON(message: AutomoderatorFilterComment): unknown;
|
5342
|
+
create(base?: {
|
5343
|
+
comment?: {
|
5344
|
+
id?: string;
|
5345
|
+
parentId?: string;
|
5346
|
+
body?: string;
|
5347
|
+
author?: string;
|
5348
|
+
numReports?: number;
|
5349
|
+
collapsedBecauseCrowdControl?: boolean;
|
5350
|
+
spam?: boolean;
|
5351
|
+
deleted?: boolean;
|
5352
|
+
createdAt?: number;
|
5353
|
+
upvotes?: number;
|
5354
|
+
downvotes?: number;
|
5355
|
+
languageCode?: string;
|
5356
|
+
lastModifiedAt?: number;
|
5357
|
+
gilded?: boolean;
|
5358
|
+
score?: number;
|
5359
|
+
permalink?: string;
|
5360
|
+
hasMedia?: boolean;
|
5361
|
+
postId?: string;
|
5362
|
+
subredditId?: string;
|
5363
|
+
elementTypes?: string[];
|
5364
|
+
} | undefined;
|
5365
|
+
removedAt?: Date | undefined;
|
5366
|
+
reason?: string;
|
5367
|
+
author?: string;
|
5368
|
+
subreddit?: {
|
5369
|
+
id?: string;
|
5370
|
+
name?: string;
|
5371
|
+
nsfw?: boolean;
|
5372
|
+
type?: import("../../../reddit/v2alpha/subredditv2.js").SubredditType;
|
5373
|
+
spam?: boolean;
|
5374
|
+
quarantined?: boolean;
|
5375
|
+
topics?: string[];
|
5376
|
+
rating?: import("../../../reddit/v2alpha/subredditv2.js").SubredditRating;
|
5377
|
+
subscribersCount?: number;
|
5378
|
+
permalink?: string;
|
5379
|
+
} | undefined;
|
5380
|
+
} | undefined): AutomoderatorFilterComment;
|
5381
|
+
fromPartial(object: {
|
5382
|
+
comment?: {
|
5383
|
+
id?: string;
|
5384
|
+
parentId?: string;
|
5385
|
+
body?: string;
|
5386
|
+
author?: string;
|
5387
|
+
numReports?: number;
|
5388
|
+
collapsedBecauseCrowdControl?: boolean;
|
5389
|
+
spam?: boolean;
|
5390
|
+
deleted?: boolean;
|
5391
|
+
createdAt?: number;
|
5392
|
+
upvotes?: number;
|
5393
|
+
downvotes?: number;
|
5394
|
+
languageCode?: string;
|
5395
|
+
lastModifiedAt?: number;
|
5396
|
+
gilded?: boolean;
|
5397
|
+
score?: number;
|
5398
|
+
permalink?: string;
|
5399
|
+
hasMedia?: boolean;
|
5400
|
+
postId?: string;
|
5401
|
+
subredditId?: string;
|
5402
|
+
elementTypes?: string[];
|
5403
|
+
} | undefined;
|
5404
|
+
removedAt?: Date | undefined;
|
5405
|
+
reason?: string;
|
5406
|
+
author?: string;
|
5407
|
+
subreddit?: {
|
5408
|
+
id?: string;
|
5409
|
+
name?: string;
|
5410
|
+
nsfw?: boolean;
|
5411
|
+
type?: import("../../../reddit/v2alpha/subredditv2.js").SubredditType;
|
5412
|
+
spam?: boolean;
|
5413
|
+
quarantined?: boolean;
|
5414
|
+
topics?: string[];
|
5415
|
+
rating?: import("../../../reddit/v2alpha/subredditv2.js").SubredditRating;
|
5416
|
+
subscribersCount?: number;
|
5417
|
+
permalink?: string;
|
5418
|
+
} | undefined;
|
5419
|
+
}): AutomoderatorFilterComment;
|
5420
|
+
};
|
5421
|
+
readonly requestStream: false;
|
5422
|
+
readonly responseType: {
|
5423
|
+
$type: "devvit.actor.automation.v1alpha.HandlerResult";
|
5424
|
+
encode(_: HandlerResult, writer?: _m0.Writer): _m0.Writer;
|
5425
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): HandlerResult;
|
5426
|
+
fromJSON(_: any): HandlerResult;
|
5427
|
+
toJSON(_: HandlerResult): unknown;
|
5428
|
+
create(base?: DeepPartial<HandlerResult>): HandlerResult;
|
5429
|
+
fromPartial(_: DeepPartial<HandlerResult>): HandlerResult;
|
5430
|
+
};
|
5431
|
+
readonly responseStream: false;
|
5432
|
+
readonly options: {};
|
5433
|
+
};
|
5434
|
+
};
|
5435
|
+
};
|
5022
5436
|
interface Rpc {
|
5023
5437
|
request(service: string, method: string, data: Uint8Array, metadata?: Metadata): Promise<Uint8Array>;
|
5024
5438
|
}
|