@genex-ai/embed-sdk 0.32.0 → 0.33.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.
package/README.md CHANGED
@@ -254,6 +254,86 @@ and save from `onShellClosing()`. Reading the clipboard is not available: listen
254
254
  for the `paste` event. Sign-in popups for other services, notifications and
255
255
  the tab's title are not available to a framed game.
256
256
 
257
+ ## Request a Coin payment
258
+
259
+ SDK **0.33.0+**. Use `requestPayment()` when an action needs payment: an extra turn, access to a
260
+ room, a custom upgrade. No product registration or shop card is required. Pass
261
+ the title, optional description and Coin amount; Genex freezes those terms,
262
+ shows its own confirmation with the real-money equivalent, and charges only
263
+ after the player agrees. The game never confirms a charge itself.
264
+
265
+ ```ts
266
+ import { requestPayment, getPayment, getPayments } from '@genex-ai/embed-sdk';
267
+
268
+ // Your game saves the order ID AND its terms before enabling the button.
269
+ // Keep this order after a reload or timeout; don't generate a new ID on retry.
270
+ const order = await loadOrCreateOrderForCurrentAction();
271
+
272
+ payButton.addEventListener('click', async () => {
273
+ // Call before any await in the click handler, so the popup can open.
274
+ const result = await requestPayment({
275
+ orderId: order.id,
276
+ title: 'Open the secret room',
277
+ description: 'Access for this run',
278
+ amountCoins: order.amountCoins,
279
+ });
280
+ if (result.status === 'succeeded' && result.payment) {
281
+ await deliverOrderOnce(result.payment.orderId); // Your game's saved state.
282
+ }
283
+ if (result.status === 'pending') showPaymentPending(order.id);
284
+ });
285
+
286
+ // Recover an uncertain payment without asking for another charge.
287
+ const payment = await getPayment(order.id);
288
+ if (payment?.status === 'succeeded') await deliverOrderOnce(payment.orderId);
289
+
290
+ // Or reconcile all successful payments, following every nextCursor.
291
+ let cursor: string | undefined;
292
+ do {
293
+ const page = await getPayments({ cursor, limit: 50 });
294
+ for (const paid of page.payments) await deliverOrderOnce(paid.orderId);
295
+ cursor = page.nextCursor ?? undefined;
296
+ } while (cursor);
297
+ ```
298
+
299
+ `loadOrCreateOrderForCurrentAction`, `deliverOrderOnce` and the UI helpers above
300
+ are your game code. Delivery must be idempotent by `orderId` and recorded with
301
+ the saved effect. A payment receipt does not create an inventory item or apply
302
+ an effect for you. Delivering from a success message alone loses the action if
303
+ the game closes after payment; reconcile from receipts on boot too.
304
+
305
+ `orderId` is 1–128 characters, cannot be exactly `.` or `..`, and belongs to
306
+ this player and game. Repeating
307
+ the same ID with the same terms returns the same payment, including a canceled
308
+ or expired one. Changing its terms returns `payment_conflict`. A new purchase
309
+ gets a new ID. `title` must be 1–80 characters after trimming; `description` is optional
310
+ and at most 1000 characters after trimming, and `amountCoins` is a whole number
311
+ from 1 to 100000, further limited by the platform's payment settings. Text is
312
+ plain text. The recipient and revenue split are chosen by Genex, not the game.
313
+
314
+ `requestPayment()` returns `{ status, payment?, message? }`. `succeeded` means
315
+ the server recorded the charge; `canceled` and `expired` are terminal server
316
+ outcomes. `insufficient_balance` or `failed` explain a refusal. **`pending`
317
+ means the result is uncertain**, including a timeout or lost response: read
318
+ `getPayment(orderId)` and reuse that order when retrying. A closed popup is not
319
+ proof of cancellation. `timeoutMs` defaults to three minutes and only limits
320
+ how long this call waits; it does not cancel a payment.
321
+
322
+ `getPayment()` returns a `PaymentReceipt` or `null` for a missing order; a read
323
+ failure throws, so never interpret it as an unpaid order. `getPayments()` lists
324
+ only successful payments with `{ payments, nextCursor }`. Each receipt has
325
+ `id`, `orderId`, `title`, `description`, `amountCoins`,
326
+ `priceDisplayUsdCents`, `status`, `failureCode`, `createdAt`, `paidAt` and
327
+ `expiresAt`. All timestamps are ISO strings; `paidAt` is null until paid.
328
+
329
+ Payments require a signed-in player in a published game. On the Genex game page
330
+ the platform opens a sheet outside the game frame and releases the game's
331
+ pointer lock. On the game's own address the SDK opens a separate platform
332
+ window; call directly from a click or tap. Local test mode and the native app
333
+ do not support payments. Older platforms without this endpoint return a
334
+ failure; the SDK does not silently create a catalog item instead. Existing
335
+ `getShop()` / `buy()` / entitlement APIs remain available for catalog games.
336
+
257
337
  ## Generate during play
258
338
 
259
339
  Runtime generation requires a signed-in player in a published game and an
@@ -638,14 +638,14 @@ async function awaitOutcome(intentId, timeoutMs) {
638
638
  }
639
639
  return { status: "expired" };
640
640
  }
641
- function openConfirmSurface(view) {
641
+ function openConfirmSurface(view, parentOrigin2) {
642
642
  const c = must();
643
643
  const w = typeof window === "undefined" ? null : window;
644
644
  if (!w) return { ok: false, reason: "no_window" };
645
645
  if (c.isNative()) return { ok: false, reason: "native_unsupported" };
646
646
  if (c.isEmbedded() && w.parent) {
647
647
  _releasePointer();
648
- for (const origin of c.dashboardOrigins) {
648
+ for (const origin of parentOrigin2 ? [parentOrigin2] : c.dashboardOrigins) {
649
649
  try {
650
650
  w.parent.postMessage({ type: "genex:commerce:confirm", v: 1, intentId: view.id }, origin);
651
651
  } catch {
@@ -678,6 +678,167 @@ async function buy(opts) {
678
678
  }
679
679
  return awaitOutcome(view.id, opts.timeoutMs ?? 18e4);
680
680
  }
681
+ async function getPayment(orderId) {
682
+ const c = must();
683
+ if (c.isLocalTest()) return null;
684
+ if (!validOrderId(orderId)) throw new Error("invalid_order_id");
685
+ return readPayment(orderId, 15e3);
686
+ }
687
+ async function getPayments(opts) {
688
+ const c = must();
689
+ if (c.isLocalTest()) return { payments: [], nextCursor: null };
690
+ const qs = new URLSearchParams();
691
+ if (opts?.cursor !== void 0) qs.set("cursor", opts.cursor);
692
+ if (opts?.limit !== void 0) qs.set("limit", String(opts.limit));
693
+ const query = qs.size ? `?${qs}` : "";
694
+ const res = await fetch(`${c.apiUrl}/api/coin/payments${query}`, {
695
+ headers: authHeaders(),
696
+ signal: AbortSignal.timeout(15e3)
697
+ });
698
+ if (!res.ok) throw new Error(`genex payments failed (${res.status})`);
699
+ return await res.json();
700
+ }
701
+ function validOrderId(orderId) {
702
+ return typeof orderId === "string" && orderId.length > 0 && orderId.length <= 128 && orderId !== "." && orderId !== "..";
703
+ }
704
+ async function readPayment(orderId, timeoutMs) {
705
+ const res = await fetch(`${must().apiUrl}/api/coin/payments/orders/${encodeURIComponent(orderId)}`, {
706
+ headers: authHeaders(),
707
+ signal: AbortSignal.timeout(Math.max(1, Math.ceil(timeoutMs)))
708
+ });
709
+ if (res.status === 404) {
710
+ const body = await res.json().catch(() => null);
711
+ if (body?.error === "payment_not_found") return null;
712
+ }
713
+ if (!res.ok) throw new Error(`genex payment failed (${res.status})`);
714
+ const payment = await res.json();
715
+ if (payment.orderId !== orderId) throw new Error("invalid_payment_response");
716
+ return payment;
717
+ }
718
+ function paymentOutcome(payment) {
719
+ switch (payment.status) {
720
+ case "succeeded":
721
+ case "canceled":
722
+ case "expired":
723
+ return { status: payment.status, payment };
724
+ case "failed":
725
+ return {
726
+ status: payment.failureCode === "insufficient_balance" ? "insufficient_balance" : "failed",
727
+ payment,
728
+ message: payment.failureCode ?? "payment_failed"
729
+ };
730
+ default:
731
+ return null;
732
+ }
733
+ }
734
+ async function awaitPaymentOutcome(payment, deadline) {
735
+ let delay = 400;
736
+ while (Date.now() < deadline) {
737
+ await new Promise((resolve) => setTimeout(resolve, Math.min(delay, deadline - Date.now())));
738
+ if (Date.now() >= deadline) break;
739
+ delay = Math.min(delay * 1.4, 2e3);
740
+ try {
741
+ const latest = await readPayment(payment.orderId, Math.min(15e3, deadline - Date.now()));
742
+ if (!latest || latest.id !== payment.id) continue;
743
+ payment = latest;
744
+ const result = paymentOutcome(payment);
745
+ if (result) return result;
746
+ } catch {
747
+ }
748
+ }
749
+ return { status: "pending", payment, message: "payment_timeout" };
750
+ }
751
+ async function requestPayment(opts) {
752
+ const c = must();
753
+ if (c.isLocalTest()) return { status: "failed", message: "payments are unavailable in local test mode" };
754
+ if (c.isNative()) return { status: "failed", message: "payments are not available in the app yet" };
755
+ if (typeof window === "undefined") return { status: "failed", message: "no_window" };
756
+ if (!c.getToken()) return { status: "failed", message: "no_player_session" };
757
+ const parentOrigin2 = c.getParentOrigin();
758
+ if (c.isEmbedded() && (!parentOrigin2 || !c.dashboardOrigins.includes(parentOrigin2))) {
759
+ return { status: "failed", message: "untrusted_parent" };
760
+ }
761
+ if (!validOrderId(opts.orderId)) return { status: "failed", message: "invalid_order_id" };
762
+ const title = typeof opts.title === "string" ? opts.title.trim() : "";
763
+ if (!title || title.length > 80) return { status: "failed", message: "invalid_title" };
764
+ if (opts.description !== void 0 && typeof opts.description !== "string") {
765
+ return { status: "failed", message: "invalid_description" };
766
+ }
767
+ const description = opts.description?.trim();
768
+ if (description && description.length > 1e3) return { status: "failed", message: "invalid_description" };
769
+ if (!Number.isSafeInteger(opts.amountCoins) || opts.amountCoins < 1 || opts.amountCoins > 1e5) {
770
+ return { status: "failed", message: "invalid_amount_coins" };
771
+ }
772
+ const timeoutMs = opts.timeoutMs ?? 18e4;
773
+ if (!Number.isFinite(timeoutMs) || timeoutMs <= 0 || timeoutMs > 2147483647) {
774
+ return { status: "failed", message: "invalid_timeout" };
775
+ }
776
+ const deadline = Date.now() + timeoutMs;
777
+ let popup = null;
778
+ if (!c.isEmbedded()) {
779
+ try {
780
+ popup = window.open("about:blank", "_blank", "popup,width=420,height=640");
781
+ if (popup) popup.opener = null;
782
+ } catch {
783
+ popup?.close();
784
+ return { status: "failed", message: "popup_blocked" };
785
+ }
786
+ if (!popup) return { status: "failed", message: "popup_blocked" };
787
+ }
788
+ let payment;
789
+ try {
790
+ const created = await fetch(`${c.apiUrl}/api/coin/payments`, {
791
+ method: "POST",
792
+ headers: { ...authHeaders(), "Content-Type": "application/json" },
793
+ body: JSON.stringify({
794
+ orderId: opts.orderId,
795
+ title,
796
+ amountCoins: opts.amountCoins,
797
+ ...description ? { description } : {}
798
+ }),
799
+ signal: AbortSignal.timeout(Math.max(1, Math.ceil(Math.min(15e3, deadline - Date.now()))))
800
+ });
801
+ if (!created.ok) {
802
+ popup?.close();
803
+ const body = await created.json().catch(() => ({}));
804
+ return {
805
+ status: created.status >= 500 ? "pending" : "failed",
806
+ message: body.error ?? `payment_failed_${created.status}`
807
+ };
808
+ }
809
+ const view = await created.json();
810
+ if (view.orderId !== opts.orderId || view.title !== title || view.amountCoins !== opts.amountCoins || view.description !== (description || null) || typeof view.id !== "string") {
811
+ throw new Error("invalid_payment_response");
812
+ }
813
+ const { confirmUrl, ...receipt } = view;
814
+ payment = receipt;
815
+ const result = paymentOutcome(payment);
816
+ if (result) {
817
+ popup?.close();
818
+ return result;
819
+ }
820
+ if (payment.status === "requires_confirmation") {
821
+ const url = new URL(confirmUrl);
822
+ const trustedProtocol = url.protocol === "https:" || url.protocol === "http:" && ["localhost", "127.0.0.1", "[::1]"].includes(url.hostname);
823
+ if (!trustedProtocol || !c.dashboardOrigins.includes(url.origin) || url.username || url.password || url.pathname !== `/confirm/${encodeURIComponent(payment.id)}` || url.search || url.hash) {
824
+ popup?.close();
825
+ return { status: "pending", payment, message: "invalid_confirm_url" };
826
+ }
827
+ if (popup) {
828
+ if (!popup.closed) popup.location.href = url.href;
829
+ } else {
830
+ const opened = openConfirmSurface({ id: payment.id, confirmUrl: url.href }, parentOrigin2);
831
+ if (!opened.ok) return { status: "pending", payment, message: opened.reason };
832
+ }
833
+ } else {
834
+ popup?.close();
835
+ }
836
+ } catch (error) {
837
+ popup?.close();
838
+ return { status: "pending", ...payment ? { payment } : {}, message: error instanceof Error ? error.message : "payment_unavailable" };
839
+ }
840
+ return awaitPaymentOutcome(payment, deadline);
841
+ }
681
842
 
682
843
  // src/stream.ts
683
844
  function createSseParser(onEvent) {
@@ -1497,7 +1658,7 @@ var LOCAL_AUTH_FLAG = "genex:embed:local-auth";
1497
1658
  var ENTRY_REFERRER_MEMO = "genex:embed:entry-referrer";
1498
1659
  var ENTRY_REFERRER_NONE = "none";
1499
1660
  var PLAYER_ID_KEY = "genex:player";
1500
- var SDK_VERSION = "0.32.0";
1661
+ var SDK_VERSION = "0.33.0";
1501
1662
  var config2 = null;
1502
1663
  var state = "pending";
1503
1664
  var user = null;
@@ -1651,6 +1812,7 @@ function initEmbed(cfg2) {
1651
1812
  apiUrl: config2.apiUrl,
1652
1813
  dashboardOrigins: config2.dashboardOrigins,
1653
1814
  getToken: () => embedToken,
1815
+ getParentOrigin: () => parentOrigin,
1654
1816
  isEmbedded,
1655
1817
  isNative: inNativeMode,
1656
1818
  isLocalTest: () => localTestMode
@@ -3019,6 +3181,9 @@ export {
3019
3181
  getEntitlements,
3020
3182
  consumeEntitlement,
3021
3183
  buy,
3184
+ getPayment,
3185
+ getPayments,
3186
+ requestPayment,
3022
3187
  getGenerationModels,
3023
3188
  getWorkflowOfferings,
3024
3189
  getGeneration,
package/dist/index.d.ts CHANGED
@@ -75,6 +75,43 @@ interface PurchaseResult {
75
75
  entitlementId?: string;
76
76
  message?: string;
77
77
  }
78
+ /** A server-recorded payment request, scoped to this player and game. */
79
+ interface PaymentReceipt {
80
+ id: string;
81
+ /** The game's stable order key. Reusing it never creates another charge. */
82
+ orderId: string;
83
+ title: string;
84
+ description: string | null;
85
+ amountCoins: number;
86
+ /** Frozen real-money equivalent from the server, in USD cents. */
87
+ priceDisplayUsdCents: number;
88
+ status: 'requires_confirmation' | 'processing' | 'succeeded' | 'canceled' | 'expired' | 'failed';
89
+ failureCode: string | null;
90
+ createdAt: string;
91
+ paidAt: string | null;
92
+ expiresAt: string;
93
+ }
94
+ interface PaymentOptions {
95
+ /** Persist before asking. Reuse the same order and terms when retrying. */
96
+ orderId: string;
97
+ title: string;
98
+ description?: string;
99
+ amountCoins: number;
100
+ /** How long to wait, including creating the request. Default 3 minutes. */
101
+ timeoutMs?: number;
102
+ }
103
+ type PaymentStatus = PurchaseStatus | 'pending';
104
+ interface PaymentResult {
105
+ /** `pending` is uncertain: recover with getPayment(orderId), never charge anew. */
106
+ status: PaymentStatus;
107
+ /** Latest authoritative server receipt, when one was received. */
108
+ payment?: PaymentReceipt;
109
+ message?: string;
110
+ }
111
+ interface PaymentPage {
112
+ payments: PaymentReceipt[];
113
+ nextCursor: string | null;
114
+ }
78
115
  /**
79
116
  * The items this game sells.
80
117
  *
@@ -137,6 +174,32 @@ declare function buy(opts: {
137
174
  /** How long to wait for the player to decide. Default 3 minutes. */
138
175
  timeoutMs?: number;
139
176
  }): Promise<PurchaseResult>;
177
+ /**
178
+ * Recover a saved order after a timeout, reload or lost response.
179
+ * Returns null when this player has no such order in this game. A failed read
180
+ * throws: a network failure is not evidence that the order was never paid.
181
+ */
182
+ declare function getPayment(orderId: string): Promise<PaymentReceipt | null>;
183
+ /**
184
+ * This player's successful payments in this game, newest first.
185
+ * On boot, follow nextCursor until null and reconcile against saved delivered
186
+ * order IDs. A receipt is proof of payment, not automatic delivery of an item.
187
+ */
188
+ declare function getPayments(opts?: {
189
+ cursor?: string;
190
+ limit?: number;
191
+ }): Promise<PaymentPage>;
192
+ /**
193
+ * Ask the player to approve a dynamic Coin payment. No catalog item required.
194
+ * Call directly from a click or tap, before any await: standalone games reserve
195
+ * the platform popup synchronously. Only Genex can confirm the charge.
196
+ *
197
+ * Save orderId before calling. Repeating the same order and terms returns its
198
+ * existing receipt; changing its terms fails with payment_conflict. Deliver
199
+ * once by orderId only after succeeded. `pending` means getPayment(orderId)
200
+ * must recover the outcome; it never means a fresh order is safe to charge.
201
+ */
202
+ declare function requestPayment(opts: PaymentOptions): Promise<PaymentResult>;
140
203
 
141
204
  interface GenerateOptions {
142
205
  /**
@@ -1052,4 +1115,4 @@ declare function __resetForTests(overrides?: {
1052
1115
  platformConfirmTimeoutMs?: number;
1053
1116
  }): void;
1054
1117
 
1055
- export { type AppendEventResult, type AuthState, type DeleteSharedResult, type EmbedConfig, type EmbedEntry, type EmbedEvent, type EmbedShell, type EmbedUser, type Entitlement, type GenerateOptions, type GenerateStreamOptions, type HapticKind, type JudgeOptions, type JudgeResult, type Leaderboard, type LeaderboardEntry, type PlatformError, type PlatformFeature, type PlatformOutcome, type PlayerStateResult, type PurchaseResult, type PurchaseStatus, type PutSharedResult, type RequestWorkflowOptions, RuntimeGenerationBilling, RuntimeGenerationFunding, RuntimeGenerationModels, type RuntimeGenerationResult, RuntimeGenerationView, RuntimeGrantView, RuntimeJudgeAnswer, RuntimeJudgeQuestion, RuntimeJudgmentView, type RuntimeWorkflowAuthorization, RuntimeWorkflowInput, RuntimeWorkflowOfferings, type SaveStateResult, type ShareOptions, type ShareResult, type SharedEventPage, type SharedEventRecord, type SharedObject, type SharedObjectInfo, type SharedPage, type ShopItem, type SpendGrantDisclosure, type SpendGrantOptions, type SpendGrantResult, type SubmitScoreResult, type WorldStateResult, __resetForTests, _stashTicketFromUrl, appendEvent, buy, consumeEntitlement, copyText, deleteShared, generate, generateStream, generationErrorMessage, getActiveSpendGrant, getAuthState, getColyseusAuth, getColyseusUrls, getEmbedToken, getEntitlements, getEntry, getGeneration, getGenerationModels, getLeaderboard, getShared, getShell, getShop, getSpendGrant, getUser, getWorkflowOfferings, haptic, initEmbed, isEmbedded, judge, keepAwake, listEvents, listShared, loadPlayerState, loadWorldState, on, onShellClosing, openExternal, putShared, requestSpendGrant, requestWorkflow, resumeWorkflow, saveFile, savePlayerState, saveWorldState, setFullscreen, share, stopSpendGrant, submitScore, supports, waitForAuth, waitForGeneration, waitForPlayer };
1118
+ export { type AppendEventResult, type AuthState, type DeleteSharedResult, type EmbedConfig, type EmbedEntry, type EmbedEvent, type EmbedShell, type EmbedUser, type Entitlement, type GenerateOptions, type GenerateStreamOptions, type HapticKind, type JudgeOptions, type JudgeResult, type Leaderboard, type LeaderboardEntry, type PaymentOptions, type PaymentPage, type PaymentReceipt, type PaymentResult, type PaymentStatus, type PlatformError, type PlatformFeature, type PlatformOutcome, type PlayerStateResult, type PurchaseResult, type PurchaseStatus, type PutSharedResult, type RequestWorkflowOptions, RuntimeGenerationBilling, RuntimeGenerationFunding, RuntimeGenerationModels, type RuntimeGenerationResult, RuntimeGenerationView, RuntimeGrantView, RuntimeJudgeAnswer, RuntimeJudgeQuestion, RuntimeJudgmentView, type RuntimeWorkflowAuthorization, RuntimeWorkflowInput, RuntimeWorkflowOfferings, type SaveStateResult, type ShareOptions, type ShareResult, type SharedEventPage, type SharedEventRecord, type SharedObject, type SharedObjectInfo, type SharedPage, type ShopItem, type SpendGrantDisclosure, type SpendGrantOptions, type SpendGrantResult, type SubmitScoreResult, type WorldStateResult, __resetForTests, _stashTicketFromUrl, appendEvent, buy, consumeEntitlement, copyText, deleteShared, generate, generateStream, generationErrorMessage, getActiveSpendGrant, getAuthState, getColyseusAuth, getColyseusUrls, getEmbedToken, getEntitlements, getEntry, getGeneration, getGenerationModels, getLeaderboard, getPayment, getPayments, getShared, getShell, getShop, getSpendGrant, getUser, getWorkflowOfferings, haptic, initEmbed, isEmbedded, judge, keepAwake, listEvents, listShared, loadPlayerState, loadWorldState, on, onShellClosing, openExternal, putShared, requestPayment, requestSpendGrant, requestWorkflow, resumeWorkflow, saveFile, savePlayerState, saveWorldState, setFullscreen, share, stopSpendGrant, submitScore, supports, waitForAuth, waitForGeneration, waitForPlayer };
package/dist/index.js CHANGED
@@ -19,6 +19,8 @@ import {
19
19
  getGeneration,
20
20
  getGenerationModels,
21
21
  getLeaderboard,
22
+ getPayment,
23
+ getPayments,
22
24
  getShared,
23
25
  getShell,
24
26
  getShop,
@@ -38,6 +40,7 @@ import {
38
40
  onShellClosing,
39
41
  openExternal,
40
42
  putShared,
43
+ requestPayment,
41
44
  requestSpendGrant,
42
45
  requestWorkflow,
43
46
  resumeWorkflow,
@@ -52,7 +55,7 @@ import {
52
55
  waitForAuth,
53
56
  waitForGeneration,
54
57
  waitForPlayer
55
- } from "./chunk-NBCL5P5V.js";
58
+ } from "./chunk-NI554TIV.js";
56
59
  import "./chunk-QBCWKMVQ.js";
57
60
  export {
58
61
  __resetForTests,
@@ -75,6 +78,8 @@ export {
75
78
  getGeneration,
76
79
  getGenerationModels,
77
80
  getLeaderboard,
81
+ getPayment,
82
+ getPayments,
78
83
  getShared,
79
84
  getShell,
80
85
  getShop,
@@ -94,6 +99,7 @@ export {
94
99
  onShellClosing,
95
100
  openExternal,
96
101
  putShared,
102
+ requestPayment,
97
103
  requestSpendGrant,
98
104
  requestWorkflow,
99
105
  resumeWorkflow,
package/dist/sentry.js CHANGED
@@ -2,7 +2,7 @@ import {
2
2
  _stashTicketFromUrl,
3
3
  getUser,
4
4
  on
5
- } from "./chunk-NBCL5P5V.js";
5
+ } from "./chunk-NI554TIV.js";
6
6
  import "./chunk-QBCWKMVQ.js";
7
7
 
8
8
  // src/sentry.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@genex-ai/embed-sdk",
3
- "version": "0.32.0",
3
+ "version": "0.33.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, soft-trust leaderboards, and shared collections and event streams.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",