matrix-nodejs-homeserver 0.3.4 → 0.3.6
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/AUDITBOT.md +67 -0
- package/README.md +55 -9
- package/dist/api/account.js +109 -64
- package/dist/api/admin.js +14 -0
- package/dist/api/federation.js +1 -1
- package/dist/api/index.js +2 -0
- package/dist/api/misc.js +3 -3
- package/dist/api/oauthserver.js +620 -0
- package/dist/api/sync.js +1 -1
- package/dist/api/threepid.js +1 -1
- package/dist/api/uia.js +20 -8
- package/dist/api/user.js +6 -3
- package/dist/auditbot/bot.d.ts +37 -0
- package/dist/auditbot/bot.js +208 -0
- package/dist/auditbot/client.d.ts +41 -0
- package/dist/auditbot/client.js +156 -0
- package/dist/auditbot/index.d.ts +4 -0
- package/dist/auditbot/index.js +4 -0
- package/dist/auditbot/sinks.d.ts +37 -0
- package/dist/auditbot/sinks.js +33 -0
- package/dist/core/admin.d.ts +6 -0
- package/dist/core/admin.js +25 -0
- package/dist/core/auth.d.ts +33 -2
- package/dist/core/auth.js +84 -21
- package/dist/core/oauth.js +2 -1
- package/dist/core/oauthserver.d.ts +141 -0
- package/dist/core/oauthserver.js +603 -0
- package/dist/core/ratelimit.d.ts +1 -1
- package/dist/core/ratelimit.js +4 -0
- package/dist/core/sso.d.ts +51 -15
- package/dist/core/sso.js +86 -26
- package/dist/homeserver.d.ts +20 -9
- package/dist/homeserver.js +17 -2
- package/dist/index.d.ts +15 -14
- package/dist/index.js +2 -1
- package/dist/storage/schema.js +20 -2
- package/dist/vendor/zod/v4/classic/errors.js +1 -1
- package/dist/vendor/zod/v4/classic/parse.js +1 -1
- package/dist/vendor/zod/v4/classic/schemas.js +1 -1
- package/dist/vendor/zod/v4/core/api.js +1 -1
- package/dist/vendor/zod/v4/core/checks.js +1 -1
- package/dist/vendor/zod/v4/core/core.js +1 -1
- package/dist/vendor/zod/v4/core/doc.js +1 -1
- package/dist/vendor/zod/v4/core/errors.js +1 -1
- package/dist/vendor/zod/v4/core/json-schema-processors.js +1 -1
- package/dist/vendor/zod/v4/core/memoizer.js +1 -1
- package/dist/vendor/zod/v4/core/parse.js +1 -1
- package/dist/vendor/zod/v4/core/regexes.js +1 -1
- package/dist/vendor/zod/v4/core/registries.js +1 -1
- package/dist/vendor/zod/v4/core/schemas.js +1 -1
- package/dist/vendor/zod/v4/core/to-json-schema.js +1 -1
- package/dist/vendor/zod/v4/core/util.js +1 -1
- package/dist/vendor/zod/v4/core/versions.js +1 -1
- package/dist/vendor/zod/v4/locales/en.js +1 -1
- package/package.json +28 -17
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { assignProp } from "./util.js";
|
|
2
2
|
import { globalRegistry } from "./registries.js";
|
|
3
|
-
//#region node_modules/zod/v4/core/to-json-schema.js
|
|
3
|
+
//#region ../../node_modules/zod/v4/core/to-json-schema.js
|
|
4
4
|
function assignProps(target, ...sources) {
|
|
5
5
|
for (const source of sources) for (const key of Reflect.ownKeys(source)) if (Object.prototype.propertyIsEnumerable.call(source, key)) assignProp(target, key, source[key]);
|
|
6
6
|
return target;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { globalConfig } from "./core.js";
|
|
2
|
-
//#region node_modules/zod/v4/core/util.js
|
|
2
|
+
//#region ../../node_modules/zod/v4/core/util.js
|
|
3
3
|
function getEnumValues(entries) {
|
|
4
4
|
const numericValues = Object.values(entries).filter((v) => typeof v === "number");
|
|
5
5
|
return Object.entries(entries).filter(([k, _]) => numericValues.indexOf(+k) === -1).map(([_, v]) => v);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "matrix-nodejs-homeserver",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.6",
|
|
4
4
|
"description": "A framework- and database-agnostic Matrix homeserver library for Node.js",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"chat",
|
|
@@ -9,19 +9,21 @@
|
|
|
9
9
|
"homeserver",
|
|
10
10
|
"matrix"
|
|
11
11
|
],
|
|
12
|
-
"homepage": "https://github.com/k18k/matrix-nodejs-homeserver#readme",
|
|
12
|
+
"homepage": "https://github.com/k18k/matrix-nodejs-homeserver/tree/main/packages/core#readme",
|
|
13
13
|
"bugs": {
|
|
14
14
|
"url": "https://github.com/k18k/matrix-nodejs-homeserver/issues"
|
|
15
15
|
},
|
|
16
16
|
"license": "PolyForm-Noncommercial-1.0.0",
|
|
17
17
|
"repository": {
|
|
18
18
|
"type": "git",
|
|
19
|
-
"url": "git+https://github.com/k18k/matrix-nodejs-homeserver.git"
|
|
19
|
+
"url": "git+https://github.com/k18k/matrix-nodejs-homeserver.git",
|
|
20
|
+
"directory": "packages/core"
|
|
20
21
|
},
|
|
21
22
|
"files": [
|
|
22
|
-
"
|
|
23
|
+
"AUDITBOT.md",
|
|
24
|
+
"LICENSE",
|
|
23
25
|
"README.md",
|
|
24
|
-
"
|
|
26
|
+
"dist"
|
|
25
27
|
],
|
|
26
28
|
"type": "module",
|
|
27
29
|
"main": "./dist/index.js",
|
|
@@ -33,6 +35,10 @@
|
|
|
33
35
|
".": {
|
|
34
36
|
"types": "./dist/index.d.ts",
|
|
35
37
|
"default": "./dist/index.js"
|
|
38
|
+
},
|
|
39
|
+
"./auditbot": {
|
|
40
|
+
"types": "./dist/auditbot/index.d.ts",
|
|
41
|
+
"default": "./dist/auditbot/index.js"
|
|
36
42
|
}
|
|
37
43
|
},
|
|
38
44
|
"publishConfig": {
|
|
@@ -42,29 +48,34 @@
|
|
|
42
48
|
"scripts": {
|
|
43
49
|
"typecheck": "tsc -p tsconfig.json",
|
|
44
50
|
"test": "node --test \"test/**/*.test.ts\"",
|
|
45
|
-
"
|
|
46
|
-
"format": "oxfmt .",
|
|
47
|
-
"format:check": "oxfmt --check .",
|
|
51
|
+
"smoke": "node --test test/smoke.test.ts",
|
|
48
52
|
"build": "tsdown",
|
|
49
53
|
"check:package": "publint && attw --pack . --profile esm-only",
|
|
50
54
|
"prepare": "npm run build",
|
|
51
55
|
"start:example": "node examples/node-http.ts",
|
|
52
|
-
"start:multi-node-example": "node examples/multi-node.ts"
|
|
53
|
-
"changeset": "changeset",
|
|
54
|
-
"version-packages": "changeset version && oxfmt package.json",
|
|
55
|
-
"release": "changeset publish"
|
|
56
|
+
"start:multi-node-example": "node examples/multi-node.ts"
|
|
56
57
|
},
|
|
57
58
|
"devDependencies": {
|
|
58
59
|
"@arethetypeswrong/cli": "^0.18.5",
|
|
59
|
-
"@
|
|
60
|
-
"@
|
|
61
|
-
"
|
|
62
|
-
"
|
|
60
|
+
"@better-auth/core": "1.7.6",
|
|
61
|
+
"@better-auth/oauth-provider": "1.7.6",
|
|
62
|
+
"@better-auth/utils": "0.4.2",
|
|
63
|
+
"@better-fetch/fetch": "1.3.2",
|
|
64
|
+
"@matrix-org/matrix-sdk-crypto-nodejs": "0.6.6",
|
|
65
|
+
"better-auth": "1.7.6",
|
|
66
|
+
"better-call": "1.4.0",
|
|
63
67
|
"publint": "^0.3.25",
|
|
64
68
|
"tsdown": "^0.23.1",
|
|
65
|
-
"typescript": "7.0.2",
|
|
66
69
|
"zod": "^4.6.7"
|
|
67
70
|
},
|
|
71
|
+
"peerDependencies": {
|
|
72
|
+
"@matrix-org/matrix-sdk-crypto-nodejs": "^0.6.6"
|
|
73
|
+
},
|
|
74
|
+
"peerDependenciesMeta": {
|
|
75
|
+
"@matrix-org/matrix-sdk-crypto-nodejs": {
|
|
76
|
+
"optional": true
|
|
77
|
+
}
|
|
78
|
+
},
|
|
68
79
|
"engines": {
|
|
69
80
|
"node": ">=22"
|
|
70
81
|
}
|