pterodactyl-api-client 1.0.1 → 2.0.0
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 +0 -0
- package/dist/application/application.client.d.ts +11 -0
- package/dist/application/application.client.d.ts.map +1 -0
- package/dist/application/application.client.js +12 -0
- package/dist/application/index.cjs +3 -0
- package/dist/application/index.d.ts +4 -0
- package/dist/application/index.d.ts.map +1 -0
- package/dist/application/index.js +3 -0
- package/dist/application/user/index.cjs +3 -0
- package/dist/application/user/user.client.d.ts +43 -0
- package/dist/application/user/user.client.d.ts.map +1 -0
- package/dist/application/user/user.client.js +102 -0
- package/dist/application/user/user.types.d.ts +44 -0
- package/dist/application/user/user.types.d.ts.map +1 -0
- package/dist/class.d.ts +2 -2
- package/dist/class.d.ts.map +1 -1
- package/dist/class.js +4 -6
- package/dist/client/server/server.client.d.ts +3 -3
- package/dist/client/server/server.client.d.ts.map +1 -1
- package/dist/client/server/server.types.d.ts +53 -48
- package/dist/client/server/server.types.d.ts.map +1 -1
- package/dist/types.d.ts +0 -1
- package/dist/types.d.ts.map +1 -1
- package/package.json +6 -1
- package/dist/client/server/serveur.types.d.ts +0 -99
- package/dist/client/server/serveur.types.d.ts.map +0 -1
- /package/dist/{client/server/serveur.types.js → application/user/user.types.js} +0 -0
package/README.md
CHANGED
|
Binary file
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import UserClient from "./user/user.client.js";
|
|
2
|
+
export default class ApplicationAPI {
|
|
3
|
+
private httpClient;
|
|
4
|
+
readonly panelUrl: URL;
|
|
5
|
+
user: UserClient;
|
|
6
|
+
constructor({ apiKey, panelUrl }: {
|
|
7
|
+
apiKey: string;
|
|
8
|
+
panelUrl: URL;
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=application.client.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"application.client.d.ts","sourceRoot":"","sources":["../../src/application/application.client.ts"],"names":[],"mappings":"AACA,OAAO,UAAU,MAAM,uBAAuB,CAAC;AAE/C,MAAM,CAAC,OAAO,OAAO,cAAc;IACjC,OAAO,CAAC,UAAU,CAAa;IAC/B,QAAQ,CAAC,QAAQ,EAAE,GAAG,CAAC;IAChB,IAAI,EAAE,UAAU,CAAC;gBAEZ,EAAE,MAAM,EAAE,QAAQ,EAAE,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,GAAG,CAAA;KAAE;CAKpE"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import HttpClient from "../class/HttpClient.js";
|
|
2
|
+
import UserClient from "./user/user.client.js";
|
|
3
|
+
export default class ApplicationAPI {
|
|
4
|
+
httpClient;
|
|
5
|
+
panelUrl;
|
|
6
|
+
user;
|
|
7
|
+
constructor({ apiKey, panelUrl }) {
|
|
8
|
+
this.panelUrl = panelUrl;
|
|
9
|
+
this.httpClient = new HttpClient(panelUrl, apiKey);
|
|
10
|
+
this.user = new UserClient(this.httpClient);
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/application/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACjE,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAE9D,cAAc,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import type HttpClient from "../../class/HttpClient.js";
|
|
2
|
+
import type { CreateUserArgs, User, UserAttributes, UserWithServersAttributes } from "./user.types.js";
|
|
3
|
+
export default class UserClient {
|
|
4
|
+
private httpClient;
|
|
5
|
+
constructor(httpClient: HttpClient);
|
|
6
|
+
list<T extends boolean | undefined>({ includeServers, }?: {
|
|
7
|
+
includeServers?: T;
|
|
8
|
+
}): Promise<{
|
|
9
|
+
data: {
|
|
10
|
+
attributes: (T extends true ? UserWithServersAttributes : UserAttributes<string>) & {
|
|
11
|
+
created_at: Date;
|
|
12
|
+
updated_at: Date;
|
|
13
|
+
};
|
|
14
|
+
object: "user";
|
|
15
|
+
}[];
|
|
16
|
+
meta: {
|
|
17
|
+
pagination: import("../../types.js").Pagination;
|
|
18
|
+
};
|
|
19
|
+
object: "list";
|
|
20
|
+
}>;
|
|
21
|
+
info<T extends boolean | undefined>({ id, external_id, }: {
|
|
22
|
+
id?: number | undefined;
|
|
23
|
+
external_id?: string | undefined;
|
|
24
|
+
}, { includeServers }?: {
|
|
25
|
+
includeServers?: T;
|
|
26
|
+
}): Promise<{
|
|
27
|
+
attributes: (T extends true ? UserWithServersAttributes : UserAttributes<string>) & {
|
|
28
|
+
created_at: Date;
|
|
29
|
+
updated_at: Date;
|
|
30
|
+
};
|
|
31
|
+
object: "user";
|
|
32
|
+
} | {
|
|
33
|
+
attributes: (T extends true ? UserWithServersAttributes : UserAttributes<string>) & {
|
|
34
|
+
created_at: Date;
|
|
35
|
+
updated_at: Date;
|
|
36
|
+
};
|
|
37
|
+
object: "user";
|
|
38
|
+
}>;
|
|
39
|
+
create(args: CreateUserArgs): Promise<User<UserAttributes<string>>>;
|
|
40
|
+
edit(id: number, args: CreateUserArgs): Promise<User<UserAttributes<string>>>;
|
|
41
|
+
delete(id: number): Promise<void>;
|
|
42
|
+
}
|
|
43
|
+
//# sourceMappingURL=user.client.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user.client.d.ts","sourceRoot":"","sources":["../../../src/application/user/user.client.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,UAAU,MAAM,2BAA2B,CAAC;AACxD,OAAO,KAAK,EACV,cAAc,EACd,IAAI,EACJ,cAAc,EAEd,yBAAyB,EAC1B,MAAM,iBAAiB,CAAC;AAEzB,MAAM,CAAC,OAAO,OAAO,UAAU;IACjB,OAAO,CAAC,UAAU;gBAAV,UAAU,EAAE,UAAU;IAEpC,IAAI,CAAC,CAAC,SAAS,OAAO,GAAG,SAAS,EAAE,EACxC,cAAc,GACf,GAAE;QAAE,cAAc,CAAC,EAAE,CAAC,CAAA;KAAO;;;;;;;;;;;;;IA+CxB,IAAI,CAAC,CAAC,SAAS,OAAO,GAAG,SAAS,EACtC,EACE,EAAE,EACF,WAAW,GACZ,EAAE;QAAE,EAAE,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;QAAC,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;KAAE,EAChE,EAAE,cAAc,EAAE,GAAE;QAAE,cAAc,CAAC,EAAE,CAAC,CAAA;KAAO;;;;;;;;;;;;;IA0CjD,MAAM,CAAC,IAAI,EAAE,cAAc;IAiB3B,IAAI,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,cAAc;IAiBrC,MAAM,CAAC,EAAE,EAAE,MAAM;CAGlB"}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import z from "zod";
|
|
2
|
+
export default class UserClient {
|
|
3
|
+
httpClient;
|
|
4
|
+
constructor(httpClient) {
|
|
5
|
+
this.httpClient = httpClient;
|
|
6
|
+
}
|
|
7
|
+
async list({ includeServers, } = {}) {
|
|
8
|
+
const res = await this.httpClient.request("GET", `/application/users${includeServers ? "?include=servers" : ""}`);
|
|
9
|
+
return includeServers
|
|
10
|
+
? {
|
|
11
|
+
...res,
|
|
12
|
+
data: res.data.map((user) => ({
|
|
13
|
+
...user,
|
|
14
|
+
attributes: {
|
|
15
|
+
...user.attributes,
|
|
16
|
+
created_at: new Date(user.attributes.created_at),
|
|
17
|
+
updated_at: new Date(user.attributes.updated_at),
|
|
18
|
+
relationships: {
|
|
19
|
+
...user.attributes
|
|
20
|
+
.relationships,
|
|
21
|
+
servers: {
|
|
22
|
+
...user.attributes
|
|
23
|
+
.relationships.servers,
|
|
24
|
+
...user.attributes.relationships.servers.data.map((server) => ({
|
|
25
|
+
...server,
|
|
26
|
+
attributes: {
|
|
27
|
+
...server.attributes,
|
|
28
|
+
},
|
|
29
|
+
})),
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
})),
|
|
34
|
+
}
|
|
35
|
+
: {
|
|
36
|
+
...res,
|
|
37
|
+
data: res.data.map((user) => ({
|
|
38
|
+
...user,
|
|
39
|
+
attributes: {
|
|
40
|
+
...user.attributes,
|
|
41
|
+
created_at: new Date(user.attributes.created_at),
|
|
42
|
+
updated_at: new Date(user.attributes.updated_at),
|
|
43
|
+
},
|
|
44
|
+
})),
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
async info({ id, external_id, }, { includeServers } = {}) {
|
|
48
|
+
if (id) {
|
|
49
|
+
const res = await this.httpClient.request("GET", `/application/users/${id}${includeServers ? "?include=servers" : ""}`);
|
|
50
|
+
return {
|
|
51
|
+
...res,
|
|
52
|
+
attributes: {
|
|
53
|
+
...res.attributes,
|
|
54
|
+
created_at: new Date(res.attributes.created_at),
|
|
55
|
+
updated_at: new Date(res.attributes.updated_at),
|
|
56
|
+
},
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
else if (external_id) {
|
|
60
|
+
const res = await this.httpClient.request("GET", `/application/users/external/${external_id}${includeServers ? "?include=servers" : ""}`);
|
|
61
|
+
return {
|
|
62
|
+
...res,
|
|
63
|
+
attributes: {
|
|
64
|
+
...res.attributes,
|
|
65
|
+
created_at: new Date(res.attributes.created_at),
|
|
66
|
+
updated_at: new Date(res.attributes.updated_at),
|
|
67
|
+
},
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
else
|
|
71
|
+
throw new Error("Vous devez spécifier au moins un des 2 paramètres de recherche d'un utilisateur !");
|
|
72
|
+
}
|
|
73
|
+
create(args) {
|
|
74
|
+
const schema = z.object({
|
|
75
|
+
email: z.email(),
|
|
76
|
+
username: z.string(),
|
|
77
|
+
first_name: z.string(),
|
|
78
|
+
last_name: z.string(),
|
|
79
|
+
password: z.string().optional(),
|
|
80
|
+
language: z.string().optional(),
|
|
81
|
+
root_admin: z.boolean().optional(),
|
|
82
|
+
external_id: z.string().optional(),
|
|
83
|
+
});
|
|
84
|
+
return this.httpClient.request("POST", "/application/users", schema.parse(args));
|
|
85
|
+
}
|
|
86
|
+
edit(id, args) {
|
|
87
|
+
const schema = z.object({
|
|
88
|
+
email: z.email(),
|
|
89
|
+
username: z.string(),
|
|
90
|
+
first_name: z.string(),
|
|
91
|
+
last_name: z.string(),
|
|
92
|
+
password: z.string().optional(),
|
|
93
|
+
language: z.string().optional(),
|
|
94
|
+
root_admin: z.boolean().optional(),
|
|
95
|
+
external_id: z.string().optional(),
|
|
96
|
+
});
|
|
97
|
+
return this.httpClient.request("PATCH", `/application/users/${id}`, schema.parse(args));
|
|
98
|
+
}
|
|
99
|
+
delete(id) {
|
|
100
|
+
return this.httpClient.request("DELETE", `/application/users/${id}`);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import type { UserServer, UserServerAttributesWithDate } from "../../client/server/index.js";
|
|
2
|
+
import type { BaseArgs, ListwithPagination } from "../../types.js";
|
|
3
|
+
export interface UserAttributes<T extends string | Date> {
|
|
4
|
+
id: number;
|
|
5
|
+
external_id: null | string;
|
|
6
|
+
uuid: string;
|
|
7
|
+
username: string;
|
|
8
|
+
email: string;
|
|
9
|
+
first_name: string;
|
|
10
|
+
last_name: string;
|
|
11
|
+
language: string;
|
|
12
|
+
root_admin: true;
|
|
13
|
+
"2fa": boolean;
|
|
14
|
+
created_at: T;
|
|
15
|
+
updated_at: T;
|
|
16
|
+
}
|
|
17
|
+
export interface User<T extends UserAttributes<string> | UserWithServersAttributes> {
|
|
18
|
+
object: "user";
|
|
19
|
+
attributes: T;
|
|
20
|
+
}
|
|
21
|
+
export interface UserWithServersAttributes extends UserAttributes<string> {
|
|
22
|
+
relationships: {
|
|
23
|
+
servers: {
|
|
24
|
+
object: "list";
|
|
25
|
+
data: UserServer<UserServerAttributesWithDate<string>>[];
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
export interface UserList<T extends UserAttributes<string> | UserWithServersAttributes> extends ListwithPagination {
|
|
30
|
+
data: User<T>[];
|
|
31
|
+
}
|
|
32
|
+
export interface CreateUserArgs extends BaseArgs {
|
|
33
|
+
email: string;
|
|
34
|
+
username: string;
|
|
35
|
+
first_name: string;
|
|
36
|
+
last_name: string;
|
|
37
|
+
password?: string | undefined;
|
|
38
|
+
language?: string | undefined;
|
|
39
|
+
root_admin?: boolean | undefined;
|
|
40
|
+
external_id?: string | undefined;
|
|
41
|
+
}
|
|
42
|
+
export interface EditUserArgs extends BaseArgs {
|
|
43
|
+
}
|
|
44
|
+
//# sourceMappingURL=user.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user.types.d.ts","sourceRoot":"","sources":["../../../src/application/user/user.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,UAAU,EACV,4BAA4B,EAC7B,MAAM,8BAA8B,CAAC;AACtC,OAAO,KAAK,EAAE,QAAQ,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAEnE,MAAM,WAAW,cAAc,CAAC,CAAC,SAAS,MAAM,GAAG,IAAI;IACrD,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,EAAE,IAAI,GAAG,MAAM,CAAC;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,IAAI,CAAC;IACjB,KAAK,EAAE,OAAO,CAAC;IACf,UAAU,EAAE,CAAC,CAAC;IACd,UAAU,EAAE,CAAC,CAAC;CACf;AAED,MAAM,WAAW,IAAI,CACnB,CAAC,SAAS,cAAc,CAAC,MAAM,CAAC,GAAG,yBAAyB;IAE5D,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,CAAC,CAAC;CACf;AAED,MAAM,WAAW,yBAA0B,SAAQ,cAAc,CAAC,MAAM,CAAC;IACvE,aAAa,EAAE;QACb,OAAO,EAAE;YACP,MAAM,EAAE,MAAM,CAAC;YACf,IAAI,EAAE,UAAU,CAAC,4BAA4B,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC;SAC1D,CAAC;KACH,CAAC;CACH;AAED,MAAM,WAAW,QAAQ,CACvB,CAAC,SAAS,cAAc,CAAC,MAAM,CAAC,GAAG,yBAAyB,CAC5D,SAAQ,kBAAkB;IAC1B,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC;CACjB;AAED,MAAM,WAAW,cAAe,SAAQ,QAAQ;IAC9C,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B,UAAU,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IACjC,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAClC;AAED,MAAM,WAAW,YAAa,SAAQ,QAAQ;CAE7C"}
|
package/dist/class.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import ApplicationAPI from "./application/application.client.js";
|
|
1
2
|
import { ClientAPI } from "./client/index.js";
|
|
2
|
-
import type { role } from "./types.js";
|
|
3
3
|
export default class PterodactylAPIClient {
|
|
4
4
|
readonly panelUrl: URL;
|
|
5
|
-
readonly role: role;
|
|
6
5
|
user: ClientAPI;
|
|
6
|
+
admin?: ApplicationAPI;
|
|
7
7
|
constructor({ apiKey, panelUrl }: {
|
|
8
8
|
apiKey: string;
|
|
9
9
|
panelUrl: string;
|
package/dist/class.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"class.d.ts","sourceRoot":"","sources":["../src/class.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"class.d.ts","sourceRoot":"","sources":["../src/class.ts"],"names":[],"mappings":"AAAA,OAAO,cAAc,MAAM,qCAAqC,CAAC;AACjE,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,MAAM,CAAC,OAAO,OAAO,oBAAoB;IACvC,QAAQ,CAAC,QAAQ,EAAE,GAAG,CAAC;IAChB,IAAI,EAAE,SAAS,CAAC;IAChB,KAAK,CAAC,EAAE,cAAc,CAAC;gBAElB,EAAE,MAAM,EAAE,QAAQ,EAAE,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE;CAQvE"}
|
package/dist/class.js
CHANGED
|
@@ -1,16 +1,14 @@
|
|
|
1
|
+
import ApplicationAPI from "./application/application.client.js";
|
|
1
2
|
import { ClientAPI } from "./client/index.js";
|
|
2
3
|
export default class PterodactylAPIClient {
|
|
3
4
|
panelUrl;
|
|
4
|
-
role;
|
|
5
5
|
user;
|
|
6
|
+
admin;
|
|
6
7
|
constructor({ apiKey, panelUrl }) {
|
|
7
8
|
this.panelUrl = new URL(panelUrl);
|
|
8
9
|
this.user = new ClientAPI({ panelUrl: this.panelUrl, apiKey });
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
else if (apiKey.startsWith("ptla"))
|
|
12
|
-
this.role = "admin";
|
|
13
|
-
else
|
|
10
|
+
this.admin = new ApplicationAPI({ panelUrl: this.panelUrl, apiKey });
|
|
11
|
+
if (!apiKey.startsWith("ptla") && !apiKey.startsWith("ptlc"))
|
|
14
12
|
throw new Error("Invalide API key");
|
|
15
13
|
}
|
|
16
14
|
}
|
|
@@ -5,7 +5,7 @@ import ImageClient from "./image/image.client.js";
|
|
|
5
5
|
import { AllocationClient, DatabaseClient, ScheduleClient, SubuserClient } from "./index.js";
|
|
6
6
|
import PowerClient from "./power/power.client.js";
|
|
7
7
|
import RessourceClient from "./ressource/ressource.client.js";
|
|
8
|
-
import type { EditServerArgs,
|
|
8
|
+
import type { EditServerArgs, UserServerAttributes, UserServerList, UserServer } from "./server.types.js";
|
|
9
9
|
import StartupClient from "./startup/startup.client.js";
|
|
10
10
|
export default class Servers {
|
|
11
11
|
private httpClient;
|
|
@@ -24,8 +24,8 @@ export default class Servers {
|
|
|
24
24
|
list({ page, per_page, }: {
|
|
25
25
|
page?: number | undefined;
|
|
26
26
|
per_page?: number | undefined;
|
|
27
|
-
}): Promise<
|
|
28
|
-
info(id: string): Promise<
|
|
27
|
+
}): Promise<UserServerList<UserServerAttributes>>;
|
|
28
|
+
info(id: string): Promise<UserServer<UserServerAttributes>>;
|
|
29
29
|
edit(id: string, args: EditServerArgs): Promise<void>;
|
|
30
30
|
reinstall(id: string): Promise<void>;
|
|
31
31
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.client.d.ts","sourceRoot":"","sources":["../../../src/client/server/server.client.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,UAAU,MAAM,2BAA2B,CAAC;AACxD,OAAO,cAAc,MAAM,+BAA+B,CAAC;AAC3D,OAAO,aAAa,MAAM,6BAA6B,CAAC;AACxD,OAAO,WAAW,MAAM,yBAAyB,CAAC;AAClD,OAAO,EACL,gBAAgB,EAChB,cAAc,EACd,cAAc,EACd,aAAa,EACd,MAAM,YAAY,CAAC;AACpB,OAAO,WAAW,MAAM,yBAAyB,CAAC;AAClD,OAAO,eAAe,MAAM,iCAAiC,CAAC;AAC9D,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"server.client.d.ts","sourceRoot":"","sources":["../../../src/client/server/server.client.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,UAAU,MAAM,2BAA2B,CAAC;AACxD,OAAO,cAAc,MAAM,+BAA+B,CAAC;AAC3D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|
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
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
35
|
+
export interface UserServerAttributes {
|
|
36
|
+
server_owner: boolean;
|
|
37
|
+
identifier: string;
|
|
38
|
+
internal_id: number;
|
|
39
|
+
uuid: string;
|
|
40
|
+
name: string;
|
|
41
|
+
is_node_under_maintenance: boolean;
|
|
42
|
+
description: string;
|
|
43
|
+
status: null;
|
|
44
|
+
is_suspended: boolean;
|
|
45
|
+
is_installing: boolean;
|
|
46
|
+
is_transferring: boolean;
|
|
47
|
+
node: string;
|
|
48
|
+
sftp_details: {
|
|
49
|
+
ip: string;
|
|
50
|
+
port: number;
|
|
51
|
+
};
|
|
52
|
+
invocation: string;
|
|
53
|
+
docker_image: string;
|
|
54
|
+
egg_features: string[];
|
|
55
|
+
feature_limits: {
|
|
56
|
+
databases: number;
|
|
57
|
+
allocations: number;
|
|
58
|
+
backups: number;
|
|
59
|
+
};
|
|
60
|
+
user_permissions: ServerPermissions[];
|
|
61
|
+
limits: {
|
|
62
|
+
memory: number;
|
|
63
|
+
swap: number;
|
|
64
|
+
disk: number;
|
|
65
|
+
io: number;
|
|
66
|
+
cpu: number;
|
|
67
|
+
threads: null | string;
|
|
68
|
+
oom_disabled: boolean;
|
|
69
|
+
};
|
|
70
|
+
relationships: {
|
|
71
|
+
allocations: {
|
|
72
|
+
object: "list";
|
|
73
|
+
data: Allocation[];
|
|
71
74
|
};
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
data: Allocation[];
|
|
76
|
-
};
|
|
77
|
-
variables: {
|
|
78
|
-
object: "list";
|
|
79
|
-
data: EggVariable[];
|
|
80
|
-
};
|
|
75
|
+
variables: {
|
|
76
|
+
object: "list";
|
|
77
|
+
data: EggVariable[];
|
|
81
78
|
};
|
|
82
79
|
};
|
|
83
80
|
}
|
|
84
|
-
export interface
|
|
81
|
+
export interface UserServerAttributesWithDate<T extends string | Date> extends UserServerAttributes {
|
|
82
|
+
updated_at: T;
|
|
83
|
+
created_at: T;
|
|
84
|
+
}
|
|
85
|
+
export interface UserServer<T extends UserServerAttributes | UserServerAttributesWithDate<string>> {
|
|
86
|
+
object: "server";
|
|
87
|
+
attributes: T;
|
|
88
|
+
}
|
|
89
|
+
export interface ServerInfo extends UserServer<UserServerAttributes> {
|
|
85
90
|
meta: {
|
|
86
91
|
is_server_owner: boolean;
|
|
87
92
|
user_permissions: ServerPermissions[];
|
|
88
93
|
};
|
|
89
94
|
}
|
|
90
|
-
export interface
|
|
91
|
-
data:
|
|
95
|
+
export interface UserServerList<T extends UserServerAttributes | UserServerAttributesWithDate<string>> extends ListwithPagination {
|
|
96
|
+
data: UserServer<T>[];
|
|
92
97
|
}
|
|
93
98
|
export type State = "running" | "starting" | "stopping" | "offline";
|
|
94
99
|
export type Signal = "start" | "stop" | "restart" | "kill";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.types.d.ts","sourceRoot":"","sources":["../../../src/client/server/server.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"server.types.d.ts","sourceRoot":"","sources":["../../../src/client/server/server.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,EAAE,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAEvE,MAAM,MAAM,iBAAiB,GACzB,wBAAwB,GACxB,yBAA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d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,MAAM,GAAG,KAAK,GAAG,MAAM,GAAG,KAAK,GAAG,OAAO,GAAG,QAAQ,CAAC;AAEjE,MAAM,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,MAAM,GAAG,KAAK,GAAG,MAAM,GAAG,KAAK,GAAG,OAAO,GAAG,QAAQ,CAAC;AAEjE,MAAM,WAAW,QAAQ;IACvB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,EAAE,GAAG,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;CACjE;AAED,MAAM,MAAM,EAAE,GAAG,GAAG,MAAM,IAAI,MAAM,IAAI,MAAM,IAAI,MAAM,EAAE,CAAC;AAE3D,MAAM,WAAW,UAAU;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAC/B;AAED,KAAK,QAAQ,CAAC,CAAC,EAAE,CAAC,SAAS,MAAM,EAAE,CAAC,SAAS,OAAO,EAAE,IAAI,CAAC,CAAC,QAAQ,CAAC,SAAS,CAAC,GAC3E,CAAC,GACD,QAAQ,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC;AAE9B,MAAM,MAAM,KAAK,CAAC,CAAC,EAAE,CAAC,SAAS,MAAM,IAAI,CAAC,SAAS,CAAC,GAChD,MAAM,SAAS,CAAC,GACd,CAAC,EAAE,GACH,QAAQ,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,GACpB,KAAK,CAAC;AAEV,MAAM,WAAW,IAAI;IACnB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,kBAAmB,SAAQ,IAAI;IAC9C,IAAI,EAAE;QACJ,UAAU,EAAE,UAAU,CAAC;KACxB,CAAC;CACH"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pterodactyl-api-client",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "SDK TypeScript non officiel et entièrement typé pour l’API Pterodactyl.\nCouvre l’ensemble des endpoints client et application avec une architecture modulaire, orientée classes, conçue pour Node.js et les environnements TypeScript stricts.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -29,6 +29,11 @@
|
|
|
29
29
|
"types": "./dist/client/server/index.d.ts",
|
|
30
30
|
"import": "./dist/client/server/index.js",
|
|
31
31
|
"require": "./dist/client/server/index.cjs"
|
|
32
|
+
},
|
|
33
|
+
"./application": {
|
|
34
|
+
"types": "./dist/application/index.d.ts",
|
|
35
|
+
"import": "./dist/application/index.js",
|
|
36
|
+
"require": "./dist/application/index.cjs"
|
|
32
37
|
}
|
|
33
38
|
},
|
|
34
39
|
"scripts": {
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
import type { BaseArgs, IP, ListwithPagination } from "../../types.js";
|
|
2
|
-
export type ServerPermissions = ServerControlPermissions | FileManagementPermissions | BackupPermissions | NetworkAllocationPermissions | DatabsePermissions | SchedulePermissions | UserManagementPermissions | StartupPermissions | AdminPermissions | "*";
|
|
3
|
-
export type ServerControlPermissions = "control.console" | "control.start" | "control.stop" | "control.restart" | "control.kill";
|
|
4
|
-
export type FileManagementPermissions = "file.create" | "file.read" | "file.update" | "file.delete" | "file.archive" | "file.sftp";
|
|
5
|
-
export type BackupPermissions = "backup.create" | "backup.read" | "backup.delete" | "backup.download" | "backup.restore";
|
|
6
|
-
export type NetworkAllocationPermissions = "allocation.read" | "allocation.create" | "allocation.update" | "allocation.delete";
|
|
7
|
-
export type DatabsePermissions = "database.read" | "database.create" | "database.update" | "database.delete";
|
|
8
|
-
export type SchedulePermissions = "schedule.read" | "schedule.create" | "schedule.update" | "schedule.delete";
|
|
9
|
-
export type UserManagementPermissions = "user.read" | "user.create" | "user.update" | "user.delete";
|
|
10
|
-
export type StartupPermissions = "startup.read" | "startup.update";
|
|
11
|
-
export type AdminPermissions = "admin.websocket.errors" | "admin.websocket.install" | "admin.websocket.transfer";
|
|
12
|
-
export interface Allocation {
|
|
13
|
-
object: "allocation";
|
|
14
|
-
attributes: {
|
|
15
|
-
id: number;
|
|
16
|
-
ip: IP;
|
|
17
|
-
ip_alias: null | string;
|
|
18
|
-
port: number;
|
|
19
|
-
notes: null | string;
|
|
20
|
-
is_default: boolean;
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
export interface EggVariable {
|
|
24
|
-
object: "egg_variable";
|
|
25
|
-
attributes: {
|
|
26
|
-
name: string;
|
|
27
|
-
description: string;
|
|
28
|
-
env_variable: Uppercase<string>;
|
|
29
|
-
default_value: string;
|
|
30
|
-
server_value: string;
|
|
31
|
-
is_editable: boolean;
|
|
32
|
-
rules: string;
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
export interface Server {
|
|
36
|
-
object: "server";
|
|
37
|
-
attributes: {
|
|
38
|
-
server_owner: boolean;
|
|
39
|
-
identifier: string;
|
|
40
|
-
internal_id: number;
|
|
41
|
-
uuid: string;
|
|
42
|
-
name: string;
|
|
43
|
-
is_node_under_maintenance: boolean;
|
|
44
|
-
description: string;
|
|
45
|
-
status: null;
|
|
46
|
-
is_suspended: boolean;
|
|
47
|
-
is_installing: boolean;
|
|
48
|
-
is_transferring: boolean;
|
|
49
|
-
node: string;
|
|
50
|
-
sftp_details: {
|
|
51
|
-
ip: string;
|
|
52
|
-
port: number;
|
|
53
|
-
};
|
|
54
|
-
invocation: string;
|
|
55
|
-
docker_image: string;
|
|
56
|
-
egg_features: string[];
|
|
57
|
-
feature_limits: {
|
|
58
|
-
databases: number;
|
|
59
|
-
allocations: number;
|
|
60
|
-
backups: number;
|
|
61
|
-
};
|
|
62
|
-
user_permissions: ServerPermissions[];
|
|
63
|
-
limits: {
|
|
64
|
-
memory: number;
|
|
65
|
-
swap: number;
|
|
66
|
-
disk: number;
|
|
67
|
-
io: number;
|
|
68
|
-
cpu: number;
|
|
69
|
-
threads: null | string;
|
|
70
|
-
oom_disabled: boolean;
|
|
71
|
-
};
|
|
72
|
-
relationships: {
|
|
73
|
-
allocations: {
|
|
74
|
-
object: "list";
|
|
75
|
-
data: Allocation[];
|
|
76
|
-
};
|
|
77
|
-
variables: {
|
|
78
|
-
object: "list";
|
|
79
|
-
data: EggVariable[];
|
|
80
|
-
};
|
|
81
|
-
};
|
|
82
|
-
};
|
|
83
|
-
}
|
|
84
|
-
export interface ServerInfo extends Server {
|
|
85
|
-
meta: {
|
|
86
|
-
is_server_owner: boolean;
|
|
87
|
-
user_permissions: ServerPermissions[];
|
|
88
|
-
};
|
|
89
|
-
}
|
|
90
|
-
export interface ServerList extends ListwithPagination {
|
|
91
|
-
data: Server[];
|
|
92
|
-
}
|
|
93
|
-
export type State = "running" | "starting" | "stopping" | "offline";
|
|
94
|
-
export type Signal = "start" | "stop" | "restart" | "kill";
|
|
95
|
-
export interface EditServerArgs extends BaseArgs {
|
|
96
|
-
name: string;
|
|
97
|
-
description?: string | undefined;
|
|
98
|
-
}
|
|
99
|
-
//# sourceMappingURL=serveur.types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"serveur.types.d.ts","sourceRoot":"","sources":["../../../src/client/server/serveur.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,QAAQ,EACR,EAAE,EACF,kBAAkB,EAEnB,MAAM,gBAAgB,CAAC;AAExB,MAAM,MAAM,iBAAiB,GACzB,wBAAwB,GAC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