@devvit/protos 0.11.6-next-2025-01-13-6cc27b78a.0 → 0.11.6-next-2025-01-14-e87112d67.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.6-next-2025-01-13-6cc27b78a.0",
3
+ "version": "0.11.6-next-2025-01-14-e87112d67.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.6-next-2025-01-13-6cc27b78a.0",
49
- "@devvit/tsconfig": "0.11.6-next-2025-01-13-6cc27b78a.0",
48
+ "@devvit/repo-tools": "0.11.6-next-2025-01-14-e87112d67.0",
49
+ "@devvit/tsconfig": "0.11.6-next-2025-01-14-e87112d67.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": "827db7454a3b8044d9ff3cf1b2360ef720b30910"
83
+ "gitHead": "cc32b6b6a73e265a411fbd1b2fd4f18924cddb37"
84
84
  }
@@ -13,3 +13,20 @@ service SubredditMetadataResolver {
13
13
  message SubredditMetadataRequest {
14
14
  string subreddit = 1; // t5_ subreddit id
15
15
  }
16
+
17
+ // Temporary migration service as we move subreddit metadata loading from gateway-v1 to gateway-graphql.
18
+ // This traffic should generally be replaced with calls to DevvitSubredditService.BatchGetSubredditManifest.
19
+
20
+ service BatchSubredditMetadataResolver {
21
+ rpc BatchGetLegacySubredditMetadata(BatchSubredditMetadataRequest) returns (BatchSubredditMetadataResponse);
22
+ }
23
+
24
+ message BatchSubredditMetadataRequest {
25
+ repeated string subreddit = 1; // t5_ subreddit id
26
+ }
27
+
28
+ message BatchSubredditMetadataResponse {
29
+ // JSON-encoded dump of devvit.gql.DevvitSubredditMetadata for
30
+ // this subreddit.
31
+ repeated string metadata = 1;
32
+ }
@@ -7,10 +7,10 @@ import "google/protobuf/empty.proto";
7
7
 
8
8
  option go_package = "github.snooguts.net/reddit/reddit-devplatform-monorepo/go-common/generated/protos/types/devvit/service";
9
9
 
10
- // Fetch a bundle by its hostname
10
+ // Fetch a bundle
11
11
  message BundleRequest {
12
- // Must be legal name for filesystem. Eg, LinkedBundle.hostname. 'main.local'
13
- string hostname = 1;
12
+ // Must be an identifier for the bundle, i.e. an app ID (UUID) in prod, or "untitled-1234567890" from play
13
+ string actor_id = 1;
14
14
  }
15
15
 
16
16
  service BundleService {
@@ -1,5 +1,5 @@
1
1
  ## Code generated by protoc, converted to text by Snootobuf. DO NOT EDIT.
2
- ## checksum: 6e571b345aa2f11796405ea23f8a1a9de214f274b398c62c7f6431bf742765ec
2
+ ## checksum: cec4070e4c3c763efae73844e3d9787f1425bbc50af5a244e74222628906c386
3
3
 
4
4
  file: {
5
5
  message_type: {
@@ -134760,6 +134760,26 @@ file: {
134760
134760
  }
134761
134761
  name: "SubredditMetadataRequest"
134762
134762
  }
134763
+ message_type: {
134764
+ field: {
134765
+ json_name: "subreddit"
134766
+ label: LABEL_REPEATED
134767
+ name: "subreddit"
134768
+ number: 1
134769
+ type: TYPE_STRING
134770
+ }
134771
+ name: "BatchSubredditMetadataRequest"
134772
+ }
134773
+ message_type: {
134774
+ field: {
134775
+ json_name: "metadata"
134776
+ label: LABEL_REPEATED
134777
+ name: "metadata"
134778
+ number: 1
134779
+ type: TYPE_STRING
134780
+ }
134781
+ name: "BatchSubredditMetadataResponse"
134782
+ }
134763
134783
  name: "devvit/gateway/resolvers.proto"
134764
134784
  options: {
134765
134785
  go_package: "github.snooguts.net/reddit/reddit-devplatform-monorepo/go-common/generated/protos/types/devvit/gateway"
@@ -134773,12 +134793,20 @@ file: {
134773
134793
  }
134774
134794
  name: "SubredditMetadataResolver"
134775
134795
  }
134796
+ service: {
134797
+ method: {
134798
+ input_type: ".devvit.gateway.BatchSubredditMetadataRequest"
134799
+ name: "BatchGetLegacySubredditMetadata"
134800
+ output_type: ".devvit.gateway.BatchSubredditMetadataResponse"
134801
+ }
134802
+ name: "BatchSubredditMetadataResolver"
134803
+ }
134776
134804
  source_code_info: {
134777
134805
  location: {
134778
134806
  span: 0
134779
134807
  span: 0
134780
134808
  span: 1
134781
- span: 14
134809
+ span: 31
134782
134810
  }
134783
134811
  location: {
134784
134812
  path: 12
@@ -134923,6 +134951,194 @@ file: {
134923
134951
  span: 21
134924
134952
  span: 22
134925
134953
  }
134954
+ location: {
134955
+ leading_detached_comments: " Temporary migration service as we move subreddit metadata loading from gateway-v1 to gateway-graphql.\n This traffic should generally be replaced with calls to DevvitSubredditService.BatchGetSubredditManifest.\n"
134956
+ path: 1
134957
+ path: 6
134958
+ span: 0
134959
+ span: 1
134960
+ span: 19
134961
+ span: 21
134962
+ }
134963
+ location: {
134964
+ path: 1
134965
+ path: 1
134966
+ path: 6
134967
+ span: 19
134968
+ span: 38
134969
+ span: 8
134970
+ }
134971
+ location: {
134972
+ path: 0
134973
+ path: 1
134974
+ path: 2
134975
+ path: 6
134976
+ span: 110
134977
+ span: 2
134978
+ span: 20
134979
+ }
134980
+ location: {
134981
+ path: 0
134982
+ path: 1
134983
+ path: 1
134984
+ path: 2
134985
+ path: 6
134986
+ span: 20
134987
+ span: 37
134988
+ span: 6
134989
+ }
134990
+ location: {
134991
+ path: 0
134992
+ path: 1
134993
+ path: 2
134994
+ path: 2
134995
+ path: 6
134996
+ span: 20
134997
+ span: 38
134998
+ span: 67
134999
+ }
135000
+ location: {
135001
+ path: 0
135002
+ path: 1
135003
+ path: 2
135004
+ path: 3
135005
+ path: 6
135006
+ span: 108
135007
+ span: 20
135008
+ span: 78
135009
+ }
135010
+ location: {
135011
+ path: 1
135012
+ path: 4
135013
+ span: 0
135014
+ span: 1
135015
+ span: 23
135016
+ span: 25
135017
+ }
135018
+ location: {
135019
+ path: 1
135020
+ path: 1
135021
+ path: 4
135022
+ span: 23
135023
+ span: 37
135024
+ span: 8
135025
+ }
135026
+ location: {
135027
+ path: 0
135028
+ path: 1
135029
+ path: 2
135030
+ path: 4
135031
+ span: 2
135032
+ span: 24
135033
+ span: 32
135034
+ trailing_comments: " t5_ subreddit id\n"
135035
+ }
135036
+ location: {
135037
+ path: 0
135038
+ path: 1
135039
+ path: 2
135040
+ path: 4
135041
+ path: 4
135042
+ span: 10
135043
+ span: 2
135044
+ span: 24
135045
+ }
135046
+ location: {
135047
+ path: 0
135048
+ path: 1
135049
+ path: 2
135050
+ path: 4
135051
+ path: 5
135052
+ span: 11
135053
+ span: 17
135054
+ span: 24
135055
+ }
135056
+ location: {
135057
+ path: 0
135058
+ path: 1
135059
+ path: 1
135060
+ path: 2
135061
+ path: 4
135062
+ span: 18
135063
+ span: 24
135064
+ span: 27
135065
+ }
135066
+ location: {
135067
+ path: 0
135068
+ path: 1
135069
+ path: 2
135070
+ path: 3
135071
+ path: 4
135072
+ span: 24
135073
+ span: 30
135074
+ span: 31
135075
+ }
135076
+ location: {
135077
+ path: 2
135078
+ path: 4
135079
+ span: 0
135080
+ span: 1
135081
+ span: 27
135082
+ span: 31
135083
+ }
135084
+ location: {
135085
+ path: 1
135086
+ path: 2
135087
+ path: 4
135088
+ span: 27
135089
+ span: 38
135090
+ span: 8
135091
+ }
135092
+ location: {
135093
+ leading_comments: " JSON-encoded dump of devvit.gql.DevvitSubredditMetadata for\n this subreddit.\n"
135094
+ path: 0
135095
+ path: 2
135096
+ path: 2
135097
+ path: 4
135098
+ span: 2
135099
+ span: 30
135100
+ span: 31
135101
+ }
135102
+ location: {
135103
+ path: 0
135104
+ path: 2
135105
+ path: 2
135106
+ path: 4
135107
+ path: 4
135108
+ span: 10
135109
+ span: 2
135110
+ span: 30
135111
+ }
135112
+ location: {
135113
+ path: 0
135114
+ path: 2
135115
+ path: 2
135116
+ path: 4
135117
+ path: 5
135118
+ span: 11
135119
+ span: 17
135120
+ span: 30
135121
+ }
135122
+ location: {
135123
+ path: 0
135124
+ path: 1
135125
+ path: 2
135126
+ path: 2
135127
+ path: 4
135128
+ span: 18
135129
+ span: 26
135130
+ span: 30
135131
+ }
135132
+ location: {
135133
+ path: 0
135134
+ path: 2
135135
+ path: 2
135136
+ path: 3
135137
+ path: 4
135138
+ span: 29
135139
+ span: 30
135140
+ span: 30
135141
+ }
134926
135142
  }
134927
135143
  syntax: "proto3"
134928
135144
  }
@@ -294373,9 +294589,9 @@ file: {
294373
294589
  dependency: "google/protobuf/empty.proto"
294374
294590
  message_type: {
294375
294591
  field: {
294376
- json_name: "hostname"
294592
+ json_name: "actorId"
294377
294593
  label: LABEL_OPTIONAL
294378
- name: "hostname"
294594
+ name: "actor_id"
294379
294595
  number: 1
294380
294596
  type: TYPE_STRING
294381
294597
  }
@@ -294446,7 +294662,7 @@ file: {
294446
294662
  span: 7
294447
294663
  }
294448
294664
  location: {
294449
- leading_comments: " Fetch a bundle by its hostname\n"
294665
+ leading_comments: " Fetch a bundle\n"
294450
294666
  path: 0
294451
294667
  path: 4
294452
294668
  span: 0
@@ -294463,7 +294679,7 @@ file: {
294463
294679
  span: 8
294464
294680
  }
294465
294681
  location: {
294466
- leading_comments: " Must be legal name for filesystem. Eg, LinkedBundle.hostname. 'main.local'\n"
294682
+ leading_comments: " Must be an identifier for the bundle, i.e. an app ID (UUID) in prod, or \"untitled-1234567890\" from play\n"
294467
294683
  path: 0
294468
294684
  path: 0
294469
294685
  path: 2
@@ -1,5 +1,5 @@
1
1
  ## Code generated by protoc, converted to text by Snootobuf. DO NOT EDIT.
2
- ## checksum: 9b5a8557cc7eaca5d525d5e5131f9b3fba260348c495f81bd2c871e7d2539f6a
2
+ ## checksum: 70eb8ea29125c6780860dce6859ed1bf485878a7c49d0c398444e465d1d186b1
3
3
 
4
4
  file: {
5
5
  message_type: {
@@ -134760,6 +134760,26 @@ file: {
134760
134760
  }
134761
134761
  name: "SubredditMetadataRequest"
134762
134762
  }
134763
+ message_type: {
134764
+ field: {
134765
+ json_name: "subreddit"
134766
+ label: LABEL_REPEATED
134767
+ name: "subreddit"
134768
+ number: 1
134769
+ type: TYPE_STRING
134770
+ }
134771
+ name: "BatchSubredditMetadataRequest"
134772
+ }
134773
+ message_type: {
134774
+ field: {
134775
+ json_name: "metadata"
134776
+ label: LABEL_REPEATED
134777
+ name: "metadata"
134778
+ number: 1
134779
+ type: TYPE_STRING
134780
+ }
134781
+ name: "BatchSubredditMetadataResponse"
134782
+ }
134763
134783
  name: "devvit/gateway/resolvers.proto"
134764
134784
  options: {
134765
134785
  go_package: "github.snooguts.net/reddit/reddit-devplatform-monorepo/go-common/generated/protos/types/devvit/gateway"
@@ -134773,12 +134793,20 @@ file: {
134773
134793
  }
134774
134794
  name: "SubredditMetadataResolver"
134775
134795
  }
134796
+ service: {
134797
+ method: {
134798
+ input_type: ".devvit.gateway.BatchSubredditMetadataRequest"
134799
+ name: "BatchGetLegacySubredditMetadata"
134800
+ output_type: ".devvit.gateway.BatchSubredditMetadataResponse"
134801
+ }
134802
+ name: "BatchSubredditMetadataResolver"
134803
+ }
134776
134804
  source_code_info: {
134777
134805
  location: {
134778
134806
  span: 0
134779
134807
  span: 0
134780
134808
  span: 1
134781
- span: 14
134809
+ span: 31
134782
134810
  }
134783
134811
  location: {
134784
134812
  path: 12
@@ -134923,6 +134951,194 @@ file: {
134923
134951
  span: 21
134924
134952
  span: 22
134925
134953
  }
134954
+ location: {
134955
+ leading_detached_comments: " Temporary migration service as we move subreddit metadata loading from gateway-v1 to gateway-graphql.\n This traffic should generally be replaced with calls to DevvitSubredditService.BatchGetSubredditManifest.\n"
134956
+ path: 1
134957
+ path: 6
134958
+ span: 0
134959
+ span: 1
134960
+ span: 19
134961
+ span: 21
134962
+ }
134963
+ location: {
134964
+ path: 1
134965
+ path: 1
134966
+ path: 6
134967
+ span: 19
134968
+ span: 38
134969
+ span: 8
134970
+ }
134971
+ location: {
134972
+ path: 0
134973
+ path: 1
134974
+ path: 2
134975
+ path: 6
134976
+ span: 110
134977
+ span: 2
134978
+ span: 20
134979
+ }
134980
+ location: {
134981
+ path: 0
134982
+ path: 1
134983
+ path: 1
134984
+ path: 2
134985
+ path: 6
134986
+ span: 20
134987
+ span: 37
134988
+ span: 6
134989
+ }
134990
+ location: {
134991
+ path: 0
134992
+ path: 1
134993
+ path: 2
134994
+ path: 2
134995
+ path: 6
134996
+ span: 20
134997
+ span: 38
134998
+ span: 67
134999
+ }
135000
+ location: {
135001
+ path: 0
135002
+ path: 1
135003
+ path: 2
135004
+ path: 3
135005
+ path: 6
135006
+ span: 108
135007
+ span: 20
135008
+ span: 78
135009
+ }
135010
+ location: {
135011
+ path: 1
135012
+ path: 4
135013
+ span: 0
135014
+ span: 1
135015
+ span: 23
135016
+ span: 25
135017
+ }
135018
+ location: {
135019
+ path: 1
135020
+ path: 1
135021
+ path: 4
135022
+ span: 23
135023
+ span: 37
135024
+ span: 8
135025
+ }
135026
+ location: {
135027
+ path: 0
135028
+ path: 1
135029
+ path: 2
135030
+ path: 4
135031
+ span: 2
135032
+ span: 24
135033
+ span: 32
135034
+ trailing_comments: " t5_ subreddit id\n"
135035
+ }
135036
+ location: {
135037
+ path: 0
135038
+ path: 1
135039
+ path: 2
135040
+ path: 4
135041
+ path: 4
135042
+ span: 10
135043
+ span: 2
135044
+ span: 24
135045
+ }
135046
+ location: {
135047
+ path: 0
135048
+ path: 1
135049
+ path: 2
135050
+ path: 4
135051
+ path: 5
135052
+ span: 11
135053
+ span: 17
135054
+ span: 24
135055
+ }
135056
+ location: {
135057
+ path: 0
135058
+ path: 1
135059
+ path: 1
135060
+ path: 2
135061
+ path: 4
135062
+ span: 18
135063
+ span: 24
135064
+ span: 27
135065
+ }
135066
+ location: {
135067
+ path: 0
135068
+ path: 1
135069
+ path: 2
135070
+ path: 3
135071
+ path: 4
135072
+ span: 24
135073
+ span: 30
135074
+ span: 31
135075
+ }
135076
+ location: {
135077
+ path: 2
135078
+ path: 4
135079
+ span: 0
135080
+ span: 1
135081
+ span: 27
135082
+ span: 31
135083
+ }
135084
+ location: {
135085
+ path: 1
135086
+ path: 2
135087
+ path: 4
135088
+ span: 27
135089
+ span: 38
135090
+ span: 8
135091
+ }
135092
+ location: {
135093
+ leading_comments: " JSON-encoded dump of devvit.gql.DevvitSubredditMetadata for\n this subreddit.\n"
135094
+ path: 0
135095
+ path: 2
135096
+ path: 2
135097
+ path: 4
135098
+ span: 2
135099
+ span: 30
135100
+ span: 31
135101
+ }
135102
+ location: {
135103
+ path: 0
135104
+ path: 2
135105
+ path: 2
135106
+ path: 4
135107
+ path: 4
135108
+ span: 10
135109
+ span: 2
135110
+ span: 30
135111
+ }
135112
+ location: {
135113
+ path: 0
135114
+ path: 2
135115
+ path: 2
135116
+ path: 4
135117
+ path: 5
135118
+ span: 11
135119
+ span: 17
135120
+ span: 30
135121
+ }
135122
+ location: {
135123
+ path: 0
135124
+ path: 1
135125
+ path: 2
135126
+ path: 2
135127
+ path: 4
135128
+ span: 18
135129
+ span: 26
135130
+ span: 30
135131
+ }
135132
+ location: {
135133
+ path: 0
135134
+ path: 2
135135
+ path: 2
135136
+ path: 3
135137
+ path: 4
135138
+ span: 29
135139
+ span: 30
135140
+ span: 30
135141
+ }
134926
135142
  }
134927
135143
  syntax: "proto3"
134928
135144
  }
@@ -294373,9 +294589,9 @@ file: {
294373
294589
  dependency: "google/protobuf/empty.proto"
294374
294590
  message_type: {
294375
294591
  field: {
294376
- json_name: "hostname"
294592
+ json_name: "actorId"
294377
294593
  label: LABEL_OPTIONAL
294378
- name: "hostname"
294594
+ name: "actor_id"
294379
294595
  number: 1
294380
294596
  type: TYPE_STRING
294381
294597
  }
@@ -294446,7 +294662,7 @@ file: {
294446
294662
  span: 7
294447
294663
  }
294448
294664
  location: {
294449
- leading_comments: " Fetch a bundle by its hostname\n"
294665
+ leading_comments: " Fetch a bundle\n"
294450
294666
  path: 0
294451
294667
  path: 4
294452
294668
  span: 0
@@ -294463,7 +294679,7 @@ file: {
294463
294679
  span: 8
294464
294680
  }
294465
294681
  location: {
294466
- leading_comments: " Must be legal name for filesystem. Eg, LinkedBundle.hostname. 'main.local'\n"
294682
+ leading_comments: " Must be an identifier for the bundle, i.e. an app ID (UUID) in prod, or \"untitled-1234567890\" from play\n"
294467
294683
  path: 0
294468
294684
  path: 0
294469
294685
  path: 2
@@ -295507,6 +295723,7 @@ file: {
295507
295723
  destination_file: "../../../go-common/generated/proxies/devvit/devportal/int/media/devportalmedia.go"
295508
295724
  destination_file: "../../../go-common/generated/proxies/devvit/devportal/waitlist/waitlist.go"
295509
295725
  destination_file: "../../../go-common/generated/proxies/devvit/events/realtime.go"
295726
+ destination_file: "../../../go-common/generated/proxies/devvit/gateway/batchsubredditmetadataresolver.go"
295510
295727
  destination_file: "../../../go-common/generated/proxies/devvit/gateway/custompostsnapshotresolver.go"
295511
295728
  destination_file: "../../../go-common/generated/proxies/devvit/gateway/subredditmetadataresolver.go"
295512
295729
  destination_file: "../../../go-common/generated/proxies/devvit/gateway/triggers.go"