feat: add CASL authorization and AI configuration

This commit is contained in:
2026-07-11 14:25:34 +08:00
parent 8f0991a51f
commit 1e1c476bc3
59 changed files with 7733 additions and 120 deletions

48
package-lock.json generated
View File

@@ -56,6 +56,7 @@
"version": "0.0.1",
"license": "UNLICENSED",
"dependencies": {
"@casl/ability": "^7.0.1",
"@nestjs/common": "^11.0.1",
"@nestjs/config": "^4.0.4",
"@nestjs/core": "^11.0.1",
@@ -1039,6 +1040,18 @@
"url": "https://github.com/sponsors/Borewit"
}
},
"node_modules/@casl/ability": {
"version": "7.0.1",
"resolved": "https://registry.npmmirror.com/@casl/ability/-/ability-7.0.1.tgz",
"integrity": "sha512-krOW1zQGEie5lH6fpryrcsPvc5r2pe5Vn5xbthuzc5X9gwzHIyZgGGgw9dMoSLHXdjB4BIVxGG/HBkG+1NuyZQ==",
"license": "MIT",
"dependencies": {
"@ucast/mongo2js": "^2.0.0"
},
"funding": {
"url": "https://github.com/stalniy/casl/blob/master/BACKERS.md"
}
},
"node_modules/@colors/colors": {
"version": "1.5.0",
"resolved": "https://registry.npmmirror.com/@colors/colors/-/colors-1.5.0.tgz",
@@ -6169,6 +6182,41 @@
"url": "https://opencollective.com/eslint"
}
},
"node_modules/@ucast/core": {
"version": "2.0.0",
"resolved": "https://registry.npmmirror.com/@ucast/core/-/core-2.0.0.tgz",
"integrity": "sha512-4XVx6LzPXZGvnZO5jp39cm/G4UvuwvEdtmg+9+4+zl6uFkCcB7UJacvtMYeBE56GJVT99Zqy6Pii7dGJq3Kz9Q==",
"license": "Apache-2.0"
},
"node_modules/@ucast/js": {
"version": "4.0.1",
"resolved": "https://registry.npmmirror.com/@ucast/js/-/js-4.0.1.tgz",
"integrity": "sha512-9O5xPBvwEWQk2WvO69Eh2WJB8QljVZ2vRVdFvfnKjlZwWXcYxp1lqLBhwXBU1AtuSgCvKhJPkXdjKJggUmAmQQ==",
"license": "Apache-2.0",
"dependencies": {
"@ucast/core": "2.0.0"
}
},
"node_modules/@ucast/mongo": {
"version": "3.0.0",
"resolved": "https://registry.npmmirror.com/@ucast/mongo/-/mongo-3.0.0.tgz",
"integrity": "sha512-kwuSH+kdB4GCR0LGhy/PEDm4PCflur89AlK82kNiYD0FvsA8A/p+0sx7m+/R8mMFAlmlkAd3VXp7sM/cLLYWYg==",
"license": "Apache-2.0",
"dependencies": {
"@ucast/core": "2.0.0"
}
},
"node_modules/@ucast/mongo2js": {
"version": "2.0.0",
"resolved": "https://registry.npmmirror.com/@ucast/mongo2js/-/mongo2js-2.0.0.tgz",
"integrity": "sha512-vNBZzRnsfLr/TSxEoxz6W6hHQ5tmWsfEeC0nCq5z8RezC1AqIRy3cfHm8AGvlGtcn+cTSFQcZremfqnz6wm+nQ==",
"license": "Apache-2.0",
"dependencies": {
"@ucast/core": "2.0.0",
"@ucast/js": "4.0.1",
"@ucast/mongo": "3.0.0"
}
},
"node_modules/@ungap/structured-clone": {
"version": "1.3.2",
"resolved": "https://registry.npmmirror.com/@ungap/structured-clone/-/structured-clone-1.3.2.tgz",