@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/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-4YKTKXC5.js';
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-3DRWLDDF.js';
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";
@@ -3,6 +3,6 @@
3
3
  * `package.json` so it cannot drift silently (it did: the UA read 3.0.0 through 3.7.0).
4
4
  * Bump it with the changeset flow.
5
5
  */
6
- declare const SDK_VERSION = "3.28.0";
6
+ declare const SDK_VERSION = "3.29.1";
7
7
 
8
8
  export { SDK_VERSION as S };
@@ -3,6 +3,6 @@
3
3
  * `package.json` so it cannot drift silently (it did: the UA read 3.0.0 through 3.7.0).
4
4
  * Bump it with the changeset flow.
5
5
  */
6
- declare const SDK_VERSION = "3.28.0";
6
+ declare const SDK_VERSION = "3.29.1";
7
7
 
8
8
  export { SDK_VERSION as S };
package/package.json CHANGED
@@ -1,91 +1,91 @@
1
- {
2
- "name": "@invonetwork/web-sdk",
3
- "version": "3.28.0",
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
+ }
@@ -1,6 +0,0 @@
1
- // src/version.ts
2
- var SDK_VERSION = "3.28.0";
3
-
4
- export { SDK_VERSION };
5
- //# sourceMappingURL=chunk-3DRWLDDF.js.map
6
- //# sourceMappingURL=chunk-3DRWLDDF.js.map