protobuf-platform 1.2.724 → 1.2.726

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,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.2.724",
3
+ "version": "1.2.726",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -82,6 +82,14 @@ service Payment {
82
82
  // One synchronous settlement. Reads do not take a durable wallet fence.
83
83
  rpc settleGameplay(SettleGameplayRequest) returns (SettleGameplayResponse);
84
84
  rpc readGameplaySettlementFact(ReadGameplaySettlementFactRequest) returns (ReadGameplaySettlementFactResponse);
85
+ // Explicit capability boundary: Engine monetary calls must never fall back to unguarded settlement.
86
+ rpc readGameplayProviderIdentity(ReadGameplayProviderIdentityRequest)
87
+ returns (GameplayProviderIdentityResult);
88
+ rpc fenceGameplayProviderTransactions(FenceGameplayProviderTransactionsRequest)
89
+ returns (FenceGameplayProviderTransactionsResponse);
90
+ rpc settleGuardedGameplay(SettleGuardedGameplayRequest)
91
+ returns (SettleGameplayResponse);
92
+
85
93
  //Segmentation
86
94
  rpc getSegmentedUsers(SegmentedUserRequest) returns (SegmentedUserResponse);
87
95
  //Currency source-of-truth
@@ -104,6 +112,9 @@ service Payment {
104
112
  // Internal Bonus lifecycle monetary materialization.
105
113
  rpc issueBonusBalanceReward(BonusBalanceRewardIssueRequest) returns (BonusBalanceRewardOperationResponse);
106
114
  rpc reverseBonusBalanceReward(BonusBalanceRewardReversalRequest) returns (BonusBalanceRewardOperationResponse);
115
+ // Trusted system bonus with wager 0: one idempotent REAL credit.
116
+ // Ledger: DR SYSTEM_BONUS_LIABILITY, CR USER_CASH. Does not touch USER_BONUS.
117
+ rpc creditSystemBonusReal(BonusBalanceRewardIssueRequest) returns (BonusBalanceRewardOperationResponse);
107
118
  rpc prepareGameplayPrecisionCommand(PrepareGameplayPrecisionCommandRequest)
108
119
  returns (PrepareGameplayPrecisionCommandResponse);
109
120
  // RTP wallet-operation history. Additive; does not change userPaymentHistory.
@@ -1700,3 +1711,80 @@ message LoyaltyLevelUpRewardResponse {
1700
1711
  repeated string ledger_entry_ids = 6;
1701
1712
  bool idempotent_replay = 7;
1702
1713
  }
1714
+
1715
+ // Provider-scoped cancellation identity; no owner or balance is fabricated for an orphan.
1716
+ message GameplayProviderScope {
1717
+ string namespace = 1;
1718
+ string provider = 2;
1719
+ string operator_id = 3;
1720
+ string integration_generation = 4;
1721
+ }
1722
+
1723
+ enum GameplayProviderIdentityKind {
1724
+ GAMEPLAY_PROVIDER_IDENTITY_UNSPECIFIED = 0;
1725
+ GAMEPLAY_PROVIDER_TRANSACTION = 1;
1726
+ GAMEPLAY_PROVIDER_ROUND = 2;
1727
+ }
1728
+
1729
+ enum GameplayProviderIdentityState {
1730
+ GAMEPLAY_PROVIDER_STATE_UNSPECIFIED = 0;
1731
+ GAMEPLAY_PROVIDER_ABSENT = 1;
1732
+ GAMEPLAY_PROVIDER_FENCED = 2;
1733
+ GAMEPLAY_PROVIDER_BOUND = 3;
1734
+ }
1735
+
1736
+ message GameplayProviderBinding {
1737
+ string user_id = 1;
1738
+ string accounting_currency = 2;
1739
+ string session_id = 3;
1740
+ string round_id = 4;
1741
+ string original_action = 5;
1742
+ string decision_id = 6;
1743
+ string journal_key = 7;
1744
+ }
1745
+
1746
+ message ReadGameplayProviderIdentityRequest {
1747
+ uint32 protocol_version = 1;
1748
+ GameplayProviderScope scope = 2;
1749
+ GameplayProviderIdentityKind identity_kind = 3;
1750
+ string external_id = 4;
1751
+ }
1752
+
1753
+ message GameplayProviderIdentityResult {
1754
+ uint32 protocol_version = 1;
1755
+ GameplayProviderIdentityKind identity_kind = 2;
1756
+ string external_id = 3;
1757
+ GameplayProviderIdentityState state = 4;
1758
+ GameplayProviderBinding binding = 5;
1759
+ string fence_id = 6;
1760
+ bool round_closed = 7;
1761
+ }
1762
+
1763
+ message FenceGameplayProviderTransactionsRequest {
1764
+ uint32 protocol_version = 1;
1765
+ GameplayProviderScope scope = 2;
1766
+ string round_id = 3;
1767
+ repeated string transaction_refs = 4;
1768
+ bool close_round = 5;
1769
+ }
1770
+
1771
+ message FenceGameplayProviderTransactionsResponse {
1772
+ uint32 protocol_version = 1;
1773
+ repeated GameplayProviderIdentityResult identities = 2;
1774
+ bool round_closed = 3;
1775
+ }
1776
+
1777
+ message GameplayProviderLegClaim {
1778
+ string external_id = 1;
1779
+ string action = 2;
1780
+ }
1781
+
1782
+ message SettleGuardedGameplayRequest {
1783
+ uint32 protocol_version = 1;
1784
+ SettleGameplayRequest settlement = 2;
1785
+ GameplayProviderScope scope = 3;
1786
+ string round_id = 4;
1787
+ repeated GameplayProviderLegClaim claims = 5;
1788
+ repeated string reversal_refs = 6;
1789
+ bool close_round = 7;
1790
+ }
@@ -389,6 +389,28 @@ function deserialize_payment_ExecuteManualWithdrawalRequest(buffer_arg) {
389
389
  return payment_pb.ExecuteManualWithdrawalRequest.deserializeBinary(new Uint8Array(buffer_arg));
390
390
  }
391
391
 
392
+ function serialize_payment_FenceGameplayProviderTransactionsRequest(arg) {
393
+ if (!(arg instanceof payment_pb.FenceGameplayProviderTransactionsRequest)) {
394
+ throw new Error('Expected argument of type payment.FenceGameplayProviderTransactionsRequest');
395
+ }
396
+ return Buffer.from(arg.serializeBinary());
397
+ }
398
+
399
+ function deserialize_payment_FenceGameplayProviderTransactionsRequest(buffer_arg) {
400
+ return payment_pb.FenceGameplayProviderTransactionsRequest.deserializeBinary(new Uint8Array(buffer_arg));
401
+ }
402
+
403
+ function serialize_payment_FenceGameplayProviderTransactionsResponse(arg) {
404
+ if (!(arg instanceof payment_pb.FenceGameplayProviderTransactionsResponse)) {
405
+ throw new Error('Expected argument of type payment.FenceGameplayProviderTransactionsResponse');
406
+ }
407
+ return Buffer.from(arg.serializeBinary());
408
+ }
409
+
410
+ function deserialize_payment_FenceGameplayProviderTransactionsResponse(buffer_arg) {
411
+ return payment_pb.FenceGameplayProviderTransactionsResponse.deserializeBinary(new Uint8Array(buffer_arg));
412
+ }
413
+
392
414
  function serialize_payment_File(arg) {
393
415
  if (!(arg instanceof payment_pb.File)) {
394
416
  throw new Error('Expected argument of type payment.File');
@@ -433,6 +455,17 @@ function deserialize_payment_GameplayPrecisionSessionRequest(buffer_arg) {
433
455
  return payment_pb.GameplayPrecisionSessionRequest.deserializeBinary(new Uint8Array(buffer_arg));
434
456
  }
435
457
 
458
+ function serialize_payment_GameplayProviderIdentityResult(arg) {
459
+ if (!(arg instanceof payment_pb.GameplayProviderIdentityResult)) {
460
+ throw new Error('Expected argument of type payment.GameplayProviderIdentityResult');
461
+ }
462
+ return Buffer.from(arg.serializeBinary());
463
+ }
464
+
465
+ function deserialize_payment_GameplayProviderIdentityResult(buffer_arg) {
466
+ return payment_pb.GameplayProviderIdentityResult.deserializeBinary(new Uint8Array(buffer_arg));
467
+ }
468
+
436
469
  function serialize_payment_GetCurrenciesMetadataRequest(arg) {
437
470
  if (!(arg instanceof payment_pb.GetCurrenciesMetadataRequest)) {
438
471
  throw new Error('Expected argument of type payment.GetCurrenciesMetadataRequest');
@@ -1027,6 +1060,17 @@ function deserialize_payment_ProviderTranslationResponse(buffer_arg) {
1027
1060
  return payment_pb.ProviderTranslationResponse.deserializeBinary(new Uint8Array(buffer_arg));
1028
1061
  }
1029
1062
 
1063
+ function serialize_payment_ReadGameplayProviderIdentityRequest(arg) {
1064
+ if (!(arg instanceof payment_pb.ReadGameplayProviderIdentityRequest)) {
1065
+ throw new Error('Expected argument of type payment.ReadGameplayProviderIdentityRequest');
1066
+ }
1067
+ return Buffer.from(arg.serializeBinary());
1068
+ }
1069
+
1070
+ function deserialize_payment_ReadGameplayProviderIdentityRequest(buffer_arg) {
1071
+ return payment_pb.ReadGameplayProviderIdentityRequest.deserializeBinary(new Uint8Array(buffer_arg));
1072
+ }
1073
+
1030
1074
  function serialize_payment_ReadGameplaySettlementFactRequest(arg) {
1031
1075
  if (!(arg instanceof payment_pb.ReadGameplaySettlementFactRequest)) {
1032
1076
  throw new Error('Expected argument of type payment.ReadGameplaySettlementFactRequest');
@@ -1137,6 +1181,17 @@ function deserialize_payment_SettleGameplayResponse(buffer_arg) {
1137
1181
  return payment_pb.SettleGameplayResponse.deserializeBinary(new Uint8Array(buffer_arg));
1138
1182
  }
1139
1183
 
1184
+ function serialize_payment_SettleGuardedGameplayRequest(arg) {
1185
+ if (!(arg instanceof payment_pb.SettleGuardedGameplayRequest)) {
1186
+ throw new Error('Expected argument of type payment.SettleGuardedGameplayRequest');
1187
+ }
1188
+ return Buffer.from(arg.serializeBinary());
1189
+ }
1190
+
1191
+ function deserialize_payment_SettleGuardedGameplayRequest(buffer_arg) {
1192
+ return payment_pb.SettleGuardedGameplayRequest.deserializeBinary(new Uint8Array(buffer_arg));
1193
+ }
1194
+
1140
1195
  function serialize_payment_SyncCurrenciesRequest(arg) {
1141
1196
  if (!(arg instanceof payment_pb.SyncCurrenciesRequest)) {
1142
1197
  throw new Error('Expected argument of type payment.SyncCurrenciesRequest');
@@ -2000,6 +2055,40 @@ settleGameplay: {
2000
2055
  responseSerialize: serialize_payment_ReadGameplaySettlementFactResponse,
2001
2056
  responseDeserialize: deserialize_payment_ReadGameplaySettlementFactResponse,
2002
2057
  },
2058
+ // Explicit capability boundary: Engine monetary calls must never fall back to unguarded settlement.
2059
+ readGameplayProviderIdentity: {
2060
+ path: '/payment.Payment/readGameplayProviderIdentity',
2061
+ requestStream: false,
2062
+ responseStream: false,
2063
+ requestType: payment_pb.ReadGameplayProviderIdentityRequest,
2064
+ responseType: payment_pb.GameplayProviderIdentityResult,
2065
+ requestSerialize: serialize_payment_ReadGameplayProviderIdentityRequest,
2066
+ requestDeserialize: deserialize_payment_ReadGameplayProviderIdentityRequest,
2067
+ responseSerialize: serialize_payment_GameplayProviderIdentityResult,
2068
+ responseDeserialize: deserialize_payment_GameplayProviderIdentityResult,
2069
+ },
2070
+ fenceGameplayProviderTransactions: {
2071
+ path: '/payment.Payment/fenceGameplayProviderTransactions',
2072
+ requestStream: false,
2073
+ responseStream: false,
2074
+ requestType: payment_pb.FenceGameplayProviderTransactionsRequest,
2075
+ responseType: payment_pb.FenceGameplayProviderTransactionsResponse,
2076
+ requestSerialize: serialize_payment_FenceGameplayProviderTransactionsRequest,
2077
+ requestDeserialize: deserialize_payment_FenceGameplayProviderTransactionsRequest,
2078
+ responseSerialize: serialize_payment_FenceGameplayProviderTransactionsResponse,
2079
+ responseDeserialize: deserialize_payment_FenceGameplayProviderTransactionsResponse,
2080
+ },
2081
+ settleGuardedGameplay: {
2082
+ path: '/payment.Payment/settleGuardedGameplay',
2083
+ requestStream: false,
2084
+ responseStream: false,
2085
+ requestType: payment_pb.SettleGuardedGameplayRequest,
2086
+ responseType: payment_pb.SettleGameplayResponse,
2087
+ requestSerialize: serialize_payment_SettleGuardedGameplayRequest,
2088
+ requestDeserialize: deserialize_payment_SettleGuardedGameplayRequest,
2089
+ responseSerialize: serialize_payment_SettleGameplayResponse,
2090
+ responseDeserialize: deserialize_payment_SettleGameplayResponse,
2091
+ },
2003
2092
  // Segmentation
2004
2093
  getSegmentedUsers: {
2005
2094
  path: '/payment.Payment/getSegmentedUsers',
@@ -2192,6 +2281,19 @@ issueBonusBalanceReward: {
2192
2281
  responseSerialize: serialize_payment_BonusBalanceRewardOperationResponse,
2193
2282
  responseDeserialize: deserialize_payment_BonusBalanceRewardOperationResponse,
2194
2283
  },
2284
+ // Trusted system bonus with wager 0: one idempotent REAL credit.
2285
+ // Ledger: DR SYSTEM_BONUS_LIABILITY, CR USER_CASH. Does not touch USER_BONUS.
2286
+ creditSystemBonusReal: {
2287
+ path: '/payment.Payment/creditSystemBonusReal',
2288
+ requestStream: false,
2289
+ responseStream: false,
2290
+ requestType: payment_pb.BonusBalanceRewardIssueRequest,
2291
+ responseType: payment_pb.BonusBalanceRewardOperationResponse,
2292
+ requestSerialize: serialize_payment_BonusBalanceRewardIssueRequest,
2293
+ requestDeserialize: deserialize_payment_BonusBalanceRewardIssueRequest,
2294
+ responseSerialize: serialize_payment_BonusBalanceRewardOperationResponse,
2295
+ responseDeserialize: deserialize_payment_BonusBalanceRewardOperationResponse,
2296
+ },
2195
2297
  prepareGameplayPrecisionCommand: {
2196
2298
  path: '/payment.Payment/prepareGameplayPrecisionCommand',
2197
2299
  requestStream: false,