3 Commits
1.0.1 ... nswag

Author SHA1 Message Date
1a8ffe89bc Update api.nswag 2025-05-26 18:06:19 -03:00
6b7525c7b0 Patch v1.0.2 2025-05-17 11:44:41 -03:00
aff56dfad6 Update api.js 2025-05-17 11:42:15 -03:00
4 changed files with 27 additions and 5 deletions

View File

@ -8,9 +8,7 @@ dotenv.config();
async function main() { async function main() {
const tribufu = TribufuApi.fromEnv(); const tribufu = TribufuApi.fromEnv();
console.log( console.log(await tribufu.getUserInfo());
await tribufu.getServerByAddressAndQueryPort("mine.tribufu.com", 25565),
);
} }
main(); main();

View File

@ -1,6 +1,6 @@
{ {
"name": "tribufu", "name": "tribufu",
"version": "1.0.1", "version": "1.0.2",
"description": "Tribufu JS SDK", "description": "Tribufu JS SDK",
"repository": "https://github.com/Tribufu/TribufuJs", "repository": "https://github.com/Tribufu/TribufuJs",
"author": "Tribufu <contact@Tribufu.com>", "author": "Tribufu <contact@Tribufu.com>",

View File

@ -4,7 +4,7 @@
"documentGenerator": { "documentGenerator": {
"fromDocument": { "fromDocument": {
"json": "", "json": "",
"url": "https://api.tribufu.com/v1/openapi.json", "url": "http://localhost:5000/openapi.json",
"output": null, "output": null,
"newLineBehavior": "Auto" "newLineBehavior": "Auto"
} }

View File

@ -2713,6 +2713,29 @@ export interface Account {
updated: string | null; updated: string | null;
} }
export interface Application {
id: string;
name: string | null;
description: string | null;
type: ApplicationType;
organization_id: string | null;
icon_url: string | null;
banner_url: string | null;
capsule_image_url: string | null;
library_image_url: string | null;
parent_id: string | null;
slug: string | null;
visibility: number;
password: string | null;
primary: number;
user_count: number;
achievement_count: number;
badge_count: number | null;
download_count: number;
created: string;
updated: string | null;
}
export enum ApplicationType { export enum ApplicationType {
Application = "application", Application = "application",
Game = "game", Game = "game",
@ -2830,6 +2853,7 @@ export interface Group {
export interface GroupGame { export interface GroupGame {
group_id: string; group_id: string;
application_id: string; application_id: string;
application: Application;
stats: any | null; stats: any | null;
acquired: string; acquired: string;
last_used: string | null; last_used: string | null;