@tenxyte/core 0.1.5 → 0.9.2
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/README.md +444 -0
- package/dist/index.cjs +1881 -496
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2767 -1265
- package/dist/index.d.ts +2767 -1265
- package/dist/index.js +1830 -464
- package/dist/index.js.map +1 -1
- package/package.json +83 -67
- package/patched-schema.json +0 -11388
- package/src/client.ts +0 -21
- package/src/config.ts +0 -0
- package/src/http/client.ts +0 -162
- package/src/http/index.ts +0 -1
- package/src/http/interceptors.ts +0 -117
- package/src/index.ts +0 -7
- package/src/modules/ai.ts +0 -0
- package/src/modules/auth.ts +0 -95
- package/src/modules/b2b.ts +0 -0
- package/src/modules/rbac.ts +0 -160
- package/src/modules/security.ts +0 -122
- package/src/modules/user.ts +0 -80
- package/src/storage/cookie.ts +0 -39
- package/src/storage/index.ts +0 -29
- package/src/storage/localStorage.ts +0 -75
- package/src/storage/memory.ts +0 -30
- package/src/types/api-schema.d.ts +0 -6590
- package/src/types/index.ts +0 -150
- package/src/utils/device_info.ts +0 -94
- package/src/utils/events.ts +0 -71
- package/src/utils/jwt.ts +0 -51
- package/tests/http.test.ts +0 -144
- package/tests/modules/auth.test.ts +0 -93
- package/tests/modules/rbac.test.ts +0 -95
- package/tests/modules/security.test.ts +0 -75
- package/tests/modules/user.test.ts +0 -76
- package/tests/storage.test.ts +0 -96
- package/tests/utils.test.ts +0 -71
- package/tsconfig.json +0 -26
- package/tsup.config.ts +0 -10
- package/vitest.config.ts +0 -7
package/package.json
CHANGED
|
@@ -1,67 +1,83 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@tenxyte/core",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "Core JavaScript SDK for Tenxyte",
|
|
5
|
-
"main": "./dist/index.cjs",
|
|
6
|
-
"module": "./dist/index.js",
|
|
7
|
-
"types": "./dist/index.d.ts",
|
|
8
|
-
"
|
|
9
|
-
"
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
},
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
"
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
"
|
|
62
|
-
"
|
|
63
|
-
"
|
|
64
|
-
"
|
|
65
|
-
"
|
|
66
|
-
|
|
67
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "@tenxyte/core",
|
|
3
|
+
"version": "0.9.2",
|
|
4
|
+
"description": "Core JavaScript SDK for Tenxyte",
|
|
5
|
+
"main": "./dist/index.cjs",
|
|
6
|
+
"module": "./dist/index.js",
|
|
7
|
+
"types": "./dist/index.d.ts",
|
|
8
|
+
"repository": {
|
|
9
|
+
"url": "https://github.com/tenxyte/tenxyte-js"
|
|
10
|
+
},
|
|
11
|
+
"exports": {
|
|
12
|
+
".": {
|
|
13
|
+
"types": "./dist/index.d.ts",
|
|
14
|
+
"import": "./dist/index.js",
|
|
15
|
+
"require": "./dist/index.cjs"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"files": [
|
|
19
|
+
"dist",
|
|
20
|
+
"README.md",
|
|
21
|
+
"LICENSE"
|
|
22
|
+
],
|
|
23
|
+
"sideEffects": false,
|
|
24
|
+
"publishConfig": {
|
|
25
|
+
"access": "public",
|
|
26
|
+
"provenance": true
|
|
27
|
+
},
|
|
28
|
+
"scripts": {
|
|
29
|
+
"build": "tsup",
|
|
30
|
+
"dev": "tsup --watch",
|
|
31
|
+
"test": "vitest run",
|
|
32
|
+
"test:watch": "vitest",
|
|
33
|
+
"lint": "eslint src/",
|
|
34
|
+
"format": "prettier --write \"src/**/*.ts\"",
|
|
35
|
+
"typecheck": "tsc --noEmit",
|
|
36
|
+
"check": "npm run lint && npm run typecheck && npm run test",
|
|
37
|
+
"generate:schema": "openapi-typescript http://localhost:8000/api/v1/docs/schema/ --output src/types/api-schema.d.ts"
|
|
38
|
+
},
|
|
39
|
+
"keywords": [
|
|
40
|
+
"tenxyte",
|
|
41
|
+
"sdk",
|
|
42
|
+
"javascript",
|
|
43
|
+
"typescript",
|
|
44
|
+
"authentication",
|
|
45
|
+
"jwt",
|
|
46
|
+
"2fa",
|
|
47
|
+
"totp",
|
|
48
|
+
"rbac",
|
|
49
|
+
"otp",
|
|
50
|
+
"google-authenticator",
|
|
51
|
+
"role-based-access-control",
|
|
52
|
+
"organizations",
|
|
53
|
+
"multi-tenant",
|
|
54
|
+
"b2b",
|
|
55
|
+
"device-fingerprinting",
|
|
56
|
+
"audit-log",
|
|
57
|
+
"gdpr",
|
|
58
|
+
"magic-link",
|
|
59
|
+
"passkeys",
|
|
60
|
+
"webauthn",
|
|
61
|
+
"fido2",
|
|
62
|
+
"social-login",
|
|
63
|
+
"oauth2",
|
|
64
|
+
"breach-check",
|
|
65
|
+
"haveibeenpwned"
|
|
66
|
+
],
|
|
67
|
+
"author": "Tenxyte Team",
|
|
68
|
+
"license": "MIT",
|
|
69
|
+
"type": "module",
|
|
70
|
+
"devDependencies": {
|
|
71
|
+
"@eslint/js": "^10.0.1",
|
|
72
|
+
"eslint": "^10.0.3",
|
|
73
|
+
"eslint-config-prettier": "^10.1.8",
|
|
74
|
+
"eslint-plugin-prettier": "^5.5.5",
|
|
75
|
+
"happy-dom": "^20.8.3",
|
|
76
|
+
"openapi-typescript": "^7.13.0",
|
|
77
|
+
"prettier": "^3.8.1",
|
|
78
|
+
"tsup": "^8.5.1",
|
|
79
|
+
"typescript": "^5.9.3",
|
|
80
|
+
"typescript-eslint": "^8.57.2",
|
|
81
|
+
"vitest": "^4.1.1"
|
|
82
|
+
}
|
|
83
|
+
}
|