@devvit/public-api 0.11.18-next-2025-06-26-14-14-16-da1ef2cdb.0 → 0.11.18-next-2025-06-26-16-57-57-753b2eaee.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/apis/reddit/models/User.d.ts +21 -0
- package/apis/reddit/models/User.d.ts.map +1 -1
- package/meta.json +6 -6
- package/meta.min.json +2 -2
- package/package.json +8 -8
- package/public-api.d.ts +84 -0
- package/public-api.iife.js +50 -5
- package/public-api.min.js.map +2 -2
|
@@ -31,12 +31,33 @@ export type RemoveRelationshipOptions = {
|
|
|
31
31
|
type: RelationshipType | 'moderator';
|
|
32
32
|
};
|
|
33
33
|
export type BanUserOptions = {
|
|
34
|
+
/**
|
|
35
|
+
* The username of the user you want to ban.
|
|
36
|
+
*/
|
|
34
37
|
username: string;
|
|
38
|
+
/**
|
|
39
|
+
* The name of the subreddit you want to ban the user from.
|
|
40
|
+
*/
|
|
35
41
|
subredditName: string;
|
|
42
|
+
/**
|
|
43
|
+
* The id of the post or comment you want to cite as rule breaking.
|
|
44
|
+
*/
|
|
36
45
|
context?: string;
|
|
46
|
+
/**
|
|
47
|
+
* The message to display to the user. (The "Note from the moderators:" in the ban message modmail.)
|
|
48
|
+
*/
|
|
37
49
|
message?: string;
|
|
50
|
+
/**
|
|
51
|
+
* The reason for the ban. This shows up in the Banned Users Menu.
|
|
52
|
+
*/
|
|
38
53
|
reason?: string;
|
|
54
|
+
/**
|
|
55
|
+
* The duration of the ban, in days. Use 0 for permanent; otherwise, it must be in the range of 1 to 999.
|
|
56
|
+
*/
|
|
39
57
|
duration?: number;
|
|
58
|
+
/**
|
|
59
|
+
* The reason to show in the modlog, and the UI's user notes. This isn't show to the user, just other moderators.
|
|
60
|
+
*/
|
|
40
61
|
note?: string;
|
|
41
62
|
};
|
|
42
63
|
export type BanWikiContributorOptions = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"User.d.ts","source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;OASG;IACH,WAAW,CAAC,OAAO,EAAE,IAAI,CAAC,wBAAwB,EAAE,UAAU,CAAC,GAAG,OAAO,CAAC,OAAO,CAAC;IAUlF;;;;;;;;;OASG;IACH,QAAQ,CAAC,OAAO,EAAE,IAAI,CAAC,qBAAqB,EAAE,UAAU,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC;IAUzE;;;;;;;;;;;;OAYG;IACG,uBAAuB,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,SAAS,GAAG,SAAS,CAAC;IAWhF,eAAe,IAAI,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC;IAI9C;;;;;;;;OAQG;IACG,cAAc,IAAI,OAAO,CAAC,cAAc,EAAE,CAAC;CA4LlD"}
|
package/meta.json
CHANGED
|
@@ -283,7 +283,7 @@
|
|
|
283
283
|
"format": "esm"
|
|
284
284
|
},
|
|
285
285
|
"../protos/dist/types/devvit/reddit/v2alpha/commentv2.js": {
|
|
286
|
-
"bytes":
|
|
286
|
+
"bytes": 13968,
|
|
287
287
|
"imports": [
|
|
288
288
|
{
|
|
289
289
|
"path": "../../node_modules/long/src/long.js",
|
|
@@ -320,7 +320,7 @@
|
|
|
320
320
|
"format": "esm"
|
|
321
321
|
},
|
|
322
322
|
"../protos/dist/types/devvit/reddit/v2alpha/postv2.js": {
|
|
323
|
-
"bytes":
|
|
323
|
+
"bytes": 50849,
|
|
324
324
|
"imports": [
|
|
325
325
|
{
|
|
326
326
|
"path": "../../node_modules/long/src/long.js",
|
|
@@ -9201,7 +9201,7 @@
|
|
|
9201
9201
|
"format": "esm"
|
|
9202
9202
|
},
|
|
9203
9203
|
"src/apis/reddit/models/User.ts": {
|
|
9204
|
-
"bytes":
|
|
9204
|
+
"bytes": 20397,
|
|
9205
9205
|
"imports": [
|
|
9206
9206
|
{
|
|
9207
9207
|
"path": "../shared-types/dist/Header.js",
|
|
@@ -9883,10 +9883,10 @@
|
|
|
9883
9883
|
"bytesInOutput": 2580
|
|
9884
9884
|
},
|
|
9885
9885
|
"../protos/dist/types/devvit/reddit/v2alpha/commentv2.js": {
|
|
9886
|
-
"bytesInOutput":
|
|
9886
|
+
"bytesInOutput": 12380
|
|
9887
9887
|
},
|
|
9888
9888
|
"../protos/dist/types/devvit/reddit/v2alpha/postv2.js": {
|
|
9889
|
-
"bytesInOutput":
|
|
9889
|
+
"bytesInOutput": 45233
|
|
9890
9890
|
},
|
|
9891
9891
|
"../protos/dist/types/devvit/reddit/v2alpha/flair.js": {
|
|
9892
9892
|
"bytesInOutput": 8841
|
|
@@ -10450,7 +10450,7 @@
|
|
|
10450
10450
|
"bytesInOutput": 4418
|
|
10451
10451
|
}
|
|
10452
10452
|
},
|
|
10453
|
-
"bytes":
|
|
10453
|
+
"bytes": 12583094
|
|
10454
10454
|
}
|
|
10455
10455
|
}
|
|
10456
10456
|
}
|
package/meta.min.json
CHANGED
|
@@ -1979,7 +1979,7 @@
|
|
|
1979
1979
|
"format": "esm"
|
|
1980
1980
|
},
|
|
1981
1981
|
"src/apis/reddit/models/User.ts": {
|
|
1982
|
-
"bytes":
|
|
1982
|
+
"bytes": 20397,
|
|
1983
1983
|
"imports": [
|
|
1984
1984
|
{
|
|
1985
1985
|
"path": "../shared-types/dist/Header.js",
|
|
@@ -2557,7 +2557,7 @@
|
|
|
2557
2557
|
"imports": [],
|
|
2558
2558
|
"exports": [],
|
|
2559
2559
|
"inputs": {},
|
|
2560
|
-
"bytes":
|
|
2560
|
+
"bytes": 1074702
|
|
2561
2561
|
},
|
|
2562
2562
|
"dist/public-api.min.js": {
|
|
2563
2563
|
"imports": [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@devvit/public-api",
|
|
3
|
-
"version": "0.11.18-next-2025-06-26-
|
|
3
|
+
"version": "0.11.18-next-2025-06-26-16-57-57-753b2eaee.0",
|
|
4
4
|
"license": "BSD-3-Clause",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -30,18 +30,18 @@
|
|
|
30
30
|
},
|
|
31
31
|
"types": "./index.d.ts",
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@devvit/metrics": "0.11.18-next-2025-06-26-
|
|
34
|
-
"@devvit/protos": "0.11.18-next-2025-06-26-
|
|
35
|
-
"@devvit/shared": "0.11.18-next-2025-06-26-
|
|
36
|
-
"@devvit/shared-types": "0.11.18-next-2025-06-26-
|
|
33
|
+
"@devvit/metrics": "0.11.18-next-2025-06-26-16-57-57-753b2eaee.0",
|
|
34
|
+
"@devvit/protos": "0.11.18-next-2025-06-26-16-57-57-753b2eaee.0",
|
|
35
|
+
"@devvit/shared": "0.11.18-next-2025-06-26-16-57-57-753b2eaee.0",
|
|
36
|
+
"@devvit/shared-types": "0.11.18-next-2025-06-26-16-57-57-753b2eaee.0",
|
|
37
37
|
"base64-js": "1.5.1",
|
|
38
38
|
"clone-deep": "4.0.1",
|
|
39
39
|
"moderndash": "4.0.0"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@ampproject/filesize": "4.3.0",
|
|
43
|
-
"@devvit/repo-tools": "0.11.18-next-2025-06-26-
|
|
44
|
-
"@devvit/tsconfig": "0.11.18-next-2025-06-26-
|
|
43
|
+
"@devvit/repo-tools": "0.11.18-next-2025-06-26-16-57-57-753b2eaee.0",
|
|
44
|
+
"@devvit/tsconfig": "0.11.18-next-2025-06-26-16-57-57-753b2eaee.0",
|
|
45
45
|
"@microsoft/api-extractor": "7.41.0",
|
|
46
46
|
"@reddit/faceplate-ui": "18.0.1",
|
|
47
47
|
"@types/clone-deep": "4.0.1",
|
|
@@ -62,5 +62,5 @@
|
|
|
62
62
|
}
|
|
63
63
|
},
|
|
64
64
|
"source": "./src/index.ts",
|
|
65
|
-
"gitHead": "
|
|
65
|
+
"gitHead": "85d0cf724f5f9cb6a02c37acf7ed938d6b8da9ba"
|
|
66
66
|
}
|
package/public-api.d.ts
CHANGED
|
@@ -1485,12 +1485,33 @@ declare enum BanInfo_BanInfoAction {
|
|
|
1485
1485
|
export declare type BannerHeight = 'small' | 'medium' | 'large';
|
|
1486
1486
|
|
|
1487
1487
|
export declare type BanUserOptions = {
|
|
1488
|
+
/**
|
|
1489
|
+
* The username of the user you want to ban.
|
|
1490
|
+
*/
|
|
1488
1491
|
username: string;
|
|
1492
|
+
/**
|
|
1493
|
+
* The name of the subreddit you want to ban the user from.
|
|
1494
|
+
*/
|
|
1489
1495
|
subredditName: string;
|
|
1496
|
+
/**
|
|
1497
|
+
* The id of the post or comment you want to cite as rule breaking.
|
|
1498
|
+
*/
|
|
1490
1499
|
context?: string;
|
|
1500
|
+
/**
|
|
1501
|
+
* The message to display to the user. (The "Note from the moderators:" in the ban message modmail.)
|
|
1502
|
+
*/
|
|
1491
1503
|
message?: string;
|
|
1504
|
+
/**
|
|
1505
|
+
* The reason for the ban. This shows up in the Banned Users Menu.
|
|
1506
|
+
*/
|
|
1492
1507
|
reason?: string;
|
|
1508
|
+
/**
|
|
1509
|
+
* The duration of the ban, in days. Use 0 for permanent; otherwise, it must be in the range of 1 to 999.
|
|
1510
|
+
*/
|
|
1493
1511
|
duration?: number;
|
|
1512
|
+
/**
|
|
1513
|
+
* The reason to show in the modlog, and the UI's user notes. This isn't show to the user, just other moderators.
|
|
1514
|
+
*/
|
|
1494
1515
|
note?: string;
|
|
1495
1516
|
};
|
|
1496
1517
|
|
|
@@ -3512,6 +3533,7 @@ declare interface CommentV2 {
|
|
|
3512
3533
|
postId: string;
|
|
3513
3534
|
subredditId: string;
|
|
3514
3535
|
elementTypes: string[];
|
|
3536
|
+
mediaUrls: string[];
|
|
3515
3537
|
}
|
|
3516
3538
|
|
|
3517
3539
|
declare const CommentV2: {
|
|
@@ -30722,6 +30744,7 @@ declare const OnAutomoderatorFilterCommentDefinition_2: {
|
|
|
30722
30744
|
postId?: string;
|
|
30723
30745
|
subredditId?: string;
|
|
30724
30746
|
elementTypes?: string[];
|
|
30747
|
+
mediaUrls?: string[];
|
|
30725
30748
|
} | undefined;
|
|
30726
30749
|
removedAt?: Date | undefined;
|
|
30727
30750
|
reason?: string;
|
|
@@ -30761,6 +30784,7 @@ declare const OnAutomoderatorFilterCommentDefinition_2: {
|
|
|
30761
30784
|
postId?: string;
|
|
30762
30785
|
subredditId?: string;
|
|
30763
30786
|
elementTypes?: string[];
|
|
30787
|
+
mediaUrls?: string[];
|
|
30764
30788
|
} | undefined;
|
|
30765
30789
|
removedAt?: Date | undefined;
|
|
30766
30790
|
reason?: string;
|
|
@@ -30904,6 +30928,8 @@ declare const OnAutomoderatorFilterPostDefinition_2: {
|
|
|
30904
30928
|
unlisted?: boolean;
|
|
30905
30929
|
galleryImages?: string[];
|
|
30906
30930
|
isImage?: boolean;
|
|
30931
|
+
mediaUrls?: string[];
|
|
30932
|
+
isClubContent?: boolean;
|
|
30907
30933
|
} | undefined;
|
|
30908
30934
|
removedAt?: Date | undefined;
|
|
30909
30935
|
reason?: string;
|
|
@@ -31011,6 +31037,8 @@ declare const OnAutomoderatorFilterPostDefinition_2: {
|
|
|
31011
31037
|
unlisted?: boolean;
|
|
31012
31038
|
galleryImages?: string[];
|
|
31013
31039
|
isImage?: boolean;
|
|
31040
|
+
mediaUrls?: string[];
|
|
31041
|
+
isClubContent?: boolean;
|
|
31014
31042
|
} | undefined;
|
|
31015
31043
|
removedAt?: Date | undefined;
|
|
31016
31044
|
reason?: string;
|
|
@@ -31081,6 +31109,7 @@ declare const OnCommentCreateDefinition: {
|
|
|
31081
31109
|
postId?: string;
|
|
31082
31110
|
subredditId?: string;
|
|
31083
31111
|
elementTypes?: string[];
|
|
31112
|
+
mediaUrls?: string[];
|
|
31084
31113
|
} | undefined;
|
|
31085
31114
|
author?: {
|
|
31086
31115
|
id?: string;
|
|
@@ -31194,6 +31223,8 @@ declare const OnCommentCreateDefinition: {
|
|
|
31194
31223
|
unlisted?: boolean;
|
|
31195
31224
|
galleryImages?: string[];
|
|
31196
31225
|
isImage?: boolean;
|
|
31226
|
+
mediaUrls?: string[];
|
|
31227
|
+
isClubContent?: boolean;
|
|
31197
31228
|
} | undefined;
|
|
31198
31229
|
subreddit?: {
|
|
31199
31230
|
id?: string;
|
|
@@ -31230,6 +31261,7 @@ declare const OnCommentCreateDefinition: {
|
|
|
31230
31261
|
postId?: string;
|
|
31231
31262
|
subredditId?: string;
|
|
31232
31263
|
elementTypes?: string[];
|
|
31264
|
+
mediaUrls?: string[];
|
|
31233
31265
|
} | undefined;
|
|
31234
31266
|
author?: {
|
|
31235
31267
|
id?: string;
|
|
@@ -31343,6 +31375,8 @@ declare const OnCommentCreateDefinition: {
|
|
|
31343
31375
|
unlisted?: boolean;
|
|
31344
31376
|
galleryImages?: string[];
|
|
31345
31377
|
isImage?: boolean;
|
|
31378
|
+
mediaUrls?: string[];
|
|
31379
|
+
isClubContent?: boolean;
|
|
31346
31380
|
} | undefined;
|
|
31347
31381
|
subreddit?: {
|
|
31348
31382
|
id?: string;
|
|
@@ -31529,6 +31563,7 @@ declare const OnCommentReportDefinition: {
|
|
|
31529
31563
|
postId?: string;
|
|
31530
31564
|
subredditId?: string;
|
|
31531
31565
|
elementTypes?: string[];
|
|
31566
|
+
mediaUrls?: string[];
|
|
31532
31567
|
} | undefined;
|
|
31533
31568
|
subreddit?: {
|
|
31534
31569
|
id?: string;
|
|
@@ -31566,6 +31601,7 @@ declare const OnCommentReportDefinition: {
|
|
|
31566
31601
|
postId?: string;
|
|
31567
31602
|
subredditId?: string;
|
|
31568
31603
|
elementTypes?: string[];
|
|
31604
|
+
mediaUrls?: string[];
|
|
31569
31605
|
} | undefined;
|
|
31570
31606
|
subreddit?: {
|
|
31571
31607
|
id?: string;
|
|
@@ -31634,6 +31670,7 @@ declare const OnCommentSubmitDefinition: {
|
|
|
31634
31670
|
postId?: string;
|
|
31635
31671
|
subredditId?: string;
|
|
31636
31672
|
elementTypes?: string[];
|
|
31673
|
+
mediaUrls?: string[];
|
|
31637
31674
|
} | undefined;
|
|
31638
31675
|
author?: {
|
|
31639
31676
|
id?: string;
|
|
@@ -31747,6 +31784,8 @@ declare const OnCommentSubmitDefinition: {
|
|
|
31747
31784
|
unlisted?: boolean;
|
|
31748
31785
|
galleryImages?: string[];
|
|
31749
31786
|
isImage?: boolean;
|
|
31787
|
+
mediaUrls?: string[];
|
|
31788
|
+
isClubContent?: boolean;
|
|
31750
31789
|
} | undefined;
|
|
31751
31790
|
subreddit?: {
|
|
31752
31791
|
id?: string;
|
|
@@ -31783,6 +31822,7 @@ declare const OnCommentSubmitDefinition: {
|
|
|
31783
31822
|
postId?: string;
|
|
31784
31823
|
subredditId?: string;
|
|
31785
31824
|
elementTypes?: string[];
|
|
31825
|
+
mediaUrls?: string[];
|
|
31786
31826
|
} | undefined;
|
|
31787
31827
|
author?: {
|
|
31788
31828
|
id?: string;
|
|
@@ -31896,6 +31936,8 @@ declare const OnCommentSubmitDefinition: {
|
|
|
31896
31936
|
unlisted?: boolean;
|
|
31897
31937
|
galleryImages?: string[];
|
|
31898
31938
|
isImage?: boolean;
|
|
31939
|
+
mediaUrls?: string[];
|
|
31940
|
+
isClubContent?: boolean;
|
|
31899
31941
|
} | undefined;
|
|
31900
31942
|
subreddit?: {
|
|
31901
31943
|
id?: string;
|
|
@@ -31963,6 +32005,7 @@ declare const OnCommentUpdateDefinition: {
|
|
|
31963
32005
|
postId?: string;
|
|
31964
32006
|
subredditId?: string;
|
|
31965
32007
|
elementTypes?: string[];
|
|
32008
|
+
mediaUrls?: string[];
|
|
31966
32009
|
} | undefined;
|
|
31967
32010
|
author?: {
|
|
31968
32011
|
id?: string;
|
|
@@ -32076,6 +32119,8 @@ declare const OnCommentUpdateDefinition: {
|
|
|
32076
32119
|
unlisted?: boolean;
|
|
32077
32120
|
galleryImages?: string[];
|
|
32078
32121
|
isImage?: boolean;
|
|
32122
|
+
mediaUrls?: string[];
|
|
32123
|
+
isClubContent?: boolean;
|
|
32079
32124
|
} | undefined;
|
|
32080
32125
|
previousBody?: string;
|
|
32081
32126
|
subreddit?: {
|
|
@@ -32113,6 +32158,7 @@ declare const OnCommentUpdateDefinition: {
|
|
|
32113
32158
|
postId?: string;
|
|
32114
32159
|
subredditId?: string;
|
|
32115
32160
|
elementTypes?: string[];
|
|
32161
|
+
mediaUrls?: string[];
|
|
32116
32162
|
} | undefined;
|
|
32117
32163
|
author?: {
|
|
32118
32164
|
id?: string;
|
|
@@ -32226,6 +32272,8 @@ declare const OnCommentUpdateDefinition: {
|
|
|
32226
32272
|
unlisted?: boolean;
|
|
32227
32273
|
galleryImages?: string[];
|
|
32228
32274
|
isImage?: boolean;
|
|
32275
|
+
mediaUrls?: string[];
|
|
32276
|
+
isClubContent?: boolean;
|
|
32229
32277
|
} | undefined;
|
|
32230
32278
|
previousBody?: string;
|
|
32231
32279
|
subreddit?: {
|
|
@@ -32354,6 +32402,7 @@ declare const OnModActionDefinition: {
|
|
|
32354
32402
|
postId?: string;
|
|
32355
32403
|
subredditId?: string;
|
|
32356
32404
|
elementTypes?: string[];
|
|
32405
|
+
mediaUrls?: string[];
|
|
32357
32406
|
} | undefined;
|
|
32358
32407
|
targetPost?: {
|
|
32359
32408
|
id?: string;
|
|
@@ -32444,6 +32493,8 @@ declare const OnModActionDefinition: {
|
|
|
32444
32493
|
unlisted?: boolean;
|
|
32445
32494
|
galleryImages?: string[];
|
|
32446
32495
|
isImage?: boolean;
|
|
32496
|
+
mediaUrls?: string[];
|
|
32497
|
+
isClubContent?: boolean;
|
|
32447
32498
|
} | undefined;
|
|
32448
32499
|
}): ModAction_2;
|
|
32449
32500
|
fromPartial(object: {
|
|
@@ -32528,6 +32579,7 @@ declare const OnModActionDefinition: {
|
|
|
32528
32579
|
postId?: string;
|
|
32529
32580
|
subredditId?: string;
|
|
32530
32581
|
elementTypes?: string[];
|
|
32582
|
+
mediaUrls?: string[];
|
|
32531
32583
|
} | undefined;
|
|
32532
32584
|
targetPost?: {
|
|
32533
32585
|
id?: string;
|
|
@@ -32618,6 +32670,8 @@ declare const OnModActionDefinition: {
|
|
|
32618
32670
|
unlisted?: boolean;
|
|
32619
32671
|
galleryImages?: string[];
|
|
32620
32672
|
isImage?: boolean;
|
|
32673
|
+
mediaUrls?: string[];
|
|
32674
|
+
isClubContent?: boolean;
|
|
32621
32675
|
} | undefined;
|
|
32622
32676
|
}): ModAction_2;
|
|
32623
32677
|
};
|
|
@@ -32884,6 +32938,8 @@ declare const OnPostCreateDefinition: {
|
|
|
32884
32938
|
unlisted?: boolean;
|
|
32885
32939
|
galleryImages?: string[];
|
|
32886
32940
|
isImage?: boolean;
|
|
32941
|
+
mediaUrls?: string[];
|
|
32942
|
+
isClubContent?: boolean;
|
|
32887
32943
|
} | undefined;
|
|
32888
32944
|
author?: {
|
|
32889
32945
|
id?: string;
|
|
@@ -33011,6 +33067,8 @@ declare const OnPostCreateDefinition: {
|
|
|
33011
33067
|
unlisted?: boolean;
|
|
33012
33068
|
galleryImages?: string[];
|
|
33013
33069
|
isImage?: boolean;
|
|
33070
|
+
mediaUrls?: string[];
|
|
33071
|
+
isClubContent?: boolean;
|
|
33014
33072
|
} | undefined;
|
|
33015
33073
|
author?: {
|
|
33016
33074
|
id?: string;
|
|
@@ -33284,6 +33342,8 @@ declare const OnPostFlairUpdateDefinition: {
|
|
|
33284
33342
|
unlisted?: boolean;
|
|
33285
33343
|
galleryImages?: string[];
|
|
33286
33344
|
isImage?: boolean;
|
|
33345
|
+
mediaUrls?: string[];
|
|
33346
|
+
isClubContent?: boolean;
|
|
33287
33347
|
} | undefined;
|
|
33288
33348
|
author?: {
|
|
33289
33349
|
id?: string;
|
|
@@ -33411,6 +33471,8 @@ declare const OnPostFlairUpdateDefinition: {
|
|
|
33411
33471
|
unlisted?: boolean;
|
|
33412
33472
|
galleryImages?: string[];
|
|
33413
33473
|
isImage?: boolean;
|
|
33474
|
+
mediaUrls?: string[];
|
|
33475
|
+
isClubContent?: boolean;
|
|
33414
33476
|
} | undefined;
|
|
33415
33477
|
author?: {
|
|
33416
33478
|
id?: string;
|
|
@@ -33569,6 +33631,8 @@ declare const OnPostNsfwUpdateDefinition: {
|
|
|
33569
33631
|
unlisted?: boolean;
|
|
33570
33632
|
galleryImages?: string[];
|
|
33571
33633
|
isImage?: boolean;
|
|
33634
|
+
mediaUrls?: string[];
|
|
33635
|
+
isClubContent?: boolean;
|
|
33572
33636
|
} | undefined;
|
|
33573
33637
|
author?: {
|
|
33574
33638
|
id?: string;
|
|
@@ -33697,6 +33761,8 @@ declare const OnPostNsfwUpdateDefinition: {
|
|
|
33697
33761
|
unlisted?: boolean;
|
|
33698
33762
|
galleryImages?: string[];
|
|
33699
33763
|
isImage?: boolean;
|
|
33764
|
+
mediaUrls?: string[];
|
|
33765
|
+
isClubContent?: boolean;
|
|
33700
33766
|
} | undefined;
|
|
33701
33767
|
author?: {
|
|
33702
33768
|
id?: string;
|
|
@@ -33856,6 +33922,8 @@ declare const OnPostReportDefinition: {
|
|
|
33856
33922
|
unlisted?: boolean;
|
|
33857
33923
|
galleryImages?: string[];
|
|
33858
33924
|
isImage?: boolean;
|
|
33925
|
+
mediaUrls?: string[];
|
|
33926
|
+
isClubContent?: boolean;
|
|
33859
33927
|
} | undefined;
|
|
33860
33928
|
subreddit?: {
|
|
33861
33929
|
id?: string;
|
|
@@ -33961,6 +34029,8 @@ declare const OnPostReportDefinition: {
|
|
|
33961
34029
|
unlisted?: boolean;
|
|
33962
34030
|
galleryImages?: string[];
|
|
33963
34031
|
isImage?: boolean;
|
|
34032
|
+
mediaUrls?: string[];
|
|
34033
|
+
isClubContent?: boolean;
|
|
33964
34034
|
} | undefined;
|
|
33965
34035
|
subreddit?: {
|
|
33966
34036
|
id?: string;
|
|
@@ -34097,6 +34167,8 @@ declare const OnPostSpoilerUpdateDefinition: {
|
|
|
34097
34167
|
unlisted?: boolean;
|
|
34098
34168
|
galleryImages?: string[];
|
|
34099
34169
|
isImage?: boolean;
|
|
34170
|
+
mediaUrls?: string[];
|
|
34171
|
+
isClubContent?: boolean;
|
|
34100
34172
|
} | undefined;
|
|
34101
34173
|
author?: {
|
|
34102
34174
|
id?: string;
|
|
@@ -34225,6 +34297,8 @@ declare const OnPostSpoilerUpdateDefinition: {
|
|
|
34225
34297
|
unlisted?: boolean;
|
|
34226
34298
|
galleryImages?: string[];
|
|
34227
34299
|
isImage?: boolean;
|
|
34300
|
+
mediaUrls?: string[];
|
|
34301
|
+
isClubContent?: boolean;
|
|
34228
34302
|
} | undefined;
|
|
34229
34303
|
author?: {
|
|
34230
34304
|
id?: string;
|
|
@@ -34384,6 +34458,8 @@ declare const OnPostSubmitDefinition: {
|
|
|
34384
34458
|
unlisted?: boolean;
|
|
34385
34459
|
galleryImages?: string[];
|
|
34386
34460
|
isImage?: boolean;
|
|
34461
|
+
mediaUrls?: string[];
|
|
34462
|
+
isClubContent?: boolean;
|
|
34387
34463
|
} | undefined;
|
|
34388
34464
|
author?: {
|
|
34389
34465
|
id?: string;
|
|
@@ -34511,6 +34587,8 @@ declare const OnPostSubmitDefinition: {
|
|
|
34511
34587
|
unlisted?: boolean;
|
|
34512
34588
|
galleryImages?: string[];
|
|
34513
34589
|
isImage?: boolean;
|
|
34590
|
+
mediaUrls?: string[];
|
|
34591
|
+
isClubContent?: boolean;
|
|
34514
34592
|
} | undefined;
|
|
34515
34593
|
author?: {
|
|
34516
34594
|
id?: string;
|
|
@@ -34669,6 +34747,8 @@ declare const OnPostUpdateDefinition: {
|
|
|
34669
34747
|
unlisted?: boolean;
|
|
34670
34748
|
galleryImages?: string[];
|
|
34671
34749
|
isImage?: boolean;
|
|
34750
|
+
mediaUrls?: string[];
|
|
34751
|
+
isClubContent?: boolean;
|
|
34672
34752
|
} | undefined;
|
|
34673
34753
|
author?: {
|
|
34674
34754
|
id?: string;
|
|
@@ -34797,6 +34877,8 @@ declare const OnPostUpdateDefinition: {
|
|
|
34797
34877
|
unlisted?: boolean;
|
|
34798
34878
|
galleryImages?: string[];
|
|
34799
34879
|
isImage?: boolean;
|
|
34880
|
+
mediaUrls?: string[];
|
|
34881
|
+
isClubContent?: boolean;
|
|
34800
34882
|
} | undefined;
|
|
34801
34883
|
author?: {
|
|
34802
34884
|
id?: string;
|
|
@@ -35775,6 +35857,8 @@ declare interface PostV2 {
|
|
|
35775
35857
|
galleryImages: string[];
|
|
35776
35858
|
/** Indicates if the post contains a single image rather than a gallery of multiple images, which is indicated by the is_gallery field. */
|
|
35777
35859
|
isImage: boolean;
|
|
35860
|
+
mediaUrls: string[];
|
|
35861
|
+
isClubContent: boolean;
|
|
35778
35862
|
}
|
|
35779
35863
|
|
|
35780
35864
|
declare const PostV2: {
|