@genex-ai/embed-sdk 0.15.0 → 0.16.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.
@@ -341,7 +341,7 @@ var RETRY_FLAG = "genex:embed:retry";
341
341
  var POPOVER_DISMISSED_FLAG = "genex:guest:popover-dismissed";
342
342
  var LOCAL_AUTH_FLAG = "genex:embed:local-auth";
343
343
  var PLAYER_ID_KEY = "genex:player";
344
- var SDK_VERSION = "0.15.0";
344
+ var SDK_VERSION = "0.16.0";
345
345
  var config = null;
346
346
  var state = "pending";
347
347
  var user = null;
package/dist/index.d.ts CHANGED
@@ -20,7 +20,20 @@ interface Entitlement {
20
20
  id: string;
21
21
  skuId: string;
22
22
  name: string;
23
+ /**
24
+ * How the player got it: `purchase` | `gift` | `test` | `free`.
25
+ *
26
+ * Almost never what you want — branch on {@link Entitlement.skuType}.
27
+ */
23
28
  type: string;
29
+ /**
30
+ * What the item IS: `consumable` | `durable`. **This is the one to branch on.**
31
+ *
32
+ * A consumable is spent on use, so consume it and apply the effect once. A
33
+ * durable is owned forever — never consume it; its presence in this list IS
34
+ * the ownership.
35
+ */
36
+ skuType: string;
24
37
  quantity: number;
25
38
  consumed: boolean;
26
39
  createdAt: string;
package/dist/index.js CHANGED
@@ -21,7 +21,7 @@ import {
21
21
  submitScore,
22
22
  waitForAuth,
23
23
  waitForPlayer
24
- } from "./chunk-DWDBRKRS.js";
24
+ } from "./chunk-ALBFRX3L.js";
25
25
  export {
26
26
  __resetForTests,
27
27
  _stashTicketFromUrl,
package/dist/sentry.js CHANGED
@@ -2,7 +2,7 @@ import {
2
2
  _stashTicketFromUrl,
3
3
  getUser,
4
4
  on
5
- } from "./chunk-DWDBRKRS.js";
5
+ } from "./chunk-ALBFRX3L.js";
6
6
 
7
7
  // src/sentry.ts
8
8
  import * as Sentry from "@sentry/browser";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@genex-ai/embed-sdk",
3
- "version": "0.15.0",
3
+ "version": "0.16.0",
4
4
  "description": "Player identity + durable game state for genex games \u2014 signed-in or guest play, per-player save slots, shared world state, and soft-trust leaderboards.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",