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/bonus/bonus.proto +18 -0
- package/bonus/bonus_grpc_pb.js +34 -0
- package/bonus/bonus_pb.js +570 -0
- package/docs/game-delivery-owner-contract.md +11 -0
- package/game/game.proto +64 -0
- package/game/game_grpc_pb.js +78 -0
- package/game/game_pb.js +1768 -7
- package/package.json +1 -1
- package/payment/payment.proto +18 -0
- package/payment/payment_grpc_pb.js +34 -0
- package/payment/payment_pb.js +570 -0
- package/scripts/verify-delivery-readiness-contract.js +25 -0
- package/scripts/verify-game-delivery-owner-contract.js +38 -0
package/bonus/bonus.proto
CHANGED
|
@@ -5,6 +5,8 @@ import "game/game.proto";
|
|
|
5
5
|
package bonus;
|
|
6
6
|
|
|
7
7
|
service Bonus {
|
|
8
|
+
// Bootstrap control only; no financial effect or per-event readiness calls.
|
|
9
|
+
rpc readGameplayDeliveryReadiness(GameplayDeliveryReadinessRequest) returns (GameplayDeliveryReadinessResult);
|
|
8
10
|
rpc checkConnection(PingRequest) returns (PongResponse);
|
|
9
11
|
rpc getMediaResource(GetFileRequest) returns (stream File);
|
|
10
12
|
//Bonus
|
|
@@ -795,3 +797,19 @@ message ResolveProviderRewardWinningsResponse {
|
|
|
795
797
|
// Required for normalized; missing data must fail closed without session FX.
|
|
796
798
|
optional string provider_winnings_fx_json = 6;
|
|
797
799
|
}
|
|
800
|
+
|
|
801
|
+
// Scoped bootstrap capability; unknown versions and missing evidence fail closed.
|
|
802
|
+
message GameplayDeliveryReadinessRequest {
|
|
803
|
+
uint32 protocol_version = 1;
|
|
804
|
+
string activation_epoch = 2;
|
|
805
|
+
string caller_cohort = 3;
|
|
806
|
+
}
|
|
807
|
+
message GameplayDeliveryReadinessResult {
|
|
808
|
+
uint32 protocol_version = 1;
|
|
809
|
+
string activation_epoch = 2;
|
|
810
|
+
string service_cohort = 3;
|
|
811
|
+
string scope_hash = 4;
|
|
812
|
+
uint32 durable_effect_version = 5;
|
|
813
|
+
bool ready = 6;
|
|
814
|
+
repeated string blocked_reasons = 7;
|
|
815
|
+
}
|
package/bonus/bonus_grpc_pb.js
CHANGED
|
@@ -247,6 +247,28 @@ function deserialize_bonus_File(buffer_arg) {
|
|
|
247
247
|
return bonus_bonus_pb.File.deserializeBinary(new Uint8Array(buffer_arg));
|
|
248
248
|
}
|
|
249
249
|
|
|
250
|
+
function serialize_bonus_GameplayDeliveryReadinessRequest(arg) {
|
|
251
|
+
if (!(arg instanceof bonus_bonus_pb.GameplayDeliveryReadinessRequest)) {
|
|
252
|
+
throw new Error('Expected argument of type bonus.GameplayDeliveryReadinessRequest');
|
|
253
|
+
}
|
|
254
|
+
return Buffer.from(arg.serializeBinary());
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
function deserialize_bonus_GameplayDeliveryReadinessRequest(buffer_arg) {
|
|
258
|
+
return bonus_bonus_pb.GameplayDeliveryReadinessRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
function serialize_bonus_GameplayDeliveryReadinessResult(arg) {
|
|
262
|
+
if (!(arg instanceof bonus_bonus_pb.GameplayDeliveryReadinessResult)) {
|
|
263
|
+
throw new Error('Expected argument of type bonus.GameplayDeliveryReadinessResult');
|
|
264
|
+
}
|
|
265
|
+
return Buffer.from(arg.serializeBinary());
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
function deserialize_bonus_GameplayDeliveryReadinessResult(buffer_arg) {
|
|
269
|
+
return bonus_bonus_pb.GameplayDeliveryReadinessResult.deserializeBinary(new Uint8Array(buffer_arg));
|
|
270
|
+
}
|
|
271
|
+
|
|
250
272
|
function serialize_bonus_GetActiveWageringUserBonusesRequest(arg) {
|
|
251
273
|
if (!(arg instanceof bonus_bonus_pb.GetActiveWageringUserBonusesRequest)) {
|
|
252
274
|
throw new Error('Expected argument of type bonus.GetActiveWageringUserBonusesRequest');
|
|
@@ -601,6 +623,18 @@ function deserialize_game_GameItemsResponse(buffer_arg) {
|
|
|
601
623
|
|
|
602
624
|
|
|
603
625
|
var BonusService = exports.BonusService = {
|
|
626
|
+
// Bootstrap control only; no financial effect or per-event readiness calls.
|
|
627
|
+
readGameplayDeliveryReadiness: {
|
|
628
|
+
path: '/bonus.Bonus/readGameplayDeliveryReadiness',
|
|
629
|
+
requestStream: false,
|
|
630
|
+
responseStream: false,
|
|
631
|
+
requestType: bonus_bonus_pb.GameplayDeliveryReadinessRequest,
|
|
632
|
+
responseType: bonus_bonus_pb.GameplayDeliveryReadinessResult,
|
|
633
|
+
requestSerialize: serialize_bonus_GameplayDeliveryReadinessRequest,
|
|
634
|
+
requestDeserialize: deserialize_bonus_GameplayDeliveryReadinessRequest,
|
|
635
|
+
responseSerialize: serialize_bonus_GameplayDeliveryReadinessResult,
|
|
636
|
+
responseDeserialize: deserialize_bonus_GameplayDeliveryReadinessResult,
|
|
637
|
+
},
|
|
604
638
|
checkConnection: {
|
|
605
639
|
path: '/bonus.Bonus/checkConnection',
|
|
606
640
|
requestStream: false,
|
package/bonus/bonus_pb.js
CHANGED
|
@@ -66,6 +66,8 @@ goog.exportSymbol('proto.bonus.DepositEligibleUserBonusesResponse', null, global
|
|
|
66
66
|
goog.exportSymbol('proto.bonus.File', null, global);
|
|
67
67
|
goog.exportSymbol('proto.bonus.FreeSpinItem', null, global);
|
|
68
68
|
goog.exportSymbol('proto.bonus.GameItem', null, global);
|
|
69
|
+
goog.exportSymbol('proto.bonus.GameplayDeliveryReadinessRequest', null, global);
|
|
70
|
+
goog.exportSymbol('proto.bonus.GameplayDeliveryReadinessResult', null, global);
|
|
69
71
|
goog.exportSymbol('proto.bonus.GetActiveWageringUserBonusesRequest', null, global);
|
|
70
72
|
goog.exportSymbol('proto.bonus.GetBonusBySlugRequest', null, global);
|
|
71
73
|
goog.exportSymbol('proto.bonus.GetBonusRequest', null, global);
|
|
@@ -1675,6 +1677,48 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
1675
1677
|
*/
|
|
1676
1678
|
proto.bonus.ResolveProviderRewardWinningsResponse.displayName = 'proto.bonus.ResolveProviderRewardWinningsResponse';
|
|
1677
1679
|
}
|
|
1680
|
+
/**
|
|
1681
|
+
* Generated by JsPbCodeGenerator.
|
|
1682
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
1683
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
1684
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
1685
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
1686
|
+
* valid.
|
|
1687
|
+
* @extends {jspb.Message}
|
|
1688
|
+
* @constructor
|
|
1689
|
+
*/
|
|
1690
|
+
proto.bonus.GameplayDeliveryReadinessRequest = function(opt_data) {
|
|
1691
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
1692
|
+
};
|
|
1693
|
+
goog.inherits(proto.bonus.GameplayDeliveryReadinessRequest, jspb.Message);
|
|
1694
|
+
if (goog.DEBUG && !COMPILED) {
|
|
1695
|
+
/**
|
|
1696
|
+
* @public
|
|
1697
|
+
* @override
|
|
1698
|
+
*/
|
|
1699
|
+
proto.bonus.GameplayDeliveryReadinessRequest.displayName = 'proto.bonus.GameplayDeliveryReadinessRequest';
|
|
1700
|
+
}
|
|
1701
|
+
/**
|
|
1702
|
+
* Generated by JsPbCodeGenerator.
|
|
1703
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
1704
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
1705
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
1706
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
1707
|
+
* valid.
|
|
1708
|
+
* @extends {jspb.Message}
|
|
1709
|
+
* @constructor
|
|
1710
|
+
*/
|
|
1711
|
+
proto.bonus.GameplayDeliveryReadinessResult = function(opt_data) {
|
|
1712
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.bonus.GameplayDeliveryReadinessResult.repeatedFields_, null);
|
|
1713
|
+
};
|
|
1714
|
+
goog.inherits(proto.bonus.GameplayDeliveryReadinessResult, jspb.Message);
|
|
1715
|
+
if (goog.DEBUG && !COMPILED) {
|
|
1716
|
+
/**
|
|
1717
|
+
* @public
|
|
1718
|
+
* @override
|
|
1719
|
+
*/
|
|
1720
|
+
proto.bonus.GameplayDeliveryReadinessResult.displayName = 'proto.bonus.GameplayDeliveryReadinessResult';
|
|
1721
|
+
}
|
|
1678
1722
|
|
|
1679
1723
|
|
|
1680
1724
|
|
|
@@ -32231,4 +32275,530 @@ proto.bonus.ResolveProviderRewardWinningsResponse.prototype.hasProviderWinningsF
|
|
|
32231
32275
|
};
|
|
32232
32276
|
|
|
32233
32277
|
|
|
32278
|
+
|
|
32279
|
+
|
|
32280
|
+
|
|
32281
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
32282
|
+
/**
|
|
32283
|
+
* Creates an object representation of this proto.
|
|
32284
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
32285
|
+
* Optional fields that are not set will be set to undefined.
|
|
32286
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
32287
|
+
* For the list of reserved names please see:
|
|
32288
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
32289
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
32290
|
+
* JSPB instance for transitional soy proto support:
|
|
32291
|
+
* http://goto/soy-param-migration
|
|
32292
|
+
* @return {!Object}
|
|
32293
|
+
*/
|
|
32294
|
+
proto.bonus.GameplayDeliveryReadinessRequest.prototype.toObject = function(opt_includeInstance) {
|
|
32295
|
+
return proto.bonus.GameplayDeliveryReadinessRequest.toObject(opt_includeInstance, this);
|
|
32296
|
+
};
|
|
32297
|
+
|
|
32298
|
+
|
|
32299
|
+
/**
|
|
32300
|
+
* Static version of the {@see toObject} method.
|
|
32301
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
32302
|
+
* the JSPB instance for transitional soy proto support:
|
|
32303
|
+
* http://goto/soy-param-migration
|
|
32304
|
+
* @param {!proto.bonus.GameplayDeliveryReadinessRequest} msg The msg instance to transform.
|
|
32305
|
+
* @return {!Object}
|
|
32306
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
32307
|
+
*/
|
|
32308
|
+
proto.bonus.GameplayDeliveryReadinessRequest.toObject = function(includeInstance, msg) {
|
|
32309
|
+
var f, obj = {
|
|
32310
|
+
protocolVersion: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
32311
|
+
activationEpoch: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
32312
|
+
callerCohort: jspb.Message.getFieldWithDefault(msg, 3, "")
|
|
32313
|
+
};
|
|
32314
|
+
|
|
32315
|
+
if (includeInstance) {
|
|
32316
|
+
obj.$jspbMessageInstance = msg;
|
|
32317
|
+
}
|
|
32318
|
+
return obj;
|
|
32319
|
+
};
|
|
32320
|
+
}
|
|
32321
|
+
|
|
32322
|
+
|
|
32323
|
+
/**
|
|
32324
|
+
* Deserializes binary data (in protobuf wire format).
|
|
32325
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
32326
|
+
* @return {!proto.bonus.GameplayDeliveryReadinessRequest}
|
|
32327
|
+
*/
|
|
32328
|
+
proto.bonus.GameplayDeliveryReadinessRequest.deserializeBinary = function(bytes) {
|
|
32329
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
32330
|
+
var msg = new proto.bonus.GameplayDeliveryReadinessRequest;
|
|
32331
|
+
return proto.bonus.GameplayDeliveryReadinessRequest.deserializeBinaryFromReader(msg, reader);
|
|
32332
|
+
};
|
|
32333
|
+
|
|
32334
|
+
|
|
32335
|
+
/**
|
|
32336
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
32337
|
+
* given reader into the given message object.
|
|
32338
|
+
* @param {!proto.bonus.GameplayDeliveryReadinessRequest} msg The message object to deserialize into.
|
|
32339
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
32340
|
+
* @return {!proto.bonus.GameplayDeliveryReadinessRequest}
|
|
32341
|
+
*/
|
|
32342
|
+
proto.bonus.GameplayDeliveryReadinessRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
32343
|
+
while (reader.nextField()) {
|
|
32344
|
+
if (reader.isEndGroup()) {
|
|
32345
|
+
break;
|
|
32346
|
+
}
|
|
32347
|
+
var field = reader.getFieldNumber();
|
|
32348
|
+
switch (field) {
|
|
32349
|
+
case 1:
|
|
32350
|
+
var value = /** @type {number} */ (reader.readUint32());
|
|
32351
|
+
msg.setProtocolVersion(value);
|
|
32352
|
+
break;
|
|
32353
|
+
case 2:
|
|
32354
|
+
var value = /** @type {string} */ (reader.readString());
|
|
32355
|
+
msg.setActivationEpoch(value);
|
|
32356
|
+
break;
|
|
32357
|
+
case 3:
|
|
32358
|
+
var value = /** @type {string} */ (reader.readString());
|
|
32359
|
+
msg.setCallerCohort(value);
|
|
32360
|
+
break;
|
|
32361
|
+
default:
|
|
32362
|
+
reader.skipField();
|
|
32363
|
+
break;
|
|
32364
|
+
}
|
|
32365
|
+
}
|
|
32366
|
+
return msg;
|
|
32367
|
+
};
|
|
32368
|
+
|
|
32369
|
+
|
|
32370
|
+
/**
|
|
32371
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
32372
|
+
* @return {!Uint8Array}
|
|
32373
|
+
*/
|
|
32374
|
+
proto.bonus.GameplayDeliveryReadinessRequest.prototype.serializeBinary = function() {
|
|
32375
|
+
var writer = new jspb.BinaryWriter();
|
|
32376
|
+
proto.bonus.GameplayDeliveryReadinessRequest.serializeBinaryToWriter(this, writer);
|
|
32377
|
+
return writer.getResultBuffer();
|
|
32378
|
+
};
|
|
32379
|
+
|
|
32380
|
+
|
|
32381
|
+
/**
|
|
32382
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
32383
|
+
* format), writing to the given BinaryWriter.
|
|
32384
|
+
* @param {!proto.bonus.GameplayDeliveryReadinessRequest} message
|
|
32385
|
+
* @param {!jspb.BinaryWriter} writer
|
|
32386
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
32387
|
+
*/
|
|
32388
|
+
proto.bonus.GameplayDeliveryReadinessRequest.serializeBinaryToWriter = function(message, writer) {
|
|
32389
|
+
var f = undefined;
|
|
32390
|
+
f = message.getProtocolVersion();
|
|
32391
|
+
if (f !== 0) {
|
|
32392
|
+
writer.writeUint32(
|
|
32393
|
+
1,
|
|
32394
|
+
f
|
|
32395
|
+
);
|
|
32396
|
+
}
|
|
32397
|
+
f = message.getActivationEpoch();
|
|
32398
|
+
if (f.length > 0) {
|
|
32399
|
+
writer.writeString(
|
|
32400
|
+
2,
|
|
32401
|
+
f
|
|
32402
|
+
);
|
|
32403
|
+
}
|
|
32404
|
+
f = message.getCallerCohort();
|
|
32405
|
+
if (f.length > 0) {
|
|
32406
|
+
writer.writeString(
|
|
32407
|
+
3,
|
|
32408
|
+
f
|
|
32409
|
+
);
|
|
32410
|
+
}
|
|
32411
|
+
};
|
|
32412
|
+
|
|
32413
|
+
|
|
32414
|
+
/**
|
|
32415
|
+
* optional uint32 protocol_version = 1;
|
|
32416
|
+
* @return {number}
|
|
32417
|
+
*/
|
|
32418
|
+
proto.bonus.GameplayDeliveryReadinessRequest.prototype.getProtocolVersion = function() {
|
|
32419
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
32420
|
+
};
|
|
32421
|
+
|
|
32422
|
+
|
|
32423
|
+
/**
|
|
32424
|
+
* @param {number} value
|
|
32425
|
+
* @return {!proto.bonus.GameplayDeliveryReadinessRequest} returns this
|
|
32426
|
+
*/
|
|
32427
|
+
proto.bonus.GameplayDeliveryReadinessRequest.prototype.setProtocolVersion = function(value) {
|
|
32428
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
32429
|
+
};
|
|
32430
|
+
|
|
32431
|
+
|
|
32432
|
+
/**
|
|
32433
|
+
* optional string activation_epoch = 2;
|
|
32434
|
+
* @return {string}
|
|
32435
|
+
*/
|
|
32436
|
+
proto.bonus.GameplayDeliveryReadinessRequest.prototype.getActivationEpoch = function() {
|
|
32437
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
32438
|
+
};
|
|
32439
|
+
|
|
32440
|
+
|
|
32441
|
+
/**
|
|
32442
|
+
* @param {string} value
|
|
32443
|
+
* @return {!proto.bonus.GameplayDeliveryReadinessRequest} returns this
|
|
32444
|
+
*/
|
|
32445
|
+
proto.bonus.GameplayDeliveryReadinessRequest.prototype.setActivationEpoch = function(value) {
|
|
32446
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
32447
|
+
};
|
|
32448
|
+
|
|
32449
|
+
|
|
32450
|
+
/**
|
|
32451
|
+
* optional string caller_cohort = 3;
|
|
32452
|
+
* @return {string}
|
|
32453
|
+
*/
|
|
32454
|
+
proto.bonus.GameplayDeliveryReadinessRequest.prototype.getCallerCohort = function() {
|
|
32455
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
32456
|
+
};
|
|
32457
|
+
|
|
32458
|
+
|
|
32459
|
+
/**
|
|
32460
|
+
* @param {string} value
|
|
32461
|
+
* @return {!proto.bonus.GameplayDeliveryReadinessRequest} returns this
|
|
32462
|
+
*/
|
|
32463
|
+
proto.bonus.GameplayDeliveryReadinessRequest.prototype.setCallerCohort = function(value) {
|
|
32464
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
32465
|
+
};
|
|
32466
|
+
|
|
32467
|
+
|
|
32468
|
+
|
|
32469
|
+
/**
|
|
32470
|
+
* List of repeated fields within this message type.
|
|
32471
|
+
* @private {!Array<number>}
|
|
32472
|
+
* @const
|
|
32473
|
+
*/
|
|
32474
|
+
proto.bonus.GameplayDeliveryReadinessResult.repeatedFields_ = [7];
|
|
32475
|
+
|
|
32476
|
+
|
|
32477
|
+
|
|
32478
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
32479
|
+
/**
|
|
32480
|
+
* Creates an object representation of this proto.
|
|
32481
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
32482
|
+
* Optional fields that are not set will be set to undefined.
|
|
32483
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
32484
|
+
* For the list of reserved names please see:
|
|
32485
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
32486
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
32487
|
+
* JSPB instance for transitional soy proto support:
|
|
32488
|
+
* http://goto/soy-param-migration
|
|
32489
|
+
* @return {!Object}
|
|
32490
|
+
*/
|
|
32491
|
+
proto.bonus.GameplayDeliveryReadinessResult.prototype.toObject = function(opt_includeInstance) {
|
|
32492
|
+
return proto.bonus.GameplayDeliveryReadinessResult.toObject(opt_includeInstance, this);
|
|
32493
|
+
};
|
|
32494
|
+
|
|
32495
|
+
|
|
32496
|
+
/**
|
|
32497
|
+
* Static version of the {@see toObject} method.
|
|
32498
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
32499
|
+
* the JSPB instance for transitional soy proto support:
|
|
32500
|
+
* http://goto/soy-param-migration
|
|
32501
|
+
* @param {!proto.bonus.GameplayDeliveryReadinessResult} msg The msg instance to transform.
|
|
32502
|
+
* @return {!Object}
|
|
32503
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
32504
|
+
*/
|
|
32505
|
+
proto.bonus.GameplayDeliveryReadinessResult.toObject = function(includeInstance, msg) {
|
|
32506
|
+
var f, obj = {
|
|
32507
|
+
protocolVersion: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
32508
|
+
activationEpoch: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
32509
|
+
serviceCohort: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
32510
|
+
scopeHash: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
32511
|
+
durableEffectVersion: jspb.Message.getFieldWithDefault(msg, 5, 0),
|
|
32512
|
+
ready: jspb.Message.getBooleanFieldWithDefault(msg, 6, false),
|
|
32513
|
+
blockedReasonsList: (f = jspb.Message.getRepeatedField(msg, 7)) == null ? undefined : f
|
|
32514
|
+
};
|
|
32515
|
+
|
|
32516
|
+
if (includeInstance) {
|
|
32517
|
+
obj.$jspbMessageInstance = msg;
|
|
32518
|
+
}
|
|
32519
|
+
return obj;
|
|
32520
|
+
};
|
|
32521
|
+
}
|
|
32522
|
+
|
|
32523
|
+
|
|
32524
|
+
/**
|
|
32525
|
+
* Deserializes binary data (in protobuf wire format).
|
|
32526
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
32527
|
+
* @return {!proto.bonus.GameplayDeliveryReadinessResult}
|
|
32528
|
+
*/
|
|
32529
|
+
proto.bonus.GameplayDeliveryReadinessResult.deserializeBinary = function(bytes) {
|
|
32530
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
32531
|
+
var msg = new proto.bonus.GameplayDeliveryReadinessResult;
|
|
32532
|
+
return proto.bonus.GameplayDeliveryReadinessResult.deserializeBinaryFromReader(msg, reader);
|
|
32533
|
+
};
|
|
32534
|
+
|
|
32535
|
+
|
|
32536
|
+
/**
|
|
32537
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
32538
|
+
* given reader into the given message object.
|
|
32539
|
+
* @param {!proto.bonus.GameplayDeliveryReadinessResult} msg The message object to deserialize into.
|
|
32540
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
32541
|
+
* @return {!proto.bonus.GameplayDeliveryReadinessResult}
|
|
32542
|
+
*/
|
|
32543
|
+
proto.bonus.GameplayDeliveryReadinessResult.deserializeBinaryFromReader = function(msg, reader) {
|
|
32544
|
+
while (reader.nextField()) {
|
|
32545
|
+
if (reader.isEndGroup()) {
|
|
32546
|
+
break;
|
|
32547
|
+
}
|
|
32548
|
+
var field = reader.getFieldNumber();
|
|
32549
|
+
switch (field) {
|
|
32550
|
+
case 1:
|
|
32551
|
+
var value = /** @type {number} */ (reader.readUint32());
|
|
32552
|
+
msg.setProtocolVersion(value);
|
|
32553
|
+
break;
|
|
32554
|
+
case 2:
|
|
32555
|
+
var value = /** @type {string} */ (reader.readString());
|
|
32556
|
+
msg.setActivationEpoch(value);
|
|
32557
|
+
break;
|
|
32558
|
+
case 3:
|
|
32559
|
+
var value = /** @type {string} */ (reader.readString());
|
|
32560
|
+
msg.setServiceCohort(value);
|
|
32561
|
+
break;
|
|
32562
|
+
case 4:
|
|
32563
|
+
var value = /** @type {string} */ (reader.readString());
|
|
32564
|
+
msg.setScopeHash(value);
|
|
32565
|
+
break;
|
|
32566
|
+
case 5:
|
|
32567
|
+
var value = /** @type {number} */ (reader.readUint32());
|
|
32568
|
+
msg.setDurableEffectVersion(value);
|
|
32569
|
+
break;
|
|
32570
|
+
case 6:
|
|
32571
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
32572
|
+
msg.setReady(value);
|
|
32573
|
+
break;
|
|
32574
|
+
case 7:
|
|
32575
|
+
var value = /** @type {string} */ (reader.readString());
|
|
32576
|
+
msg.addBlockedReasons(value);
|
|
32577
|
+
break;
|
|
32578
|
+
default:
|
|
32579
|
+
reader.skipField();
|
|
32580
|
+
break;
|
|
32581
|
+
}
|
|
32582
|
+
}
|
|
32583
|
+
return msg;
|
|
32584
|
+
};
|
|
32585
|
+
|
|
32586
|
+
|
|
32587
|
+
/**
|
|
32588
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
32589
|
+
* @return {!Uint8Array}
|
|
32590
|
+
*/
|
|
32591
|
+
proto.bonus.GameplayDeliveryReadinessResult.prototype.serializeBinary = function() {
|
|
32592
|
+
var writer = new jspb.BinaryWriter();
|
|
32593
|
+
proto.bonus.GameplayDeliveryReadinessResult.serializeBinaryToWriter(this, writer);
|
|
32594
|
+
return writer.getResultBuffer();
|
|
32595
|
+
};
|
|
32596
|
+
|
|
32597
|
+
|
|
32598
|
+
/**
|
|
32599
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
32600
|
+
* format), writing to the given BinaryWriter.
|
|
32601
|
+
* @param {!proto.bonus.GameplayDeliveryReadinessResult} message
|
|
32602
|
+
* @param {!jspb.BinaryWriter} writer
|
|
32603
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
32604
|
+
*/
|
|
32605
|
+
proto.bonus.GameplayDeliveryReadinessResult.serializeBinaryToWriter = function(message, writer) {
|
|
32606
|
+
var f = undefined;
|
|
32607
|
+
f = message.getProtocolVersion();
|
|
32608
|
+
if (f !== 0) {
|
|
32609
|
+
writer.writeUint32(
|
|
32610
|
+
1,
|
|
32611
|
+
f
|
|
32612
|
+
);
|
|
32613
|
+
}
|
|
32614
|
+
f = message.getActivationEpoch();
|
|
32615
|
+
if (f.length > 0) {
|
|
32616
|
+
writer.writeString(
|
|
32617
|
+
2,
|
|
32618
|
+
f
|
|
32619
|
+
);
|
|
32620
|
+
}
|
|
32621
|
+
f = message.getServiceCohort();
|
|
32622
|
+
if (f.length > 0) {
|
|
32623
|
+
writer.writeString(
|
|
32624
|
+
3,
|
|
32625
|
+
f
|
|
32626
|
+
);
|
|
32627
|
+
}
|
|
32628
|
+
f = message.getScopeHash();
|
|
32629
|
+
if (f.length > 0) {
|
|
32630
|
+
writer.writeString(
|
|
32631
|
+
4,
|
|
32632
|
+
f
|
|
32633
|
+
);
|
|
32634
|
+
}
|
|
32635
|
+
f = message.getDurableEffectVersion();
|
|
32636
|
+
if (f !== 0) {
|
|
32637
|
+
writer.writeUint32(
|
|
32638
|
+
5,
|
|
32639
|
+
f
|
|
32640
|
+
);
|
|
32641
|
+
}
|
|
32642
|
+
f = message.getReady();
|
|
32643
|
+
if (f) {
|
|
32644
|
+
writer.writeBool(
|
|
32645
|
+
6,
|
|
32646
|
+
f
|
|
32647
|
+
);
|
|
32648
|
+
}
|
|
32649
|
+
f = message.getBlockedReasonsList();
|
|
32650
|
+
if (f.length > 0) {
|
|
32651
|
+
writer.writeRepeatedString(
|
|
32652
|
+
7,
|
|
32653
|
+
f
|
|
32654
|
+
);
|
|
32655
|
+
}
|
|
32656
|
+
};
|
|
32657
|
+
|
|
32658
|
+
|
|
32659
|
+
/**
|
|
32660
|
+
* optional uint32 protocol_version = 1;
|
|
32661
|
+
* @return {number}
|
|
32662
|
+
*/
|
|
32663
|
+
proto.bonus.GameplayDeliveryReadinessResult.prototype.getProtocolVersion = function() {
|
|
32664
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
32665
|
+
};
|
|
32666
|
+
|
|
32667
|
+
|
|
32668
|
+
/**
|
|
32669
|
+
* @param {number} value
|
|
32670
|
+
* @return {!proto.bonus.GameplayDeliveryReadinessResult} returns this
|
|
32671
|
+
*/
|
|
32672
|
+
proto.bonus.GameplayDeliveryReadinessResult.prototype.setProtocolVersion = function(value) {
|
|
32673
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
32674
|
+
};
|
|
32675
|
+
|
|
32676
|
+
|
|
32677
|
+
/**
|
|
32678
|
+
* optional string activation_epoch = 2;
|
|
32679
|
+
* @return {string}
|
|
32680
|
+
*/
|
|
32681
|
+
proto.bonus.GameplayDeliveryReadinessResult.prototype.getActivationEpoch = function() {
|
|
32682
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
32683
|
+
};
|
|
32684
|
+
|
|
32685
|
+
|
|
32686
|
+
/**
|
|
32687
|
+
* @param {string} value
|
|
32688
|
+
* @return {!proto.bonus.GameplayDeliveryReadinessResult} returns this
|
|
32689
|
+
*/
|
|
32690
|
+
proto.bonus.GameplayDeliveryReadinessResult.prototype.setActivationEpoch = function(value) {
|
|
32691
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
32692
|
+
};
|
|
32693
|
+
|
|
32694
|
+
|
|
32695
|
+
/**
|
|
32696
|
+
* optional string service_cohort = 3;
|
|
32697
|
+
* @return {string}
|
|
32698
|
+
*/
|
|
32699
|
+
proto.bonus.GameplayDeliveryReadinessResult.prototype.getServiceCohort = function() {
|
|
32700
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
32701
|
+
};
|
|
32702
|
+
|
|
32703
|
+
|
|
32704
|
+
/**
|
|
32705
|
+
* @param {string} value
|
|
32706
|
+
* @return {!proto.bonus.GameplayDeliveryReadinessResult} returns this
|
|
32707
|
+
*/
|
|
32708
|
+
proto.bonus.GameplayDeliveryReadinessResult.prototype.setServiceCohort = function(value) {
|
|
32709
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
32710
|
+
};
|
|
32711
|
+
|
|
32712
|
+
|
|
32713
|
+
/**
|
|
32714
|
+
* optional string scope_hash = 4;
|
|
32715
|
+
* @return {string}
|
|
32716
|
+
*/
|
|
32717
|
+
proto.bonus.GameplayDeliveryReadinessResult.prototype.getScopeHash = function() {
|
|
32718
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
32719
|
+
};
|
|
32720
|
+
|
|
32721
|
+
|
|
32722
|
+
/**
|
|
32723
|
+
* @param {string} value
|
|
32724
|
+
* @return {!proto.bonus.GameplayDeliveryReadinessResult} returns this
|
|
32725
|
+
*/
|
|
32726
|
+
proto.bonus.GameplayDeliveryReadinessResult.prototype.setScopeHash = function(value) {
|
|
32727
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
|
32728
|
+
};
|
|
32729
|
+
|
|
32730
|
+
|
|
32731
|
+
/**
|
|
32732
|
+
* optional uint32 durable_effect_version = 5;
|
|
32733
|
+
* @return {number}
|
|
32734
|
+
*/
|
|
32735
|
+
proto.bonus.GameplayDeliveryReadinessResult.prototype.getDurableEffectVersion = function() {
|
|
32736
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
|
|
32737
|
+
};
|
|
32738
|
+
|
|
32739
|
+
|
|
32740
|
+
/**
|
|
32741
|
+
* @param {number} value
|
|
32742
|
+
* @return {!proto.bonus.GameplayDeliveryReadinessResult} returns this
|
|
32743
|
+
*/
|
|
32744
|
+
proto.bonus.GameplayDeliveryReadinessResult.prototype.setDurableEffectVersion = function(value) {
|
|
32745
|
+
return jspb.Message.setProto3IntField(this, 5, value);
|
|
32746
|
+
};
|
|
32747
|
+
|
|
32748
|
+
|
|
32749
|
+
/**
|
|
32750
|
+
* optional bool ready = 6;
|
|
32751
|
+
* @return {boolean}
|
|
32752
|
+
*/
|
|
32753
|
+
proto.bonus.GameplayDeliveryReadinessResult.prototype.getReady = function() {
|
|
32754
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false));
|
|
32755
|
+
};
|
|
32756
|
+
|
|
32757
|
+
|
|
32758
|
+
/**
|
|
32759
|
+
* @param {boolean} value
|
|
32760
|
+
* @return {!proto.bonus.GameplayDeliveryReadinessResult} returns this
|
|
32761
|
+
*/
|
|
32762
|
+
proto.bonus.GameplayDeliveryReadinessResult.prototype.setReady = function(value) {
|
|
32763
|
+
return jspb.Message.setProto3BooleanField(this, 6, value);
|
|
32764
|
+
};
|
|
32765
|
+
|
|
32766
|
+
|
|
32767
|
+
/**
|
|
32768
|
+
* repeated string blocked_reasons = 7;
|
|
32769
|
+
* @return {!Array<string>}
|
|
32770
|
+
*/
|
|
32771
|
+
proto.bonus.GameplayDeliveryReadinessResult.prototype.getBlockedReasonsList = function() {
|
|
32772
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 7));
|
|
32773
|
+
};
|
|
32774
|
+
|
|
32775
|
+
|
|
32776
|
+
/**
|
|
32777
|
+
* @param {!Array<string>} value
|
|
32778
|
+
* @return {!proto.bonus.GameplayDeliveryReadinessResult} returns this
|
|
32779
|
+
*/
|
|
32780
|
+
proto.bonus.GameplayDeliveryReadinessResult.prototype.setBlockedReasonsList = function(value) {
|
|
32781
|
+
return jspb.Message.setField(this, 7, value || []);
|
|
32782
|
+
};
|
|
32783
|
+
|
|
32784
|
+
|
|
32785
|
+
/**
|
|
32786
|
+
* @param {string} value
|
|
32787
|
+
* @param {number=} opt_index
|
|
32788
|
+
* @return {!proto.bonus.GameplayDeliveryReadinessResult} returns this
|
|
32789
|
+
*/
|
|
32790
|
+
proto.bonus.GameplayDeliveryReadinessResult.prototype.addBlockedReasons = function(value, opt_index) {
|
|
32791
|
+
return jspb.Message.addToRepeatedField(this, 7, value, opt_index);
|
|
32792
|
+
};
|
|
32793
|
+
|
|
32794
|
+
|
|
32795
|
+
/**
|
|
32796
|
+
* Clears the list making it empty but non-null.
|
|
32797
|
+
* @return {!proto.bonus.GameplayDeliveryReadinessResult} returns this
|
|
32798
|
+
*/
|
|
32799
|
+
proto.bonus.GameplayDeliveryReadinessResult.prototype.clearBlockedReasonsList = function() {
|
|
32800
|
+
return this.setBlockedReasonsList([]);
|
|
32801
|
+
};
|
|
32802
|
+
|
|
32803
|
+
|
|
32234
32804
|
goog.object.extend(exports, proto.bonus);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# Gameplay delivery owner control v1
|
|
2
|
+
|
|
3
|
+
Additive Game Register/Fence/ReadDrain control-plane contract. Runtime source activation and production data migration remain separate release gates.
|
|
4
|
+
|
|
5
|
+
Payment remains the ledger/ownership assigner. Game owns publication intents and source fencing. Registration is never inferred from a session. Calls are wallet lifecycle control-plane operations, not per-bet synchronous dependencies. A missing capability/version, identity mismatch or uncertain handoff fails closed.
|
|
6
|
+
|
|
7
|
+
Scope is the server customer/environment. Wallet reference, ownership epoch, user/currency and source registration identity are immutable. Fenced owners never reopen. Repeated register/fence calls must preserve the original owner/drain proof. Integer ids/watermarks use JS strings. Drain returns bounded identities/fingerprints/status, not raw gameplay payloads or a monetary settlement assertion. A zero financial amount is not a missing amount; no new monetary scalar is introduced.
|
|
8
|
+
|
|
9
|
+
Game admission and fence take matching SQL owner locks. Payment closes/retires ownership only after Game source fencing/drain and Payment/consumer completion proof. Confirms alone are insufficient. Existing gameplay protobuf/routing/message ids are unchanged. Reader/control deploy precedes writer/source activation. Full historical consumer safety and production cutover remain separate gates.
|
|
10
|
+
|
|
11
|
+
Validation: generated getters/RPC exports, >2^53 watermark wire round-trip, scope/epoch isolation, idempotent control replay, concurrent admission/fence, crash/restart/drain, Payment ledger authority, source/consumer parity. No new testing framework.
|