@invonetwork/web-sdk 3.28.0 → 3.29.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 +19 -0
- package/README.md +24 -1
- package/dist/chunk-VOGZZ6QS.js +6 -0
- package/dist/{chunk-4YKTKXC5.js → chunk-YONO4JE5.js} +22 -5
- package/dist/game-server.cjs +184 -19
- package/dist/game-server.d.cts +85 -6
- package/dist/game-server.d.ts +85 -6
- package/dist/game-server.js +165 -22
- package/dist/game.cjs +4 -1
- package/dist/game.d.cts +3 -3
- package/dist/game.d.ts +3 -3
- package/dist/game.js +4 -1
- package/dist/server-BYY6tM6X.d.ts +2165 -0
- package/dist/server-Bxo_wgHx.d.cts +2165 -0
- package/dist/server.cjs +16 -2
- package/dist/server.d.cts +3 -2159
- package/dist/server.d.ts +3 -2159
- package/dist/server.js +2 -2
- package/dist/{types-CoW9LopI.d.cts → types-CLyJDuXd.d.cts} +12 -0
- package/dist/{types-CoW9LopI.d.ts → types-CLyJDuXd.d.ts} +12 -0
- package/dist/{version-iWmcxjYu.d.cts → version-DOaYbHu7.d.cts} +1 -1
- package/dist/{version-iWmcxjYu.d.ts → version-DOaYbHu7.d.ts} +1 -1
- package/package.json +91 -91
- package/dist/chunk-3DRWLDDF.js +0 -6
package/dist/server.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { CardsServer, DEMO_KEY_PREFIX, EnvironmentUnknownError, InvoServer, PRODUCTION_BASE_URL, PayoutsServer, PlatformCommerceServer, SANDBOX_BASE_URL, SandboxServer, SandboxSubscriptionsServer, SubscriptionsServer, baseUrlForKey, createWebhookHandler, isDemoKey, isRefundPendingApproval, resolveEnvironment, verifyWebhook, verifyWebhookAsync } from './chunk-
|
|
1
|
+
export { CardsServer, DEMO_KEY_PREFIX, EnvironmentUnknownError, InvoServer, PRODUCTION_BASE_URL, PayoutsServer, PlatformCommerceServer, SANDBOX_BASE_URL, SandboxServer, SandboxSubscriptionsServer, SubscriptionsServer, baseUrlForKey, createWebhookHandler, isDemoKey, isRefundPendingApproval, resolveEnvironment, verifyWebhook, verifyWebhookAsync } from './chunk-YONO4JE5.js';
|
|
2
2
|
import './chunk-6CN236QH.js';
|
|
3
|
-
export { SDK_VERSION } from './chunk-
|
|
3
|
+
export { SDK_VERSION } from './chunk-VOGZZ6QS.js';
|
|
4
4
|
export { InvoError } from './chunk-VP3OK4J4.js';
|
|
5
5
|
//# sourceMappingURL=server.js.map
|
|
6
6
|
//# sourceMappingURL=server.js.map
|
|
@@ -102,6 +102,18 @@ interface GameCatalog {
|
|
|
102
102
|
items: GameCatalogItem[];
|
|
103
103
|
/** True when the server talks to INVO's sandbox (no real money moves). */
|
|
104
104
|
sandbox: boolean;
|
|
105
|
+
/**
|
|
106
|
+
* True when the server uses INVO's public demo key (3.29.1). Sign-ins are mapped to demo
|
|
107
|
+
* players, so there is no real account and no phone to collect.
|
|
108
|
+
*/
|
|
109
|
+
demo?: boolean;
|
|
110
|
+
/**
|
|
111
|
+
* What the sign-in form should ask for (3.29.1). `phone`: `"hidden"` on the demo key (the
|
|
112
|
+
* server never uses it), `"first_sign_in"` otherwise (INVO needs it once to create the player).
|
|
113
|
+
*/
|
|
114
|
+
playerFields?: {
|
|
115
|
+
phone: "hidden" | "first_sign_in";
|
|
116
|
+
};
|
|
105
117
|
}
|
|
106
118
|
/** Status of a premium-currency purchase, as the game server knows it. */
|
|
107
119
|
type GamePurchaseStatus = "pending" | "credited" | "failed" | "refunded";
|
|
@@ -102,6 +102,18 @@ interface GameCatalog {
|
|
|
102
102
|
items: GameCatalogItem[];
|
|
103
103
|
/** True when the server talks to INVO's sandbox (no real money moves). */
|
|
104
104
|
sandbox: boolean;
|
|
105
|
+
/**
|
|
106
|
+
* True when the server uses INVO's public demo key (3.29.1). Sign-ins are mapped to demo
|
|
107
|
+
* players, so there is no real account and no phone to collect.
|
|
108
|
+
*/
|
|
109
|
+
demo?: boolean;
|
|
110
|
+
/**
|
|
111
|
+
* What the sign-in form should ask for (3.29.1). `phone`: `"hidden"` on the demo key (the
|
|
112
|
+
* server never uses it), `"first_sign_in"` otherwise (INVO needs it once to create the player).
|
|
113
|
+
*/
|
|
114
|
+
playerFields?: {
|
|
115
|
+
phone: "hidden" | "first_sign_in";
|
|
116
|
+
};
|
|
105
117
|
}
|
|
106
118
|
/** Status of a premium-currency purchase, as the game server knows it. */
|
|
107
119
|
type GamePurchaseStatus = "pending" | "credited" | "failed" | "refunded";
|
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.29.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
|
+
}
|