@invonetwork/web-sdk 3.30.4 → 3.32.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/CHANGELOG.md +21 -0
- package/README.md +2963 -2954
- package/dist/{chunk-MTOYPY5P.js → chunk-2XOKKKFR.js} +3 -3
- package/dist/chunk-LVVPRVPU.js +6 -0
- package/dist/{chunk-7AJJ2JVB.js → chunk-QEJB6HC7.js} +38 -7
- package/dist/{chunk-ULX3HXTO.js → chunk-RPGRRZFY.js} +14 -5
- package/dist/game-server.cjs +47 -7
- package/dist/game-server.d.cts +4 -4
- package/dist/game-server.d.ts +4 -4
- package/dist/game-server.js +5 -5
- package/dist/game.cjs +37 -6
- package/dist/game.d.cts +3 -3
- package/dist/game.d.ts +3 -3
- package/dist/game.js +3 -3
- package/dist/{hosted-approval-Ca8vyGry.d.ts → hosted-approval-ICho9KsV.d.ts} +1 -1
- package/dist/{hosted-approval-DfVC4oDL.d.cts → hosted-approval-li0XZFz-.d.cts} +1 -1
- package/dist/index.cjs +36 -5
- package/dist/index.d.cts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +2 -2
- package/dist/{server-8WZat6Q5.d.ts → server-B-KKg5P0.d.ts} +15 -5
- package/dist/{server-GdJ1Jf05.d.cts → server-jAn9dNM3.d.cts} +15 -5
- package/dist/server.cjs +47 -7
- package/dist/server.d.cts +3 -3
- package/dist/server.d.ts +3 -3
- package/dist/server.js +3 -3
- package/dist/{types-CVRok5ZV.d.cts → types-CaPHNjOU.d.cts} +39 -1
- package/dist/{types-CVRok5ZV.d.ts → types-CaPHNjOU.d.ts} +39 -1
- package/dist/{version-CCHWiwqw.d.cts → version-CqwGhQXV.d.cts} +1 -1
- package/dist/{version-CCHWiwqw.d.ts → version-CqwGhQXV.d.ts} +1 -1
- package/package.json +1 -1
- package/dist/chunk-MKFXIYMC.js +0 -6
|
@@ -1,6 +1,6 @@
|
|
|
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-
|
|
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-CaPHNjOU.js';
|
|
2
2
|
import { b as ReportServerGameEventInput, a as ReportGameEventResult } from './loyalty-events-CmDw2ZoR.js';
|
|
3
|
-
import './version-
|
|
3
|
+
import './version-CqwGhQXV.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Pick the INVO environment from the game secret alone (3.28.0).
|
|
@@ -125,8 +125,8 @@ interface PurchaseEventData {
|
|
|
125
125
|
* to you. The guarantee is a Merchant of Record term; Open-tier card payments made before
|
|
126
126
|
* November 8, 2026 keep it, later ones do not (`false`, passed through at cost). `false`
|
|
127
127
|
* for any other dispute, handled as before. Never sent on a coin purchase
|
|
128
|
-
* dispute (a
|
|
129
|
-
*
|
|
128
|
+
* dispute (a coin purchase dispute reports what it charged you in `spent_coins_charged_usd`),
|
|
129
|
+
* nor on an opened or won event. Do not read absence as either value.
|
|
130
130
|
*/
|
|
131
131
|
guarantee_covered?: boolean;
|
|
132
132
|
/**
|
|
@@ -177,6 +177,15 @@ interface PurchaseEventData {
|
|
|
177
177
|
* `dispute_fee_usd` is absent.
|
|
178
178
|
*/
|
|
179
179
|
dispute_fee_charged_to_partner?: boolean | null;
|
|
180
|
+
/**
|
|
181
|
+
* Additive (2026-10-20), on a coin purchase.disputed sent when the dispute closes: the value
|
|
182
|
+
* of coins the player had already spent, charged to you at the price the player paid per coin
|
|
183
|
+
* (before tax), USD decimal string. On a lost dispute INVO takes back the coins the player still
|
|
184
|
+
* holds and charges this for the rest; `"0.00"` when nothing was charged (a won dispute, no
|
|
185
|
+
* coins spent, or the chargeback guarantee covered it). Absent on opened events, older events
|
|
186
|
+
* and non-coin disputes; do not read absence as zero.
|
|
187
|
+
*/
|
|
188
|
+
spent_coins_charged_usd?: string;
|
|
180
189
|
/** On a lost subscription purchase.disputed: the subscription and period it concerns. */
|
|
181
190
|
subscription_id?: string | null;
|
|
182
191
|
period_seq?: number | null;
|
|
@@ -1199,7 +1208,8 @@ declare class PlatformCommerceServer {
|
|
|
1199
1208
|
*/
|
|
1200
1209
|
purchase(input: PlatformPurchaseInput, opts?: CallOptions): Promise<PlatformPurchaseResult>;
|
|
1201
1210
|
/** Poll an order's status: `completed` (balance immediately; card after the webhook),
|
|
1202
|
-
* `pending_payment` (card awaiting confirmation), or `refunded`.
|
|
1211
|
+
* `pending_payment` (card awaiting confirmation), or `refunded`. Once the sale has settled,
|
|
1212
|
+
* `invoFeeUsd` / `partnerShareUsd` say what INVO kept and what you earned (additive). */
|
|
1203
1213
|
getStatus(orderId: string | number, opts?: CallOptions): Promise<PlatformOrderStatusResult>;
|
|
1204
1214
|
/**
|
|
1205
1215
|
* One player's Platform Commerce purchases in your app, newest first, one page at a time
|
|
@@ -1,6 +1,6 @@
|
|
|
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-
|
|
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-CaPHNjOU.cjs';
|
|
2
2
|
import { b as ReportServerGameEventInput, a as ReportGameEventResult } from './loyalty-events-CmDw2ZoR.cjs';
|
|
3
|
-
import './version-
|
|
3
|
+
import './version-CqwGhQXV.cjs';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Pick the INVO environment from the game secret alone (3.28.0).
|
|
@@ -125,8 +125,8 @@ interface PurchaseEventData {
|
|
|
125
125
|
* to you. The guarantee is a Merchant of Record term; Open-tier card payments made before
|
|
126
126
|
* November 8, 2026 keep it, later ones do not (`false`, passed through at cost). `false`
|
|
127
127
|
* for any other dispute, handled as before. Never sent on a coin purchase
|
|
128
|
-
* dispute (a
|
|
129
|
-
*
|
|
128
|
+
* dispute (a coin purchase dispute reports what it charged you in `spent_coins_charged_usd`),
|
|
129
|
+
* nor on an opened or won event. Do not read absence as either value.
|
|
130
130
|
*/
|
|
131
131
|
guarantee_covered?: boolean;
|
|
132
132
|
/**
|
|
@@ -177,6 +177,15 @@ interface PurchaseEventData {
|
|
|
177
177
|
* `dispute_fee_usd` is absent.
|
|
178
178
|
*/
|
|
179
179
|
dispute_fee_charged_to_partner?: boolean | null;
|
|
180
|
+
/**
|
|
181
|
+
* Additive (2026-10-20), on a coin purchase.disputed sent when the dispute closes: the value
|
|
182
|
+
* of coins the player had already spent, charged to you at the price the player paid per coin
|
|
183
|
+
* (before tax), USD decimal string. On a lost dispute INVO takes back the coins the player still
|
|
184
|
+
* holds and charges this for the rest; `"0.00"` when nothing was charged (a won dispute, no
|
|
185
|
+
* coins spent, or the chargeback guarantee covered it). Absent on opened events, older events
|
|
186
|
+
* and non-coin disputes; do not read absence as zero.
|
|
187
|
+
*/
|
|
188
|
+
spent_coins_charged_usd?: string;
|
|
180
189
|
/** On a lost subscription purchase.disputed: the subscription and period it concerns. */
|
|
181
190
|
subscription_id?: string | null;
|
|
182
191
|
period_seq?: number | null;
|
|
@@ -1199,7 +1208,8 @@ declare class PlatformCommerceServer {
|
|
|
1199
1208
|
*/
|
|
1200
1209
|
purchase(input: PlatformPurchaseInput, opts?: CallOptions): Promise<PlatformPurchaseResult>;
|
|
1201
1210
|
/** Poll an order's status: `completed` (balance immediately; card after the webhook),
|
|
1202
|
-
* `pending_payment` (card awaiting confirmation), or `refunded`.
|
|
1211
|
+
* `pending_payment` (card awaiting confirmation), or `refunded`. Once the sale has settled,
|
|
1212
|
+
* `invoFeeUsd` / `partnerShareUsd` say what INVO kept and what you earned (additive). */
|
|
1203
1213
|
getStatus(orderId: string | number, opts?: CallOptions): Promise<PlatformOrderStatusResult>;
|
|
1204
1214
|
/**
|
|
1205
1215
|
* One player's Platform Commerce purchases in your app, newest first, one page at a time
|
package/dist/server.cjs
CHANGED
|
@@ -15,6 +15,7 @@ var InvoError = class _InvoError extends Error {
|
|
|
15
15
|
this.status = args.status;
|
|
16
16
|
this.body = args.body ?? null;
|
|
17
17
|
this.requestId = args.requestId;
|
|
18
|
+
this.retryAfterHeader = args.retryAfterHeader;
|
|
18
19
|
Object.setPrototypeOf(this, _InvoError.prototype);
|
|
19
20
|
}
|
|
20
21
|
/** True if this is the "recipient isn't passkey-enrolled, fall back to claim code" signal. */
|
|
@@ -338,6 +339,16 @@ var InvoError = class _InvoError extends Error {
|
|
|
338
339
|
get isPartnerRailSuspended() {
|
|
339
340
|
return this.code === "PARTNER_RAIL_SUSPENDED";
|
|
340
341
|
}
|
|
342
|
+
/** True when INVO has paused new payments on the developer account
|
|
343
|
+
* (`PAYMENTS_PAUSED`, 403; additive, 3.32.0). Every call that starts a payment returns it:
|
|
344
|
+
* coin purchase, checkout session, Platform Commerce card purchase, new
|
|
345
|
+
* subscription, Steam purchase or subscription start. Refunds, reads,
|
|
346
|
+
* balances, transfers and renewals of existing subscriptions keep working.
|
|
347
|
+
* Not retryable until INVO resumes payments; show a neutral "purchases are
|
|
348
|
+
* unavailable right now" message. */
|
|
349
|
+
get isPaymentsPaused() {
|
|
350
|
+
return this.code === "PAYMENTS_PAUSED";
|
|
351
|
+
}
|
|
341
352
|
/** True when init-purchase was given a `packId` that is not in INVO's Steam
|
|
342
353
|
* catalogue (`UNKNOWN_STEAM_PACK`, 400). The error body's
|
|
343
354
|
* `valid_pack_ids` lists what exists; re-fetch `steamPacks()` — the
|
|
@@ -1102,11 +1113,27 @@ var InvoError = class _InvoError extends Error {
|
|
|
1102
1113
|
get isRewardExpired() {
|
|
1103
1114
|
return this.code === "vault_entry_expired";
|
|
1104
1115
|
}
|
|
1105
|
-
/**
|
|
1116
|
+
/**
|
|
1117
|
+
* Seconds to wait before retrying, when the backend throttled the call: the body's
|
|
1118
|
+
* `retry_after`, else the `Retry-After` header (seconds). Every INVO rate-limit 429 carries
|
|
1119
|
+
* both (since 2026-10-20). `undefined` when neither is a usable number of seconds.
|
|
1120
|
+
*/
|
|
1106
1121
|
get retryAfter() {
|
|
1107
1122
|
const v = this.bodyObject()["retry_after"];
|
|
1108
1123
|
const n = typeof v === "string" ? v.trim() === "" ? NaN : Number(v) : v;
|
|
1109
|
-
|
|
1124
|
+
if (typeof n === "number" && Number.isFinite(n) && n >= 0) return n;
|
|
1125
|
+
const h = this.retryAfterHeader?.trim();
|
|
1126
|
+
if (h && /^\d+(\.\d+)?$/.test(h)) return Number(h);
|
|
1127
|
+
return void 0;
|
|
1128
|
+
}
|
|
1129
|
+
/**
|
|
1130
|
+
* True when INVO refused the call for going over a rate limit (additive, 3.31.0): `error_code`
|
|
1131
|
+
* `"RATE_LIMITED"` (every rate-limit 429 carries it since 2026-10-20), or any other 429 (an
|
|
1132
|
+
* older release, or an endpoint with its own throttle body). Wait {@link retryAfter} seconds
|
|
1133
|
+
* and send the same request again. Branch on this, not on the message.
|
|
1134
|
+
*/
|
|
1135
|
+
get isRateLimited() {
|
|
1136
|
+
return this.code === "RATE_LIMITED" || this.code === "rate_limited" || this.status === 429;
|
|
1110
1137
|
}
|
|
1111
1138
|
/** `body` as a plain object, or `{}` if it's a string/number/null (non-JSON responses).
|
|
1112
1139
|
* The `in` operator throws on primitives, so callers must go through this. */
|
|
@@ -1114,7 +1141,7 @@ var InvoError = class _InvoError extends Error {
|
|
|
1114
1141
|
return this.body && typeof this.body === "object" ? this.body : {};
|
|
1115
1142
|
}
|
|
1116
1143
|
};
|
|
1117
|
-
function errorFromResponse(status, body, requestId) {
|
|
1144
|
+
function errorFromResponse(status, body, requestId, retryAfterHeader) {
|
|
1118
1145
|
let message = `INVO request failed (HTTP ${status})`;
|
|
1119
1146
|
let code;
|
|
1120
1147
|
let rawCode;
|
|
@@ -1136,7 +1163,7 @@ function errorFromResponse(status, body, requestId) {
|
|
|
1136
1163
|
} else if (typeof body === "string" && body.trim()) {
|
|
1137
1164
|
message = body;
|
|
1138
1165
|
}
|
|
1139
|
-
return new InvoError({ message, code, rawCode, publicCode, status, body, requestId });
|
|
1166
|
+
return new InvoError({ message, code, rawCode, publicCode, status, body, requestId, retryAfterHeader });
|
|
1140
1167
|
}
|
|
1141
1168
|
|
|
1142
1169
|
// src/shared/http.ts
|
|
@@ -1270,7 +1297,7 @@ var _Http = class _Http {
|
|
|
1270
1297
|
requestId
|
|
1271
1298
|
});
|
|
1272
1299
|
if (!res.ok) {
|
|
1273
|
-
const err = errorFromResponse(res.status, parsed, requestId);
|
|
1300
|
+
const err = errorFromResponse(res.status, parsed, requestId, pickRetryAfterHeader(res.headers));
|
|
1274
1301
|
let wait;
|
|
1275
1302
|
if (idempotent && attempt < this.maxRetries && _Http.RETRIABLE_STATUS.has(res.status)) {
|
|
1276
1303
|
if (res.status === 429) {
|
|
@@ -1328,6 +1355,10 @@ function pickRequestId(headers) {
|
|
|
1328
1355
|
if (!headers || typeof headers.get !== "function") return void 0;
|
|
1329
1356
|
return headers.get("x-invo-request-id") ?? headers.get("x-request-id") ?? void 0;
|
|
1330
1357
|
}
|
|
1358
|
+
function pickRetryAfterHeader(headers) {
|
|
1359
|
+
if (!headers || typeof headers.get !== "function") return void 0;
|
|
1360
|
+
return headers.get("retry-after") ?? void 0;
|
|
1361
|
+
}
|
|
1331
1362
|
function retryAfterMs(parsed, headers) {
|
|
1332
1363
|
if (parsed && typeof parsed === "object") {
|
|
1333
1364
|
const v = parsed["retry_after"];
|
|
@@ -1619,7 +1650,7 @@ function toPhoneChangeRequest(raw) {
|
|
|
1619
1650
|
}
|
|
1620
1651
|
|
|
1621
1652
|
// src/version.ts
|
|
1622
|
-
var SDK_VERSION = "3.
|
|
1653
|
+
var SDK_VERSION = "3.32.0";
|
|
1623
1654
|
|
|
1624
1655
|
// src/payouts.ts
|
|
1625
1656
|
var AMOUNT = /^\d+(\.\d{1,2})?$/;
|
|
@@ -2317,9 +2348,17 @@ function toPlatformOrderStatus(raw, fallbackOrderId) {
|
|
|
2317
2348
|
paymentMethod: raw["payment_method"],
|
|
2318
2349
|
createdAt: raw["created_at"],
|
|
2319
2350
|
...receiptFields(raw),
|
|
2351
|
+
...feeSplitFields(raw),
|
|
2320
2352
|
raw
|
|
2321
2353
|
};
|
|
2322
2354
|
}
|
|
2355
|
+
function feeSplitFields(raw) {
|
|
2356
|
+
const out = {};
|
|
2357
|
+
const pick = (v) => v === null ? null : typeof v === "string" ? v : typeof v === "number" && Number.isFinite(v) ? v.toFixed(2) : null;
|
|
2358
|
+
if ("invo_fee_usd" in raw) out.invoFeeUsd = pick(raw["invo_fee_usd"]);
|
|
2359
|
+
if ("partner_share_usd" in raw) out.partnerShareUsd = pick(raw["partner_share_usd"]);
|
|
2360
|
+
return out;
|
|
2361
|
+
}
|
|
2323
2362
|
function nextCursorOf(raw) {
|
|
2324
2363
|
const c = raw["next_cursor"];
|
|
2325
2364
|
return typeof c === "string" && c ? c : null;
|
|
@@ -2639,7 +2678,8 @@ var PlatformCommerceServer = class {
|
|
|
2639
2678
|
};
|
|
2640
2679
|
}
|
|
2641
2680
|
/** Poll an order's status: `completed` (balance immediately; card after the webhook),
|
|
2642
|
-
* `pending_payment` (card awaiting confirmation), or `refunded`.
|
|
2681
|
+
* `pending_payment` (card awaiting confirmation), or `refunded`. Once the sale has settled,
|
|
2682
|
+
* `invoFeeUsd` / `partnerShareUsd` say what INVO kept and what you earned (additive). */
|
|
2643
2683
|
async getStatus(orderId, opts) {
|
|
2644
2684
|
if (orderId == null || String(orderId).trim() === "") {
|
|
2645
2685
|
throw invalidInput2("orderId", orderId, "is required");
|
package/dist/server.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
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-
|
|
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-CaPHNjOU.cjs';
|
|
2
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-
|
|
4
|
-
export { S as SDK_VERSION } from './version-
|
|
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-jAn9dNM3.cjs';
|
|
4
|
+
export { S as SDK_VERSION } from './version-CqwGhQXV.cjs';
|
package/dist/server.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
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-
|
|
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-CaPHNjOU.js';
|
|
2
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-
|
|
4
|
-
export { S as SDK_VERSION } from './version-
|
|
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-B-KKg5P0.js';
|
|
4
|
+
export { S as SDK_VERSION } from './version-CqwGhQXV.js';
|
package/dist/server.js
CHANGED
|
@@ -1,5 +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-
|
|
2
|
-
export { SDK_VERSION } from './chunk-
|
|
3
|
-
export { InvoError } from './chunk-
|
|
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-RPGRRZFY.js';
|
|
2
|
+
export { SDK_VERSION } from './chunk-LVVPRVPU.js';
|
|
3
|
+
export { InvoError } from './chunk-QEJB6HC7.js';
|
|
4
4
|
//# sourceMappingURL=server.js.map
|
|
5
5
|
//# sourceMappingURL=server.js.map
|
|
@@ -31,6 +31,11 @@ declare class InvoError extends Error {
|
|
|
31
31
|
readonly body: unknown;
|
|
32
32
|
/** Backend request id (from the response headers), when present — quote it in support tickets. */
|
|
33
33
|
readonly requestId: string | undefined;
|
|
34
|
+
/**
|
|
35
|
+
* The response's `Retry-After` header, as sent (additive, 3.31.0). Read {@link retryAfter}
|
|
36
|
+
* rather than this: it prefers the body's `retry_after` and falls back to this header.
|
|
37
|
+
*/
|
|
38
|
+
readonly retryAfterHeader: string | undefined;
|
|
34
39
|
constructor(args: {
|
|
35
40
|
message: string;
|
|
36
41
|
code?: string;
|
|
@@ -39,6 +44,7 @@ declare class InvoError extends Error {
|
|
|
39
44
|
status: number;
|
|
40
45
|
body?: unknown;
|
|
41
46
|
requestId?: string;
|
|
47
|
+
retryAfterHeader?: string;
|
|
42
48
|
});
|
|
43
49
|
/** True if this is the "recipient isn't passkey-enrolled, fall back to claim code" signal. */
|
|
44
50
|
get isReceiverNotEnrolled(): boolean;
|
|
@@ -283,6 +289,14 @@ declare class InvoError extends Error {
|
|
|
283
289
|
* admin intervened. Terminal from the game's seat: no retry can succeed
|
|
284
290
|
* until the studio resolves it in the INVO console. */
|
|
285
291
|
get isPartnerRailSuspended(): boolean;
|
|
292
|
+
/** True when INVO has paused new payments on the developer account
|
|
293
|
+
* (`PAYMENTS_PAUSED`, 403; additive, 3.32.0). Every call that starts a payment returns it:
|
|
294
|
+
* coin purchase, checkout session, Platform Commerce card purchase, new
|
|
295
|
+
* subscription, Steam purchase or subscription start. Refunds, reads,
|
|
296
|
+
* balances, transfers and renewals of existing subscriptions keep working.
|
|
297
|
+
* Not retryable until INVO resumes payments; show a neutral "purchases are
|
|
298
|
+
* unavailable right now" message. */
|
|
299
|
+
get isPaymentsPaused(): boolean;
|
|
286
300
|
/** True when init-purchase was given a `packId` that is not in INVO's Steam
|
|
287
301
|
* catalogue (`UNKNOWN_STEAM_PACK`, 400). The error body's
|
|
288
302
|
* `valid_pack_ids` lists what exists; re-fetch `steamPacks()` — the
|
|
@@ -822,8 +836,19 @@ declare class InvoError extends Error {
|
|
|
822
836
|
get isRewardUnavailable(): boolean;
|
|
823
837
|
/** True when the reward expired before it was redeemed (`vault_entry_expired`, 410). */
|
|
824
838
|
get isRewardExpired(): boolean;
|
|
825
|
-
/**
|
|
839
|
+
/**
|
|
840
|
+
* Seconds to wait before retrying, when the backend throttled the call: the body's
|
|
841
|
+
* `retry_after`, else the `Retry-After` header (seconds). Every INVO rate-limit 429 carries
|
|
842
|
+
* both (since 2026-10-20). `undefined` when neither is a usable number of seconds.
|
|
843
|
+
*/
|
|
826
844
|
get retryAfter(): number | undefined;
|
|
845
|
+
/**
|
|
846
|
+
* True when INVO refused the call for going over a rate limit (additive, 3.31.0): `error_code`
|
|
847
|
+
* `"RATE_LIMITED"` (every rate-limit 429 carries it since 2026-10-20), or any other 429 (an
|
|
848
|
+
* older release, or an endpoint with its own throttle body). Wait {@link retryAfter} seconds
|
|
849
|
+
* and send the same request again. Branch on this, not on the message.
|
|
850
|
+
*/
|
|
851
|
+
get isRateLimited(): boolean;
|
|
827
852
|
/** `body` as a plain object, or `{}` if it's a string/number/null (non-JSON responses).
|
|
828
853
|
* The `in` operator throws on primitives, so callers must go through this. */
|
|
829
854
|
private bodyObject;
|
|
@@ -1911,6 +1936,19 @@ interface PlatformOrderStatusResult {
|
|
|
1911
1936
|
* `receiptNumber` is.
|
|
1912
1937
|
*/
|
|
1913
1938
|
receiptUrl?: string;
|
|
1939
|
+
/**
|
|
1940
|
+
* Additive (2026-10-20): everything INVO kept on this sale, in USD, as a decimal string such
|
|
1941
|
+
* as `"0.50"`: the price less tax less {@link partnerShareUsd} (the card fee, and the
|
|
1942
|
+
* international card fee where it applies, on a card sale; the platform fee on a balance sale).
|
|
1943
|
+
* `null` until the sale has settled, or when the split cannot be read; `undefined` from an
|
|
1944
|
+
* INVO release that does not send it. A later refund or lost dispute does not change it.
|
|
1945
|
+
*/
|
|
1946
|
+
invoFeeUsd?: string | null;
|
|
1947
|
+
/**
|
|
1948
|
+
* Additive (2026-10-20): what you earned on this sale, in USD, as a decimal string. `null` and
|
|
1949
|
+
* `undefined` on the same terms as {@link invoFeeUsd}.
|
|
1950
|
+
*/
|
|
1951
|
+
partnerShareUsd?: string | null;
|
|
1914
1952
|
raw: Record<string, unknown>;
|
|
1915
1953
|
}
|
|
1916
1954
|
/** Input to `platformCommerce.getPurchaseHistory`. */
|
|
@@ -31,6 +31,11 @@ declare class InvoError extends Error {
|
|
|
31
31
|
readonly body: unknown;
|
|
32
32
|
/** Backend request id (from the response headers), when present — quote it in support tickets. */
|
|
33
33
|
readonly requestId: string | undefined;
|
|
34
|
+
/**
|
|
35
|
+
* The response's `Retry-After` header, as sent (additive, 3.31.0). Read {@link retryAfter}
|
|
36
|
+
* rather than this: it prefers the body's `retry_after` and falls back to this header.
|
|
37
|
+
*/
|
|
38
|
+
readonly retryAfterHeader: string | undefined;
|
|
34
39
|
constructor(args: {
|
|
35
40
|
message: string;
|
|
36
41
|
code?: string;
|
|
@@ -39,6 +44,7 @@ declare class InvoError extends Error {
|
|
|
39
44
|
status: number;
|
|
40
45
|
body?: unknown;
|
|
41
46
|
requestId?: string;
|
|
47
|
+
retryAfterHeader?: string;
|
|
42
48
|
});
|
|
43
49
|
/** True if this is the "recipient isn't passkey-enrolled, fall back to claim code" signal. */
|
|
44
50
|
get isReceiverNotEnrolled(): boolean;
|
|
@@ -283,6 +289,14 @@ declare class InvoError extends Error {
|
|
|
283
289
|
* admin intervened. Terminal from the game's seat: no retry can succeed
|
|
284
290
|
* until the studio resolves it in the INVO console. */
|
|
285
291
|
get isPartnerRailSuspended(): boolean;
|
|
292
|
+
/** True when INVO has paused new payments on the developer account
|
|
293
|
+
* (`PAYMENTS_PAUSED`, 403; additive, 3.32.0). Every call that starts a payment returns it:
|
|
294
|
+
* coin purchase, checkout session, Platform Commerce card purchase, new
|
|
295
|
+
* subscription, Steam purchase or subscription start. Refunds, reads,
|
|
296
|
+
* balances, transfers and renewals of existing subscriptions keep working.
|
|
297
|
+
* Not retryable until INVO resumes payments; show a neutral "purchases are
|
|
298
|
+
* unavailable right now" message. */
|
|
299
|
+
get isPaymentsPaused(): boolean;
|
|
286
300
|
/** True when init-purchase was given a `packId` that is not in INVO's Steam
|
|
287
301
|
* catalogue (`UNKNOWN_STEAM_PACK`, 400). The error body's
|
|
288
302
|
* `valid_pack_ids` lists what exists; re-fetch `steamPacks()` — the
|
|
@@ -822,8 +836,19 @@ declare class InvoError extends Error {
|
|
|
822
836
|
get isRewardUnavailable(): boolean;
|
|
823
837
|
/** True when the reward expired before it was redeemed (`vault_entry_expired`, 410). */
|
|
824
838
|
get isRewardExpired(): boolean;
|
|
825
|
-
/**
|
|
839
|
+
/**
|
|
840
|
+
* Seconds to wait before retrying, when the backend throttled the call: the body's
|
|
841
|
+
* `retry_after`, else the `Retry-After` header (seconds). Every INVO rate-limit 429 carries
|
|
842
|
+
* both (since 2026-10-20). `undefined` when neither is a usable number of seconds.
|
|
843
|
+
*/
|
|
826
844
|
get retryAfter(): number | undefined;
|
|
845
|
+
/**
|
|
846
|
+
* True when INVO refused the call for going over a rate limit (additive, 3.31.0): `error_code`
|
|
847
|
+
* `"RATE_LIMITED"` (every rate-limit 429 carries it since 2026-10-20), or any other 429 (an
|
|
848
|
+
* older release, or an endpoint with its own throttle body). Wait {@link retryAfter} seconds
|
|
849
|
+
* and send the same request again. Branch on this, not on the message.
|
|
850
|
+
*/
|
|
851
|
+
get isRateLimited(): boolean;
|
|
827
852
|
/** `body` as a plain object, or `{}` if it's a string/number/null (non-JSON responses).
|
|
828
853
|
* The `in` operator throws on primitives, so callers must go through this. */
|
|
829
854
|
private bodyObject;
|
|
@@ -1911,6 +1936,19 @@ interface PlatformOrderStatusResult {
|
|
|
1911
1936
|
* `receiptNumber` is.
|
|
1912
1937
|
*/
|
|
1913
1938
|
receiptUrl?: string;
|
|
1939
|
+
/**
|
|
1940
|
+
* Additive (2026-10-20): everything INVO kept on this sale, in USD, as a decimal string such
|
|
1941
|
+
* as `"0.50"`: the price less tax less {@link partnerShareUsd} (the card fee, and the
|
|
1942
|
+
* international card fee where it applies, on a card sale; the platform fee on a balance sale).
|
|
1943
|
+
* `null` until the sale has settled, or when the split cannot be read; `undefined` from an
|
|
1944
|
+
* INVO release that does not send it. A later refund or lost dispute does not change it.
|
|
1945
|
+
*/
|
|
1946
|
+
invoFeeUsd?: string | null;
|
|
1947
|
+
/**
|
|
1948
|
+
* Additive (2026-10-20): what you earned on this sale, in USD, as a decimal string. `null` and
|
|
1949
|
+
* `undefined` on the same terms as {@link invoFeeUsd}.
|
|
1950
|
+
*/
|
|
1951
|
+
partnerShareUsd?: string | null;
|
|
1914
1952
|
raw: Record<string, unknown>;
|
|
1915
1953
|
}
|
|
1916
1954
|
/** Input to `platformCommerce.getPurchaseHistory`. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@invonetwork/web-sdk",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.32.0",
|
|
4
4
|
"description": "INVO Web SDK — currency purchase, passkey (WebAuthn) verification, loyalty, and a drop-in game economy layer (wallet, shop, hosted checkout) for partner web platforms and browser games.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"private": false,
|