@mpgd/platform 0.5.1 → 0.6.0

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +6 -0
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -20,10 +20,15 @@ export interface Entitlement {
20
20
  readonly grantedAt: string;
21
21
  readonly expiresAt?: string;
22
22
  }
23
+ export interface PlatformEvidenceEnvelope {
24
+ readonly schema: string;
25
+ readonly payload: Readonly<Record<string, string | number | boolean>>;
26
+ }
23
27
  export interface PurchaseResult {
24
28
  readonly status: 'completed' | 'cancelled' | 'pending' | 'failed';
25
29
  readonly transactionId?: string;
26
30
  readonly entitlementIds: readonly string[];
31
+ readonly evidence?: PlatformEvidenceEnvelope;
27
32
  }
28
33
  export interface PurchaseRestoreResult {
29
34
  readonly restoredEntitlements: readonly Entitlement[];
@@ -32,6 +37,7 @@ export interface RewardedAdResult {
32
37
  readonly status: 'completed' | 'skipped' | 'unavailable' | 'failed';
33
38
  readonly rewardGranted: boolean;
34
39
  readonly ledgerEntryId?: string;
40
+ readonly evidence?: PlatformEvidenceEnvelope;
35
41
  }
36
42
  export interface InterstitialAdResult {
37
43
  readonly status: 'shown' | 'skipped' | 'unavailable';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mpgd/platform",
3
- "version": "0.5.1",
3
+ "version": "0.6.0",
4
4
  "description": "Shared platform gateway, monetization, ads, leaderboard, identity, lifecycle, and storage contracts for mpgd games.",
5
5
  "license": "MIT",
6
6
  "repository": {