@devvit/protos 0.10.23-next-2024-07-23-5e7d46268.0 → 0.10.23-next-2024-07-24-282f4c343.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
  }
@@ -350,3 +350,60 @@ message Vote {
350
350
  reserved 1 to 3;
351
351
  reserved "thing_id", "upvotes", "downvotes";
352
352
  }
353
+
354
+ message PostNsfwUpdate {
355
+ option (devvit.options.trigger) = {
356
+ source: "moderator"
357
+ action: "mark_nsfw"
358
+ noun: "post"
359
+ };
360
+ option (devvit.options.trigger) = {
361
+ source: "moderator"
362
+ action: "marknsfw"
363
+ noun: "post"
364
+ };
365
+ option (devvit.options.trigger) = {
366
+ source: "automoderator"
367
+ action: "mark_nsfw"
368
+ noun: "post"
369
+ };
370
+ option (devvit.options.trigger) = {
371
+ source: "automoderator"
372
+ action: "unmark_nsfw"
373
+ noun: "post"
374
+ };
375
+
376
+ devvit.reddit.v2alpha.PostV2 post = 1;
377
+ devvit.reddit.v2alpha.UserV2 author = 2;
378
+ bool is_nsfw = 3 [(devvit.options.v2_event_path) = "target_post.nsfw"];
379
+
380
+ devvit.reddit.v2alpha.SubredditV2 subreddit = 10 [(devvit.options.secondary_hydration_path) = "post.subreddit_id"];
381
+ }
382
+
383
+ message PostSpoilerUpdate {
384
+ option (devvit.options.trigger) = {
385
+ source: "moderator"
386
+ action: "mark_spoiler"
387
+ noun: "post"
388
+ };
389
+ option (devvit.options.trigger) = {
390
+ source: "moderator"
391
+ action: "unmark_spoiler"
392
+ noun: "post"
393
+ };
394
+ option (devvit.options.trigger) = {
395
+ source: "automoderator"
396
+ action: "mark_spoiler"
397
+ noun: "post"
398
+ };
399
+ option (devvit.options.trigger) = {
400
+ source: "automoderator"
401
+ action: "unmark_spoiler"
402
+ noun: "post"
403
+ };
404
+ devvit.reddit.v2alpha.PostV2 post = 1;
405
+ devvit.reddit.v2alpha.UserV2 author = 2;
406
+ bool is_spoiler = 4 [(devvit.options.v2_event_path) = "target_post.spoiler"];
407
+
408
+ devvit.reddit.v2alpha.SubredditV2 subreddit = 10 [(devvit.options.secondary_hydration_path) = "post.subreddit_id"];
409
+ }
@@ -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, PostReport, PostSubmit, PostUpdate, SubredditSubscribe } from '../../../events/v1alpha/events.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';
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 */
@@ -4349,6 +4349,584 @@ export declare const OnAccountDeleteDefinition: {
4349
4349
  };
4350
4350
  };
4351
4351
  };
4352
+ export interface OnPostNsfwUpdate {
4353
+ OnPostNsfwUpdate(request: PostNsfwUpdate, metadata?: Metadata): Promise<HandlerResult>;
4354
+ }
4355
+ export declare const OnPostNsfwUpdateServiceName = "devvit.actor.automation.v1alpha.OnPostNsfwUpdate";
4356
+ export declare class OnPostNsfwUpdateClientImpl implements OnPostNsfwUpdate {
4357
+ private readonly rpc;
4358
+ private readonly service;
4359
+ constructor(rpc: Rpc, opts?: {
4360
+ service?: string;
4361
+ });
4362
+ OnPostNsfwUpdate(request: PostNsfwUpdate, metadata?: Metadata): Promise<HandlerResult>;
4363
+ }
4364
+ export type OnPostNsfwUpdateDefinition = typeof OnPostNsfwUpdateDefinition;
4365
+ export declare const OnPostNsfwUpdateDefinition: {
4366
+ readonly name: "OnPostNsfwUpdate";
4367
+ readonly fullName: "devvit.actor.automation.v1alpha.OnPostNsfwUpdate";
4368
+ readonly methods: {
4369
+ readonly onPostNsfwUpdate: {
4370
+ readonly name: "OnPostNsfwUpdate";
4371
+ readonly requestType: {
4372
+ $type: "devvit.events.v1alpha.PostNsfwUpdate";
4373
+ encode(message: PostNsfwUpdate, writer?: _m0.Writer): _m0.Writer;
4374
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): PostNsfwUpdate;
4375
+ fromJSON(object: any): PostNsfwUpdate;
4376
+ toJSON(message: PostNsfwUpdate): unknown;
4377
+ create(base?: {
4378
+ post?: {
4379
+ id?: string;
4380
+ title?: string;
4381
+ selftext?: string;
4382
+ nsfw?: boolean;
4383
+ authorId?: string;
4384
+ crowdControlLevel?: import("../../../reddit/v2alpha/postv2.js").CrowdControlLevel;
4385
+ numReports?: number;
4386
+ isGallery?: boolean;
4387
+ isMeta?: boolean;
4388
+ createdAt?: number;
4389
+ isApproved?: boolean;
4390
+ isArchived?: boolean;
4391
+ distinguished?: import("../../../reddit/v2alpha/postv2.js").DistinguishType;
4392
+ ignoreReports?: boolean;
4393
+ isSelf?: boolean;
4394
+ isVideo?: boolean;
4395
+ isLocked?: boolean;
4396
+ isSpoiler?: boolean;
4397
+ subredditId?: string;
4398
+ upvotes?: number;
4399
+ downvotes?: number;
4400
+ url?: string;
4401
+ isSticky?: boolean;
4402
+ linkFlair?: {
4403
+ text?: string;
4404
+ cssClass?: string;
4405
+ backgroundColor?: string;
4406
+ templateId?: string;
4407
+ textColor?: string;
4408
+ } | undefined;
4409
+ authorFlair?: {
4410
+ userId?: string;
4411
+ subredditId?: string;
4412
+ text?: string;
4413
+ cssClass?: string;
4414
+ templateId?: string;
4415
+ textColor?: string;
4416
+ backgroundColor?: string;
4417
+ enabled?: boolean;
4418
+ } | undefined;
4419
+ spam?: boolean;
4420
+ deleted?: boolean;
4421
+ languageCode?: string;
4422
+ updatedAt?: number;
4423
+ gildings?: number;
4424
+ score?: number;
4425
+ numComments?: number;
4426
+ thumbnail?: string;
4427
+ media?: {
4428
+ type?: string;
4429
+ oembed?: {
4430
+ type?: string;
4431
+ version?: string;
4432
+ title?: string;
4433
+ description?: string;
4434
+ authorName?: string;
4435
+ authorUrl?: string;
4436
+ providerName?: string;
4437
+ providerUrl?: string;
4438
+ thumbnailUrl?: string;
4439
+ thumbnailWidth?: number;
4440
+ thumbnailHeight?: number;
4441
+ html?: string;
4442
+ width?: number;
4443
+ height?: number;
4444
+ } | undefined;
4445
+ redditVideo?: {
4446
+ bitrateKbps?: number;
4447
+ fallbackUrl?: string;
4448
+ height?: number;
4449
+ width?: number;
4450
+ scrubberMediaUrl?: string;
4451
+ dashUrl?: string;
4452
+ duration?: number;
4453
+ hlsUrl?: string;
4454
+ isGif?: boolean;
4455
+ transcodingStatus?: string;
4456
+ } | undefined;
4457
+ } | undefined;
4458
+ crosspostParentId?: string;
4459
+ permalink?: string;
4460
+ isPoll?: boolean;
4461
+ isPromoted?: boolean;
4462
+ isMultiMedia?: boolean;
4463
+ type?: string;
4464
+ unlisted?: boolean;
4465
+ } | undefined;
4466
+ author?: {
4467
+ id?: string;
4468
+ name?: string;
4469
+ isGold?: boolean;
4470
+ snoovatarImage?: string;
4471
+ url?: string;
4472
+ spam?: boolean;
4473
+ banned?: boolean;
4474
+ flair?: {
4475
+ userId?: string;
4476
+ subredditId?: string;
4477
+ text?: string;
4478
+ cssClass?: string;
4479
+ templateId?: string;
4480
+ textColor?: string;
4481
+ backgroundColor?: string;
4482
+ enabled?: boolean;
4483
+ } | undefined;
4484
+ karma?: number;
4485
+ iconImage?: string;
4486
+ } | undefined;
4487
+ isNsfw?: boolean;
4488
+ subreddit?: {
4489
+ id?: string;
4490
+ name?: string;
4491
+ nsfw?: boolean;
4492
+ type?: import("../../../reddit/v2alpha/subredditv2.js").SubredditType;
4493
+ spam?: boolean;
4494
+ quarantined?: boolean;
4495
+ topics?: string[];
4496
+ rating?: import("../../../reddit/v2alpha/subredditv2.js").SubredditRating;
4497
+ subscribersCount?: number;
4498
+ permalink?: string;
4499
+ } | undefined;
4500
+ } | undefined): PostNsfwUpdate;
4501
+ fromPartial(object: {
4502
+ post?: {
4503
+ id?: string;
4504
+ title?: string;
4505
+ selftext?: string;
4506
+ nsfw?: boolean;
4507
+ authorId?: string;
4508
+ crowdControlLevel?: import("../../../reddit/v2alpha/postv2.js").CrowdControlLevel;
4509
+ numReports?: number;
4510
+ isGallery?: boolean;
4511
+ isMeta?: boolean;
4512
+ createdAt?: number;
4513
+ isApproved?: boolean;
4514
+ isArchived?: boolean;
4515
+ distinguished?: import("../../../reddit/v2alpha/postv2.js").DistinguishType;
4516
+ ignoreReports?: boolean;
4517
+ isSelf?: boolean;
4518
+ isVideo?: boolean;
4519
+ isLocked?: boolean;
4520
+ isSpoiler?: boolean;
4521
+ subredditId?: string;
4522
+ upvotes?: number;
4523
+ downvotes?: number;
4524
+ url?: string;
4525
+ isSticky?: boolean;
4526
+ linkFlair?: {
4527
+ text?: string;
4528
+ cssClass?: string;
4529
+ backgroundColor?: string;
4530
+ templateId?: string;
4531
+ textColor?: string;
4532
+ } | undefined;
4533
+ authorFlair?: {
4534
+ userId?: string;
4535
+ subredditId?: string;
4536
+ text?: string;
4537
+ cssClass?: string;
4538
+ templateId?: string;
4539
+ textColor?: string;
4540
+ backgroundColor?: string;
4541
+ enabled?: boolean;
4542
+ } | undefined;
4543
+ spam?: boolean;
4544
+ deleted?: boolean;
4545
+ languageCode?: string;
4546
+ updatedAt?: number;
4547
+ gildings?: number;
4548
+ score?: number;
4549
+ numComments?: number;
4550
+ thumbnail?: string;
4551
+ media?: {
4552
+ type?: string;
4553
+ oembed?: {
4554
+ type?: string;
4555
+ version?: string;
4556
+ title?: string;
4557
+ description?: string;
4558
+ authorName?: string;
4559
+ authorUrl?: string;
4560
+ providerName?: string;
4561
+ providerUrl?: string;
4562
+ thumbnailUrl?: string;
4563
+ thumbnailWidth?: number;
4564
+ thumbnailHeight?: number;
4565
+ html?: string;
4566
+ width?: number;
4567
+ height?: number;
4568
+ } | undefined;
4569
+ redditVideo?: {
4570
+ bitrateKbps?: number;
4571
+ fallbackUrl?: string;
4572
+ height?: number;
4573
+ width?: number;
4574
+ scrubberMediaUrl?: string;
4575
+ dashUrl?: string;
4576
+ duration?: number;
4577
+ hlsUrl?: string;
4578
+ isGif?: boolean;
4579
+ transcodingStatus?: string;
4580
+ } | undefined;
4581
+ } | undefined;
4582
+ crosspostParentId?: string;
4583
+ permalink?: string;
4584
+ isPoll?: boolean;
4585
+ isPromoted?: boolean;
4586
+ isMultiMedia?: boolean;
4587
+ type?: string;
4588
+ unlisted?: boolean;
4589
+ } | undefined;
4590
+ author?: {
4591
+ id?: string;
4592
+ name?: string;
4593
+ isGold?: boolean;
4594
+ snoovatarImage?: string;
4595
+ url?: string;
4596
+ spam?: boolean;
4597
+ banned?: boolean;
4598
+ flair?: {
4599
+ userId?: string;
4600
+ subredditId?: string;
4601
+ text?: string;
4602
+ cssClass?: string;
4603
+ templateId?: string;
4604
+ textColor?: string;
4605
+ backgroundColor?: string;
4606
+ enabled?: boolean;
4607
+ } | undefined;
4608
+ karma?: number;
4609
+ iconImage?: string;
4610
+ } | undefined;
4611
+ isNsfw?: boolean;
4612
+ subreddit?: {
4613
+ id?: string;
4614
+ name?: string;
4615
+ nsfw?: boolean;
4616
+ type?: import("../../../reddit/v2alpha/subredditv2.js").SubredditType;
4617
+ spam?: boolean;
4618
+ quarantined?: boolean;
4619
+ topics?: string[];
4620
+ rating?: import("../../../reddit/v2alpha/subredditv2.js").SubredditRating;
4621
+ subscribersCount?: number;
4622
+ permalink?: string;
4623
+ } | undefined;
4624
+ }): PostNsfwUpdate;
4625
+ };
4626
+ readonly requestStream: false;
4627
+ readonly responseType: {
4628
+ $type: "devvit.actor.automation.v1alpha.HandlerResult";
4629
+ encode(_: HandlerResult, writer?: _m0.Writer): _m0.Writer;
4630
+ decode(input: _m0.Reader | Uint8Array, length?: number): HandlerResult;
4631
+ fromJSON(_: any): HandlerResult;
4632
+ toJSON(_: HandlerResult): unknown;
4633
+ create(base?: DeepPartial<HandlerResult>): HandlerResult;
4634
+ fromPartial(_: DeepPartial<HandlerResult>): HandlerResult;
4635
+ };
4636
+ readonly responseStream: false;
4637
+ readonly options: {};
4638
+ };
4639
+ };
4640
+ };
4641
+ export interface OnPostSpoilerUpdate {
4642
+ OnPostSpoilerUpdate(request: PostSpoilerUpdate, metadata?: Metadata): Promise<HandlerResult>;
4643
+ }
4644
+ export declare const OnPostSpoilerUpdateServiceName = "devvit.actor.automation.v1alpha.OnPostSpoilerUpdate";
4645
+ export declare class OnPostSpoilerUpdateClientImpl implements OnPostSpoilerUpdate {
4646
+ private readonly rpc;
4647
+ private readonly service;
4648
+ constructor(rpc: Rpc, opts?: {
4649
+ service?: string;
4650
+ });
4651
+ OnPostSpoilerUpdate(request: PostSpoilerUpdate, metadata?: Metadata): Promise<HandlerResult>;
4652
+ }
4653
+ export type OnPostSpoilerUpdateDefinition = typeof OnPostSpoilerUpdateDefinition;
4654
+ export declare const OnPostSpoilerUpdateDefinition: {
4655
+ readonly name: "OnPostSpoilerUpdate";
4656
+ readonly fullName: "devvit.actor.automation.v1alpha.OnPostSpoilerUpdate";
4657
+ readonly methods: {
4658
+ readonly onPostSpoilerUpdate: {
4659
+ readonly name: "OnPostSpoilerUpdate";
4660
+ readonly requestType: {
4661
+ $type: "devvit.events.v1alpha.PostSpoilerUpdate";
4662
+ encode(message: PostSpoilerUpdate, writer?: _m0.Writer): _m0.Writer;
4663
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): PostSpoilerUpdate;
4664
+ fromJSON(object: any): PostSpoilerUpdate;
4665
+ toJSON(message: PostSpoilerUpdate): unknown;
4666
+ create(base?: {
4667
+ post?: {
4668
+ id?: string;
4669
+ title?: string;
4670
+ selftext?: string;
4671
+ nsfw?: boolean;
4672
+ authorId?: string;
4673
+ crowdControlLevel?: import("../../../reddit/v2alpha/postv2.js").CrowdControlLevel;
4674
+ numReports?: number;
4675
+ isGallery?: boolean;
4676
+ isMeta?: boolean;
4677
+ createdAt?: number;
4678
+ isApproved?: boolean;
4679
+ isArchived?: boolean;
4680
+ distinguished?: import("../../../reddit/v2alpha/postv2.js").DistinguishType;
4681
+ ignoreReports?: boolean;
4682
+ isSelf?: boolean;
4683
+ isVideo?: boolean;
4684
+ isLocked?: boolean;
4685
+ isSpoiler?: boolean;
4686
+ subredditId?: string;
4687
+ upvotes?: number;
4688
+ downvotes?: number;
4689
+ url?: string;
4690
+ isSticky?: boolean;
4691
+ linkFlair?: {
4692
+ text?: string;
4693
+ cssClass?: string;
4694
+ backgroundColor?: string;
4695
+ templateId?: string;
4696
+ textColor?: string;
4697
+ } | undefined;
4698
+ authorFlair?: {
4699
+ userId?: string;
4700
+ subredditId?: string;
4701
+ text?: string;
4702
+ cssClass?: string;
4703
+ templateId?: string;
4704
+ textColor?: string;
4705
+ backgroundColor?: string;
4706
+ enabled?: boolean;
4707
+ } | undefined;
4708
+ spam?: boolean;
4709
+ deleted?: boolean;
4710
+ languageCode?: string;
4711
+ updatedAt?: number;
4712
+ gildings?: number;
4713
+ score?: number;
4714
+ numComments?: number;
4715
+ thumbnail?: string;
4716
+ media?: {
4717
+ type?: string;
4718
+ oembed?: {
4719
+ type?: string;
4720
+ version?: string;
4721
+ title?: string;
4722
+ description?: string;
4723
+ authorName?: string;
4724
+ authorUrl?: string;
4725
+ providerName?: string;
4726
+ providerUrl?: string;
4727
+ thumbnailUrl?: string;
4728
+ thumbnailWidth?: number;
4729
+ thumbnailHeight?: number;
4730
+ html?: string;
4731
+ width?: number;
4732
+ height?: number;
4733
+ } | undefined;
4734
+ redditVideo?: {
4735
+ bitrateKbps?: number;
4736
+ fallbackUrl?: string;
4737
+ height?: number;
4738
+ width?: number;
4739
+ scrubberMediaUrl?: string;
4740
+ dashUrl?: string;
4741
+ duration?: number;
4742
+ hlsUrl?: string;
4743
+ isGif?: boolean;
4744
+ transcodingStatus?: string;
4745
+ } | undefined;
4746
+ } | undefined;
4747
+ crosspostParentId?: string;
4748
+ permalink?: string;
4749
+ isPoll?: boolean;
4750
+ isPromoted?: boolean;
4751
+ isMultiMedia?: boolean;
4752
+ type?: string;
4753
+ unlisted?: boolean;
4754
+ } | undefined;
4755
+ author?: {
4756
+ id?: string;
4757
+ name?: string;
4758
+ isGold?: boolean;
4759
+ snoovatarImage?: string;
4760
+ url?: string;
4761
+ spam?: boolean;
4762
+ banned?: boolean;
4763
+ flair?: {
4764
+ userId?: string;
4765
+ subredditId?: string;
4766
+ text?: string;
4767
+ cssClass?: string;
4768
+ templateId?: string;
4769
+ textColor?: string;
4770
+ backgroundColor?: string;
4771
+ enabled?: boolean;
4772
+ } | undefined;
4773
+ karma?: number;
4774
+ iconImage?: string;
4775
+ } | undefined;
4776
+ isSpoiler?: boolean;
4777
+ subreddit?: {
4778
+ id?: string;
4779
+ name?: string;
4780
+ nsfw?: boolean;
4781
+ type?: import("../../../reddit/v2alpha/subredditv2.js").SubredditType;
4782
+ spam?: boolean;
4783
+ quarantined?: boolean;
4784
+ topics?: string[];
4785
+ rating?: import("../../../reddit/v2alpha/subredditv2.js").SubredditRating;
4786
+ subscribersCount?: number;
4787
+ permalink?: string;
4788
+ } | undefined;
4789
+ } | undefined): PostSpoilerUpdate;
4790
+ fromPartial(object: {
4791
+ post?: {
4792
+ id?: string;
4793
+ title?: string;
4794
+ selftext?: string;
4795
+ nsfw?: boolean;
4796
+ authorId?: string;
4797
+ crowdControlLevel?: import("../../../reddit/v2alpha/postv2.js").CrowdControlLevel;
4798
+ numReports?: number;
4799
+ isGallery?: boolean;
4800
+ isMeta?: boolean;
4801
+ createdAt?: number;
4802
+ isApproved?: boolean;
4803
+ isArchived?: boolean;
4804
+ distinguished?: import("../../../reddit/v2alpha/postv2.js").DistinguishType;
4805
+ ignoreReports?: boolean;
4806
+ isSelf?: boolean;
4807
+ isVideo?: boolean;
4808
+ isLocked?: boolean;
4809
+ isSpoiler?: boolean;
4810
+ subredditId?: string;
4811
+ upvotes?: number;
4812
+ downvotes?: number;
4813
+ url?: string;
4814
+ isSticky?: boolean;
4815
+ linkFlair?: {
4816
+ text?: string;
4817
+ cssClass?: string;
4818
+ backgroundColor?: string;
4819
+ templateId?: string;
4820
+ textColor?: string;
4821
+ } | undefined;
4822
+ authorFlair?: {
4823
+ userId?: string;
4824
+ subredditId?: string;
4825
+ text?: string;
4826
+ cssClass?: string;
4827
+ templateId?: string;
4828
+ textColor?: string;
4829
+ backgroundColor?: string;
4830
+ enabled?: boolean;
4831
+ } | undefined;
4832
+ spam?: boolean;
4833
+ deleted?: boolean;
4834
+ languageCode?: string;
4835
+ updatedAt?: number;
4836
+ gildings?: number;
4837
+ score?: number;
4838
+ numComments?: number;
4839
+ thumbnail?: string;
4840
+ media?: {
4841
+ type?: string;
4842
+ oembed?: {
4843
+ type?: string;
4844
+ version?: string;
4845
+ title?: string;
4846
+ description?: string;
4847
+ authorName?: string;
4848
+ authorUrl?: string;
4849
+ providerName?: string;
4850
+ providerUrl?: string;
4851
+ thumbnailUrl?: string;
4852
+ thumbnailWidth?: number;
4853
+ thumbnailHeight?: number;
4854
+ html?: string;
4855
+ width?: number;
4856
+ height?: number;
4857
+ } | undefined;
4858
+ redditVideo?: {
4859
+ bitrateKbps?: number;
4860
+ fallbackUrl?: string;
4861
+ height?: number;
4862
+ width?: number;
4863
+ scrubberMediaUrl?: string;
4864
+ dashUrl?: string;
4865
+ duration?: number;
4866
+ hlsUrl?: string;
4867
+ isGif?: boolean;
4868
+ transcodingStatus?: string;
4869
+ } | undefined;
4870
+ } | undefined;
4871
+ crosspostParentId?: string;
4872
+ permalink?: string;
4873
+ isPoll?: boolean;
4874
+ isPromoted?: boolean;
4875
+ isMultiMedia?: boolean;
4876
+ type?: string;
4877
+ unlisted?: boolean;
4878
+ } | undefined;
4879
+ author?: {
4880
+ id?: string;
4881
+ name?: string;
4882
+ isGold?: boolean;
4883
+ snoovatarImage?: string;
4884
+ url?: string;
4885
+ spam?: boolean;
4886
+ banned?: boolean;
4887
+ flair?: {
4888
+ userId?: string;
4889
+ subredditId?: string;
4890
+ text?: string;
4891
+ cssClass?: string;
4892
+ templateId?: string;
4893
+ textColor?: string;
4894
+ backgroundColor?: string;
4895
+ enabled?: boolean;
4896
+ } | undefined;
4897
+ karma?: number;
4898
+ iconImage?: string;
4899
+ } | undefined;
4900
+ isSpoiler?: boolean;
4901
+ subreddit?: {
4902
+ id?: string;
4903
+ name?: string;
4904
+ nsfw?: boolean;
4905
+ type?: import("../../../reddit/v2alpha/subredditv2.js").SubredditType;
4906
+ spam?: boolean;
4907
+ quarantined?: boolean;
4908
+ topics?: string[];
4909
+ rating?: import("../../../reddit/v2alpha/subredditv2.js").SubredditRating;
4910
+ subscribersCount?: number;
4911
+ permalink?: string;
4912
+ } | undefined;
4913
+ }): PostSpoilerUpdate;
4914
+ };
4915
+ readonly requestStream: false;
4916
+ readonly responseType: {
4917
+ $type: "devvit.actor.automation.v1alpha.HandlerResult";
4918
+ encode(_: HandlerResult, writer?: _m0.Writer): _m0.Writer;
4919
+ decode(input: _m0.Reader | Uint8Array, length?: number): HandlerResult;
4920
+ fromJSON(_: any): HandlerResult;
4921
+ toJSON(_: HandlerResult): unknown;
4922
+ create(base?: DeepPartial<HandlerResult>): HandlerResult;
4923
+ fromPartial(_: DeepPartial<HandlerResult>): HandlerResult;
4924
+ };
4925
+ readonly responseStream: false;
4926
+ readonly options: {};
4927
+ };
4928
+ };
4929
+ };
4352
4930
  interface Rpc {
4353
4931
  request(service: string, method: string, data: Uint8Array, metadata?: Metadata): Promise<Uint8Array>;
4354
4932
  }