protobuf-platform 1.2.746 → 1.2.748

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/game/game.proto CHANGED
@@ -3,6 +3,10 @@ syntax = "proto3";
3
3
  package game;
4
4
 
5
5
  service Game {
6
+ // Publication ownership control; never a monetary settlement acknowledgement.
7
+ rpc registerGameplayDeliveryOwner(GameplayDeliveryOwnerRequest) returns (GameplayDeliveryOwnerResult);
8
+ rpc fenceGameplayDeliveryOwner(GameplayDeliveryOwnerRequest) returns (GameplayDeliveryOwnerResult);
9
+ rpc readGameplayDeliveryDrain(GameplayDeliveryDrainRequest) returns (GameplayDeliveryDrainResult);
6
10
  rpc createSingleMultiScope(stream MultiScopeRequest) returns (MultiScopeResponse);
7
11
  rpc readSingleMultiScope(GetMultiScopeRequest) returns (MultiScopeResponse);
8
12
  rpc updateSingleMultiScope(stream MultiScopeRequest) returns (MultiScopeResponse);
@@ -1527,3 +1531,63 @@ message GetDistinctGameTypesRequest {}
1527
1531
  message DistinctGameTypesResponse {
1528
1532
  repeated string types = 1;
1529
1533
  }
1534
+
1535
+ // Scope is bound to the receiving Game customer/environment, not caller input.
1536
+ message GameplayDeliveryOwnerRequest {
1537
+ uint32 protocol_version = 1;
1538
+ string wallet_reference = 2;
1539
+ string ownership_epoch = 3;
1540
+ string source_registration_id = 4;
1541
+ string run_id = 5;
1542
+ uint64 user_id = 6 [jstype = JS_STRING];
1543
+ string currency = 7;
1544
+ }
1545
+
1546
+ enum GameplayDeliveryOwnerState {
1547
+ GAMEPLAY_DELIVERY_OWNER_UNSPECIFIED = 0;
1548
+ GAMEPLAY_DELIVERY_OWNER_ACTIVE = 1;
1549
+ GAMEPLAY_DELIVERY_OWNER_FENCED = 2;
1550
+ GAMEPLAY_DELIVERY_OWNER_DISABLED = 3;
1551
+ }
1552
+
1553
+ message GameplayDeliveryOwnerResult {
1554
+ uint32 protocol_version = 1;
1555
+ string wallet_reference = 2;
1556
+ string ownership_epoch = 3;
1557
+ string source_registration_id = 4;
1558
+ string run_id = 5;
1559
+ GameplayDeliveryOwnerState state = 6;
1560
+ string drain_token = 7;
1561
+ uint64 high_watermark = 8 [jstype = JS_STRING];
1562
+ uint64 user_id = 9 [jstype = JS_STRING];
1563
+ string currency = 10;
1564
+ }
1565
+
1566
+ message GameplayDeliveryDrainRequest {
1567
+ uint32 protocol_version = 1;
1568
+ string drain_token = 2;
1569
+ uint64 after_id = 3 [jstype = JS_STRING];
1570
+ uint32 limit = 4;
1571
+ }
1572
+
1573
+ message GameplayDeliveryDrainEntry {
1574
+ uint64 id = 1 [jstype = JS_STRING];
1575
+ string fingerprint = 2;
1576
+ string message_id = 3;
1577
+ string event_type = 4;
1578
+ string state = 5;
1579
+ uint64 user_id = 6 [jstype = JS_STRING];
1580
+ string currency = 7;
1581
+ string transaction_id = 8;
1582
+ string reporting_kind = 9;
1583
+ string freespin_id = 10;
1584
+ }
1585
+
1586
+ message GameplayDeliveryDrainResult {
1587
+ uint32 protocol_version = 1;
1588
+ string drain_token = 2;
1589
+ uint64 high_watermark = 3 [jstype = JS_STRING];
1590
+ uint64 next_id = 4 [jstype = JS_STRING];
1591
+ repeated GameplayDeliveryDrainEntry entries = 5;
1592
+ bool done = 6;
1593
+ }
@@ -532,6 +532,50 @@ function deserialize_game_GameStatusResponse(buffer_arg) {
532
532
  return game_pb.GameStatusResponse.deserializeBinary(new Uint8Array(buffer_arg));
533
533
  }
534
534
 
535
+ function serialize_game_GameplayDeliveryDrainRequest(arg) {
536
+ if (!(arg instanceof game_pb.GameplayDeliveryDrainRequest)) {
537
+ throw new Error('Expected argument of type game.GameplayDeliveryDrainRequest');
538
+ }
539
+ return Buffer.from(arg.serializeBinary());
540
+ }
541
+
542
+ function deserialize_game_GameplayDeliveryDrainRequest(buffer_arg) {
543
+ return game_pb.GameplayDeliveryDrainRequest.deserializeBinary(new Uint8Array(buffer_arg));
544
+ }
545
+
546
+ function serialize_game_GameplayDeliveryDrainResult(arg) {
547
+ if (!(arg instanceof game_pb.GameplayDeliveryDrainResult)) {
548
+ throw new Error('Expected argument of type game.GameplayDeliveryDrainResult');
549
+ }
550
+ return Buffer.from(arg.serializeBinary());
551
+ }
552
+
553
+ function deserialize_game_GameplayDeliveryDrainResult(buffer_arg) {
554
+ return game_pb.GameplayDeliveryDrainResult.deserializeBinary(new Uint8Array(buffer_arg));
555
+ }
556
+
557
+ function serialize_game_GameplayDeliveryOwnerRequest(arg) {
558
+ if (!(arg instanceof game_pb.GameplayDeliveryOwnerRequest)) {
559
+ throw new Error('Expected argument of type game.GameplayDeliveryOwnerRequest');
560
+ }
561
+ return Buffer.from(arg.serializeBinary());
562
+ }
563
+
564
+ function deserialize_game_GameplayDeliveryOwnerRequest(buffer_arg) {
565
+ return game_pb.GameplayDeliveryOwnerRequest.deserializeBinary(new Uint8Array(buffer_arg));
566
+ }
567
+
568
+ function serialize_game_GameplayDeliveryOwnerResult(arg) {
569
+ if (!(arg instanceof game_pb.GameplayDeliveryOwnerResult)) {
570
+ throw new Error('Expected argument of type game.GameplayDeliveryOwnerResult');
571
+ }
572
+ return Buffer.from(arg.serializeBinary());
573
+ }
574
+
575
+ function deserialize_game_GameplayDeliveryOwnerResult(buffer_arg) {
576
+ return game_pb.GameplayDeliveryOwnerResult.deserializeBinary(new Uint8Array(buffer_arg));
577
+ }
578
+
535
579
  function serialize_game_GamesBunchRequest(arg) {
536
580
  if (!(arg instanceof game_pb.GamesBunchRequest)) {
537
581
  throw new Error('Expected argument of type game.GamesBunchRequest');
@@ -1645,6 +1689,40 @@ function deserialize_game_WagerSearchRequest(buffer_arg) {
1645
1689
 
1646
1690
 
1647
1691
  var GameService = exports.GameService = {
1692
+ // Publication ownership control; never a monetary settlement acknowledgement.
1693
+ registerGameplayDeliveryOwner: {
1694
+ path: '/game.Game/registerGameplayDeliveryOwner',
1695
+ requestStream: false,
1696
+ responseStream: false,
1697
+ requestType: game_pb.GameplayDeliveryOwnerRequest,
1698
+ responseType: game_pb.GameplayDeliveryOwnerResult,
1699
+ requestSerialize: serialize_game_GameplayDeliveryOwnerRequest,
1700
+ requestDeserialize: deserialize_game_GameplayDeliveryOwnerRequest,
1701
+ responseSerialize: serialize_game_GameplayDeliveryOwnerResult,
1702
+ responseDeserialize: deserialize_game_GameplayDeliveryOwnerResult,
1703
+ },
1704
+ fenceGameplayDeliveryOwner: {
1705
+ path: '/game.Game/fenceGameplayDeliveryOwner',
1706
+ requestStream: false,
1707
+ responseStream: false,
1708
+ requestType: game_pb.GameplayDeliveryOwnerRequest,
1709
+ responseType: game_pb.GameplayDeliveryOwnerResult,
1710
+ requestSerialize: serialize_game_GameplayDeliveryOwnerRequest,
1711
+ requestDeserialize: deserialize_game_GameplayDeliveryOwnerRequest,
1712
+ responseSerialize: serialize_game_GameplayDeliveryOwnerResult,
1713
+ responseDeserialize: deserialize_game_GameplayDeliveryOwnerResult,
1714
+ },
1715
+ readGameplayDeliveryDrain: {
1716
+ path: '/game.Game/readGameplayDeliveryDrain',
1717
+ requestStream: false,
1718
+ responseStream: false,
1719
+ requestType: game_pb.GameplayDeliveryDrainRequest,
1720
+ responseType: game_pb.GameplayDeliveryDrainResult,
1721
+ requestSerialize: serialize_game_GameplayDeliveryDrainRequest,
1722
+ requestDeserialize: deserialize_game_GameplayDeliveryDrainRequest,
1723
+ responseSerialize: serialize_game_GameplayDeliveryDrainResult,
1724
+ responseDeserialize: deserialize_game_GameplayDeliveryDrainResult,
1725
+ },
1648
1726
  createSingleMultiScope: {
1649
1727
  path: '/game.Game/createSingleMultiScope',
1650
1728
  requestStream: true,