@devvit/protos 0.11.0-next-2024-09-13-63d93e8d9.0 → 0.11.0-next-2024-09-16-7f0c45441.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/meta.min.json +13 -12
- package/package.json +6 -6
- package/protos.min.js +2 -2
- package/protos.min.js.map +3 -3
- package/schema/devvit/gql/subreddit_metadata.proto +6 -2
- package/schema/devvit/plugin/redditapi/linksandcomments/linksandcomments_msg.proto +8 -0
- package/schema/devvit/plugin/redditapi/linksandcomments/linksandcomments_svc.proto +2 -0
- package/schema/snootobuf.devenv.lock +644 -398
- package/schema/snootobuf.lock +644 -398
- package/schema/snootobuf.redditapi.lock +644 -398
- package/schema/snootobuf.ts.lock +644 -398
- package/types/devvit/gateway/resolvers.d.ts +2 -2
- package/types/devvit/gql/subreddit_metadata.d.ts +2 -2
- package/types/devvit/gql/subreddit_metadata.d.ts.map +1 -1
- package/types/devvit/gql/subreddit_metadata.js +10 -10
- package/types/devvit/plugin/redditapi/linksandcomments/linksandcomments_msg.d.ts +18 -0
- package/types/devvit/plugin/redditapi/linksandcomments/linksandcomments_msg.d.ts.map +1 -1
- package/types/devvit/plugin/redditapi/linksandcomments/linksandcomments_msg.js +68 -0
- package/types/devvit/plugin/redditapi/linksandcomments/linksandcomments_svc.d.ts +411 -105
- package/types/devvit/plugin/redditapi/linksandcomments/linksandcomments_svc.d.ts.map +1 -1
- package/types/devvit/plugin/redditapi/linksandcomments/linksandcomments_svc.js +17 -2
- package/types/devvit/plugin/redditapi/linksandcomments/linksandcomments_svc.twirp-client.d.ts +5 -2
- package/types/devvit/plugin/redditapi/linksandcomments/linksandcomments_svc.twirp-client.d.ts.map +1 -1
- package/types/devvit/plugin/redditapi/linksandcomments/linksandcomments_svc.twirp-client.js +14 -2
- package/types/devvit/plugin/redditapi/linksandcomments/linksandcomments_svc.twirp.d.ts +4 -2
- package/types/devvit/plugin/redditapi/linksandcomments/linksandcomments_svc.twirp.d.ts.map +1 -1
- package/types/devvit/plugin/redditapi/linksandcomments/linksandcomments_svc.twirp.js +68 -2
@@ -6,8 +6,8 @@
|
|
6
6
|
import _m0 from "protobufjs/minimal.js";
|
7
7
|
import { Metadata } from "../../../../../lib/Types.js";
|
8
8
|
import { Empty } from "../../../../google/protobuf/empty.js";
|
9
|
-
import { JsonStatus, Listing } from "../common/common_msg.js";
|
10
|
-
import { BasicIdRequest, CommentRequest, FollowPostRequest, InfoRequest, JsonWrappedComment, MoreChildrenRequest, ReportAwardRequest, ReportRequest, SaveRequest, SendRepliesRequest, SetContestModeRequest, SetSubredditStickyRequest, SetSuggestedSortRequest, SubmitRequest, SubmitResponse, VoteRequest } from "./linksandcomments_msg.js";
|
9
|
+
import { JsonRedditObjects, JsonStatus, Listing } from "../common/common_msg.js";
|
10
|
+
import { BasicIdRequest, CommentRequest, EditCustomPostRequest, FollowPostRequest, InfoRequest, JsonWrappedComment, MoreChildrenRequest, ReportAwardRequest, ReportRequest, SaveRequest, SendRepliesRequest, SetContestModeRequest, SetSubredditStickyRequest, SetSuggestedSortRequest, SubmitRequest, SubmitResponse, VoteRequest } from "./linksandcomments_msg.js";
|
11
11
|
/**
|
12
12
|
* LINKS & COMMENTS - https://www.reddit.com/dev/api#section_links_and_comments
|
13
13
|
* Note: all endpoints require oauth
|
@@ -114,6 +114,8 @@ export interface LinksAndComments {
|
|
114
114
|
* @see {@link https://www.reddit.com/dev/api#POST_api_set_contest_mode}
|
115
115
|
*/
|
116
116
|
SetContestMode(request: SetContestModeRequest, metadata?: Metadata): Promise<JsonStatus>;
|
117
|
+
/** Edit or set fields unique to developer platform custom posts */
|
118
|
+
EditCustomPost(request: EditCustomPostRequest, metadata?: Metadata): Promise<JsonRedditObjects>;
|
117
119
|
/**
|
118
120
|
* Set the "sticky" or "pinned" status of a Post
|
119
121
|
*
|
@@ -214,6 +216,7 @@ export declare class LinksAndCommentsClientImpl implements LinksAndComments {
|
|
214
216
|
Save(request: SaveRequest, metadata?: Metadata): Promise<Empty>;
|
215
217
|
SendReplies(request: SendRepliesRequest, metadata?: Metadata): Promise<Empty>;
|
216
218
|
SetContestMode(request: SetContestModeRequest, metadata?: Metadata): Promise<JsonStatus>;
|
219
|
+
EditCustomPost(request: EditCustomPostRequest, metadata?: Metadata): Promise<JsonRedditObjects>;
|
217
220
|
SetSubredditSticky(request: SetSubredditStickyRequest, metadata?: Metadata): Promise<JsonStatus>;
|
218
221
|
SetSuggestedSort(request: SetSuggestedSortRequest, metadata?: Metadata): Promise<JsonStatus>;
|
219
222
|
Spoiler(request: BasicIdRequest, metadata?: Metadata): Promise<Empty>;
|
@@ -614,12 +617,7 @@ export declare const LinksAndCommentsDefinition: {
|
|
614
617
|
encode(_: Empty, writer?: _m0.Writer): _m0.Writer;
|
615
618
|
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): Empty;
|
616
619
|
fromJSON(_: any): Empty;
|
617
|
-
toJSON(_: Empty): unknown;
|
618
|
-
* Edit the body text of a Comment or Post
|
619
|
-
* Note: `thing_id` refers to the Post or Comment being edited
|
620
|
-
*
|
621
|
-
* @see {@link https://www.reddit.com/dev/api#POST_api_editusertext}
|
622
|
-
*/
|
620
|
+
toJSON(_: Empty): unknown;
|
623
621
|
create(base?: {} | undefined): Empty;
|
624
622
|
fromPartial(_: {}): Empty;
|
625
623
|
};
|
@@ -1010,12 +1008,7 @@ export declare const LinksAndCommentsDefinition: {
|
|
1010
1008
|
encode(_: Empty, writer?: _m0.Writer): _m0.Writer;
|
1011
1009
|
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): Empty;
|
1012
1010
|
fromJSON(_: any): Empty;
|
1013
|
-
toJSON(_: Empty): unknown;
|
1014
|
-
* Edit the body text of a Comment or Post
|
1015
|
-
* Note: `thing_id` refers to the Post or Comment being edited
|
1016
|
-
*
|
1017
|
-
* @see {@link https://www.reddit.com/dev/api#POST_api_editusertext}
|
1018
|
-
*/
|
1011
|
+
toJSON(_: Empty): unknown;
|
1019
1012
|
create(base?: {} | undefined): Empty;
|
1020
1013
|
fromPartial(_: {}): Empty;
|
1021
1014
|
};
|
@@ -1054,12 +1047,7 @@ export declare const LinksAndCommentsDefinition: {
|
|
1054
1047
|
encode(_: Empty, writer?: _m0.Writer): _m0.Writer;
|
1055
1048
|
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): Empty;
|
1056
1049
|
fromJSON(_: any): Empty;
|
1057
|
-
toJSON(_: Empty): unknown;
|
1058
|
-
* Edit the body text of a Comment or Post
|
1059
|
-
* Note: `thing_id` refers to the Post or Comment being edited
|
1060
|
-
*
|
1061
|
-
* @see {@link https://www.reddit.com/dev/api#POST_api_editusertext}
|
1062
|
-
*/
|
1050
|
+
toJSON(_: Empty): unknown;
|
1063
1051
|
create(base?: {} | undefined): Empty;
|
1064
1052
|
fromPartial(_: {}): Empty;
|
1065
1053
|
};
|
@@ -1470,12 +1458,7 @@ export declare const LinksAndCommentsDefinition: {
|
|
1470
1458
|
encode(_: Empty, writer?: _m0.Writer): _m0.Writer;
|
1471
1459
|
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): Empty;
|
1472
1460
|
fromJSON(_: any): Empty;
|
1473
|
-
toJSON(_: Empty): unknown;
|
1474
|
-
* Edit the body text of a Comment or Post
|
1475
|
-
* Note: `thing_id` refers to the Post or Comment being edited
|
1476
|
-
*
|
1477
|
-
* @see {@link https://www.reddit.com/dev/api#POST_api_editusertext}
|
1478
|
-
*/
|
1461
|
+
toJSON(_: Empty): unknown;
|
1479
1462
|
create(base?: {} | undefined): Empty;
|
1480
1463
|
fromPartial(_: {}): Empty;
|
1481
1464
|
};
|
@@ -1513,12 +1496,7 @@ export declare const LinksAndCommentsDefinition: {
|
|
1513
1496
|
encode(_: Empty, writer?: _m0.Writer): _m0.Writer;
|
1514
1497
|
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): Empty;
|
1515
1498
|
fromJSON(_: any): Empty;
|
1516
|
-
toJSON(_: Empty): unknown;
|
1517
|
-
* Edit the body text of a Comment or Post
|
1518
|
-
* Note: `thing_id` refers to the Post or Comment being edited
|
1519
|
-
*
|
1520
|
-
* @see {@link https://www.reddit.com/dev/api#POST_api_editusertext}
|
1521
|
-
*/
|
1499
|
+
toJSON(_: Empty): unknown;
|
1522
1500
|
create(base?: {} | undefined): Empty;
|
1523
1501
|
fromPartial(_: {}): Empty;
|
1524
1502
|
};
|
@@ -1541,12 +1519,7 @@ export declare const LinksAndCommentsDefinition: {
|
|
1541
1519
|
readonly moreChildren: {
|
1542
1520
|
readonly name: "MoreChildren";
|
1543
1521
|
readonly requestType: {
|
1544
|
-
$type: "devvit.plugin.redditapi.linksandcomments.MoreChildrenRequest";
|
1545
|
-
* Edit the body text of a Comment or Post
|
1546
|
-
* Note: `thing_id` refers to the Post or Comment being edited
|
1547
|
-
*
|
1548
|
-
* @see {@link https://www.reddit.com/dev/api#POST_api_editusertext}
|
1549
|
-
*/
|
1522
|
+
$type: "devvit.plugin.redditapi.linksandcomments.MoreChildrenRequest";
|
1550
1523
|
encode(message: MoreChildrenRequest, writer?: _m0.Writer): _m0.Writer;
|
1551
1524
|
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): MoreChildrenRequest;
|
1552
1525
|
fromJSON(object: any): MoreChildrenRequest;
|
@@ -1989,12 +1962,7 @@ export declare const LinksAndCommentsDefinition: {
|
|
1989
1962
|
encode(_: Empty, writer?: _m0.Writer): _m0.Writer;
|
1990
1963
|
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): Empty;
|
1991
1964
|
fromJSON(_: any): Empty;
|
1992
|
-
toJSON(_: Empty): unknown;
|
1993
|
-
* Edit the body text of a Comment or Post
|
1994
|
-
* Note: `thing_id` refers to the Post or Comment being edited
|
1995
|
-
*
|
1996
|
-
* @see {@link https://www.reddit.com/dev/api#POST_api_editusertext}
|
1997
|
-
*/
|
1965
|
+
toJSON(_: Empty): unknown;
|
1998
1966
|
create(base?: {} | undefined): Empty;
|
1999
1967
|
fromPartial(_: {}): Empty;
|
2000
1968
|
};
|
@@ -2032,12 +2000,7 @@ export declare const LinksAndCommentsDefinition: {
|
|
2032
2000
|
encode(_: Empty, writer?: _m0.Writer): _m0.Writer;
|
2033
2001
|
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): Empty;
|
2034
2002
|
fromJSON(_: any): Empty;
|
2035
|
-
toJSON(_: Empty): unknown;
|
2036
|
-
* Edit the body text of a Comment or Post
|
2037
|
-
* Note: `thing_id` refers to the Post or Comment being edited
|
2038
|
-
*
|
2039
|
-
* @see {@link https://www.reddit.com/dev/api#POST_api_editusertext}
|
2040
|
-
*/
|
2003
|
+
toJSON(_: Empty): unknown;
|
2041
2004
|
create(base?: {} | undefined): Empty;
|
2042
2005
|
fromPartial(_: {}): Empty;
|
2043
2006
|
};
|
@@ -2076,12 +2039,7 @@ export declare const LinksAndCommentsDefinition: {
|
|
2076
2039
|
encode(_: Empty, writer?: _m0.Writer): _m0.Writer;
|
2077
2040
|
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): Empty;
|
2078
2041
|
fromJSON(_: any): Empty;
|
2079
|
-
toJSON(_: Empty): unknown;
|
2080
|
-
* Edit the body text of a Comment or Post
|
2081
|
-
* Note: `thing_id` refers to the Post or Comment being edited
|
2082
|
-
*
|
2083
|
-
* @see {@link https://www.reddit.com/dev/api#POST_api_editusertext}
|
2084
|
-
*/
|
2042
|
+
toJSON(_: Empty): unknown;
|
2085
2043
|
create(base?: {} | undefined): Empty;
|
2086
2044
|
fromPartial(_: {}): Empty;
|
2087
2045
|
};
|
@@ -2105,7 +2063,12 @@ export declare const LinksAndCommentsDefinition: {
|
|
2105
2063
|
$type: "devvit.plugin.redditapi.linksandcomments.SetContestModeRequest";
|
2106
2064
|
encode(message: SetContestModeRequest, writer?: _m0.Writer): _m0.Writer;
|
2107
2065
|
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): SetContestModeRequest;
|
2108
|
-
fromJSON(object: any): SetContestModeRequest;
|
2066
|
+
fromJSON(object: any): SetContestModeRequest; /**
|
2067
|
+
* Clears the Not-Safe-For-Work status from a Post
|
2068
|
+
*
|
2069
|
+
* @see {@link MarkNSFW}
|
2070
|
+
* @see {@link https://www.reddit.com/dev/api#POST_api_unmarknsfw}
|
2071
|
+
*/
|
2109
2072
|
toJSON(message: SetContestModeRequest): unknown;
|
2110
2073
|
create(base?: {
|
2111
2074
|
id?: string;
|
@@ -2114,12 +2077,7 @@ export declare const LinksAndCommentsDefinition: {
|
|
2114
2077
|
fromPartial(object: {
|
2115
2078
|
id?: string;
|
2116
2079
|
state?: boolean;
|
2117
|
-
}): SetContestModeRequest;
|
2118
|
-
* Clears the spoiler tag on a given Post
|
2119
|
-
*
|
2120
|
-
* @see {@link Spoiler}
|
2121
|
-
* @see {@link https://www.reddit.com/dev/api#POST_api_unspoiler}
|
2122
|
-
*/
|
2080
|
+
}): SetContestModeRequest;
|
2123
2081
|
};
|
2124
2082
|
readonly requestStream: false;
|
2125
2083
|
readonly responseType: {
|
@@ -2146,6 +2104,389 @@ export declare const LinksAndCommentsDefinition: {
|
|
2146
2104
|
};
|
2147
2105
|
};
|
2148
2106
|
};
|
2107
|
+
/** Edit or set fields unique to developer platform custom posts */
|
2108
|
+
readonly editCustomPost: {
|
2109
|
+
readonly name: "EditCustomPost";
|
2110
|
+
readonly requestType: {
|
2111
|
+
$type: "devvit.plugin.redditapi.linksandcomments.EditCustomPostRequest";
|
2112
|
+
encode(message: EditCustomPostRequest, writer?: _m0.Writer): _m0.Writer;
|
2113
|
+
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): EditCustomPostRequest;
|
2114
|
+
fromJSON(object: any): EditCustomPostRequest;
|
2115
|
+
toJSON(message: EditCustomPostRequest): unknown;
|
2116
|
+
create(base?: {
|
2117
|
+
thingId?: string;
|
2118
|
+
richtextFallback?: string | undefined;
|
2119
|
+
} | undefined): EditCustomPostRequest;
|
2120
|
+
fromPartial(object: {
|
2121
|
+
thingId?: string;
|
2122
|
+
richtextFallback?: string | undefined;
|
2123
|
+
}): EditCustomPostRequest;
|
2124
|
+
};
|
2125
|
+
readonly requestStream: false;
|
2126
|
+
readonly responseType: {
|
2127
|
+
$type: "devvit.plugin.redditapi.common.JsonRedditObjects";
|
2128
|
+
encode(message: JsonRedditObjects, writer?: _m0.Writer): _m0.Writer;
|
2129
|
+
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): JsonRedditObjects;
|
2130
|
+
fromJSON(object: any): JsonRedditObjects;
|
2131
|
+
toJSON(message: JsonRedditObjects): unknown;
|
2132
|
+
create(base?: {
|
2133
|
+
json?: {
|
2134
|
+
errors?: {
|
2135
|
+
typeUrl?: string;
|
2136
|
+
value?: Uint8Array;
|
2137
|
+
}[];
|
2138
|
+
data?: {
|
2139
|
+
things?: {
|
2140
|
+
kind?: string;
|
2141
|
+
data?: {
|
2142
|
+
allAwardings?: {
|
2143
|
+
typeUrl?: string;
|
2144
|
+
value?: Uint8Array;
|
2145
|
+
}[];
|
2146
|
+
approved?: boolean | undefined;
|
2147
|
+
approvedAtUtc?: number | undefined;
|
2148
|
+
approvedBy?: string | undefined;
|
2149
|
+
archived?: boolean | undefined;
|
2150
|
+
associatedAward?: string | undefined;
|
2151
|
+
author?: string | undefined;
|
2152
|
+
authorFlairBackgroundColor?: string | undefined;
|
2153
|
+
authorFlairCssClass?: string | undefined;
|
2154
|
+
authorFlairRichtext?: {
|
2155
|
+
e?: string | undefined;
|
2156
|
+
t?: string | undefined;
|
2157
|
+
a?: string | undefined;
|
2158
|
+
u?: string | undefined;
|
2159
|
+
}[];
|
2160
|
+
authorFlairTemplateId?: string | undefined;
|
2161
|
+
authorFlairText?: string | undefined;
|
2162
|
+
authorFlairTextColor?: string | undefined;
|
2163
|
+
authorFlairType?: string | undefined;
|
2164
|
+
authorFullname?: string | undefined;
|
2165
|
+
authorIsBlocked?: boolean | undefined;
|
2166
|
+
authorPatreonFlair?: boolean | undefined;
|
2167
|
+
authorPremium?: boolean | undefined;
|
2168
|
+
awarders?: string[];
|
2169
|
+
bannedAtUtc?: number | undefined;
|
2170
|
+
bannedBy?: string | undefined;
|
2171
|
+
body?: string | undefined;
|
2172
|
+
bodyHtml?: string | undefined;
|
2173
|
+
canGild?: boolean | undefined;
|
2174
|
+
canModPost?: boolean | undefined;
|
2175
|
+
collapsed?: boolean | undefined;
|
2176
|
+
collapsedBecauseCrowdControl?: boolean | undefined;
|
2177
|
+
collapsedReason?: string | undefined;
|
2178
|
+
collapsedReasonCode?: string | undefined;
|
2179
|
+
commentType?: string | undefined;
|
2180
|
+
controversiality?: number | undefined;
|
2181
|
+
created?: number | undefined;
|
2182
|
+
createdUtc?: number | undefined;
|
2183
|
+
distinguished?: string | undefined;
|
2184
|
+
downs?: number | undefined;
|
2185
|
+
edited?: boolean | undefined;
|
2186
|
+
gilded?: number | undefined;
|
2187
|
+
gildings?: {
|
2188
|
+
typeUrl?: string;
|
2189
|
+
value?: Uint8Array;
|
2190
|
+
} | undefined;
|
2191
|
+
id?: string | undefined;
|
2192
|
+
ignoreReports?: boolean | undefined;
|
2193
|
+
isSubmitter?: boolean | undefined;
|
2194
|
+
likes?: boolean | undefined;
|
2195
|
+
linkId?: string | undefined;
|
2196
|
+
locked?: boolean | undefined;
|
2197
|
+
modNote?: string | undefined;
|
2198
|
+
modReasonBy?: string | undefined;
|
2199
|
+
modReasonTitle?: string | undefined;
|
2200
|
+
name?: string | undefined;
|
2201
|
+
noFollow?: boolean | undefined;
|
2202
|
+
numReports?: number | undefined;
|
2203
|
+
parentId?: string | undefined;
|
2204
|
+
permalink?: string | undefined;
|
2205
|
+
removalReason?: string | undefined;
|
2206
|
+
removed?: boolean | undefined;
|
2207
|
+
replies?: string | undefined;
|
2208
|
+
reportReasons?: any[] | undefined;
|
2209
|
+
rteMode?: string | undefined;
|
2210
|
+
saved?: boolean | undefined;
|
2211
|
+
score?: number | undefined;
|
2212
|
+
scoreHidden?: boolean | undefined;
|
2213
|
+
sendReplies?: boolean | undefined;
|
2214
|
+
spam?: boolean | undefined;
|
2215
|
+
stickied?: boolean | undefined;
|
2216
|
+
subreddit?: string | undefined;
|
2217
|
+
subredditId?: string | undefined;
|
2218
|
+
subredditNamePrefixed?: string | undefined;
|
2219
|
+
subredditType?: string | undefined;
|
2220
|
+
topAwardedType?: string | undefined;
|
2221
|
+
totalAwardsReceived?: number | undefined;
|
2222
|
+
treatmentTags?: {
|
2223
|
+
typeUrl?: string;
|
2224
|
+
value?: Uint8Array;
|
2225
|
+
}[];
|
2226
|
+
unrepliableReason?: string | undefined;
|
2227
|
+
ups?: number | undefined;
|
2228
|
+
depth?: number | undefined;
|
2229
|
+
linkTitle?: string | undefined;
|
2230
|
+
linkAuthor?: string | undefined;
|
2231
|
+
numComments?: number | undefined;
|
2232
|
+
over18?: boolean | undefined;
|
2233
|
+
linkPermalink?: string | undefined;
|
2234
|
+
quarantine?: boolean | undefined;
|
2235
|
+
linkUrl?: string | undefined;
|
2236
|
+
selftext?: string | undefined;
|
2237
|
+
selftextHtml?: string | undefined;
|
2238
|
+
thumbnail?: string | undefined;
|
2239
|
+
thumbnailWidth?: number | undefined;
|
2240
|
+
thumbnailHeight?: number | undefined;
|
2241
|
+
title?: string | undefined;
|
2242
|
+
url?: string | undefined;
|
2243
|
+
displayName?: string | undefined;
|
2244
|
+
modPermissions?: string[];
|
2245
|
+
count?: number | undefined;
|
2246
|
+
children?: any[] | undefined;
|
2247
|
+
replyList?: {
|
2248
|
+
kind?: string;
|
2249
|
+
data?: {
|
2250
|
+
after?: string | undefined;
|
2251
|
+
before?: string | undefined;
|
2252
|
+
children?: any[];
|
2253
|
+
dist?: number | undefined;
|
2254
|
+
} | undefined;
|
2255
|
+
} | undefined;
|
2256
|
+
hidden?: boolean | undefined;
|
2257
|
+
linkFlairBackgroundColor?: string | undefined;
|
2258
|
+
linkFlairCssClass?: string | undefined;
|
2259
|
+
linkFlairRichtext?: {
|
2260
|
+
e?: string | undefined;
|
2261
|
+
t?: string | undefined;
|
2262
|
+
a?: string | undefined;
|
2263
|
+
u?: string | undefined;
|
2264
|
+
}[];
|
2265
|
+
linkFlairTemplateId?: string | undefined;
|
2266
|
+
linkFlairText?: string | undefined;
|
2267
|
+
linkFlairTextColor?: string | undefined;
|
2268
|
+
linkFlairType?: string | undefined;
|
2269
|
+
secureMedia?: {
|
2270
|
+
type?: string;
|
2271
|
+
oembed?: {
|
2272
|
+
type?: string;
|
2273
|
+
title?: string | undefined;
|
2274
|
+
providerName?: string | undefined;
|
2275
|
+
providerUrl?: string | undefined;
|
2276
|
+
version?: string;
|
2277
|
+
thumbnailWidth?: number | undefined;
|
2278
|
+
thumbnailHeight?: number | undefined;
|
2279
|
+
thumbnailUrl?: string | undefined;
|
2280
|
+
html?: string;
|
2281
|
+
height?: number | undefined;
|
2282
|
+
width?: number | undefined;
|
2283
|
+
authorUrl?: string | undefined;
|
2284
|
+
authorName?: string | undefined;
|
2285
|
+
} | undefined;
|
2286
|
+
redditVideo?: {
|
2287
|
+
bitrateKbps?: number | undefined;
|
2288
|
+
dashUrl?: string | undefined;
|
2289
|
+
duration?: number | undefined;
|
2290
|
+
fallbackUrl?: string | undefined;
|
2291
|
+
height?: number | undefined;
|
2292
|
+
hlsUrl?: string | undefined;
|
2293
|
+
isGif?: boolean | undefined;
|
2294
|
+
scrubberMediaUrl?: string | undefined;
|
2295
|
+
transcodingStatus?: string | undefined;
|
2296
|
+
width?: number | undefined;
|
2297
|
+
} | undefined;
|
2298
|
+
} | undefined;
|
2299
|
+
spoiler?: boolean;
|
2300
|
+
modReports?: any[][];
|
2301
|
+
userReports?: any[][];
|
2302
|
+
removedBy?: string | undefined;
|
2303
|
+
removedByCategory?: string | undefined;
|
2304
|
+
} | undefined;
|
2305
|
+
}[];
|
2306
|
+
} | undefined;
|
2307
|
+
} | undefined;
|
2308
|
+
} | undefined): JsonRedditObjects;
|
2309
|
+
fromPartial(object: {
|
2310
|
+
json?: {
|
2311
|
+
errors?: {
|
2312
|
+
typeUrl?: string;
|
2313
|
+
value?: Uint8Array;
|
2314
|
+
}[];
|
2315
|
+
data?: {
|
2316
|
+
things?: {
|
2317
|
+
kind?: string;
|
2318
|
+
data?: {
|
2319
|
+
allAwardings?: {
|
2320
|
+
typeUrl?: string;
|
2321
|
+
value?: Uint8Array;
|
2322
|
+
}[];
|
2323
|
+
approved?: boolean | undefined;
|
2324
|
+
approvedAtUtc?: number | undefined;
|
2325
|
+
approvedBy?: string | undefined;
|
2326
|
+
archived?: boolean | undefined;
|
2327
|
+
associatedAward?: string | undefined;
|
2328
|
+
author?: string | undefined;
|
2329
|
+
authorFlairBackgroundColor?: string | undefined;
|
2330
|
+
authorFlairCssClass?: string | undefined;
|
2331
|
+
authorFlairRichtext?: {
|
2332
|
+
e?: string | undefined;
|
2333
|
+
t?: string | undefined;
|
2334
|
+
a?: string | undefined;
|
2335
|
+
u?: string | undefined;
|
2336
|
+
}[];
|
2337
|
+
authorFlairTemplateId?: string | undefined;
|
2338
|
+
authorFlairText?: string | undefined;
|
2339
|
+
authorFlairTextColor?: string | undefined;
|
2340
|
+
authorFlairType?: string | undefined;
|
2341
|
+
authorFullname?: string | undefined;
|
2342
|
+
authorIsBlocked?: boolean | undefined;
|
2343
|
+
authorPatreonFlair?: boolean | undefined;
|
2344
|
+
authorPremium?: boolean | undefined;
|
2345
|
+
awarders?: string[];
|
2346
|
+
bannedAtUtc?: number | undefined;
|
2347
|
+
bannedBy?: string | undefined;
|
2348
|
+
body?: string | undefined;
|
2349
|
+
bodyHtml?: string | undefined;
|
2350
|
+
canGild?: boolean | undefined;
|
2351
|
+
canModPost?: boolean | undefined;
|
2352
|
+
collapsed?: boolean | undefined;
|
2353
|
+
collapsedBecauseCrowdControl?: boolean | undefined;
|
2354
|
+
collapsedReason?: string | undefined;
|
2355
|
+
collapsedReasonCode?: string | undefined;
|
2356
|
+
commentType?: string | undefined;
|
2357
|
+
controversiality?: number | undefined;
|
2358
|
+
created?: number | undefined;
|
2359
|
+
createdUtc?: number | undefined;
|
2360
|
+
distinguished?: string | undefined;
|
2361
|
+
downs?: number | undefined;
|
2362
|
+
edited?: boolean | undefined;
|
2363
|
+
gilded?: number | undefined;
|
2364
|
+
gildings?: {
|
2365
|
+
typeUrl?: string;
|
2366
|
+
value?: Uint8Array;
|
2367
|
+
} | undefined;
|
2368
|
+
id?: string | undefined;
|
2369
|
+
ignoreReports?: boolean | undefined;
|
2370
|
+
isSubmitter?: boolean | undefined;
|
2371
|
+
likes?: boolean | undefined;
|
2372
|
+
linkId?: string | undefined;
|
2373
|
+
locked?: boolean | undefined;
|
2374
|
+
modNote?: string | undefined;
|
2375
|
+
modReasonBy?: string | undefined;
|
2376
|
+
modReasonTitle?: string | undefined;
|
2377
|
+
name?: string | undefined;
|
2378
|
+
noFollow?: boolean | undefined;
|
2379
|
+
numReports?: number | undefined;
|
2380
|
+
parentId?: string | undefined;
|
2381
|
+
permalink?: string | undefined;
|
2382
|
+
removalReason?: string | undefined;
|
2383
|
+
removed?: boolean | undefined;
|
2384
|
+
replies?: string | undefined;
|
2385
|
+
reportReasons?: any[] | undefined;
|
2386
|
+
rteMode?: string | undefined;
|
2387
|
+
saved?: boolean | undefined;
|
2388
|
+
score?: number | undefined;
|
2389
|
+
scoreHidden?: boolean | undefined;
|
2390
|
+
sendReplies?: boolean | undefined;
|
2391
|
+
spam?: boolean | undefined;
|
2392
|
+
stickied?: boolean | undefined;
|
2393
|
+
subreddit?: string | undefined;
|
2394
|
+
subredditId?: string | undefined;
|
2395
|
+
subredditNamePrefixed?: string | undefined;
|
2396
|
+
subredditType?: string | undefined;
|
2397
|
+
topAwardedType?: string | undefined;
|
2398
|
+
totalAwardsReceived?: number | undefined;
|
2399
|
+
treatmentTags?: {
|
2400
|
+
typeUrl?: string;
|
2401
|
+
value?: Uint8Array;
|
2402
|
+
}[];
|
2403
|
+
unrepliableReason?: string | undefined;
|
2404
|
+
ups?: number | undefined;
|
2405
|
+
depth?: number | undefined;
|
2406
|
+
linkTitle?: string | undefined;
|
2407
|
+
linkAuthor?: string | undefined;
|
2408
|
+
numComments?: number | undefined;
|
2409
|
+
over18?: boolean | undefined;
|
2410
|
+
linkPermalink?: string | undefined;
|
2411
|
+
quarantine?: boolean | undefined;
|
2412
|
+
linkUrl?: string | undefined;
|
2413
|
+
selftext?: string | undefined;
|
2414
|
+
selftextHtml?: string | undefined;
|
2415
|
+
thumbnail?: string | undefined;
|
2416
|
+
thumbnailWidth?: number | undefined;
|
2417
|
+
thumbnailHeight?: number | undefined;
|
2418
|
+
title?: string | undefined;
|
2419
|
+
url?: string | undefined;
|
2420
|
+
displayName?: string | undefined;
|
2421
|
+
modPermissions?: string[];
|
2422
|
+
count?: number | undefined;
|
2423
|
+
children?: any[] | undefined;
|
2424
|
+
replyList?: {
|
2425
|
+
kind?: string;
|
2426
|
+
data?: {
|
2427
|
+
after?: string | undefined;
|
2428
|
+
before?: string | undefined;
|
2429
|
+
children?: any[];
|
2430
|
+
dist?: number | undefined;
|
2431
|
+
} | undefined;
|
2432
|
+
} | undefined;
|
2433
|
+
hidden?: boolean | undefined;
|
2434
|
+
linkFlairBackgroundColor?: string | undefined;
|
2435
|
+
linkFlairCssClass?: string | undefined;
|
2436
|
+
linkFlairRichtext?: {
|
2437
|
+
e?: string | undefined;
|
2438
|
+
t?: string | undefined;
|
2439
|
+
a?: string | undefined;
|
2440
|
+
u?: string | undefined;
|
2441
|
+
}[];
|
2442
|
+
linkFlairTemplateId?: string | undefined;
|
2443
|
+
linkFlairText?: string | undefined;
|
2444
|
+
linkFlairTextColor?: string | undefined;
|
2445
|
+
linkFlairType?: string | undefined;
|
2446
|
+
secureMedia?: {
|
2447
|
+
type?: string;
|
2448
|
+
oembed?: {
|
2449
|
+
type?: string;
|
2450
|
+
title?: string | undefined;
|
2451
|
+
providerName?: string | undefined;
|
2452
|
+
providerUrl?: string | undefined;
|
2453
|
+
version?: string;
|
2454
|
+
thumbnailWidth?: number | undefined;
|
2455
|
+
thumbnailHeight?: number | undefined;
|
2456
|
+
thumbnailUrl?: string | undefined;
|
2457
|
+
html?: string;
|
2458
|
+
height?: number | undefined;
|
2459
|
+
width?: number | undefined;
|
2460
|
+
authorUrl?: string | undefined;
|
2461
|
+
authorName?: string | undefined;
|
2462
|
+
} | undefined;
|
2463
|
+
redditVideo?: {
|
2464
|
+
bitrateKbps?: number | undefined;
|
2465
|
+
dashUrl?: string | undefined;
|
2466
|
+
duration?: number | undefined;
|
2467
|
+
fallbackUrl?: string | undefined;
|
2468
|
+
height?: number | undefined;
|
2469
|
+
hlsUrl?: string | undefined;
|
2470
|
+
isGif?: boolean | undefined;
|
2471
|
+
scrubberMediaUrl?: string | undefined;
|
2472
|
+
transcodingStatus?: string | undefined;
|
2473
|
+
width?: number | undefined;
|
2474
|
+
} | undefined;
|
2475
|
+
} | undefined;
|
2476
|
+
spoiler?: boolean;
|
2477
|
+
modReports?: any[][];
|
2478
|
+
userReports?: any[][];
|
2479
|
+
removedBy?: string | undefined;
|
2480
|
+
removedByCategory?: string | undefined;
|
2481
|
+
} | undefined;
|
2482
|
+
}[];
|
2483
|
+
} | undefined;
|
2484
|
+
} | undefined;
|
2485
|
+
}): JsonRedditObjects;
|
2486
|
+
};
|
2487
|
+
readonly responseStream: false;
|
2488
|
+
readonly options: {};
|
2489
|
+
};
|
2149
2490
|
/**
|
2150
2491
|
* Set the "sticky" or "pinned" status of a Post
|
2151
2492
|
*
|
@@ -2276,12 +2617,7 @@ export declare const LinksAndCommentsDefinition: {
|
|
2276
2617
|
encode(_: Empty, writer?: _m0.Writer): _m0.Writer;
|
2277
2618
|
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): Empty;
|
2278
2619
|
fromJSON(_: any): Empty;
|
2279
|
-
toJSON(_: Empty): unknown;
|
2280
|
-
* Edit the body text of a Comment or Post
|
2281
|
-
* Note: `thing_id` refers to the Post or Comment being edited
|
2282
|
-
*
|
2283
|
-
* @see {@link https://www.reddit.com/dev/api#POST_api_editusertext}
|
2284
|
-
*/
|
2620
|
+
toJSON(_: Empty): unknown;
|
2285
2621
|
create(base?: {} | undefined): Empty;
|
2286
2622
|
fromPartial(_: {}): Empty;
|
2287
2623
|
};
|
@@ -2493,12 +2829,7 @@ export declare const LinksAndCommentsDefinition: {
|
|
2493
2829
|
encode(_: Empty, writer?: _m0.Writer): _m0.Writer;
|
2494
2830
|
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): Empty;
|
2495
2831
|
fromJSON(_: any): Empty;
|
2496
|
-
toJSON(_: Empty): unknown;
|
2497
|
-
* Edit the body text of a Comment or Post
|
2498
|
-
* Note: `thing_id` refers to the Post or Comment being edited
|
2499
|
-
*
|
2500
|
-
* @see {@link https://www.reddit.com/dev/api#POST_api_editusertext}
|
2501
|
-
*/
|
2832
|
+
toJSON(_: Empty): unknown;
|
2502
2833
|
create(base?: {} | undefined): Empty;
|
2503
2834
|
fromPartial(_: {}): Empty;
|
2504
2835
|
};
|
@@ -2537,12 +2868,7 @@ export declare const LinksAndCommentsDefinition: {
|
|
2537
2868
|
encode(_: Empty, writer?: _m0.Writer): _m0.Writer;
|
2538
2869
|
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): Empty;
|
2539
2870
|
fromJSON(_: any): Empty;
|
2540
|
-
toJSON(_: Empty): unknown;
|
2541
|
-
* Edit the body text of a Comment or Post
|
2542
|
-
* Note: `thing_id` refers to the Post or Comment being edited
|
2543
|
-
*
|
2544
|
-
* @see {@link https://www.reddit.com/dev/api#POST_api_editusertext}
|
2545
|
-
*/
|
2871
|
+
toJSON(_: Empty): unknown;
|
2546
2872
|
create(base?: {} | undefined): Empty;
|
2547
2873
|
fromPartial(_: {}): Empty;
|
2548
2874
|
};
|
@@ -2580,12 +2906,7 @@ export declare const LinksAndCommentsDefinition: {
|
|
2580
2906
|
encode(_: Empty, writer?: _m0.Writer): _m0.Writer;
|
2581
2907
|
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): Empty;
|
2582
2908
|
fromJSON(_: any): Empty;
|
2583
|
-
toJSON(_: Empty): unknown;
|
2584
|
-
* Edit the body text of a Comment or Post
|
2585
|
-
* Note: `thing_id` refers to the Post or Comment being edited
|
2586
|
-
*
|
2587
|
-
* @see {@link https://www.reddit.com/dev/api#POST_api_editusertext}
|
2588
|
-
*/
|
2909
|
+
toJSON(_: Empty): unknown;
|
2589
2910
|
create(base?: {} | undefined): Empty;
|
2590
2911
|
fromPartial(_: {}): Empty;
|
2591
2912
|
};
|
@@ -2623,12 +2944,7 @@ export declare const LinksAndCommentsDefinition: {
|
|
2623
2944
|
encode(_: Empty, writer?: _m0.Writer): _m0.Writer;
|
2624
2945
|
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): Empty;
|
2625
2946
|
fromJSON(_: any): Empty;
|
2626
|
-
toJSON(_: Empty): unknown;
|
2627
|
-
* Edit the body text of a Comment or Post
|
2628
|
-
* Note: `thing_id` refers to the Post or Comment being edited
|
2629
|
-
*
|
2630
|
-
* @see {@link https://www.reddit.com/dev/api#POST_api_editusertext}
|
2631
|
-
*/
|
2947
|
+
toJSON(_: Empty): unknown;
|
2632
2948
|
create(base?: {} | undefined): Empty;
|
2633
2949
|
fromPartial(_: {}): Empty;
|
2634
2950
|
};
|
@@ -2666,12 +2982,7 @@ export declare const LinksAndCommentsDefinition: {
|
|
2666
2982
|
encode(_: Empty, writer?: _m0.Writer): _m0.Writer;
|
2667
2983
|
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): Empty;
|
2668
2984
|
fromJSON(_: any): Empty;
|
2669
|
-
toJSON(_: Empty): unknown;
|
2670
|
-
* Edit the body text of a Comment or Post
|
2671
|
-
* Note: `thing_id` refers to the Post or Comment being edited
|
2672
|
-
*
|
2673
|
-
* @see {@link https://www.reddit.com/dev/api#POST_api_editusertext}
|
2674
|
-
*/
|
2985
|
+
toJSON(_: Empty): unknown;
|
2675
2986
|
create(base?: {} | undefined): Empty;
|
2676
2987
|
fromPartial(_: {}): Empty;
|
2677
2988
|
};
|
@@ -2710,12 +3021,7 @@ export declare const LinksAndCommentsDefinition: {
|
|
2710
3021
|
encode(_: Empty, writer?: _m0.Writer): _m0.Writer;
|
2711
3022
|
decode(input: _m0.Reader | Uint8Array, length?: number | undefined): Empty;
|
2712
3023
|
fromJSON(_: any): Empty;
|
2713
|
-
toJSON(_: Empty): unknown;
|
2714
|
-
* Edit the body text of a Comment or Post
|
2715
|
-
* Note: `thing_id` refers to the Post or Comment being edited
|
2716
|
-
*
|
2717
|
-
* @see {@link https://www.reddit.com/dev/api#POST_api_editusertext}
|
2718
|
-
*/
|
3024
|
+
toJSON(_: Empty): unknown;
|
2719
3025
|
create(base?: {} | undefined): Empty;
|
2720
3026
|
fromPartial(_: {}): Empty;
|
2721
3027
|
};
|