@devvit/public-api 0.12.0-next-2025-04-12-5721a9506.0 → 0.12.0-next-2025-04-28-276a82082.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/public-api.d.ts CHANGED
@@ -5177,6 +5177,9 @@ declare const CustomPostDefinition: {
5177
5177
  visibility?: WebViewVisibility_2;
5178
5178
  } | undefined;
5179
5179
  } | undefined;
5180
+ formCanceled?: {
5181
+ formId?: string | undefined;
5182
+ } | undefined;
5180
5183
  async?: boolean | undefined;
5181
5184
  hook?: string | undefined;
5182
5185
  retry?: boolean | undefined;
@@ -5279,6 +5282,9 @@ declare const CustomPostDefinition: {
5279
5282
  visibility?: WebViewVisibility_2;
5280
5283
  } | undefined;
5281
5284
  } | undefined;
5285
+ formCanceled?: {
5286
+ formId?: string | undefined;
5287
+ } | undefined;
5282
5288
  async?: boolean | undefined;
5283
5289
  hook?: string | undefined;
5284
5290
  retry?: boolean | undefined;
@@ -5526,6 +5532,9 @@ declare const CustomPostDefinition: {
5526
5532
  visibility?: WebViewVisibility_2;
5527
5533
  } | undefined;
5528
5534
  } | undefined;
5535
+ formCanceled?: {
5536
+ formId?: string | undefined;
5537
+ } | undefined;
5529
5538
  async?: boolean | undefined;
5530
5539
  hook?: string | undefined;
5531
5540
  retry?: boolean | undefined;
@@ -5930,6 +5939,9 @@ declare const CustomPostDefinition: {
5930
5939
  visibility?: WebViewVisibility_2;
5931
5940
  } | undefined;
5932
5941
  } | undefined;
5942
+ formCanceled?: {
5943
+ formId?: string | undefined;
5944
+ } | undefined;
5933
5945
  async?: boolean | undefined;
5934
5946
  hook?: string | undefined;
5935
5947
  retry?: boolean | undefined;
@@ -6209,6 +6221,9 @@ declare const CustomPostDefinition: {
6209
6221
  visibility?: WebViewVisibility_2;
6210
6222
  } | undefined;
6211
6223
  } | undefined;
6224
+ formCanceled?: {
6225
+ formId?: string | undefined;
6226
+ } | undefined;
6212
6227
  async?: boolean | undefined;
6213
6228
  hook?: string | undefined;
6214
6229
  retry?: boolean | undefined;
@@ -6311,6 +6326,9 @@ declare const CustomPostDefinition: {
6311
6326
  visibility?: WebViewVisibility_2;
6312
6327
  } | undefined;
6313
6328
  } | undefined;
6329
+ formCanceled?: {
6330
+ formId?: string | undefined;
6331
+ } | undefined;
6314
6332
  async?: boolean | undefined;
6315
6333
  hook?: string | undefined;
6316
6334
  retry?: boolean | undefined;
@@ -6558,6 +6576,9 @@ declare const CustomPostDefinition: {
6558
6576
  visibility?: WebViewVisibility_2;
6559
6577
  } | undefined;
6560
6578
  } | undefined;
6579
+ formCanceled?: {
6580
+ formId?: string | undefined;
6581
+ } | undefined;
6561
6582
  async?: boolean | undefined;
6562
6583
  hook?: string | undefined;
6563
6584
  retry?: boolean | undefined;
@@ -6962,6 +6983,9 @@ declare const CustomPostDefinition: {
6962
6983
  visibility?: WebViewVisibility_2;
6963
6984
  } | undefined;
6964
6985
  } | undefined;
6986
+ formCanceled?: {
6987
+ formId?: string | undefined;
6988
+ } | undefined;
6965
6989
  async?: boolean | undefined;
6966
6990
  hook?: string | undefined;
6967
6991
  retry?: boolean | undefined;
@@ -7818,19 +7842,29 @@ export declare class Devvit extends Actor {
7818
7842
  */
7819
7843
  static addSchedulerJob<T extends JSONObject | undefined>(job: ScheduledJobType<T>): void;
7820
7844
  /**
7821
- * Add settings that can be configured to customize the behavior of your app. There are two levels of settings: App settings (scope: 'app') and
7822
- * install settings (scope: 'installation' or unspecified scope). Install settings are meant to be configured by the user that installs your app.
7845
+ * Add settings that can be configured to customize the behavior of your app.
7846
+ *
7847
+ * There are two levels of settings:
7848
+ * - App settings (scope: 'app')
7849
+ * - Installation settings (scope: 'installation' or unspecified scope).
7850
+ *
7851
+ * Installation settings are meant to be configured by the user that installs your app.
7823
7852
  * This is a good place to add anything that a user might want to change to personalize the app (e.g. the default city to show the weather for or a
7824
7853
  * specific sport team that a subreddit follows). Note that these are good for subreddit level customization but not necessarily good for things
7825
7854
  * that might be different for two users in a subreddit (e.g. setting the default city to show the weather for is only useful at a sub level if
7826
- * the sub is for a specific city or region). Install settings can be viewed and configured here: https://developers.reddit.com/r/subreddit-name/apps/app-name.
7855
+ * the sub is for a specific city or region).
7856
+ * Installation settings can be viewed and configured here: https://developers.reddit.com/r/subreddit-name/apps/app-name.
7857
+ *
7827
7858
  * App settings can be accessed and consumed by all installations of the app. This is mainly useful for developer secrets/API keys that your
7828
7859
  * app needs to function. They can only be changed/viewed by you via the CLI (devvit settings set and devvit settings list). This ensures secrets
7829
- * are persisted in an encrypted store and don't get committed in the source code. You should never paste your actual key into any fields passed into
7830
- * Devvit.addSettings - this is merely where you state what your API key's name and description are. You will be able to set the actual value of the key via CLI.
7860
+ * are persisted in an encrypted store and don't get committed in the source code.
7861
+ *
7862
+ * Warning: You should never paste your actual key into any fields passed into Devvit.addSettings - this is merely where you state what your API key's name and description are. You will be able to set the actual value of the key via CLI.
7863
+ *
7831
7864
  * Note: setting names must be unique across all settings.
7865
+ *
7832
7866
  * @param fields - Fields for the app and installation settings.
7833
- * @example
7867
+ * @example Add multiple fields
7834
7868
  * ```ts
7835
7869
  * Devvit.addSettings([
7836
7870
  * {
@@ -7864,8 +7898,19 @@ export declare class Devvit extends Actor {
7864
7898
  * },
7865
7899
  * ]);
7866
7900
  * ```
7901
+ *
7902
+ * @example Add a single field
7903
+ * ```ts
7904
+ * Devvit.addSettings({
7905
+ * type: 'string',
7906
+ * name: 'weather-api-key',
7907
+ * label: 'My weather.com API key',
7908
+ * scope: SettingScope.App,
7909
+ * isSecret: true
7910
+ * });
7911
+ * ```
7867
7912
  */
7868
- static addSettings(fields: SettingsFormField[]): void;
7913
+ static addSettings(fields: SettingsFormField[] | SettingsFormField): void;
7869
7914
  /**
7870
7915
  * Add a trigger handler that will be invoked when the given event
7871
7916
  * occurs in a subreddit where the app is installed.
@@ -10121,6 +10166,21 @@ number
10121
10166
 
10122
10167
  declare type FormattingSpecification = number;
10123
10168
 
10169
+ /** Form canceled */
10170
+ declare interface FormCanceledEvent {
10171
+ formId?: string | undefined;
10172
+ }
10173
+
10174
+ declare const FormCanceledEvent: {
10175
+ $type: "devvit.ui.effects.v1alpha.FormCanceledEvent";
10176
+ encode(message: FormCanceledEvent, writer?: _m0.Writer): _m0.Writer;
10177
+ decode(input: _m0.Reader | Uint8Array, length?: number): FormCanceledEvent;
10178
+ fromJSON(object: any): FormCanceledEvent;
10179
+ toJSON(message: FormCanceledEvent): unknown;
10180
+ create(base?: DeepPartial_17<FormCanceledEvent>): FormCanceledEvent;
10181
+ fromPartial(object: DeepPartial_17<FormCanceledEvent>): FormCanceledEvent;
10182
+ };
10183
+
10124
10184
  export declare type FormDefinition<T extends Form | FormFunction = Form | FormFunction> = {
10125
10185
  /** A form or a function that returns a form */
10126
10186
  form: T;
@@ -10525,6 +10585,15 @@ declare const FullSubredditObject: {
10525
10585
  fromPartial(object: DeepPartial_28<FullSubredditObject>): FullSubredditObject;
10526
10586
  };
10527
10587
 
10588
+ /**
10589
+ * Represents media that the post may contain.
10590
+ */
10591
+ export declare type GalleryMedia = {
10592
+ url: string;
10593
+ height: number;
10594
+ width: number;
10595
+ };
10596
+
10528
10597
  /** Responses */
10529
10598
  declare interface GeneralFriendResponse {
10530
10599
  date?: number | undefined;
@@ -15582,6 +15651,11 @@ declare const LinksAndCommentsDefinition: {
15582
15651
  userReports?: any[][];
15583
15652
  removedBy?: string | undefined;
15584
15653
  removedByCategory?: string | undefined;
15654
+ gallery?: {
15655
+ url?: string;
15656
+ width?: number;
15657
+ height?: number;
15658
+ }[];
15585
15659
  } | undefined;
15586
15660
  }[];
15587
15661
  dist?: number | undefined;
@@ -15749,6 +15823,11 @@ declare const LinksAndCommentsDefinition: {
15749
15823
  userReports?: any[][];
15750
15824
  removedBy?: string | undefined;
15751
15825
  removedByCategory?: string | undefined;
15826
+ gallery?: {
15827
+ url?: string;
15828
+ width?: number;
15829
+ height?: number;
15830
+ }[];
15752
15831
  } | undefined;
15753
15832
  }[];
15754
15833
  dist?: number | undefined;
@@ -16633,6 +16712,11 @@ declare const LinksAndCommentsDefinition: {
16633
16712
  userReports?: any[][];
16634
16713
  removedBy?: string | undefined;
16635
16714
  removedByCategory?: string | undefined;
16715
+ gallery?: {
16716
+ url?: string;
16717
+ width?: number;
16718
+ height?: number;
16719
+ }[];
16636
16720
  } | undefined;
16637
16721
  }[];
16638
16722
  } | undefined;
@@ -16810,6 +16894,11 @@ declare const LinksAndCommentsDefinition: {
16810
16894
  userReports?: any[][];
16811
16895
  removedBy?: string | undefined;
16812
16896
  removedByCategory?: string | undefined;
16897
+ gallery?: {
16898
+ url?: string;
16899
+ width?: number;
16900
+ height?: number;
16901
+ }[];
16813
16902
  } | undefined;
16814
16903
  }[];
16815
16904
  } | undefined;
@@ -17854,6 +17943,11 @@ declare const ListingsDefinition: {
17854
17943
  userReports?: any[][];
17855
17944
  removedBy?: string | undefined;
17856
17945
  removedByCategory?: string | undefined;
17946
+ gallery?: {
17947
+ url?: string;
17948
+ width?: number;
17949
+ height?: number;
17950
+ }[];
17857
17951
  } | undefined;
17858
17952
  }[];
17859
17953
  dist?: number | undefined;
@@ -18021,6 +18115,11 @@ declare const ListingsDefinition: {
18021
18115
  userReports?: any[][];
18022
18116
  removedBy?: string | undefined;
18023
18117
  removedByCategory?: string | undefined;
18118
+ gallery?: {
18119
+ url?: string;
18120
+ width?: number;
18121
+ height?: number;
18122
+ }[];
18024
18123
  } | undefined;
18025
18124
  }[];
18026
18125
  dist?: number | undefined;
@@ -18223,6 +18322,11 @@ declare const ListingsDefinition: {
18223
18322
  userReports?: any[][];
18224
18323
  removedBy?: string | undefined;
18225
18324
  removedByCategory?: string | undefined;
18325
+ gallery?: {
18326
+ url?: string;
18327
+ width?: number;
18328
+ height?: number;
18329
+ }[];
18226
18330
  } | undefined;
18227
18331
  }[];
18228
18332
  dist?: number | undefined;
@@ -18390,6 +18494,11 @@ declare const ListingsDefinition: {
18390
18494
  userReports?: any[][];
18391
18495
  removedBy?: string | undefined;
18392
18496
  removedByCategory?: string | undefined;
18497
+ gallery?: {
18498
+ url?: string;
18499
+ width?: number;
18500
+ height?: number;
18501
+ }[];
18393
18502
  } | undefined;
18394
18503
  }[];
18395
18504
  dist?: number | undefined;
@@ -18608,6 +18717,11 @@ declare const ListingsDefinition: {
18608
18717
  userReports?: any[][];
18609
18718
  removedBy?: string | undefined;
18610
18719
  removedByCategory?: string | undefined;
18720
+ gallery?: {
18721
+ url?: string;
18722
+ width?: number;
18723
+ height?: number;
18724
+ }[];
18611
18725
  } | undefined;
18612
18726
  }[];
18613
18727
  dist?: number | undefined;
@@ -18777,6 +18891,11 @@ declare const ListingsDefinition: {
18777
18891
  userReports?: any[][];
18778
18892
  removedBy?: string | undefined;
18779
18893
  removedByCategory?: string | undefined;
18894
+ gallery?: {
18895
+ url?: string;
18896
+ width?: number;
18897
+ height?: number;
18898
+ }[];
18780
18899
  } | undefined;
18781
18900
  }[];
18782
18901
  dist?: number | undefined;
@@ -18998,6 +19117,11 @@ declare const ListingsDefinition: {
18998
19117
  userReports?: any[][];
18999
19118
  removedBy?: string | undefined;
19000
19119
  removedByCategory?: string | undefined;
19120
+ gallery?: {
19121
+ url?: string;
19122
+ width?: number;
19123
+ height?: number;
19124
+ }[];
19001
19125
  } | undefined;
19002
19126
  }[];
19003
19127
  dist?: number | undefined;
@@ -19167,6 +19291,11 @@ declare const ListingsDefinition: {
19167
19291
  userReports?: any[][];
19168
19292
  removedBy?: string | undefined;
19169
19293
  removedByCategory?: string | undefined;
19294
+ gallery?: {
19295
+ url?: string;
19296
+ width?: number;
19297
+ height?: number;
19298
+ }[];
19170
19299
  } | undefined;
19171
19300
  }[];
19172
19301
  dist?: number | undefined;
@@ -19382,6 +19511,11 @@ declare const ListingsDefinition: {
19382
19511
  userReports?: any[][];
19383
19512
  removedBy?: string | undefined;
19384
19513
  removedByCategory?: string | undefined;
19514
+ gallery?: {
19515
+ url?: string;
19516
+ width?: number;
19517
+ height?: number;
19518
+ }[];
19385
19519
  } | undefined;
19386
19520
  }[];
19387
19521
  dist?: number | undefined;
@@ -19549,6 +19683,11 @@ declare const ListingsDefinition: {
19549
19683
  userReports?: any[][];
19550
19684
  removedBy?: string | undefined;
19551
19685
  removedByCategory?: string | undefined;
19686
+ gallery?: {
19687
+ url?: string;
19688
+ width?: number;
19689
+ height?: number;
19690
+ }[];
19552
19691
  } | undefined;
19553
19692
  }[];
19554
19693
  dist?: number | undefined;
@@ -19761,6 +19900,11 @@ declare const ListingsDefinition: {
19761
19900
  userReports?: any[][];
19762
19901
  removedBy?: string | undefined;
19763
19902
  removedByCategory?: string | undefined;
19903
+ gallery?: {
19904
+ url?: string;
19905
+ width?: number;
19906
+ height?: number;
19907
+ }[];
19764
19908
  } | undefined;
19765
19909
  }[];
19766
19910
  dist?: number | undefined;
@@ -19928,6 +20072,11 @@ declare const ListingsDefinition: {
19928
20072
  userReports?: any[][];
19929
20073
  removedBy?: string | undefined;
19930
20074
  removedByCategory?: string | undefined;
20075
+ gallery?: {
20076
+ url?: string;
20077
+ width?: number;
20078
+ height?: number;
20079
+ }[];
19931
20080
  } | undefined;
19932
20081
  }[];
19933
20082
  dist?: number | undefined;
@@ -20140,6 +20289,11 @@ declare const ListingsDefinition: {
20140
20289
  userReports?: any[][];
20141
20290
  removedBy?: string | undefined;
20142
20291
  removedByCategory?: string | undefined;
20292
+ gallery?: {
20293
+ url?: string;
20294
+ width?: number;
20295
+ height?: number;
20296
+ }[];
20143
20297
  } | undefined;
20144
20298
  }[];
20145
20299
  dist?: number | undefined;
@@ -20307,6 +20461,11 @@ declare const ListingsDefinition: {
20307
20461
  userReports?: any[][];
20308
20462
  removedBy?: string | undefined;
20309
20463
  removedByCategory?: string | undefined;
20464
+ gallery?: {
20465
+ url?: string;
20466
+ width?: number;
20467
+ height?: number;
20468
+ }[];
20310
20469
  } | undefined;
20311
20470
  }[];
20312
20471
  dist?: number | undefined;
@@ -20523,6 +20682,11 @@ declare const ListingsDefinition: {
20523
20682
  userReports?: any[][];
20524
20683
  removedBy?: string | undefined;
20525
20684
  removedByCategory?: string | undefined;
20685
+ gallery?: {
20686
+ url?: string;
20687
+ width?: number;
20688
+ height?: number;
20689
+ }[];
20526
20690
  } | undefined;
20527
20691
  }[];
20528
20692
  dist?: number | undefined;
@@ -20690,6 +20854,11 @@ declare const ListingsDefinition: {
20690
20854
  userReports?: any[][];
20691
20855
  removedBy?: string | undefined;
20692
20856
  removedByCategory?: string | undefined;
20857
+ gallery?: {
20858
+ url?: string;
20859
+ width?: number;
20860
+ height?: number;
20861
+ }[];
20693
20862
  } | undefined;
20694
20863
  }[];
20695
20864
  dist?: number | undefined;
@@ -21920,6 +22089,11 @@ declare const ModerationDefinition: {
21920
22089
  userReports?: any[][];
21921
22090
  removedBy?: string | undefined;
21922
22091
  removedByCategory?: string | undefined;
22092
+ gallery?: {
22093
+ url?: string;
22094
+ width?: number;
22095
+ height?: number;
22096
+ }[];
21923
22097
  } | undefined;
21924
22098
  }[];
21925
22099
  dist?: number | undefined;
@@ -22087,6 +22261,11 @@ declare const ModerationDefinition: {
22087
22261
  userReports?: any[][];
22088
22262
  removedBy?: string | undefined;
22089
22263
  removedByCategory?: string | undefined;
22264
+ gallery?: {
22265
+ url?: string;
22266
+ width?: number;
22267
+ height?: number;
22268
+ }[];
22090
22269
  } | undefined;
22091
22270
  }[];
22092
22271
  dist?: number | undefined;
@@ -22299,6 +22478,11 @@ declare const ModerationDefinition: {
22299
22478
  userReports?: any[][];
22300
22479
  removedBy?: string | undefined;
22301
22480
  removedByCategory?: string | undefined;
22481
+ gallery?: {
22482
+ url?: string;
22483
+ width?: number;
22484
+ height?: number;
22485
+ }[];
22302
22486
  } | undefined;
22303
22487
  }[];
22304
22488
  dist?: number | undefined;
@@ -22466,6 +22650,11 @@ declare const ModerationDefinition: {
22466
22650
  userReports?: any[][];
22467
22651
  removedBy?: string | undefined;
22468
22652
  removedByCategory?: string | undefined;
22653
+ gallery?: {
22654
+ url?: string;
22655
+ width?: number;
22656
+ height?: number;
22657
+ }[];
22469
22658
  } | undefined;
22470
22659
  }[];
22471
22660
  dist?: number | undefined;
@@ -22678,6 +22867,11 @@ declare const ModerationDefinition: {
22678
22867
  userReports?: any[][];
22679
22868
  removedBy?: string | undefined;
22680
22869
  removedByCategory?: string | undefined;
22870
+ gallery?: {
22871
+ url?: string;
22872
+ width?: number;
22873
+ height?: number;
22874
+ }[];
22681
22875
  } | undefined;
22682
22876
  }[];
22683
22877
  dist?: number | undefined;
@@ -22845,6 +23039,11 @@ declare const ModerationDefinition: {
22845
23039
  userReports?: any[][];
22846
23040
  removedBy?: string | undefined;
22847
23041
  removedByCategory?: string | undefined;
23042
+ gallery?: {
23043
+ url?: string;
23044
+ width?: number;
23045
+ height?: number;
23046
+ }[];
22848
23047
  } | undefined;
22849
23048
  }[];
22850
23049
  dist?: number | undefined;
@@ -23057,6 +23256,11 @@ declare const ModerationDefinition: {
23057
23256
  userReports?: any[][];
23058
23257
  removedBy?: string | undefined;
23059
23258
  removedByCategory?: string | undefined;
23259
+ gallery?: {
23260
+ url?: string;
23261
+ width?: number;
23262
+ height?: number;
23263
+ }[];
23060
23264
  } | undefined;
23061
23265
  }[];
23062
23266
  dist?: number | undefined;
@@ -23224,6 +23428,11 @@ declare const ModerationDefinition: {
23224
23428
  userReports?: any[][];
23225
23429
  removedBy?: string | undefined;
23226
23430
  removedByCategory?: string | undefined;
23431
+ gallery?: {
23432
+ url?: string;
23433
+ width?: number;
23434
+ height?: number;
23435
+ }[];
23227
23436
  } | undefined;
23228
23437
  }[];
23229
23438
  dist?: number | undefined;
@@ -23436,6 +23645,11 @@ declare const ModerationDefinition: {
23436
23645
  userReports?: any[][];
23437
23646
  removedBy?: string | undefined;
23438
23647
  removedByCategory?: string | undefined;
23648
+ gallery?: {
23649
+ url?: string;
23650
+ width?: number;
23651
+ height?: number;
23652
+ }[];
23439
23653
  } | undefined;
23440
23654
  }[];
23441
23655
  dist?: number | undefined;
@@ -23603,6 +23817,11 @@ declare const ModerationDefinition: {
23603
23817
  userReports?: any[][];
23604
23818
  removedBy?: string | undefined;
23605
23819
  removedByCategory?: string | undefined;
23820
+ gallery?: {
23821
+ url?: string;
23822
+ width?: number;
23823
+ height?: number;
23824
+ }[];
23606
23825
  } | undefined;
23607
23826
  }[];
23608
23827
  dist?: number | undefined;
@@ -23815,6 +24034,11 @@ declare const ModerationDefinition: {
23815
24034
  userReports?: any[][];
23816
24035
  removedBy?: string | undefined;
23817
24036
  removedByCategory?: string | undefined;
24037
+ gallery?: {
24038
+ url?: string;
24039
+ width?: number;
24040
+ height?: number;
24041
+ }[];
23818
24042
  } | undefined;
23819
24043
  }[];
23820
24044
  dist?: number | undefined;
@@ -23982,6 +24206,11 @@ declare const ModerationDefinition: {
23982
24206
  userReports?: any[][];
23983
24207
  removedBy?: string | undefined;
23984
24208
  removedByCategory?: string | undefined;
24209
+ gallery?: {
24210
+ url?: string;
24211
+ width?: number;
24212
+ height?: number;
24213
+ }[];
23985
24214
  } | undefined;
23986
24215
  }[];
23987
24216
  dist?: number | undefined;
@@ -24268,6 +24497,11 @@ declare const ModerationDefinition: {
24268
24497
  userReports?: any[][];
24269
24498
  removedBy?: string | undefined;
24270
24499
  removedByCategory?: string | undefined;
24500
+ gallery?: {
24501
+ url?: string;
24502
+ width?: number;
24503
+ height?: number;
24504
+ }[];
24271
24505
  } | undefined;
24272
24506
  }[];
24273
24507
  } | undefined;
@@ -24445,6 +24679,11 @@ declare const ModerationDefinition: {
24445
24679
  userReports?: any[][];
24446
24680
  removedBy?: string | undefined;
24447
24681
  removedByCategory?: string | undefined;
24682
+ gallery?: {
24683
+ url?: string;
24684
+ width?: number;
24685
+ height?: number;
24686
+ }[];
24448
24687
  } | undefined;
24449
24688
  }[];
24450
24689
  } | undefined;
@@ -35910,6 +36149,10 @@ export declare class Post {
35910
36149
  get secureMedia(): SecureMedia | undefined;
35911
36150
  get userReportReasons(): string[];
35912
36151
  get modReportReasons(): string[];
36152
+ /**
36153
+ * Get the media in the post. Empty if the post doesn't have any media.
36154
+ */
36155
+ get gallery(): GalleryMedia[];
35913
36156
  toJSON(): Pick<Post, 'id' | 'authorId' | 'authorName' | 'subredditId' | 'subredditName' | 'permalink' | 'title' | 'body' | 'bodyHtml' | 'url' | 'thumbnail' | 'score' | 'numberOfComments' | 'numberOfReports' | 'createdAt' | 'approved' | 'spam' | 'stickied' | 'removed' | 'removedBy' | 'removedByCategory' | 'archived' | 'edited' | 'locked' | 'nsfw' | 'quarantined' | 'spoiler' | 'hidden' | 'ignoringReports' | 'distinguishedBy' | 'flair' | 'secureMedia' | 'userReportReasons' | 'modReportReasons'>;
35914
36157
  isApproved(): boolean;
35915
36158
  isSpam(): boolean;
@@ -36995,6 +37238,11 @@ declare const PrivateMessagesDefinition: {
36995
37238
  userReports?: any[][];
36996
37239
  removedBy?: string | undefined;
36997
37240
  removedByCategory?: string | undefined;
37241
+ gallery?: {
37242
+ url?: string;
37243
+ width?: number;
37244
+ height?: number;
37245
+ }[];
36998
37246
  } | undefined;
36999
37247
  }[];
37000
37248
  dist?: number | undefined;
@@ -37162,6 +37410,11 @@ declare const PrivateMessagesDefinition: {
37162
37410
  userReports?: any[][];
37163
37411
  removedBy?: string | undefined;
37164
37412
  removedByCategory?: string | undefined;
37413
+ gallery?: {
37414
+ url?: string;
37415
+ width?: number;
37416
+ height?: number;
37417
+ }[];
37165
37418
  } | undefined;
37166
37419
  }[];
37167
37420
  dist?: number | undefined;
@@ -37420,6 +37673,7 @@ declare namespace protos {
37420
37673
  RedditObject_AuthorFlairRichText,
37421
37674
  RedditObject_LinkFlairRichText,
37422
37675
  RedditObject_SecureMedia,
37676
+ RedditObject_GalleryMedia,
37423
37677
  SubredditObject,
37424
37678
  JsonStatus,
37425
37679
  JsonStatus_JsonErrorType,
@@ -38437,6 +38691,8 @@ declare interface RedditObject {
38437
38691
  * - None: object is not removed
38438
38692
  */
38439
38693
  removedByCategory?: string | undefined;
38694
+ /** List of media (images or gifs) in a gallery post */
38695
+ gallery: RedditObject_GalleryMedia[];
38440
38696
  }
38441
38697
 
38442
38698
  declare const RedditObject: {
@@ -38471,6 +38727,25 @@ declare const RedditObject_AuthorFlairRichText: {
38471
38727
  fromPartial(object: DeepPartial_10<RedditObject_AuthorFlairRichText>): RedditObject_AuthorFlairRichText;
38472
38728
  };
38473
38729
 
38730
+ declare interface RedditObject_GalleryMedia {
38731
+ /** The URL of the media */
38732
+ url: string;
38733
+ /** The width of the media in pixels */
38734
+ width: number;
38735
+ /** The height of the media in pixels */
38736
+ height: number;
38737
+ }
38738
+
38739
+ declare const RedditObject_GalleryMedia: {
38740
+ $type: "devvit.plugin.redditapi.common.RedditObject.GalleryMedia";
38741
+ encode(message: RedditObject_GalleryMedia, writer?: _m0.Writer): _m0.Writer;
38742
+ decode(input: _m0.Reader | Uint8Array, length?: number): RedditObject_GalleryMedia;
38743
+ fromJSON(object: any): RedditObject_GalleryMedia;
38744
+ toJSON(message: RedditObject_GalleryMedia): unknown;
38745
+ create(base?: DeepPartial_10<RedditObject_GalleryMedia>): RedditObject_GalleryMedia;
38746
+ fromPartial(object: DeepPartial_10<RedditObject_GalleryMedia>): RedditObject_GalleryMedia;
38747
+ };
38748
+
38474
38749
  /** RichText document for post flair */
38475
38750
  declare interface RedditObject_LinkFlairRichText {
38476
38751
  /** enum of element types. e.g. emoji or text */
@@ -41430,12 +41705,14 @@ declare interface Rpc_9 {
41430
41705
  export declare const RunAs: {
41431
41706
  readonly APP: 0;
41432
41707
  readonly USER: 1;
41708
+ readonly UNSPECIFIED: 2;
41433
41709
  };
41434
41710
 
41435
41711
  /** Indicates who the request should be made on behalf of. Currently, only 'APP' or 'USER' types are supported. */
41436
41712
  declare enum RunAs_2 {
41437
41713
  APP = 0,
41438
41714
  USER = 1,
41715
+ UNSPECIFIED = 2,
41439
41716
  UNRECOGNIZED = -1
41440
41717
  }
41441
41718
 
@@ -44823,6 +45100,11 @@ declare const SubredditsDefinition: {
44823
45100
  userReports?: any[][];
44824
45101
  removedBy?: string | undefined;
44825
45102
  removedByCategory?: string | undefined;
45103
+ gallery?: {
45104
+ url?: string;
45105
+ width?: number;
45106
+ height?: number;
45107
+ }[];
44826
45108
  } | undefined;
44827
45109
  }[];
44828
45110
  dist?: number | undefined;
@@ -44990,6 +45272,11 @@ declare const SubredditsDefinition: {
44990
45272
  userReports?: any[][];
44991
45273
  removedBy?: string | undefined;
44992
45274
  removedByCategory?: string | undefined;
45275
+ gallery?: {
45276
+ url?: string;
45277
+ width?: number;
45278
+ height?: number;
45279
+ }[];
44993
45280
  } | undefined;
44994
45281
  }[];
44995
45282
  dist?: number | undefined;
@@ -47208,6 +47495,11 @@ declare const SubredditsDefinition: {
47208
47495
  userReports?: any[][];
47209
47496
  removedBy?: string | undefined;
47210
47497
  removedByCategory?: string | undefined;
47498
+ gallery?: {
47499
+ url?: string;
47500
+ width?: number;
47501
+ height?: number;
47502
+ }[];
47211
47503
  } | undefined;
47212
47504
  }[];
47213
47505
  dist?: number | undefined;
@@ -47375,6 +47667,11 @@ declare const SubredditsDefinition: {
47375
47667
  userReports?: any[][];
47376
47668
  removedBy?: string | undefined;
47377
47669
  removedByCategory?: string | undefined;
47670
+ gallery?: {
47671
+ url?: string;
47672
+ width?: number;
47673
+ height?: number;
47674
+ }[];
47378
47675
  } | undefined;
47379
47676
  }[];
47380
47677
  dist?: number | undefined;
@@ -50420,6 +50717,7 @@ declare interface UIEvent {
50420
50717
  blocking?: BlockingRenderEvent | undefined;
50421
50718
  resize?: ResizeEvent | undefined;
50422
50719
  webView?: WebViewEvent | undefined;
50720
+ formCanceled?: FormCanceledEvent | undefined;
50423
50721
  /**
50424
50722
  * If an event is async, it can be fired in parallel with other events. Async events
50425
50723
  * are not allowed to mutate state. Any state mutations they attempt would be ignored.
@@ -52090,7 +52388,7 @@ declare const UserFlairV2: {
52090
52388
 
52091
52389
  declare type UserGeneratedContent = {
52092
52390
  text: string;
52093
- imageUrls: string[];
52391
+ imageUrls?: string[];
52094
52392
  };
52095
52393
 
52096
52394
  /** Represents data on the user's content submission */
@@ -53495,6 +53793,11 @@ declare const UsersDefinition: {
53495
53793
  userReports?: any[][];
53496
53794
  removedBy?: string | undefined;
53497
53795
  removedByCategory?: string | undefined;
53796
+ gallery?: {
53797
+ url?: string;
53798
+ width?: number;
53799
+ height?: number;
53800
+ }[];
53498
53801
  } | undefined;
53499
53802
  }[];
53500
53803
  dist?: number | undefined;
@@ -53662,6 +53965,11 @@ declare const UsersDefinition: {
53662
53965
  userReports?: any[][];
53663
53966
  removedBy?: string | undefined;
53664
53967
  removedByCategory?: string | undefined;
53968
+ gallery?: {
53969
+ url?: string;
53970
+ width?: number;
53971
+ height?: number;
53972
+ }[];
53665
53973
  } | undefined;
53666
53974
  }[];
53667
53975
  dist?: number | undefined;