protobuf-platform 1.2.743 → 1.2.745
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/AGENTS.md +1 -1
- package/package.json +1 -1
- package/payment/payment.proto +47 -0
- package/payment/payment_grpc_pb.js +34 -0
- package/payment/payment_pb.js +3858 -2191
package/AGENTS.md
CHANGED
|
@@ -11,5 +11,5 @@ Read [Project Rules](../../platform-rules/PROJECT_RULES.md) for the canonical sh
|
|
|
11
11
|
- For a contract release, prepare one version bump with `npm version patch --no-git-tag-version` (or the already-approved version), verify package.json and package-lock.json agree, review generated/package contents, and create a local atomic commit including version files. Avoid a second bump if already prepared.
|
|
12
12
|
- For an approved contract release, run `npm publish` after validation and the release commit, using existing authorized registry credentials. Publication required by the approved contract is autonomous execution, including an approved breaking release after its compatibility/rollout decision; do not ask for a separate publication acknowledgement. Do not run `npm run publish-update` after preparing the version: it would bump again. On an ambiguous result, inspect the registry before retrying; never blindly republish or bump.
|
|
13
13
|
- Local npm machine authentication was verified from this repository against `https://registry.npmjs.org/` on 2026-09-15; identity and package metadata resolved. Use the existing setup without requesting OTP or a manual publication handoff. This read-only check did not exercise publication permissions. If auth actually fails, diagnose the exact error and request only the minimum action needed to restore machine authentication; never expose a token.
|
|
14
|
-
- Verify the exact release with `npm view protobuf-platform@<release-version> version`, then run only `sh sync_internal_libs.sh` directly in each affected service repository under the Project Rules. Verify installed/dependency/lockfile state and the expected contract, then continue the same master task automatically without a publication acknowledgement or manual sync handoff. Request human action only for genuinely unavailable authentication or permissions; never expose credentials.
|
|
14
|
+
- Verify the exact release with `npm view protobuf-platform@<release-version> version`, then confirm the registry tarball contains the generated getters/setters and a wire round-trip of the changed fields. A version number alone is not delivery. Then run only `sh sync_internal_libs.sh` directly in each affected service repository under the Project Rules. Verify installed/dependency/lockfile state and the expected contract, then continue the same master task automatically without a publication acknowledgement or manual sync handoff. Request human action only for genuinely unavailable authentication or permissions; never expose credentials.
|
|
15
15
|
- package.json has no lint command; its test script is a failing placeholder. For documentation-only edits use diff/link review; generation is required when contracts change, not for editing these instructions.
|
package/package.json
CHANGED
package/payment/payment.proto
CHANGED
|
@@ -105,6 +105,8 @@ service Payment {
|
|
|
105
105
|
rpc createManualDeposit(ManualDepositRequest) returns (FinancialOperationResponse);
|
|
106
106
|
rpc reconcileDeposit(DepositReconciliationRequest) returns (FinancialOperationResponse);
|
|
107
107
|
rpc createCompensation(CompensationRequest) returns (FinancialOperationResponse);
|
|
108
|
+
// Explicit operator-approved historical correction; never ordinary bonus settlement.
|
|
109
|
+
rpc reconcileHistoricalBonusCompletion(HistoricalBonusCompletionRequest) returns (HistoricalBonusCompletionResponse);
|
|
108
110
|
rpc readListCompensations(PaginationRequest) returns (CompensationItemsResponse);
|
|
109
111
|
rpc createConfiscation(ConfiscationRequest) returns (FinancialOperationResponse);
|
|
110
112
|
rpc readListConfiscations(PaginationRequest) returns (ConfiscationItemsResponse);
|
|
@@ -478,6 +480,20 @@ message OperationDetailsItem {
|
|
|
478
480
|
optional string origin = 20;
|
|
479
481
|
optional string canonical_status = 21;
|
|
480
482
|
optional string amount_minor = 22;
|
|
483
|
+
// Committed gameplay evidence for recovery, available only for matched game operations.
|
|
484
|
+
optional CasinoRecoveryOperationEvidence casino_recovery = 23;
|
|
485
|
+
}
|
|
486
|
+
message CasinoRecoveryOperationEvidence {
|
|
487
|
+
optional uint32 accounting_scale = 1;
|
|
488
|
+
optional string provider_currency = 2;
|
|
489
|
+
optional string provider_amount = 3;
|
|
490
|
+
optional string provider_amount_minor = 4;
|
|
491
|
+
optional uint32 provider_scale = 5;
|
|
492
|
+
repeated CasinoRecoveryOriginal originals = 6;
|
|
493
|
+
}
|
|
494
|
+
message CasinoRecoveryOriginal {
|
|
495
|
+
string action = 1;
|
|
496
|
+
string transaction_id = 2;
|
|
481
497
|
}
|
|
482
498
|
message OperationLedgerItem {
|
|
483
499
|
int32 id = 1;
|
|
@@ -1866,3 +1882,34 @@ message BonusTerminalReceiptResponse {
|
|
|
1866
1882
|
string pending_reason = 2;
|
|
1867
1883
|
}
|
|
1868
1884
|
}
|
|
1885
|
+
|
|
1886
|
+
// Original-currency amounts are strings to preserve exact minor units beyond JS safe integers.
|
|
1887
|
+
message HistoricalBonusCompletionRequest {
|
|
1888
|
+
string correction_id = 1;
|
|
1889
|
+
string manifest_hash = 2;
|
|
1890
|
+
string evidence_hash = 3;
|
|
1891
|
+
int32 user_id = 4;
|
|
1892
|
+
int32 user_bonus_id = 5;
|
|
1893
|
+
string currency = 6;
|
|
1894
|
+
int32 currency_scale = 7;
|
|
1895
|
+
string unpaid_amount_minor = 8;
|
|
1896
|
+
string historical_entitlement_minor = 9;
|
|
1897
|
+
string already_paid_eligible_minor = 10;
|
|
1898
|
+
string completion_decision_id = 11;
|
|
1899
|
+
string historical_completed_at = 12;
|
|
1900
|
+
string original_terminal_receipt_id = 13;
|
|
1901
|
+
string approval_reference = 14;
|
|
1902
|
+
}
|
|
1903
|
+
message HistoricalBonusCompletionResponse {
|
|
1904
|
+
string correction_id = 1;
|
|
1905
|
+
string manifest_hash = 2;
|
|
1906
|
+
string evidence_hash = 3;
|
|
1907
|
+
string outcome = 4;
|
|
1908
|
+
optional string payment_operation_id = 5;
|
|
1909
|
+
int32 user_id = 6;
|
|
1910
|
+
int32 user_bonus_id = 7;
|
|
1911
|
+
string currency = 8;
|
|
1912
|
+
int32 currency_scale = 9;
|
|
1913
|
+
string amount_minor = 10;
|
|
1914
|
+
string receipt_id = 11;
|
|
1915
|
+
}
|
|
@@ -741,6 +741,28 @@ function deserialize_payment_GetWithdrawalWagerSnapshotResponse(buffer_arg) {
|
|
|
741
741
|
return payment_pb.GetWithdrawalWagerSnapshotResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
742
742
|
}
|
|
743
743
|
|
|
744
|
+
function serialize_payment_HistoricalBonusCompletionRequest(arg) {
|
|
745
|
+
if (!(arg instanceof payment_pb.HistoricalBonusCompletionRequest)) {
|
|
746
|
+
throw new Error('Expected argument of type payment.HistoricalBonusCompletionRequest');
|
|
747
|
+
}
|
|
748
|
+
return Buffer.from(arg.serializeBinary());
|
|
749
|
+
}
|
|
750
|
+
|
|
751
|
+
function deserialize_payment_HistoricalBonusCompletionRequest(buffer_arg) {
|
|
752
|
+
return payment_pb.HistoricalBonusCompletionRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
753
|
+
}
|
|
754
|
+
|
|
755
|
+
function serialize_payment_HistoricalBonusCompletionResponse(arg) {
|
|
756
|
+
if (!(arg instanceof payment_pb.HistoricalBonusCompletionResponse)) {
|
|
757
|
+
throw new Error('Expected argument of type payment.HistoricalBonusCompletionResponse');
|
|
758
|
+
}
|
|
759
|
+
return Buffer.from(arg.serializeBinary());
|
|
760
|
+
}
|
|
761
|
+
|
|
762
|
+
function deserialize_payment_HistoricalBonusCompletionResponse(buffer_arg) {
|
|
763
|
+
return payment_pb.HistoricalBonusCompletionResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
764
|
+
}
|
|
765
|
+
|
|
744
766
|
function serialize_payment_ItemsBunchRequest(arg) {
|
|
745
767
|
if (!(arg instanceof payment_pb.ItemsBunchRequest)) {
|
|
746
768
|
throw new Error('Expected argument of type payment.ItemsBunchRequest');
|
|
@@ -2258,6 +2280,18 @@ createManualDeposit: {
|
|
|
2258
2280
|
responseSerialize: serialize_payment_FinancialOperationResponse,
|
|
2259
2281
|
responseDeserialize: deserialize_payment_FinancialOperationResponse,
|
|
2260
2282
|
},
|
|
2283
|
+
// Explicit operator-approved historical correction; never ordinary bonus settlement.
|
|
2284
|
+
reconcileHistoricalBonusCompletion: {
|
|
2285
|
+
path: '/payment.Payment/reconcileHistoricalBonusCompletion',
|
|
2286
|
+
requestStream: false,
|
|
2287
|
+
responseStream: false,
|
|
2288
|
+
requestType: payment_pb.HistoricalBonusCompletionRequest,
|
|
2289
|
+
responseType: payment_pb.HistoricalBonusCompletionResponse,
|
|
2290
|
+
requestSerialize: serialize_payment_HistoricalBonusCompletionRequest,
|
|
2291
|
+
requestDeserialize: deserialize_payment_HistoricalBonusCompletionRequest,
|
|
2292
|
+
responseSerialize: serialize_payment_HistoricalBonusCompletionResponse,
|
|
2293
|
+
responseDeserialize: deserialize_payment_HistoricalBonusCompletionResponse,
|
|
2294
|
+
},
|
|
2261
2295
|
readListCompensations: {
|
|
2262
2296
|
path: '/payment.Payment/readListCompensations',
|
|
2263
2297
|
requestStream: false,
|