@invonetwork/web-sdk 3.29.1 → 3.30.1

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 (36) hide show
  1. package/CHANGELOG.md +1442 -1397
  2. package/README.md +2954 -2923
  3. package/dist/chunk-3ECVREIM.js +6 -0
  4. package/dist/chunk-7O5JT3LK.js +1590 -0
  5. package/dist/{chunk-VP3OK4J4.js → chunk-TCT2QSVB.js} +515 -3
  6. package/dist/{chunk-YONO4JE5.js → chunk-V2RQYQQD.js} +44 -5
  7. package/dist/game-server.cjs +387 -42
  8. package/dist/game-server.d.cts +42 -6
  9. package/dist/game-server.d.ts +42 -6
  10. package/dist/game-server.js +286 -8
  11. package/dist/game.cjs +2677 -9
  12. package/dist/game.d.cts +78 -4
  13. package/dist/game.d.ts +78 -4
  14. package/dist/game.js +558 -3
  15. package/dist/hosted-approval-DcY4U2RN.d.cts +96 -0
  16. package/dist/hosted-approval-DiKmtjEh.d.ts +96 -0
  17. package/dist/index.d.cts +7 -96
  18. package/dist/index.d.ts +7 -96
  19. package/dist/index.js +2 -1635
  20. package/dist/loyalty-events-CmDw2ZoR.d.cts +40 -0
  21. package/dist/loyalty-events-CmDw2ZoR.d.ts +40 -0
  22. package/dist/{server-Bxo_wgHx.d.cts → server-BAOn3KH3.d.cts} +28 -2
  23. package/dist/{server-BYY6tM6X.d.ts → server-DHmQU1eN.d.ts} +28 -2
  24. package/dist/server.cjs +106 -40
  25. package/dist/server.d.cts +4 -3
  26. package/dist/server.d.ts +4 -3
  27. package/dist/server.js +3 -4
  28. package/dist/{types-_lIm74kd.d.cts → types-BTbZicgj.d.cts} +1 -40
  29. package/dist/{types-_lIm74kd.d.ts → types-BTbZicgj.d.ts} +1 -40
  30. package/dist/{types-CLyJDuXd.d.cts → types-jUxfYjiD.d.cts} +64 -1
  31. package/dist/{types-CLyJDuXd.d.ts → types-jUxfYjiD.d.ts} +64 -1
  32. package/dist/{version-DOaYbHu7.d.cts → version-CR7XECyP.d.cts} +1 -1
  33. package/dist/{version-DOaYbHu7.d.ts → version-CR7XECyP.d.ts} +1 -1
  34. package/package.json +91 -91
  35. package/dist/chunk-6CN236QH.js +0 -473
  36. package/dist/chunk-VOGZZ6QS.js +0 -6
@@ -0,0 +1,40 @@
1
+ /**
2
+ * Gameplay event types your game reports to INVO's loyalty engine (3.27.0). Currency steps
3
+ * (purchases, transfers, sends, item spending, subscriptions) are seen by INVO directly and
4
+ * are never reported; reporting one is refused with `RESERVED_EVENT_TYPE`.
5
+ *
6
+ * - `game.session.started` / `game.session.heartbeat`: payload `{ session_ref }`
7
+ * - `game.session.ended`: payload `{ session_ref, duration_seconds }`
8
+ * - `game.milestone.reached`: payload `{ milestone_key, value?, session_ref? }` (e.g. `level_10`)
9
+ * - `game.custom.recorded`: payload `{ event_name, value? }`; the name must be registered in
10
+ * the console first, else `422 validation_failed`
11
+ */
12
+ type GameEventType = "game.session.started" | "game.session.heartbeat" | "game.session.ended" | "game.milestone.reached" | "game.custom.recorded" | (string & {});
13
+ /** One gameplay event, reported by the player's browser (`InvoClient.reportGameEvent`). */
14
+ interface ReportGameEventInput {
15
+ /** A `game.*` type; see {@link GameEventType}. */
16
+ eventType: GameEventType;
17
+ /**
18
+ * Idempotency key (a UUID). Resend the SAME id when you retry, so INVO counts the event
19
+ * once. The SDK generates one when you leave it out, and returns it.
20
+ */
21
+ eventId?: string;
22
+ /** When it happened: ISO 8601 with a timezone, or a Date. Defaults to INVO's receive time. */
23
+ occurredAt?: string | Date;
24
+ /** The event's fields (see {@link GameEventType}). */
25
+ payload?: Record<string, unknown>;
26
+ }
27
+ /** One gameplay event reported by your SERVER (`InvoServer.reportGameEvent`), trusted for rewards. */
28
+ interface ReportServerGameEventInput extends ReportGameEventInput {
29
+ /** The player in your game, by email. */
30
+ playerEmail: string;
31
+ }
32
+ interface ReportGameEventResult {
33
+ /** True when INVO recorded the event (202). */
34
+ accepted: boolean;
35
+ /** The event id INVO received: yours, or the one the SDK generated. Reuse it on a retry. */
36
+ eventId: string;
37
+ raw: Record<string, unknown>;
38
+ }
39
+
40
+ export type { GameEventType as G, ReportGameEventInput as R, ReportGameEventResult as a, ReportServerGameEventInput as b };
@@ -0,0 +1,40 @@
1
+ /**
2
+ * Gameplay event types your game reports to INVO's loyalty engine (3.27.0). Currency steps
3
+ * (purchases, transfers, sends, item spending, subscriptions) are seen by INVO directly and
4
+ * are never reported; reporting one is refused with `RESERVED_EVENT_TYPE`.
5
+ *
6
+ * - `game.session.started` / `game.session.heartbeat`: payload `{ session_ref }`
7
+ * - `game.session.ended`: payload `{ session_ref, duration_seconds }`
8
+ * - `game.milestone.reached`: payload `{ milestone_key, value?, session_ref? }` (e.g. `level_10`)
9
+ * - `game.custom.recorded`: payload `{ event_name, value? }`; the name must be registered in
10
+ * the console first, else `422 validation_failed`
11
+ */
12
+ type GameEventType = "game.session.started" | "game.session.heartbeat" | "game.session.ended" | "game.milestone.reached" | "game.custom.recorded" | (string & {});
13
+ /** One gameplay event, reported by the player's browser (`InvoClient.reportGameEvent`). */
14
+ interface ReportGameEventInput {
15
+ /** A `game.*` type; see {@link GameEventType}. */
16
+ eventType: GameEventType;
17
+ /**
18
+ * Idempotency key (a UUID). Resend the SAME id when you retry, so INVO counts the event
19
+ * once. The SDK generates one when you leave it out, and returns it.
20
+ */
21
+ eventId?: string;
22
+ /** When it happened: ISO 8601 with a timezone, or a Date. Defaults to INVO's receive time. */
23
+ occurredAt?: string | Date;
24
+ /** The event's fields (see {@link GameEventType}). */
25
+ payload?: Record<string, unknown>;
26
+ }
27
+ /** One gameplay event reported by your SERVER (`InvoServer.reportGameEvent`), trusted for rewards. */
28
+ interface ReportServerGameEventInput extends ReportGameEventInput {
29
+ /** The player in your game, by email. */
30
+ playerEmail: string;
31
+ }
32
+ interface ReportGameEventResult {
33
+ /** True when INVO recorded the event (202). */
34
+ accepted: boolean;
35
+ /** The event id INVO received: yours, or the one the SDK generated. Reuse it on a retry. */
36
+ eventId: string;
37
+ raw: Record<string, unknown>;
38
+ }
39
+
40
+ export type { GameEventType as G, ReportGameEventInput as R, ReportGameEventResult as a, ReportServerGameEventInput as b };
@@ -1,5 +1,6 @@
1
- import { I as InvoError, H as Http, a2 as AuthHeader, g as CallOptions, a3 as PlatformPurchaseInput, a4 as PlatformPurchaseResult, a5 as PlatformOrderStatusResult, a6 as PlatformPurchaseHistoryQuery, a7 as PlatformPurchaseHistoryResult, a8 as PlatformRefundInput, a9 as PlatformRefundResult, aa as CreateSubscriptionInput, ab as SubscriptionResult, ac as GetSubscriptionOptions, ad as GetSubscriptionResult, ae as ListSubscriptionsOptions, af as SubscriptionListResult, ag as CancelSubscriptionOptions, ah as CancelResult, ai as ChangeAmountResult, aj as SetPaymentMethodInput, ak as SetPaymentMethodResult, al as RefundSubscriptionInput, am as RefundResult, an as SteamSubscriptionInitInput, ao as SteamInitResult, ap as SteamFinalizeSubscriptionResult, aq as CardSetupSessionInput, ar as CardSetupSessionResult, as as CardSetupInput, at as CardSetupResult, au as CardSetupConfirmInput, av as CardSetupConfirmResult, aw as PlayerCardsResult, ax as SandboxClockResult, ay as SandboxFailureOutcome, az as SandboxForceFailureOptions, aA as SandboxForceAuthChallengeOptions, aB as ServerConfig, aC as MintPlayerTokenInput, aD as PlayerToken, aE as RegisterPlayerInput, aF as RegisterPlayerResult, aG as UpdatePlayerPhoneInput, aH as UpdatePlayerPhoneResult, aI as RequestPhoneChangeInput, aJ as RequestPhoneChangeResult, aK as PhoneChangeRequest, aL as InitiateSendInput, aM as InitiateResult, aN as InitiateTransferInput, aO as CreateCheckoutInput, aP as CreateCheckoutResult, aQ as PurchaseInput, aR as PurchaseResult, aS as CurrencyPurchaseQuoteInput, aT as CurrencyPurchaseQuote, aU as ConfirmPaymentResult, aV as OrderDetailsResult, aW as SteamPacksQuery, aX as SteamPacksResult, aY as SteamInitPurchaseInput, aZ as SteamInitPurchaseResult, a_ as SteamFinalizeInput, a$ as SteamFinalizeResult, b0 as PurchaseItemInput, b1 as PurchaseItemResult, b2 as ItemHistoryQuery, b3 as ItemHistoryResult, b4 as ItemOrderQuery, b5 as PlayerActivityQuery, b6 as PlayerActivityResult, b7 as PlayerActivityEntry, b8 as PlayerBalanceQuery, b9 as PlayerBalanceResult, o as LoyaltyCardsResult, ba as ReportServerGameEventInput, s as ReportGameEventResult, bb as InboundPendingQuery, bc as InboundPendingResult, bd as LinkedIdentitiesQuery, be as LinkedIdentitiesResult, bf as SmsVerifyResult, bg as ClaimTransferInput, bh as ClaimResult, bi as ClaimCurrencyInput, bj as TransactionStatusResult, bk as GuardianApprovalStatusResult, bl as ServerDestinationsQuery, n as DestinationsResult, bm as PhoneShareContact, bn as PhoneShareInitiateResult, bo as PhoneShareApproveInput, bp as PhoneShareApproveResult, bq as PhoneShareStatusResult, br as BeginDeviceApprovalInput, bs as DeviceApprovalGrant, bt as PollDeviceApprovalInput, bu as DeviceApprovalPollResult, bv as ConfirmDeviceEnrollmentInput, bw as ConfirmDeviceEnrollmentResult, bx as ApproveWithDeviceCodeInput, by as DeviceApprovalSettleResult, bz as CompleteDeviceApprovalInput, bA as CompleteDeviceApprovalResult } from './types-_lIm74kd.cjs';
2
- import './version-DOaYbHu7.cjs';
1
+ import { I as InvoError, H as Http, $ as AuthHeader, g as CallOptions, a0 as PlatformPurchaseInput, a1 as PlatformPurchaseResult, a2 as PlatformOrderStatusResult, a3 as PlatformPurchaseHistoryQuery, a4 as PlatformPurchaseHistoryResult, a5 as PlatformRefundInput, a6 as PlatformRefundResult, a7 as CreateSubscriptionInput, a8 as SubscriptionResult, a9 as GetSubscriptionOptions, aa as GetSubscriptionResult, ab as ListSubscriptionsOptions, ac as SubscriptionListResult, ad as CancelSubscriptionOptions, ae as CancelResult, af as ChangeAmountResult, ag as SetPaymentMethodInput, ah as SetPaymentMethodResult, ai as RefundSubscriptionInput, aj as RefundResult, ak as SteamSubscriptionInitInput, al as SteamInitResult, am as SteamFinalizeSubscriptionResult, an as CardSetupSessionInput, ao as CardSetupSessionResult, ap as CardSetupInput, aq as CardSetupResult, ar as CardSetupConfirmInput, as as CardSetupConfirmResult, at as PlayerCardsResult, au as SandboxClockResult, av as SandboxFailureOutcome, aw as SandboxForceFailureOptions, ax as SandboxForceAuthChallengeOptions, ay as ServerConfig, az as MintPlayerTokenInput, aA as PlayerToken, aB as RegisterPlayerInput, aC as RegisterPlayerResult, aD as UpdatePlayerPhoneInput, aE as UpdatePlayerPhoneResult, aF as RequestPhoneChangeInput, aG as RequestPhoneChangeResult, aH as PhoneChangeRequest, aI as InitiateSendInput, aJ as InitiateResult, aK as InitiateTransferInput, aL as CreateCheckoutInput, aM as CreateCheckoutResult, a as PurchaseStatusResult, aN as PurchaseInput, aO as PurchaseResult, aP as CurrencyPurchaseQuoteInput, aQ as CurrencyPurchaseQuote, aR as ConfirmPaymentResult, aS as OrderDetailsResult, aT as SteamPacksQuery, aU as SteamPacksResult, aV as SteamInitPurchaseInput, aW as SteamInitPurchaseResult, aX as SteamFinalizeInput, aY as SteamFinalizeResult, aZ as PurchaseItemInput, a_ as PurchaseItemResult, a$ as ItemHistoryQuery, b0 as ItemHistoryResult, b1 as ItemOrderQuery, b2 as PlayerActivityQuery, b3 as PlayerActivityResult, b4 as PlayerActivityEntry, b5 as PlayerBalanceQuery, b6 as PlayerBalanceResult, q as LoyaltyCardsResult, b7 as InboundPendingQuery, b8 as InboundPendingResult, b9 as LinkedIdentitiesQuery, ba as LinkedIdentitiesResult, bb as SmsVerifyResult, bc as ClaimTransferInput, bd as ClaimResult, be as ClaimCurrencyInput, bf as TransactionStatusResult, bg as GuardianApprovalStatusResult, bh as ServerDestinationsQuery, p as DestinationsResult, bi as PhoneShareContact, bj as PhoneShareInitiateResult, bk as PhoneShareApproveInput, bl as PhoneShareApproveResult, bm as PhoneShareStatusResult, bn as BeginDeviceApprovalInput, bo as DeviceApprovalGrant, bp as PollDeviceApprovalInput, bq as DeviceApprovalPollResult, br as ConfirmDeviceEnrollmentInput, bs as ConfirmDeviceEnrollmentResult, bt as ApproveWithDeviceCodeInput, bu as DeviceApprovalSettleResult, bv as CompleteDeviceApprovalInput, bw as CompleteDeviceApprovalResult } from './types-BTbZicgj.cjs';
2
+ import { b as ReportServerGameEventInput, a as ReportGameEventResult } from './loyalty-events-CmDw2ZoR.cjs';
3
+ import './version-CR7XECyP.cjs';
3
4
 
4
5
  /**
5
6
  * Pick the INVO environment from the game secret alone (3.28.0).
@@ -1566,7 +1567,21 @@ declare class SandboxSubscriptionsServer {
1566
1567
  declare class SandboxServer {
1567
1568
  /** The four subscription clock tools. See {@link SandboxSubscriptionsServer}. */
1568
1569
  readonly subscriptions: SandboxSubscriptionsServer;
1570
+ private readonly http;
1571
+ private readonly auth;
1569
1572
  constructor(http: Http, auth: AuthHeader, clockKey: string | undefined);
1573
+ /**
1574
+ * Public demo key only (3.30.0): approve a send or transfer the demo player started, without
1575
+ * a passkey. INVO's demo sandbox answers with the claim code, which the recipient's game
1576
+ * server then uses with `claimCurrency` (a send) or `claimTransfer` (a transfer). Refused on
1577
+ * every other key and in production.
1578
+ */
1579
+ approveDemoMove(transactionId: string, kind: "send" | "transfer", opts?: CallOptions): Promise<{
1580
+ status: string;
1581
+ claimCode: string | null;
1582
+ claimCodeExpiresAt: string | null;
1583
+ raw: Record<string, unknown>;
1584
+ }>;
1570
1585
  }
1571
1586
  /**
1572
1587
  * ## Storefront keys — one client per storefront
@@ -1721,6 +1736,17 @@ declare class InvoServer {
1721
1736
  * handles cards, saved cards, and 3-D Secure. Crediting is server-side via the
1722
1737
  * purchase.completed webhook. */
1723
1738
  createCheckout(input: CreateCheckoutInput, opts?: CallOptions): Promise<CreateCheckoutResult>;
1739
+ /**
1740
+ * Read a hosted checkout's status from INVO, server-side, with the session token that
1741
+ * {@link createCheckout} returned. Same answer as the browser's
1742
+ * `invo.checkout.getPurchaseStatus`. A game server uses it to confirm a purchase when
1743
+ * the signed webhook cannot reach it (for example a private development preview).
1744
+ * It is INVO's own record, read over TLS with the session credential, never the buyer's word.
1745
+ */
1746
+ getCheckoutStatus(input: {
1747
+ sessionId: string;
1748
+ sessionToken: string;
1749
+ }, opts?: CallOptions): Promise<PurchaseStatusResult>;
1724
1750
  /**
1725
1751
  * Direct purchase via the rail selector. Use when you need a specific rail.
1726
1752
  * - rail "platform" (default): standard card. May return status "requires_action"
@@ -1,5 +1,6 @@
1
- import { I as InvoError, H as Http, a2 as AuthHeader, g as CallOptions, a3 as PlatformPurchaseInput, a4 as PlatformPurchaseResult, a5 as PlatformOrderStatusResult, a6 as PlatformPurchaseHistoryQuery, a7 as PlatformPurchaseHistoryResult, a8 as PlatformRefundInput, a9 as PlatformRefundResult, aa as CreateSubscriptionInput, ab as SubscriptionResult, ac as GetSubscriptionOptions, ad as GetSubscriptionResult, ae as ListSubscriptionsOptions, af as SubscriptionListResult, ag as CancelSubscriptionOptions, ah as CancelResult, ai as ChangeAmountResult, aj as SetPaymentMethodInput, ak as SetPaymentMethodResult, al as RefundSubscriptionInput, am as RefundResult, an as SteamSubscriptionInitInput, ao as SteamInitResult, ap as SteamFinalizeSubscriptionResult, aq as CardSetupSessionInput, ar as CardSetupSessionResult, as as CardSetupInput, at as CardSetupResult, au as CardSetupConfirmInput, av as CardSetupConfirmResult, aw as PlayerCardsResult, ax as SandboxClockResult, ay as SandboxFailureOutcome, az as SandboxForceFailureOptions, aA as SandboxForceAuthChallengeOptions, aB as ServerConfig, aC as MintPlayerTokenInput, aD as PlayerToken, aE as RegisterPlayerInput, aF as RegisterPlayerResult, aG as UpdatePlayerPhoneInput, aH as UpdatePlayerPhoneResult, aI as RequestPhoneChangeInput, aJ as RequestPhoneChangeResult, aK as PhoneChangeRequest, aL as InitiateSendInput, aM as InitiateResult, aN as InitiateTransferInput, aO as CreateCheckoutInput, aP as CreateCheckoutResult, aQ as PurchaseInput, aR as PurchaseResult, aS as CurrencyPurchaseQuoteInput, aT as CurrencyPurchaseQuote, aU as ConfirmPaymentResult, aV as OrderDetailsResult, aW as SteamPacksQuery, aX as SteamPacksResult, aY as SteamInitPurchaseInput, aZ as SteamInitPurchaseResult, a_ as SteamFinalizeInput, a$ as SteamFinalizeResult, b0 as PurchaseItemInput, b1 as PurchaseItemResult, b2 as ItemHistoryQuery, b3 as ItemHistoryResult, b4 as ItemOrderQuery, b5 as PlayerActivityQuery, b6 as PlayerActivityResult, b7 as PlayerActivityEntry, b8 as PlayerBalanceQuery, b9 as PlayerBalanceResult, o as LoyaltyCardsResult, ba as ReportServerGameEventInput, s as ReportGameEventResult, bb as InboundPendingQuery, bc as InboundPendingResult, bd as LinkedIdentitiesQuery, be as LinkedIdentitiesResult, bf as SmsVerifyResult, bg as ClaimTransferInput, bh as ClaimResult, bi as ClaimCurrencyInput, bj as TransactionStatusResult, bk as GuardianApprovalStatusResult, bl as ServerDestinationsQuery, n as DestinationsResult, bm as PhoneShareContact, bn as PhoneShareInitiateResult, bo as PhoneShareApproveInput, bp as PhoneShareApproveResult, bq as PhoneShareStatusResult, br as BeginDeviceApprovalInput, bs as DeviceApprovalGrant, bt as PollDeviceApprovalInput, bu as DeviceApprovalPollResult, bv as ConfirmDeviceEnrollmentInput, bw as ConfirmDeviceEnrollmentResult, bx as ApproveWithDeviceCodeInput, by as DeviceApprovalSettleResult, bz as CompleteDeviceApprovalInput, bA as CompleteDeviceApprovalResult } from './types-_lIm74kd.js';
2
- import './version-DOaYbHu7.js';
1
+ import { I as InvoError, H as Http, $ as AuthHeader, g as CallOptions, a0 as PlatformPurchaseInput, a1 as PlatformPurchaseResult, a2 as PlatformOrderStatusResult, a3 as PlatformPurchaseHistoryQuery, a4 as PlatformPurchaseHistoryResult, a5 as PlatformRefundInput, a6 as PlatformRefundResult, a7 as CreateSubscriptionInput, a8 as SubscriptionResult, a9 as GetSubscriptionOptions, aa as GetSubscriptionResult, ab as ListSubscriptionsOptions, ac as SubscriptionListResult, ad as CancelSubscriptionOptions, ae as CancelResult, af as ChangeAmountResult, ag as SetPaymentMethodInput, ah as SetPaymentMethodResult, ai as RefundSubscriptionInput, aj as RefundResult, ak as SteamSubscriptionInitInput, al as SteamInitResult, am as SteamFinalizeSubscriptionResult, an as CardSetupSessionInput, ao as CardSetupSessionResult, ap as CardSetupInput, aq as CardSetupResult, ar as CardSetupConfirmInput, as as CardSetupConfirmResult, at as PlayerCardsResult, au as SandboxClockResult, av as SandboxFailureOutcome, aw as SandboxForceFailureOptions, ax as SandboxForceAuthChallengeOptions, ay as ServerConfig, az as MintPlayerTokenInput, aA as PlayerToken, aB as RegisterPlayerInput, aC as RegisterPlayerResult, aD as UpdatePlayerPhoneInput, aE as UpdatePlayerPhoneResult, aF as RequestPhoneChangeInput, aG as RequestPhoneChangeResult, aH as PhoneChangeRequest, aI as InitiateSendInput, aJ as InitiateResult, aK as InitiateTransferInput, aL as CreateCheckoutInput, aM as CreateCheckoutResult, a as PurchaseStatusResult, aN as PurchaseInput, aO as PurchaseResult, aP as CurrencyPurchaseQuoteInput, aQ as CurrencyPurchaseQuote, aR as ConfirmPaymentResult, aS as OrderDetailsResult, aT as SteamPacksQuery, aU as SteamPacksResult, aV as SteamInitPurchaseInput, aW as SteamInitPurchaseResult, aX as SteamFinalizeInput, aY as SteamFinalizeResult, aZ as PurchaseItemInput, a_ as PurchaseItemResult, a$ as ItemHistoryQuery, b0 as ItemHistoryResult, b1 as ItemOrderQuery, b2 as PlayerActivityQuery, b3 as PlayerActivityResult, b4 as PlayerActivityEntry, b5 as PlayerBalanceQuery, b6 as PlayerBalanceResult, q as LoyaltyCardsResult, b7 as InboundPendingQuery, b8 as InboundPendingResult, b9 as LinkedIdentitiesQuery, ba as LinkedIdentitiesResult, bb as SmsVerifyResult, bc as ClaimTransferInput, bd as ClaimResult, be as ClaimCurrencyInput, bf as TransactionStatusResult, bg as GuardianApprovalStatusResult, bh as ServerDestinationsQuery, p as DestinationsResult, bi as PhoneShareContact, bj as PhoneShareInitiateResult, bk as PhoneShareApproveInput, bl as PhoneShareApproveResult, bm as PhoneShareStatusResult, bn as BeginDeviceApprovalInput, bo as DeviceApprovalGrant, bp as PollDeviceApprovalInput, bq as DeviceApprovalPollResult, br as ConfirmDeviceEnrollmentInput, bs as ConfirmDeviceEnrollmentResult, bt as ApproveWithDeviceCodeInput, bu as DeviceApprovalSettleResult, bv as CompleteDeviceApprovalInput, bw as CompleteDeviceApprovalResult } from './types-BTbZicgj.js';
2
+ import { b as ReportServerGameEventInput, a as ReportGameEventResult } from './loyalty-events-CmDw2ZoR.js';
3
+ import './version-CR7XECyP.js';
3
4
 
4
5
  /**
5
6
  * Pick the INVO environment from the game secret alone (3.28.0).
@@ -1566,7 +1567,21 @@ declare class SandboxSubscriptionsServer {
1566
1567
  declare class SandboxServer {
1567
1568
  /** The four subscription clock tools. See {@link SandboxSubscriptionsServer}. */
1568
1569
  readonly subscriptions: SandboxSubscriptionsServer;
1570
+ private readonly http;
1571
+ private readonly auth;
1569
1572
  constructor(http: Http, auth: AuthHeader, clockKey: string | undefined);
1573
+ /**
1574
+ * Public demo key only (3.30.0): approve a send or transfer the demo player started, without
1575
+ * a passkey. INVO's demo sandbox answers with the claim code, which the recipient's game
1576
+ * server then uses with `claimCurrency` (a send) or `claimTransfer` (a transfer). Refused on
1577
+ * every other key and in production.
1578
+ */
1579
+ approveDemoMove(transactionId: string, kind: "send" | "transfer", opts?: CallOptions): Promise<{
1580
+ status: string;
1581
+ claimCode: string | null;
1582
+ claimCodeExpiresAt: string | null;
1583
+ raw: Record<string, unknown>;
1584
+ }>;
1570
1585
  }
1571
1586
  /**
1572
1587
  * ## Storefront keys — one client per storefront
@@ -1721,6 +1736,17 @@ declare class InvoServer {
1721
1736
  * handles cards, saved cards, and 3-D Secure. Crediting is server-side via the
1722
1737
  * purchase.completed webhook. */
1723
1738
  createCheckout(input: CreateCheckoutInput, opts?: CallOptions): Promise<CreateCheckoutResult>;
1739
+ /**
1740
+ * Read a hosted checkout's status from INVO, server-side, with the session token that
1741
+ * {@link createCheckout} returned. Same answer as the browser's
1742
+ * `invo.checkout.getPurchaseStatus`. A game server uses it to confirm a purchase when
1743
+ * the signed webhook cannot reach it (for example a private development preview).
1744
+ * It is INVO's own record, read over TLS with the session credential, never the buyer's word.
1745
+ */
1746
+ getCheckoutStatus(input: {
1747
+ sessionId: string;
1748
+ sessionToken: string;
1749
+ }, opts?: CallOptions): Promise<PurchaseStatusResult>;
1724
1750
  /**
1725
1751
  * Direct purchase via the rail selector. Use when you need a specific rail.
1726
1752
  * - rail "platform" (default): standard card. May return status "requires_action"
package/dist/server.cjs CHANGED
@@ -1386,10 +1386,53 @@ function toDestinationsResult(raw, direction) {
1386
1386
  };
1387
1387
  }
1388
1388
 
1389
+ // src/shared/receipt-fields.ts
1390
+ function creditFields(raw) {
1391
+ const c = raw["credited"];
1392
+ if (c === true) return { credited: true };
1393
+ if (c === false) {
1394
+ const r = raw["reason_code"];
1395
+ return { credited: false, reasonCode: r == null ? null : String(r) };
1396
+ }
1397
+ return {};
1398
+ }
1399
+ function receiptFields(raw) {
1400
+ const n = raw["receipt_number"];
1401
+ if (typeof n !== "string" || n === "") return {};
1402
+ const u = raw["receipt_url"];
1403
+ return typeof u === "string" && u !== "" ? { receiptNumber: n, receiptUrl: u } : { receiptNumber: n };
1404
+ }
1405
+
1406
+ // src/shared/purchase-status.ts
1407
+ function str(v) {
1408
+ return typeof v === "string" ? v : v === null || v === void 0 ? null : String(v);
1409
+ }
1410
+ function toPurchaseStatusResult(raw, sessionId) {
1411
+ return {
1412
+ status: String(raw["status"] ?? ""),
1413
+ // INVO SAYS, AND ONLY AN EXPLICIT `true` SAYS IT. A missing or malformed field reads
1414
+ // false, which keeps a poll running; the alternative, guessing terminality from
1415
+ // `status`, is how an old SDK declares a future status finished.
1416
+ terminal: raw["terminal"] === true,
1417
+ orderId: str(raw["order_id"]),
1418
+ sessionId: String(raw["session_id"] ?? sessionId),
1419
+ coinsCredited: str(raw["coins_credited"]),
1420
+ transactionId: str(raw["transaction_id"]),
1421
+ newBalance: str(raw["new_balance"]),
1422
+ reasonCode: str(raw["reason_code"]),
1423
+ message: str(raw["message"]),
1424
+ amountChargedUsd: str(raw["amount_charged_usd"]),
1425
+ listedUsd: str(raw["listed_usd"]),
1426
+ currencyName: str(raw["currency_name"]),
1427
+ ...receiptFields(raw),
1428
+ raw
1429
+ };
1430
+ }
1431
+
1389
1432
  // src/shared/loyalty.ts
1390
1433
  var obj = (v) => v && typeof v === "object" && !Array.isArray(v) ? v : {};
1391
1434
  var rows = (v) => Array.isArray(v) ? v.filter((r) => r && typeof r === "object" && !Array.isArray(r)) : [];
1392
- var str = (v) => v === void 0 || v === null ? "" : String(v);
1435
+ var str2 = (v) => v === void 0 || v === null ? "" : String(v);
1393
1436
  var strOrNull = (v) => v === void 0 || v === null ? null : String(v);
1394
1437
  var numOrNull = (v) => typeof v === "number" && Number.isFinite(v) ? v : null;
1395
1438
  var int = (v, fallback = 0) => typeof v === "number" && Number.isFinite(v) ? v : fallback;
@@ -1406,22 +1449,22 @@ function toStep(row) {
1406
1449
  return {
1407
1450
  stepId: strOrNull(row["step_id"]),
1408
1451
  index: int(row["index"]),
1409
- action: str(row["action"]),
1410
- label: str(row["label"]),
1411
- summary: str(row["summary"]),
1452
+ action: str2(row["action"]),
1453
+ label: str2(row["label"]),
1454
+ summary: str2(row["summary"]),
1412
1455
  windowHours: numOrNull(row["window_hours"]),
1413
- state: str(row["state"]),
1456
+ state: str2(row["state"]),
1414
1457
  progress: toLoyaltyStepProgress(row["progress"]),
1415
1458
  raw: row
1416
1459
  };
1417
1460
  }
1418
1461
  function toCardReward(row) {
1419
1462
  return {
1420
- vaultEntryId: str(row["vault_entry_id"]),
1421
- rewardId: str(row["reward_id"]),
1422
- state: str(row["state"]),
1423
- unlockedAt: str(row["unlocked_at"]),
1424
- expiresAt: str(row["expires_at"]),
1463
+ vaultEntryId: str2(row["vault_entry_id"]),
1464
+ rewardId: str2(row["reward_id"]),
1465
+ state: str2(row["state"]),
1466
+ unlockedAt: str2(row["unlocked_at"]),
1467
+ expiresAt: str2(row["expires_at"]),
1425
1468
  redeemedAt: strOrNull(row["redeemed_at"]),
1426
1469
  codeMasked: strOrNull(row["code_masked"]),
1427
1470
  canRedeem: row["can_redeem"] === true,
@@ -1436,18 +1479,18 @@ function toLoyaltyCard(row) {
1436
1479
  const steps = rows(row["steps"]).map(toStep);
1437
1480
  return {
1438
1481
  cardVersion: passThrough(row["card_version"]),
1439
- mode: str(row["mode"]),
1482
+ mode: str2(row["mode"]),
1440
1483
  programId: strOrNull(row["program_id"]),
1441
1484
  questId: strOrNull(row["quest_id"]),
1442
1485
  questVersion: numOrNull(row["quest_version"]),
1443
1486
  campaignId: strOrNull(row["campaign_id"]),
1444
- title: str(row["title"]),
1445
- description: str(row["description"]),
1487
+ title: str2(row["title"]),
1488
+ description: str2(row["description"]),
1446
1489
  brand: { name: strOrNull(brand["name"]), logoUrl: strOrNull(brand["logo_url"]) },
1447
1490
  artUrl: strOrNull(row["art_url"]),
1448
1491
  reward: { rewardId: strOrNull(reward["reward_id"]), name: strOrNull(reward["name"]) },
1449
- orderMode: str(row["order_mode"]),
1450
- status: str(row["status"]),
1492
+ orderMode: str2(row["order_mode"]),
1493
+ status: str2(row["status"]),
1451
1494
  startsAt: strOrNull(row["starts_at"]),
1452
1495
  endsAt: strOrNull(row["ends_at"]),
1453
1496
  completionHours: numOrNull(row["completion_hours"]),
@@ -1534,23 +1577,6 @@ function toReportGameEventResult(raw, eventId) {
1534
1577
  };
1535
1578
  }
1536
1579
 
1537
- // src/shared/receipt-fields.ts
1538
- function creditFields(raw) {
1539
- const c = raw["credited"];
1540
- if (c === true) return { credited: true };
1541
- if (c === false) {
1542
- const r = raw["reason_code"];
1543
- return { credited: false, reasonCode: r == null ? null : String(r) };
1544
- }
1545
- return {};
1546
- }
1547
- function receiptFields(raw) {
1548
- const n = raw["receipt_number"];
1549
- if (typeof n !== "string" || n === "") return {};
1550
- const u = raw["receipt_url"];
1551
- return typeof u === "string" && u !== "" ? { receiptNumber: n, receiptUrl: u } : { receiptNumber: n };
1552
- }
1553
-
1554
1580
  // src/shared/phone-change.ts
1555
1581
  function requireField(value, field, raw) {
1556
1582
  const s = value == null ? "" : String(value);
@@ -1564,16 +1590,16 @@ function requireField(value, field, raw) {
1564
1590
  }
1565
1591
  return s;
1566
1592
  }
1567
- var str2 = (v) => v == null ? "" : String(v);
1593
+ var str3 = (v) => v == null ? "" : String(v);
1568
1594
  var strOrNull2 = (v) => typeof v === "string" ? v : v == null ? null : String(v);
1569
1595
  function toRequestPhoneChangeResult(raw) {
1570
1596
  return {
1571
1597
  changeRequestId: requireField(raw["change_request_id"], "change_request_id", raw),
1572
1598
  status: requireField(raw["status"], "status", raw),
1573
- expiresAt: str2(raw["expires_at"]),
1574
- delivery: str2(raw["delivery"]),
1575
- confirmation: str2(raw["confirmation"]),
1576
- message: str2(raw["message"]),
1599
+ expiresAt: str3(raw["expires_at"]),
1600
+ delivery: str3(raw["delivery"]),
1601
+ confirmation: str3(raw["confirmation"]),
1602
+ message: str3(raw["message"]),
1577
1603
  raw
1578
1604
  };
1579
1605
  }
@@ -1581,8 +1607,8 @@ function toPhoneChangeRequest(raw) {
1581
1607
  return {
1582
1608
  changeRequestId: requireField(raw["change_request_id"], "change_request_id", raw),
1583
1609
  status: requireField(raw["status"], "status", raw),
1584
- confirmation: str2(raw["confirmation"]),
1585
- delivery: str2(raw["delivery"]),
1610
+ confirmation: str3(raw["confirmation"]),
1611
+ delivery: str3(raw["delivery"]),
1586
1612
  newPhoneMasked: strOrNull2(raw["new_phone_masked"]),
1587
1613
  createdAt: strOrNull2(raw["created_at"]),
1588
1614
  expiresAt: strOrNull2(raw["expires_at"]),
@@ -1593,7 +1619,7 @@ function toPhoneChangeRequest(raw) {
1593
1619
  }
1594
1620
 
1595
1621
  // src/version.ts
1596
- var SDK_VERSION = "3.29.1";
1622
+ var SDK_VERSION = "3.30.1";
1597
1623
 
1598
1624
  // src/payouts.ts
1599
1625
  var AMOUNT = /^\d+(\.\d{1,2})?$/;
@@ -3805,6 +3831,27 @@ var SandboxSubscriptionsServer = class {
3805
3831
  var SandboxServer = class {
3806
3832
  constructor(http, auth, clockKey) {
3807
3833
  this.subscriptions = new SandboxSubscriptionsServer(http, auth, clockKey);
3834
+ this.http = http;
3835
+ this.auth = auth;
3836
+ }
3837
+ /**
3838
+ * Public demo key only (3.30.0): approve a send or transfer the demo player started, without
3839
+ * a passkey. INVO's demo sandbox answers with the claim code, which the recipient's game
3840
+ * server then uses with `claimCurrency` (a send) or `claimTransfer` (a transfer). Refused on
3841
+ * every other key and in production.
3842
+ */
3843
+ async approveDemoMove(transactionId, kind, opts) {
3844
+ if (typeof transactionId !== "string" || !transactionId.trim()) {
3845
+ throw invalidInput2("transactionId", transactionId, "is required");
3846
+ }
3847
+ const path = `/test-auth/${kind === "send" ? "sends" : "transfers"}/${encodeURIComponent(transactionId)}/approve`;
3848
+ const raw = await this.http.post(path, {}, this.auth, { signal: opts?.signal });
3849
+ return {
3850
+ status: String(raw["status"] ?? ""),
3851
+ claimCode: typeof raw["claim_code"] === "string" ? raw["claim_code"] : null,
3852
+ claimCodeExpiresAt: typeof raw["claim_code_expires_at"] === "string" ? raw["claim_code_expires_at"] : null,
3853
+ raw
3854
+ };
3808
3855
  }
3809
3856
  };
3810
3857
  var InvoServer = class {
@@ -4098,6 +4145,25 @@ var InvoServer = class {
4098
4145
  raw
4099
4146
  };
4100
4147
  }
4148
+ /**
4149
+ * Read a hosted checkout's status from INVO, server-side, with the session token that
4150
+ * {@link createCheckout} returned. Same answer as the browser's
4151
+ * `invo.checkout.getPurchaseStatus`. A game server uses it to confirm a purchase when
4152
+ * the signed webhook cannot reach it (for example a private development preview).
4153
+ * It is INVO's own record, read over TLS with the session credential, never the buyer's word.
4154
+ */
4155
+ async getCheckoutStatus(input, opts) {
4156
+ const sessionId = String(input?.sessionId ?? "").trim();
4157
+ const sessionToken = String(input?.sessionToken ?? "").trim();
4158
+ if (!sessionId) throw invalidInput2("sessionId", input?.sessionId, "is required");
4159
+ if (!sessionToken) throw invalidInput2("sessionToken", "(hidden)", "is required");
4160
+ const raw = await this.http.get(
4161
+ `/api/checkout/sessions/${encodeURIComponent(sessionId)}`,
4162
+ { kind: "bearer", token: sessionToken },
4163
+ { signal: opts?.signal }
4164
+ );
4165
+ return toPurchaseStatusResult(raw, sessionId);
4166
+ }
4101
4167
  /**
4102
4168
  * Direct purchase via the rail selector. Use when you need a specific rail.
4103
4169
  * - rail "platform" (default): standard card. May return status "requires_action"
package/dist/server.d.cts CHANGED
@@ -1,3 +1,4 @@
1
- export { bx as ApproveWithDeviceCodeInput, br as BeginDeviceApprovalInput, g as CallOptions, ah as CancelResult, ag as CancelSubscriptionOptions, au as CardSetupConfirmInput, av as CardSetupConfirmResult, as as CardSetupInput, at as CardSetupResult, aq as CardSetupSessionInput, ar as CardSetupSessionResult, bB as CardSetupStatus, ai as ChangeAmountResult, bC as CheckoutWarning, bi as ClaimCurrencyInput, y as ClaimDelivery, bh as ClaimResult, bg as ClaimTransferInput, bz as CompleteDeviceApprovalInput, bA as CompleteDeviceApprovalResult, bv as ConfirmDeviceEnrollmentInput, bw as ConfirmDeviceEnrollmentResult, aU as ConfirmPaymentResult, aO as CreateCheckoutInput, aP as CreateCheckoutResult, aa as CreateSubscriptionInput, bD as CurrencyBalance, aT as CurrencyPurchaseQuote, bE as CurrencyPurchaseQuoteBreakdown, aS as CurrencyPurchaseQuoteInput, z as DestinationGame, n as DestinationsResult, bF as DeviceApprovalChannel, bG as DeviceApprovalEnrollment, bH as DeviceApprovalFlow, bs as DeviceApprovalGrant, bu as DeviceApprovalPollResult, bI as DeviceApprovalPollStatus, by as DeviceApprovalSettleResult, bJ as DeviceEnrollmentDecision, bK as DeviceEnrollmentRespond, bL as ExpiryReason, bM as FeeTakenFrom, bN as FirstCharge, bO as FirstChargeStatus, bP as FundingSource, G as GameEventType, ac as GetSubscriptionOptions, ad as GetSubscriptionResult, bk as GuardianApprovalStatusResult, bQ as InboundPendingItem, bb as InboundPendingQuery, bc as InboundPendingResult, aM as InitiateResult, aL as InitiateSendInput, aN as InitiateTransferInput, I as InvoError, F as InvoErrorInfo, J as InvoHooks, K as InvoRequestInfo, N as InvoResponseInfo, b2 as ItemHistoryQuery, b3 as ItemHistoryResult, b4 as ItemOrderQuery, bd as LinkedIdentitiesQuery, be as LinkedIdentitiesResult, bR as LinkedIdentityEmail, ae as ListSubscriptionsOptions, O as LoyaltyCard, Q as LoyaltyCardReward, S as LoyaltyCardStep, o as LoyaltyCardsResult, T as LoyaltyRewardState, U as LoyaltyStepProgress, V as LoyaltyStepState, bS as MinPurchaseWarning, aC as MintPlayerTokenInput, aV as OrderDetailsResult, bT as PhoneChangeConfirmation, aK as PhoneChangeRequest, bU as PhoneChangeRequestStatus, bo as PhoneShareApproveInput, bp as PhoneShareApproveResult, bm as PhoneShareContact, bn as PhoneShareInitiateResult, bq as PhoneShareStatusResult, a5 as PlatformOrderStatusResult, a6 as PlatformPurchaseHistoryQuery, a7 as PlatformPurchaseHistoryResult, a3 as PlatformPurchaseInput, a4 as PlatformPurchaseResult, bV as PlatformPurchaseStatus, a8 as PlatformRefundInput, a9 as PlatformRefundResult, b7 as PlayerActivityEntry, b5 as PlayerActivityQuery, b6 as PlayerActivityResult, bW as PlayerActivityType, b8 as PlayerBalanceQuery, b9 as PlayerBalanceResult, aw as PlayerCardsResult, aD as PlayerToken, bt as PollDeviceApprovalInput, aQ as PurchaseInput, b0 as PurchaseItemInput, b1 as PurchaseItemResult, aR as PurchaseResult, a0 as Rail, bX as RefundInitiation, bY as RefundPendingApproval, bZ as RefundProcessingFeeBasis, b_ as RefundReceipt, am as RefundResult, b$ as RefundRevenueShareAttribution, al as RefundSubscriptionInput, c0 as RefundWarning, aE as RegisterPlayerInput, aF as RegisterPlayerResult, r as ReportGameEventInput, s as ReportGameEventResult, ba as ReportServerGameEventInput, aI as RequestPhoneChangeInput, aJ as RequestPhoneChangeResult, ax as SandboxClockResult, c1 as SandboxClockState, ay as SandboxFailureOutcome, aA as SandboxForceAuthChallengeOptions, az as SandboxForceFailureOptions, c2 as SavedCard, aB as ServerConfig, bl as ServerDestinationsQuery, aj as SetPaymentMethodInput, ak as SetPaymentMethodResult, bf as SmsVerifyResult, a_ as SteamFinalizeInput, a$ as SteamFinalizeResult, ap as SteamFinalizeSubscriptionResult, aY as SteamInitPurchaseInput, aZ as SteamInitPurchaseResult, ao as SteamInitResult, c3 as SteamPack, aW as SteamPacksQuery, aX as SteamPacksResult, an as SteamSubscriptionInitInput, c4 as SteamUserSession, c5 as Subscription, c6 as SubscriptionBaseInput, c7 as SubscriptionConsent, c8 as SubscriptionConsentInput, c9 as SubscriptionFundingRail, ca as SubscriptionInterval, af as SubscriptionListResult, ab as SubscriptionResult, cb as SubscriptionRevenueShare, cc as SubscriptionRevenueShareInput, cd as SubscriptionStatus, bj as TransactionStatusResult, ce as UnacknowledgedPurchaseOutcome, aG as UpdatePlayerPhoneInput, aH as UpdatePlayerPhoneResult, a1 as VerificationMethod, cf as isRefundPendingApproval } from './types-_lIm74kd.cjs';
2
- export { C as CardsServer, D as DEMO_KEY_PREFIX, E as EnvironmentUnknownError, c as IdentityPasskeyResetData, a as InvoEnvironment, I as InvoServer, d as InvoWebhookEvent, e as ItemPurchasedData, L as ListPayeesQuery, f as ListPayeesResult, g as ListPayoutsQuery, h as ListPayoutsResult, P as PRODUCTION_BASE_URL, j as PayableBlocker, k as Payee, l as PayeeInvite, m as PayeeStatus, n as PayeeStatusChangedData, o as Payout, p as PayoutStatus, q as PayoutStatusChangedData, s as PayoutsServer, t as PlatformCommercePurchasedData, u as PlatformCommerceRefundedData, w as PlatformCommerceServer, x as PlayerPhoneChangedData, y as PurchaseCompletedData, z as PurchaseEventData, R as RegisterPayeeInput, A as RegisterPayeeResult, B as RequestPayoutInput, F as RequestPayoutResult, G as ReturnReasonCode, S as SANDBOX_BASE_URL, H as SandboxServer, J as SandboxSubscriptionsServer, K as SubscriptionAuthenticationRequiredData, M as SubscriptionCanceledData, N as SubscriptionEventCommon, O as SubscriptionExpiredData, Q as SubscriptionPastDueData, T as SubscriptionPaymentFailedData, U as SubscriptionRefundApprovedData, V as SubscriptionRefundDetail, W as SubscriptionRefundRejectedData, X as SubscriptionRefundRequestData, Y as SubscriptionRefundedData, Z as SubscriptionRenewalFunding, _ as SubscriptionRenewalSplit, $ as SubscriptionRenewedData, a0 as SubscriptionRevenueShareAttribution, a1 as SubscriptionTrialEventFields, a2 as SubscriptionsServer, a3 as TransferEventData, a4 as VerifyWebhookOptions, a5 as WebhookHandlerOptions, b as baseUrlForKey, a6 as createWebhookHandler, i as isDemoKey, r as resolveEnvironment, a7 as verifyWebhook, a8 as verifyWebhookAsync } from './server-Bxo_wgHx.cjs';
3
- export { S as SDK_VERSION } from './version-DOaYbHu7.cjs';
1
+ export { bt as ApproveWithDeviceCodeInput, bn as BeginDeviceApprovalInput, g as CallOptions, ae as CancelResult, ad as CancelSubscriptionOptions, ar as CardSetupConfirmInput, as as CardSetupConfirmResult, ap as CardSetupInput, aq as CardSetupResult, an as CardSetupSessionInput, ao as CardSetupSessionResult, bx as CardSetupStatus, af as ChangeAmountResult, by as CheckoutWarning, be as ClaimCurrencyInput, y as ClaimDelivery, bd as ClaimResult, bc as ClaimTransferInput, bv as CompleteDeviceApprovalInput, bw as CompleteDeviceApprovalResult, br as ConfirmDeviceEnrollmentInput, bs as ConfirmDeviceEnrollmentResult, aR as ConfirmPaymentResult, aL as CreateCheckoutInput, aM as CreateCheckoutResult, a7 as CreateSubscriptionInput, bz as CurrencyBalance, aQ as CurrencyPurchaseQuote, bA as CurrencyPurchaseQuoteBreakdown, aP as CurrencyPurchaseQuoteInput, D as DestinationGame, p as DestinationsResult, bB as DeviceApprovalChannel, bC as DeviceApprovalEnrollment, bD as DeviceApprovalFlow, bo as DeviceApprovalGrant, bq as DeviceApprovalPollResult, bE as DeviceApprovalPollStatus, bu as DeviceApprovalSettleResult, bF as DeviceEnrollmentDecision, bG as DeviceEnrollmentRespond, bH as ExpiryReason, bI as FeeTakenFrom, bJ as FirstCharge, bK as FirstChargeStatus, bL as FundingSource, a9 as GetSubscriptionOptions, aa as GetSubscriptionResult, bg as GuardianApprovalStatusResult, bM as InboundPendingItem, b7 as InboundPendingQuery, b8 as InboundPendingResult, aJ as InitiateResult, aI as InitiateSendInput, aK as InitiateTransferInput, I as InvoError, z as InvoErrorInfo, F as InvoHooks, G as InvoRequestInfo, J as InvoResponseInfo, a$ as ItemHistoryQuery, b0 as ItemHistoryResult, b1 as ItemOrderQuery, b9 as LinkedIdentitiesQuery, ba as LinkedIdentitiesResult, bN as LinkedIdentityEmail, ab as ListSubscriptionsOptions, K as LoyaltyCard, N as LoyaltyCardReward, O as LoyaltyCardStep, q as LoyaltyCardsResult, Q as LoyaltyRewardState, S as LoyaltyStepProgress, T as LoyaltyStepState, bO as MinPurchaseWarning, az as MintPlayerTokenInput, aS as OrderDetailsResult, bP as PhoneChangeConfirmation, aH as PhoneChangeRequest, bQ as PhoneChangeRequestStatus, bk as PhoneShareApproveInput, bl as PhoneShareApproveResult, bi as PhoneShareContact, bj as PhoneShareInitiateResult, bm as PhoneShareStatusResult, a2 as PlatformOrderStatusResult, a3 as PlatformPurchaseHistoryQuery, a4 as PlatformPurchaseHistoryResult, a0 as PlatformPurchaseInput, a1 as PlatformPurchaseResult, bR as PlatformPurchaseStatus, a5 as PlatformRefundInput, a6 as PlatformRefundResult, b4 as PlayerActivityEntry, b2 as PlayerActivityQuery, b3 as PlayerActivityResult, bS as PlayerActivityType, b5 as PlayerBalanceQuery, b6 as PlayerBalanceResult, at as PlayerCardsResult, aA as PlayerToken, bp as PollDeviceApprovalInput, aN as PurchaseInput, aZ as PurchaseItemInput, a_ as PurchaseItemResult, aO as PurchaseResult, Z as Rail, bT as RefundInitiation, bU as RefundPendingApproval, bV as RefundProcessingFeeBasis, bW as RefundReceipt, aj as RefundResult, bX as RefundRevenueShareAttribution, ai as RefundSubscriptionInput, bY as RefundWarning, aB as RegisterPlayerInput, aC as RegisterPlayerResult, aF as RequestPhoneChangeInput, aG as RequestPhoneChangeResult, au as SandboxClockResult, bZ as SandboxClockState, av as SandboxFailureOutcome, ax as SandboxForceAuthChallengeOptions, aw as SandboxForceFailureOptions, b_ as SavedCard, ay as ServerConfig, bh as ServerDestinationsQuery, ag as SetPaymentMethodInput, ah as SetPaymentMethodResult, bb as SmsVerifyResult, aX as SteamFinalizeInput, aY as SteamFinalizeResult, am as SteamFinalizeSubscriptionResult, aV as SteamInitPurchaseInput, aW as SteamInitPurchaseResult, al as SteamInitResult, b$ as SteamPack, aT as SteamPacksQuery, aU as SteamPacksResult, ak as SteamSubscriptionInitInput, c0 as SteamUserSession, c1 as Subscription, c2 as SubscriptionBaseInput, c3 as SubscriptionConsent, c4 as SubscriptionConsentInput, c5 as SubscriptionFundingRail, c6 as SubscriptionInterval, ac as SubscriptionListResult, a8 as SubscriptionResult, c7 as SubscriptionRevenueShare, c8 as SubscriptionRevenueShareInput, c9 as SubscriptionStatus, bf as TransactionStatusResult, ca as UnacknowledgedPurchaseOutcome, aD as UpdatePlayerPhoneInput, aE as UpdatePlayerPhoneResult, _ as VerificationMethod, cb as isRefundPendingApproval } from './types-BTbZicgj.cjs';
2
+ export { G as GameEventType, R as ReportGameEventInput, a as ReportGameEventResult, b as ReportServerGameEventInput } from './loyalty-events-CmDw2ZoR.cjs';
3
+ export { C as CardsServer, D as DEMO_KEY_PREFIX, E as EnvironmentUnknownError, c as IdentityPasskeyResetData, a as InvoEnvironment, I as InvoServer, d as InvoWebhookEvent, e as ItemPurchasedData, L as ListPayeesQuery, f as ListPayeesResult, g as ListPayoutsQuery, h as ListPayoutsResult, P as PRODUCTION_BASE_URL, j as PayableBlocker, k as Payee, l as PayeeInvite, m as PayeeStatus, n as PayeeStatusChangedData, o as Payout, p as PayoutStatus, q as PayoutStatusChangedData, s as PayoutsServer, t as PlatformCommercePurchasedData, u as PlatformCommerceRefundedData, w as PlatformCommerceServer, x as PlayerPhoneChangedData, y as PurchaseCompletedData, z as PurchaseEventData, R as RegisterPayeeInput, A as RegisterPayeeResult, B as RequestPayoutInput, F as RequestPayoutResult, G as ReturnReasonCode, S as SANDBOX_BASE_URL, H as SandboxServer, J as SandboxSubscriptionsServer, K as SubscriptionAuthenticationRequiredData, M as SubscriptionCanceledData, N as SubscriptionEventCommon, O as SubscriptionExpiredData, Q as SubscriptionPastDueData, T as SubscriptionPaymentFailedData, U as SubscriptionRefundApprovedData, V as SubscriptionRefundDetail, W as SubscriptionRefundRejectedData, X as SubscriptionRefundRequestData, Y as SubscriptionRefundedData, Z as SubscriptionRenewalFunding, _ as SubscriptionRenewalSplit, $ as SubscriptionRenewedData, a0 as SubscriptionRevenueShareAttribution, a1 as SubscriptionTrialEventFields, a2 as SubscriptionsServer, a3 as TransferEventData, a4 as VerifyWebhookOptions, a5 as WebhookHandlerOptions, b as baseUrlForKey, a6 as createWebhookHandler, i as isDemoKey, r as resolveEnvironment, a7 as verifyWebhook, a8 as verifyWebhookAsync } from './server-BAOn3KH3.cjs';
4
+ export { S as SDK_VERSION } from './version-CR7XECyP.cjs';
package/dist/server.d.ts CHANGED
@@ -1,3 +1,4 @@
1
- export { bx as ApproveWithDeviceCodeInput, br as BeginDeviceApprovalInput, g as CallOptions, ah as CancelResult, ag as CancelSubscriptionOptions, au as CardSetupConfirmInput, av as CardSetupConfirmResult, as as CardSetupInput, at as CardSetupResult, aq as CardSetupSessionInput, ar as CardSetupSessionResult, bB as CardSetupStatus, ai as ChangeAmountResult, bC as CheckoutWarning, bi as ClaimCurrencyInput, y as ClaimDelivery, bh as ClaimResult, bg as ClaimTransferInput, bz as CompleteDeviceApprovalInput, bA as CompleteDeviceApprovalResult, bv as ConfirmDeviceEnrollmentInput, bw as ConfirmDeviceEnrollmentResult, aU as ConfirmPaymentResult, aO as CreateCheckoutInput, aP as CreateCheckoutResult, aa as CreateSubscriptionInput, bD as CurrencyBalance, aT as CurrencyPurchaseQuote, bE as CurrencyPurchaseQuoteBreakdown, aS as CurrencyPurchaseQuoteInput, z as DestinationGame, n as DestinationsResult, bF as DeviceApprovalChannel, bG as DeviceApprovalEnrollment, bH as DeviceApprovalFlow, bs as DeviceApprovalGrant, bu as DeviceApprovalPollResult, bI as DeviceApprovalPollStatus, by as DeviceApprovalSettleResult, bJ as DeviceEnrollmentDecision, bK as DeviceEnrollmentRespond, bL as ExpiryReason, bM as FeeTakenFrom, bN as FirstCharge, bO as FirstChargeStatus, bP as FundingSource, G as GameEventType, ac as GetSubscriptionOptions, ad as GetSubscriptionResult, bk as GuardianApprovalStatusResult, bQ as InboundPendingItem, bb as InboundPendingQuery, bc as InboundPendingResult, aM as InitiateResult, aL as InitiateSendInput, aN as InitiateTransferInput, I as InvoError, F as InvoErrorInfo, J as InvoHooks, K as InvoRequestInfo, N as InvoResponseInfo, b2 as ItemHistoryQuery, b3 as ItemHistoryResult, b4 as ItemOrderQuery, bd as LinkedIdentitiesQuery, be as LinkedIdentitiesResult, bR as LinkedIdentityEmail, ae as ListSubscriptionsOptions, O as LoyaltyCard, Q as LoyaltyCardReward, S as LoyaltyCardStep, o as LoyaltyCardsResult, T as LoyaltyRewardState, U as LoyaltyStepProgress, V as LoyaltyStepState, bS as MinPurchaseWarning, aC as MintPlayerTokenInput, aV as OrderDetailsResult, bT as PhoneChangeConfirmation, aK as PhoneChangeRequest, bU as PhoneChangeRequestStatus, bo as PhoneShareApproveInput, bp as PhoneShareApproveResult, bm as PhoneShareContact, bn as PhoneShareInitiateResult, bq as PhoneShareStatusResult, a5 as PlatformOrderStatusResult, a6 as PlatformPurchaseHistoryQuery, a7 as PlatformPurchaseHistoryResult, a3 as PlatformPurchaseInput, a4 as PlatformPurchaseResult, bV as PlatformPurchaseStatus, a8 as PlatformRefundInput, a9 as PlatformRefundResult, b7 as PlayerActivityEntry, b5 as PlayerActivityQuery, b6 as PlayerActivityResult, bW as PlayerActivityType, b8 as PlayerBalanceQuery, b9 as PlayerBalanceResult, aw as PlayerCardsResult, aD as PlayerToken, bt as PollDeviceApprovalInput, aQ as PurchaseInput, b0 as PurchaseItemInput, b1 as PurchaseItemResult, aR as PurchaseResult, a0 as Rail, bX as RefundInitiation, bY as RefundPendingApproval, bZ as RefundProcessingFeeBasis, b_ as RefundReceipt, am as RefundResult, b$ as RefundRevenueShareAttribution, al as RefundSubscriptionInput, c0 as RefundWarning, aE as RegisterPlayerInput, aF as RegisterPlayerResult, r as ReportGameEventInput, s as ReportGameEventResult, ba as ReportServerGameEventInput, aI as RequestPhoneChangeInput, aJ as RequestPhoneChangeResult, ax as SandboxClockResult, c1 as SandboxClockState, ay as SandboxFailureOutcome, aA as SandboxForceAuthChallengeOptions, az as SandboxForceFailureOptions, c2 as SavedCard, aB as ServerConfig, bl as ServerDestinationsQuery, aj as SetPaymentMethodInput, ak as SetPaymentMethodResult, bf as SmsVerifyResult, a_ as SteamFinalizeInput, a$ as SteamFinalizeResult, ap as SteamFinalizeSubscriptionResult, aY as SteamInitPurchaseInput, aZ as SteamInitPurchaseResult, ao as SteamInitResult, c3 as SteamPack, aW as SteamPacksQuery, aX as SteamPacksResult, an as SteamSubscriptionInitInput, c4 as SteamUserSession, c5 as Subscription, c6 as SubscriptionBaseInput, c7 as SubscriptionConsent, c8 as SubscriptionConsentInput, c9 as SubscriptionFundingRail, ca as SubscriptionInterval, af as SubscriptionListResult, ab as SubscriptionResult, cb as SubscriptionRevenueShare, cc as SubscriptionRevenueShareInput, cd as SubscriptionStatus, bj as TransactionStatusResult, ce as UnacknowledgedPurchaseOutcome, aG as UpdatePlayerPhoneInput, aH as UpdatePlayerPhoneResult, a1 as VerificationMethod, cf as isRefundPendingApproval } from './types-_lIm74kd.js';
2
- export { C as CardsServer, D as DEMO_KEY_PREFIX, E as EnvironmentUnknownError, c as IdentityPasskeyResetData, a as InvoEnvironment, I as InvoServer, d as InvoWebhookEvent, e as ItemPurchasedData, L as ListPayeesQuery, f as ListPayeesResult, g as ListPayoutsQuery, h as ListPayoutsResult, P as PRODUCTION_BASE_URL, j as PayableBlocker, k as Payee, l as PayeeInvite, m as PayeeStatus, n as PayeeStatusChangedData, o as Payout, p as PayoutStatus, q as PayoutStatusChangedData, s as PayoutsServer, t as PlatformCommercePurchasedData, u as PlatformCommerceRefundedData, w as PlatformCommerceServer, x as PlayerPhoneChangedData, y as PurchaseCompletedData, z as PurchaseEventData, R as RegisterPayeeInput, A as RegisterPayeeResult, B as RequestPayoutInput, F as RequestPayoutResult, G as ReturnReasonCode, S as SANDBOX_BASE_URL, H as SandboxServer, J as SandboxSubscriptionsServer, K as SubscriptionAuthenticationRequiredData, M as SubscriptionCanceledData, N as SubscriptionEventCommon, O as SubscriptionExpiredData, Q as SubscriptionPastDueData, T as SubscriptionPaymentFailedData, U as SubscriptionRefundApprovedData, V as SubscriptionRefundDetail, W as SubscriptionRefundRejectedData, X as SubscriptionRefundRequestData, Y as SubscriptionRefundedData, Z as SubscriptionRenewalFunding, _ as SubscriptionRenewalSplit, $ as SubscriptionRenewedData, a0 as SubscriptionRevenueShareAttribution, a1 as SubscriptionTrialEventFields, a2 as SubscriptionsServer, a3 as TransferEventData, a4 as VerifyWebhookOptions, a5 as WebhookHandlerOptions, b as baseUrlForKey, a6 as createWebhookHandler, i as isDemoKey, r as resolveEnvironment, a7 as verifyWebhook, a8 as verifyWebhookAsync } from './server-BYY6tM6X.js';
3
- export { S as SDK_VERSION } from './version-DOaYbHu7.js';
1
+ export { bt as ApproveWithDeviceCodeInput, bn as BeginDeviceApprovalInput, g as CallOptions, ae as CancelResult, ad as CancelSubscriptionOptions, ar as CardSetupConfirmInput, as as CardSetupConfirmResult, ap as CardSetupInput, aq as CardSetupResult, an as CardSetupSessionInput, ao as CardSetupSessionResult, bx as CardSetupStatus, af as ChangeAmountResult, by as CheckoutWarning, be as ClaimCurrencyInput, y as ClaimDelivery, bd as ClaimResult, bc as ClaimTransferInput, bv as CompleteDeviceApprovalInput, bw as CompleteDeviceApprovalResult, br as ConfirmDeviceEnrollmentInput, bs as ConfirmDeviceEnrollmentResult, aR as ConfirmPaymentResult, aL as CreateCheckoutInput, aM as CreateCheckoutResult, a7 as CreateSubscriptionInput, bz as CurrencyBalance, aQ as CurrencyPurchaseQuote, bA as CurrencyPurchaseQuoteBreakdown, aP as CurrencyPurchaseQuoteInput, D as DestinationGame, p as DestinationsResult, bB as DeviceApprovalChannel, bC as DeviceApprovalEnrollment, bD as DeviceApprovalFlow, bo as DeviceApprovalGrant, bq as DeviceApprovalPollResult, bE as DeviceApprovalPollStatus, bu as DeviceApprovalSettleResult, bF as DeviceEnrollmentDecision, bG as DeviceEnrollmentRespond, bH as ExpiryReason, bI as FeeTakenFrom, bJ as FirstCharge, bK as FirstChargeStatus, bL as FundingSource, a9 as GetSubscriptionOptions, aa as GetSubscriptionResult, bg as GuardianApprovalStatusResult, bM as InboundPendingItem, b7 as InboundPendingQuery, b8 as InboundPendingResult, aJ as InitiateResult, aI as InitiateSendInput, aK as InitiateTransferInput, I as InvoError, z as InvoErrorInfo, F as InvoHooks, G as InvoRequestInfo, J as InvoResponseInfo, a$ as ItemHistoryQuery, b0 as ItemHistoryResult, b1 as ItemOrderQuery, b9 as LinkedIdentitiesQuery, ba as LinkedIdentitiesResult, bN as LinkedIdentityEmail, ab as ListSubscriptionsOptions, K as LoyaltyCard, N as LoyaltyCardReward, O as LoyaltyCardStep, q as LoyaltyCardsResult, Q as LoyaltyRewardState, S as LoyaltyStepProgress, T as LoyaltyStepState, bO as MinPurchaseWarning, az as MintPlayerTokenInput, aS as OrderDetailsResult, bP as PhoneChangeConfirmation, aH as PhoneChangeRequest, bQ as PhoneChangeRequestStatus, bk as PhoneShareApproveInput, bl as PhoneShareApproveResult, bi as PhoneShareContact, bj as PhoneShareInitiateResult, bm as PhoneShareStatusResult, a2 as PlatformOrderStatusResult, a3 as PlatformPurchaseHistoryQuery, a4 as PlatformPurchaseHistoryResult, a0 as PlatformPurchaseInput, a1 as PlatformPurchaseResult, bR as PlatformPurchaseStatus, a5 as PlatformRefundInput, a6 as PlatformRefundResult, b4 as PlayerActivityEntry, b2 as PlayerActivityQuery, b3 as PlayerActivityResult, bS as PlayerActivityType, b5 as PlayerBalanceQuery, b6 as PlayerBalanceResult, at as PlayerCardsResult, aA as PlayerToken, bp as PollDeviceApprovalInput, aN as PurchaseInput, aZ as PurchaseItemInput, a_ as PurchaseItemResult, aO as PurchaseResult, Z as Rail, bT as RefundInitiation, bU as RefundPendingApproval, bV as RefundProcessingFeeBasis, bW as RefundReceipt, aj as RefundResult, bX as RefundRevenueShareAttribution, ai as RefundSubscriptionInput, bY as RefundWarning, aB as RegisterPlayerInput, aC as RegisterPlayerResult, aF as RequestPhoneChangeInput, aG as RequestPhoneChangeResult, au as SandboxClockResult, bZ as SandboxClockState, av as SandboxFailureOutcome, ax as SandboxForceAuthChallengeOptions, aw as SandboxForceFailureOptions, b_ as SavedCard, ay as ServerConfig, bh as ServerDestinationsQuery, ag as SetPaymentMethodInput, ah as SetPaymentMethodResult, bb as SmsVerifyResult, aX as SteamFinalizeInput, aY as SteamFinalizeResult, am as SteamFinalizeSubscriptionResult, aV as SteamInitPurchaseInput, aW as SteamInitPurchaseResult, al as SteamInitResult, b$ as SteamPack, aT as SteamPacksQuery, aU as SteamPacksResult, ak as SteamSubscriptionInitInput, c0 as SteamUserSession, c1 as Subscription, c2 as SubscriptionBaseInput, c3 as SubscriptionConsent, c4 as SubscriptionConsentInput, c5 as SubscriptionFundingRail, c6 as SubscriptionInterval, ac as SubscriptionListResult, a8 as SubscriptionResult, c7 as SubscriptionRevenueShare, c8 as SubscriptionRevenueShareInput, c9 as SubscriptionStatus, bf as TransactionStatusResult, ca as UnacknowledgedPurchaseOutcome, aD as UpdatePlayerPhoneInput, aE as UpdatePlayerPhoneResult, _ as VerificationMethod, cb as isRefundPendingApproval } from './types-BTbZicgj.js';
2
+ export { G as GameEventType, R as ReportGameEventInput, a as ReportGameEventResult, b as ReportServerGameEventInput } from './loyalty-events-CmDw2ZoR.js';
3
+ export { C as CardsServer, D as DEMO_KEY_PREFIX, E as EnvironmentUnknownError, c as IdentityPasskeyResetData, a as InvoEnvironment, I as InvoServer, d as InvoWebhookEvent, e as ItemPurchasedData, L as ListPayeesQuery, f as ListPayeesResult, g as ListPayoutsQuery, h as ListPayoutsResult, P as PRODUCTION_BASE_URL, j as PayableBlocker, k as Payee, l as PayeeInvite, m as PayeeStatus, n as PayeeStatusChangedData, o as Payout, p as PayoutStatus, q as PayoutStatusChangedData, s as PayoutsServer, t as PlatformCommercePurchasedData, u as PlatformCommerceRefundedData, w as PlatformCommerceServer, x as PlayerPhoneChangedData, y as PurchaseCompletedData, z as PurchaseEventData, R as RegisterPayeeInput, A as RegisterPayeeResult, B as RequestPayoutInput, F as RequestPayoutResult, G as ReturnReasonCode, S as SANDBOX_BASE_URL, H as SandboxServer, J as SandboxSubscriptionsServer, K as SubscriptionAuthenticationRequiredData, M as SubscriptionCanceledData, N as SubscriptionEventCommon, O as SubscriptionExpiredData, Q as SubscriptionPastDueData, T as SubscriptionPaymentFailedData, U as SubscriptionRefundApprovedData, V as SubscriptionRefundDetail, W as SubscriptionRefundRejectedData, X as SubscriptionRefundRequestData, Y as SubscriptionRefundedData, Z as SubscriptionRenewalFunding, _ as SubscriptionRenewalSplit, $ as SubscriptionRenewedData, a0 as SubscriptionRevenueShareAttribution, a1 as SubscriptionTrialEventFields, a2 as SubscriptionsServer, a3 as TransferEventData, a4 as VerifyWebhookOptions, a5 as WebhookHandlerOptions, b as baseUrlForKey, a6 as createWebhookHandler, i as isDemoKey, r as resolveEnvironment, a7 as verifyWebhook, a8 as verifyWebhookAsync } from './server-DHmQU1eN.js';
4
+ export { S as SDK_VERSION } from './version-CR7XECyP.js';
package/dist/server.js CHANGED
@@ -1,6 +1,5 @@
1
- export { CardsServer, DEMO_KEY_PREFIX, EnvironmentUnknownError, InvoServer, PRODUCTION_BASE_URL, PayoutsServer, PlatformCommerceServer, SANDBOX_BASE_URL, SandboxServer, SandboxSubscriptionsServer, SubscriptionsServer, baseUrlForKey, createWebhookHandler, isDemoKey, isRefundPendingApproval, resolveEnvironment, verifyWebhook, verifyWebhookAsync } from './chunk-YONO4JE5.js';
2
- import './chunk-6CN236QH.js';
3
- export { SDK_VERSION } from './chunk-VOGZZ6QS.js';
4
- export { InvoError } from './chunk-VP3OK4J4.js';
1
+ export { CardsServer, DEMO_KEY_PREFIX, EnvironmentUnknownError, InvoServer, PRODUCTION_BASE_URL, PayoutsServer, PlatformCommerceServer, SANDBOX_BASE_URL, SandboxServer, SandboxSubscriptionsServer, SubscriptionsServer, baseUrlForKey, createWebhookHandler, isDemoKey, isRefundPendingApproval, resolveEnvironment, verifyWebhook, verifyWebhookAsync } from './chunk-V2RQYQQD.js';
2
+ export { SDK_VERSION } from './chunk-3ECVREIM.js';
3
+ export { InvoError } from './chunk-TCT2QSVB.js';
5
4
  //# sourceMappingURL=server.js.map
6
5
  //# sourceMappingURL=server.js.map
@@ -913,45 +913,6 @@ declare class Http {
913
913
  private backoff;
914
914
  }
915
915
 
916
- /**
917
- * Gameplay event types your game reports to INVO's loyalty engine (3.27.0). Currency steps
918
- * (purchases, transfers, sends, item spending, subscriptions) are seen by INVO directly and
919
- * are never reported; reporting one is refused with `RESERVED_EVENT_TYPE`.
920
- *
921
- * - `game.session.started` / `game.session.heartbeat`: payload `{ session_ref }`
922
- * - `game.session.ended`: payload `{ session_ref, duration_seconds }`
923
- * - `game.milestone.reached`: payload `{ milestone_key, value?, session_ref? }` (e.g. `level_10`)
924
- * - `game.custom.recorded`: payload `{ event_name, value? }`; the name must be registered in
925
- * the console first, else `422 validation_failed`
926
- */
927
- type GameEventType = "game.session.started" | "game.session.heartbeat" | "game.session.ended" | "game.milestone.reached" | "game.custom.recorded" | (string & {});
928
- /** One gameplay event, reported by the player's browser (`InvoClient.reportGameEvent`). */
929
- interface ReportGameEventInput {
930
- /** A `game.*` type; see {@link GameEventType}. */
931
- eventType: GameEventType;
932
- /**
933
- * Idempotency key (a UUID). Resend the SAME id when you retry, so INVO counts the event
934
- * once. The SDK generates one when you leave it out, and returns it.
935
- */
936
- eventId?: string;
937
- /** When it happened: ISO 8601 with a timezone, or a Date. Defaults to INVO's receive time. */
938
- occurredAt?: string | Date;
939
- /** The event's fields (see {@link GameEventType}). */
940
- payload?: Record<string, unknown>;
941
- }
942
- /** One gameplay event reported by your SERVER (`InvoServer.reportGameEvent`), trusted for rewards. */
943
- interface ReportServerGameEventInput extends ReportGameEventInput {
944
- /** The player in your game, by email. */
945
- playerEmail: string;
946
- }
947
- interface ReportGameEventResult {
948
- /** True when INVO recorded the event (202). */
949
- accepted: boolean;
950
- /** The event id INVO received: yours, or the one the SDK generated. Reuse it on a retry. */
951
- eventId: string;
952
- raw: Record<string, unknown>;
953
- }
954
-
955
916
  /** Per-call options (e.g. cancellation). Accepted as an optional last arg on SDK methods. */
956
917
  interface CallOptions {
957
918
  /** Cancel this call. Aborting throws an InvoError (code "ABORTED"); aborted calls are never retried. */
@@ -3740,4 +3701,4 @@ interface RewardsPageLink {
3740
3701
  raw: Record<string, unknown>;
3741
3702
  }
3742
3703
 
3743
- export { type PurchaseRefusalReason as $, type ApproveResult as A, type BalanceResult as B, type ConfirmReceiptResult as C, type DestinationsQuery as D, type EnrollmentBeginResult as E, type InvoErrorInfo as F, type GameEventType as G, Http as H, InvoError as I, type InvoHooks as J, type InvoRequestInfo as K, type LinkDeviceResult as L, type MountCheckoutOptions as M, type InvoResponseInfo as N, type LoyaltyCard as O, type PurchaseStatusResult as P, type LoyaltyCardReward as Q, type RedeemRewardResult as R, type LoyaltyCardStep as S, type LoyaltyRewardState as T, type LoyaltyStepProgress as U, type LoyaltyStepState as V, type WaitForPurchaseInput as W, type LoyaltyVaultEntry as X, type PendingCollectItem as Y, type PhoneChangeApproval as Z, type PhoneChangeDeviceSignal as _, type PurchaseCredited as a, type SteamFinalizeResult as a$, type Rail as a0, type VerificationMethod as a1, type AuthHeader as a2, type PlatformPurchaseInput as a3, type PlatformPurchaseResult as a4, type PlatformOrderStatusResult as a5, type PlatformPurchaseHistoryQuery as a6, type PlatformPurchaseHistoryResult as a7, type PlatformRefundInput as a8, type PlatformRefundResult as a9, type SandboxForceAuthChallengeOptions as aA, type ServerConfig as aB, type MintPlayerTokenInput as aC, type PlayerToken as aD, type RegisterPlayerInput as aE, type RegisterPlayerResult as aF, type UpdatePlayerPhoneInput as aG, type UpdatePlayerPhoneResult as aH, type RequestPhoneChangeInput as aI, type RequestPhoneChangeResult as aJ, type PhoneChangeRequest as aK, type InitiateSendInput as aL, type InitiateResult as aM, type InitiateTransferInput as aN, type CreateCheckoutInput as aO, type CreateCheckoutResult as aP, type PurchaseInput as aQ, type PurchaseResult as aR, type CurrencyPurchaseQuoteInput as aS, type CurrencyPurchaseQuote as aT, type ConfirmPaymentResult as aU, type OrderDetailsResult as aV, type SteamPacksQuery as aW, type SteamPacksResult as aX, type SteamInitPurchaseInput as aY, type SteamInitPurchaseResult as aZ, type SteamFinalizeInput as a_, type CreateSubscriptionInput as aa, type SubscriptionResult as ab, type GetSubscriptionOptions as ac, type GetSubscriptionResult as ad, type ListSubscriptionsOptions as ae, type SubscriptionListResult as af, type CancelSubscriptionOptions as ag, type CancelResult as ah, type ChangeAmountResult as ai, type SetPaymentMethodInput as aj, type SetPaymentMethodResult as ak, type RefundSubscriptionInput as al, type RefundResult as am, type SteamSubscriptionInitInput as an, type SteamInitResult as ao, type SteamFinalizeSubscriptionResult as ap, type CardSetupSessionInput as aq, type CardSetupSessionResult as ar, type CardSetupInput as as, type CardSetupResult as at, type CardSetupConfirmInput as au, type CardSetupConfirmResult as av, type PlayerCardsResult as aw, type SandboxClockResult as ax, type SandboxFailureOutcome as ay, type SandboxForceFailureOptions as az, type PurchaseExpired as b, type RefundRevenueShareAttribution as b$, type PurchaseItemInput as b0, type PurchaseItemResult as b1, type ItemHistoryQuery as b2, type ItemHistoryResult as b3, type ItemOrderQuery as b4, type PlayerActivityQuery as b5, type PlayerActivityResult as b6, type PlayerActivityEntry as b7, type PlayerBalanceQuery as b8, type PlayerBalanceResult as b9, type CompleteDeviceApprovalResult as bA, type CardSetupStatus as bB, type CheckoutWarning as bC, type CurrencyBalance as bD, type CurrencyPurchaseQuoteBreakdown as bE, type DeviceApprovalChannel as bF, type DeviceApprovalEnrollment as bG, type DeviceApprovalFlow as bH, type DeviceApprovalPollStatus as bI, type DeviceEnrollmentDecision as bJ, type DeviceEnrollmentRespond as bK, type ExpiryReason as bL, type FeeTakenFrom as bM, type FirstCharge as bN, type FirstChargeStatus as bO, type FundingSource as bP, type InboundPendingItem as bQ, type LinkedIdentityEmail as bR, type MinPurchaseWarning as bS, type PhoneChangeConfirmation as bT, type PhoneChangeRequestStatus as bU, type PlatformPurchaseStatus as bV, type PlayerActivityType as bW, type RefundInitiation as bX, type RefundPendingApproval as bY, type RefundProcessingFeeBasis as bZ, type RefundReceipt as b_, type ReportServerGameEventInput as ba, type InboundPendingQuery as bb, type InboundPendingResult as bc, type LinkedIdentitiesQuery as bd, type LinkedIdentitiesResult as be, type SmsVerifyResult as bf, type ClaimTransferInput as bg, type ClaimResult as bh, type ClaimCurrencyInput as bi, type TransactionStatusResult as bj, type GuardianApprovalStatusResult as bk, type ServerDestinationsQuery as bl, type PhoneShareContact as bm, type PhoneShareInitiateResult as bn, type PhoneShareApproveInput as bo, type PhoneShareApproveResult as bp, type PhoneShareStatusResult as bq, type BeginDeviceApprovalInput as br, type DeviceApprovalGrant as bs, type PollDeviceApprovalInput as bt, type DeviceApprovalPollResult as bu, type ConfirmDeviceEnrollmentInput as bv, type ConfirmDeviceEnrollmentResult as bw, type ApproveWithDeviceCodeInput as bx, type DeviceApprovalSettleResult as by, type CompleteDeviceApprovalInput as bz, type PurchaseRefunded as c, type RefundWarning as c0, type SandboxClockState as c1, type SavedCard as c2, type SteamPack as c3, type SteamUserSession as c4, type Subscription as c5, type SubscriptionBaseInput as c6, type SubscriptionConsent as c7, type SubscriptionConsentInput as c8, type SubscriptionFundingRail as c9, type SubscriptionInterval as ca, type SubscriptionRevenueShare as cb, type SubscriptionRevenueShareInput as cc, type SubscriptionStatus as cd, type UnacknowledgedPurchaseOutcome as ce, isRefundPendingApproval as cf, type PurchaseRefused as d, type CheckoutClientConfig as e, type PurchaseStatusInput as f, type CallOptions as g, type CheckoutMountHandle as h, type ClientConfig as i, type PhoneChangeApprovalsResult as j, type ApprovePhoneChangeInput as k, type ApprovePhoneChangeResult as l, type PendingCollectResult as m, type DestinationsResult as n, type LoyaltyCardsResult as o, type LoyaltyVaultResult as p, type RewardsPageLink as q, type ReportGameEventInput as r, type ReportGameEventResult as s, type EnrollmentVerifyResult as t, type RecoveryBeginResult as u, type RecoveryCompleteResult as v, type BalanceRow as w, type CheckoutPurchaseStatus as x, type ClaimDelivery as y, type DestinationGame as z };
3704
+ export { type AuthHeader as $, type ApproveResult as A, type BalanceResult as B, type CheckoutClientConfig as C, type DestinationGame as D, type EnrollmentBeginResult as E, type InvoHooks as F, type InvoRequestInfo as G, Http as H, InvoError as I, type InvoResponseInfo as J, type LoyaltyCard as K, type LinkDeviceResult as L, type MountCheckoutOptions as M, type LoyaltyCardReward as N, type LoyaltyCardStep as O, type PendingCollectItem as P, type LoyaltyRewardState as Q, type RedeemRewardResult as R, type LoyaltyStepProgress as S, type LoyaltyStepState as T, type LoyaltyVaultEntry as U, type PhoneChangeApproval as V, type WaitForPurchaseInput as W, type PhoneChangeDeviceSignal as X, type PurchaseRefusalReason as Y, type Rail as Z, type VerificationMethod as _, type PurchaseStatusResult as a, type ItemHistoryQuery as a$, type PlatformPurchaseInput as a0, type PlatformPurchaseResult as a1, type PlatformOrderStatusResult as a2, type PlatformPurchaseHistoryQuery as a3, type PlatformPurchaseHistoryResult as a4, type PlatformRefundInput as a5, type PlatformRefundResult as a6, type CreateSubscriptionInput as a7, type SubscriptionResult as a8, type GetSubscriptionOptions as a9, type PlayerToken as aA, type RegisterPlayerInput as aB, type RegisterPlayerResult as aC, type UpdatePlayerPhoneInput as aD, type UpdatePlayerPhoneResult as aE, type RequestPhoneChangeInput as aF, type RequestPhoneChangeResult as aG, type PhoneChangeRequest as aH, type InitiateSendInput as aI, type InitiateResult as aJ, type InitiateTransferInput as aK, type CreateCheckoutInput as aL, type CreateCheckoutResult as aM, type PurchaseInput as aN, type PurchaseResult as aO, type CurrencyPurchaseQuoteInput as aP, type CurrencyPurchaseQuote as aQ, type ConfirmPaymentResult as aR, type OrderDetailsResult as aS, type SteamPacksQuery as aT, type SteamPacksResult as aU, type SteamInitPurchaseInput as aV, type SteamInitPurchaseResult as aW, type SteamFinalizeInput as aX, type SteamFinalizeResult as aY, type PurchaseItemInput as aZ, type PurchaseItemResult as a_, type GetSubscriptionResult as aa, type ListSubscriptionsOptions as ab, type SubscriptionListResult as ac, type CancelSubscriptionOptions as ad, type CancelResult as ae, type ChangeAmountResult as af, type SetPaymentMethodInput as ag, type SetPaymentMethodResult as ah, type RefundSubscriptionInput as ai, type RefundResult as aj, type SteamSubscriptionInitInput as ak, type SteamInitResult as al, type SteamFinalizeSubscriptionResult as am, type CardSetupSessionInput as an, type CardSetupSessionResult as ao, type CardSetupInput as ap, type CardSetupResult as aq, type CardSetupConfirmInput as ar, type CardSetupConfirmResult as as, type PlayerCardsResult as at, type SandboxClockResult as au, type SandboxFailureOutcome as av, type SandboxForceFailureOptions as aw, type SandboxForceAuthChallengeOptions as ax, type ServerConfig as ay, type MintPlayerTokenInput as az, type PurchaseCredited as b, type SteamPack as b$, type ItemHistoryResult as b0, type ItemOrderQuery as b1, type PlayerActivityQuery as b2, type PlayerActivityResult as b3, type PlayerActivityEntry as b4, type PlayerBalanceQuery as b5, type PlayerBalanceResult as b6, type InboundPendingQuery as b7, type InboundPendingResult as b8, type LinkedIdentitiesQuery as b9, type CurrencyPurchaseQuoteBreakdown as bA, type DeviceApprovalChannel as bB, type DeviceApprovalEnrollment as bC, type DeviceApprovalFlow as bD, type DeviceApprovalPollStatus as bE, type DeviceEnrollmentDecision as bF, type DeviceEnrollmentRespond as bG, type ExpiryReason as bH, type FeeTakenFrom as bI, type FirstCharge as bJ, type FirstChargeStatus as bK, type FundingSource as bL, type InboundPendingItem as bM, type LinkedIdentityEmail as bN, type MinPurchaseWarning as bO, type PhoneChangeConfirmation as bP, type PhoneChangeRequestStatus as bQ, type PlatformPurchaseStatus as bR, type PlayerActivityType as bS, type RefundInitiation as bT, type RefundPendingApproval as bU, type RefundProcessingFeeBasis as bV, type RefundReceipt as bW, type RefundRevenueShareAttribution as bX, type RefundWarning as bY, type SandboxClockState as bZ, type SavedCard as b_, type LinkedIdentitiesResult as ba, type SmsVerifyResult as bb, type ClaimTransferInput as bc, type ClaimResult as bd, type ClaimCurrencyInput as be, type TransactionStatusResult as bf, type GuardianApprovalStatusResult as bg, type ServerDestinationsQuery as bh, type PhoneShareContact as bi, type PhoneShareInitiateResult as bj, type PhoneShareApproveInput as bk, type PhoneShareApproveResult as bl, type PhoneShareStatusResult as bm, type BeginDeviceApprovalInput as bn, type DeviceApprovalGrant as bo, type PollDeviceApprovalInput as bp, type DeviceApprovalPollResult as bq, type ConfirmDeviceEnrollmentInput as br, type ConfirmDeviceEnrollmentResult as bs, type ApproveWithDeviceCodeInput as bt, type DeviceApprovalSettleResult as bu, type CompleteDeviceApprovalInput as bv, type CompleteDeviceApprovalResult as bw, type CardSetupStatus as bx, type CheckoutWarning as by, type CurrencyBalance as bz, type PurchaseExpired as c, type SteamUserSession as c0, type Subscription as c1, type SubscriptionBaseInput as c2, type SubscriptionConsent as c3, type SubscriptionConsentInput as c4, type SubscriptionFundingRail as c5, type SubscriptionInterval as c6, type SubscriptionRevenueShare as c7, type SubscriptionRevenueShareInput as c8, type SubscriptionStatus as c9, type UnacknowledgedPurchaseOutcome as ca, isRefundPendingApproval as cb, type PurchaseRefunded as d, type PurchaseRefused as e, type PurchaseStatusInput as f, type CallOptions as g, type CheckoutMountHandle as h, type ClientConfig as i, type ConfirmReceiptResult as j, type PhoneChangeApprovalsResult as k, type ApprovePhoneChangeInput as l, type ApprovePhoneChangeResult as m, type PendingCollectResult as n, type DestinationsQuery as o, type DestinationsResult as p, type LoyaltyCardsResult as q, type LoyaltyVaultResult as r, type RewardsPageLink as s, type EnrollmentVerifyResult as t, type RecoveryBeginResult as u, type RecoveryCompleteResult as v, type BalanceRow as w, type CheckoutPurchaseStatus as x, type ClaimDelivery as y, type InvoErrorInfo as z };