@devvit/protos 0.11.8-next-2025-02-11-6dc7d3a3b.0 → 0.11.8-next-2025-02-12-e4a7d52e8.0

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devvit/protos",
3
- "version": "0.11.8-next-2025-02-11-6dc7d3a3b.0",
3
+ "version": "0.11.8-next-2025-02-12-e4a7d52e8.0",
4
4
  "license": "BSD-3-Clause",
5
5
  "repository": {
6
6
  "type": "git",
@@ -45,8 +45,8 @@
45
45
  },
46
46
  "devDependencies": {
47
47
  "@ampproject/filesize": "4.3.0",
48
- "@devvit/repo-tools": "0.11.8-next-2025-02-11-6dc7d3a3b.0",
49
- "@devvit/tsconfig": "0.11.8-next-2025-02-11-6dc7d3a3b.0",
48
+ "@devvit/repo-tools": "0.11.8-next-2025-02-12-e4a7d52e8.0",
49
+ "@devvit/tsconfig": "0.11.8-next-2025-02-12-e4a7d52e8.0",
50
50
  "@protobuf-ts/plugin": "2.9.3",
51
51
  "@types/long": "4.0.2",
52
52
  "chokidar-cli": "3.0.0",
@@ -80,5 +80,5 @@
80
80
  ]
81
81
  }
82
82
  },
83
- "gitHead": "5177cb83c9973b2febe6973ceff596cd51b6cbe7"
83
+ "gitHead": "18e32604404631547ccf615254d6064b91477c6d"
84
84
  }
@@ -23,7 +23,8 @@ enum OrderBy {
23
23
 
24
24
  // Used to search for app(s).
25
25
  message AppSearchRequest {
26
- // What word(s) are you searching for? (NOTE: This feature is not yet implemented.)
26
+ // What word(s) are you searching for? (NOTE: This feature is not yet
27
+ // implemented.)
27
28
  google.protobuf.StringValue search_term = 1;
28
29
  // What categor(y|ies) are you looking in?
29
30
  repeated categories.Categories categories = 2;
@@ -31,7 +32,8 @@ message AppSearchRequest {
31
32
  google.protobuf.Int32Value page = 3;
32
33
  // What is the maximum number of items on a page? Defaults to 20.
33
34
  google.protobuf.Int32Value page_size = 4;
34
- // What field would you like to order the results by? Defaults to DATE_CREATED.
35
+ // What field would you like to order the results by? Defaults to
36
+ // DATE_CREATED.
35
37
  OrderBy order_by = 5;
36
38
  // Would you like your results sorted in ascending order? Defaults to false.
37
39
  google.protobuf.BoolValue is_ascending = 6;
@@ -50,7 +52,8 @@ message GetAppBySlugRequest {
50
52
  }
51
53
 
52
54
  message GetAllWithOwnerRequest {
53
- // Who's the owner in question? (Can be a t2_ ID or a username, with or without `u/`)
55
+ // Who's the owner in question? (Can be a t2_ ID or a username, with or
56
+ // without `u/`)
54
57
  string owner = 1;
55
58
  }
56
59
 
@@ -70,7 +73,8 @@ message AppCreationRequest {
70
73
  string captcha = 6;
71
74
  }
72
75
 
73
- // Used to get the X most popular apps, as determined by number of installations.
76
+ // Used to get the X most popular apps, as determined by number of
77
+ // installations.
74
78
  message GetPopularAppsRequest {
75
79
  // How many apps should we return?
76
80
  int32 limit = 1;
@@ -79,9 +83,9 @@ message GetPopularAppsRequest {
79
83
  // Contains the filename, size, and hash info for a piece of media.
80
84
  message MediaSignature {
81
85
  /*
82
- Path to the file. This isn't saved in the system; it's primary use is so that when we're telling
83
- the client later which pieces of media we do and do not have already, it knows which files we're
84
- talking about easily.
86
+ Path to the file. This isn't saved in the system; it's primary use is so
87
+ that when we're telling the client later which pieces of media we do and do
88
+ not have already, it knows which files we're talking about easily.
85
89
  */
86
90
  string file_path = 1;
87
91
  // Size of the file, in bytes
@@ -110,13 +114,16 @@ message UploadNewMediaRequest {
110
114
  string id = 1;
111
115
  string slug = 2;
112
116
  }
113
- // The size of the media asset, in bytes. This will be validated, and an error thrown if incorrect.
117
+ // The size of the media asset, in bytes. This will be validated, and an error
118
+ // thrown if incorrect.
114
119
  int32 size = 3;
115
- // The sha256 hash of the media asset, as a hex string. This will be validated, and an error thrown if incorrect.
120
+ // The sha256 hash of the media asset, as a hex string. This will be
121
+ // validated, and an error thrown if incorrect.
116
122
  string hash = 4;
117
123
  // The contents of the file.
118
124
  bytes contents = 5;
119
- // Make this asset available for webview consumption _instead_ of app UI consumption.
125
+ // Make this asset available for webview consumption _instead_ of app UI
126
+ // consumption.
120
127
  optional bool webview_asset = 6;
121
128
  // The path of the file in the project assets. Necessary for webview assets.
122
129
  optional string file_path = 7;
@@ -158,25 +165,27 @@ message AppUpdateRequest {
158
165
  // TODO: remove this after 2 releases. sometime in (Q4 2024)
159
166
  optional bool is_webview_enabled = 11 [deprecated = true];
160
167
 
161
- // What gated capabilities does the app have access to?
162
- repeated devvit.dev_portal.app.info.AppCapability capabilities = 12;
163
-
164
- // Is the app installation in small subreddits restricted (the actual limit is specified in the code)
168
+ // Is the app installation in small subreddits restricted (the actual limit is
169
+ // specified in the code)
165
170
  optional bool min_subreddit_size_restriction_enabled = 13;
171
+
172
+ reserved 12; // deprecated field:capabilities
173
+ reserved "capabilities";
166
174
  }
167
175
 
168
176
  // endregion
169
177
 
170
178
  // region Response types
171
179
 
172
- // Contains the basic information about an app, as well as all versions of the app, and
173
- // any statistics about the app that we want to include.
180
+ // Contains the basic information about an app, as well as all versions of the
181
+ // app, and any statistics about the app that we want to include.
174
182
  message FullAppInfo {
175
183
  info.AppInfo app = 1;
176
184
  repeated app_version.info.AppVersionInfo versions = 2;
177
185
  }
178
186
 
179
- // Contains the status of a piece of media - whether we've seen it before or not.
187
+ // Contains the status of a piece of media - whether we've seen it before or
188
+ // not.
180
189
  message MediaSignatureStatus {
181
190
  // Path to the file, as was given in the request object
182
191
  string file_path = 1;
@@ -188,7 +197,8 @@ message MediaSignatureStatus {
188
197
 
189
198
  // A list of the status of each media signature we were asked about.
190
199
  message CheckIfMediaExistsResponse {
191
- // The status of each requested media signature - whether we've seen it before or not.
200
+ // The status of each requested media signature - whether we've seen it before
201
+ // or not.
192
202
  repeated MediaSignatureStatus statuses = 1;
193
203
  }
194
204
 
@@ -12,10 +12,12 @@ option go_package = "github.snooguts.net/reddit/reddit-devplatform-monorepo/go-c
12
12
  // This exists in its own file to prevent circular dependency imports between
13
13
  // app and app_version.
14
14
 
15
- // Contains the details of an app. For field documentation, refer to the Prisma schema.
15
+ // Contains the details of an app. For field documentation, refer to the Prisma
16
+ // schema.
16
17
  message AppInfo {
17
18
  string id = 1;
18
- // A unique, immutable, and somewhat more readable name for the app; can only be URL-safe chars
19
+ // A unique, immutable, and somewhat more readable name for the app; can only
20
+ // be URL-safe chars
19
21
  string slug = 2;
20
22
  // Human readable name used to be displayed on UIs
21
23
  string name = 3;
@@ -26,11 +28,13 @@ message AppInfo {
26
28
 
27
29
  // App is NSFW (default: false)
28
30
  bool is_nsfw = 5;
29
- // Flag to flip when *admins* want to take an app off the App Store listings (default: false)
31
+ // Flag to flip when *admins* want to take an app off the App Store listings
32
+ // (default: false)
30
33
  bool is_delisted = 6;
31
34
  // Flag to designate an app maintained by Reddit, Inc. (default: false)
32
35
  bool is_first_party = 13;
33
- // Flag to flip when *app owners* want to take their app off App Store listings (default: false)
36
+ // Flag to flip when *app owners* want to take their app off App Store
37
+ // listings (default: false)
34
38
  bool is_archived = 14;
35
39
  // Deprecated: Use capabilities instead.
36
40
  bool is_webview_enabled = 17 [deprecated = true];
@@ -46,12 +50,15 @@ message AppInfo {
46
50
 
47
51
  devvit.dev_portal.app_version.info.ComputePool default_pool = 16;
48
52
 
49
- repeated AppCapability capabilities = 18;
53
+ reserved 18; // Deprecated field:capabilities
54
+ reserved "capabilities";
50
55
 
51
- // Flag to flip when *admins* want to switch the app off if the app is behaving oddly, has a bad bug, or breaking something
56
+ // Flag to flip when *admins* want to switch the app off if the app is
57
+ // behaving oddly, has a bad bug, or breaking something
52
58
  bool is_disabled = 19;
53
59
 
54
- // Flag to forbid the app installation in small subreddits (the actual upper limit is specified in the code) (default: false)
60
+ // Flag to forbid the app installation in small subreddits (the actual upper
61
+ // limit is specified in the code) (default: false)
55
62
  bool min_subreddit_size_restriction_enabled = 20;
56
63
  }
57
64
 
@@ -63,12 +70,7 @@ message MultipleAppInfos {
63
70
  message AppStats {
64
71
  // How many times/locations is this app currently installed in?
65
72
  int32 install_count = 1;
66
- // How many versions is this app have in total (within search criteria, e.g. may exclude pre-releases)
73
+ // How many versions is this app have in total (within search criteria, e.g.
74
+ // may exclude pre-releases)
67
75
  int32 versions_count = 2;
68
76
  }
69
-
70
- enum AppCapability {
71
- UNSPECIFIED = 0;
72
- WEBVIEW = 1;
73
- PAYMENTS = 2;
74
- }