@devvit/protos 0.10.23-next-2024-07-02-fe7059b4e.0 → 0.10.23-next-2024-07-23-7552e0bd4.0
Sign up to get free protection for your applications and to get access to all the features.
- package/index.d.ts +10 -4
- package/index.d.ts.map +1 -1
- package/index.js +8 -1
- package/meta.min.json +257 -155
- package/package.json +7 -7
- package/protos.min.js +2 -2
- package/protos.min.js.map +4 -4
- package/schema/devvit/data/api/v1alpha/delivery.proto +0 -11
- package/schema/devvit/dev_portal/app/app.proto +0 -7
- package/schema/devvit/dev_portal/app/info/app_info.proto +2 -3
- package/schema/devvit/plugin/assetresolver/assetresolver.proto +0 -2
- package/schema/devvit/plugin/buildpack/buildpack_common.proto +0 -10
- package/schema/devvit/plugin/redditapi/common/common_msg.proto +0 -18
- package/schema/devvit/plugin/redditapi/listings/listings_svc.proto +8 -4
- package/schema/devvit/plugin/redditapi/moderation/moderation_svc.proto +0 -17
- package/schema/devvit/reddit/v2alpha/postv2.proto +0 -4
- package/schema/devvit/reddit/v2alpha/userv2.proto +0 -1
- package/schema/devvit/runtime/bundle.proto +0 -9
- package/schema/devvit/ui/block_kit/v1beta/ui.proto +0 -3
- package/schema/devvit/ui/events/v1alpha/event.proto +4 -18
- package/types/devvit/actor/automation/v1alpha/event_handlers.d.ts +0 -80
- package/types/devvit/actor/automation/v1alpha/event_handlers.d.ts.map +1 -1
- package/types/devvit/dev_portal/app/app.d.ts +0 -6
- package/types/devvit/dev_portal/app/app.d.ts.map +1 -1
- package/types/devvit/dev_portal/app/app.js +1 -52
- package/types/devvit/dev_portal/app/info/app_info.d.ts +1 -2
- package/types/devvit/dev_portal/app/info/app_info.d.ts.map +1 -1
- package/types/devvit/dev_portal/app/info/app_info.js +0 -15
- package/types/devvit/dev_portal/dev_portal.d.ts +1 -59
- package/types/devvit/dev_portal/dev_portal.d.ts.map +1 -1
- package/types/devvit/gateway/resolvers.d.ts +0 -8
- package/types/devvit/gateway/resolvers.d.ts.map +1 -1
- package/types/devvit/gateway/v1alpha/triggers.d.ts +0 -168
- package/types/devvit/gateway/v1alpha/triggers.d.ts.map +1 -1
- package/types/devvit/plugin/assetresolver/assetresolver.d.ts +0 -2
- package/types/devvit/plugin/assetresolver/assetresolver.d.ts.map +1 -1
- package/types/devvit/plugin/assetresolver/assetresolver.js +2 -18
- package/types/devvit/plugin/buildpack/buildpack.d.ts +0 -16
- package/types/devvit/plugin/buildpack/buildpack.d.ts.map +1 -1
- package/types/devvit/plugin/buildpack/buildpack_common.d.ts +0 -23
- package/types/devvit/plugin/buildpack/buildpack_common.d.ts.map +1 -1
- package/types/devvit/plugin/buildpack/buildpack_common.js +1 -125
- package/types/devvit/plugin/linker/linker.d.ts +0 -8
- package/types/devvit/plugin/linker/linker.d.ts.map +1 -1
- package/types/devvit/plugin/linker/resolver.d.ts +0 -8
- package/types/devvit/plugin/linker/resolver.d.ts.map +1 -1
- package/types/devvit/plugin/redditapi/common/common_msg.d.ts +0 -20
- package/types/devvit/plugin/redditapi/common/common_msg.d.ts.map +1 -1
- package/types/devvit/plugin/redditapi/common/common_msg.js +1 -41
- package/types/devvit/plugin/redditapi/listings/listings_svc.d.ts +10 -6
- package/types/devvit/plugin/redditapi/listings/listings_svc.d.ts.map +1 -1
- package/types/devvit/plugin/redditapi/listings/listings_svc.js +326 -4
- package/types/devvit/plugin/redditapi/moderation/moderation_svc.d.ts.map +1 -1
- package/types/devvit/plugin/redditapi/moderation/moderation_svc.js +17 -146
- package/types/devvit/reddit/custom_post/v1alpha/custom_post.d.ts +8 -8
- package/types/devvit/reddit/v2alpha/postv2.d.ts +0 -3
- package/types/devvit/reddit/v2alpha/postv2.d.ts.map +1 -1
- package/types/devvit/reddit/v2alpha/postv2.js +0 -32
- package/types/devvit/reddit/v2alpha/userv2.d.ts +0 -1
- package/types/devvit/reddit/v2alpha/userv2.d.ts.map +1 -1
- package/types/devvit/reddit/v2alpha/userv2.js +0 -15
- package/types/devvit/runtime/actor/bootstrap.d.ts +0 -8
- package/types/devvit/runtime/actor/bootstrap.d.ts.map +1 -1
- package/types/devvit/runtime/actor/runtime.d.ts +0 -8
- package/types/devvit/runtime/actor/runtime.d.ts.map +1 -1
- package/types/devvit/runtime/actor/supervisor.d.ts +0 -8
- package/types/devvit/runtime/actor/supervisor.d.ts.map +1 -1
- package/types/devvit/runtime/bundle.d.ts +0 -25
- package/types/devvit/runtime/bundle.d.ts.map +1 -1
- package/types/devvit/runtime/bundle.js +0 -117
- package/types/devvit/service/bundle_service.d.ts +0 -16
- package/types/devvit/service/bundle_service.d.ts.map +1 -1
- package/types/devvit/ui/block_kit/v1beta/ui.d.ts +0 -3
- package/types/devvit/ui/block_kit/v1beta/ui.d.ts.map +1 -1
- package/types/devvit/ui/events/v1alpha/event.d.ts +5 -15
- package/types/devvit/ui/events/v1alpha/event.d.ts.map +1 -1
- package/types/devvit/ui/events/v1alpha/event.js +15 -58
- package/types/google/protobuf/descriptor.d.ts +7 -56
- package/types/google/protobuf/descriptor.d.ts.map +1 -1
- package/types/google/protobuf/descriptor.js +12 -179
- package/schema/devvit/actor/payments/v1alpha/payments.proto +0 -44
- package/schema/devvit/payments/v1alpha/common.proto +0 -13
- package/schema/devvit/payments/v1alpha/order.proto +0 -45
- package/schema/devvit/payments/v1alpha/product.proto +0 -38
- package/schema/devvit/plugin/payments/v1alpha/payments.proto +0 -62
- package/types/devvit/actor/payments/v1alpha/payments.d.ts +0 -168
- package/types/devvit/actor/payments/v1alpha/payments.d.ts.map +0 -1
- package/types/devvit/actor/payments/v1alpha/payments.js +0 -273
- package/types/devvit/payments/v1alpha/common.d.ts +0 -15
- package/types/devvit/payments/v1alpha/common.d.ts.map +0 -1
- package/types/devvit/payments/v1alpha/common.js +0 -44
- package/types/devvit/payments/v1alpha/order.d.ts +0 -50
- package/types/devvit/payments/v1alpha/order.d.ts.map +0 -1
- package/types/devvit/payments/v1alpha/order.js +0 -220
- package/types/devvit/payments/v1alpha/product.d.ts +0 -68
- package/types/devvit/payments/v1alpha/product.d.ts.map +0 -1
- package/types/devvit/payments/v1alpha/product.js +0 -300
- package/types/devvit/plugin/payments/v1alpha/payments.d.ts +0 -249
- package/types/devvit/plugin/payments/v1alpha/payments.d.ts.map +0 -1
- package/types/devvit/plugin/payments/v1alpha/payments.js +0 -673
@@ -344,11 +344,6 @@ message PostFirehose {
|
|
344
344
|
(devvit.options.trigger_evt_path) = "post.author_id",
|
345
345
|
(openapi.field_example) = "t2_bcutkf4n"
|
346
346
|
];
|
347
|
-
// Urls to images in the gallery
|
348
|
-
repeated string gallery_images = 28 [
|
349
|
-
(devvit.options.trigger_evt_path) = "post.gallery_images",
|
350
|
-
(openapi.field_example) = "['http://i.redd.it/btosxb4kw47d1.jpg', 'http://i.redd.it/btosxb4kw47d1.jpg']"
|
351
|
-
];
|
352
347
|
// removed fields
|
353
348
|
reserved 7, 8;
|
354
349
|
reserved "trending_score", "toxicity_score";
|
@@ -667,12 +662,6 @@ message UserFirehose {
|
|
667
662
|
(openapi.field_example) = "https://i.redd.it/snoovatar/avatars/84cb29a7-9219-45e9-a572-eb170ab34c3e.png"
|
668
663
|
];
|
669
664
|
|
670
|
-
// User profile "about description"
|
671
|
-
string description = 11 [
|
672
|
-
(devvit.options.trigger_evt_path) = "author.description",
|
673
|
-
(openapi.field_example) = "Dog lover, foodie, and tech enthusiast."
|
674
|
-
];
|
675
|
-
|
676
665
|
// removed fields
|
677
666
|
reserved 3, 5, 6;
|
678
667
|
reserved "account_age", "community_karma", "reputation_score";
|
@@ -106,10 +106,6 @@ message UploadNewMediaRequest {
|
|
106
106
|
string hash = 4;
|
107
107
|
// The contents of the file.
|
108
108
|
bytes contents = 5;
|
109
|
-
// Make this asset available for webview consumption _instead_ of app UI consumption.
|
110
|
-
optional bool webview_asset = 6;
|
111
|
-
// The path of the file in the project assets. Necessary for webview assets.
|
112
|
-
optional string file_path = 7;
|
113
109
|
}
|
114
110
|
|
115
111
|
// Used to update an existing app's information.
|
@@ -142,9 +138,6 @@ message AppUpdateRequest {
|
|
142
138
|
|
143
139
|
// What is the default compute pool that new versions should be assigned?
|
144
140
|
optional app_version.info.ComputePool default_pool = 10;
|
145
|
-
|
146
|
-
// Is the app allowed to use the webview block and manage webview assets?
|
147
|
-
optional bool is_webview_enabled = 11;
|
148
141
|
}
|
149
142
|
|
150
143
|
// endregion
|
@@ -3,9 +3,9 @@ syntax = "proto3";
|
|
3
3
|
package devvit.dev_portal.app.info;
|
4
4
|
|
5
5
|
import "devvit/dev_portal/app/categories/categories.proto";
|
6
|
-
import "devvit/dev_portal/app_version/info/app_version_info.proto";
|
7
6
|
import "devvit/dev_portal/reddit/redditor.proto";
|
8
7
|
import "google/protobuf/timestamp.proto";
|
8
|
+
import "devvit/dev_portal/app_version/info/app_version_info.proto";
|
9
9
|
|
10
10
|
option go_package = "github.snooguts.net/reddit/reddit-devplatform-monorepo/go-common/generated/protos/types/devvit/devportal/app/info";
|
11
11
|
|
@@ -24,7 +24,6 @@ message AppInfo {
|
|
24
24
|
bool is_delisted = 6;
|
25
25
|
bool is_first_party = 13;
|
26
26
|
bool is_archived = 14;
|
27
|
-
bool is_webview_enabled = 17;
|
28
27
|
|
29
28
|
google.protobuf.Timestamp created_at = 7;
|
30
29
|
devvit.dev_portal.reddit.Redditor owner = 8;
|
@@ -33,8 +32,8 @@ message AppInfo {
|
|
33
32
|
string terms_and_conditions = 11;
|
34
33
|
string privacy_policy = 12;
|
35
34
|
|
35
|
+
// Last number is 15, app_account; next number is 16
|
36
36
|
devvit.dev_portal.app_version.info.ComputePool default_pool = 16;
|
37
|
-
// Last number is 17, is_webview_enabled; next number is 18
|
38
37
|
}
|
39
38
|
|
40
39
|
message MultipleAppInfos {
|
@@ -8,8 +8,6 @@ option java_package = "com.reddit.devvit.plugin.assetresolver";
|
|
8
8
|
message GetAssetURLRequest {
|
9
9
|
// The path to the asset relative to the /assets directory of the project
|
10
10
|
string path = 1;
|
11
|
-
// If true, look for a webview asset instead of a standard asset
|
12
|
-
optional bool webview = 2;
|
13
11
|
}
|
14
12
|
|
15
13
|
message GetAssetURLResponse {
|
@@ -4,7 +4,6 @@ package devvit.plugin.buildpack;
|
|
4
4
|
|
5
5
|
import "devvit/plugin/buildpack/filesystem.proto";
|
6
6
|
import "devvit/runtime/bundle.proto";
|
7
|
-
import "google/protobuf/wrappers.proto";
|
8
7
|
|
9
8
|
option go_package = "github.snooguts.net/reddit/reddit-devplatform-monorepo/go-common/generated/protos/types/devvit/plugin/buildpack";
|
10
9
|
|
@@ -12,10 +11,6 @@ option go_package = "github.snooguts.net/reddit/reddit-devplatform-monorepo/go-c
|
|
12
11
|
message Bundle {
|
13
12
|
// See LinkedBundle.code.
|
14
13
|
string code = 1;
|
15
|
-
|
16
|
-
// See LinkedBundle.source_map.
|
17
|
-
google.protobuf.StringValue source_map = 7;
|
18
|
-
|
19
14
|
// This is the the detail on the bundle itself **and** its dependendencies.
|
20
15
|
//
|
21
16
|
// to-do: Can we can rename to "spec" or something like that. This is really
|
@@ -36,11 +31,6 @@ message Bundle {
|
|
36
31
|
// values are the devvit asset ids used to look up the asset during upload
|
37
32
|
// e.g. "images/en/banner.jpg": "30d509ee-208d-4b45-86b8-b48ef48cc524",
|
38
33
|
map<string, string> asset_ids = 5;
|
39
|
-
|
40
|
-
// This map contains html assets from the webroot directory for use in a webview.
|
41
|
-
// It has the same structure as asset_ids but is rooted in the webroot directory
|
42
|
-
// and is isolated from regular assets.
|
43
|
-
map<string, string> webview_asset_ids = 6;
|
44
34
|
}
|
45
35
|
|
46
36
|
message CompileParams {
|
@@ -605,22 +605,4 @@ message ApiClientConfig {
|
|
605
605
|
// Some requests involve sending a specific `kind` field that's not otherwise part of the
|
606
606
|
// request message. If this field is specified, that will be included in the request.
|
607
607
|
string request_kind_value = 5;
|
608
|
-
|
609
|
-
// If set, the thing specified in the input message's field specified by `validate_content_id_context`
|
610
|
-
// must belong to the subreddit in the call's metadata before the call is allowed to proceed.
|
611
|
-
//
|
612
|
-
// For example, setting:
|
613
|
-
// option (devvit.plugin.redditapi.common.api_client_config).validate_content_id_context = 'id';
|
614
|
-
// will test that the input message's `id` field contains a thing (post/comment) that belongs
|
615
|
-
// to the subreddit in the call's metadata.
|
616
|
-
string validate_content_id_context = 6;
|
617
|
-
|
618
|
-
// If set, the subreddit specified in the input message's field specified by `validate_subreddit_context`
|
619
|
-
// must match the subreddit in the call's metadata before the call is allowed to proceed.
|
620
|
-
//
|
621
|
-
// For example, setting:
|
622
|
-
// option (devvit.plugin.redditapi.common.api_client_config).validate_subreddit_context = 'subreddit';
|
623
|
-
// will test that the input message's `subreddit` field contains a subreddit *name* matches the subreddit
|
624
|
-
// in the call's metadata.
|
625
|
-
string validate_subreddit_context = 7;
|
626
608
|
}
|
@@ -29,14 +29,18 @@ service Listings {
|
|
29
29
|
// Get a comment tree for a Post
|
30
30
|
//
|
31
31
|
// @see {@link https://www.reddit.com/dev/api#GET_comments_\{article\}}
|
32
|
-
|
33
|
-
|
32
|
+
rpc Comments(GetCommentsRequest) returns (ListingResponse) {
|
33
|
+
option (devvit.plugin.redditapi.common.api_client_config).method = 'GET';
|
34
|
+
option (devvit.plugin.redditapi.common.api_client_config).path = '/comments/{article}.json?comment={comment}&context={context}&depth={depth}&limit={limit}&sort={sort}&threaded={threaded}&truncate={truncate}';
|
35
|
+
}
|
34
36
|
|
35
37
|
// Find duplicate posts that reference the same URL as this Post
|
36
38
|
//
|
37
39
|
// @see {@link https://www.reddit.com/dev/api#GET_duplicates_\{article\}}
|
38
|
-
|
39
|
-
|
40
|
+
rpc Duplicates(GetDuplicatesRequest) returns (ListingResponse) {
|
41
|
+
option (devvit.plugin.redditapi.common.api_client_config).method = 'GET';
|
42
|
+
option (devvit.plugin.redditapi.common.api_client_config).path = '/duplicates/{article}.json?before={before}&after={after}&limit={limit}&sort={sort}&sr={sr}&count={count}&crossposts_only={crossposts_only}&show={show}';
|
43
|
+
}
|
40
44
|
|
41
45
|
// Listing with Hot sort
|
42
46
|
//
|
@@ -16,56 +16,48 @@ service Moderation {
|
|
16
16
|
rpc AboutLog(AboutLogRequest) returns (AboutLogResponse) {
|
17
17
|
option (devvit.plugin.redditapi.common.api_client_config).method = 'GET';
|
18
18
|
option (devvit.plugin.redditapi.common.api_client_config).path = '/r/{subreddit}/about/log?after={after}&before={before}&count={count}&limit={limit}&show={show}&mod={mod}&type={type}';
|
19
|
-
option (devvit.plugin.redditapi.common.api_client_config).validate_subreddit_context = 'subreddit';
|
20
19
|
}
|
21
20
|
|
22
21
|
// https://www.reddit.com/dev/api#GET_about_\{location\}
|
23
22
|
rpc AboutLocation(AboutLocationRequest) returns (devvit.plugin.redditapi.common.Listing) {
|
24
23
|
option (devvit.plugin.redditapi.common.api_client_config).method = 'GET';
|
25
24
|
option (devvit.plugin.redditapi.common.api_client_config).path = '/r/{subreddit}/about/{location}?after={after}&before={before}&count={count}&limit={limit}&show={show}&only={only}';
|
26
|
-
option (devvit.plugin.redditapi.common.api_client_config).validate_subreddit_context = 'subreddit';
|
27
25
|
}
|
28
26
|
|
29
27
|
// https://www.reddit.com/dev/api#GET_about_\reports
|
30
28
|
rpc AboutReports(AboutLocationRequest) returns (devvit.plugin.redditapi.common.Listing) {
|
31
29
|
option (devvit.plugin.redditapi.common.api_client_config).method = 'GET';
|
32
30
|
option (devvit.plugin.redditapi.common.api_client_config).path = '/r/{subreddit}/about/reports?after={after}&before={before}&count={count}&limit={limit}&show={show}&only={only}';
|
33
|
-
option (devvit.plugin.redditapi.common.api_client_config).validate_subreddit_context = 'subreddit';
|
34
31
|
}
|
35
32
|
|
36
33
|
// https://www.reddit.com/dev/api#GET_about_\spam
|
37
34
|
rpc AboutSpam(AboutLocationRequest) returns (devvit.plugin.redditapi.common.Listing) {
|
38
35
|
option (devvit.plugin.redditapi.common.api_client_config).method = 'GET';
|
39
36
|
option (devvit.plugin.redditapi.common.api_client_config).path = '/r/{subreddit}/about/spam?after={after}&before={before}&count={count}&limit={limit}&show={show}&only={only}';
|
40
|
-
option (devvit.plugin.redditapi.common.api_client_config).validate_subreddit_context = 'subreddit';
|
41
37
|
}
|
42
38
|
|
43
39
|
// https://www.reddit.com/dev/api#GET_about_\modqueue
|
44
40
|
rpc AboutModqueue(AboutLocationRequest) returns (devvit.plugin.redditapi.common.Listing) {
|
45
41
|
option (devvit.plugin.redditapi.common.api_client_config).method = 'GET';
|
46
42
|
option (devvit.plugin.redditapi.common.api_client_config).path = '/r/{subreddit}/about/modqueue?after={after}&before={before}&count={count}&limit={limit}&show={show}&only={only}';
|
47
|
-
option (devvit.plugin.redditapi.common.api_client_config).validate_subreddit_context = 'subreddit';
|
48
43
|
}
|
49
44
|
|
50
45
|
// https://www.reddit.com/dev/api#GET_about_\unmoderated
|
51
46
|
rpc AboutUnmoderated(AboutLocationRequest) returns (devvit.plugin.redditapi.common.Listing) {
|
52
47
|
option (devvit.plugin.redditapi.common.api_client_config).method = 'GET';
|
53
48
|
option (devvit.plugin.redditapi.common.api_client_config).path = '/r/{subreddit}/about/unmoderated?after={after}&before={before}&count={count}&limit={limit}&show={show}&only={only}';
|
54
|
-
option (devvit.plugin.redditapi.common.api_client_config).validate_subreddit_context = 'subreddit';
|
55
49
|
}
|
56
50
|
|
57
51
|
// https://www.reddit.com/dev/api#GET_about_\edited
|
58
52
|
rpc AboutEdited(AboutLocationRequest) returns (devvit.plugin.redditapi.common.Listing) {
|
59
53
|
option (devvit.plugin.redditapi.common.api_client_config).method = 'GET';
|
60
54
|
option (devvit.plugin.redditapi.common.api_client_config).path = '/r/{subreddit}/about/edited?after={after}&before={before}&count={count}&limit={limit}&show={show}&only={only}';
|
61
|
-
option (devvit.plugin.redditapi.common.api_client_config).validate_subreddit_context = 'subreddit';
|
62
55
|
}
|
63
56
|
|
64
57
|
// https://www.reddit.com/dev/api#POST_api_accept_moderator_invite
|
65
58
|
rpc AcceptModeratorInvite(AcceptModeratorInviteRequest) returns (devvit.plugin.redditapi.common.JsonStatus) {
|
66
59
|
option (devvit.plugin.redditapi.common.api_client_config).method = 'POST';
|
67
60
|
option (devvit.plugin.redditapi.common.api_client_config).path = '/r/{subreddit}/api/accept_moderator_invite';
|
68
|
-
option (devvit.plugin.redditapi.common.api_client_config).validate_subreddit_context = 'subreddit';
|
69
61
|
}
|
70
62
|
|
71
63
|
// https://www.reddit.com/dev/api#POST_api_approve
|
@@ -73,7 +65,6 @@ service Moderation {
|
|
73
65
|
option (devvit.plugin.redditapi.common.api_client_config).method = 'POST';
|
74
66
|
option (devvit.plugin.redditapi.common.api_client_config).path = '/api/approve';
|
75
67
|
option (devvit.plugin.redditapi.common.api_client_config).request_body_type = FORM_CAMEL;
|
76
|
-
option (devvit.plugin.redditapi.common.api_client_config).validate_content_id_context = 'id';
|
77
68
|
}
|
78
69
|
|
79
70
|
// https://www.reddit.com/dev/api#POST_api_distinguish
|
@@ -82,7 +73,6 @@ service Moderation {
|
|
82
73
|
option (devvit.plugin.redditapi.common.api_client_config).path = '/api/distinguish';
|
83
74
|
option (devvit.plugin.redditapi.common.api_client_config).request_body_type = FORM_SNAKE;
|
84
75
|
option (devvit.plugin.redditapi.common.api_client_config).enforce_json = true;
|
85
|
-
option (devvit.plugin.redditapi.common.api_client_config).validate_content_id_context = 'id';
|
86
76
|
}
|
87
77
|
|
88
78
|
// https://www.reddit.com/dev/api#POST_api_ignore_reports
|
@@ -90,7 +80,6 @@ service Moderation {
|
|
90
80
|
option (devvit.plugin.redditapi.common.api_client_config).method = 'POST';
|
91
81
|
option (devvit.plugin.redditapi.common.api_client_config).path = '/api/ignore_reports';
|
92
82
|
option (devvit.plugin.redditapi.common.api_client_config).request_body_type = FORM_CAMEL;
|
93
|
-
option (devvit.plugin.redditapi.common.api_client_config).validate_content_id_context = 'id';
|
94
83
|
}
|
95
84
|
|
96
85
|
// https://www.reddit.com/dev/api#POST_api_leavecontributor
|
@@ -119,7 +108,6 @@ service Moderation {
|
|
119
108
|
option (devvit.plugin.redditapi.common.api_client_config).method = 'POST';
|
120
109
|
option (devvit.plugin.redditapi.common.api_client_config).path = '/api/remove';
|
121
110
|
option (devvit.plugin.redditapi.common.api_client_config).request_body_type = FORM_CAMEL;
|
122
|
-
option (devvit.plugin.redditapi.common.api_client_config).validate_content_id_context = 'id';
|
123
111
|
}
|
124
112
|
|
125
113
|
// https://www.reddit.com/dev/api#POST_api_show_comment
|
@@ -127,7 +115,6 @@ service Moderation {
|
|
127
115
|
option (devvit.plugin.redditapi.common.api_client_config).method = 'POST';
|
128
116
|
option (devvit.plugin.redditapi.common.api_client_config).path = '/api/show_comment';
|
129
117
|
option (devvit.plugin.redditapi.common.api_client_config).request_body_type = FORM_CAMEL;
|
130
|
-
option (devvit.plugin.redditapi.common.api_client_config).validate_content_id_context = 'id';
|
131
118
|
}
|
132
119
|
|
133
120
|
// https://www.reddit.com/dev/api#POST_api_snooze_reports
|
@@ -135,7 +122,6 @@ service Moderation {
|
|
135
122
|
option (devvit.plugin.redditapi.common.api_client_config).method = 'POST';
|
136
123
|
option (devvit.plugin.redditapi.common.api_client_config).path = '/api/snooze_reports';
|
137
124
|
option (devvit.plugin.redditapi.common.api_client_config).request_body_type = FORM_CAMEL;
|
138
|
-
option (devvit.plugin.redditapi.common.api_client_config).validate_content_id_context = 'id';
|
139
125
|
}
|
140
126
|
|
141
127
|
// https://www.reddit.com/dev/api#POST_api_unignore_reports
|
@@ -143,7 +129,6 @@ service Moderation {
|
|
143
129
|
option (devvit.plugin.redditapi.common.api_client_config).method = 'POST';
|
144
130
|
option (devvit.plugin.redditapi.common.api_client_config).path = '/api/unignore_reports';
|
145
131
|
option (devvit.plugin.redditapi.common.api_client_config).request_body_type = FORM_CAMEL;
|
146
|
-
option (devvit.plugin.redditapi.common.api_client_config).validate_content_id_context = 'id';
|
147
132
|
}
|
148
133
|
|
149
134
|
// https://www.reddit.com/dev/api#POST_api_unmute_message_author
|
@@ -158,7 +143,6 @@ service Moderation {
|
|
158
143
|
option (devvit.plugin.redditapi.common.api_client_config).method = 'POST';
|
159
144
|
option (devvit.plugin.redditapi.common.api_client_config).path = '/api/unsnooze_reports';
|
160
145
|
option (devvit.plugin.redditapi.common.api_client_config).request_body_type = FORM_CAMEL;
|
161
|
-
option (devvit.plugin.redditapi.common.api_client_config).validate_content_id_context = 'id';
|
162
146
|
}
|
163
147
|
|
164
148
|
// https://www.reddit.com/dev/api#POST_api_update_crowd_control_level
|
@@ -166,7 +150,6 @@ service Moderation {
|
|
166
150
|
option (devvit.plugin.redditapi.common.api_client_config).method = 'POST';
|
167
151
|
option (devvit.plugin.redditapi.common.api_client_config).path = '/api/update_crowd_control_level';
|
168
152
|
option (devvit.plugin.redditapi.common.api_client_config).request_body_type = FORM_CAMEL;
|
169
|
-
option (devvit.plugin.redditapi.common.api_client_config).validate_content_id_context = 'id';
|
170
153
|
}
|
171
154
|
|
172
155
|
// https://www.reddit.com/dev/api#GET_stylesheet
|
@@ -65,10 +65,6 @@ message PostV2 {
|
|
65
65
|
bool is_multi_media = 39;
|
66
66
|
string type = 40;
|
67
67
|
bool unlisted = 41;
|
68
|
-
repeated string gallery_images = 42;
|
69
|
-
|
70
|
-
// Indicates if the post contains a single image rather than a gallery of multiple images, which is indicated by the is_gallery field.
|
71
|
-
bool is_image = 43;
|
72
68
|
}
|
73
69
|
|
74
70
|
message Oembed {
|
@@ -92,9 +92,6 @@ message LinkedBundle {
|
|
92
92
|
// runtime should resolve this as a remote actor accessible over the network;
|
93
93
|
// this is empty for "skinny bundles" (AKA Gateway bundles).
|
94
94
|
string code = 2;
|
95
|
-
// Source map accompanying code. This should be a JSON string containing the
|
96
|
-
// source map bundle accompanying the code. Not required.
|
97
|
-
google.protobuf.StringValue source_map = 10;
|
98
95
|
// Actor hostname. This may be a plugin or a user. See DependencySpec.hostname
|
99
96
|
// which Community Portal copies here.
|
100
97
|
string hostname = 3;
|
@@ -115,12 +112,6 @@ message LinkedBundle {
|
|
115
112
|
// is the path to the asset, and the value is the URL to the asset.
|
116
113
|
// e.g. "images/example.png": "https://i.redd.it/example.png",
|
117
114
|
map<string, string> assets = 8;
|
118
|
-
|
119
|
-
// This map is used to resolve assets for the webview block. It will only
|
120
|
-
// contain references to the html files in the webroot assets directory.
|
121
|
-
map<string, string> webview_assets = 9;
|
122
|
-
|
123
|
-
// next: 11;
|
124
115
|
}
|
125
116
|
|
126
117
|
// Detail about the tooling used to construct a LinkedBundle.
|
@@ -53,9 +53,6 @@ message UIResponse {
|
|
53
53
|
// Stateful data to be sent back. Event responses only contain state deltas to
|
54
54
|
// allow the requester to aggregate and reconcile local and remote state. This
|
55
55
|
// will be sent back to you in the next request.
|
56
|
-
//
|
57
|
-
// Note that the deltas also may include "tombstones" which must be used to delete
|
58
|
-
// keys from the state. This is useful for cleaning up state that is no longer needed.
|
59
56
|
optional google.protobuf.Struct state = 1;
|
60
57
|
|
61
58
|
// Optional list of Effects to execute on the client
|
@@ -11,16 +11,6 @@ import "google/protobuf/wrappers.proto";
|
|
11
11
|
option go_package = "github.snooguts.net/reddit/reddit-devplatform-monorepo/go-common/generated/protos/types/devvit/ui/events/v1alpha";
|
12
12
|
option java_package = "com.reddit.devvit.ui.events.v1alpha";
|
13
13
|
|
14
|
-
// This is set when we want to map events to a specific runtime, examples:
|
15
|
-
// [1] incoming realtime messages on a websocket connection
|
16
|
-
// [2] keydown events in a text input block
|
17
|
-
// Both are intended to be run only on local runtime
|
18
|
-
enum UIEventScope {
|
19
|
-
ALL = 0;
|
20
|
-
LOCAL = 1;
|
21
|
-
REMOTE = 2;
|
22
|
-
}
|
23
|
-
|
24
14
|
message UIEvent {
|
25
15
|
oneof event {
|
26
16
|
devvit.ui.effects.v1alpha.RealtimeSubscriptionEvent realtime_event = 2;
|
@@ -40,19 +30,15 @@ message UIEvent {
|
|
40
30
|
// effects.
|
41
31
|
google.protobuf.BoolValue async = 15;
|
42
32
|
|
33
|
+
// This is set for circuit-broken or fetchy events that are known to only work on the
|
34
|
+
// remote runtime.
|
35
|
+
google.protobuf.BoolValue remote_only = 16;
|
36
|
+
|
43
37
|
// The id of a the hook that should respond to this event
|
44
38
|
google.protobuf.StringValue hook = 10;
|
45
39
|
|
46
40
|
// Signals if this event should be sent to the front (true) or back of the queue (false)
|
47
41
|
google.protobuf.BoolValue retry = 17;
|
48
|
-
|
49
|
-
optional UIEventScope scope = 18;
|
50
|
-
|
51
|
-
// Deprecate remote_only boolean field which is intended
|
52
|
-
// for circuit-broken or fetchy events that are known to only
|
53
|
-
// work on the remote runtime.
|
54
|
-
reserved 16;
|
55
|
-
reserved "remote_only";
|
56
42
|
}
|
57
43
|
|
58
44
|
/**
|