@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
@@ -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 */
|
@@ -4429,6 +4429,596 @@ export declare const OnAccountDeleteDefinition: {
|
|
4429
4429
|
};
|
4430
4430
|
};
|
4431
4431
|
};
|
4432
|
+
export interface OnPostNsfwUpdate {
|
4433
|
+
OnPostNsfwUpdate(request: PostNsfwUpdate, metadata?: Metadata): Promise<HandlerResult>;
|
4434
|
+
}
|
4435
|
+
export declare const OnPostNsfwUpdateServiceName = "devvit.actor.automation.v1alpha.OnPostNsfwUpdate";
|
4436
|
+
export declare class OnPostNsfwUpdateClientImpl implements OnPostNsfwUpdate {
|
4437
|
+
private readonly rpc;
|
4438
|
+
private readonly service;
|
4439
|
+
constructor(rpc: Rpc, opts?: {
|
4440
|
+
service?: string;
|
4441
|
+
});
|
4442
|
+
OnPostNsfwUpdate(request: PostNsfwUpdate, metadata?: Metadata): Promise<HandlerResult>;
|
4443
|
+
}
|
4444
|
+
export type OnPostNsfwUpdateDefinition = typeof OnPostNsfwUpdateDefinition;
|
4445
|
+
export declare const OnPostNsfwUpdateDefinition: {
|
4446
|
+
readonly name: "OnPostNsfwUpdate";
|
4447
|
+
readonly fullName: "devvit.actor.automation.v1alpha.OnPostNsfwUpdate";
|
4448
|
+
readonly methods: {
|
4449
|
+
readonly onPostNsfwUpdate: {
|
4450
|
+
readonly name: "OnPostNsfwUpdate";
|
4451
|
+
readonly requestType: {
|
4452
|
+
$type: "devvit.events.v1alpha.PostNsfwUpdate";
|
4453
|
+
encode(message: PostNsfwUpdate, writer?: _m0.Writer): _m0.Writer;
|
4454
|
+
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): PostNsfwUpdate;
|
4455
|
+
fromJSON(object: any): PostNsfwUpdate;
|
4456
|
+
toJSON(message: PostNsfwUpdate): unknown;
|
4457
|
+
create(base?: {
|
4458
|
+
post?: {
|
4459
|
+
id?: string;
|
4460
|
+
title?: string;
|
4461
|
+
selftext?: string;
|
4462
|
+
nsfw?: boolean;
|
4463
|
+
authorId?: string;
|
4464
|
+
crowdControlLevel?: import("../../../reddit/v2alpha/postv2.js").CrowdControlLevel;
|
4465
|
+
numReports?: number;
|
4466
|
+
isGallery?: boolean;
|
4467
|
+
isMeta?: boolean;
|
4468
|
+
createdAt?: number;
|
4469
|
+
isApproved?: boolean;
|
4470
|
+
isArchived?: boolean;
|
4471
|
+
distinguished?: import("../../../reddit/v2alpha/postv2.js").DistinguishType;
|
4472
|
+
ignoreReports?: boolean;
|
4473
|
+
isSelf?: boolean;
|
4474
|
+
isVideo?: boolean;
|
4475
|
+
isLocked?: boolean;
|
4476
|
+
isSpoiler?: boolean;
|
4477
|
+
subredditId?: string;
|
4478
|
+
upvotes?: number;
|
4479
|
+
downvotes?: number;
|
4480
|
+
url?: string;
|
4481
|
+
isSticky?: boolean;
|
4482
|
+
linkFlair?: {
|
4483
|
+
text?: string;
|
4484
|
+
cssClass?: string;
|
4485
|
+
backgroundColor?: string;
|
4486
|
+
templateId?: string;
|
4487
|
+
textColor?: string;
|
4488
|
+
} | undefined;
|
4489
|
+
authorFlair?: {
|
4490
|
+
userId?: string;
|
4491
|
+
subredditId?: string;
|
4492
|
+
text?: string;
|
4493
|
+
cssClass?: string;
|
4494
|
+
templateId?: string;
|
4495
|
+
textColor?: string;
|
4496
|
+
backgroundColor?: string;
|
4497
|
+
enabled?: boolean;
|
4498
|
+
} | undefined;
|
4499
|
+
spam?: boolean;
|
4500
|
+
deleted?: boolean;
|
4501
|
+
languageCode?: string;
|
4502
|
+
updatedAt?: number;
|
4503
|
+
gildings?: number;
|
4504
|
+
score?: number;
|
4505
|
+
numComments?: number;
|
4506
|
+
thumbnail?: string;
|
4507
|
+
media?: {
|
4508
|
+
type?: string;
|
4509
|
+
oembed?: {
|
4510
|
+
type?: string;
|
4511
|
+
version?: string;
|
4512
|
+
title?: string;
|
4513
|
+
description?: string;
|
4514
|
+
authorName?: string;
|
4515
|
+
authorUrl?: string;
|
4516
|
+
providerName?: string;
|
4517
|
+
providerUrl?: string;
|
4518
|
+
thumbnailUrl?: string;
|
4519
|
+
thumbnailWidth?: number;
|
4520
|
+
thumbnailHeight?: number;
|
4521
|
+
html?: string;
|
4522
|
+
width?: number;
|
4523
|
+
height?: number;
|
4524
|
+
} | undefined;
|
4525
|
+
redditVideo?: {
|
4526
|
+
bitrateKbps?: number;
|
4527
|
+
fallbackUrl?: string;
|
4528
|
+
height?: number;
|
4529
|
+
width?: number;
|
4530
|
+
scrubberMediaUrl?: string;
|
4531
|
+
dashUrl?: string;
|
4532
|
+
duration?: number;
|
4533
|
+
hlsUrl?: string;
|
4534
|
+
isGif?: boolean;
|
4535
|
+
transcodingStatus?: string;
|
4536
|
+
} | undefined;
|
4537
|
+
} | undefined;
|
4538
|
+
crosspostParentId?: string;
|
4539
|
+
permalink?: string;
|
4540
|
+
isPoll?: boolean;
|
4541
|
+
isPromoted?: boolean;
|
4542
|
+
isMultiMedia?: boolean;
|
4543
|
+
type?: string;
|
4544
|
+
unlisted?: boolean;
|
4545
|
+
galleryImages?: string[];
|
4546
|
+
isImage?: boolean;
|
4547
|
+
} | undefined;
|
4548
|
+
author?: {
|
4549
|
+
id?: string;
|
4550
|
+
name?: string;
|
4551
|
+
isGold?: boolean;
|
4552
|
+
snoovatarImage?: string;
|
4553
|
+
url?: string;
|
4554
|
+
spam?: boolean;
|
4555
|
+
banned?: boolean;
|
4556
|
+
flair?: {
|
4557
|
+
userId?: string;
|
4558
|
+
subredditId?: string;
|
4559
|
+
text?: string;
|
4560
|
+
cssClass?: string;
|
4561
|
+
templateId?: string;
|
4562
|
+
textColor?: string;
|
4563
|
+
backgroundColor?: string;
|
4564
|
+
enabled?: boolean;
|
4565
|
+
} | undefined;
|
4566
|
+
karma?: number;
|
4567
|
+
iconImage?: string;
|
4568
|
+
description?: string;
|
4569
|
+
} | undefined;
|
4570
|
+
isNsfw?: boolean;
|
4571
|
+
subreddit?: {
|
4572
|
+
id?: string;
|
4573
|
+
name?: string;
|
4574
|
+
nsfw?: boolean;
|
4575
|
+
type?: import("../../../reddit/v2alpha/subredditv2.js").SubredditType;
|
4576
|
+
spam?: boolean;
|
4577
|
+
quarantined?: boolean;
|
4578
|
+
topics?: string[];
|
4579
|
+
rating?: import("../../../reddit/v2alpha/subredditv2.js").SubredditRating;
|
4580
|
+
subscribersCount?: number;
|
4581
|
+
permalink?: string;
|
4582
|
+
} | undefined;
|
4583
|
+
} | undefined): PostNsfwUpdate;
|
4584
|
+
fromPartial(object: {
|
4585
|
+
post?: {
|
4586
|
+
id?: string;
|
4587
|
+
title?: string;
|
4588
|
+
selftext?: string;
|
4589
|
+
nsfw?: boolean;
|
4590
|
+
authorId?: string;
|
4591
|
+
crowdControlLevel?: import("../../../reddit/v2alpha/postv2.js").CrowdControlLevel;
|
4592
|
+
numReports?: number;
|
4593
|
+
isGallery?: boolean;
|
4594
|
+
isMeta?: boolean;
|
4595
|
+
createdAt?: number;
|
4596
|
+
isApproved?: boolean;
|
4597
|
+
isArchived?: boolean;
|
4598
|
+
distinguished?: import("../../../reddit/v2alpha/postv2.js").DistinguishType;
|
4599
|
+
ignoreReports?: boolean;
|
4600
|
+
isSelf?: boolean;
|
4601
|
+
isVideo?: boolean;
|
4602
|
+
isLocked?: boolean;
|
4603
|
+
isSpoiler?: boolean;
|
4604
|
+
subredditId?: string;
|
4605
|
+
upvotes?: number;
|
4606
|
+
downvotes?: number;
|
4607
|
+
url?: string;
|
4608
|
+
isSticky?: boolean;
|
4609
|
+
linkFlair?: {
|
4610
|
+
text?: string;
|
4611
|
+
cssClass?: string;
|
4612
|
+
backgroundColor?: string;
|
4613
|
+
templateId?: string;
|
4614
|
+
textColor?: string;
|
4615
|
+
} | undefined;
|
4616
|
+
authorFlair?: {
|
4617
|
+
userId?: string;
|
4618
|
+
subredditId?: string;
|
4619
|
+
text?: string;
|
4620
|
+
cssClass?: string;
|
4621
|
+
templateId?: string;
|
4622
|
+
textColor?: string;
|
4623
|
+
backgroundColor?: string;
|
4624
|
+
enabled?: boolean;
|
4625
|
+
} | undefined;
|
4626
|
+
spam?: boolean;
|
4627
|
+
deleted?: boolean;
|
4628
|
+
languageCode?: string;
|
4629
|
+
updatedAt?: number;
|
4630
|
+
gildings?: number;
|
4631
|
+
score?: number;
|
4632
|
+
numComments?: number;
|
4633
|
+
thumbnail?: string;
|
4634
|
+
media?: {
|
4635
|
+
type?: string;
|
4636
|
+
oembed?: {
|
4637
|
+
type?: string;
|
4638
|
+
version?: string;
|
4639
|
+
title?: string;
|
4640
|
+
description?: string;
|
4641
|
+
authorName?: string;
|
4642
|
+
authorUrl?: string;
|
4643
|
+
providerName?: string;
|
4644
|
+
providerUrl?: string;
|
4645
|
+
thumbnailUrl?: string;
|
4646
|
+
thumbnailWidth?: number;
|
4647
|
+
thumbnailHeight?: number;
|
4648
|
+
html?: string;
|
4649
|
+
width?: number;
|
4650
|
+
height?: number;
|
4651
|
+
} | undefined;
|
4652
|
+
redditVideo?: {
|
4653
|
+
bitrateKbps?: number;
|
4654
|
+
fallbackUrl?: string;
|
4655
|
+
height?: number;
|
4656
|
+
width?: number;
|
4657
|
+
scrubberMediaUrl?: string;
|
4658
|
+
dashUrl?: string;
|
4659
|
+
duration?: number;
|
4660
|
+
hlsUrl?: string;
|
4661
|
+
isGif?: boolean;
|
4662
|
+
transcodingStatus?: string;
|
4663
|
+
} | undefined;
|
4664
|
+
} | undefined;
|
4665
|
+
crosspostParentId?: string;
|
4666
|
+
permalink?: string;
|
4667
|
+
isPoll?: boolean;
|
4668
|
+
isPromoted?: boolean;
|
4669
|
+
isMultiMedia?: boolean;
|
4670
|
+
type?: string;
|
4671
|
+
unlisted?: boolean;
|
4672
|
+
galleryImages?: string[];
|
4673
|
+
isImage?: boolean;
|
4674
|
+
} | undefined;
|
4675
|
+
author?: {
|
4676
|
+
id?: string;
|
4677
|
+
name?: string;
|
4678
|
+
isGold?: boolean;
|
4679
|
+
snoovatarImage?: string;
|
4680
|
+
url?: string;
|
4681
|
+
spam?: boolean;
|
4682
|
+
banned?: boolean;
|
4683
|
+
flair?: {
|
4684
|
+
userId?: string;
|
4685
|
+
subredditId?: string;
|
4686
|
+
text?: string;
|
4687
|
+
cssClass?: string;
|
4688
|
+
templateId?: string;
|
4689
|
+
textColor?: string;
|
4690
|
+
backgroundColor?: string;
|
4691
|
+
enabled?: boolean;
|
4692
|
+
} | undefined;
|
4693
|
+
karma?: number;
|
4694
|
+
iconImage?: string;
|
4695
|
+
description?: string;
|
4696
|
+
} | undefined;
|
4697
|
+
isNsfw?: boolean;
|
4698
|
+
subreddit?: {
|
4699
|
+
id?: string;
|
4700
|
+
name?: string;
|
4701
|
+
nsfw?: boolean;
|
4702
|
+
type?: import("../../../reddit/v2alpha/subredditv2.js").SubredditType;
|
4703
|
+
spam?: boolean;
|
4704
|
+
quarantined?: boolean;
|
4705
|
+
topics?: string[];
|
4706
|
+
rating?: import("../../../reddit/v2alpha/subredditv2.js").SubredditRating;
|
4707
|
+
subscribersCount?: number;
|
4708
|
+
permalink?: string;
|
4709
|
+
} | undefined;
|
4710
|
+
}): PostNsfwUpdate;
|
4711
|
+
};
|
4712
|
+
readonly requestStream: false;
|
4713
|
+
readonly responseType: {
|
4714
|
+
$type: "devvit.actor.automation.v1alpha.HandlerResult";
|
4715
|
+
encode(_: HandlerResult, writer?: _m0.Writer): _m0.Writer;
|
4716
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): HandlerResult;
|
4717
|
+
fromJSON(_: any): HandlerResult;
|
4718
|
+
toJSON(_: HandlerResult): unknown;
|
4719
|
+
create(base?: DeepPartial<HandlerResult>): HandlerResult;
|
4720
|
+
fromPartial(_: DeepPartial<HandlerResult>): HandlerResult;
|
4721
|
+
};
|
4722
|
+
readonly responseStream: false;
|
4723
|
+
readonly options: {};
|
4724
|
+
};
|
4725
|
+
};
|
4726
|
+
};
|
4727
|
+
export interface OnPostSpoilerUpdate {
|
4728
|
+
OnPostSpoilerUpdate(request: PostSpoilerUpdate, metadata?: Metadata): Promise<HandlerResult>;
|
4729
|
+
}
|
4730
|
+
export declare const OnPostSpoilerUpdateServiceName = "devvit.actor.automation.v1alpha.OnPostSpoilerUpdate";
|
4731
|
+
export declare class OnPostSpoilerUpdateClientImpl implements OnPostSpoilerUpdate {
|
4732
|
+
private readonly rpc;
|
4733
|
+
private readonly service;
|
4734
|
+
constructor(rpc: Rpc, opts?: {
|
4735
|
+
service?: string;
|
4736
|
+
});
|
4737
|
+
OnPostSpoilerUpdate(request: PostSpoilerUpdate, metadata?: Metadata): Promise<HandlerResult>;
|
4738
|
+
}
|
4739
|
+
export type OnPostSpoilerUpdateDefinition = typeof OnPostSpoilerUpdateDefinition;
|
4740
|
+
export declare const OnPostSpoilerUpdateDefinition: {
|
4741
|
+
readonly name: "OnPostSpoilerUpdate";
|
4742
|
+
readonly fullName: "devvit.actor.automation.v1alpha.OnPostSpoilerUpdate";
|
4743
|
+
readonly methods: {
|
4744
|
+
readonly onPostSpoilerUpdate: {
|
4745
|
+
readonly name: "OnPostSpoilerUpdate";
|
4746
|
+
readonly requestType: {
|
4747
|
+
$type: "devvit.events.v1alpha.PostSpoilerUpdate";
|
4748
|
+
encode(message: PostSpoilerUpdate, writer?: _m0.Writer): _m0.Writer;
|
4749
|
+
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): PostSpoilerUpdate;
|
4750
|
+
fromJSON(object: any): PostSpoilerUpdate;
|
4751
|
+
toJSON(message: PostSpoilerUpdate): unknown;
|
4752
|
+
create(base?: {
|
4753
|
+
post?: {
|
4754
|
+
id?: string;
|
4755
|
+
title?: string;
|
4756
|
+
selftext?: string;
|
4757
|
+
nsfw?: boolean;
|
4758
|
+
authorId?: string;
|
4759
|
+
crowdControlLevel?: import("../../../reddit/v2alpha/postv2.js").CrowdControlLevel;
|
4760
|
+
numReports?: number;
|
4761
|
+
isGallery?: boolean;
|
4762
|
+
isMeta?: boolean;
|
4763
|
+
createdAt?: number;
|
4764
|
+
isApproved?: boolean;
|
4765
|
+
isArchived?: boolean;
|
4766
|
+
distinguished?: import("../../../reddit/v2alpha/postv2.js").DistinguishType;
|
4767
|
+
ignoreReports?: boolean;
|
4768
|
+
isSelf?: boolean;
|
4769
|
+
isVideo?: boolean;
|
4770
|
+
isLocked?: boolean;
|
4771
|
+
isSpoiler?: boolean;
|
4772
|
+
subredditId?: string;
|
4773
|
+
upvotes?: number;
|
4774
|
+
downvotes?: number;
|
4775
|
+
url?: string;
|
4776
|
+
isSticky?: boolean;
|
4777
|
+
linkFlair?: {
|
4778
|
+
text?: string;
|
4779
|
+
cssClass?: string;
|
4780
|
+
backgroundColor?: string;
|
4781
|
+
templateId?: string;
|
4782
|
+
textColor?: string;
|
4783
|
+
} | undefined;
|
4784
|
+
authorFlair?: {
|
4785
|
+
userId?: string;
|
4786
|
+
subredditId?: string;
|
4787
|
+
text?: string;
|
4788
|
+
cssClass?: string;
|
4789
|
+
templateId?: string;
|
4790
|
+
textColor?: string;
|
4791
|
+
backgroundColor?: string;
|
4792
|
+
enabled?: boolean;
|
4793
|
+
} | undefined;
|
4794
|
+
spam?: boolean;
|
4795
|
+
deleted?: boolean;
|
4796
|
+
languageCode?: string;
|
4797
|
+
updatedAt?: number;
|
4798
|
+
gildings?: number;
|
4799
|
+
score?: number;
|
4800
|
+
numComments?: number;
|
4801
|
+
thumbnail?: string;
|
4802
|
+
media?: {
|
4803
|
+
type?: string;
|
4804
|
+
oembed?: {
|
4805
|
+
type?: string;
|
4806
|
+
version?: string;
|
4807
|
+
title?: string;
|
4808
|
+
description?: string;
|
4809
|
+
authorName?: string;
|
4810
|
+
authorUrl?: string;
|
4811
|
+
providerName?: string;
|
4812
|
+
providerUrl?: string;
|
4813
|
+
thumbnailUrl?: string;
|
4814
|
+
thumbnailWidth?: number;
|
4815
|
+
thumbnailHeight?: number;
|
4816
|
+
html?: string;
|
4817
|
+
width?: number;
|
4818
|
+
height?: number;
|
4819
|
+
} | undefined;
|
4820
|
+
redditVideo?: {
|
4821
|
+
bitrateKbps?: number;
|
4822
|
+
fallbackUrl?: string;
|
4823
|
+
height?: number;
|
4824
|
+
width?: number;
|
4825
|
+
scrubberMediaUrl?: string;
|
4826
|
+
dashUrl?: string;
|
4827
|
+
duration?: number;
|
4828
|
+
hlsUrl?: string;
|
4829
|
+
isGif?: boolean;
|
4830
|
+
transcodingStatus?: string;
|
4831
|
+
} | undefined;
|
4832
|
+
} | undefined;
|
4833
|
+
crosspostParentId?: string;
|
4834
|
+
permalink?: string;
|
4835
|
+
isPoll?: boolean;
|
4836
|
+
isPromoted?: boolean;
|
4837
|
+
isMultiMedia?: boolean;
|
4838
|
+
type?: string;
|
4839
|
+
unlisted?: boolean;
|
4840
|
+
galleryImages?: string[];
|
4841
|
+
isImage?: boolean;
|
4842
|
+
} | undefined;
|
4843
|
+
author?: {
|
4844
|
+
id?: string;
|
4845
|
+
name?: string;
|
4846
|
+
isGold?: boolean;
|
4847
|
+
snoovatarImage?: string;
|
4848
|
+
url?: string;
|
4849
|
+
spam?: boolean;
|
4850
|
+
banned?: boolean;
|
4851
|
+
flair?: {
|
4852
|
+
userId?: string;
|
4853
|
+
subredditId?: string;
|
4854
|
+
text?: string;
|
4855
|
+
cssClass?: string;
|
4856
|
+
templateId?: string;
|
4857
|
+
textColor?: string;
|
4858
|
+
backgroundColor?: string;
|
4859
|
+
enabled?: boolean;
|
4860
|
+
} | undefined;
|
4861
|
+
karma?: number;
|
4862
|
+
iconImage?: string;
|
4863
|
+
description?: string;
|
4864
|
+
} | undefined;
|
4865
|
+
isNsfw?: boolean;
|
4866
|
+
subreddit?: {
|
4867
|
+
id?: string;
|
4868
|
+
name?: string;
|
4869
|
+
nsfw?: boolean;
|
4870
|
+
type?: import("../../../reddit/v2alpha/subredditv2.js").SubredditType;
|
4871
|
+
spam?: boolean;
|
4872
|
+
quarantined?: boolean;
|
4873
|
+
topics?: string[];
|
4874
|
+
rating?: import("../../../reddit/v2alpha/subredditv2.js").SubredditRating;
|
4875
|
+
subscribersCount?: number;
|
4876
|
+
permalink?: string;
|
4877
|
+
} | undefined;
|
4878
|
+
} | undefined): PostSpoilerUpdate;
|
4879
|
+
fromPartial(object: {
|
4880
|
+
post?: {
|
4881
|
+
id?: string;
|
4882
|
+
title?: string;
|
4883
|
+
selftext?: string;
|
4884
|
+
nsfw?: boolean;
|
4885
|
+
authorId?: string;
|
4886
|
+
crowdControlLevel?: import("../../../reddit/v2alpha/postv2.js").CrowdControlLevel;
|
4887
|
+
numReports?: number;
|
4888
|
+
isGallery?: boolean;
|
4889
|
+
isMeta?: boolean;
|
4890
|
+
createdAt?: number;
|
4891
|
+
isApproved?: boolean;
|
4892
|
+
isArchived?: boolean;
|
4893
|
+
distinguished?: import("../../../reddit/v2alpha/postv2.js").DistinguishType;
|
4894
|
+
ignoreReports?: boolean;
|
4895
|
+
isSelf?: boolean;
|
4896
|
+
isVideo?: boolean;
|
4897
|
+
isLocked?: boolean;
|
4898
|
+
isSpoiler?: boolean;
|
4899
|
+
subredditId?: string;
|
4900
|
+
upvotes?: number;
|
4901
|
+
downvotes?: number;
|
4902
|
+
url?: string;
|
4903
|
+
isSticky?: boolean;
|
4904
|
+
linkFlair?: {
|
4905
|
+
text?: string;
|
4906
|
+
cssClass?: string;
|
4907
|
+
backgroundColor?: string;
|
4908
|
+
templateId?: string;
|
4909
|
+
textColor?: string;
|
4910
|
+
} | undefined;
|
4911
|
+
authorFlair?: {
|
4912
|
+
userId?: string;
|
4913
|
+
subredditId?: string;
|
4914
|
+
text?: string;
|
4915
|
+
cssClass?: string;
|
4916
|
+
templateId?: string;
|
4917
|
+
textColor?: string;
|
4918
|
+
backgroundColor?: string;
|
4919
|
+
enabled?: boolean;
|
4920
|
+
} | undefined;
|
4921
|
+
spam?: boolean;
|
4922
|
+
deleted?: boolean;
|
4923
|
+
languageCode?: string;
|
4924
|
+
updatedAt?: number;
|
4925
|
+
gildings?: number;
|
4926
|
+
score?: number;
|
4927
|
+
numComments?: number;
|
4928
|
+
thumbnail?: string;
|
4929
|
+
media?: {
|
4930
|
+
type?: string;
|
4931
|
+
oembed?: {
|
4932
|
+
type?: string;
|
4933
|
+
version?: string;
|
4934
|
+
title?: string;
|
4935
|
+
description?: string;
|
4936
|
+
authorName?: string;
|
4937
|
+
authorUrl?: string;
|
4938
|
+
providerName?: string;
|
4939
|
+
providerUrl?: string;
|
4940
|
+
thumbnailUrl?: string;
|
4941
|
+
thumbnailWidth?: number;
|
4942
|
+
thumbnailHeight?: number;
|
4943
|
+
html?: string;
|
4944
|
+
width?: number;
|
4945
|
+
height?: number;
|
4946
|
+
} | undefined;
|
4947
|
+
redditVideo?: {
|
4948
|
+
bitrateKbps?: number;
|
4949
|
+
fallbackUrl?: string;
|
4950
|
+
height?: number;
|
4951
|
+
width?: number;
|
4952
|
+
scrubberMediaUrl?: string;
|
4953
|
+
dashUrl?: string;
|
4954
|
+
duration?: number;
|
4955
|
+
hlsUrl?: string;
|
4956
|
+
isGif?: boolean;
|
4957
|
+
transcodingStatus?: string;
|
4958
|
+
} | undefined;
|
4959
|
+
} | undefined;
|
4960
|
+
crosspostParentId?: string;
|
4961
|
+
permalink?: string;
|
4962
|
+
isPoll?: boolean;
|
4963
|
+
isPromoted?: boolean;
|
4964
|
+
isMultiMedia?: boolean;
|
4965
|
+
type?: string;
|
4966
|
+
unlisted?: boolean;
|
4967
|
+
galleryImages?: string[];
|
4968
|
+
isImage?: boolean;
|
4969
|
+
} | undefined;
|
4970
|
+
author?: {
|
4971
|
+
id?: string;
|
4972
|
+
name?: string;
|
4973
|
+
isGold?: boolean;
|
4974
|
+
snoovatarImage?: string;
|
4975
|
+
url?: string;
|
4976
|
+
spam?: boolean;
|
4977
|
+
banned?: boolean;
|
4978
|
+
flair?: {
|
4979
|
+
userId?: string;
|
4980
|
+
subredditId?: string;
|
4981
|
+
text?: string;
|
4982
|
+
cssClass?: string;
|
4983
|
+
templateId?: string;
|
4984
|
+
textColor?: string;
|
4985
|
+
backgroundColor?: string;
|
4986
|
+
enabled?: boolean;
|
4987
|
+
} | undefined;
|
4988
|
+
karma?: number;
|
4989
|
+
iconImage?: string;
|
4990
|
+
description?: string;
|
4991
|
+
} | undefined;
|
4992
|
+
isNsfw?: boolean;
|
4993
|
+
subreddit?: {
|
4994
|
+
id?: string;
|
4995
|
+
name?: string;
|
4996
|
+
nsfw?: boolean;
|
4997
|
+
type?: import("../../../reddit/v2alpha/subredditv2.js").SubredditType;
|
4998
|
+
spam?: boolean;
|
4999
|
+
quarantined?: boolean;
|
5000
|
+
topics?: string[];
|
5001
|
+
rating?: import("../../../reddit/v2alpha/subredditv2.js").SubredditRating;
|
5002
|
+
subscribersCount?: number;
|
5003
|
+
permalink?: string;
|
5004
|
+
} | undefined;
|
5005
|
+
}): PostSpoilerUpdate;
|
5006
|
+
};
|
5007
|
+
readonly requestStream: false;
|
5008
|
+
readonly responseType: {
|
5009
|
+
$type: "devvit.actor.automation.v1alpha.HandlerResult";
|
5010
|
+
encode(_: HandlerResult, writer?: _m0.Writer): _m0.Writer;
|
5011
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): HandlerResult;
|
5012
|
+
fromJSON(_: any): HandlerResult;
|
5013
|
+
toJSON(_: HandlerResult): unknown;
|
5014
|
+
create(base?: DeepPartial<HandlerResult>): HandlerResult;
|
5015
|
+
fromPartial(_: DeepPartial<HandlerResult>): HandlerResult;
|
5016
|
+
};
|
5017
|
+
readonly responseStream: false;
|
5018
|
+
readonly options: {};
|
5019
|
+
};
|
5020
|
+
};
|
5021
|
+
};
|
4432
5022
|
interface Rpc {
|
4433
5023
|
request(service: string, method: string, data: Uint8Array, metadata?: Metadata): Promise<Uint8Array>;
|
4434
5024
|
}
|