@devvit/public-api 0.11.0-next-2024-07-15-adba61cda.0 → 0.11.0-next-2024-07-15-c5542123c.0

Sign up to get free protection for your applications and to get access to all the features.
package/meta.json CHANGED
@@ -7473,7 +7473,7 @@
7473
7473
  "format": "esm"
7474
7474
  },
7475
7475
  "../protos/dist/types/devvit/plugin/redditapi/common/common_msg.js": {
7476
- "bytes": 164964,
7476
+ "bytes": 165748,
7477
7477
  "imports": [
7478
7478
  {
7479
7479
  "path": "../../node_modules/protobufjs/minimal.js",
@@ -8400,7 +8400,7 @@
8400
8400
  "format": "esm"
8401
8401
  },
8402
8402
  "../protos/dist/types/devvit/plugin/redditapi/flair/flair_msg.js": {
8403
- "bytes": 85603,
8403
+ "bytes": 89260,
8404
8404
  "imports": [
8405
8405
  {
8406
8406
  "path": "../../node_modules/long/src/long.js",
@@ -9732,7 +9732,7 @@
9732
9732
  "format": "esm"
9733
9733
  },
9734
9734
  "../protos/dist/types/devvit/plugin/redditapi/users/users_svc.js": {
9735
- "bytes": 29411,
9735
+ "bytes": 31061,
9736
9736
  "imports": [
9737
9737
  {
9738
9738
  "path": "../../node_modules/protobufjs/minimal.js",
@@ -9799,7 +9799,7 @@
9799
9799
  "format": "esm"
9800
9800
  },
9801
9801
  "../protos/dist/types/devvit/plugin/redditapi/subreddits/subreddits_svc.js": {
9802
- "bytes": 79573,
9802
+ "bytes": 84912,
9803
9803
  "imports": [
9804
9804
  {
9805
9805
  "path": "../../node_modules/protobufjs/minimal.js",
@@ -9924,7 +9924,7 @@
9924
9924
  "format": "esm"
9925
9925
  },
9926
9926
  "../protos/dist/types/devvit/plugin/redditapi/newmodmail/newmodmail_svc.js": {
9927
- "bytes": 55107,
9927
+ "bytes": 49210,
9928
9928
  "imports": [
9929
9929
  {
9930
9930
  "path": "../../node_modules/protobufjs/minimal.js",
@@ -10008,7 +10008,7 @@
10008
10008
  "format": "esm"
10009
10009
  },
10010
10010
  "../protos/dist/types/devvit/plugin/redditapi/moderation/moderation_svc.js": {
10011
- "bytes": 65760,
10011
+ "bytes": 67087,
10012
10012
  "imports": [
10013
10013
  {
10014
10014
  "path": "../../node_modules/protobufjs/minimal.js",
@@ -10065,7 +10065,7 @@
10065
10065
  "format": "esm"
10066
10066
  },
10067
10067
  "../protos/dist/types/devvit/plugin/redditapi/listings/listings_svc.js": {
10068
- "bytes": 25214,
10068
+ "bytes": 35861,
10069
10069
  "imports": [
10070
10070
  {
10071
10071
  "path": "../../node_modules/protobufjs/minimal.js",
@@ -10117,7 +10117,7 @@
10117
10117
  "format": "esm"
10118
10118
  },
10119
10119
  "../protos/dist/types/devvit/plugin/redditapi/linksandcomments/linksandcomments_svc.js": {
10120
- "bytes": 39590,
10120
+ "bytes": 45643,
10121
10121
  "imports": [
10122
10122
  {
10123
10123
  "path": "../../node_modules/protobufjs/minimal.js",
@@ -10180,7 +10180,7 @@
10180
10180
  "format": "esm"
10181
10181
  },
10182
10182
  "../protos/dist/types/devvit/plugin/redditapi/flair/flair_svc.js": {
10183
- "bytes": 33309,
10183
+ "bytes": 36413,
10184
10184
  "imports": [
10185
10185
  {
10186
10186
  "path": "../../node_modules/protobufjs/minimal.js",
@@ -13993,7 +13993,7 @@
13993
13993
  "bytesInOutput": 22818
13994
13994
  },
13995
13995
  "../protos/dist/types/devvit/plugin/redditapi/common/common_msg.js": {
13996
- "bytesInOutput": 146607
13996
+ "bytesInOutput": 147289
13997
13997
  },
13998
13998
  "../protos/dist/types/devvit/ui/effects/v1alpha/effect.js": {
13999
13999
  "bytesInOutput": 9025
@@ -14107,7 +14107,7 @@
14107
14107
  "bytesInOutput": 699
14108
14108
  },
14109
14109
  "../protos/dist/types/devvit/plugin/redditapi/flair/flair_msg.js": {
14110
- "bytesInOutput": 78359
14110
+ "bytesInOutput": 81653
14111
14111
  },
14112
14112
  "../protos/dist/types/devvit/plugin/redditapi/postcollections/postcollections_msg.js": {
14113
14113
  "bytesInOutput": 38118
@@ -14260,13 +14260,13 @@
14260
14260
  "bytesInOutput": 191450
14261
14261
  },
14262
14262
  "../protos/dist/types/devvit/plugin/redditapi/users/users_svc.js": {
14263
- "bytesInOutput": 16576
14263
+ "bytesInOutput": 17630
14264
14264
  },
14265
14265
  "../protos/dist/types/devvit/plugin/redditapi/users/users_msg.js": {
14266
14266
  "bytesInOutput": 68200
14267
14267
  },
14268
14268
  "../protos/dist/types/devvit/plugin/redditapi/subreddits/subreddits_svc.js": {
14269
- "bytesInOutput": 46233
14269
+ "bytesInOutput": 49636
14270
14270
  },
14271
14271
  "../protos/dist/types/devvit/plugin/redditapi/subreddits/subreddits_msg.js": {
14272
14272
  "bytesInOutput": 554189
@@ -14281,7 +14281,7 @@
14281
14281
  "bytesInOutput": 3667
14282
14282
  },
14283
14283
  "../protos/dist/types/devvit/plugin/redditapi/newmodmail/newmodmail_svc.js": {
14284
- "bytesInOutput": 31880
14284
+ "bytesInOutput": 28123
14285
14285
  },
14286
14286
  "../protos/dist/types/devvit/plugin/redditapi/newmodmail/newmodmail_msg.js": {
14287
14287
  "bytesInOutput": 213915
@@ -14293,19 +14293,19 @@
14293
14293
  "bytesInOutput": 36842
14294
14294
  },
14295
14295
  "../protos/dist/types/devvit/plugin/redditapi/moderation/moderation_svc.js": {
14296
- "bytesInOutput": 38509
14296
+ "bytesInOutput": 39360
14297
14297
  },
14298
14298
  "../protos/dist/types/devvit/plugin/redditapi/moderation/moderation_msg.js": {
14299
14299
  "bytesInOutput": 43555
14300
14300
  },
14301
14301
  "../protos/dist/types/devvit/plugin/redditapi/listings/listings_svc.js": {
14302
- "bytesInOutput": 15070
14302
+ "bytesInOutput": 21837
14303
14303
  },
14304
14304
  "../protos/dist/types/devvit/plugin/redditapi/listings/listings_msg.js": {
14305
14305
  "bytesInOutput": 38038
14306
14306
  },
14307
14307
  "../protos/dist/types/devvit/plugin/redditapi/linksandcomments/linksandcomments_svc.js": {
14308
- "bytesInOutput": 23303
14308
+ "bytesInOutput": 27156
14309
14309
  },
14310
14310
  "../protos/dist/types/devvit/plugin/redditapi/linksandcomments/linksandcomments_msg.js": {
14311
14311
  "bytesInOutput": 61001
@@ -14317,7 +14317,7 @@
14317
14317
  "bytesInOutput": 6769
14318
14318
  },
14319
14319
  "../protos/dist/types/devvit/plugin/redditapi/flair/flair_svc.js": {
14320
- "bytesInOutput": 19071
14320
+ "bytesInOutput": 21055
14321
14321
  },
14322
14322
  "../protos/dist/types/devvit/gateway/utils/v1alpha/utilities.js": {
14323
14323
  "bytesInOutput": 14630
@@ -14614,7 +14614,7 @@
14614
14614
  "bytesInOutput": 4450
14615
14615
  }
14616
14616
  },
14617
- "bytes": 15056522
14617
+ "bytes": 15125169
14618
14618
  }
14619
14619
  }
14620
14620
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devvit/public-api",
3
- "version": "0.11.0-next-2024-07-15-adba61cda.0",
3
+ "version": "0.11.0-next-2024-07-15-c5542123c.0",
4
4
  "license": "BSD-3-Clause",
5
5
  "repository": {
6
6
  "type": "git",
@@ -30,8 +30,8 @@
30
30
  },
31
31
  "types": "./index.d.ts",
32
32
  "dependencies": {
33
- "@devvit/protos": "0.11.0-next-2024-07-15-adba61cda.0",
34
- "@devvit/shared-types": "0.11.0-next-2024-07-15-adba61cda.0",
33
+ "@devvit/protos": "0.11.0-next-2024-07-15-c5542123c.0",
34
+ "@devvit/shared-types": "0.11.0-next-2024-07-15-c5542123c.0",
35
35
  "base64-js": "1.5.1",
36
36
  "clone-deep": "4.0.1",
37
37
  "core-js": "3.27.2",
@@ -39,9 +39,9 @@
39
39
  },
40
40
  "devDependencies": {
41
41
  "@ampproject/filesize": "4.3.0",
42
- "@devvit/eslint-config": "0.11.0-next-2024-07-15-adba61cda.0",
43
- "@devvit/repo-tools": "0.11.0-next-2024-07-15-adba61cda.0",
44
- "@devvit/tsconfig": "0.11.0-next-2024-07-15-adba61cda.0",
42
+ "@devvit/eslint-config": "0.11.0-next-2024-07-15-c5542123c.0",
43
+ "@devvit/repo-tools": "0.11.0-next-2024-07-15-c5542123c.0",
44
+ "@devvit/tsconfig": "0.11.0-next-2024-07-15-c5542123c.0",
45
45
  "@microsoft/api-extractor": "7.41.0",
46
46
  "@reddit/faceplate-ui": "11.3.3",
47
47
  "@types/clone-deep": "4.0.1",
@@ -64,5 +64,5 @@
64
64
  }
65
65
  },
66
66
  "source": "./src/index.ts",
67
- "gitHead": "bda52bc34e21c370bb8173946367954dd6fdcee1"
67
+ "gitHead": "59030d09e8eb2948a002181212230c9d1975fdf3"
68
68
  }
package/public-api.d.ts CHANGED
@@ -827,6 +827,13 @@ declare interface ApiClientConfig {
827
827
  * in the call's metadata.
828
828
  */
829
829
  validateSubredditContext: string;
830
+ /**
831
+ * If set, the generated code should invoke the specified method to parse the response, rather
832
+ * than using the default protojson rehydration.
833
+ * The method specified signature looks like:
834
+ * func fixMethodNameResponse([]bytes) (*ResponseType, error)
835
+ */
836
+ useCustomResponseParser: boolean;
830
837
  }
831
838
 
832
839
  declare const ApiClientConfig: {
@@ -12496,11 +12503,16 @@ declare const FlairDefinition: {
12496
12503
  id?: string | undefined;
12497
12504
  cssClass?: string | undefined;
12498
12505
  maxEmojis?: number;
12499
- richtext?: string[];
12500
12506
  textEditable?: boolean;
12501
12507
  overrideCss?: boolean;
12502
12508
  type?: string | undefined;
12503
12509
  flairType?: string | undefined;
12510
+ richtext?: {
12511
+ e?: string | undefined;
12512
+ t?: string | undefined;
12513
+ a?: string | undefined;
12514
+ u?: string | undefined;
12515
+ }[];
12504
12516
  } | undefined): FlairObject;
12505
12517
  fromPartial(object: {
12506
12518
  allowableContent?: string | undefined;
@@ -12511,11 +12523,16 @@ declare const FlairDefinition: {
12511
12523
  id?: string | undefined;
12512
12524
  cssClass?: string | undefined;
12513
12525
  maxEmojis?: number;
12514
- richtext?: string[];
12515
12526
  textEditable?: boolean;
12516
12527
  overrideCss?: boolean;
12517
12528
  type?: string | undefined;
12518
12529
  flairType?: string | undefined;
12530
+ richtext?: {
12531
+ e?: string | undefined;
12532
+ t?: string | undefined;
12533
+ a?: string | undefined;
12534
+ u?: string | undefined;
12535
+ }[];
12519
12536
  }): FlairObject;
12520
12537
  };
12521
12538
  readonly responseStream: false;
@@ -12561,11 +12578,16 @@ declare const FlairDefinition: {
12561
12578
  id?: string | undefined;
12562
12579
  cssClass?: string | undefined;
12563
12580
  maxEmojis?: number;
12564
- richtext?: string[];
12565
12581
  textEditable?: boolean;
12566
12582
  overrideCss?: boolean;
12567
12583
  type?: string | undefined;
12568
12584
  flairType?: string | undefined;
12585
+ richtext?: {
12586
+ e?: string | undefined;
12587
+ t?: string | undefined;
12588
+ a?: string | undefined;
12589
+ u?: string | undefined;
12590
+ }[];
12569
12591
  }[];
12570
12592
  } | undefined): FlairArray;
12571
12593
  fromPartial(object: {
@@ -12578,16 +12600,25 @@ declare const FlairDefinition: {
12578
12600
  id?: string | undefined;
12579
12601
  cssClass?: string | undefined;
12580
12602
  maxEmojis?: number;
12581
- richtext?: string[];
12582
12603
  textEditable?: boolean;
12583
12604
  overrideCss?: boolean;
12584
12605
  type?: string | undefined;
12585
12606
  flairType?: string | undefined;
12607
+ richtext?: {
12608
+ e?: string | undefined;
12609
+ t?: string | undefined;
12610
+ a?: string | undefined;
12611
+ u?: string | undefined;
12612
+ }[];
12586
12613
  }[];
12587
12614
  }): FlairArray;
12588
12615
  };
12589
12616
  readonly responseStream: false;
12590
- readonly options: {};
12617
+ readonly options: {
12618
+ readonly _unknownFields: {
12619
+ readonly 480010: readonly [Uint8Array];
12620
+ };
12621
+ };
12591
12622
  };
12592
12623
  /** https://www.reddit.com/dev/api#POST_api_selectflair */
12593
12624
  readonly selectFlair: {
@@ -12725,11 +12756,16 @@ declare const FlairDefinition: {
12725
12756
  id?: string | undefined;
12726
12757
  cssClass?: string | undefined;
12727
12758
  maxEmojis?: number;
12728
- richtext?: string[];
12729
12759
  textEditable?: boolean;
12730
12760
  overrideCss?: boolean;
12731
12761
  type?: string | undefined;
12732
12762
  flairType?: string | undefined;
12763
+ richtext?: {
12764
+ e?: string | undefined;
12765
+ t?: string | undefined;
12766
+ a?: string | undefined;
12767
+ u?: string | undefined;
12768
+ }[];
12733
12769
  }[];
12734
12770
  } | undefined): FlairArray;
12735
12771
  fromPartial(object: {
@@ -12742,16 +12778,25 @@ declare const FlairDefinition: {
12742
12778
  id?: string | undefined;
12743
12779
  cssClass?: string | undefined;
12744
12780
  maxEmojis?: number;
12745
- richtext?: string[];
12746
12781
  textEditable?: boolean;
12747
12782
  overrideCss?: boolean;
12748
12783
  type?: string | undefined;
12749
12784
  flairType?: string | undefined;
12785
+ richtext?: {
12786
+ e?: string | undefined;
12787
+ t?: string | undefined;
12788
+ a?: string | undefined;
12789
+ u?: string | undefined;
12790
+ }[];
12750
12791
  }[];
12751
12792
  }): FlairArray;
12752
12793
  };
12753
12794
  readonly responseStream: false;
12754
- readonly options: {};
12795
+ readonly options: {
12796
+ readonly _unknownFields: {
12797
+ readonly 480010: readonly [Uint8Array];
12798
+ };
12799
+ };
12755
12800
  };
12756
12801
  };
12757
12802
  };
@@ -12808,11 +12853,11 @@ declare interface FlairObject {
12808
12853
  id?: string | undefined;
12809
12854
  cssClass?: string | undefined;
12810
12855
  maxEmojis: number;
12811
- richtext: string[];
12812
12856
  textEditable: boolean;
12813
12857
  overrideCss: boolean;
12814
12858
  type?: string | undefined;
12815
12859
  flairType?: string | undefined;
12860
+ richtext: FlairObject_FlairRichText[];
12816
12861
  }
12817
12862
 
12818
12863
  declare const FlairObject: {
@@ -12825,6 +12870,28 @@ declare const FlairObject: {
12825
12870
  fromPartial(object: DeepPartial_55<FlairObject>): FlairObject;
12826
12871
  };
12827
12872
 
12873
+ /** RichText document for flair */
12874
+ declare interface FlairObject_FlairRichText {
12875
+ /** enum of element types. e.g. emoji or text */
12876
+ e?: string | undefined;
12877
+ /** text to show up in the flair, e.g. "Need Advice" */
12878
+ t?: string | undefined;
12879
+ /** emoji references, e.g. ":rainbow:" */
12880
+ a?: string | undefined;
12881
+ /** url string, e.g. "https://reddit.com/" */
12882
+ u?: string | undefined;
12883
+ }
12884
+
12885
+ declare const FlairObject_FlairRichText: {
12886
+ $type: "devvit.plugin.redditapi.flair.FlairObject.FlairRichText";
12887
+ encode(message: FlairObject_FlairRichText, writer?: _m0.Writer): _m0.Writer;
12888
+ decode(input: _m0.Reader | Uint8Array, length?: number): FlairObject_FlairRichText;
12889
+ fromJSON(object: any): FlairObject_FlairRichText;
12890
+ toJSON(message: FlairObject_FlairRichText): unknown;
12891
+ create(base?: DeepPartial_55<FlairObject_FlairRichText>): FlairObject_FlairRichText;
12892
+ fromPartial(object: DeepPartial_55<FlairObject_FlairRichText>): FlairObject_FlairRichText;
12893
+ };
12894
+
12828
12895
  declare interface FlairRequest {
12829
12896
  /** subreddit name without the r/ e.g. 'devvit_test' */
12830
12897
  subreddit: string;
@@ -18022,7 +18089,11 @@ declare const LinksAndCommentsDefinition: {
18022
18089
  }): JsonWrappedComment;
18023
18090
  };
18024
18091
  readonly responseStream: false;
18025
- readonly options: {};
18092
+ readonly options: {
18093
+ readonly _unknownFields: {
18094
+ readonly 480010: readonly [Uint8Array];
18095
+ };
18096
+ };
18026
18097
  };
18027
18098
  /**
18028
18099
  * Delete a Post or Comment
@@ -19321,7 +19392,11 @@ declare const LinksAndCommentsDefinition: {
19321
19392
  }): JsonWrappedComment;
19322
19393
  };
19323
19394
  readonly responseStream: false;
19324
- readonly options: {};
19395
+ readonly options: {
19396
+ readonly _unknownFields: {
19397
+ readonly 480010: readonly [Uint8Array];
19398
+ };
19399
+ };
19325
19400
  };
19326
19401
  /**
19327
19402
  * Report a Post, Comment, or Private Message
@@ -21430,7 +21505,11 @@ declare const ListingsDefinition: {
21430
21505
  }): ListingResponse;
21431
21506
  };
21432
21507
  readonly responseStream: false;
21433
- readonly options: {};
21508
+ readonly options: {
21509
+ readonly _unknownFields: {
21510
+ readonly 480010: readonly [Uint8Array];
21511
+ };
21512
+ };
21434
21513
  };
21435
21514
  /**
21436
21515
  * Find duplicate posts that reference the same URL as this Post
@@ -21816,7 +21895,11 @@ declare const ListingsDefinition: {
21816
21895
  }): ListingResponse;
21817
21896
  };
21818
21897
  readonly responseStream: false;
21819
- readonly options: {};
21898
+ readonly options: {
21899
+ readonly _unknownFields: {
21900
+ readonly 480010: readonly [Uint8Array];
21901
+ };
21902
+ };
21820
21903
  };
21821
21904
  /**
21822
21905
  * Listing with Hot sort
@@ -27772,7 +27855,11 @@ declare const ModerationDefinition: {
27772
27855
  }): StringValue;
27773
27856
  };
27774
27857
  readonly responseStream: false;
27775
- readonly options: {};
27858
+ readonly options: {
27859
+ readonly _unknownFields: {
27860
+ readonly 480010: readonly [Uint8Array];
27861
+ };
27862
+ };
27776
27863
  };
27777
27864
  };
27778
27865
  };
@@ -29328,11 +29415,7 @@ declare const NewModmailDefinition: {
29328
29415
  }): GetConversationsResponse_2;
29329
29416
  };
29330
29417
  readonly responseStream: false;
29331
- readonly options: {
29332
- readonly _unknownFields: {
29333
- readonly 480010: readonly [Uint8Array];
29334
- };
29335
- };
29418
+ readonly options: {};
29336
29419
  };
29337
29420
  /** https://www.reddit.com/dev/api#POST_api_mod_conversations */
29338
29421
  readonly createConversation: {
@@ -29996,11 +30079,7 @@ declare const NewModmailDefinition: {
29996
30079
  }): GetConversationResponse_2;
29997
30080
  };
29998
30081
  readonly responseStream: false;
29999
- readonly options: {
30000
- readonly _unknownFields: {
30001
- readonly 480010: readonly [Uint8Array];
30002
- };
30003
- };
30082
+ readonly options: {};
30004
30083
  };
30005
30084
  /** https://www.reddit.com/dev/api#POST_api_mod_conversations_:conversation_id */
30006
30085
  readonly createConversationMessage: {
@@ -42916,6 +42995,7 @@ declare namespace protos {
42916
42995
  SelectFlairRequest,
42917
42996
  SetFlairEnabledRequest,
42918
42997
  FlairObject,
42998
+ FlairObject_FlairRichText,
42919
42999
  FlairArray,
42920
43000
  FlairSelectorResponseOption,
42921
43001
  FlairSelectorResponse,
@@ -52209,7 +52289,11 @@ declare const SubredditsDefinition: {
52209
52289
  }): Listing_2;
52210
52290
  };
52211
52291
  readonly responseStream: false;
52212
- readonly options: {};
52292
+ readonly options: {
52293
+ readonly _unknownFields: {
52294
+ readonly 480010: readonly [Uint8Array];
52295
+ };
52296
+ };
52213
52297
  };
52214
52298
  /** https://www.reddit.com/dev/api#POST_api_delete_sr_banner */
52215
52299
  readonly deleteSrBanner: {
@@ -53868,7 +53952,11 @@ declare const SubredditsDefinition: {
53868
53952
  }): StringValue;
53869
53953
  };
53870
53954
  readonly responseStream: false;
53871
- readonly options: {};
53955
+ readonly options: {
53956
+ readonly _unknownFields: {
53957
+ readonly 480010: readonly [Uint8Array];
53958
+ };
53959
+ };
53872
53960
  };
53873
53961
  /** https://www.reddit.com/dev/api#GET_sticky */
53874
53962
  readonly sticky: {
@@ -68319,7 +68407,11 @@ declare const UsersDefinition: {
68319
68407
  }): BoolValue;
68320
68408
  };
68321
68409
  readonly responseStream: false;
68322
- readonly options: {};
68410
+ readonly options: {
68411
+ readonly _unknownFields: {
68412
+ readonly 480010: readonly [Uint8Array];
68413
+ };
68414
+ };
68323
68415
  };
68324
68416
  /** https://www.reddit.com/dev/api#DELETE_api_v1_me_friends_username */
68325
68417
  readonly unfriendUser: {