@invonetwork/web-sdk 3.36.0 → 3.37.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 +11 -0
- package/README.md +29 -0
- package/dist/{chunk-SCFK6IVH.js → chunk-AUHRMREF.js} +3 -3
- package/dist/{chunk-BGCSSWVL.js → chunk-KWAUFFDY.js} +23 -2
- package/dist/chunk-MENRG67H.js +6 -0
- package/dist/{chunk-J4IQ3ANY.js → chunk-ZHEQAZLW.js} +22 -8
- package/dist/game-server.cjs +40 -5
- 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 +22 -1
- package/dist/game.d.cts +3 -3
- package/dist/game.d.ts +3 -3
- package/dist/game.js +3 -3
- package/dist/{hosted-approval-BKI9oHwf.d.cts → hosted-approval-DS9gcCF5.d.cts} +1 -1
- package/dist/{hosted-approval-fgVkugRU.d.ts → hosted-approval-Dv462L4e.d.ts} +1 -1
- package/dist/index.cjs +21 -0
- package/dist/index.d.cts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +2 -2
- package/dist/{server-CSRCWgrK.d.ts → server-B7Pw1HMp.d.ts} +23 -2
- package/dist/{server-BMY3q2Bn.d.cts → server-B9PtYZaM.d.cts} +23 -2
- package/dist/server.cjs +40 -5
- package/dist/server.d.cts +3 -3
- package/dist/server.d.ts +3 -3
- package/dist/server.js +3 -3
- package/dist/{types-BcdXf2S5.d.ts → types-BdKpJX93.d.cts} +13 -0
- package/dist/{types-BcdXf2S5.d.cts → types-BdKpJX93.d.ts} +13 -0
- package/dist/{version-QIFHOifq.d.cts → version-CuhMO-6s.d.cts} +1 -1
- package/dist/{version-QIFHOifq.d.ts → version-CuhMO-6s.d.ts} +1 -1
- package/package.json +1 -1
- package/dist/chunk-B75DBT53.js +0 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 3.37.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- Payouts when your billing account owes INVO. On the Steam and Apple rails Steam or Apple pays you directly and INVO bills you for the coins through your billing account, charging the card on file first. If the billing account still owes INVO when a payout is created, INVO now settles that amount from the payout and pays you the rest. All additive.
|
|
8
|
+
|
|
9
|
+
- `Payout` gains `offset_float_usd` and `amount_before_offset_usd` (as the server sends them) and the mapped `offsetFloatUsd` and `amountBeforeOffsetUsd` on `requestPayout`, `getPayout`, `listPayouts` and `cancelPayout`. They are present only when something was settled; `requested_amount_usd` is then the cash part. A payout with nothing settled is returned exactly as before.
|
|
10
|
+
- `payout.status_changed` webhook data types the same two snake_case fields.
|
|
11
|
+
- `InvoError` predicates: `isFloatDebtOutstanding` (`FLOAT_DEBT_OUTSTANDING`, 409: the amount owed is more than the payout less the minimum; nothing was created) with `floatDebtUsd`, and `isFloatCheckUnavailable` (`FLOAT_CHECK_UNAVAILABLE`, 503, retryable).
|
|
12
|
+
- README: a new "Payouts when your billing account owes INVO" section.
|
|
13
|
+
|
|
3
14
|
## 3.36.0
|
|
4
15
|
|
|
5
16
|
### Minor Changes
|
package/README.md
CHANGED
|
@@ -2815,6 +2815,35 @@ The first payout to a creator registered with the game key carries `owner_confir
|
|
|
2815
2815
|
|
|
2816
2816
|
Refusals carry `err.code`: `PAYEE_NOT_FOUND`, `PAYEE_NOT_VERIFIED` (not `verified` right now: check the status), `PAYEE_VERIFICATION_EXPIRED`, `PAYEE_BANK_NOT_VERIFIED`, `PAYEE_CLOSED`, `PAYEE_TERMS_NOT_ACCEPTED` (the creator hasn't accepted INVO's current Payee Terms yet), `PAYEE_NOT_PAYABLE` (the creator can't be paid right now; no action is needed from you or the creator; try again later), `INSUFFICIENT_OWED_BALANCE`, `IDEMPOTENCY_KEY_REUSED`, `PAYOUT_NOT_CANCELLABLE`. Registering: `PARTNER_REFERENCE_CONFLICT`, `COUNTRY_NOT_SUPPORTED`, `GAME_HAS_NO_OWNER`. Resending an invite: `INVITE_NOT_NEEDED`, `PAYEE_ERASED`, `INVITE_RATE_LIMITED` (wait `retry_after_seconds`). A completed payout the bank sends back reads `returned` with `return_reason_code` (always `"returned"` on a creator payout). `partner_message` is a note INVO wrote for you. Each creator carries `payable` and `payable_blockers` (`erased`, `closed`, `not_verified`, `verification_expired`, `terms_not_accepted`, `bank_not_verified`, `not_payable_now`): check `payable` before offering a payout. Removing a creator with a payout still being processed is refused with `PAYEE_HAS_PAYOUTS_IN_FLIGHT` (`payouts_in_flight_by_status` counts them; a `requested` one can be cancelled).
|
|
2817
2817
|
|
|
2818
|
+
### Payouts when your billing account owes INVO
|
|
2819
|
+
|
|
2820
|
+
On the Steam and Apple rails, Steam or Apple pays you directly and INVO bills you for the coins it issued through your billing account in the INVO console, charging the card on file first. If the billing account still owes INVO when a payout is created, INVO settles that amount from the payout and pays you the rest. Accounts that settle by invoice under an agreement are never netted. See [payouts when your account owes INVO](https://docs.invo.network/docs/partners#payouts-account-owes).
|
|
2821
|
+
|
|
2822
|
+
```ts
|
|
2823
|
+
try {
|
|
2824
|
+
const { payout } = await invo.payouts.requestPayout({
|
|
2825
|
+
amountUsd: "100.00",
|
|
2826
|
+
contactEmail: "ops@example.com",
|
|
2827
|
+
bankAccountId: 12,
|
|
2828
|
+
clientRequestId: crypto.randomUUID(),
|
|
2829
|
+
});
|
|
2830
|
+
if (payout.offsetFloatUsd) {
|
|
2831
|
+
// Billing account owed $40.00: payout.offsetFloatUsd "40.00",
|
|
2832
|
+
// payout.amountBeforeOffsetUsd "100.00", payout.requested_amount_usd "60.00" (the cash part).
|
|
2833
|
+
// The payout fee is on the cash part only.
|
|
2834
|
+
}
|
|
2835
|
+
} catch (err) {
|
|
2836
|
+
if (err instanceof InvoError && err.isFloatDebtOutstanding) {
|
|
2837
|
+
// 409: the amount owed (err.floatDebtUsd, e.g. "95.00") is more than this payout less the
|
|
2838
|
+
// $10 minimum. Nothing was created. Ask for more, or retry after the card is charged.
|
|
2839
|
+
} else if (err instanceof InvoError && err.isFloatCheckUnavailable) {
|
|
2840
|
+
// 503, retryable: nothing was changed. Retry with the same clientRequestId.
|
|
2841
|
+
} else throw err;
|
|
2842
|
+
}
|
|
2843
|
+
```
|
|
2844
|
+
|
|
2845
|
+
`offsetFloatUsd` and `amountBeforeOffsetUsd` (and the server's `offset_float_usd` / `amount_before_offset_usd`, also on `payout.status_changed`) are present only when something was settled: absent, never `"0.00"`, otherwise. What was settled stays settled if the payout is later rejected, fails or is returned; only the cash part is owed to you again. If a card charge fails, INVO also applies your earnings to the amount owed once an hour and emails the account owner each time.
|
|
2846
|
+
|
|
2818
2847
|
## Webhooks
|
|
2819
2848
|
|
|
2820
2849
|
The synchronous responses are for UX; **reconcile and grant value off webhooks.** They're HMAC-signed; **dedupe on the `X-Invo-Idempotency-Key` header** (stable across retries/replays — *not* `X-Invo-Event-Id`, which changes per delivery).
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { InvoError, assertSecureBaseUrl, Http, toPurchaseStatusResult, toPhoneChangeApprovalsResult, phoneChangeSignalMessage, toApprovePhoneChangeResult, toDestinationsResult, toLoyaltyCardsResult, toLoyaltyVaultResult, toRedeemRewardResult, toRewardsPageLink, buildGameEventBody, toReportGameEventResult } from './chunk-
|
|
1
|
+
import { InvoError, assertSecureBaseUrl, Http, toPurchaseStatusResult, toPhoneChangeApprovalsResult, phoneChangeSignalMessage, toApprovePhoneChangeResult, toDestinationsResult, toLoyaltyCardsResult, toLoyaltyVaultResult, toRedeemRewardResult, toRewardsPageLink, buildGameEventBody, toReportGameEventResult } from './chunk-KWAUFFDY.js';
|
|
2
2
|
|
|
3
3
|
// src/shared/webauthn.ts
|
|
4
4
|
function malformedOptions(field) {
|
|
@@ -1586,5 +1586,5 @@ var InvoClient = class {
|
|
|
1586
1586
|
};
|
|
1587
1587
|
|
|
1588
1588
|
export { CheckoutClient, InvoClient, PlatformCommerceClient };
|
|
1589
|
-
//# sourceMappingURL=chunk-
|
|
1590
|
-
//# sourceMappingURL=chunk-
|
|
1589
|
+
//# sourceMappingURL=chunk-AUHRMREF.js.map
|
|
1590
|
+
//# sourceMappingURL=chunk-AUHRMREF.js.map
|
|
@@ -335,6 +335,27 @@ var InvoError = class _InvoError extends Error {
|
|
|
335
335
|
get isPartnerRailSuspended() {
|
|
336
336
|
return this.code === "PARTNER_RAIL_SUSPENDED";
|
|
337
337
|
}
|
|
338
|
+
/** A payout or withdrawal was refused because the billing account owes INVO more for
|
|
339
|
+
* Steam or Apple coins than this payout can settle (`FLOAT_DEBT_OUTSTANDING`, 409;
|
|
340
|
+
* additive, 3.37.0). Nothing was created. {@link floatDebtUsd} is what is owed; the
|
|
341
|
+
* message is safe to show the account owner. Ask for a larger amount, or retry once the
|
|
342
|
+
* card on file has been charged. */
|
|
343
|
+
get isFloatDebtOutstanding() {
|
|
344
|
+
return this.code === "FLOAT_DEBT_OUTSTANDING";
|
|
345
|
+
}
|
|
346
|
+
/** On `FLOAT_DEBT_OUTSTANDING`: what the billing account owes (`float_debt_usd`), USD
|
|
347
|
+
* decimal string, for example `"95.00"`. `undefined` when the body does not carry it. */
|
|
348
|
+
get floatDebtUsd() {
|
|
349
|
+
const v = this.bodyObject()["float_debt_usd"];
|
|
350
|
+
if (typeof v === "number" && Number.isFinite(v)) return v.toFixed(2);
|
|
351
|
+
return typeof v === "string" && v ? v : void 0;
|
|
352
|
+
}
|
|
353
|
+
/** The billing account could not be checked, so the payout or withdrawal was not created
|
|
354
|
+
* (`FLOAT_CHECK_UNAVAILABLE`, 503, `retryable: true`; additive, 3.37.0). Nothing was
|
|
355
|
+
* changed. Retry with the same idempotency key. */
|
|
356
|
+
get isFloatCheckUnavailable() {
|
|
357
|
+
return this.code === "FLOAT_CHECK_UNAVAILABLE";
|
|
358
|
+
}
|
|
338
359
|
/** True when INVO has paused new payments on the developer account
|
|
339
360
|
* (`PAYMENTS_PAUSED`, 403; additive, 3.32.0). Every call that starts a payment returns it:
|
|
340
361
|
* coin purchase, checkout session, Platform Commerce card purchase, new
|
|
@@ -1876,5 +1897,5 @@ function toApprovePhoneChangeResult(raw, changeRequestId) {
|
|
|
1876
1897
|
}
|
|
1877
1898
|
|
|
1878
1899
|
export { Http, InvoError, assertSecureBaseUrl, buildGameEventBody, creditFields, isPurchaseCredited, isPurchaseExpired, isPurchaseRefunded, isPurchaseRefused, newEventId, nothingWasCharged, phoneChangeSignalMessage, receiptFields, toApprovePhoneChangeResult, toDestinationsResult, toLoyaltyCardsResult, toLoyaltyVaultResult, toPhoneChangeApprovalsResult, toPhoneChangeRequest, toPurchaseStatusResult, toRedeemRewardResult, toReportGameEventResult, toRequestPhoneChangeResult, toRewardsPageLink };
|
|
1879
|
-
//# sourceMappingURL=chunk-
|
|
1880
|
-
//# sourceMappingURL=chunk-
|
|
1900
|
+
//# sourceMappingURL=chunk-KWAUFFDY.js.map
|
|
1901
|
+
//# sourceMappingURL=chunk-KWAUFFDY.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { SDK_VERSION } from './chunk-
|
|
2
|
-
import { InvoError, assertSecureBaseUrl, Http, toRequestPhoneChangeResult, toPhoneChangeRequest, toPurchaseStatusResult, receiptFields, creditFields, toLoyaltyCardsResult, buildGameEventBody, toReportGameEventResult, toDestinationsResult } from './chunk-
|
|
1
|
+
import { SDK_VERSION } from './chunk-MENRG67H.js';
|
|
2
|
+
import { InvoError, assertSecureBaseUrl, Http, toRequestPhoneChangeResult, toPhoneChangeRequest, toPurchaseStatusResult, receiptFields, creditFields, toLoyaltyCardsResult, buildGameEventBody, toReportGameEventResult, toDestinationsResult } from './chunk-KWAUFFDY.js';
|
|
3
3
|
import { createHmac, timingSafeEqual } from 'crypto';
|
|
4
4
|
|
|
5
5
|
// src/shared/apple.ts
|
|
@@ -116,6 +116,20 @@ function query(params) {
|
|
|
116
116
|
}
|
|
117
117
|
return parts.length ? `?${parts.join("&")}` : "";
|
|
118
118
|
}
|
|
119
|
+
function moneyString(v) {
|
|
120
|
+
if (typeof v === "number" && Number.isFinite(v)) return v.toFixed(2);
|
|
121
|
+
return typeof v === "string" && v ? v : void 0;
|
|
122
|
+
}
|
|
123
|
+
function withOffsetFields(p) {
|
|
124
|
+
if (!p || typeof p !== "object") return p;
|
|
125
|
+
const offset = moneyString(p["offset_float_usd"]);
|
|
126
|
+
const before = moneyString(p["amount_before_offset_usd"]);
|
|
127
|
+
if (offset === void 0 && before === void 0) return p;
|
|
128
|
+
const out = { ...p };
|
|
129
|
+
if (offset !== void 0) out.offsetFloatUsd = offset;
|
|
130
|
+
if (before !== void 0) out.amountBeforeOffsetUsd = before;
|
|
131
|
+
return out;
|
|
132
|
+
}
|
|
119
133
|
function payeePath(payeeId) {
|
|
120
134
|
return `/api/partner-payees/${encodeURIComponent(requireText("payeeId", payeeId))}`;
|
|
121
135
|
}
|
|
@@ -241,7 +255,7 @@ var PayoutsServer = class {
|
|
|
241
255
|
signal: opts?.signal
|
|
242
256
|
});
|
|
243
257
|
return {
|
|
244
|
-
payout: raw["payout_request"],
|
|
258
|
+
payout: withOffsetFields(raw["payout_request"]),
|
|
245
259
|
duplicate: raw["duplicate"] === true,
|
|
246
260
|
raw
|
|
247
261
|
};
|
|
@@ -253,7 +267,7 @@ var PayoutsServer = class {
|
|
|
253
267
|
this.auth,
|
|
254
268
|
{ signal: opts?.signal }
|
|
255
269
|
);
|
|
256
|
-
return raw["payout_request"];
|
|
270
|
+
return withOffsetFields(raw["payout_request"]);
|
|
257
271
|
}
|
|
258
272
|
/** Your payouts (`GET /api/partner-payouts`), optionally one creator's (`payeeId`). */
|
|
259
273
|
async listPayouts(q = {}, opts) {
|
|
@@ -262,7 +276,7 @@ var PayoutsServer = class {
|
|
|
262
276
|
this.auth,
|
|
263
277
|
{ signal: opts?.signal }
|
|
264
278
|
);
|
|
265
|
-
return { total: Number(raw["total"] ?? 0), items: raw["items"] ?? [], raw };
|
|
279
|
+
return { total: Number(raw["total"] ?? 0), items: (raw["items"] ?? []).map((p) => withOffsetFields(p)), raw };
|
|
266
280
|
}
|
|
267
281
|
/**
|
|
268
282
|
* Cancel a creator payout that is still `requested`
|
|
@@ -276,7 +290,7 @@ var PayoutsServer = class {
|
|
|
276
290
|
this.auth,
|
|
277
291
|
{ signal: opts?.signal }
|
|
278
292
|
);
|
|
279
|
-
return raw["payout_request"] ?? raw["payout"];
|
|
293
|
+
return withOffsetFields(raw["payout_request"] ?? raw["payout"]);
|
|
280
294
|
}
|
|
281
295
|
};
|
|
282
296
|
|
|
@@ -4104,5 +4118,5 @@ var InvoServer = class {
|
|
|
4104
4118
|
};
|
|
4105
4119
|
|
|
4106
4120
|
export { APPLE_FINISH_ERROR_CODES, CardsServer, DEMO_KEY_PREFIX, EnvironmentUnknownError, InvoServer, KeyEnvironmentMismatchError, LIVE_KEY_PREFIX, PRODUCTION_BASE_URL, PayoutsServer, PlatformCommerceServer, SANDBOX_BASE_URL, SandboxServer, SandboxSubscriptionsServer, SubscriptionsServer, TEST_KEY_PREFIX, assertKeyMatchesBaseUrl, assertKeyMatchesEnvironment, baseUrlForKey, createWebhookHandler, environmentForBaseUrl, environmentFromKeyPrefix, isAppleCreditPending, isDemoKey, isRefundPendingApproval, resolveEnvironment, shouldFinishAppleTransaction, verifyInvoSignature, verifyWebhook, verifyWebhookAsync };
|
|
4107
|
-
//# sourceMappingURL=chunk-
|
|
4108
|
-
//# sourceMappingURL=chunk-
|
|
4121
|
+
//# sourceMappingURL=chunk-ZHEQAZLW.js.map
|
|
4122
|
+
//# sourceMappingURL=chunk-ZHEQAZLW.js.map
|
package/dist/game-server.cjs
CHANGED
|
@@ -509,6 +509,27 @@ var InvoError = class _InvoError extends Error {
|
|
|
509
509
|
get isPartnerRailSuspended() {
|
|
510
510
|
return this.code === "PARTNER_RAIL_SUSPENDED";
|
|
511
511
|
}
|
|
512
|
+
/** A payout or withdrawal was refused because the billing account owes INVO more for
|
|
513
|
+
* Steam or Apple coins than this payout can settle (`FLOAT_DEBT_OUTSTANDING`, 409;
|
|
514
|
+
* additive, 3.37.0). Nothing was created. {@link floatDebtUsd} is what is owed; the
|
|
515
|
+
* message is safe to show the account owner. Ask for a larger amount, or retry once the
|
|
516
|
+
* card on file has been charged. */
|
|
517
|
+
get isFloatDebtOutstanding() {
|
|
518
|
+
return this.code === "FLOAT_DEBT_OUTSTANDING";
|
|
519
|
+
}
|
|
520
|
+
/** On `FLOAT_DEBT_OUTSTANDING`: what the billing account owes (`float_debt_usd`), USD
|
|
521
|
+
* decimal string, for example `"95.00"`. `undefined` when the body does not carry it. */
|
|
522
|
+
get floatDebtUsd() {
|
|
523
|
+
const v = this.bodyObject()["float_debt_usd"];
|
|
524
|
+
if (typeof v === "number" && Number.isFinite(v)) return v.toFixed(2);
|
|
525
|
+
return typeof v === "string" && v ? v : void 0;
|
|
526
|
+
}
|
|
527
|
+
/** The billing account could not be checked, so the payout or withdrawal was not created
|
|
528
|
+
* (`FLOAT_CHECK_UNAVAILABLE`, 503, `retryable: true`; additive, 3.37.0). Nothing was
|
|
529
|
+
* changed. Retry with the same idempotency key. */
|
|
530
|
+
get isFloatCheckUnavailable() {
|
|
531
|
+
return this.code === "FLOAT_CHECK_UNAVAILABLE";
|
|
532
|
+
}
|
|
512
533
|
/** True when INVO has paused new payments on the developer account
|
|
513
534
|
* (`PAYMENTS_PAUSED`, 403; additive, 3.32.0). Every call that starts a payment returns it:
|
|
514
535
|
* coin purchase, checkout session, Platform Commerce card purchase, new
|
|
@@ -1995,7 +2016,7 @@ function toPhoneChangeRequest(raw) {
|
|
|
1995
2016
|
}
|
|
1996
2017
|
|
|
1997
2018
|
// src/version.ts
|
|
1998
|
-
var SDK_VERSION = "3.
|
|
2019
|
+
var SDK_VERSION = "3.37.0";
|
|
1999
2020
|
|
|
2000
2021
|
// src/payouts.ts
|
|
2001
2022
|
var AMOUNT = /^\d+(\.\d{1,2})?$/;
|
|
@@ -2025,6 +2046,20 @@ function query(params) {
|
|
|
2025
2046
|
}
|
|
2026
2047
|
return parts.length ? `?${parts.join("&")}` : "";
|
|
2027
2048
|
}
|
|
2049
|
+
function moneyString(v) {
|
|
2050
|
+
if (typeof v === "number" && Number.isFinite(v)) return v.toFixed(2);
|
|
2051
|
+
return typeof v === "string" && v ? v : void 0;
|
|
2052
|
+
}
|
|
2053
|
+
function withOffsetFields(p) {
|
|
2054
|
+
if (!p || typeof p !== "object") return p;
|
|
2055
|
+
const offset = moneyString(p["offset_float_usd"]);
|
|
2056
|
+
const before = moneyString(p["amount_before_offset_usd"]);
|
|
2057
|
+
if (offset === void 0 && before === void 0) return p;
|
|
2058
|
+
const out = { ...p };
|
|
2059
|
+
if (offset !== void 0) out.offsetFloatUsd = offset;
|
|
2060
|
+
if (before !== void 0) out.amountBeforeOffsetUsd = before;
|
|
2061
|
+
return out;
|
|
2062
|
+
}
|
|
2028
2063
|
function payeePath(payeeId) {
|
|
2029
2064
|
return `/api/partner-payees/${encodeURIComponent(requireText("payeeId", payeeId))}`;
|
|
2030
2065
|
}
|
|
@@ -2150,7 +2185,7 @@ var PayoutsServer = class {
|
|
|
2150
2185
|
signal: opts?.signal
|
|
2151
2186
|
});
|
|
2152
2187
|
return {
|
|
2153
|
-
payout: raw["payout_request"],
|
|
2188
|
+
payout: withOffsetFields(raw["payout_request"]),
|
|
2154
2189
|
duplicate: raw["duplicate"] === true,
|
|
2155
2190
|
raw
|
|
2156
2191
|
};
|
|
@@ -2162,7 +2197,7 @@ var PayoutsServer = class {
|
|
|
2162
2197
|
this.auth,
|
|
2163
2198
|
{ signal: opts?.signal }
|
|
2164
2199
|
);
|
|
2165
|
-
return raw["payout_request"];
|
|
2200
|
+
return withOffsetFields(raw["payout_request"]);
|
|
2166
2201
|
}
|
|
2167
2202
|
/** Your payouts (`GET /api/partner-payouts`), optionally one creator's (`payeeId`). */
|
|
2168
2203
|
async listPayouts(q = {}, opts) {
|
|
@@ -2171,7 +2206,7 @@ var PayoutsServer = class {
|
|
|
2171
2206
|
this.auth,
|
|
2172
2207
|
{ signal: opts?.signal }
|
|
2173
2208
|
);
|
|
2174
|
-
return { total: Number(raw["total"] ?? 0), items: raw["items"] ?? [], raw };
|
|
2209
|
+
return { total: Number(raw["total"] ?? 0), items: (raw["items"] ?? []).map((p) => withOffsetFields(p)), raw };
|
|
2175
2210
|
}
|
|
2176
2211
|
/**
|
|
2177
2212
|
* Cancel a creator payout that is still `requested`
|
|
@@ -2185,7 +2220,7 @@ var PayoutsServer = class {
|
|
|
2185
2220
|
this.auth,
|
|
2186
2221
|
{ signal: opts?.signal }
|
|
2187
2222
|
);
|
|
2188
|
-
return raw["payout_request"] ?? raw["payout"];
|
|
2223
|
+
return withOffsetFields(raw["payout_request"] ?? raw["payout"]);
|
|
2189
2224
|
}
|
|
2190
2225
|
};
|
|
2191
2226
|
var DEFAULT_TOLERANCE_SEC = 300;
|
package/dist/game-server.d.cts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { I as InvoServer, a as InvoEnvironment } from './server-
|
|
2
|
-
export { D as DEMO_KEY_PREFIX, E as EnvironmentUnknownError, K as KeyEnvironmentMismatchError, L as LIVE_KEY_PREFIX, P as PRODUCTION_BASE_URL, S as SANDBOX_BASE_URL, T as TEST_KEY_PREFIX, b as baseUrlForKey, e as environmentForBaseUrl, c as environmentFromKeyPrefix, i as isDemoKey, r as resolveEnvironment, v as verifyInvoSignature } from './server-
|
|
1
|
+
import { I as InvoServer, a as InvoEnvironment } from './server-B9PtYZaM.cjs';
|
|
2
|
+
export { D as DEMO_KEY_PREFIX, E as EnvironmentUnknownError, K as KeyEnvironmentMismatchError, L as LIVE_KEY_PREFIX, P as PRODUCTION_BASE_URL, S as SANDBOX_BASE_URL, T as TEST_KEY_PREFIX, b as baseUrlForKey, e as environmentForBaseUrl, c as environmentFromKeyPrefix, i as isDemoKey, r as resolveEnvironment, v as verifyInvoSignature } from './server-B9PtYZaM.cjs';
|
|
3
3
|
import { G as GameCurrencyKind, a as GamePurchaseStatus, b as GameEconomyConfig } from './types-jUxfYjiD.cjs';
|
|
4
4
|
export { c as GameCatalog, d as GameCatalogItem, e as GameCheckout, f as GameCurrencyBalance, g as GameErrorBody, h as GameItemPurchase, i as GamePlayer, j as GamePremiumPack, k as GamePurchase, l as GameSession, m as GameTransferInput, n as GameTransferKind, o as GameTransferStart, p as GameTransferStatus, q as GameWallet } from './types-jUxfYjiD.cjs';
|
|
5
|
-
export { I as InvoError } from './types-
|
|
6
|
-
export { S as SDK_VERSION } from './version-
|
|
5
|
+
export { I as InvoError } from './types-BdKpJX93.cjs';
|
|
6
|
+
export { S as SDK_VERSION } from './version-CuhMO-6s.cjs';
|
|
7
7
|
import './loyalty-events-CmDw2ZoR.cjs';
|
|
8
8
|
|
|
9
9
|
interface StoredPlayer {
|
package/dist/game-server.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { I as InvoServer, a as InvoEnvironment } from './server-
|
|
2
|
-
export { D as DEMO_KEY_PREFIX, E as EnvironmentUnknownError, K as KeyEnvironmentMismatchError, L as LIVE_KEY_PREFIX, P as PRODUCTION_BASE_URL, S as SANDBOX_BASE_URL, T as TEST_KEY_PREFIX, b as baseUrlForKey, e as environmentForBaseUrl, c as environmentFromKeyPrefix, i as isDemoKey, r as resolveEnvironment, v as verifyInvoSignature } from './server-
|
|
1
|
+
import { I as InvoServer, a as InvoEnvironment } from './server-B7Pw1HMp.js';
|
|
2
|
+
export { D as DEMO_KEY_PREFIX, E as EnvironmentUnknownError, K as KeyEnvironmentMismatchError, L as LIVE_KEY_PREFIX, P as PRODUCTION_BASE_URL, S as SANDBOX_BASE_URL, T as TEST_KEY_PREFIX, b as baseUrlForKey, e as environmentForBaseUrl, c as environmentFromKeyPrefix, i as isDemoKey, r as resolveEnvironment, v as verifyInvoSignature } from './server-B7Pw1HMp.js';
|
|
3
3
|
import { G as GameCurrencyKind, a as GamePurchaseStatus, b as GameEconomyConfig } from './types-jUxfYjiD.js';
|
|
4
4
|
export { c as GameCatalog, d as GameCatalogItem, e as GameCheckout, f as GameCurrencyBalance, g as GameErrorBody, h as GameItemPurchase, i as GamePlayer, j as GamePremiumPack, k as GamePurchase, l as GameSession, m as GameTransferInput, n as GameTransferKind, o as GameTransferStart, p as GameTransferStatus, q as GameWallet } from './types-jUxfYjiD.js';
|
|
5
|
-
export { I as InvoError } from './types-
|
|
6
|
-
export { S as SDK_VERSION } from './version-
|
|
5
|
+
export { I as InvoError } from './types-BdKpJX93.js';
|
|
6
|
+
export { S as SDK_VERSION } from './version-CuhMO-6s.js';
|
|
7
7
|
import './loyalty-events-CmDw2ZoR.js';
|
|
8
8
|
|
|
9
9
|
interface StoredPlayer {
|
package/dist/game-server.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { isDemoKey, SANDBOX_BASE_URL, environmentFromKeyPrefix, assertKeyMatchesEnvironment, assertKeyMatchesBaseUrl, PRODUCTION_BASE_URL, InvoServer, resolveEnvironment, verifyWebhook } from './chunk-
|
|
2
|
-
export { DEMO_KEY_PREFIX, EnvironmentUnknownError, InvoServer, KeyEnvironmentMismatchError, LIVE_KEY_PREFIX, PRODUCTION_BASE_URL, SANDBOX_BASE_URL, TEST_KEY_PREFIX, baseUrlForKey, environmentForBaseUrl, environmentFromKeyPrefix, isDemoKey, resolveEnvironment, verifyInvoSignature } from './chunk-
|
|
3
|
-
export { SDK_VERSION } from './chunk-
|
|
4
|
-
import { InvoError } from './chunk-
|
|
5
|
-
export { InvoError } from './chunk-
|
|
1
|
+
import { isDemoKey, SANDBOX_BASE_URL, environmentFromKeyPrefix, assertKeyMatchesEnvironment, assertKeyMatchesBaseUrl, PRODUCTION_BASE_URL, InvoServer, resolveEnvironment, verifyWebhook } from './chunk-ZHEQAZLW.js';
|
|
2
|
+
export { DEMO_KEY_PREFIX, EnvironmentUnknownError, InvoServer, KeyEnvironmentMismatchError, LIVE_KEY_PREFIX, PRODUCTION_BASE_URL, SANDBOX_BASE_URL, TEST_KEY_PREFIX, baseUrlForKey, environmentForBaseUrl, environmentFromKeyPrefix, isDemoKey, resolveEnvironment, verifyInvoSignature } from './chunk-ZHEQAZLW.js';
|
|
3
|
+
export { SDK_VERSION } from './chunk-MENRG67H.js';
|
|
4
|
+
import { InvoError } from './chunk-KWAUFFDY.js';
|
|
5
|
+
export { InvoError } from './chunk-KWAUFFDY.js';
|
|
6
6
|
import { createHash, randomBytes } from 'crypto';
|
|
7
7
|
import { promises, readFileSync, mkdirSync, writeFileSync } from 'fs';
|
|
8
8
|
import * as path from 'path';
|
package/dist/game.cjs
CHANGED
|
@@ -337,6 +337,27 @@ var InvoError = class _InvoError extends Error {
|
|
|
337
337
|
get isPartnerRailSuspended() {
|
|
338
338
|
return this.code === "PARTNER_RAIL_SUSPENDED";
|
|
339
339
|
}
|
|
340
|
+
/** A payout or withdrawal was refused because the billing account owes INVO more for
|
|
341
|
+
* Steam or Apple coins than this payout can settle (`FLOAT_DEBT_OUTSTANDING`, 409;
|
|
342
|
+
* additive, 3.37.0). Nothing was created. {@link floatDebtUsd} is what is owed; the
|
|
343
|
+
* message is safe to show the account owner. Ask for a larger amount, or retry once the
|
|
344
|
+
* card on file has been charged. */
|
|
345
|
+
get isFloatDebtOutstanding() {
|
|
346
|
+
return this.code === "FLOAT_DEBT_OUTSTANDING";
|
|
347
|
+
}
|
|
348
|
+
/** On `FLOAT_DEBT_OUTSTANDING`: what the billing account owes (`float_debt_usd`), USD
|
|
349
|
+
* decimal string, for example `"95.00"`. `undefined` when the body does not carry it. */
|
|
350
|
+
get floatDebtUsd() {
|
|
351
|
+
const v = this.bodyObject()["float_debt_usd"];
|
|
352
|
+
if (typeof v === "number" && Number.isFinite(v)) return v.toFixed(2);
|
|
353
|
+
return typeof v === "string" && v ? v : void 0;
|
|
354
|
+
}
|
|
355
|
+
/** The billing account could not be checked, so the payout or withdrawal was not created
|
|
356
|
+
* (`FLOAT_CHECK_UNAVAILABLE`, 503, `retryable: true`; additive, 3.37.0). Nothing was
|
|
357
|
+
* changed. Retry with the same idempotency key. */
|
|
358
|
+
get isFloatCheckUnavailable() {
|
|
359
|
+
return this.code === "FLOAT_CHECK_UNAVAILABLE";
|
|
360
|
+
}
|
|
340
361
|
/** True when INVO has paused new payments on the developer account
|
|
341
362
|
* (`PAYMENTS_PAUSED`, 403; additive, 3.32.0). Every call that starts a payment returns it:
|
|
342
363
|
* coin purchase, checkout session, Platform Commerce card purchase, new
|
|
@@ -4996,7 +5017,7 @@ function mountInvoUI(container, economy, options = {}) {
|
|
|
4996
5017
|
}
|
|
4997
5018
|
|
|
4998
5019
|
// src/version.ts
|
|
4999
|
-
var SDK_VERSION = "3.
|
|
5020
|
+
var SDK_VERSION = "3.37.0";
|
|
5000
5021
|
|
|
5001
5022
|
exports.InvoGameEconomy = InvoGameEconomy;
|
|
5002
5023
|
exports.InvoGameError = InvoGameError;
|
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-DS9gcCF5.cjs';
|
|
4
|
+
import { D as DestinationGame, P as PendingCollectItem } from './types-BdKpJX93.cjs';
|
|
5
|
+
export { S as SDK_VERSION } from './version-CuhMO-6s.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-Dv462L4e.js';
|
|
4
|
+
import { D as DestinationGame, P as PendingCollectItem } from './types-BdKpJX93.js';
|
|
5
|
+
export { S as SDK_VERSION } from './version-CuhMO-6s.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-AUHRMREF.js';
|
|
2
|
+
export { SDK_VERSION } from './chunk-MENRG67H.js';
|
|
3
|
+
import { newEventId } from './chunk-KWAUFFDY.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-BdKpJX93.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-BdKpJX93.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
|
@@ -337,6 +337,27 @@ var InvoError = class _InvoError extends Error {
|
|
|
337
337
|
get isPartnerRailSuspended() {
|
|
338
338
|
return this.code === "PARTNER_RAIL_SUSPENDED";
|
|
339
339
|
}
|
|
340
|
+
/** A payout or withdrawal was refused because the billing account owes INVO more for
|
|
341
|
+
* Steam or Apple coins than this payout can settle (`FLOAT_DEBT_OUTSTANDING`, 409;
|
|
342
|
+
* additive, 3.37.0). Nothing was created. {@link floatDebtUsd} is what is owed; the
|
|
343
|
+
* message is safe to show the account owner. Ask for a larger amount, or retry once the
|
|
344
|
+
* card on file has been charged. */
|
|
345
|
+
get isFloatDebtOutstanding() {
|
|
346
|
+
return this.code === "FLOAT_DEBT_OUTSTANDING";
|
|
347
|
+
}
|
|
348
|
+
/** On `FLOAT_DEBT_OUTSTANDING`: what the billing account owes (`float_debt_usd`), USD
|
|
349
|
+
* decimal string, for example `"95.00"`. `undefined` when the body does not carry it. */
|
|
350
|
+
get floatDebtUsd() {
|
|
351
|
+
const v = this.bodyObject()["float_debt_usd"];
|
|
352
|
+
if (typeof v === "number" && Number.isFinite(v)) return v.toFixed(2);
|
|
353
|
+
return typeof v === "string" && v ? v : void 0;
|
|
354
|
+
}
|
|
355
|
+
/** The billing account could not be checked, so the payout or withdrawal was not created
|
|
356
|
+
* (`FLOAT_CHECK_UNAVAILABLE`, 503, `retryable: true`; additive, 3.37.0). Nothing was
|
|
357
|
+
* changed. Retry with the same idempotency key. */
|
|
358
|
+
get isFloatCheckUnavailable() {
|
|
359
|
+
return this.code === "FLOAT_CHECK_UNAVAILABLE";
|
|
360
|
+
}
|
|
340
361
|
/** True when INVO has paused new payments on the developer account
|
|
341
362
|
* (`PAYMENTS_PAUSED`, 403; additive, 3.32.0). Every call that starts a payment returns it:
|
|
342
363
|
* coin purchase, checkout session, Platform Commerce card purchase, new
|
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-BdKpJX93.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-BdKpJX93.cjs';
|
|
3
|
+
import { a as ApproveHostedOptions, A as ApproveHostedResult } from './hosted-approval-DS9gcCF5.cjs';
|
|
4
|
+
export { E as EnrollmentDecision, b as EnrollmentRespond, H as HostedApprovalStatus, c as HostedEnrollment, d as HostedEnrollmentInput, e as HostedFlow } from './hosted-approval-DS9gcCF5.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-BdKpJX93.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-BdKpJX93.js';
|
|
3
|
+
import { a as ApproveHostedOptions, A as ApproveHostedResult } from './hosted-approval-Dv462L4e.js';
|
|
4
|
+
export { E as EnrollmentDecision, b as EnrollmentRespond, H as HostedApprovalStatus, c as HostedEnrollment, d as HostedEnrollmentInput, e as HostedFlow } from './hosted-approval-Dv462L4e.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-AUHRMREF.js';
|
|
2
|
+
export { InvoError, isPurchaseCredited, isPurchaseExpired, isPurchaseRefunded, isPurchaseRefused, nothingWasCharged, phoneChangeSignalMessage } from './chunk-KWAUFFDY.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 ApplePurchaseResult, a1 as PlatformPurchaseInput, a2 as PlatformPurchaseResult, a3 as PlatformApprovalResult, a4 as PlatformOrderStatusResult, a5 as PlatformPurchaseHistoryQuery, a6 as PlatformPurchaseHistoryResult, a7 as PlatformRefundInput, a8 as PlatformRefundResult, a9 as CreateSubscriptionInput, aa as SubscriptionResult, ab as GetSubscriptionOptions, ac as GetSubscriptionResult, ad as ListSubscriptionsOptions, ae as SubscriptionListResult, af as CancelSubscriptionOptions, ag as CancelResult, ah as ChangeAmountResult, ai as SetPaymentMethodInput, aj as SetPaymentMethodResult, ak as RefundSubscriptionInput, al as RefundResult, am as SteamSubscriptionInitInput, an as SteamInitResult, ao as SteamFinalizeSubscriptionResult, ap as CardSetupSessionInput, aq as CardSetupSessionResult, ar as CardSetupInput, as as CardSetupResult, at as CardSetupConfirmInput, au as CardSetupConfirmResult, av as PlayerCardsResult, aw as SandboxClockResult, ax as SandboxFailureOutcome, ay as SandboxForceFailureOptions, az as SandboxForceAuthChallengeOptions, aA as ServerConfig, aB as MintPlayerTokenInput, aC as PlayerToken, aD as RegisterPlayerInput, aE as RegisterPlayerResult, aF as UpdatePlayerPhoneInput, aG as UpdatePlayerPhoneResult, aH as RequestPhoneChangeInput, aI as RequestPhoneChangeResult, aJ as PhoneChangeRequest, aK as InitiateSendInput, aL as InitiateResult, aM as InitiateTransferInput, aN as CreateCheckoutInput, aO as CreateCheckoutResult, a as PurchaseStatusResult, aP as PurchaseInput, aQ as PurchaseResult, aR as CurrencyPurchaseQuoteInput, aS as CurrencyPurchaseQuote, aT as ConfirmPaymentResult, aU as OrderDetailsResult, aV as SteamPacksQuery, aW as SteamPacksResult, aX as SteamInitPurchaseInput, aY as SteamInitPurchaseResult, aZ as SteamFinalizeInput, a_ as SteamFinalizeResult, a$ as AppleProductsResult, b0 as VerifyApplePurchaseInput, b1 as PurchaseItemInput, b2 as PurchaseItemResult, b3 as ItemHistoryQuery, b4 as ItemHistoryResult, b5 as ItemOrderQuery, b6 as PlayerActivityQuery, b7 as PlayerActivityResult, b8 as PlayerActivityEntry, b9 as PlayerBalanceQuery, ba as PlayerBalanceResult, q as LoyaltyCardsResult, bb as InboundPendingQuery, bc as InboundPendingResult, bd as LinkedIdentitiesQuery, be as LinkedIdentitiesResult, bf as SmsVerifyResult, bg as ClaimTransferInput, bh as ClaimResult, bi as ClaimCurrencyInput, bj as TransactionStatusResult, bk as GuardianApprovalStatusResult, bl as ServerDestinationsQuery, p as DestinationsResult, bm as PhoneShareContact, bn as PhoneShareInitiateResult, bo as PhoneShareApproveInput, bp as PhoneShareApproveResult, bq as PhoneShareStatusResult, br as BeginDeviceApprovalInput, bs as DeviceApprovalGrant, bt as PollDeviceApprovalInput, bu as DeviceApprovalPollResult, bv as ConfirmDeviceEnrollmentInput, bw as ConfirmDeviceEnrollmentResult, bx as ApproveWithDeviceCodeInput, by as DeviceApprovalSettleResult, bz as CompleteDeviceApprovalInput, bA as CompleteDeviceApprovalResult } from './types-
|
|
1
|
+
import { I as InvoError, H as Http, $ as AuthHeader, g as CallOptions, a0 as ApplePurchaseResult, a1 as PlatformPurchaseInput, a2 as PlatformPurchaseResult, a3 as PlatformApprovalResult, a4 as PlatformOrderStatusResult, a5 as PlatformPurchaseHistoryQuery, a6 as PlatformPurchaseHistoryResult, a7 as PlatformRefundInput, a8 as PlatformRefundResult, a9 as CreateSubscriptionInput, aa as SubscriptionResult, ab as GetSubscriptionOptions, ac as GetSubscriptionResult, ad as ListSubscriptionsOptions, ae as SubscriptionListResult, af as CancelSubscriptionOptions, ag as CancelResult, ah as ChangeAmountResult, ai as SetPaymentMethodInput, aj as SetPaymentMethodResult, ak as RefundSubscriptionInput, al as RefundResult, am as SteamSubscriptionInitInput, an as SteamInitResult, ao as SteamFinalizeSubscriptionResult, ap as CardSetupSessionInput, aq as CardSetupSessionResult, ar as CardSetupInput, as as CardSetupResult, at as CardSetupConfirmInput, au as CardSetupConfirmResult, av as PlayerCardsResult, aw as SandboxClockResult, ax as SandboxFailureOutcome, ay as SandboxForceFailureOptions, az as SandboxForceAuthChallengeOptions, aA as ServerConfig, aB as MintPlayerTokenInput, aC as PlayerToken, aD as RegisterPlayerInput, aE as RegisterPlayerResult, aF as UpdatePlayerPhoneInput, aG as UpdatePlayerPhoneResult, aH as RequestPhoneChangeInput, aI as RequestPhoneChangeResult, aJ as PhoneChangeRequest, aK as InitiateSendInput, aL as InitiateResult, aM as InitiateTransferInput, aN as CreateCheckoutInput, aO as CreateCheckoutResult, a as PurchaseStatusResult, aP as PurchaseInput, aQ as PurchaseResult, aR as CurrencyPurchaseQuoteInput, aS as CurrencyPurchaseQuote, aT as ConfirmPaymentResult, aU as OrderDetailsResult, aV as SteamPacksQuery, aW as SteamPacksResult, aX as SteamInitPurchaseInput, aY as SteamInitPurchaseResult, aZ as SteamFinalizeInput, a_ as SteamFinalizeResult, a$ as AppleProductsResult, b0 as VerifyApplePurchaseInput, b1 as PurchaseItemInput, b2 as PurchaseItemResult, b3 as ItemHistoryQuery, b4 as ItemHistoryResult, b5 as ItemOrderQuery, b6 as PlayerActivityQuery, b7 as PlayerActivityResult, b8 as PlayerActivityEntry, b9 as PlayerBalanceQuery, ba as PlayerBalanceResult, q as LoyaltyCardsResult, bb as InboundPendingQuery, bc as InboundPendingResult, bd as LinkedIdentitiesQuery, be as LinkedIdentitiesResult, bf as SmsVerifyResult, bg as ClaimTransferInput, bh as ClaimResult, bi as ClaimCurrencyInput, bj as TransactionStatusResult, bk as GuardianApprovalStatusResult, bl as ServerDestinationsQuery, p as DestinationsResult, bm as PhoneShareContact, bn as PhoneShareInitiateResult, bo as PhoneShareApproveInput, bp as PhoneShareApproveResult, bq as PhoneShareStatusResult, br as BeginDeviceApprovalInput, bs as DeviceApprovalGrant, bt as PollDeviceApprovalInput, bu as DeviceApprovalPollResult, bv as ConfirmDeviceEnrollmentInput, bw as ConfirmDeviceEnrollmentResult, bx as ApproveWithDeviceCodeInput, by as DeviceApprovalSettleResult, bz as CompleteDeviceApprovalInput, bA as CompleteDeviceApprovalResult } from './types-BdKpJX93.js';
|
|
2
2
|
import { b as ReportServerGameEventInput, a as ReportGameEventResult } from './loyalty-events-CmDw2ZoR.js';
|
|
3
|
-
import './version-
|
|
3
|
+
import './version-CuhMO-6s.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Pick the INVO environment from the game secret alone (3.28.0).
|
|
@@ -469,6 +469,14 @@ interface PayoutStatusChangedData {
|
|
|
469
469
|
partner_message?: string | null;
|
|
470
470
|
/** Additive (3.26.0). The payout waits for the account owner's confirmation in the console. */
|
|
471
471
|
owner_confirmation_required?: boolean;
|
|
472
|
+
/**
|
|
473
|
+
* Additive (3.37.0). Present only when part of the amount asked for settled what your
|
|
474
|
+
* billing account owes INVO for Steam or Apple coins: the amount settled.
|
|
475
|
+
* `requested_amount_usd` is then the cash part.
|
|
476
|
+
*/
|
|
477
|
+
offset_float_usd?: string;
|
|
478
|
+
/** Additive (3.37.0). Present with `offset_float_usd`: the amount asked for. */
|
|
479
|
+
amount_before_offset_usd?: string;
|
|
472
480
|
[key: string]: unknown;
|
|
473
481
|
}
|
|
474
482
|
/** Creator statuses (3.25.0). */
|
|
@@ -1142,6 +1150,19 @@ interface Payout {
|
|
|
1142
1150
|
owner_confirmation_required?: boolean;
|
|
1143
1151
|
owner_confirmed_at?: string | null;
|
|
1144
1152
|
created_at?: string | null;
|
|
1153
|
+
/**
|
|
1154
|
+
* 3.37.0. Present only when part of the amount asked for settled what your billing account
|
|
1155
|
+
* owes INVO for Steam or Apple coins: the amount settled, decimal string (USD).
|
|
1156
|
+
* `requested_amount_usd` is then the cash part. Absent (never `"0.00"`) when nothing was
|
|
1157
|
+
* settled.
|
|
1158
|
+
*/
|
|
1159
|
+
offset_float_usd?: string;
|
|
1160
|
+
/** 3.37.0. Present with `offset_float_usd`: the amount you asked for (cash part plus `offset_float_usd`). */
|
|
1161
|
+
amount_before_offset_usd?: string;
|
|
1162
|
+
/** 3.37.0. `offset_float_usd`, mapped by the SDK, only when the payout carries it. */
|
|
1163
|
+
offsetFloatUsd?: string;
|
|
1164
|
+
/** 3.37.0. `amount_before_offset_usd`, mapped by the SDK, only when the payout carries it. */
|
|
1165
|
+
amountBeforeOffsetUsd?: string;
|
|
1145
1166
|
[key: string]: unknown;
|
|
1146
1167
|
}
|
|
1147
1168
|
interface RequestPayoutInput {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { I as InvoError, H as Http, $ as AuthHeader, g as CallOptions, a0 as ApplePurchaseResult, a1 as PlatformPurchaseInput, a2 as PlatformPurchaseResult, a3 as PlatformApprovalResult, a4 as PlatformOrderStatusResult, a5 as PlatformPurchaseHistoryQuery, a6 as PlatformPurchaseHistoryResult, a7 as PlatformRefundInput, a8 as PlatformRefundResult, a9 as CreateSubscriptionInput, aa as SubscriptionResult, ab as GetSubscriptionOptions, ac as GetSubscriptionResult, ad as ListSubscriptionsOptions, ae as SubscriptionListResult, af as CancelSubscriptionOptions, ag as CancelResult, ah as ChangeAmountResult, ai as SetPaymentMethodInput, aj as SetPaymentMethodResult, ak as RefundSubscriptionInput, al as RefundResult, am as SteamSubscriptionInitInput, an as SteamInitResult, ao as SteamFinalizeSubscriptionResult, ap as CardSetupSessionInput, aq as CardSetupSessionResult, ar as CardSetupInput, as as CardSetupResult, at as CardSetupConfirmInput, au as CardSetupConfirmResult, av as PlayerCardsResult, aw as SandboxClockResult, ax as SandboxFailureOutcome, ay as SandboxForceFailureOptions, az as SandboxForceAuthChallengeOptions, aA as ServerConfig, aB as MintPlayerTokenInput, aC as PlayerToken, aD as RegisterPlayerInput, aE as RegisterPlayerResult, aF as UpdatePlayerPhoneInput, aG as UpdatePlayerPhoneResult, aH as RequestPhoneChangeInput, aI as RequestPhoneChangeResult, aJ as PhoneChangeRequest, aK as InitiateSendInput, aL as InitiateResult, aM as InitiateTransferInput, aN as CreateCheckoutInput, aO as CreateCheckoutResult, a as PurchaseStatusResult, aP as PurchaseInput, aQ as PurchaseResult, aR as CurrencyPurchaseQuoteInput, aS as CurrencyPurchaseQuote, aT as ConfirmPaymentResult, aU as OrderDetailsResult, aV as SteamPacksQuery, aW as SteamPacksResult, aX as SteamInitPurchaseInput, aY as SteamInitPurchaseResult, aZ as SteamFinalizeInput, a_ as SteamFinalizeResult, a$ as AppleProductsResult, b0 as VerifyApplePurchaseInput, b1 as PurchaseItemInput, b2 as PurchaseItemResult, b3 as ItemHistoryQuery, b4 as ItemHistoryResult, b5 as ItemOrderQuery, b6 as PlayerActivityQuery, b7 as PlayerActivityResult, b8 as PlayerActivityEntry, b9 as PlayerBalanceQuery, ba as PlayerBalanceResult, q as LoyaltyCardsResult, bb as InboundPendingQuery, bc as InboundPendingResult, bd as LinkedIdentitiesQuery, be as LinkedIdentitiesResult, bf as SmsVerifyResult, bg as ClaimTransferInput, bh as ClaimResult, bi as ClaimCurrencyInput, bj as TransactionStatusResult, bk as GuardianApprovalStatusResult, bl as ServerDestinationsQuery, p as DestinationsResult, bm as PhoneShareContact, bn as PhoneShareInitiateResult, bo as PhoneShareApproveInput, bp as PhoneShareApproveResult, bq as PhoneShareStatusResult, br as BeginDeviceApprovalInput, bs as DeviceApprovalGrant, bt as PollDeviceApprovalInput, bu as DeviceApprovalPollResult, bv as ConfirmDeviceEnrollmentInput, bw as ConfirmDeviceEnrollmentResult, bx as ApproveWithDeviceCodeInput, by as DeviceApprovalSettleResult, bz as CompleteDeviceApprovalInput, bA as CompleteDeviceApprovalResult } from './types-
|
|
1
|
+
import { I as InvoError, H as Http, $ as AuthHeader, g as CallOptions, a0 as ApplePurchaseResult, a1 as PlatformPurchaseInput, a2 as PlatformPurchaseResult, a3 as PlatformApprovalResult, a4 as PlatformOrderStatusResult, a5 as PlatformPurchaseHistoryQuery, a6 as PlatformPurchaseHistoryResult, a7 as PlatformRefundInput, a8 as PlatformRefundResult, a9 as CreateSubscriptionInput, aa as SubscriptionResult, ab as GetSubscriptionOptions, ac as GetSubscriptionResult, ad as ListSubscriptionsOptions, ae as SubscriptionListResult, af as CancelSubscriptionOptions, ag as CancelResult, ah as ChangeAmountResult, ai as SetPaymentMethodInput, aj as SetPaymentMethodResult, ak as RefundSubscriptionInput, al as RefundResult, am as SteamSubscriptionInitInput, an as SteamInitResult, ao as SteamFinalizeSubscriptionResult, ap as CardSetupSessionInput, aq as CardSetupSessionResult, ar as CardSetupInput, as as CardSetupResult, at as CardSetupConfirmInput, au as CardSetupConfirmResult, av as PlayerCardsResult, aw as SandboxClockResult, ax as SandboxFailureOutcome, ay as SandboxForceFailureOptions, az as SandboxForceAuthChallengeOptions, aA as ServerConfig, aB as MintPlayerTokenInput, aC as PlayerToken, aD as RegisterPlayerInput, aE as RegisterPlayerResult, aF as UpdatePlayerPhoneInput, aG as UpdatePlayerPhoneResult, aH as RequestPhoneChangeInput, aI as RequestPhoneChangeResult, aJ as PhoneChangeRequest, aK as InitiateSendInput, aL as InitiateResult, aM as InitiateTransferInput, aN as CreateCheckoutInput, aO as CreateCheckoutResult, a as PurchaseStatusResult, aP as PurchaseInput, aQ as PurchaseResult, aR as CurrencyPurchaseQuoteInput, aS as CurrencyPurchaseQuote, aT as ConfirmPaymentResult, aU as OrderDetailsResult, aV as SteamPacksQuery, aW as SteamPacksResult, aX as SteamInitPurchaseInput, aY as SteamInitPurchaseResult, aZ as SteamFinalizeInput, a_ as SteamFinalizeResult, a$ as AppleProductsResult, b0 as VerifyApplePurchaseInput, b1 as PurchaseItemInput, b2 as PurchaseItemResult, b3 as ItemHistoryQuery, b4 as ItemHistoryResult, b5 as ItemOrderQuery, b6 as PlayerActivityQuery, b7 as PlayerActivityResult, b8 as PlayerActivityEntry, b9 as PlayerBalanceQuery, ba as PlayerBalanceResult, q as LoyaltyCardsResult, bb as InboundPendingQuery, bc as InboundPendingResult, bd as LinkedIdentitiesQuery, be as LinkedIdentitiesResult, bf as SmsVerifyResult, bg as ClaimTransferInput, bh as ClaimResult, bi as ClaimCurrencyInput, bj as TransactionStatusResult, bk as GuardianApprovalStatusResult, bl as ServerDestinationsQuery, p as DestinationsResult, bm as PhoneShareContact, bn as PhoneShareInitiateResult, bo as PhoneShareApproveInput, bp as PhoneShareApproveResult, bq as PhoneShareStatusResult, br as BeginDeviceApprovalInput, bs as DeviceApprovalGrant, bt as PollDeviceApprovalInput, bu as DeviceApprovalPollResult, bv as ConfirmDeviceEnrollmentInput, bw as ConfirmDeviceEnrollmentResult, bx as ApproveWithDeviceCodeInput, by as DeviceApprovalSettleResult, bz as CompleteDeviceApprovalInput, bA as CompleteDeviceApprovalResult } from './types-BdKpJX93.cjs';
|
|
2
2
|
import { b as ReportServerGameEventInput, a as ReportGameEventResult } from './loyalty-events-CmDw2ZoR.cjs';
|
|
3
|
-
import './version-
|
|
3
|
+
import './version-CuhMO-6s.cjs';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Pick the INVO environment from the game secret alone (3.28.0).
|
|
@@ -469,6 +469,14 @@ interface PayoutStatusChangedData {
|
|
|
469
469
|
partner_message?: string | null;
|
|
470
470
|
/** Additive (3.26.0). The payout waits for the account owner's confirmation in the console. */
|
|
471
471
|
owner_confirmation_required?: boolean;
|
|
472
|
+
/**
|
|
473
|
+
* Additive (3.37.0). Present only when part of the amount asked for settled what your
|
|
474
|
+
* billing account owes INVO for Steam or Apple coins: the amount settled.
|
|
475
|
+
* `requested_amount_usd` is then the cash part.
|
|
476
|
+
*/
|
|
477
|
+
offset_float_usd?: string;
|
|
478
|
+
/** Additive (3.37.0). Present with `offset_float_usd`: the amount asked for. */
|
|
479
|
+
amount_before_offset_usd?: string;
|
|
472
480
|
[key: string]: unknown;
|
|
473
481
|
}
|
|
474
482
|
/** Creator statuses (3.25.0). */
|
|
@@ -1142,6 +1150,19 @@ interface Payout {
|
|
|
1142
1150
|
owner_confirmation_required?: boolean;
|
|
1143
1151
|
owner_confirmed_at?: string | null;
|
|
1144
1152
|
created_at?: string | null;
|
|
1153
|
+
/**
|
|
1154
|
+
* 3.37.0. Present only when part of the amount asked for settled what your billing account
|
|
1155
|
+
* owes INVO for Steam or Apple coins: the amount settled, decimal string (USD).
|
|
1156
|
+
* `requested_amount_usd` is then the cash part. Absent (never `"0.00"`) when nothing was
|
|
1157
|
+
* settled.
|
|
1158
|
+
*/
|
|
1159
|
+
offset_float_usd?: string;
|
|
1160
|
+
/** 3.37.0. Present with `offset_float_usd`: the amount you asked for (cash part plus `offset_float_usd`). */
|
|
1161
|
+
amount_before_offset_usd?: string;
|
|
1162
|
+
/** 3.37.0. `offset_float_usd`, mapped by the SDK, only when the payout carries it. */
|
|
1163
|
+
offsetFloatUsd?: string;
|
|
1164
|
+
/** 3.37.0. `amount_before_offset_usd`, mapped by the SDK, only when the payout carries it. */
|
|
1165
|
+
amountBeforeOffsetUsd?: string;
|
|
1145
1166
|
[key: string]: unknown;
|
|
1146
1167
|
}
|
|
1147
1168
|
interface RequestPayoutInput {
|
package/dist/server.cjs
CHANGED
|
@@ -339,6 +339,27 @@ var InvoError = class _InvoError extends Error {
|
|
|
339
339
|
get isPartnerRailSuspended() {
|
|
340
340
|
return this.code === "PARTNER_RAIL_SUSPENDED";
|
|
341
341
|
}
|
|
342
|
+
/** A payout or withdrawal was refused because the billing account owes INVO more for
|
|
343
|
+
* Steam or Apple coins than this payout can settle (`FLOAT_DEBT_OUTSTANDING`, 409;
|
|
344
|
+
* additive, 3.37.0). Nothing was created. {@link floatDebtUsd} is what is owed; the
|
|
345
|
+
* message is safe to show the account owner. Ask for a larger amount, or retry once the
|
|
346
|
+
* card on file has been charged. */
|
|
347
|
+
get isFloatDebtOutstanding() {
|
|
348
|
+
return this.code === "FLOAT_DEBT_OUTSTANDING";
|
|
349
|
+
}
|
|
350
|
+
/** On `FLOAT_DEBT_OUTSTANDING`: what the billing account owes (`float_debt_usd`), USD
|
|
351
|
+
* decimal string, for example `"95.00"`. `undefined` when the body does not carry it. */
|
|
352
|
+
get floatDebtUsd() {
|
|
353
|
+
const v = this.bodyObject()["float_debt_usd"];
|
|
354
|
+
if (typeof v === "number" && Number.isFinite(v)) return v.toFixed(2);
|
|
355
|
+
return typeof v === "string" && v ? v : void 0;
|
|
356
|
+
}
|
|
357
|
+
/** The billing account could not be checked, so the payout or withdrawal was not created
|
|
358
|
+
* (`FLOAT_CHECK_UNAVAILABLE`, 503, `retryable: true`; additive, 3.37.0). Nothing was
|
|
359
|
+
* changed. Retry with the same idempotency key. */
|
|
360
|
+
get isFloatCheckUnavailable() {
|
|
361
|
+
return this.code === "FLOAT_CHECK_UNAVAILABLE";
|
|
362
|
+
}
|
|
342
363
|
/** True when INVO has paused new payments on the developer account
|
|
343
364
|
* (`PAYMENTS_PAUSED`, 403; additive, 3.32.0). Every call that starts a payment returns it:
|
|
344
365
|
* coin purchase, checkout session, Platform Commerce card purchase, new
|
|
@@ -1868,7 +1889,7 @@ function toPhoneChangeRequest(raw) {
|
|
|
1868
1889
|
}
|
|
1869
1890
|
|
|
1870
1891
|
// src/version.ts
|
|
1871
|
-
var SDK_VERSION = "3.
|
|
1892
|
+
var SDK_VERSION = "3.37.0";
|
|
1872
1893
|
|
|
1873
1894
|
// src/payouts.ts
|
|
1874
1895
|
var AMOUNT = /^\d+(\.\d{1,2})?$/;
|
|
@@ -1898,6 +1919,20 @@ function query(params) {
|
|
|
1898
1919
|
}
|
|
1899
1920
|
return parts.length ? `?${parts.join("&")}` : "";
|
|
1900
1921
|
}
|
|
1922
|
+
function moneyString(v) {
|
|
1923
|
+
if (typeof v === "number" && Number.isFinite(v)) return v.toFixed(2);
|
|
1924
|
+
return typeof v === "string" && v ? v : void 0;
|
|
1925
|
+
}
|
|
1926
|
+
function withOffsetFields(p) {
|
|
1927
|
+
if (!p || typeof p !== "object") return p;
|
|
1928
|
+
const offset = moneyString(p["offset_float_usd"]);
|
|
1929
|
+
const before = moneyString(p["amount_before_offset_usd"]);
|
|
1930
|
+
if (offset === void 0 && before === void 0) return p;
|
|
1931
|
+
const out = { ...p };
|
|
1932
|
+
if (offset !== void 0) out.offsetFloatUsd = offset;
|
|
1933
|
+
if (before !== void 0) out.amountBeforeOffsetUsd = before;
|
|
1934
|
+
return out;
|
|
1935
|
+
}
|
|
1901
1936
|
function payeePath(payeeId) {
|
|
1902
1937
|
return `/api/partner-payees/${encodeURIComponent(requireText("payeeId", payeeId))}`;
|
|
1903
1938
|
}
|
|
@@ -2023,7 +2058,7 @@ var PayoutsServer = class {
|
|
|
2023
2058
|
signal: opts?.signal
|
|
2024
2059
|
});
|
|
2025
2060
|
return {
|
|
2026
|
-
payout: raw["payout_request"],
|
|
2061
|
+
payout: withOffsetFields(raw["payout_request"]),
|
|
2027
2062
|
duplicate: raw["duplicate"] === true,
|
|
2028
2063
|
raw
|
|
2029
2064
|
};
|
|
@@ -2035,7 +2070,7 @@ var PayoutsServer = class {
|
|
|
2035
2070
|
this.auth,
|
|
2036
2071
|
{ signal: opts?.signal }
|
|
2037
2072
|
);
|
|
2038
|
-
return raw["payout_request"];
|
|
2073
|
+
return withOffsetFields(raw["payout_request"]);
|
|
2039
2074
|
}
|
|
2040
2075
|
/** Your payouts (`GET /api/partner-payouts`), optionally one creator's (`payeeId`). */
|
|
2041
2076
|
async listPayouts(q = {}, opts) {
|
|
@@ -2044,7 +2079,7 @@ var PayoutsServer = class {
|
|
|
2044
2079
|
this.auth,
|
|
2045
2080
|
{ signal: opts?.signal }
|
|
2046
2081
|
);
|
|
2047
|
-
return { total: Number(raw["total"] ?? 0), items: raw["items"] ?? [], raw };
|
|
2082
|
+
return { total: Number(raw["total"] ?? 0), items: (raw["items"] ?? []).map((p) => withOffsetFields(p)), raw };
|
|
2048
2083
|
}
|
|
2049
2084
|
/**
|
|
2050
2085
|
* Cancel a creator payout that is still `requested`
|
|
@@ -2058,7 +2093,7 @@ var PayoutsServer = class {
|
|
|
2058
2093
|
this.auth,
|
|
2059
2094
|
{ signal: opts?.signal }
|
|
2060
2095
|
);
|
|
2061
|
-
return raw["payout_request"] ?? raw["payout"];
|
|
2096
|
+
return withOffsetFields(raw["payout_request"] ?? raw["payout"]);
|
|
2062
2097
|
}
|
|
2063
2098
|
};
|
|
2064
2099
|
|
package/dist/server.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { bB as AppleEnvironment, bC as AppleProduct, a$ as AppleProductsResult, a0 as ApplePurchaseResult, bD as ApplePurchaseStatus, bE as AppleUnavailableReason, bx as ApproveWithDeviceCodeInput, br as BeginDeviceApprovalInput, g as CallOptions, ag as CancelResult, af as CancelSubscriptionOptions, at as CardSetupConfirmInput, au as CardSetupConfirmResult, ar as CardSetupInput, as as CardSetupResult, ap as CardSetupSessionInput, aq as CardSetupSessionResult, bF as CardSetupStatus, ah as ChangeAmountResult, bG as CheckoutWarning, bi as ClaimCurrencyInput, y as ClaimDelivery, bh as ClaimResult, bg as ClaimTransferInput, bz as CompleteDeviceApprovalInput, bA as CompleteDeviceApprovalResult, bv as ConfirmDeviceEnrollmentInput, bw as ConfirmDeviceEnrollmentResult, aT as ConfirmPaymentResult, aN as CreateCheckoutInput, aO as CreateCheckoutResult, a9 as CreateSubscriptionInput, bH as CurrencyBalance, aS as CurrencyPurchaseQuote, bI as CurrencyPurchaseQuoteBreakdown, aR as CurrencyPurchaseQuoteInput, D as DestinationGame, p as DestinationsResult, bJ as DeviceApprovalChannel, bK as DeviceApprovalEnrollment, bL as DeviceApprovalFlow, bs as DeviceApprovalGrant, bu as DeviceApprovalPollResult, bM as DeviceApprovalPollStatus, by as DeviceApprovalSettleResult, bN as DeviceEnrollmentDecision, bO as DeviceEnrollmentRespond, bP as ExpiryReason, bQ as FeeTakenFrom, bR as FirstCharge, bS as FirstChargeStatus, bT as FundingSource, ab as GetSubscriptionOptions, ac as GetSubscriptionResult, bk as GuardianApprovalStatusResult, bU as InboundPendingItem, bb as InboundPendingQuery, bc as InboundPendingResult, aL as InitiateResult, aK as InitiateSendInput, aM as InitiateTransferInput, I as InvoError, z as InvoErrorInfo, F as InvoHooks, G as InvoRequestInfo, J as InvoResponseInfo, b3 as ItemHistoryQuery, b4 as ItemHistoryResult, b5 as ItemOrderQuery, bd as LinkedIdentitiesQuery, be as LinkedIdentitiesResult, bV as LinkedIdentityEmail, ad as ListSubscriptionsOptions, K as LoyaltyCard, N as LoyaltyCardReward, O as LoyaltyCardStep, q as LoyaltyCardsResult, Q as LoyaltyRewardState, S as LoyaltyStepProgress, T as LoyaltyStepState, bW as MinPurchaseWarning, aB as MintPlayerTokenInput, aU as OrderDetailsResult, bX as PhoneChangeConfirmation, aJ as PhoneChangeRequest, bY as PhoneChangeRequestStatus, bo as PhoneShareApproveInput, bp as PhoneShareApproveResult, bm as PhoneShareContact, bn as PhoneShareInitiateResult, bq as PhoneShareStatusResult, a3 as PlatformApprovalResult, a4 as PlatformOrderStatusResult, a5 as PlatformPurchaseHistoryQuery, a6 as PlatformPurchaseHistoryResult, a1 as PlatformPurchaseInput, a2 as PlatformPurchaseResult, bZ as PlatformPurchaseStatus, a7 as PlatformRefundInput, a8 as PlatformRefundResult, b8 as PlayerActivityEntry, b6 as PlayerActivityQuery, b7 as PlayerActivityResult, b_ as PlayerActivityType, b9 as PlayerBalanceQuery, ba as PlayerBalanceResult, av as PlayerCardsResult, aC as PlayerToken, bt as PollDeviceApprovalInput, aP as PurchaseInput, b1 as PurchaseItemInput, b2 as PurchaseItemResult, aQ as PurchaseResult, Z as Rail, b$ as RefundInitiation, c0 as RefundPendingApproval, c1 as RefundProcessingFeeBasis, c2 as RefundReceipt, al as RefundResult, c3 as RefundRevenueShareAttribution, ak as RefundSubscriptionInput, c4 as RefundWarning, aD as RegisterPlayerInput, aE as RegisterPlayerResult, aH as RequestPhoneChangeInput, aI as RequestPhoneChangeResult, aw as SandboxClockResult, c5 as SandboxClockState, ax as SandboxFailureOutcome, az as SandboxForceAuthChallengeOptions, ay as SandboxForceFailureOptions, c6 as SavedCard, aA as ServerConfig, bl as ServerDestinationsQuery, ai as SetPaymentMethodInput, aj as SetPaymentMethodResult, bf as SmsVerifyResult, aZ as SteamFinalizeInput, a_ as SteamFinalizeResult, ao as SteamFinalizeSubscriptionResult, aX as SteamInitPurchaseInput, aY as SteamInitPurchaseResult, an as SteamInitResult, c7 as SteamPack, aV as SteamPacksQuery, aW as SteamPacksResult, am as SteamSubscriptionInitInput, c8 as SteamUnavailableReason, c9 as SteamUserSession, ca as Subscription, cb as SubscriptionBaseInput, cc as SubscriptionConsent, cd as SubscriptionConsentInput, ce as SubscriptionFundingRail, cf as SubscriptionInterval, ae as SubscriptionListResult, aa as SubscriptionResult, cg as SubscriptionRevenueShare, ch as SubscriptionRevenueShareInput, ci as SubscriptionStatus, bj as TransactionStatusResult, cj as UnacknowledgedPurchaseOutcome, aF as UpdatePlayerPhoneInput, aG as UpdatePlayerPhoneResult, _ as VerificationMethod, b0 as VerifyApplePurchaseInput, ck as isRefundPendingApproval } from './types-
|
|
1
|
+
export { bB as AppleEnvironment, bC as AppleProduct, a$ as AppleProductsResult, a0 as ApplePurchaseResult, bD as ApplePurchaseStatus, bE as AppleUnavailableReason, bx as ApproveWithDeviceCodeInput, br as BeginDeviceApprovalInput, g as CallOptions, ag as CancelResult, af as CancelSubscriptionOptions, at as CardSetupConfirmInput, au as CardSetupConfirmResult, ar as CardSetupInput, as as CardSetupResult, ap as CardSetupSessionInput, aq as CardSetupSessionResult, bF as CardSetupStatus, ah as ChangeAmountResult, bG as CheckoutWarning, bi as ClaimCurrencyInput, y as ClaimDelivery, bh as ClaimResult, bg as ClaimTransferInput, bz as CompleteDeviceApprovalInput, bA as CompleteDeviceApprovalResult, bv as ConfirmDeviceEnrollmentInput, bw as ConfirmDeviceEnrollmentResult, aT as ConfirmPaymentResult, aN as CreateCheckoutInput, aO as CreateCheckoutResult, a9 as CreateSubscriptionInput, bH as CurrencyBalance, aS as CurrencyPurchaseQuote, bI as CurrencyPurchaseQuoteBreakdown, aR as CurrencyPurchaseQuoteInput, D as DestinationGame, p as DestinationsResult, bJ as DeviceApprovalChannel, bK as DeviceApprovalEnrollment, bL as DeviceApprovalFlow, bs as DeviceApprovalGrant, bu as DeviceApprovalPollResult, bM as DeviceApprovalPollStatus, by as DeviceApprovalSettleResult, bN as DeviceEnrollmentDecision, bO as DeviceEnrollmentRespond, bP as ExpiryReason, bQ as FeeTakenFrom, bR as FirstCharge, bS as FirstChargeStatus, bT as FundingSource, ab as GetSubscriptionOptions, ac as GetSubscriptionResult, bk as GuardianApprovalStatusResult, bU as InboundPendingItem, bb as InboundPendingQuery, bc as InboundPendingResult, aL as InitiateResult, aK as InitiateSendInput, aM as InitiateTransferInput, I as InvoError, z as InvoErrorInfo, F as InvoHooks, G as InvoRequestInfo, J as InvoResponseInfo, b3 as ItemHistoryQuery, b4 as ItemHistoryResult, b5 as ItemOrderQuery, bd as LinkedIdentitiesQuery, be as LinkedIdentitiesResult, bV as LinkedIdentityEmail, ad as ListSubscriptionsOptions, K as LoyaltyCard, N as LoyaltyCardReward, O as LoyaltyCardStep, q as LoyaltyCardsResult, Q as LoyaltyRewardState, S as LoyaltyStepProgress, T as LoyaltyStepState, bW as MinPurchaseWarning, aB as MintPlayerTokenInput, aU as OrderDetailsResult, bX as PhoneChangeConfirmation, aJ as PhoneChangeRequest, bY as PhoneChangeRequestStatus, bo as PhoneShareApproveInput, bp as PhoneShareApproveResult, bm as PhoneShareContact, bn as PhoneShareInitiateResult, bq as PhoneShareStatusResult, a3 as PlatformApprovalResult, a4 as PlatformOrderStatusResult, a5 as PlatformPurchaseHistoryQuery, a6 as PlatformPurchaseHistoryResult, a1 as PlatformPurchaseInput, a2 as PlatformPurchaseResult, bZ as PlatformPurchaseStatus, a7 as PlatformRefundInput, a8 as PlatformRefundResult, b8 as PlayerActivityEntry, b6 as PlayerActivityQuery, b7 as PlayerActivityResult, b_ as PlayerActivityType, b9 as PlayerBalanceQuery, ba as PlayerBalanceResult, av as PlayerCardsResult, aC as PlayerToken, bt as PollDeviceApprovalInput, aP as PurchaseInput, b1 as PurchaseItemInput, b2 as PurchaseItemResult, aQ as PurchaseResult, Z as Rail, b$ as RefundInitiation, c0 as RefundPendingApproval, c1 as RefundProcessingFeeBasis, c2 as RefundReceipt, al as RefundResult, c3 as RefundRevenueShareAttribution, ak as RefundSubscriptionInput, c4 as RefundWarning, aD as RegisterPlayerInput, aE as RegisterPlayerResult, aH as RequestPhoneChangeInput, aI as RequestPhoneChangeResult, aw as SandboxClockResult, c5 as SandboxClockState, ax as SandboxFailureOutcome, az as SandboxForceAuthChallengeOptions, ay as SandboxForceFailureOptions, c6 as SavedCard, aA as ServerConfig, bl as ServerDestinationsQuery, ai as SetPaymentMethodInput, aj as SetPaymentMethodResult, bf as SmsVerifyResult, aZ as SteamFinalizeInput, a_ as SteamFinalizeResult, ao as SteamFinalizeSubscriptionResult, aX as SteamInitPurchaseInput, aY as SteamInitPurchaseResult, an as SteamInitResult, c7 as SteamPack, aV as SteamPacksQuery, aW as SteamPacksResult, am as SteamSubscriptionInitInput, c8 as SteamUnavailableReason, c9 as SteamUserSession, ca as Subscription, cb as SubscriptionBaseInput, cc as SubscriptionConsent, cd as SubscriptionConsentInput, ce as SubscriptionFundingRail, cf as SubscriptionInterval, ae as SubscriptionListResult, aa as SubscriptionResult, cg as SubscriptionRevenueShare, ch as SubscriptionRevenueShareInput, ci as SubscriptionStatus, bj as TransactionStatusResult, cj as UnacknowledgedPurchaseOutcome, aF as UpdatePlayerPhoneInput, aG as UpdatePlayerPhoneResult, _ as VerificationMethod, b0 as VerifyApplePurchaseInput, ck as isRefundPendingApproval } from './types-BdKpJX93.cjs';
|
|
2
2
|
export { G as GameEventType, R as ReportGameEventInput, a as ReportGameEventResult, b as ReportServerGameEventInput } from './loyalty-events-CmDw2ZoR.cjs';
|
|
3
|
-
export { A as APPLE_FINISH_ERROR_CODES, d as AppleWebhookDetails, C as CardsServer, D as DEMO_KEY_PREFIX, E as EnvironmentUnknownError, f as IdentityPasskeyResetData, a as InvoEnvironment, I as InvoServer, g as InvoWebhookEvent, h as ItemPurchasedData, K as KeyEnvironmentMismatchError, L as LIVE_KEY_PREFIX, j as ListPayeesQuery, k as ListPayeesResult, l as ListPayoutsQuery, m as ListPayoutsResult, P as PRODUCTION_BASE_URL, n as PayableBlocker, o as Payee, p as PayeeInvite, q as PayeeStatus, s as PayeeStatusChangedData, t as Payout, u as PayoutStatus, w as PayoutStatusChangedData, x as PayoutsServer, y as PlatformCommercePurchasedData, z as PlatformCommerceRefundedData, B as PlatformCommerceServer, F as PlayerPhoneChangedData, G as PurchaseCompletedData, H as PurchaseEventData, R as RegisterPayeeInput, J as RegisterPayeeResult, M as RequestPayoutInput, N as RequestPayoutResult, O as ReturnReasonCode, S as SANDBOX_BASE_URL, Q as SandboxServer, U as SandboxSubscriptionsServer, V as SubscriptionAuthenticationRequiredData, W as SubscriptionCanceledData, X as SubscriptionEventCommon, Y as SubscriptionExpiredData, Z as SubscriptionPastDueData, _ as SubscriptionPaymentFailedData, $ as SubscriptionRefundApprovedData, a0 as SubscriptionRefundDetail, a1 as SubscriptionRefundRejectedData, a2 as SubscriptionRefundRequestData, a3 as SubscriptionRefundedData, a4 as SubscriptionRenewalFunding, a5 as SubscriptionRenewalSplit, a6 as SubscriptionRenewedData, a7 as SubscriptionRevenueShareAttribution, a8 as SubscriptionTrialEventFields, a9 as SubscriptionsServer, T as TEST_KEY_PREFIX, aa as TransferEventData, ab as VerifyWebhookOptions, ac as WebhookHandlerOptions, b as baseUrlForKey, ad as createWebhookHandler, e as environmentForBaseUrl, c as environmentFromKeyPrefix, ae as isAppleCreditPending, i as isDemoKey, r as resolveEnvironment, af as shouldFinishAppleTransaction, ag as verifyWebhook, ah as verifyWebhookAsync } from './server-
|
|
4
|
-
export { S as SDK_VERSION } from './version-
|
|
3
|
+
export { A as APPLE_FINISH_ERROR_CODES, d as AppleWebhookDetails, C as CardsServer, D as DEMO_KEY_PREFIX, E as EnvironmentUnknownError, f as IdentityPasskeyResetData, a as InvoEnvironment, I as InvoServer, g as InvoWebhookEvent, h as ItemPurchasedData, K as KeyEnvironmentMismatchError, L as LIVE_KEY_PREFIX, j as ListPayeesQuery, k as ListPayeesResult, l as ListPayoutsQuery, m as ListPayoutsResult, P as PRODUCTION_BASE_URL, n as PayableBlocker, o as Payee, p as PayeeInvite, q as PayeeStatus, s as PayeeStatusChangedData, t as Payout, u as PayoutStatus, w as PayoutStatusChangedData, x as PayoutsServer, y as PlatformCommercePurchasedData, z as PlatformCommerceRefundedData, B as PlatformCommerceServer, F as PlayerPhoneChangedData, G as PurchaseCompletedData, H as PurchaseEventData, R as RegisterPayeeInput, J as RegisterPayeeResult, M as RequestPayoutInput, N as RequestPayoutResult, O as ReturnReasonCode, S as SANDBOX_BASE_URL, Q as SandboxServer, U as SandboxSubscriptionsServer, V as SubscriptionAuthenticationRequiredData, W as SubscriptionCanceledData, X as SubscriptionEventCommon, Y as SubscriptionExpiredData, Z as SubscriptionPastDueData, _ as SubscriptionPaymentFailedData, $ as SubscriptionRefundApprovedData, a0 as SubscriptionRefundDetail, a1 as SubscriptionRefundRejectedData, a2 as SubscriptionRefundRequestData, a3 as SubscriptionRefundedData, a4 as SubscriptionRenewalFunding, a5 as SubscriptionRenewalSplit, a6 as SubscriptionRenewedData, a7 as SubscriptionRevenueShareAttribution, a8 as SubscriptionTrialEventFields, a9 as SubscriptionsServer, T as TEST_KEY_PREFIX, aa as TransferEventData, ab as VerifyWebhookOptions, ac as WebhookHandlerOptions, b as baseUrlForKey, ad as createWebhookHandler, e as environmentForBaseUrl, c as environmentFromKeyPrefix, ae as isAppleCreditPending, i as isDemoKey, r as resolveEnvironment, af as shouldFinishAppleTransaction, ag as verifyWebhook, ah as verifyWebhookAsync } from './server-B9PtYZaM.cjs';
|
|
4
|
+
export { S as SDK_VERSION } from './version-CuhMO-6s.cjs';
|
package/dist/server.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { bB as AppleEnvironment, bC as AppleProduct, a$ as AppleProductsResult, a0 as ApplePurchaseResult, bD as ApplePurchaseStatus, bE as AppleUnavailableReason, bx as ApproveWithDeviceCodeInput, br as BeginDeviceApprovalInput, g as CallOptions, ag as CancelResult, af as CancelSubscriptionOptions, at as CardSetupConfirmInput, au as CardSetupConfirmResult, ar as CardSetupInput, as as CardSetupResult, ap as CardSetupSessionInput, aq as CardSetupSessionResult, bF as CardSetupStatus, ah as ChangeAmountResult, bG as CheckoutWarning, bi as ClaimCurrencyInput, y as ClaimDelivery, bh as ClaimResult, bg as ClaimTransferInput, bz as CompleteDeviceApprovalInput, bA as CompleteDeviceApprovalResult, bv as ConfirmDeviceEnrollmentInput, bw as ConfirmDeviceEnrollmentResult, aT as ConfirmPaymentResult, aN as CreateCheckoutInput, aO as CreateCheckoutResult, a9 as CreateSubscriptionInput, bH as CurrencyBalance, aS as CurrencyPurchaseQuote, bI as CurrencyPurchaseQuoteBreakdown, aR as CurrencyPurchaseQuoteInput, D as DestinationGame, p as DestinationsResult, bJ as DeviceApprovalChannel, bK as DeviceApprovalEnrollment, bL as DeviceApprovalFlow, bs as DeviceApprovalGrant, bu as DeviceApprovalPollResult, bM as DeviceApprovalPollStatus, by as DeviceApprovalSettleResult, bN as DeviceEnrollmentDecision, bO as DeviceEnrollmentRespond, bP as ExpiryReason, bQ as FeeTakenFrom, bR as FirstCharge, bS as FirstChargeStatus, bT as FundingSource, ab as GetSubscriptionOptions, ac as GetSubscriptionResult, bk as GuardianApprovalStatusResult, bU as InboundPendingItem, bb as InboundPendingQuery, bc as InboundPendingResult, aL as InitiateResult, aK as InitiateSendInput, aM as InitiateTransferInput, I as InvoError, z as InvoErrorInfo, F as InvoHooks, G as InvoRequestInfo, J as InvoResponseInfo, b3 as ItemHistoryQuery, b4 as ItemHistoryResult, b5 as ItemOrderQuery, bd as LinkedIdentitiesQuery, be as LinkedIdentitiesResult, bV as LinkedIdentityEmail, ad as ListSubscriptionsOptions, K as LoyaltyCard, N as LoyaltyCardReward, O as LoyaltyCardStep, q as LoyaltyCardsResult, Q as LoyaltyRewardState, S as LoyaltyStepProgress, T as LoyaltyStepState, bW as MinPurchaseWarning, aB as MintPlayerTokenInput, aU as OrderDetailsResult, bX as PhoneChangeConfirmation, aJ as PhoneChangeRequest, bY as PhoneChangeRequestStatus, bo as PhoneShareApproveInput, bp as PhoneShareApproveResult, bm as PhoneShareContact, bn as PhoneShareInitiateResult, bq as PhoneShareStatusResult, a3 as PlatformApprovalResult, a4 as PlatformOrderStatusResult, a5 as PlatformPurchaseHistoryQuery, a6 as PlatformPurchaseHistoryResult, a1 as PlatformPurchaseInput, a2 as PlatformPurchaseResult, bZ as PlatformPurchaseStatus, a7 as PlatformRefundInput, a8 as PlatformRefundResult, b8 as PlayerActivityEntry, b6 as PlayerActivityQuery, b7 as PlayerActivityResult, b_ as PlayerActivityType, b9 as PlayerBalanceQuery, ba as PlayerBalanceResult, av as PlayerCardsResult, aC as PlayerToken, bt as PollDeviceApprovalInput, aP as PurchaseInput, b1 as PurchaseItemInput, b2 as PurchaseItemResult, aQ as PurchaseResult, Z as Rail, b$ as RefundInitiation, c0 as RefundPendingApproval, c1 as RefundProcessingFeeBasis, c2 as RefundReceipt, al as RefundResult, c3 as RefundRevenueShareAttribution, ak as RefundSubscriptionInput, c4 as RefundWarning, aD as RegisterPlayerInput, aE as RegisterPlayerResult, aH as RequestPhoneChangeInput, aI as RequestPhoneChangeResult, aw as SandboxClockResult, c5 as SandboxClockState, ax as SandboxFailureOutcome, az as SandboxForceAuthChallengeOptions, ay as SandboxForceFailureOptions, c6 as SavedCard, aA as ServerConfig, bl as ServerDestinationsQuery, ai as SetPaymentMethodInput, aj as SetPaymentMethodResult, bf as SmsVerifyResult, aZ as SteamFinalizeInput, a_ as SteamFinalizeResult, ao as SteamFinalizeSubscriptionResult, aX as SteamInitPurchaseInput, aY as SteamInitPurchaseResult, an as SteamInitResult, c7 as SteamPack, aV as SteamPacksQuery, aW as SteamPacksResult, am as SteamSubscriptionInitInput, c8 as SteamUnavailableReason, c9 as SteamUserSession, ca as Subscription, cb as SubscriptionBaseInput, cc as SubscriptionConsent, cd as SubscriptionConsentInput, ce as SubscriptionFundingRail, cf as SubscriptionInterval, ae as SubscriptionListResult, aa as SubscriptionResult, cg as SubscriptionRevenueShare, ch as SubscriptionRevenueShareInput, ci as SubscriptionStatus, bj as TransactionStatusResult, cj as UnacknowledgedPurchaseOutcome, aF as UpdatePlayerPhoneInput, aG as UpdatePlayerPhoneResult, _ as VerificationMethod, b0 as VerifyApplePurchaseInput, ck as isRefundPendingApproval } from './types-
|
|
1
|
+
export { bB as AppleEnvironment, bC as AppleProduct, a$ as AppleProductsResult, a0 as ApplePurchaseResult, bD as ApplePurchaseStatus, bE as AppleUnavailableReason, bx as ApproveWithDeviceCodeInput, br as BeginDeviceApprovalInput, g as CallOptions, ag as CancelResult, af as CancelSubscriptionOptions, at as CardSetupConfirmInput, au as CardSetupConfirmResult, ar as CardSetupInput, as as CardSetupResult, ap as CardSetupSessionInput, aq as CardSetupSessionResult, bF as CardSetupStatus, ah as ChangeAmountResult, bG as CheckoutWarning, bi as ClaimCurrencyInput, y as ClaimDelivery, bh as ClaimResult, bg as ClaimTransferInput, bz as CompleteDeviceApprovalInput, bA as CompleteDeviceApprovalResult, bv as ConfirmDeviceEnrollmentInput, bw as ConfirmDeviceEnrollmentResult, aT as ConfirmPaymentResult, aN as CreateCheckoutInput, aO as CreateCheckoutResult, a9 as CreateSubscriptionInput, bH as CurrencyBalance, aS as CurrencyPurchaseQuote, bI as CurrencyPurchaseQuoteBreakdown, aR as CurrencyPurchaseQuoteInput, D as DestinationGame, p as DestinationsResult, bJ as DeviceApprovalChannel, bK as DeviceApprovalEnrollment, bL as DeviceApprovalFlow, bs as DeviceApprovalGrant, bu as DeviceApprovalPollResult, bM as DeviceApprovalPollStatus, by as DeviceApprovalSettleResult, bN as DeviceEnrollmentDecision, bO as DeviceEnrollmentRespond, bP as ExpiryReason, bQ as FeeTakenFrom, bR as FirstCharge, bS as FirstChargeStatus, bT as FundingSource, ab as GetSubscriptionOptions, ac as GetSubscriptionResult, bk as GuardianApprovalStatusResult, bU as InboundPendingItem, bb as InboundPendingQuery, bc as InboundPendingResult, aL as InitiateResult, aK as InitiateSendInput, aM as InitiateTransferInput, I as InvoError, z as InvoErrorInfo, F as InvoHooks, G as InvoRequestInfo, J as InvoResponseInfo, b3 as ItemHistoryQuery, b4 as ItemHistoryResult, b5 as ItemOrderQuery, bd as LinkedIdentitiesQuery, be as LinkedIdentitiesResult, bV as LinkedIdentityEmail, ad as ListSubscriptionsOptions, K as LoyaltyCard, N as LoyaltyCardReward, O as LoyaltyCardStep, q as LoyaltyCardsResult, Q as LoyaltyRewardState, S as LoyaltyStepProgress, T as LoyaltyStepState, bW as MinPurchaseWarning, aB as MintPlayerTokenInput, aU as OrderDetailsResult, bX as PhoneChangeConfirmation, aJ as PhoneChangeRequest, bY as PhoneChangeRequestStatus, bo as PhoneShareApproveInput, bp as PhoneShareApproveResult, bm as PhoneShareContact, bn as PhoneShareInitiateResult, bq as PhoneShareStatusResult, a3 as PlatformApprovalResult, a4 as PlatformOrderStatusResult, a5 as PlatformPurchaseHistoryQuery, a6 as PlatformPurchaseHistoryResult, a1 as PlatformPurchaseInput, a2 as PlatformPurchaseResult, bZ as PlatformPurchaseStatus, a7 as PlatformRefundInput, a8 as PlatformRefundResult, b8 as PlayerActivityEntry, b6 as PlayerActivityQuery, b7 as PlayerActivityResult, b_ as PlayerActivityType, b9 as PlayerBalanceQuery, ba as PlayerBalanceResult, av as PlayerCardsResult, aC as PlayerToken, bt as PollDeviceApprovalInput, aP as PurchaseInput, b1 as PurchaseItemInput, b2 as PurchaseItemResult, aQ as PurchaseResult, Z as Rail, b$ as RefundInitiation, c0 as RefundPendingApproval, c1 as RefundProcessingFeeBasis, c2 as RefundReceipt, al as RefundResult, c3 as RefundRevenueShareAttribution, ak as RefundSubscriptionInput, c4 as RefundWarning, aD as RegisterPlayerInput, aE as RegisterPlayerResult, aH as RequestPhoneChangeInput, aI as RequestPhoneChangeResult, aw as SandboxClockResult, c5 as SandboxClockState, ax as SandboxFailureOutcome, az as SandboxForceAuthChallengeOptions, ay as SandboxForceFailureOptions, c6 as SavedCard, aA as ServerConfig, bl as ServerDestinationsQuery, ai as SetPaymentMethodInput, aj as SetPaymentMethodResult, bf as SmsVerifyResult, aZ as SteamFinalizeInput, a_ as SteamFinalizeResult, ao as SteamFinalizeSubscriptionResult, aX as SteamInitPurchaseInput, aY as SteamInitPurchaseResult, an as SteamInitResult, c7 as SteamPack, aV as SteamPacksQuery, aW as SteamPacksResult, am as SteamSubscriptionInitInput, c8 as SteamUnavailableReason, c9 as SteamUserSession, ca as Subscription, cb as SubscriptionBaseInput, cc as SubscriptionConsent, cd as SubscriptionConsentInput, ce as SubscriptionFundingRail, cf as SubscriptionInterval, ae as SubscriptionListResult, aa as SubscriptionResult, cg as SubscriptionRevenueShare, ch as SubscriptionRevenueShareInput, ci as SubscriptionStatus, bj as TransactionStatusResult, cj as UnacknowledgedPurchaseOutcome, aF as UpdatePlayerPhoneInput, aG as UpdatePlayerPhoneResult, _ as VerificationMethod, b0 as VerifyApplePurchaseInput, ck as isRefundPendingApproval } from './types-BdKpJX93.js';
|
|
2
2
|
export { G as GameEventType, R as ReportGameEventInput, a as ReportGameEventResult, b as ReportServerGameEventInput } from './loyalty-events-CmDw2ZoR.js';
|
|
3
|
-
export { A as APPLE_FINISH_ERROR_CODES, d as AppleWebhookDetails, C as CardsServer, D as DEMO_KEY_PREFIX, E as EnvironmentUnknownError, f as IdentityPasskeyResetData, a as InvoEnvironment, I as InvoServer, g as InvoWebhookEvent, h as ItemPurchasedData, K as KeyEnvironmentMismatchError, L as LIVE_KEY_PREFIX, j as ListPayeesQuery, k as ListPayeesResult, l as ListPayoutsQuery, m as ListPayoutsResult, P as PRODUCTION_BASE_URL, n as PayableBlocker, o as Payee, p as PayeeInvite, q as PayeeStatus, s as PayeeStatusChangedData, t as Payout, u as PayoutStatus, w as PayoutStatusChangedData, x as PayoutsServer, y as PlatformCommercePurchasedData, z as PlatformCommerceRefundedData, B as PlatformCommerceServer, F as PlayerPhoneChangedData, G as PurchaseCompletedData, H as PurchaseEventData, R as RegisterPayeeInput, J as RegisterPayeeResult, M as RequestPayoutInput, N as RequestPayoutResult, O as ReturnReasonCode, S as SANDBOX_BASE_URL, Q as SandboxServer, U as SandboxSubscriptionsServer, V as SubscriptionAuthenticationRequiredData, W as SubscriptionCanceledData, X as SubscriptionEventCommon, Y as SubscriptionExpiredData, Z as SubscriptionPastDueData, _ as SubscriptionPaymentFailedData, $ as SubscriptionRefundApprovedData, a0 as SubscriptionRefundDetail, a1 as SubscriptionRefundRejectedData, a2 as SubscriptionRefundRequestData, a3 as SubscriptionRefundedData, a4 as SubscriptionRenewalFunding, a5 as SubscriptionRenewalSplit, a6 as SubscriptionRenewedData, a7 as SubscriptionRevenueShareAttribution, a8 as SubscriptionTrialEventFields, a9 as SubscriptionsServer, T as TEST_KEY_PREFIX, aa as TransferEventData, ab as VerifyWebhookOptions, ac as WebhookHandlerOptions, b as baseUrlForKey, ad as createWebhookHandler, e as environmentForBaseUrl, c as environmentFromKeyPrefix, ae as isAppleCreditPending, i as isDemoKey, r as resolveEnvironment, af as shouldFinishAppleTransaction, ag as verifyWebhook, ah as verifyWebhookAsync } from './server-
|
|
4
|
-
export { S as SDK_VERSION } from './version-
|
|
3
|
+
export { A as APPLE_FINISH_ERROR_CODES, d as AppleWebhookDetails, C as CardsServer, D as DEMO_KEY_PREFIX, E as EnvironmentUnknownError, f as IdentityPasskeyResetData, a as InvoEnvironment, I as InvoServer, g as InvoWebhookEvent, h as ItemPurchasedData, K as KeyEnvironmentMismatchError, L as LIVE_KEY_PREFIX, j as ListPayeesQuery, k as ListPayeesResult, l as ListPayoutsQuery, m as ListPayoutsResult, P as PRODUCTION_BASE_URL, n as PayableBlocker, o as Payee, p as PayeeInvite, q as PayeeStatus, s as PayeeStatusChangedData, t as Payout, u as PayoutStatus, w as PayoutStatusChangedData, x as PayoutsServer, y as PlatformCommercePurchasedData, z as PlatformCommerceRefundedData, B as PlatformCommerceServer, F as PlayerPhoneChangedData, G as PurchaseCompletedData, H as PurchaseEventData, R as RegisterPayeeInput, J as RegisterPayeeResult, M as RequestPayoutInput, N as RequestPayoutResult, O as ReturnReasonCode, S as SANDBOX_BASE_URL, Q as SandboxServer, U as SandboxSubscriptionsServer, V as SubscriptionAuthenticationRequiredData, W as SubscriptionCanceledData, X as SubscriptionEventCommon, Y as SubscriptionExpiredData, Z as SubscriptionPastDueData, _ as SubscriptionPaymentFailedData, $ as SubscriptionRefundApprovedData, a0 as SubscriptionRefundDetail, a1 as SubscriptionRefundRejectedData, a2 as SubscriptionRefundRequestData, a3 as SubscriptionRefundedData, a4 as SubscriptionRenewalFunding, a5 as SubscriptionRenewalSplit, a6 as SubscriptionRenewedData, a7 as SubscriptionRevenueShareAttribution, a8 as SubscriptionTrialEventFields, a9 as SubscriptionsServer, T as TEST_KEY_PREFIX, aa as TransferEventData, ab as VerifyWebhookOptions, ac as WebhookHandlerOptions, b as baseUrlForKey, ad as createWebhookHandler, e as environmentForBaseUrl, c as environmentFromKeyPrefix, ae as isAppleCreditPending, i as isDemoKey, r as resolveEnvironment, af as shouldFinishAppleTransaction, ag as verifyWebhook, ah as verifyWebhookAsync } from './server-B7Pw1HMp.js';
|
|
4
|
+
export { S as SDK_VERSION } from './version-CuhMO-6s.js';
|
package/dist/server.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { APPLE_FINISH_ERROR_CODES, CardsServer, DEMO_KEY_PREFIX, EnvironmentUnknownError, InvoServer, KeyEnvironmentMismatchError, LIVE_KEY_PREFIX, PRODUCTION_BASE_URL, PayoutsServer, PlatformCommerceServer, SANDBOX_BASE_URL, SandboxServer, SandboxSubscriptionsServer, SubscriptionsServer, TEST_KEY_PREFIX, baseUrlForKey, createWebhookHandler, environmentForBaseUrl, environmentFromKeyPrefix, isAppleCreditPending, isDemoKey, isRefundPendingApproval, resolveEnvironment, shouldFinishAppleTransaction, verifyWebhook, verifyWebhookAsync } from './chunk-
|
|
2
|
-
export { SDK_VERSION } from './chunk-
|
|
3
|
-
export { InvoError } from './chunk-
|
|
1
|
+
export { APPLE_FINISH_ERROR_CODES, CardsServer, DEMO_KEY_PREFIX, EnvironmentUnknownError, InvoServer, KeyEnvironmentMismatchError, LIVE_KEY_PREFIX, PRODUCTION_BASE_URL, PayoutsServer, PlatformCommerceServer, SANDBOX_BASE_URL, SandboxServer, SandboxSubscriptionsServer, SubscriptionsServer, TEST_KEY_PREFIX, baseUrlForKey, createWebhookHandler, environmentForBaseUrl, environmentFromKeyPrefix, isAppleCreditPending, isDemoKey, isRefundPendingApproval, resolveEnvironment, shouldFinishAppleTransaction, verifyWebhook, verifyWebhookAsync } from './chunk-ZHEQAZLW.js';
|
|
2
|
+
export { SDK_VERSION } from './chunk-MENRG67H.js';
|
|
3
|
+
export { InvoError } from './chunk-KWAUFFDY.js';
|
|
4
4
|
//# sourceMappingURL=server.js.map
|
|
5
5
|
//# sourceMappingURL=server.js.map
|
|
@@ -289,6 +289,19 @@ declare class InvoError extends Error {
|
|
|
289
289
|
* admin intervened. Terminal from the game's seat: no retry can succeed
|
|
290
290
|
* until the studio resolves it in the INVO console. */
|
|
291
291
|
get isPartnerRailSuspended(): boolean;
|
|
292
|
+
/** A payout or withdrawal was refused because the billing account owes INVO more for
|
|
293
|
+
* Steam or Apple coins than this payout can settle (`FLOAT_DEBT_OUTSTANDING`, 409;
|
|
294
|
+
* additive, 3.37.0). Nothing was created. {@link floatDebtUsd} is what is owed; the
|
|
295
|
+
* message is safe to show the account owner. Ask for a larger amount, or retry once the
|
|
296
|
+
* card on file has been charged. */
|
|
297
|
+
get isFloatDebtOutstanding(): boolean;
|
|
298
|
+
/** On `FLOAT_DEBT_OUTSTANDING`: what the billing account owes (`float_debt_usd`), USD
|
|
299
|
+
* decimal string, for example `"95.00"`. `undefined` when the body does not carry it. */
|
|
300
|
+
get floatDebtUsd(): string | undefined;
|
|
301
|
+
/** The billing account could not be checked, so the payout or withdrawal was not created
|
|
302
|
+
* (`FLOAT_CHECK_UNAVAILABLE`, 503, `retryable: true`; additive, 3.37.0). Nothing was
|
|
303
|
+
* changed. Retry with the same idempotency key. */
|
|
304
|
+
get isFloatCheckUnavailable(): boolean;
|
|
292
305
|
/** True when INVO has paused new payments on the developer account
|
|
293
306
|
* (`PAYMENTS_PAUSED`, 403; additive, 3.32.0). Every call that starts a payment returns it:
|
|
294
307
|
* coin purchase, checkout session, Platform Commerce card purchase, new
|
|
@@ -289,6 +289,19 @@ declare class InvoError extends Error {
|
|
|
289
289
|
* admin intervened. Terminal from the game's seat: no retry can succeed
|
|
290
290
|
* until the studio resolves it in the INVO console. */
|
|
291
291
|
get isPartnerRailSuspended(): boolean;
|
|
292
|
+
/** A payout or withdrawal was refused because the billing account owes INVO more for
|
|
293
|
+
* Steam or Apple coins than this payout can settle (`FLOAT_DEBT_OUTSTANDING`, 409;
|
|
294
|
+
* additive, 3.37.0). Nothing was created. {@link floatDebtUsd} is what is owed; the
|
|
295
|
+
* message is safe to show the account owner. Ask for a larger amount, or retry once the
|
|
296
|
+
* card on file has been charged. */
|
|
297
|
+
get isFloatDebtOutstanding(): boolean;
|
|
298
|
+
/** On `FLOAT_DEBT_OUTSTANDING`: what the billing account owes (`float_debt_usd`), USD
|
|
299
|
+
* decimal string, for example `"95.00"`. `undefined` when the body does not carry it. */
|
|
300
|
+
get floatDebtUsd(): string | undefined;
|
|
301
|
+
/** The billing account could not be checked, so the payout or withdrawal was not created
|
|
302
|
+
* (`FLOAT_CHECK_UNAVAILABLE`, 503, `retryable: true`; additive, 3.37.0). Nothing was
|
|
303
|
+
* changed. Retry with the same idempotency key. */
|
|
304
|
+
get isFloatCheckUnavailable(): boolean;
|
|
292
305
|
/** True when INVO has paused new payments on the developer account
|
|
293
306
|
* (`PAYMENTS_PAUSED`, 403; additive, 3.32.0). Every call that starts a payment returns it:
|
|
294
307
|
* coin purchase, checkout session, Platform Commerce card purchase, new
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@invonetwork/web-sdk",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.37.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,
|