protobuf-platform 1.2.108 → 1.2.110

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/cms/cms.proto CHANGED
@@ -70,6 +70,13 @@ service CMS {
70
70
  rpc deleteSingleFooterPayments (GetFooterPaymentsRequest) returns (FooterPaymentsStatusResponse);
71
71
  rpc readListFooterPayments (PaginationRequest) returns (FooterPaymentsItemsResponse);
72
72
  rpc updateFooterPaymentsInBunch (ItemsBunchRequest) returns (FooterPaymentsStatusResponse);
73
+ // Footer: Applications
74
+ rpc createSingleFooterApplications (stream FooterApplicationsRequest) returns (FooterApplicationsResponse);
75
+ rpc readSingleFooterApplications (GetFooterApplicationsRequest) returns (FooterApplicationsResponse);
76
+ rpc updateSingleFooterApplications (stream FooterApplicationsRequest) returns (FooterApplicationsResponse);
77
+ rpc deleteSingleFooterApplications (GetFooterApplicationsRequest) returns (FooterApplicationsStatusResponse);
78
+ rpc readListFooterApplications (PaginationRequest) returns (FooterApplicationsItemsResponse);
79
+ rpc updateFooterApplicationsInBunch(ItemsBunchRequest) returns (FooterApplicationsStatusResponse);
73
80
  //Game Widgets
74
81
  rpc createSingleGameWidget(stream GameWidgetRequest) returns (GameWidgetResponse);
75
82
  rpc readSingleGameWidget(GetGameWidgetRequest) returns (GameWidgetResponse);
@@ -443,6 +450,7 @@ message FooterPartnersMediaItem {
443
450
  optional string alt = 3;
444
451
  optional string image_cdn = 4; // final CDN URL after R2 upload
445
452
  optional string image = 5; // filename from file system
453
+ optional int32 id = 6; // unique id of media
446
454
  }
447
455
 
448
456
  /**
@@ -606,3 +614,73 @@ message FooterPaymentsItemsResponse {
606
614
  optional int32 total_pages = 2;
607
615
  optional int32 total_items = 3;
608
616
  }
617
+ // ===== Footer: Applications =====
618
+ // Media/link item for a specific application type (APK, IPA, PWA etc.)
619
+ message FooterApplicationMediaItem {
620
+ optional string href = 1; // URL link to the app install page
621
+ optional string image = 2; // local file name (if stored locally)
622
+ optional string image_cdn = 3; // CDN URL (if uploaded to R2)
623
+ optional int32 is_active = 4; // 1 = active, 0 = inactive
624
+ }
625
+
626
+ // Full Applications entity
627
+ message FooterApplicationsItem {
628
+ optional int32 id = 1;
629
+ optional string geo = 2;
630
+ optional string title = 3;
631
+ optional int32 is_active = 4;
632
+
633
+ // Three fixed slots
634
+ optional FooterApplicationMediaItem apk = 5;
635
+ optional FooterApplicationMediaItem ipa = 6;
636
+ optional FooterApplicationMediaItem pwa = 7;
637
+ }
638
+
639
+ // Partial update of hrefs (icons are uploaded via stream)
640
+ message FooterApplicationsMeta {
641
+ optional string apk_href = 1;
642
+ optional string ipa_href = 2;
643
+ optional string pwa_href = 3;
644
+ }
645
+
646
+ // Create/update request
647
+ message FooterApplicationsItemRequest {
648
+ optional int32 id = 1; // required only for update
649
+ optional string geo = 2;
650
+ optional string title = 3;
651
+ optional int32 is_active = 4; // -1 = "do not change" for update
652
+ optional FooterApplicationsMeta meta = 5; // optional href updates
653
+ }
654
+
655
+ // Stream container: first applications_data, then 0..N files
656
+ message FooterApplicationsRequest {
657
+ oneof payload {
658
+ FooterApplicationsItemRequest applications_data = 1;
659
+ FooterApplicationsFile applications_file = 2;
660
+ }
661
+ }
662
+
663
+ // File for a specific slot; kind is string: "apk" | "ipa" | "pwa"
664
+ message FooterApplicationsFile {
665
+ optional string kind = 1;
666
+ optional File file = 2;
667
+ }
668
+
669
+ // Responses
670
+ message FooterApplicationsResponse {
671
+ FooterApplicationsItem data = 1;
672
+ }
673
+
674
+ message FooterApplicationsItemsResponse {
675
+ repeated FooterApplicationsItem items = 1;
676
+ optional int32 total_items = 2;
677
+ optional int32 total_pages = 3;
678
+ }
679
+
680
+ message FooterApplicationsStatusResponse {
681
+ optional string status = 1; // e.g. "OK"
682
+ }
683
+ // Request to read one item
684
+ message GetFooterApplicationsRequest {
685
+ optional int32 id = 1;
686
+ }
@@ -114,6 +114,50 @@ function deserialize_cms_File(buffer_arg) {
114
114
  return cms_pb.File.deserializeBinary(new Uint8Array(buffer_arg));
115
115
  }
116
116
 
117
+ function serialize_cms_FooterApplicationsItemsResponse(arg) {
118
+ if (!(arg instanceof cms_pb.FooterApplicationsItemsResponse)) {
119
+ throw new Error('Expected argument of type cms.FooterApplicationsItemsResponse');
120
+ }
121
+ return Buffer.from(arg.serializeBinary());
122
+ }
123
+
124
+ function deserialize_cms_FooterApplicationsItemsResponse(buffer_arg) {
125
+ return cms_pb.FooterApplicationsItemsResponse.deserializeBinary(new Uint8Array(buffer_arg));
126
+ }
127
+
128
+ function serialize_cms_FooterApplicationsRequest(arg) {
129
+ if (!(arg instanceof cms_pb.FooterApplicationsRequest)) {
130
+ throw new Error('Expected argument of type cms.FooterApplicationsRequest');
131
+ }
132
+ return Buffer.from(arg.serializeBinary());
133
+ }
134
+
135
+ function deserialize_cms_FooterApplicationsRequest(buffer_arg) {
136
+ return cms_pb.FooterApplicationsRequest.deserializeBinary(new Uint8Array(buffer_arg));
137
+ }
138
+
139
+ function serialize_cms_FooterApplicationsResponse(arg) {
140
+ if (!(arg instanceof cms_pb.FooterApplicationsResponse)) {
141
+ throw new Error('Expected argument of type cms.FooterApplicationsResponse');
142
+ }
143
+ return Buffer.from(arg.serializeBinary());
144
+ }
145
+
146
+ function deserialize_cms_FooterApplicationsResponse(buffer_arg) {
147
+ return cms_pb.FooterApplicationsResponse.deserializeBinary(new Uint8Array(buffer_arg));
148
+ }
149
+
150
+ function serialize_cms_FooterApplicationsStatusResponse(arg) {
151
+ if (!(arg instanceof cms_pb.FooterApplicationsStatusResponse)) {
152
+ throw new Error('Expected argument of type cms.FooterApplicationsStatusResponse');
153
+ }
154
+ return Buffer.from(arg.serializeBinary());
155
+ }
156
+
157
+ function deserialize_cms_FooterApplicationsStatusResponse(buffer_arg) {
158
+ return cms_pb.FooterApplicationsStatusResponse.deserializeBinary(new Uint8Array(buffer_arg));
159
+ }
160
+
117
161
  function serialize_cms_FooterMainTextItemRequest(arg) {
118
162
  if (!(arg instanceof cms_pb.FooterMainTextItemRequest)) {
119
163
  throw new Error('Expected argument of type cms.FooterMainTextItemRequest');
@@ -356,6 +400,17 @@ function deserialize_cms_GetFileRequest(buffer_arg) {
356
400
  return cms_pb.GetFileRequest.deserializeBinary(new Uint8Array(buffer_arg));
357
401
  }
358
402
 
403
+ function serialize_cms_GetFooterApplicationsRequest(arg) {
404
+ if (!(arg instanceof cms_pb.GetFooterApplicationsRequest)) {
405
+ throw new Error('Expected argument of type cms.GetFooterApplicationsRequest');
406
+ }
407
+ return Buffer.from(arg.serializeBinary());
408
+ }
409
+
410
+ function deserialize_cms_GetFooterApplicationsRequest(buffer_arg) {
411
+ return cms_pb.GetFooterApplicationsRequest.deserializeBinary(new Uint8Array(buffer_arg));
412
+ }
413
+
359
414
  function serialize_cms_GetFooterMainTextRequest(arg) {
360
415
  if (!(arg instanceof cms_pb.GetFooterMainTextRequest)) {
361
416
  throw new Error('Expected argument of type cms.GetFooterMainTextRequest');
@@ -1378,6 +1433,73 @@ createSingleFooterPayments: {
1378
1433
  responseSerialize: serialize_cms_FooterPaymentsStatusResponse,
1379
1434
  responseDeserialize: deserialize_cms_FooterPaymentsStatusResponse,
1380
1435
  },
1436
+ // Footer: Applications
1437
+ createSingleFooterApplications: {
1438
+ path: '/cms.CMS/createSingleFooterApplications',
1439
+ requestStream: true,
1440
+ responseStream: false,
1441
+ requestType: cms_pb.FooterApplicationsRequest,
1442
+ responseType: cms_pb.FooterApplicationsResponse,
1443
+ requestSerialize: serialize_cms_FooterApplicationsRequest,
1444
+ requestDeserialize: deserialize_cms_FooterApplicationsRequest,
1445
+ responseSerialize: serialize_cms_FooterApplicationsResponse,
1446
+ responseDeserialize: deserialize_cms_FooterApplicationsResponse,
1447
+ },
1448
+ readSingleFooterApplications: {
1449
+ path: '/cms.CMS/readSingleFooterApplications',
1450
+ requestStream: false,
1451
+ responseStream: false,
1452
+ requestType: cms_pb.GetFooterApplicationsRequest,
1453
+ responseType: cms_pb.FooterApplicationsResponse,
1454
+ requestSerialize: serialize_cms_GetFooterApplicationsRequest,
1455
+ requestDeserialize: deserialize_cms_GetFooterApplicationsRequest,
1456
+ responseSerialize: serialize_cms_FooterApplicationsResponse,
1457
+ responseDeserialize: deserialize_cms_FooterApplicationsResponse,
1458
+ },
1459
+ updateSingleFooterApplications: {
1460
+ path: '/cms.CMS/updateSingleFooterApplications',
1461
+ requestStream: true,
1462
+ responseStream: false,
1463
+ requestType: cms_pb.FooterApplicationsRequest,
1464
+ responseType: cms_pb.FooterApplicationsResponse,
1465
+ requestSerialize: serialize_cms_FooterApplicationsRequest,
1466
+ requestDeserialize: deserialize_cms_FooterApplicationsRequest,
1467
+ responseSerialize: serialize_cms_FooterApplicationsResponse,
1468
+ responseDeserialize: deserialize_cms_FooterApplicationsResponse,
1469
+ },
1470
+ deleteSingleFooterApplications: {
1471
+ path: '/cms.CMS/deleteSingleFooterApplications',
1472
+ requestStream: false,
1473
+ responseStream: false,
1474
+ requestType: cms_pb.GetFooterApplicationsRequest,
1475
+ responseType: cms_pb.FooterApplicationsStatusResponse,
1476
+ requestSerialize: serialize_cms_GetFooterApplicationsRequest,
1477
+ requestDeserialize: deserialize_cms_GetFooterApplicationsRequest,
1478
+ responseSerialize: serialize_cms_FooterApplicationsStatusResponse,
1479
+ responseDeserialize: deserialize_cms_FooterApplicationsStatusResponse,
1480
+ },
1481
+ readListFooterApplications: {
1482
+ path: '/cms.CMS/readListFooterApplications',
1483
+ requestStream: false,
1484
+ responseStream: false,
1485
+ requestType: cms_pb.PaginationRequest,
1486
+ responseType: cms_pb.FooterApplicationsItemsResponse,
1487
+ requestSerialize: serialize_cms_PaginationRequest,
1488
+ requestDeserialize: deserialize_cms_PaginationRequest,
1489
+ responseSerialize: serialize_cms_FooterApplicationsItemsResponse,
1490
+ responseDeserialize: deserialize_cms_FooterApplicationsItemsResponse,
1491
+ },
1492
+ updateFooterApplicationsInBunch: {
1493
+ path: '/cms.CMS/updateFooterApplicationsInBunch',
1494
+ requestStream: false,
1495
+ responseStream: false,
1496
+ requestType: cms_pb.ItemsBunchRequest,
1497
+ responseType: cms_pb.FooterApplicationsStatusResponse,
1498
+ requestSerialize: serialize_cms_ItemsBunchRequest,
1499
+ requestDeserialize: deserialize_cms_ItemsBunchRequest,
1500
+ responseSerialize: serialize_cms_FooterApplicationsStatusResponse,
1501
+ responseDeserialize: deserialize_cms_FooterApplicationsStatusResponse,
1502
+ },
1381
1503
  // Game Widgets
1382
1504
  createSingleGameWidget: {
1383
1505
  path: '/cms.CMS/createSingleGameWidget',