@devvit/public-api 0.12.2-next-2025-10-29-22-09-18-2b8ae2b23.0 → 0.12.2-next-2025-10-29-22-34-10-21b07c31a.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.
@@ -9,15 +9,53 @@ export type ModActionTarget = {
9
9
  title?: string;
10
10
  };
11
11
  export interface ModAction {
12
+ /**
13
+ * A string like `"ModAction_1b1af634-5b87-11f0-a4f1-4ddd27626cc4"`
14
+ * identifying the ModAction.
15
+ */
12
16
  id: string;
17
+ /**
18
+ * The type of the action. Think of what happened.
19
+ */
13
20
  type: ModActionType;
21
+ /**
22
+ * The username of the moderator.
23
+ */
14
24
  moderatorName: string;
25
+ /**
26
+ * The t2_ id of the moderator.
27
+ */
15
28
  moderatorId: string;
29
+ /**
30
+ * When the action took place.
31
+ */
16
32
  createdAt: Date;
33
+ /**
34
+ * The name of the subreddit the action took place.
35
+ */
17
36
  subredditName: string;
37
+ /**
38
+ * The ID of the subreddit the action took place.
39
+ */
18
40
  subredditId: string;
41
+ /**
42
+ * The string "Page modmail-stats edited: Daily update of the
43
+ * modmail-stats (Wed Jul 02 2025 08:05:47 UTC+0200 (Europe/Amsterdam))" is
44
+ * made up of `description` and `details`. The "Page modmail-stats edited" is
45
+ * the "description".
46
+ */
19
47
  description?: string;
48
+ /**
49
+ * The string "Page modmail-stats edited: Daily update of the
50
+ * modmail-stats (Wed Jul 02 2025 08:05:47 UTC+0200 (Europe/Amsterdam))" is
51
+ * made up of `description` and `details`. The "Daily update of the
52
+ * modmail-stats (Wed Jul 02 2025 08:05:47 UTC+0200 (Europe/Amsterdam))" is
53
+ * the "details".
54
+ */
20
55
  details?: string;
56
+ /**
57
+ * Some context of the affected item of the modaction.
58
+ */
21
59
  target?: ModActionTarget;
22
60
  }
23
61
  export type ModActionType = 'banuser' | 'unbanuser' | 'spamlink' | 'removelink' | 'approvelink' | 'spamcomment' | 'removecomment' | 'approvecomment' | 'addmoderator' | 'showcomment' | 'invitemoderator' | 'uninvitemoderator' | 'acceptmoderatorinvite' | 'removemoderator' | 'addcontributor' | 'removecontributor' | 'editsettings' | 'editflair' | 'distinguish' | 'marknsfw' | 'wikibanned' | 'wikicontributor' | 'wikiunbanned' | 'wikipagelisted' | 'removewikicontributor' | 'wikirevise' | 'wikipermlevel' | 'ignorereports' | 'unignorereports' | 'setpermissions' | 'setsuggestedsort' | 'sticky' | 'unsticky' | 'setcontestmode' | 'unsetcontestmode' | 'lock' | 'unlock' | 'muteuser' | 'unmuteuser' | 'createrule' | 'editrule' | 'reorderrules' | 'deleterule' | 'spoiler' | 'unspoiler' | 'modmail_enrollment' | 'community_styling' | 'community_widgets' | 'markoriginalcontent' | 'collections' | 'events' | 'create_award' | 'disable_award' | 'delete_award' | 'enable_award' | 'mod_award_given' | 'hidden_award' | 'add_community_topics' | 'remove_community_topics' | 'create_scheduled_post' | 'edit_scheduled_post' | 'delete_scheduled_post' | 'submit_scheduled_post' | 'edit_post_requirements' | 'invitesubscriber' | 'submit_content_rating_survey' | 'adjust_post_crowd_control_level' | 'enable_post_crowd_control_filter' | 'disable_post_crowd_control_filter' | 'deleteoverriddenclassification' | 'overrideclassification' | 'reordermoderators' | 'snoozereports' | 'unsnoozereports' | 'addnote' | 'deletenote' | 'addremovalreason' | 'createremovalreason' | 'updateremovalreason' | 'deleteremovalreason' | 'reorderremovalreason' | 'dev_platform_app_changed' | 'dev_platform_app_disabled' | 'dev_platform_app_enabled' | 'dev_platform_app_installed' | 'dev_platform_app_uninstalled';
@@ -1 +1 @@
1
- {"version":3,"file":"ModAction.d.ts","sourceRoot":"","sources":["../../../../src/apis/reddit/models/ModAction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAoB,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAIjE,OAAO,KAAK,EAAE,mBAAmB,EAAwB,MAAM,cAAc,CAAC;AAC9E,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAEvC,MAA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c,GACd,iBAAiB,GACjB,cAAc,GACd,sBAAsB,GACtB,yBAAyB,GACzB,uBAAuB,GACvB,qBAAqB,GACrB,uBAAuB,GACvB,uBAAuB,GACvB,wBAAwB,GACxB,kBAAkB,GAClB,8BAA8B,GAC9B,iCAAiC,GACjC,kCAAkC,GAClC,mCAAmC,GACnC,gCAAgC,GAChC,wBAAwB,GACxB,mBAAmB,GACnB,eAAe,GACf,iBAAiB,GACjB,SAAS,GACT,YAAY,GACZ,kBAAkB,GAClB,qBAAqB,GACrB,qBAAqB,GACrB,qBAAqB,GACrB,sBAAsB,GACtB,0BAA0B,GAC1B,2BAA2B,GAC3B,0BAA0B,GAC1B,4BAA4B,GAC5B,8BAA8B,CAAC;AAEnC,MAAM,MAAM,uBAAuB,GAAG,mBAAmB,GAAG;IAC1D,qBAAqB;IACrB,aAAa,EAAE,MAAM,CAAC;IACtB,mEAAmE;IACnE,kBAAkB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC9B,mCAAmC;IACnC,IAAI,CAAC,EAAE,aAAa,CAAC;CACtB,CAAC;AAEF,wBAAgB,gBAAgB,CAC9B,OAAO,EAAE,uBAAuB,EAChC,QAAQ,EAAE,QAAQ,GAAG,SAAS,GAC7B,OAAO,CAAC,SAAS,CAAC,CAuBpB"}
package/meta.min.json CHANGED
@@ -2224,7 +2224,7 @@
2224
2224
  "format": "esm"
2225
2225
  },
2226
2226
  "src/apis/reddit/models/ModAction.ts": {
2227
- "bytes": 5734,
2227
+ "bytes": 7230,
2228
2228
  "imports": [
2229
2229
  {
2230
2230
  "path": "../shared-types/dist/NonNull.js",
@@ -2700,7 +2700,7 @@
2700
2700
  "imports": [],
2701
2701
  "exports": [],
2702
2702
  "inputs": {},
2703
- "bytes": 1094601
2703
+ "bytes": 1096167
2704
2704
  },
2705
2705
  "dist/public-api.min.js": {
2706
2706
  "imports": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devvit/public-api",
3
- "version": "0.12.2-next-2025-10-29-22-09-18-2b8ae2b23.0",
3
+ "version": "0.12.2-next-2025-10-29-22-34-10-21b07c31a.0",
4
4
  "license": "BSD-3-Clause",
5
5
  "repository": {
6
6
  "type": "git",
@@ -36,18 +36,18 @@
36
36
  },
37
37
  "types": "./dist/index.d.ts",
38
38
  "dependencies": {
39
- "@devvit/metrics": "0.12.2-next-2025-10-29-22-09-18-2b8ae2b23.0",
40
- "@devvit/protos": "0.12.2-next-2025-10-29-22-09-18-2b8ae2b23.0",
41
- "@devvit/shared": "0.12.2-next-2025-10-29-22-09-18-2b8ae2b23.0",
42
- "@devvit/shared-types": "0.12.2-next-2025-10-29-22-09-18-2b8ae2b23.0",
39
+ "@devvit/metrics": "0.12.2-next-2025-10-29-22-34-10-21b07c31a.0",
40
+ "@devvit/protos": "0.12.2-next-2025-10-29-22-34-10-21b07c31a.0",
41
+ "@devvit/shared": "0.12.2-next-2025-10-29-22-34-10-21b07c31a.0",
42
+ "@devvit/shared-types": "0.12.2-next-2025-10-29-22-34-10-21b07c31a.0",
43
43
  "base64-js": "1.5.1",
44
44
  "clone-deep": "4.0.1",
45
45
  "moderndash": "4.0.0"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@ampproject/filesize": "4.3.0",
49
- "@devvit/repo-tools": "0.12.2-next-2025-10-29-22-09-18-2b8ae2b23.0",
50
- "@devvit/tsconfig": "0.12.2-next-2025-10-29-22-09-18-2b8ae2b23.0",
49
+ "@devvit/repo-tools": "0.12.2-next-2025-10-29-22-34-10-21b07c31a.0",
50
+ "@devvit/tsconfig": "0.12.2-next-2025-10-29-22-34-10-21b07c31a.0",
51
51
  "@reddit/faceplate-ui": "18.0.5",
52
52
  "@types/clone-deep": "4.0.1",
53
53
  "chokidar-cli": "3.0.0",
@@ -63,5 +63,5 @@
63
63
  }
64
64
  },
65
65
  "source": "./src/index.ts",
66
- "gitHead": "421de3ada2ed21a93c32440711e203c37f6540d7"
66
+ "gitHead": "12ab856ae8f301c735ddd5de3c6c2f047f27b888"
67
67
  }