@devvit/public-api 0.11.13-next-2025-04-16-bcffd1119.0 → 0.11.13-next-2025-04-16-baa12f2b5.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.
@@ -1,6 +1,7 @@
1
1
  export declare const RunAs: {
2
2
  readonly APP: 0;
3
3
  readonly USER: 1;
4
+ readonly UNSPECIFIED: 2;
4
5
  };
5
6
  export type UserGeneratedContent = {
6
7
  text: string;
@@ -1 +1 @@
1
- {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../src/apis/reddit/common.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK;;;CAGR,CAAC;AAEX,MAAM,MAAM,oBAAoB,GAAG;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;CACtB,CAAC"}
1
+ {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../src/apis/reddit/common.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK;;;;CAIR,CAAC;AAEX,MAAM,MAAM,oBAAoB,GAAG;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;CACtB,CAAC"}
@@ -1,4 +1,5 @@
1
1
  export const RunAs = {
2
2
  APP: 0,
3
3
  USER: 1,
4
+ UNSPECIFIED: 2,
4
5
  };
@@ -384,7 +384,7 @@ export class Comment {
384
384
  }
385
385
  /** @internal */
386
386
  static async submit(options, metadata) {
387
- const { runAs = 'APP' } = options;
387
+ const { runAs = 'UNSPECIFIED' } = options;
388
388
  const runAsType = RunAs[runAs];
389
389
  const client = runAsType === RunAs.USER
390
390
  ? Devvit.userActionsPlugin
@@ -557,7 +557,7 @@ export class Post {
557
557
  }
558
558
  /** @internal */
559
559
  static async submit(options, metadata) {
560
- const { runAs = 'APP' } = options;
560
+ const { runAs = 'UNSPECIFIED' } = options;
561
561
  const runAsType = RunAs[runAs];
562
562
  const client = runAsType === RunAs.USER
563
563
  ? Devvit.userActionsPlugin
package/meta.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "inputs": {
3
3
  "src/apis/reddit/common.ts": {
4
- "bytes": 137,
4
+ "bytes": 155,
5
5
  "imports": [],
6
6
  "format": "esm"
7
7
  },
@@ -821,7 +821,7 @@
821
821
  "format": "esm"
822
822
  },
823
823
  "../protos/dist/types/devvit/plugin/redditapi/common/common_msg.js": {
824
- "bytes": 168936,
824
+ "bytes": 169125,
825
825
  "imports": [
826
826
  {
827
827
  "path": "../../node_modules/protobufjs/minimal.js",
@@ -9038,7 +9038,7 @@
9038
9038
  "format": "esm"
9039
9039
  },
9040
9040
  "src/apis/reddit/models/Post.ts": {
9041
- "bytes": 45420,
9041
+ "bytes": 45428,
9042
9042
  "imports": [
9043
9043
  {
9044
9044
  "path": "../protos/dist/index.js",
@@ -9205,7 +9205,7 @@
9205
9205
  "format": "esm"
9206
9206
  },
9207
9207
  "src/apis/reddit/models/Comment.ts": {
9208
- "bytes": 23836,
9208
+ "bytes": 23844,
9209
9209
  "imports": [
9210
9210
  {
9211
9211
  "path": "../shared-types/dist/NonNull.js",
@@ -9797,7 +9797,7 @@
9797
9797
  "bytesInOutput": 2409
9798
9798
  },
9799
9799
  "src/apis/reddit/common.ts": {
9800
- "bytesInOutput": 45
9800
+ "bytesInOutput": 65
9801
9801
  },
9802
9802
  "../shared-types/dist/NonNull.js": {
9803
9803
  "bytesInOutput": 118
@@ -9872,7 +9872,7 @@
9872
9872
  "bytesInOutput": 22818
9873
9873
  },
9874
9874
  "../protos/dist/types/devvit/plugin/redditapi/common/common_msg.js": {
9875
- "bytesInOutput": 150155
9875
+ "bytesInOutput": 150334
9876
9876
  },
9877
9877
  "../protos/dist/types/google/protobuf/any.js": {
9878
9878
  "bytesInOutput": 2826
@@ -10334,7 +10334,7 @@
10334
10334
  "bytesInOutput": 12100
10335
10335
  },
10336
10336
  "src/apis/reddit/models/Post.ts": {
10337
- "bytesInOutput": 36697
10337
+ "bytesInOutput": 36705
10338
10338
  },
10339
10339
  "src/apis/reddit/helpers/textFallbackToRichtext.ts": {
10340
10340
  "bytesInOutput": 455
@@ -10343,7 +10343,7 @@
10343
10343
  "bytesInOutput": 16886
10344
10344
  },
10345
10345
  "src/apis/reddit/models/Comment.ts": {
10346
- "bytesInOutput": 22758
10346
+ "bytesInOutput": 22766
10347
10347
  },
10348
10348
  "src/apis/reddit/models/index.ts": {
10349
10349
  "bytesInOutput": 0
@@ -10382,7 +10382,7 @@
10382
10382
  "bytesInOutput": 4013
10383
10383
  }
10384
10384
  },
10385
- "bytes": 12498658
10385
+ "bytes": 12499369
10386
10386
  }
10387
10387
  }
10388
10388
  }
package/meta.min.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "inputs": {
3
3
  "src/apis/reddit/common.ts": {
4
- "bytes": 137,
4
+ "bytes": 155,
5
5
  "imports": [],
6
6
  "format": "esm"
7
7
  },
@@ -1857,7 +1857,7 @@
1857
1857
  "format": "esm"
1858
1858
  },
1859
1859
  "src/apis/reddit/models/Post.ts": {
1860
- "bytes": 45420,
1860
+ "bytes": 45428,
1861
1861
  "imports": [
1862
1862
  {
1863
1863
  "path": "@devvit/protos",
@@ -2024,7 +2024,7 @@
2024
2024
  "format": "esm"
2025
2025
  },
2026
2026
  "src/apis/reddit/models/Comment.ts": {
2027
- "bytes": 23836,
2027
+ "bytes": 23844,
2028
2028
  "imports": [
2029
2029
  {
2030
2030
  "path": "../shared-types/dist/NonNull.js",
@@ -2536,7 +2536,7 @@
2536
2536
  "imports": [],
2537
2537
  "exports": [],
2538
2538
  "inputs": {},
2539
- "bytes": 1070590
2539
+ "bytes": 1070635
2540
2540
  },
2541
2541
  "dist/public-api.min.js": {
2542
2542
  "imports": [
@@ -2796,7 +2796,7 @@
2796
2796
  "bytesInOutput": 1470
2797
2797
  },
2798
2798
  "src/apis/reddit/common.ts": {
2799
- "bytesInOutput": 22
2799
+ "bytesInOutput": 36
2800
2800
  },
2801
2801
  "src/index.ts": {
2802
2802
  "bytesInOutput": 0
@@ -3045,7 +3045,7 @@
3045
3045
  "bytesInOutput": 4610
3046
3046
  },
3047
3047
  "src/apis/reddit/models/Post.ts": {
3048
- "bytesInOutput": 15268
3048
+ "bytesInOutput": 15276
3049
3049
  },
3050
3050
  "src/apis/reddit/helpers/textFallbackToRichtext.ts": {
3051
3051
  "bytesInOutput": 114
@@ -3054,7 +3054,7 @@
3054
3054
  "bytesInOutput": 6302
3055
3055
  },
3056
3056
  "src/apis/reddit/models/Comment.ts": {
3057
- "bytesInOutput": 9619
3057
+ "bytesInOutput": 9627
3058
3058
  },
3059
3059
  "src/apis/reddit/models/index.ts": {
3060
3060
  "bytesInOutput": 0
@@ -3093,7 +3093,7 @@
3093
3093
  "bytesInOutput": 107
3094
3094
  }
3095
3095
  },
3096
- "bytes": 220764
3096
+ "bytes": 220794
3097
3097
  }
3098
3098
  }
3099
3099
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devvit/public-api",
3
- "version": "0.11.13-next-2025-04-16-bcffd1119.0",
3
+ "version": "0.11.13-next-2025-04-16-baa12f2b5.0",
4
4
  "license": "BSD-3-Clause",
5
5
  "repository": {
6
6
  "type": "git",
@@ -30,17 +30,17 @@
30
30
  },
31
31
  "types": "./index.d.ts",
32
32
  "dependencies": {
33
- "@devvit/metrics": "0.11.13-next-2025-04-16-bcffd1119.0",
34
- "@devvit/protos": "0.11.13-next-2025-04-16-bcffd1119.0",
35
- "@devvit/shared-types": "0.11.13-next-2025-04-16-bcffd1119.0",
33
+ "@devvit/metrics": "0.11.13-next-2025-04-16-baa12f2b5.0",
34
+ "@devvit/protos": "0.11.13-next-2025-04-16-baa12f2b5.0",
35
+ "@devvit/shared-types": "0.11.13-next-2025-04-16-baa12f2b5.0",
36
36
  "base64-js": "1.5.1",
37
37
  "clone-deep": "4.0.1",
38
38
  "moderndash": "4.0.0"
39
39
  },
40
40
  "devDependencies": {
41
41
  "@ampproject/filesize": "4.3.0",
42
- "@devvit/repo-tools": "0.11.13-next-2025-04-16-bcffd1119.0",
43
- "@devvit/tsconfig": "0.11.13-next-2025-04-16-bcffd1119.0",
42
+ "@devvit/repo-tools": "0.11.13-next-2025-04-16-baa12f2b5.0",
43
+ "@devvit/tsconfig": "0.11.13-next-2025-04-16-baa12f2b5.0",
44
44
  "@microsoft/api-extractor": "7.41.0",
45
45
  "@reddit/faceplate-ui": "18.0.1",
46
46
  "@types/clone-deep": "4.0.1",
@@ -61,5 +61,5 @@
61
61
  }
62
62
  },
63
63
  "source": "./src/index.ts",
64
- "gitHead": "a7f52a064c3a10777691b3cf3b4f122eedb7ee70"
64
+ "gitHead": "920354bd99a313114619a9b65e75a547e4a07b54"
65
65
  }
package/public-api.d.ts CHANGED
@@ -23225,7 +23225,7 @@ declare const ModerationDefinition: {
23225
23225
  readonly requestStream: false;
23226
23226
  readonly responseType: {
23227
23227
  $type: "devvit.plugin.redditapi.common.JsonRedditObjects";
23228
- encode(message: JsonRedditObjects, writer?: _m0.Writer): _m0.Writer;
23228
+ encode(message: JsonRedditObjects, writer?: _m0.Writer): _m0.Writer; /** https://www.reddit.com/dev/api#POST_api_snooze_reports */
23229
23229
  decode(input: _m0.Reader | Uint8Array, length?: number | undefined): JsonRedditObjects;
23230
23230
  fromJSON(object: any): JsonRedditObjects;
23231
23231
  toJSON(message: JsonRedditObjects): unknown;
@@ -41575,12 +41575,14 @@ declare interface Rpc_9 {
41575
41575
  export declare const RunAs: {
41576
41576
  readonly APP: 0;
41577
41577
  readonly USER: 1;
41578
+ readonly UNSPECIFIED: 2;
41578
41579
  };
41579
41580
 
41580
41581
  /** Indicates who the request should be made on behalf of. Currently, only 'APP' or 'USER' types are supported. */
41581
41582
  declare enum RunAs_2 {
41582
41583
  APP = 0,
41583
41584
  USER = 1,
41585
+ UNSPECIFIED = 2,
41584
41586
  UNRECOGNIZED = -1
41585
41587
  }
41586
41588