@invonetwork/web-sdk 3.30.3 → 3.31.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 +17 -0
- package/README.md +13 -8
- package/dist/{chunk-7O5JT3LK.js → chunk-5T75PCZN.js} +3 -3
- package/dist/chunk-CI7PHE6L.js +6 -0
- package/dist/{chunk-TCT2QSVB.js → chunk-LMN2V4YT.js} +28 -7
- package/dist/{chunk-JJPAUW2S.js → chunk-UW66W2N6.js} +23 -8
- package/dist/game-server.cjs +46 -10
- 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 +27 -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-awgyhXHa.d.cts → hosted-approval-BBQHClAP.d.cts} +1 -1
- package/dist/{hosted-approval-B2W9FSaW.d.ts → hosted-approval-Dp-BigX9.d.ts} +1 -1
- package/dist/index.cjs +26 -5
- package/dist/index.d.cts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +2 -2
- package/dist/{server-C9gIZ2Wx.d.ts → server-CaALJEML.d.ts} +22 -6
- package/dist/{server-B5BTXYXy.d.cts → server-D9bKfiY6.d.cts} +22 -6
- package/dist/server.cjs +46 -10
- package/dist/server.d.cts +3 -3
- package/dist/server.d.ts +3 -3
- package/dist/server.js +3 -3
- package/dist/{types-a9zeN1UE.d.ts → types-CBanzneD.d.cts} +41 -4
- package/dist/{types-a9zeN1UE.d.cts → types-CBanzneD.d.ts} +41 -4
- package/dist/{version-lfflokBD.d.cts → version-B4Eincjj.d.cts} +1 -1
- package/dist/{version-lfflokBD.d.ts → version-B4Eincjj.d.ts} +1 -1
- package/package.json +1 -1
- package/dist/chunk-CSIEPFCV.js +0 -6
package/dist/game.d.cts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { i as GamePlayer, q as GameWallet, c as GameCatalog, k as GamePurchase, h as GameItemPurchase, n as GameTransferKind, d as GameCatalogItem, f as GameCurrencyBalance, p as GameTransferStatus, m as GameTransferInput, o as GameTransferStart } from './types-jUxfYjiD.cjs';
|
|
2
2
|
export { e as GameCheckout, G as GameCurrencyKind, b as GameEconomyConfig, g as GameErrorBody, j as GamePremiumPack, a as GamePurchaseStatus, l as GameSession } from './types-jUxfYjiD.cjs';
|
|
3
|
-
import { A as ApproveHostedResult } from './hosted-approval-
|
|
4
|
-
import { D as DestinationGame, P as PendingCollectItem } from './types-
|
|
5
|
-
export { S as SDK_VERSION } from './version-
|
|
3
|
+
import { A as ApproveHostedResult } from './hosted-approval-BBQHClAP.cjs';
|
|
4
|
+
import { D as DestinationGame, P as PendingCollectItem } from './types-CBanzneD.cjs';
|
|
5
|
+
export { S as SDK_VERSION } from './version-B4Eincjj.cjs';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* INVO game economy client (3.27.0), the browser half. It talks ONLY to your game server
|
package/dist/game.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { i as GamePlayer, q as GameWallet, c as GameCatalog, k as GamePurchase, h as GameItemPurchase, n as GameTransferKind, d as GameCatalogItem, f as GameCurrencyBalance, p as GameTransferStatus, m as GameTransferInput, o as GameTransferStart } from './types-jUxfYjiD.js';
|
|
2
2
|
export { e as GameCheckout, G as GameCurrencyKind, b as GameEconomyConfig, g as GameErrorBody, j as GamePremiumPack, a as GamePurchaseStatus, l as GameSession } from './types-jUxfYjiD.js';
|
|
3
|
-
import { A as ApproveHostedResult } from './hosted-approval-
|
|
4
|
-
import { D as DestinationGame, P as PendingCollectItem } from './types-
|
|
5
|
-
export { S as SDK_VERSION } from './version-
|
|
3
|
+
import { A as ApproveHostedResult } from './hosted-approval-Dp-BigX9.js';
|
|
4
|
+
import { D as DestinationGame, P as PendingCollectItem } from './types-CBanzneD.js';
|
|
5
|
+
export { S as SDK_VERSION } from './version-B4Eincjj.js';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* INVO game economy client (3.27.0), the browser half. It talks ONLY to your game server
|
package/dist/game.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { InvoClient } from './chunk-
|
|
2
|
-
export { SDK_VERSION } from './chunk-
|
|
3
|
-
import { newEventId } from './chunk-
|
|
1
|
+
import { InvoClient } from './chunk-5T75PCZN.js';
|
|
2
|
+
export { SDK_VERSION } from './chunk-CI7PHE6L.js';
|
|
3
|
+
import { newEventId } from './chunk-LMN2V4YT.js';
|
|
4
4
|
|
|
5
5
|
// src/game/client.ts
|
|
6
6
|
var InvoGameError = class extends Error {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as ApproveResult, j as ConfirmReceiptResult } from './types-
|
|
1
|
+
import { A as ApproveResult, j as ConfirmReceiptResult } from './types-CBanzneD.cjs';
|
|
2
2
|
|
|
3
3
|
/** The four device-approval flows (`begin.flow`). */
|
|
4
4
|
type HostedFlow = "transfer" | "send" | "send_receipt" | "transfer_receipt";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as ApproveResult, j as ConfirmReceiptResult } from './types-
|
|
1
|
+
import { A as ApproveResult, j as ConfirmReceiptResult } from './types-CBanzneD.js';
|
|
2
2
|
|
|
3
3
|
/** The four device-approval flows (`begin.flow`). */
|
|
4
4
|
type HostedFlow = "transfer" | "send" | "send_receipt" | "transfer_receipt";
|
package/dist/index.cjs
CHANGED
|
@@ -13,6 +13,7 @@ var InvoError = class _InvoError extends Error {
|
|
|
13
13
|
this.status = args.status;
|
|
14
14
|
this.body = args.body ?? null;
|
|
15
15
|
this.requestId = args.requestId;
|
|
16
|
+
this.retryAfterHeader = args.retryAfterHeader;
|
|
16
17
|
Object.setPrototypeOf(this, _InvoError.prototype);
|
|
17
18
|
}
|
|
18
19
|
/** True if this is the "recipient isn't passkey-enrolled, fall back to claim code" signal. */
|
|
@@ -1100,11 +1101,27 @@ var InvoError = class _InvoError extends Error {
|
|
|
1100
1101
|
get isRewardExpired() {
|
|
1101
1102
|
return this.code === "vault_entry_expired";
|
|
1102
1103
|
}
|
|
1103
|
-
/**
|
|
1104
|
+
/**
|
|
1105
|
+
* Seconds to wait before retrying, when the backend throttled the call: the body's
|
|
1106
|
+
* `retry_after`, else the `Retry-After` header (seconds). Every INVO rate-limit 429 carries
|
|
1107
|
+
* both (since 2026-10-20). `undefined` when neither is a usable number of seconds.
|
|
1108
|
+
*/
|
|
1104
1109
|
get retryAfter() {
|
|
1105
1110
|
const v = this.bodyObject()["retry_after"];
|
|
1106
1111
|
const n = typeof v === "string" ? v.trim() === "" ? NaN : Number(v) : v;
|
|
1107
|
-
|
|
1112
|
+
if (typeof n === "number" && Number.isFinite(n) && n >= 0) return n;
|
|
1113
|
+
const h = this.retryAfterHeader?.trim();
|
|
1114
|
+
if (h && /^\d+(\.\d+)?$/.test(h)) return Number(h);
|
|
1115
|
+
return void 0;
|
|
1116
|
+
}
|
|
1117
|
+
/**
|
|
1118
|
+
* True when INVO refused the call for going over a rate limit (additive, 3.31.0): `error_code`
|
|
1119
|
+
* `"RATE_LIMITED"` (every rate-limit 429 carries it since 2026-10-20), or any other 429 (an
|
|
1120
|
+
* older release, or an endpoint with its own throttle body). Wait {@link retryAfter} seconds
|
|
1121
|
+
* and send the same request again. Branch on this, not on the message.
|
|
1122
|
+
*/
|
|
1123
|
+
get isRateLimited() {
|
|
1124
|
+
return this.code === "RATE_LIMITED" || this.code === "rate_limited" || this.status === 429;
|
|
1108
1125
|
}
|
|
1109
1126
|
/** `body` as a plain object, or `{}` if it's a string/number/null (non-JSON responses).
|
|
1110
1127
|
* The `in` operator throws on primitives, so callers must go through this. */
|
|
@@ -1112,7 +1129,7 @@ var InvoError = class _InvoError extends Error {
|
|
|
1112
1129
|
return this.body && typeof this.body === "object" ? this.body : {};
|
|
1113
1130
|
}
|
|
1114
1131
|
};
|
|
1115
|
-
function errorFromResponse(status, body, requestId) {
|
|
1132
|
+
function errorFromResponse(status, body, requestId, retryAfterHeader) {
|
|
1116
1133
|
let message = `INVO request failed (HTTP ${status})`;
|
|
1117
1134
|
let code;
|
|
1118
1135
|
let rawCode;
|
|
@@ -1134,7 +1151,7 @@ function errorFromResponse(status, body, requestId) {
|
|
|
1134
1151
|
} else if (typeof body === "string" && body.trim()) {
|
|
1135
1152
|
message = body;
|
|
1136
1153
|
}
|
|
1137
|
-
return new InvoError({ message, code, rawCode, publicCode, status, body, requestId });
|
|
1154
|
+
return new InvoError({ message, code, rawCode, publicCode, status, body, requestId, retryAfterHeader });
|
|
1138
1155
|
}
|
|
1139
1156
|
|
|
1140
1157
|
// src/shared/http.ts
|
|
@@ -1268,7 +1285,7 @@ var _Http = class _Http {
|
|
|
1268
1285
|
requestId
|
|
1269
1286
|
});
|
|
1270
1287
|
if (!res.ok) {
|
|
1271
|
-
const err = errorFromResponse(res.status, parsed, requestId);
|
|
1288
|
+
const err = errorFromResponse(res.status, parsed, requestId, pickRetryAfterHeader(res.headers));
|
|
1272
1289
|
let wait;
|
|
1273
1290
|
if (idempotent && attempt < this.maxRetries && _Http.RETRIABLE_STATUS.has(res.status)) {
|
|
1274
1291
|
if (res.status === 429) {
|
|
@@ -1326,6 +1343,10 @@ function pickRequestId(headers) {
|
|
|
1326
1343
|
if (!headers || typeof headers.get !== "function") return void 0;
|
|
1327
1344
|
return headers.get("x-invo-request-id") ?? headers.get("x-request-id") ?? void 0;
|
|
1328
1345
|
}
|
|
1346
|
+
function pickRetryAfterHeader(headers) {
|
|
1347
|
+
if (!headers || typeof headers.get !== "function") return void 0;
|
|
1348
|
+
return headers.get("retry-after") ?? void 0;
|
|
1349
|
+
}
|
|
1329
1350
|
function retryAfterMs(parsed, headers) {
|
|
1330
1351
|
if (parsed && typeof parsed === "object") {
|
|
1331
1352
|
const v = parsed["retry_after"];
|
package/dist/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { a as PurchaseStatusResult, b as PurchaseCredited, c as PurchaseExpired, d as PurchaseRefunded, e as PurchaseRefused, C as CheckoutClientConfig, H as Http, f as PurchaseStatusInput, g as CallOptions, W as WaitForPurchaseInput, M as MountCheckoutOptions, h as CheckoutMountHandle, i as ClientConfig, A as ApproveResult, j as ConfirmReceiptResult, k as PhoneChangeApprovalsResult, l as ApprovePhoneChangeInput, m as ApprovePhoneChangeResult, L as LinkDeviceResult, n as PendingCollectResult, o as DestinationsQuery, p as DestinationsResult, B as BalanceResult, q as LoyaltyCardsResult, r as LoyaltyVaultResult, R as RedeemRewardResult, s as RewardsPageLink, E as EnrollmentBeginResult, t as EnrollmentVerifyResult, u as RecoveryBeginResult, v as RecoveryCompleteResult } from './types-
|
|
2
|
-
export { w as BalanceRow, x as CheckoutPurchaseStatus, y as ClaimDelivery, D as DestinationGame, I as InvoError, z as InvoErrorInfo, F as InvoHooks, G as InvoRequestInfo, J as InvoResponseInfo, K as LoyaltyCard, N as LoyaltyCardReward, O as LoyaltyCardStep, Q as LoyaltyRewardState, S as LoyaltyStepProgress, T as LoyaltyStepState, U as LoyaltyVaultEntry, P as PendingCollectItem, V as PhoneChangeApproval, X as PhoneChangeDeviceSignal, Y as PurchaseRefusalReason, Z as Rail, _ as VerificationMethod } from './types-
|
|
3
|
-
import { a as ApproveHostedOptions, A as ApproveHostedResult } from './hosted-approval-
|
|
4
|
-
export { E as EnrollmentDecision, b as EnrollmentRespond, H as HostedApprovalStatus, c as HostedEnrollment, d as HostedEnrollmentInput, e as HostedFlow } from './hosted-approval-
|
|
1
|
+
import { a as PurchaseStatusResult, b as PurchaseCredited, c as PurchaseExpired, d as PurchaseRefunded, e as PurchaseRefused, C as CheckoutClientConfig, H as Http, f as PurchaseStatusInput, g as CallOptions, W as WaitForPurchaseInput, M as MountCheckoutOptions, h as CheckoutMountHandle, i as ClientConfig, A as ApproveResult, j as ConfirmReceiptResult, k as PhoneChangeApprovalsResult, l as ApprovePhoneChangeInput, m as ApprovePhoneChangeResult, L as LinkDeviceResult, n as PendingCollectResult, o as DestinationsQuery, p as DestinationsResult, B as BalanceResult, q as LoyaltyCardsResult, r as LoyaltyVaultResult, R as RedeemRewardResult, s as RewardsPageLink, E as EnrollmentBeginResult, t as EnrollmentVerifyResult, u as RecoveryBeginResult, v as RecoveryCompleteResult } from './types-CBanzneD.cjs';
|
|
2
|
+
export { w as BalanceRow, x as CheckoutPurchaseStatus, y as ClaimDelivery, D as DestinationGame, I as InvoError, z as InvoErrorInfo, F as InvoHooks, G as InvoRequestInfo, J as InvoResponseInfo, K as LoyaltyCard, N as LoyaltyCardReward, O as LoyaltyCardStep, Q as LoyaltyRewardState, S as LoyaltyStepProgress, T as LoyaltyStepState, U as LoyaltyVaultEntry, P as PendingCollectItem, V as PhoneChangeApproval, X as PhoneChangeDeviceSignal, Y as PurchaseRefusalReason, Z as Rail, _ as VerificationMethod } from './types-CBanzneD.cjs';
|
|
3
|
+
import { a as ApproveHostedOptions, A as ApproveHostedResult } from './hosted-approval-BBQHClAP.cjs';
|
|
4
|
+
export { E as EnrollmentDecision, b as EnrollmentRespond, H as HostedApprovalStatus, c as HostedEnrollment, d as HostedEnrollmentInput, e as HostedFlow } from './hosted-approval-BBQHClAP.cjs';
|
|
5
5
|
import { R as ReportGameEventInput, a as ReportGameEventResult } from './loyalty-events-CmDw2ZoR.cjs';
|
|
6
6
|
export { G as GameEventType } from './loyalty-events-CmDw2ZoR.cjs';
|
|
7
7
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { a as PurchaseStatusResult, b as PurchaseCredited, c as PurchaseExpired, d as PurchaseRefunded, e as PurchaseRefused, C as CheckoutClientConfig, H as Http, f as PurchaseStatusInput, g as CallOptions, W as WaitForPurchaseInput, M as MountCheckoutOptions, h as CheckoutMountHandle, i as ClientConfig, A as ApproveResult, j as ConfirmReceiptResult, k as PhoneChangeApprovalsResult, l as ApprovePhoneChangeInput, m as ApprovePhoneChangeResult, L as LinkDeviceResult, n as PendingCollectResult, o as DestinationsQuery, p as DestinationsResult, B as BalanceResult, q as LoyaltyCardsResult, r as LoyaltyVaultResult, R as RedeemRewardResult, s as RewardsPageLink, E as EnrollmentBeginResult, t as EnrollmentVerifyResult, u as RecoveryBeginResult, v as RecoveryCompleteResult } from './types-
|
|
2
|
-
export { w as BalanceRow, x as CheckoutPurchaseStatus, y as ClaimDelivery, D as DestinationGame, I as InvoError, z as InvoErrorInfo, F as InvoHooks, G as InvoRequestInfo, J as InvoResponseInfo, K as LoyaltyCard, N as LoyaltyCardReward, O as LoyaltyCardStep, Q as LoyaltyRewardState, S as LoyaltyStepProgress, T as LoyaltyStepState, U as LoyaltyVaultEntry, P as PendingCollectItem, V as PhoneChangeApproval, X as PhoneChangeDeviceSignal, Y as PurchaseRefusalReason, Z as Rail, _ as VerificationMethod } from './types-
|
|
3
|
-
import { a as ApproveHostedOptions, A as ApproveHostedResult } from './hosted-approval-
|
|
4
|
-
export { E as EnrollmentDecision, b as EnrollmentRespond, H as HostedApprovalStatus, c as HostedEnrollment, d as HostedEnrollmentInput, e as HostedFlow } from './hosted-approval-
|
|
1
|
+
import { a as PurchaseStatusResult, b as PurchaseCredited, c as PurchaseExpired, d as PurchaseRefunded, e as PurchaseRefused, C as CheckoutClientConfig, H as Http, f as PurchaseStatusInput, g as CallOptions, W as WaitForPurchaseInput, M as MountCheckoutOptions, h as CheckoutMountHandle, i as ClientConfig, A as ApproveResult, j as ConfirmReceiptResult, k as PhoneChangeApprovalsResult, l as ApprovePhoneChangeInput, m as ApprovePhoneChangeResult, L as LinkDeviceResult, n as PendingCollectResult, o as DestinationsQuery, p as DestinationsResult, B as BalanceResult, q as LoyaltyCardsResult, r as LoyaltyVaultResult, R as RedeemRewardResult, s as RewardsPageLink, E as EnrollmentBeginResult, t as EnrollmentVerifyResult, u as RecoveryBeginResult, v as RecoveryCompleteResult } from './types-CBanzneD.js';
|
|
2
|
+
export { w as BalanceRow, x as CheckoutPurchaseStatus, y as ClaimDelivery, D as DestinationGame, I as InvoError, z as InvoErrorInfo, F as InvoHooks, G as InvoRequestInfo, J as InvoResponseInfo, K as LoyaltyCard, N as LoyaltyCardReward, O as LoyaltyCardStep, Q as LoyaltyRewardState, S as LoyaltyStepProgress, T as LoyaltyStepState, U as LoyaltyVaultEntry, P as PendingCollectItem, V as PhoneChangeApproval, X as PhoneChangeDeviceSignal, Y as PurchaseRefusalReason, Z as Rail, _ as VerificationMethod } from './types-CBanzneD.js';
|
|
3
|
+
import { a as ApproveHostedOptions, A as ApproveHostedResult } from './hosted-approval-Dp-BigX9.js';
|
|
4
|
+
export { E as EnrollmentDecision, b as EnrollmentRespond, H as HostedApprovalStatus, c as HostedEnrollment, d as HostedEnrollmentInput, e as HostedFlow } from './hosted-approval-Dp-BigX9.js';
|
|
5
5
|
import { R as ReportGameEventInput, a as ReportGameEventResult } from './loyalty-events-CmDw2ZoR.js';
|
|
6
6
|
export { G as GameEventType } from './loyalty-events-CmDw2ZoR.js';
|
|
7
7
|
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { CheckoutClient, InvoClient, PlatformCommerceClient } from './chunk-
|
|
2
|
-
export { InvoError, isPurchaseCredited, isPurchaseExpired, isPurchaseRefunded, isPurchaseRefused, nothingWasCharged, phoneChangeSignalMessage } from './chunk-
|
|
1
|
+
export { CheckoutClient, InvoClient, PlatformCommerceClient } from './chunk-5T75PCZN.js';
|
|
2
|
+
export { InvoError, isPurchaseCredited, isPurchaseExpired, isPurchaseRefunded, isPurchaseRefused, nothingWasCharged, phoneChangeSignalMessage } from './chunk-LMN2V4YT.js';
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
|
4
4
|
//# sourceMappingURL=index.js.map
|
|
@@ -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-CBanzneD.js';
|
|
2
2
|
import { b as ReportServerGameEventInput, a as ReportGameEventResult } from './loyalty-events-CmDw2ZoR.js';
|
|
3
|
-
import './version-
|
|
3
|
+
import './version-B4Eincjj.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Pick the INVO environment from the game secret alone (3.28.0).
|
|
@@ -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;
|
|
@@ -1182,7 +1191,9 @@ declare class PlatformCommerceServer {
|
|
|
1182
1191
|
* Send the buyer to `checkoutUrl` — INVO's hosted page owns the card form, wallets,
|
|
1183
1192
|
* billing address, and 3-D Secure (there is NO billing address in this request, and no
|
|
1184
1193
|
* client payment code to write; optionally embed via
|
|
1185
|
-
* `InvoClient.platformCommerce.mountCheckout`).
|
|
1194
|
+
* `InvoClient.platformCommerce.mountCheckout`). The page shows the INVO logo by
|
|
1195
|
+
* default, or the game's own logo when one is set in the INVO console (Game settings,
|
|
1196
|
+
* Checkout branding). `totalPrice` is USD, at least $0.50;
|
|
1186
1197
|
* the maximum is an INVO setting ($100,000.00 by default) and is enforced on the
|
|
1187
1198
|
* request, not here, so read the live figure off `ABOVE_CARD_MAXIMUM` rather than
|
|
1188
1199
|
* pinning one.
|
|
@@ -1197,7 +1208,8 @@ declare class PlatformCommerceServer {
|
|
|
1197
1208
|
*/
|
|
1198
1209
|
purchase(input: PlatformPurchaseInput, opts?: CallOptions): Promise<PlatformPurchaseResult>;
|
|
1199
1210
|
/** Poll an order's status: `completed` (balance immediately; card after the webhook),
|
|
1200
|
-
* `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). */
|
|
1201
1213
|
getStatus(orderId: string | number, opts?: CallOptions): Promise<PlatformOrderStatusResult>;
|
|
1202
1214
|
/**
|
|
1203
1215
|
* One player's Platform Commerce purchases in your app, newest first, one page at a time
|
|
@@ -1445,7 +1457,9 @@ declare class CardsServer {
|
|
|
1445
1457
|
* is never re-created or renamed by this call; `playerName` / `playerPhone` are used
|
|
1446
1458
|
* only when the member is new. Send the member to `result.cardSetupUrl` top-level (do
|
|
1447
1459
|
* not frame it). The page says in words that no money moves, saves the card, and then
|
|
1448
|
-
* redirects to `successUrl` (or shows "Card saved" when you gave none).
|
|
1460
|
+
* redirects to `successUrl` (or shows "Card saved" when you gave none). It shows the
|
|
1461
|
+
* INVO logo by default, or the game's own logo when one is set in the INVO console
|
|
1462
|
+
* (Game settings, Checkout branding). The saved card
|
|
1449
1463
|
* appears in {@link list} immediately, carries the off-session consent a subscription
|
|
1450
1464
|
* needs, and is indistinguishable from one saved any other way. There is no event for
|
|
1451
1465
|
* a saved card; `cards.list` is the signal.
|
|
@@ -1734,7 +1748,9 @@ declare class InvoServer {
|
|
|
1734
1748
|
/** Create a hosted checkout session (the recommended purchase path). Open the
|
|
1735
1749
|
* returned checkoutUrl in a WebView/redirect or an iframe; the INVO-hosted page
|
|
1736
1750
|
* handles cards, saved cards, and 3-D Secure. Crediting is server-side via the
|
|
1737
|
-
* purchase.completed webhook.
|
|
1751
|
+
* purchase.completed webhook. The page shows the INVO logo by default, or the game's
|
|
1752
|
+
* own logo when one is set in the INVO console (Game settings, Checkout branding);
|
|
1753
|
+
* there is no SDK call to set it. */
|
|
1738
1754
|
createCheckout(input: CreateCheckoutInput, opts?: CallOptions): Promise<CreateCheckoutResult>;
|
|
1739
1755
|
/**
|
|
1740
1756
|
* Read a hosted checkout's status from INVO, server-side, with the session token that
|
|
@@ -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-CBanzneD.cjs';
|
|
2
2
|
import { b as ReportServerGameEventInput, a as ReportGameEventResult } from './loyalty-events-CmDw2ZoR.cjs';
|
|
3
|
-
import './version-
|
|
3
|
+
import './version-B4Eincjj.cjs';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Pick the INVO environment from the game secret alone (3.28.0).
|
|
@@ -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;
|
|
@@ -1182,7 +1191,9 @@ declare class PlatformCommerceServer {
|
|
|
1182
1191
|
* Send the buyer to `checkoutUrl` — INVO's hosted page owns the card form, wallets,
|
|
1183
1192
|
* billing address, and 3-D Secure (there is NO billing address in this request, and no
|
|
1184
1193
|
* client payment code to write; optionally embed via
|
|
1185
|
-
* `InvoClient.platformCommerce.mountCheckout`).
|
|
1194
|
+
* `InvoClient.platformCommerce.mountCheckout`). The page shows the INVO logo by
|
|
1195
|
+
* default, or the game's own logo when one is set in the INVO console (Game settings,
|
|
1196
|
+
* Checkout branding). `totalPrice` is USD, at least $0.50;
|
|
1186
1197
|
* the maximum is an INVO setting ($100,000.00 by default) and is enforced on the
|
|
1187
1198
|
* request, not here, so read the live figure off `ABOVE_CARD_MAXIMUM` rather than
|
|
1188
1199
|
* pinning one.
|
|
@@ -1197,7 +1208,8 @@ declare class PlatformCommerceServer {
|
|
|
1197
1208
|
*/
|
|
1198
1209
|
purchase(input: PlatformPurchaseInput, opts?: CallOptions): Promise<PlatformPurchaseResult>;
|
|
1199
1210
|
/** Poll an order's status: `completed` (balance immediately; card after the webhook),
|
|
1200
|
-
* `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). */
|
|
1201
1213
|
getStatus(orderId: string | number, opts?: CallOptions): Promise<PlatformOrderStatusResult>;
|
|
1202
1214
|
/**
|
|
1203
1215
|
* One player's Platform Commerce purchases in your app, newest first, one page at a time
|
|
@@ -1445,7 +1457,9 @@ declare class CardsServer {
|
|
|
1445
1457
|
* is never re-created or renamed by this call; `playerName` / `playerPhone` are used
|
|
1446
1458
|
* only when the member is new. Send the member to `result.cardSetupUrl` top-level (do
|
|
1447
1459
|
* not frame it). The page says in words that no money moves, saves the card, and then
|
|
1448
|
-
* redirects to `successUrl` (or shows "Card saved" when you gave none).
|
|
1460
|
+
* redirects to `successUrl` (or shows "Card saved" when you gave none). It shows the
|
|
1461
|
+
* INVO logo by default, or the game's own logo when one is set in the INVO console
|
|
1462
|
+
* (Game settings, Checkout branding). The saved card
|
|
1449
1463
|
* appears in {@link list} immediately, carries the off-session consent a subscription
|
|
1450
1464
|
* needs, and is indistinguishable from one saved any other way. There is no event for
|
|
1451
1465
|
* a saved card; `cards.list` is the signal.
|
|
@@ -1734,7 +1748,9 @@ declare class InvoServer {
|
|
|
1734
1748
|
/** Create a hosted checkout session (the recommended purchase path). Open the
|
|
1735
1749
|
* returned checkoutUrl in a WebView/redirect or an iframe; the INVO-hosted page
|
|
1736
1750
|
* handles cards, saved cards, and 3-D Secure. Crediting is server-side via the
|
|
1737
|
-
* purchase.completed webhook.
|
|
1751
|
+
* purchase.completed webhook. The page shows the INVO logo by default, or the game's
|
|
1752
|
+
* own logo when one is set in the INVO console (Game settings, Checkout branding);
|
|
1753
|
+
* there is no SDK call to set it. */
|
|
1738
1754
|
createCheckout(input: CreateCheckoutInput, opts?: CallOptions): Promise<CreateCheckoutResult>;
|
|
1739
1755
|
/**
|
|
1740
1756
|
* Read a hosted checkout's status from INVO, server-side, with the session token that
|
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. */
|
|
@@ -1102,11 +1103,27 @@ var InvoError = class _InvoError extends Error {
|
|
|
1102
1103
|
get isRewardExpired() {
|
|
1103
1104
|
return this.code === "vault_entry_expired";
|
|
1104
1105
|
}
|
|
1105
|
-
/**
|
|
1106
|
+
/**
|
|
1107
|
+
* Seconds to wait before retrying, when the backend throttled the call: the body's
|
|
1108
|
+
* `retry_after`, else the `Retry-After` header (seconds). Every INVO rate-limit 429 carries
|
|
1109
|
+
* both (since 2026-10-20). `undefined` when neither is a usable number of seconds.
|
|
1110
|
+
*/
|
|
1106
1111
|
get retryAfter() {
|
|
1107
1112
|
const v = this.bodyObject()["retry_after"];
|
|
1108
1113
|
const n = typeof v === "string" ? v.trim() === "" ? NaN : Number(v) : v;
|
|
1109
|
-
|
|
1114
|
+
if (typeof n === "number" && Number.isFinite(n) && n >= 0) return n;
|
|
1115
|
+
const h = this.retryAfterHeader?.trim();
|
|
1116
|
+
if (h && /^\d+(\.\d+)?$/.test(h)) return Number(h);
|
|
1117
|
+
return void 0;
|
|
1118
|
+
}
|
|
1119
|
+
/**
|
|
1120
|
+
* True when INVO refused the call for going over a rate limit (additive, 3.31.0): `error_code`
|
|
1121
|
+
* `"RATE_LIMITED"` (every rate-limit 429 carries it since 2026-10-20), or any other 429 (an
|
|
1122
|
+
* older release, or an endpoint with its own throttle body). Wait {@link retryAfter} seconds
|
|
1123
|
+
* and send the same request again. Branch on this, not on the message.
|
|
1124
|
+
*/
|
|
1125
|
+
get isRateLimited() {
|
|
1126
|
+
return this.code === "RATE_LIMITED" || this.code === "rate_limited" || this.status === 429;
|
|
1110
1127
|
}
|
|
1111
1128
|
/** `body` as a plain object, or `{}` if it's a string/number/null (non-JSON responses).
|
|
1112
1129
|
* The `in` operator throws on primitives, so callers must go through this. */
|
|
@@ -1114,7 +1131,7 @@ var InvoError = class _InvoError extends Error {
|
|
|
1114
1131
|
return this.body && typeof this.body === "object" ? this.body : {};
|
|
1115
1132
|
}
|
|
1116
1133
|
};
|
|
1117
|
-
function errorFromResponse(status, body, requestId) {
|
|
1134
|
+
function errorFromResponse(status, body, requestId, retryAfterHeader) {
|
|
1118
1135
|
let message = `INVO request failed (HTTP ${status})`;
|
|
1119
1136
|
let code;
|
|
1120
1137
|
let rawCode;
|
|
@@ -1136,7 +1153,7 @@ function errorFromResponse(status, body, requestId) {
|
|
|
1136
1153
|
} else if (typeof body === "string" && body.trim()) {
|
|
1137
1154
|
message = body;
|
|
1138
1155
|
}
|
|
1139
|
-
return new InvoError({ message, code, rawCode, publicCode, status, body, requestId });
|
|
1156
|
+
return new InvoError({ message, code, rawCode, publicCode, status, body, requestId, retryAfterHeader });
|
|
1140
1157
|
}
|
|
1141
1158
|
|
|
1142
1159
|
// src/shared/http.ts
|
|
@@ -1270,7 +1287,7 @@ var _Http = class _Http {
|
|
|
1270
1287
|
requestId
|
|
1271
1288
|
});
|
|
1272
1289
|
if (!res.ok) {
|
|
1273
|
-
const err = errorFromResponse(res.status, parsed, requestId);
|
|
1290
|
+
const err = errorFromResponse(res.status, parsed, requestId, pickRetryAfterHeader(res.headers));
|
|
1274
1291
|
let wait;
|
|
1275
1292
|
if (idempotent && attempt < this.maxRetries && _Http.RETRIABLE_STATUS.has(res.status)) {
|
|
1276
1293
|
if (res.status === 429) {
|
|
@@ -1328,6 +1345,10 @@ function pickRequestId(headers) {
|
|
|
1328
1345
|
if (!headers || typeof headers.get !== "function") return void 0;
|
|
1329
1346
|
return headers.get("x-invo-request-id") ?? headers.get("x-request-id") ?? void 0;
|
|
1330
1347
|
}
|
|
1348
|
+
function pickRetryAfterHeader(headers) {
|
|
1349
|
+
if (!headers || typeof headers.get !== "function") return void 0;
|
|
1350
|
+
return headers.get("retry-after") ?? void 0;
|
|
1351
|
+
}
|
|
1331
1352
|
function retryAfterMs(parsed, headers) {
|
|
1332
1353
|
if (parsed && typeof parsed === "object") {
|
|
1333
1354
|
const v = parsed["retry_after"];
|
|
@@ -1619,7 +1640,7 @@ function toPhoneChangeRequest(raw) {
|
|
|
1619
1640
|
}
|
|
1620
1641
|
|
|
1621
1642
|
// src/version.ts
|
|
1622
|
-
var SDK_VERSION = "3.
|
|
1643
|
+
var SDK_VERSION = "3.31.0";
|
|
1623
1644
|
|
|
1624
1645
|
// src/payouts.ts
|
|
1625
1646
|
var AMOUNT = /^\d+(\.\d{1,2})?$/;
|
|
@@ -2317,9 +2338,17 @@ function toPlatformOrderStatus(raw, fallbackOrderId) {
|
|
|
2317
2338
|
paymentMethod: raw["payment_method"],
|
|
2318
2339
|
createdAt: raw["created_at"],
|
|
2319
2340
|
...receiptFields(raw),
|
|
2341
|
+
...feeSplitFields(raw),
|
|
2320
2342
|
raw
|
|
2321
2343
|
};
|
|
2322
2344
|
}
|
|
2345
|
+
function feeSplitFields(raw) {
|
|
2346
|
+
const out = {};
|
|
2347
|
+
const pick = (v) => v === null ? null : typeof v === "string" ? v : typeof v === "number" && Number.isFinite(v) ? v.toFixed(2) : null;
|
|
2348
|
+
if ("invo_fee_usd" in raw) out.invoFeeUsd = pick(raw["invo_fee_usd"]);
|
|
2349
|
+
if ("partner_share_usd" in raw) out.partnerShareUsd = pick(raw["partner_share_usd"]);
|
|
2350
|
+
return out;
|
|
2351
|
+
}
|
|
2323
2352
|
function nextCursorOf(raw) {
|
|
2324
2353
|
const c = raw["next_cursor"];
|
|
2325
2354
|
return typeof c === "string" && c ? c : null;
|
|
@@ -2534,7 +2563,9 @@ var PlatformCommerceServer = class {
|
|
|
2534
2563
|
* Send the buyer to `checkoutUrl` — INVO's hosted page owns the card form, wallets,
|
|
2535
2564
|
* billing address, and 3-D Secure (there is NO billing address in this request, and no
|
|
2536
2565
|
* client payment code to write; optionally embed via
|
|
2537
|
-
* `InvoClient.platformCommerce.mountCheckout`).
|
|
2566
|
+
* `InvoClient.platformCommerce.mountCheckout`). The page shows the INVO logo by
|
|
2567
|
+
* default, or the game's own logo when one is set in the INVO console (Game settings,
|
|
2568
|
+
* Checkout branding). `totalPrice` is USD, at least $0.50;
|
|
2538
2569
|
* the maximum is an INVO setting ($100,000.00 by default) and is enforced on the
|
|
2539
2570
|
* request, not here, so read the live figure off `ABOVE_CARD_MAXIMUM` rather than
|
|
2540
2571
|
* pinning one.
|
|
@@ -2637,7 +2668,8 @@ var PlatformCommerceServer = class {
|
|
|
2637
2668
|
};
|
|
2638
2669
|
}
|
|
2639
2670
|
/** Poll an order's status: `completed` (balance immediately; card after the webhook),
|
|
2640
|
-
* `pending_payment` (card awaiting confirmation), or `refunded`.
|
|
2671
|
+
* `pending_payment` (card awaiting confirmation), or `refunded`. Once the sale has settled,
|
|
2672
|
+
* `invoFeeUsd` / `partnerShareUsd` say what INVO kept and what you earned (additive). */
|
|
2641
2673
|
async getStatus(orderId, opts) {
|
|
2642
2674
|
if (orderId == null || String(orderId).trim() === "") {
|
|
2643
2675
|
throw invalidInput2("orderId", orderId, "is required");
|
|
@@ -3583,7 +3615,9 @@ var CardsServer = class {
|
|
|
3583
3615
|
* is never re-created or renamed by this call; `playerName` / `playerPhone` are used
|
|
3584
3616
|
* only when the member is new. Send the member to `result.cardSetupUrl` top-level (do
|
|
3585
3617
|
* not frame it). The page says in words that no money moves, saves the card, and then
|
|
3586
|
-
* redirects to `successUrl` (or shows "Card saved" when you gave none).
|
|
3618
|
+
* redirects to `successUrl` (or shows "Card saved" when you gave none). It shows the
|
|
3619
|
+
* INVO logo by default, or the game's own logo when one is set in the INVO console
|
|
3620
|
+
* (Game settings, Checkout branding). The saved card
|
|
3587
3621
|
* appears in {@link list} immediately, carries the off-session consent a subscription
|
|
3588
3622
|
* needs, and is indistinguishable from one saved any other way. There is no event for
|
|
3589
3623
|
* a saved card; `cards.list` is the signal.
|
|
@@ -4109,7 +4143,9 @@ var InvoServer = class {
|
|
|
4109
4143
|
/** Create a hosted checkout session (the recommended purchase path). Open the
|
|
4110
4144
|
* returned checkoutUrl in a WebView/redirect or an iframe; the INVO-hosted page
|
|
4111
4145
|
* handles cards, saved cards, and 3-D Secure. Crediting is server-side via the
|
|
4112
|
-
* purchase.completed webhook.
|
|
4146
|
+
* purchase.completed webhook. The page shows the INVO logo by default, or the game's
|
|
4147
|
+
* own logo when one is set in the INVO console (Game settings, Checkout branding);
|
|
4148
|
+
* there is no SDK call to set it. */
|
|
4113
4149
|
async createCheckout(input, opts) {
|
|
4114
4150
|
if (typeof input.playerEmail !== "string" || !input.playerEmail.trim()) {
|
|
4115
4151
|
throw invalidInput2("playerEmail", input.playerEmail, "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-CBanzneD.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-D9bKfiY6.cjs';
|
|
4
|
+
export { S as SDK_VERSION } from './version-B4Eincjj.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-CBanzneD.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-CaALJEML.js';
|
|
4
|
+
export { S as SDK_VERSION } from './version-B4Eincjj.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-UW66W2N6.js';
|
|
2
|
+
export { SDK_VERSION } from './chunk-CI7PHE6L.js';
|
|
3
|
+
export { InvoError } from './chunk-LMN2V4YT.js';
|
|
4
4
|
//# sourceMappingURL=server.js.map
|
|
5
5
|
//# sourceMappingURL=server.js.map
|