protobuf-platform 1.2.632 → 1.2.633

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/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.2.632",
3
+ "version": "1.2.633",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {
7
- "proto:build": "~/node-x64/bin/npm exec -- grpc_tools_node_protoc --version && sh ./update_protobuf.sh",
7
+ "proto:build": "npm exec -- grpc_tools_node_protoc --version && sh ./update_protobuf.sh",
8
8
  "proto:install:x64": "rm -rf node_modules package-lock.json && ~/node-v22.21.1-darwin-x64/bin/npm install",
9
9
  "proto:build:x64": "~/node-v22.21.1-darwin-x64/bin/npm exec -- grpc_tools_node_protoc --version && sh ./update_protobuf.sh",
10
10
  "publish-update": "npm version patch --no-git-tag-version && npm publish",
@@ -15,6 +15,7 @@ service Tournament {
15
15
  rpc setTournamentScoringRule(TournamentScoringRuleRequest) returns (TournamentStatusResponse);
16
16
  rpc setTournamentRewards(TournamentRewardsRequest) returns (TournamentStatusResponse);
17
17
  rpc setTournamentContent(TournamentContentRequest) returns (TournamentStatusResponse);
18
+ rpc upsertTournamentLocalization(stream TournamentLocalizationUpsertRequest) returns (TournamentStatusResponse);
18
19
  rpc addGamesIntoTournament(TournamentGamesRequest) returns (TournamentStatusResponse);
19
20
  rpc removeGamesFromTournament(TournamentGamesRequest) returns (TournamentStatusResponse);
20
21
  rpc updateTournamentsInBunch(ItemsBunchRequest) returns (TournamentStatusResponse);
@@ -85,6 +86,8 @@ message TournamentItem {
85
86
  optional uint64 finished_in_milliseconds = 21;
86
87
  optional string image_small = 22;
87
88
  optional string image_small_cdn = 23;
89
+ optional string portrait_image = 24;
90
+ optional string portrait_image_cdn = 25;
88
91
  }
89
92
  message TournamentRequest {
90
93
  oneof request {
@@ -133,6 +136,7 @@ message TournamentStatusItemsResponse {
133
136
  }
134
137
  message GetTournamentSnapshotsByIdsRequest {
135
138
  repeated int32 ids = 1;
139
+ optional string locale = 2;
136
140
  }
137
141
  message TournamentSnapshotItem {
138
142
  int32 id = 1;
@@ -150,6 +154,8 @@ message TournamentSnapshotItem {
150
154
  optional string finished_at = 13;
151
155
  optional int32 current_members_count = 14;
152
156
  optional int32 max_members_count = 15;
157
+ optional string portrait_image = 16;
158
+ optional string portrait_image_cdn = 17;
153
159
  }
154
160
  message TournamentSnapshotItemsResponse {
155
161
  repeated TournamentSnapshotItem items = 1;
@@ -209,6 +215,12 @@ message ContentItem {
209
215
  optional string content = 4;
210
216
  optional string title = 5;
211
217
  optional string description = 6;
218
+ optional string image = 7;
219
+ optional string image_cdn = 8;
220
+ optional string image_small = 9;
221
+ optional string image_small_cdn = 10;
222
+ optional string portrait_image = 11;
223
+ optional string portrait_image_cdn = 12;
212
224
  }
213
225
  message TournamentContentRequest {
214
226
  int32 tournament_id = 1;
@@ -217,6 +229,22 @@ message TournamentContentRequest {
217
229
  optional string title = 4;
218
230
  optional string description = 5;
219
231
  }
232
+ message TournamentLocalizationRequest {
233
+ int32 tournament_id = 1;
234
+ string locale = 2;
235
+ optional string title = 3;
236
+ optional string description = 4;
237
+ optional string content = 5;
238
+ optional bool remove_desktop_image = 6;
239
+ optional bool remove_mobile_image = 7;
240
+ optional bool remove_portrait_image = 8;
241
+ }
242
+ message TournamentLocalizationUpsertRequest {
243
+ oneof request {
244
+ TournamentLocalizationRequest localization_data = 1;
245
+ File file = 2;
246
+ }
247
+ }
220
248
  message TournamentGamesRequest {
221
249
  int32 tournament_id = 1;
222
250
  repeated int32 game_ids = 2;
@@ -254,6 +282,8 @@ message UserTournamentItem {
254
282
  repeated RewardItem places = 20;
255
283
  optional string image_small = 21;
256
284
  optional string image_small_cdn = 22;
285
+ optional string portrait_image = 23;
286
+ optional string portrait_image_cdn = 24;
257
287
  }
258
288
  message UserTournamentItemsResponse {
259
289
  repeated UserTournamentItem items = 1;
@@ -295,6 +325,7 @@ message TournamentLeaderboardResponse {
295
325
  message GetOnlineTournamentInfoRequest {
296
326
  uint64 tournament_id = 1;
297
327
  uint64 user_id = 2; // gateway will provide from JWT
328
+ optional string locale = 3;
298
329
  }
299
330
 
300
331
  message OnlineTournamentInfoResponse {
@@ -311,6 +342,8 @@ message OnlineTournamentInfoResponse {
311
342
  optional TournamentLeaderboardUserItem me = 11; // MUST be returned by backend even if not in top20
312
343
  optional string image_small = 12;
313
344
  optional string image_small_cdn = 13;
345
+ optional string portrait_image = 14;
346
+ optional string portrait_image_cdn = 15;
314
347
  }
315
348
 
316
349
  message ResolveAutoTournamentForGameSessionRequest {
@@ -213,6 +213,17 @@ function deserialize_tournament_TournamentLeaderboardResponse(buffer_arg) {
213
213
  return tournament_pb.TournamentLeaderboardResponse.deserializeBinary(new Uint8Array(buffer_arg));
214
214
  }
215
215
 
216
+ function serialize_tournament_TournamentLocalizationUpsertRequest(arg) {
217
+ if (!(arg instanceof tournament_pb.TournamentLocalizationUpsertRequest)) {
218
+ throw new Error('Expected argument of type tournament.TournamentLocalizationUpsertRequest');
219
+ }
220
+ return Buffer.from(arg.serializeBinary());
221
+ }
222
+
223
+ function deserialize_tournament_TournamentLocalizationUpsertRequest(buffer_arg) {
224
+ return tournament_pb.TournamentLocalizationUpsertRequest.deserializeBinary(new Uint8Array(buffer_arg));
225
+ }
226
+
216
227
  function serialize_tournament_TournamentRequest(arg) {
217
228
  if (!(arg instanceof tournament_pb.TournamentRequest)) {
218
229
  throw new Error('Expected argument of type tournament.TournamentRequest');
@@ -447,6 +458,17 @@ createSingleTournament: {
447
458
  responseSerialize: serialize_tournament_TournamentStatusResponse,
448
459
  responseDeserialize: deserialize_tournament_TournamentStatusResponse,
449
460
  },
461
+ upsertTournamentLocalization: {
462
+ path: '/tournament.Tournament/upsertTournamentLocalization',
463
+ requestStream: true,
464
+ responseStream: false,
465
+ requestType: tournament_pb.TournamentLocalizationUpsertRequest,
466
+ responseType: tournament_pb.TournamentStatusResponse,
467
+ requestSerialize: serialize_tournament_TournamentLocalizationUpsertRequest,
468
+ requestDeserialize: deserialize_tournament_TournamentLocalizationUpsertRequest,
469
+ responseSerialize: serialize_tournament_TournamentStatusResponse,
470
+ responseDeserialize: deserialize_tournament_TournamentStatusResponse,
471
+ },
450
472
  addGamesIntoTournament: {
451
473
  path: '/tournament.Tournament/addGamesIntoTournament',
452
474
  requestStream: false,