@invonetwork/web-sdk 3.29.1 → 3.30.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1442 -1397
- package/README.md +2954 -2923
- package/dist/chunk-3ECVREIM.js +6 -0
- package/dist/chunk-7O5JT3LK.js +1590 -0
- package/dist/{chunk-VP3OK4J4.js → chunk-TCT2QSVB.js} +515 -3
- package/dist/{chunk-YONO4JE5.js → chunk-V2RQYQQD.js} +44 -5
- package/dist/game-server.cjs +387 -42
- package/dist/game-server.d.cts +42 -6
- package/dist/game-server.d.ts +42 -6
- package/dist/game-server.js +286 -8
- package/dist/game.cjs +2677 -9
- package/dist/game.d.cts +78 -4
- package/dist/game.d.ts +78 -4
- package/dist/game.js +558 -3
- package/dist/hosted-approval-DcY4U2RN.d.cts +96 -0
- package/dist/hosted-approval-DiKmtjEh.d.ts +96 -0
- package/dist/index.d.cts +7 -96
- package/dist/index.d.ts +7 -96
- package/dist/index.js +2 -1635
- package/dist/loyalty-events-CmDw2ZoR.d.cts +40 -0
- package/dist/loyalty-events-CmDw2ZoR.d.ts +40 -0
- package/dist/{server-Bxo_wgHx.d.cts → server-BAOn3KH3.d.cts} +28 -2
- package/dist/{server-BYY6tM6X.d.ts → server-DHmQU1eN.d.ts} +28 -2
- package/dist/server.cjs +106 -40
- package/dist/server.d.cts +4 -3
- package/dist/server.d.ts +4 -3
- package/dist/server.js +3 -4
- package/dist/{types-_lIm74kd.d.cts → types-BTbZicgj.d.cts} +1 -40
- package/dist/{types-_lIm74kd.d.ts → types-BTbZicgj.d.ts} +1 -40
- package/dist/{types-CLyJDuXd.d.cts → types-jUxfYjiD.d.cts} +64 -1
- package/dist/{types-CLyJDuXd.d.ts → types-jUxfYjiD.d.ts} +64 -1
- package/dist/{version-DOaYbHu7.d.cts → version-CR7XECyP.d.cts} +1 -1
- package/dist/{version-DOaYbHu7.d.ts → version-CR7XECyP.d.ts} +1 -1
- package/package.json +91 -91
- package/dist/chunk-6CN236QH.js +0 -473
- package/dist/chunk-VOGZZ6QS.js +0 -6
|
@@ -913,45 +913,6 @@ declare class Http {
|
|
|
913
913
|
private backoff;
|
|
914
914
|
}
|
|
915
915
|
|
|
916
|
-
/**
|
|
917
|
-
* Gameplay event types your game reports to INVO's loyalty engine (3.27.0). Currency steps
|
|
918
|
-
* (purchases, transfers, sends, item spending, subscriptions) are seen by INVO directly and
|
|
919
|
-
* are never reported; reporting one is refused with `RESERVED_EVENT_TYPE`.
|
|
920
|
-
*
|
|
921
|
-
* - `game.session.started` / `game.session.heartbeat`: payload `{ session_ref }`
|
|
922
|
-
* - `game.session.ended`: payload `{ session_ref, duration_seconds }`
|
|
923
|
-
* - `game.milestone.reached`: payload `{ milestone_key, value?, session_ref? }` (e.g. `level_10`)
|
|
924
|
-
* - `game.custom.recorded`: payload `{ event_name, value? }`; the name must be registered in
|
|
925
|
-
* the console first, else `422 validation_failed`
|
|
926
|
-
*/
|
|
927
|
-
type GameEventType = "game.session.started" | "game.session.heartbeat" | "game.session.ended" | "game.milestone.reached" | "game.custom.recorded" | (string & {});
|
|
928
|
-
/** One gameplay event, reported by the player's browser (`InvoClient.reportGameEvent`). */
|
|
929
|
-
interface ReportGameEventInput {
|
|
930
|
-
/** A `game.*` type; see {@link GameEventType}. */
|
|
931
|
-
eventType: GameEventType;
|
|
932
|
-
/**
|
|
933
|
-
* Idempotency key (a UUID). Resend the SAME id when you retry, so INVO counts the event
|
|
934
|
-
* once. The SDK generates one when you leave it out, and returns it.
|
|
935
|
-
*/
|
|
936
|
-
eventId?: string;
|
|
937
|
-
/** When it happened: ISO 8601 with a timezone, or a Date. Defaults to INVO's receive time. */
|
|
938
|
-
occurredAt?: string | Date;
|
|
939
|
-
/** The event's fields (see {@link GameEventType}). */
|
|
940
|
-
payload?: Record<string, unknown>;
|
|
941
|
-
}
|
|
942
|
-
/** One gameplay event reported by your SERVER (`InvoServer.reportGameEvent`), trusted for rewards. */
|
|
943
|
-
interface ReportServerGameEventInput extends ReportGameEventInput {
|
|
944
|
-
/** The player in your game, by email. */
|
|
945
|
-
playerEmail: string;
|
|
946
|
-
}
|
|
947
|
-
interface ReportGameEventResult {
|
|
948
|
-
/** True when INVO recorded the event (202). */
|
|
949
|
-
accepted: boolean;
|
|
950
|
-
/** The event id INVO received: yours, or the one the SDK generated. Reuse it on a retry. */
|
|
951
|
-
eventId: string;
|
|
952
|
-
raw: Record<string, unknown>;
|
|
953
|
-
}
|
|
954
|
-
|
|
955
916
|
/** Per-call options (e.g. cancellation). Accepted as an optional last arg on SDK methods. */
|
|
956
917
|
interface CallOptions {
|
|
957
918
|
/** Cancel this call. Aborting throws an InvoError (code "ABORTED"); aborted calls are never retried. */
|
|
@@ -3740,4 +3701,4 @@ interface RewardsPageLink {
|
|
|
3740
3701
|
raw: Record<string, unknown>;
|
|
3741
3702
|
}
|
|
3742
3703
|
|
|
3743
|
-
export { type
|
|
3704
|
+
export { type AuthHeader as $, type ApproveResult as A, type BalanceResult as B, type CheckoutClientConfig as C, type DestinationGame as D, type EnrollmentBeginResult as E, type InvoHooks as F, type InvoRequestInfo as G, Http as H, InvoError as I, type InvoResponseInfo as J, type LoyaltyCard as K, type LinkDeviceResult as L, type MountCheckoutOptions as M, type LoyaltyCardReward as N, type LoyaltyCardStep as O, type PendingCollectItem as P, type LoyaltyRewardState as Q, type RedeemRewardResult as R, type LoyaltyStepProgress as S, type LoyaltyStepState as T, type LoyaltyVaultEntry as U, type PhoneChangeApproval as V, type WaitForPurchaseInput as W, type PhoneChangeDeviceSignal as X, type PurchaseRefusalReason as Y, type Rail as Z, type VerificationMethod as _, type PurchaseStatusResult as a, type ItemHistoryQuery as a$, type PlatformPurchaseInput as a0, type PlatformPurchaseResult as a1, type PlatformOrderStatusResult as a2, type PlatformPurchaseHistoryQuery as a3, type PlatformPurchaseHistoryResult as a4, type PlatformRefundInput as a5, type PlatformRefundResult as a6, type CreateSubscriptionInput as a7, type SubscriptionResult as a8, type GetSubscriptionOptions as a9, type PlayerToken as aA, type RegisterPlayerInput as aB, type RegisterPlayerResult as aC, type UpdatePlayerPhoneInput as aD, type UpdatePlayerPhoneResult as aE, type RequestPhoneChangeInput as aF, type RequestPhoneChangeResult as aG, type PhoneChangeRequest as aH, type InitiateSendInput as aI, type InitiateResult as aJ, type InitiateTransferInput as aK, type CreateCheckoutInput as aL, type CreateCheckoutResult as aM, type PurchaseInput as aN, type PurchaseResult as aO, type CurrencyPurchaseQuoteInput as aP, type CurrencyPurchaseQuote as aQ, type ConfirmPaymentResult as aR, type OrderDetailsResult as aS, type SteamPacksQuery as aT, type SteamPacksResult as aU, type SteamInitPurchaseInput as aV, type SteamInitPurchaseResult as aW, type SteamFinalizeInput as aX, type SteamFinalizeResult as aY, type PurchaseItemInput as aZ, type PurchaseItemResult as a_, type GetSubscriptionResult as aa, type ListSubscriptionsOptions as ab, type SubscriptionListResult as ac, type CancelSubscriptionOptions as ad, type CancelResult as ae, type ChangeAmountResult as af, type SetPaymentMethodInput as ag, type SetPaymentMethodResult as ah, type RefundSubscriptionInput as ai, type RefundResult as aj, type SteamSubscriptionInitInput as ak, type SteamInitResult as al, type SteamFinalizeSubscriptionResult as am, type CardSetupSessionInput as an, type CardSetupSessionResult as ao, type CardSetupInput as ap, type CardSetupResult as aq, type CardSetupConfirmInput as ar, type CardSetupConfirmResult as as, type PlayerCardsResult as at, type SandboxClockResult as au, type SandboxFailureOutcome as av, type SandboxForceFailureOptions as aw, type SandboxForceAuthChallengeOptions as ax, type ServerConfig as ay, type MintPlayerTokenInput as az, type PurchaseCredited as b, type SteamPack as b$, type ItemHistoryResult as b0, type ItemOrderQuery as b1, type PlayerActivityQuery as b2, type PlayerActivityResult as b3, type PlayerActivityEntry as b4, type PlayerBalanceQuery as b5, type PlayerBalanceResult as b6, type InboundPendingQuery as b7, type InboundPendingResult as b8, type LinkedIdentitiesQuery as b9, type CurrencyPurchaseQuoteBreakdown as bA, type DeviceApprovalChannel as bB, type DeviceApprovalEnrollment as bC, type DeviceApprovalFlow as bD, type DeviceApprovalPollStatus as bE, type DeviceEnrollmentDecision as bF, type DeviceEnrollmentRespond as bG, type ExpiryReason as bH, type FeeTakenFrom as bI, type FirstCharge as bJ, type FirstChargeStatus as bK, type FundingSource as bL, type InboundPendingItem as bM, type LinkedIdentityEmail as bN, type MinPurchaseWarning as bO, type PhoneChangeConfirmation as bP, type PhoneChangeRequestStatus as bQ, type PlatformPurchaseStatus as bR, type PlayerActivityType as bS, type RefundInitiation as bT, type RefundPendingApproval as bU, type RefundProcessingFeeBasis as bV, type RefundReceipt as bW, type RefundRevenueShareAttribution as bX, type RefundWarning as bY, type SandboxClockState as bZ, type SavedCard as b_, type LinkedIdentitiesResult as ba, type SmsVerifyResult as bb, type ClaimTransferInput as bc, type ClaimResult as bd, type ClaimCurrencyInput as be, type TransactionStatusResult as bf, type GuardianApprovalStatusResult as bg, type ServerDestinationsQuery as bh, type PhoneShareContact as bi, type PhoneShareInitiateResult as bj, type PhoneShareApproveInput as bk, type PhoneShareApproveResult as bl, type PhoneShareStatusResult as bm, type BeginDeviceApprovalInput as bn, type DeviceApprovalGrant as bo, type PollDeviceApprovalInput as bp, type DeviceApprovalPollResult as bq, type ConfirmDeviceEnrollmentInput as br, type ConfirmDeviceEnrollmentResult as bs, type ApproveWithDeviceCodeInput as bt, type DeviceApprovalSettleResult as bu, type CompleteDeviceApprovalInput as bv, type CompleteDeviceApprovalResult as bw, type CardSetupStatus as bx, type CheckoutWarning as by, type CurrencyBalance as bz, type PurchaseExpired as c, type SteamUserSession as c0, type Subscription as c1, type SubscriptionBaseInput as c2, type SubscriptionConsent as c3, type SubscriptionConsentInput as c4, type SubscriptionFundingRail as c5, type SubscriptionInterval as c6, type SubscriptionRevenueShare as c7, type SubscriptionRevenueShareInput as c8, type SubscriptionStatus as c9, type UnacknowledgedPurchaseOutcome as ca, isRefundPendingApproval as cb, type PurchaseRefunded as d, type PurchaseRefused as e, type PurchaseStatusInput as f, type CallOptions as g, type CheckoutMountHandle as h, type ClientConfig as i, type ConfirmReceiptResult as j, type PhoneChangeApprovalsResult as k, type ApprovePhoneChangeInput as l, type ApprovePhoneChangeResult as m, type PendingCollectResult as n, type DestinationsQuery as o, type DestinationsResult as p, type LoyaltyCardsResult as q, type LoyaltyVaultResult as r, type RewardsPageLink as s, type EnrollmentVerifyResult as t, type RecoveryBeginResult as u, type RecoveryCompleteResult as v, type BalanceRow as w, type CheckoutPurchaseStatus as x, type ClaimDelivery as y, type InvoErrorInfo as z };
|
|
@@ -151,5 +151,68 @@ interface GameErrorBody {
|
|
|
151
151
|
requestId?: string;
|
|
152
152
|
};
|
|
153
153
|
}
|
|
154
|
+
/**
|
|
155
|
+
* How currency moves to another player. Both are approved with the sender's passkey on INVO's
|
|
156
|
+
* hosted page. A **transfer** can also give the sender a claim code to pass on; a **send** can
|
|
157
|
+
* be collected from a link INVO texts to a phone-only recipient.
|
|
158
|
+
*/
|
|
159
|
+
type GameTransferKind = "transfer" | "send";
|
|
160
|
+
/** `GET /transfers/status` answer: whether players can move currency here, and how. */
|
|
161
|
+
interface GameTransferStatus {
|
|
162
|
+
enabled: boolean;
|
|
163
|
+
/**
|
|
164
|
+
* Why transfers are off: `"sandbox"` (your own sandbox key: set `INVO_TRANSFERS=on` to try
|
|
165
|
+
* them), `"off"` (switched off for this game), `"checking"` (the key's environment is still
|
|
166
|
+
* being looked up). `null` when enabled.
|
|
167
|
+
*/
|
|
168
|
+
reason: "sandbox" | "off" | "checking" | null;
|
|
169
|
+
/** True on the public demo key. */
|
|
170
|
+
demo: boolean;
|
|
171
|
+
/**
|
|
172
|
+
* Who can receive: `"project"` on the demo key (players of this copy only), `"network"`
|
|
173
|
+
* otherwise (any player of any INVO game the destination list offers).
|
|
174
|
+
*/
|
|
175
|
+
scope: "project" | "network";
|
|
176
|
+
/** Which recipient details to ask for. On the demo key only an email; otherwise a phone. */
|
|
177
|
+
recipientFields: {
|
|
178
|
+
email: "required" | "optional";
|
|
179
|
+
phone: "required" | "hidden";
|
|
180
|
+
};
|
|
181
|
+
/** INVO's API base for the player-token calls (destinations, approval, collecting). */
|
|
182
|
+
apiBaseUrl: string | null;
|
|
183
|
+
/**
|
|
184
|
+
* How the sender approves: `"passkey"` on INVO's hosted page, or `"sandbox"` on the public
|
|
185
|
+
* demo key, where the game server approves in INVO's demo sandbox without a passkey and the
|
|
186
|
+
* recipient collects through the game server.
|
|
187
|
+
*/
|
|
188
|
+
approval: "passkey" | "sandbox";
|
|
189
|
+
}
|
|
190
|
+
/** `POST /transfers` body. */
|
|
191
|
+
interface GameTransferInput {
|
|
192
|
+
kind?: GameTransferKind;
|
|
193
|
+
/** A destination's `gameId` from `getDestinations`. */
|
|
194
|
+
targetGameId: string | number;
|
|
195
|
+
/** A positive decimal string or number. */
|
|
196
|
+
amount: string | number;
|
|
197
|
+
/** Required on the demo key (the server maps it to the demo player); optional otherwise. */
|
|
198
|
+
recipientEmail?: string;
|
|
199
|
+
/** Required on a real key (E.164); not used on the demo key. */
|
|
200
|
+
recipientPhone?: string;
|
|
201
|
+
/** The sender's phone, when the game never stored one (real keys only). */
|
|
202
|
+
senderPhone?: string;
|
|
203
|
+
/** Idempotency key (8 to 64 of `A-Z a-z 0-9 _ -`). Default: a fresh UUID. */
|
|
204
|
+
clientRequestId?: string;
|
|
205
|
+
}
|
|
206
|
+
/** `POST /transfers` answer: approve it next, from a click, on INVO's hosted page. */
|
|
207
|
+
interface GameTransferStart {
|
|
208
|
+
transactionId: string;
|
|
209
|
+
kind: GameTransferKind;
|
|
210
|
+
/** A minor's transfer waits for a guardian (emailed) instead of the passkey page. */
|
|
211
|
+
guardianPending: boolean;
|
|
212
|
+
/** A fresh player token when the sender's INVO identity changed; the client swaps it in. */
|
|
213
|
+
playerToken: string | null;
|
|
214
|
+
/** How to approve it: see {@link GameTransferStatus.approval}. */
|
|
215
|
+
approval: "passkey" | "sandbox";
|
|
216
|
+
}
|
|
154
217
|
|
|
155
|
-
export type { GameCurrencyKind as G, GamePurchaseStatus as a, GameEconomyConfig as b, GameCatalog as c, GameCatalogItem as d, GameCheckout as e, GameCurrencyBalance as f, GameErrorBody as g, GameItemPurchase as h, GamePlayer as i, GamePremiumPack as j, GamePurchase as k, GameSession as l,
|
|
218
|
+
export type { GameCurrencyKind as G, GamePurchaseStatus as a, GameEconomyConfig as b, GameCatalog as c, GameCatalogItem as d, GameCheckout as e, GameCurrencyBalance as f, GameErrorBody as g, GameItemPurchase as h, GamePlayer as i, GamePremiumPack as j, GamePurchase as k, GameSession as l, GameTransferInput as m, GameTransferKind as n, GameTransferStart as o, GameTransferStatus as p, GameWallet as q };
|
|
@@ -151,5 +151,68 @@ interface GameErrorBody {
|
|
|
151
151
|
requestId?: string;
|
|
152
152
|
};
|
|
153
153
|
}
|
|
154
|
+
/**
|
|
155
|
+
* How currency moves to another player. Both are approved with the sender's passkey on INVO's
|
|
156
|
+
* hosted page. A **transfer** can also give the sender a claim code to pass on; a **send** can
|
|
157
|
+
* be collected from a link INVO texts to a phone-only recipient.
|
|
158
|
+
*/
|
|
159
|
+
type GameTransferKind = "transfer" | "send";
|
|
160
|
+
/** `GET /transfers/status` answer: whether players can move currency here, and how. */
|
|
161
|
+
interface GameTransferStatus {
|
|
162
|
+
enabled: boolean;
|
|
163
|
+
/**
|
|
164
|
+
* Why transfers are off: `"sandbox"` (your own sandbox key: set `INVO_TRANSFERS=on` to try
|
|
165
|
+
* them), `"off"` (switched off for this game), `"checking"` (the key's environment is still
|
|
166
|
+
* being looked up). `null` when enabled.
|
|
167
|
+
*/
|
|
168
|
+
reason: "sandbox" | "off" | "checking" | null;
|
|
169
|
+
/** True on the public demo key. */
|
|
170
|
+
demo: boolean;
|
|
171
|
+
/**
|
|
172
|
+
* Who can receive: `"project"` on the demo key (players of this copy only), `"network"`
|
|
173
|
+
* otherwise (any player of any INVO game the destination list offers).
|
|
174
|
+
*/
|
|
175
|
+
scope: "project" | "network";
|
|
176
|
+
/** Which recipient details to ask for. On the demo key only an email; otherwise a phone. */
|
|
177
|
+
recipientFields: {
|
|
178
|
+
email: "required" | "optional";
|
|
179
|
+
phone: "required" | "hidden";
|
|
180
|
+
};
|
|
181
|
+
/** INVO's API base for the player-token calls (destinations, approval, collecting). */
|
|
182
|
+
apiBaseUrl: string | null;
|
|
183
|
+
/**
|
|
184
|
+
* How the sender approves: `"passkey"` on INVO's hosted page, or `"sandbox"` on the public
|
|
185
|
+
* demo key, where the game server approves in INVO's demo sandbox without a passkey and the
|
|
186
|
+
* recipient collects through the game server.
|
|
187
|
+
*/
|
|
188
|
+
approval: "passkey" | "sandbox";
|
|
189
|
+
}
|
|
190
|
+
/** `POST /transfers` body. */
|
|
191
|
+
interface GameTransferInput {
|
|
192
|
+
kind?: GameTransferKind;
|
|
193
|
+
/** A destination's `gameId` from `getDestinations`. */
|
|
194
|
+
targetGameId: string | number;
|
|
195
|
+
/** A positive decimal string or number. */
|
|
196
|
+
amount: string | number;
|
|
197
|
+
/** Required on the demo key (the server maps it to the demo player); optional otherwise. */
|
|
198
|
+
recipientEmail?: string;
|
|
199
|
+
/** Required on a real key (E.164); not used on the demo key. */
|
|
200
|
+
recipientPhone?: string;
|
|
201
|
+
/** The sender's phone, when the game never stored one (real keys only). */
|
|
202
|
+
senderPhone?: string;
|
|
203
|
+
/** Idempotency key (8 to 64 of `A-Z a-z 0-9 _ -`). Default: a fresh UUID. */
|
|
204
|
+
clientRequestId?: string;
|
|
205
|
+
}
|
|
206
|
+
/** `POST /transfers` answer: approve it next, from a click, on INVO's hosted page. */
|
|
207
|
+
interface GameTransferStart {
|
|
208
|
+
transactionId: string;
|
|
209
|
+
kind: GameTransferKind;
|
|
210
|
+
/** A minor's transfer waits for a guardian (emailed) instead of the passkey page. */
|
|
211
|
+
guardianPending: boolean;
|
|
212
|
+
/** A fresh player token when the sender's INVO identity changed; the client swaps it in. */
|
|
213
|
+
playerToken: string | null;
|
|
214
|
+
/** How to approve it: see {@link GameTransferStatus.approval}. */
|
|
215
|
+
approval: "passkey" | "sandbox";
|
|
216
|
+
}
|
|
154
217
|
|
|
155
|
-
export type { GameCurrencyKind as G, GamePurchaseStatus as a, GameEconomyConfig as b, GameCatalog as c, GameCatalogItem as d, GameCheckout as e, GameCurrencyBalance as f, GameErrorBody as g, GameItemPurchase as h, GamePlayer as i, GamePremiumPack as j, GamePurchase as k, GameSession as l,
|
|
218
|
+
export type { GameCurrencyKind as G, GamePurchaseStatus as a, GameEconomyConfig as b, GameCatalog as c, GameCatalogItem as d, GameCheckout as e, GameCurrencyBalance as f, GameErrorBody as g, GameItemPurchase as h, GamePlayer as i, GamePremiumPack as j, GamePurchase as k, GameSession as l, GameTransferInput as m, GameTransferKind as n, GameTransferStart as o, GameTransferStatus as p, GameWallet as q };
|
package/package.json
CHANGED
|
@@ -1,91 +1,91 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@invonetwork/web-sdk",
|
|
3
|
-
"version": "3.
|
|
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
|
-
"license": "SEE LICENSE IN LICENSE",
|
|
6
|
-
"private": false,
|
|
7
|
-
"repository": {
|
|
8
|
-
"type": "git",
|
|
9
|
-
"url": "git+https://github.com/Invo-Technologies/invo-web-sdk.git"
|
|
10
|
-
},
|
|
11
|
-
"homepage": "https://docs.invo.network",
|
|
12
|
-
"bugs": {
|
|
13
|
-
"url": "https://github.com/Invo-Technologies/invo-web-sdk/issues"
|
|
14
|
-
},
|
|
15
|
-
"type": "module",
|
|
16
|
-
"engines": {
|
|
17
|
-
"node": ">=18"
|
|
18
|
-
},
|
|
19
|
-
"sideEffects": false,
|
|
20
|
-
"files": [
|
|
21
|
-
"dist",
|
|
22
|
-
"!dist/**/*.map",
|
|
23
|
-
"README.md",
|
|
24
|
-
"LICENSE",
|
|
25
|
-
"CHANGELOG.md"
|
|
26
|
-
],
|
|
27
|
-
"exports": {
|
|
28
|
-
".": {
|
|
29
|
-
"types": "./dist/index.d.ts",
|
|
30
|
-
"import": "./dist/index.js",
|
|
31
|
-
"require": "./dist/index.cjs"
|
|
32
|
-
},
|
|
33
|
-
"./server": {
|
|
34
|
-
"types": "./dist/server.d.ts",
|
|
35
|
-
"import": "./dist/server.js",
|
|
36
|
-
"require": "./dist/server.cjs"
|
|
37
|
-
},
|
|
38
|
-
"./game": {
|
|
39
|
-
"types": "./dist/game.d.ts",
|
|
40
|
-
"import": "./dist/game.js",
|
|
41
|
-
"require": "./dist/game.cjs"
|
|
42
|
-
},
|
|
43
|
-
"./game-server": {
|
|
44
|
-
"types": "./dist/game-server.d.ts",
|
|
45
|
-
"import": "./dist/game-server.js",
|
|
46
|
-
"require": "./dist/game-server.cjs"
|
|
47
|
-
}
|
|
48
|
-
},
|
|
49
|
-
"main": "./dist/index.cjs",
|
|
50
|
-
"module": "./dist/index.js",
|
|
51
|
-
"types": "./dist/index.d.ts",
|
|
52
|
-
"scripts": {
|
|
53
|
-
"build": "tsup",
|
|
54
|
-
"dev": "tsup --watch",
|
|
55
|
-
"typecheck": "tsc --noEmit",
|
|
56
|
-
"lint": "eslint .",
|
|
57
|
-
"test": "vitest run",
|
|
58
|
-
"test:watch": "vitest",
|
|
59
|
-
"clean": "rimraf dist",
|
|
60
|
-
"changeset": "changeset",
|
|
61
|
-
"version-packages": "changeset version",
|
|
62
|
-
"release": "npm run build && changeset publish",
|
|
63
|
-
"prepublishOnly": "npm run clean && npm run build"
|
|
64
|
-
},
|
|
65
|
-
"keywords": [
|
|
66
|
-
"invo",
|
|
67
|
-
"webauthn",
|
|
68
|
-
"passkey",
|
|
69
|
-
"payments",
|
|
70
|
-
"game-currency",
|
|
71
|
-
"sdk",
|
|
72
|
-
"game",
|
|
73
|
-
"game-economy",
|
|
74
|
-
"browser-game",
|
|
75
|
-
"loyalty"
|
|
76
|
-
],
|
|
77
|
-
"publishConfig": {
|
|
78
|
-
"access": "public"
|
|
79
|
-
},
|
|
80
|
-
"devDependencies": {
|
|
81
|
-
"@changesets/cli": "^2.31.0",
|
|
82
|
-
"@eslint/js": "^10.0.1",
|
|
83
|
-
"eslint": "^10.6.0",
|
|
84
|
-
"happy-dom": "^15.11.7",
|
|
85
|
-
"rimraf": "^5.0.5",
|
|
86
|
-
"tsup": "^8.0.1",
|
|
87
|
-
"typescript": "^5.4.5",
|
|
88
|
-
"typescript-eslint": "^8.62.1",
|
|
89
|
-
"vitest": "^1.5.0"
|
|
90
|
-
}
|
|
91
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@invonetwork/web-sdk",
|
|
3
|
+
"version": "3.30.1",
|
|
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
|
+
"license": "SEE LICENSE IN LICENSE",
|
|
6
|
+
"private": false,
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "git+https://github.com/Invo-Technologies/invo-web-sdk.git"
|
|
10
|
+
},
|
|
11
|
+
"homepage": "https://docs.invo.network",
|
|
12
|
+
"bugs": {
|
|
13
|
+
"url": "https://github.com/Invo-Technologies/invo-web-sdk/issues"
|
|
14
|
+
},
|
|
15
|
+
"type": "module",
|
|
16
|
+
"engines": {
|
|
17
|
+
"node": ">=18"
|
|
18
|
+
},
|
|
19
|
+
"sideEffects": false,
|
|
20
|
+
"files": [
|
|
21
|
+
"dist",
|
|
22
|
+
"!dist/**/*.map",
|
|
23
|
+
"README.md",
|
|
24
|
+
"LICENSE",
|
|
25
|
+
"CHANGELOG.md"
|
|
26
|
+
],
|
|
27
|
+
"exports": {
|
|
28
|
+
".": {
|
|
29
|
+
"types": "./dist/index.d.ts",
|
|
30
|
+
"import": "./dist/index.js",
|
|
31
|
+
"require": "./dist/index.cjs"
|
|
32
|
+
},
|
|
33
|
+
"./server": {
|
|
34
|
+
"types": "./dist/server.d.ts",
|
|
35
|
+
"import": "./dist/server.js",
|
|
36
|
+
"require": "./dist/server.cjs"
|
|
37
|
+
},
|
|
38
|
+
"./game": {
|
|
39
|
+
"types": "./dist/game.d.ts",
|
|
40
|
+
"import": "./dist/game.js",
|
|
41
|
+
"require": "./dist/game.cjs"
|
|
42
|
+
},
|
|
43
|
+
"./game-server": {
|
|
44
|
+
"types": "./dist/game-server.d.ts",
|
|
45
|
+
"import": "./dist/game-server.js",
|
|
46
|
+
"require": "./dist/game-server.cjs"
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"main": "./dist/index.cjs",
|
|
50
|
+
"module": "./dist/index.js",
|
|
51
|
+
"types": "./dist/index.d.ts",
|
|
52
|
+
"scripts": {
|
|
53
|
+
"build": "tsup",
|
|
54
|
+
"dev": "tsup --watch",
|
|
55
|
+
"typecheck": "tsc --noEmit",
|
|
56
|
+
"lint": "eslint .",
|
|
57
|
+
"test": "vitest run",
|
|
58
|
+
"test:watch": "vitest",
|
|
59
|
+
"clean": "rimraf dist",
|
|
60
|
+
"changeset": "changeset",
|
|
61
|
+
"version-packages": "changeset version",
|
|
62
|
+
"release": "npm run build && changeset publish",
|
|
63
|
+
"prepublishOnly": "npm run clean && npm run build"
|
|
64
|
+
},
|
|
65
|
+
"keywords": [
|
|
66
|
+
"invo",
|
|
67
|
+
"webauthn",
|
|
68
|
+
"passkey",
|
|
69
|
+
"payments",
|
|
70
|
+
"game-currency",
|
|
71
|
+
"sdk",
|
|
72
|
+
"game",
|
|
73
|
+
"game-economy",
|
|
74
|
+
"browser-game",
|
|
75
|
+
"loyalty"
|
|
76
|
+
],
|
|
77
|
+
"publishConfig": {
|
|
78
|
+
"access": "public"
|
|
79
|
+
},
|
|
80
|
+
"devDependencies": {
|
|
81
|
+
"@changesets/cli": "^2.31.0",
|
|
82
|
+
"@eslint/js": "^10.0.1",
|
|
83
|
+
"eslint": "^10.6.0",
|
|
84
|
+
"happy-dom": "^15.11.7",
|
|
85
|
+
"rimraf": "^5.0.5",
|
|
86
|
+
"tsup": "^8.0.1",
|
|
87
|
+
"typescript": "^5.4.5",
|
|
88
|
+
"typescript-eslint": "^8.62.1",
|
|
89
|
+
"vitest": "^1.5.0"
|
|
90
|
+
}
|
|
91
|
+
}
|