Compare commits
17 Commits
359ba5bdc0
...
main
Author | SHA1 | Date | |
---|---|---|---|
95becbb66a | |||
ab9443fe29 | |||
9438275f56 | |||
f67e461cdc | |||
b3b8eff9fb | |||
159473250c | |||
8318d5c820 | |||
e7e94c16dc | |||
9e66471360 | |||
c6063d5a6d | |||
8ead1c47be | |||
e58196bd9f | |||
87c3b71fba | |||
bced42ae57 | |||
8b42fcc00d | |||
e93de67e04 | |||
90321c63db |
21
LICENSE
Normal file
21
LICENSE
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
MIT License
|
||||||
|
|
||||||
|
Copyright (c) 2025 TGP
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
SOFTWARE.
|
11
README.md
11
README.md
@ -1,4 +1,13 @@
|
|||||||
## The All Seeing Eye
|
<div>
|
||||||
|
<a href="https://git.thegoober.xyz/TGP/tase-api-node">
|
||||||
|
<img alt="Gitea Last Commit" src="https://img.shields.io/gitea/last-commit/TGP/tase-api-node?gitea_url=https%3A%2F%2Fgit.thegoober.xyz%2F">
|
||||||
|
</a>
|
||||||
|
<a href="https://www.npmjs.com/package/tase-api">
|
||||||
|
<img alt="NPM Last Update" src="https://img.shields.io/npm/last-update/tase-api">
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
## The All Seeing Eye API
|
||||||
This is the official (and pretty simple wrapper) for The All Seeing Eye, a Discord bot that can identify if a user is inside servers that break ROBLOX's Terms Of Service.
|
This is the official (and pretty simple wrapper) for The All Seeing Eye, a Discord bot that can identify if a user is inside servers that break ROBLOX's Terms Of Service.
|
||||||
|
|
||||||
This package supports both browser and node with because it uses [`cross-fetch`](https://npmjs.com/cross-fetch)
|
This package supports both browser and node with because it uses [`cross-fetch`](https://npmjs.com/cross-fetch)
|
4
package-lock.json
generated
4
package-lock.json
generated
@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "npm",
|
"name": "npm",
|
||||||
"version": "1.0.0",
|
"version": "1.2.2",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "npm",
|
"name": "npm",
|
||||||
"version": "1.0.0",
|
"version": "1.2.2",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"tsup": "^8.5.0",
|
"tsup": "^8.5.0",
|
||||||
|
11
package.json
11
package.json
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "tase-api",
|
"name": "tase",
|
||||||
"version": "1.0.1",
|
"version": "1.2.2",
|
||||||
"description": "The official NPM wrapper for The All Seeing Eye's API",
|
"description": "The official NPM wrapper for The All Seeing Eye's API",
|
||||||
"main": "./dist/index.js",
|
"main": "./dist/index.js",
|
||||||
"module": "./dist/index.mjs",
|
"module": "./dist/index.mjs",
|
||||||
@ -11,6 +11,13 @@
|
|||||||
"require": "./dist/index.js"
|
"require": "./dist/index.js"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"files": [
|
||||||
|
"dist",
|
||||||
|
"README.md"
|
||||||
|
],
|
||||||
|
"repository": {
|
||||||
|
"url": "https://git.thegoober.xyz/TGP/tase-api-node"
|
||||||
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "tsup"
|
"build": "tsup"
|
||||||
},
|
},
|
||||||
|
@ -21,14 +21,14 @@ export class TASEClient {
|
|||||||
* @returns A boolean indicating if the current token can be used on TASE's API.
|
* @returns A boolean indicating if the current token can be used on TASE's API.
|
||||||
*/
|
*/
|
||||||
async validate(): Promise<boolean> {
|
async validate(): Promise<boolean> {
|
||||||
const Response = await fetch(TASEApi + `/api/v1/key/validate`, {
|
const Response = await fetch(TASEApi + `/api/v1/auth/validate`, {
|
||||||
headers: {
|
headers: {
|
||||||
authorization: `Bearer ${this.token}`
|
authorization: `Bearer ${this.token}`
|
||||||
},
|
},
|
||||||
method: "GET"
|
method: "GET"
|
||||||
})
|
})
|
||||||
|
|
||||||
return Response.ok
|
return (await Response.json()).authenticated
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -72,7 +72,7 @@ export class TASEClient {
|
|||||||
if(UserIDs.length > 10000) throw new Error("The amount of UserIDs must be less than 10,000.")
|
if(UserIDs.length > 10000) throw new Error("The amount of UserIDs must be less than 10,000.")
|
||||||
if(UserIDs.length < 1) throw new Error("The amount of UserIDs must be atleast 1 character.")
|
if(UserIDs.length < 1) throw new Error("The amount of UserIDs must be atleast 1 character.")
|
||||||
|
|
||||||
const Response = await fetch(TASEApi + `/api/v1/mass-check`, {
|
const Response = await fetch(TASEApi + `/api/v1/check/mass`, {
|
||||||
headers: {
|
headers: {
|
||||||
authorization: `Bearer ${this.token}`,
|
authorization: `Bearer ${this.token}`,
|
||||||
"content-type": "application/json"
|
"content-type": "application/json"
|
||||||
|
@ -42,10 +42,6 @@ export interface CheckResult {
|
|||||||
* What is the ID of the user?
|
* What is the ID of the user?
|
||||||
*/
|
*/
|
||||||
userId: string,
|
userId: string,
|
||||||
/**
|
|
||||||
* When did this user appeal? (if they have appealed.)
|
|
||||||
*/
|
|
||||||
appealDate?: Date
|
|
||||||
/**
|
/**
|
||||||
* The summed up score of all the `guilds`.
|
* The summed up score of all the `guilds`.
|
||||||
*/
|
*/
|
||||||
|
Reference in New Issue
Block a user