pterodactyl-api-client 3.3.1 → 3.4.1
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 +13 -13
- package/dist/application/application.client.d.ts +12 -12
- package/dist/application/application.client.js +11 -11
- package/dist/application/index.d.ts +2 -2
- package/dist/application/index.js +2 -2
- package/dist/application/location/index.d.ts +3 -3
- package/dist/application/location/index.js +3 -3
- package/dist/application/location/location.client.d.ts +2 -2
- package/dist/application/location/location.client.js +5 -5
- package/dist/application/location/location.schemas.d.ts +1 -1
- package/dist/application/location/location.schemas.js +4 -4
- package/dist/application/location/location.types.d.ts +2 -2
- package/dist/application/locations/index.d.ts +3 -3
- package/dist/application/locations/index.js +3 -3
- package/dist/application/locations/locations.client.d.ts +3 -3
- package/dist/application/locations/locations.client.js +5 -5
- package/dist/application/locations/locations.schemas.d.ts +1 -1
- package/dist/application/locations/locations.schemas.js +1 -1
- package/dist/application/locations/locations.types.d.ts +2 -2
- package/dist/application/nest/egg/egg.client.d.ts +1 -1
- package/dist/application/nest/egg/egg.client.js +2 -2
- package/dist/application/nest/egg/egg.types.d.ts +1 -1
- package/dist/application/nest/eggs/eggs.client.d.ts +1 -1
- package/dist/application/nest/eggs/eggs.client.d.ts.map +1 -1
- package/dist/application/nest/eggs/eggs.client.js +1 -1
- package/dist/application/nest/eggs/eggs.types.d.ts +2 -2
- package/dist/application/nest/index.d.ts +6 -5
- package/dist/application/nest/index.d.ts.map +1 -1
- package/dist/application/nest/index.js +6 -5
- package/dist/application/nest/nest.client.d.ts +5 -1
- package/dist/application/nest/nest.client.d.ts.map +1 -1
- package/dist/application/nest/nest.client.js +9 -2
- package/dist/application/nest/nest.schemas.js +1 -1
- package/dist/application/nest/nest.types.d.ts +1 -1
- package/dist/application/nest/nest.types.d.ts.map +1 -1
- package/dist/application/nests/index.d.ts +2 -2
- package/dist/application/nests/index.js +2 -2
- package/dist/application/nests/nests.client.d.ts +1 -1
- package/dist/application/nests/nests.client.js +1 -1
- package/dist/application/nests/nests.types.d.ts +2 -2
- package/dist/application/node/allocation/allocation.client.d.ts +1 -1
- package/dist/application/node/allocation/allocation.client.js +2 -2
- package/dist/application/node/allocations/allocations.client.d.ts +3 -3
- package/dist/application/node/allocations/allocations.client.js +4 -4
- package/dist/application/node/allocations/allocations.types.d.ts +2 -2
- package/dist/application/node/index.d.ts +6 -6
- package/dist/application/node/index.js +6 -6
- package/dist/application/node/node.client.d.ts +5 -5
- package/dist/application/node/node.client.js +9 -9
- package/dist/application/node/node.schemas.d.ts +1 -1
- package/dist/application/node/node.schemas.js +2 -2
- package/dist/application/node/node.types.d.ts +1 -1
- package/dist/application/nodes/index.d.ts +3 -3
- package/dist/application/nodes/index.js +3 -3
- package/dist/application/nodes/nodes.client.d.ts +3 -3
- package/dist/application/nodes/nodes.client.js +5 -5
- package/dist/application/nodes/nodes.schemas.d.ts +1 -1
- package/dist/application/nodes/nodes.schemas.js +3 -3
- package/dist/application/nodes/nodes.types.d.ts +3 -3
- package/dist/application/nodes/nodes.types.d.ts.map +1 -1
- package/dist/application/server/database/database.client.d.ts +2 -2
- package/dist/application/server/database/database.client.js +4 -4
- package/dist/application/server/database/database.types.d.ts +3 -3
- package/dist/application/server/database/password/password.client.d.ts +1 -1
- package/dist/application/server/database/password/password.client.js +1 -1
- package/dist/application/server/databases/databases.client.d.ts +2 -2
- package/dist/application/server/databases/databases.client.js +4 -4
- package/dist/application/server/databases/databases.types.d.ts +4 -4
- package/dist/application/server/index.d.ts +8 -8
- package/dist/application/server/index.js +8 -8
- package/dist/application/server/server.client.d.ts +4 -4
- package/dist/application/server/server.client.js +13 -13
- package/dist/application/server/server.schemas.d.ts +1 -1
- package/dist/application/server/server.schemas.js +2 -2
- package/dist/application/server/server.types.d.ts +1 -1
- package/dist/application/servers/index.d.ts +3 -3
- package/dist/application/servers/index.js +3 -3
- package/dist/application/servers/servers.client.d.ts +3 -3
- package/dist/application/servers/servers.client.js +5 -5
- package/dist/application/servers/servers.schemas.d.ts +1 -1
- package/dist/application/servers/servers.schemas.js +2 -2
- package/dist/application/servers/servers.types.d.ts +4 -4
- package/dist/application/user/index.d.ts +3 -3
- package/dist/application/user/index.js +3 -3
- package/dist/application/user/user.client.d.ts +3 -3
- package/dist/application/user/user.client.js +6 -6
- package/dist/application/user/user.schemas.d.ts +1 -1
- package/dist/application/user/user.schemas.js +2 -2
- package/dist/application/users/index.d.ts +3 -3
- package/dist/application/users/index.js +3 -3
- package/dist/application/users/users.client.d.ts +3 -3
- package/dist/application/users/users.client.d.ts.map +1 -1
- package/dist/application/users/users.client.js +5 -5
- package/dist/application/users/users.schemas.d.ts +1 -1
- package/dist/application/users/users.schemas.js +1 -1
- package/dist/application/users/users.types.d.ts +5 -5
- package/dist/class/HttpClient.d.ts +2 -2
- package/dist/class/HttpClient.js +3 -3
- package/dist/class.d.ts +4 -4
- package/dist/class.js +6 -6
- package/dist/client/account/a2f/a2f.client.d.ts +3 -3
- package/dist/client/account/a2f/a2f.client.js +5 -5
- package/dist/client/account/a2f/a2f.types.d.ts +3 -3
- package/dist/client/account/account.client.d.ts +8 -8
- package/dist/client/account/account.client.js +8 -8
- package/dist/client/account/account.schemas.d.ts +1 -1
- package/dist/client/account/account.schemas.js +13 -13
- package/dist/client/account/account.types.d.ts +2 -2
- package/dist/client/account/activity/activity.client.d.ts +5 -5
- package/dist/client/account/activity/activity.client.d.ts.map +1 -1
- package/dist/client/account/activity/activity.client.js +3 -3
- package/dist/client/account/activity/activity.types.d.ts +8 -8
- package/dist/client/account/api-key/api-key.client.d.ts +2 -2
- package/dist/client/account/api-key/api-key.client.js +4 -4
- package/dist/client/account/api-key/api-key.types.d.ts +2 -2
- package/dist/client/account/email/email.client.d.ts +2 -2
- package/dist/client/account/email/email.client.js +2 -2
- package/dist/client/account/email/email.types.d.ts +1 -1
- package/dist/client/account/index.d.ts +15 -15
- package/dist/client/account/index.js +15 -15
- package/dist/client/account/password/password.client.d.ts +2 -2
- package/dist/client/account/password/password.client.js +2 -2
- package/dist/client/account/password/password.types.d.ts +1 -1
- package/dist/client/account/ssh-key/ssh-key.client.d.ts +2 -2
- package/dist/client/account/ssh-key/ssh-key.client.js +4 -4
- package/dist/client/account/ssh-key/ssh-key.types.d.ts +2 -2
- package/dist/client/client.class.d.ts +3 -3
- package/dist/client/client.class.js +6 -6
- package/dist/client/client.schema.d.ts +1 -1
- package/dist/client/client.schema.js +2 -2
- package/dist/client/index.d.ts +2 -2
- package/dist/client/index.js +2 -2
- package/dist/client/server/allocation/allocation.client.d.ts +3 -3
- package/dist/client/server/allocation/allocation.client.js +4 -4
- package/dist/client/server/allocation.types.d.ts +2 -2
- package/dist/client/server/allocations/allocations.client.d.ts +3 -3
- package/dist/client/server/allocations/allocations.client.js +3 -3
- package/dist/client/server/backup/backup.client.d.ts +3 -3
- package/dist/client/server/backup/backup.client.js +6 -6
- package/dist/client/server/backup/lock/lock.client.d.ts +1 -1
- package/dist/client/server/backup/lock/lock.client.js +1 -1
- package/dist/client/server/backup.types.d.ts +3 -3
- package/dist/client/server/backups/backups.client.d.ts +2 -2
- package/dist/client/server/backups/backups.client.js +3 -3
- package/dist/client/server/console/console.client.d.ts +3 -3
- package/dist/client/server/console/console.client.js +3 -3
- package/dist/client/server/console/console.types.d.ts +2 -2
- package/dist/client/server/console/console.types.js +1 -1
- package/dist/client/server/console/websocket/websocket.console.client.d.ts +3 -3
- package/dist/client/server/console/websocket/websocket.console.client.js +13 -13
- package/dist/client/server/console/websocket/websocket.console.types.d.ts +13 -13
- package/dist/client/server/database/database.client.d.ts +2 -2
- package/dist/client/server/database/database.client.js +3 -3
- package/dist/client/server/database/password/password.client.d.ts +1 -1
- package/dist/client/server/database/password/password.client.js +1 -1
- package/dist/client/server/database.types.d.ts +6 -6
- package/dist/client/server/databases/databases.client.d.ts +2 -2
- package/dist/client/server/databases/databases.client.js +3 -3
- package/dist/client/server/image/image.client.d.ts +2 -2
- package/dist/client/server/image/image.client.js +2 -2
- package/dist/client/server/image/image.types.d.ts +1 -1
- package/dist/client/server/index.d.ts +29 -29
- package/dist/client/server/index.js +29 -29
- package/dist/client/server/power/power.client.d.ts +1 -1
- package/dist/client/server/power/power.client.js +8 -8
- package/dist/client/server/power/power.types.d.ts +2 -2
- package/dist/client/server/ressource/ressource.client.d.ts +2 -2
- package/dist/client/server/ressource/ressource.client.js +1 -1
- package/dist/client/server/ressource/ressource.types.d.ts +2 -2
- package/dist/client/server/schedule/schedule.client.d.ts +4 -4
- package/dist/client/server/schedule/schedule.client.js +7 -7
- package/dist/client/server/schedule/schedule.types.d.ts +6 -6
- package/dist/client/server/schedule/schedule.types.d.ts.map +1 -1
- package/dist/client/server/schedule/task/task.client.d.ts +3 -3
- package/dist/client/server/schedule/task/task.client.js +3 -3
- package/dist/client/server/schedule/tasks/tasks.client.d.ts +3 -3
- package/dist/client/server/schedule/tasks/tasks.client.js +3 -3
- package/dist/client/server/schedule/tasks.types.d.ts +3 -3
- package/dist/client/server/schedule.types.d.ts +6 -6
- package/dist/client/server/schedules/schedules.client.d.ts +2 -2
- package/dist/client/server/schedules/schedules.client.js +3 -3
- package/dist/client/server/server.client.d.ts +18 -18
- package/dist/client/server/server.client.js +22 -22
- package/dist/client/server/server.schemas.d.ts +1 -1
- package/dist/client/server/server.schemas.js +83 -83
- package/dist/client/server/server.types.d.ts +73 -73
- package/dist/client/server/startup/startup.client.d.ts +3 -3
- package/dist/client/server/startup/startup.client.js +3 -3
- package/dist/client/server/startup/startup.types.d.ts +2 -2
- package/dist/client/server/subuser/subuser.client.d.ts +4 -4
- package/dist/client/server/subuser/subuser.client.js +4 -4
- package/dist/client/server/subuser.types.d.ts +4 -4
- package/dist/client/server/subusers/subusers.client.d.ts +4 -4
- package/dist/client/server/subusers/subusers.client.js +3 -3
- package/dist/index.d.ts +5 -5
- package/dist/index.js +5 -5
- package/dist/schemas.d.ts +1 -1
- package/dist/schemas.js +4 -4
- package/dist/types.d.ts +6 -6
- package/dist/types.d.ts.map +1 -1
- package/dist/utils/buildQueryParams.d.ts +1 -1
- package/dist/utils/buildQueryParams.js +3 -3
- package/package.json +5 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import z from
|
|
2
|
-
import { userIdSchema } from
|
|
3
|
-
import { createUserSchema } from
|
|
1
|
+
import z from 'zod';
|
|
2
|
+
import { userIdSchema } from './user.schemas.js';
|
|
3
|
+
import { createUserSchema } from '../users/users.schemas.js';
|
|
4
4
|
export default class UserClient {
|
|
5
5
|
httpClient;
|
|
6
6
|
id;
|
|
@@ -12,7 +12,7 @@ export default class UserClient {
|
|
|
12
12
|
this.external_id = external_id;
|
|
13
13
|
}
|
|
14
14
|
async info({ includeServers, } = {}) {
|
|
15
|
-
const res = await this.httpClient.request(
|
|
15
|
+
const res = await this.httpClient.request('GET', `/application/users/${this.id ?? `external/${this.external_id}`}${includeServers ? '?include=servers' : ''}`);
|
|
16
16
|
return {
|
|
17
17
|
...res,
|
|
18
18
|
attributes: {
|
|
@@ -25,11 +25,11 @@ export default class UserClient {
|
|
|
25
25
|
edit(args) {
|
|
26
26
|
if (!this.id)
|
|
27
27
|
throw new Error("L'id de l'utilisateur est requis !");
|
|
28
|
-
return this.httpClient.request(
|
|
28
|
+
return this.httpClient.request('PATCH', `/application/users/${this.id}`, createUserSchema.parse(args));
|
|
29
29
|
}
|
|
30
30
|
delete() {
|
|
31
31
|
if (!this.id)
|
|
32
32
|
throw new Error("L'id de l'utilisateur est requis !");
|
|
33
|
-
return this.httpClient.request(
|
|
33
|
+
return this.httpClient.request('DELETE', `/application/users/${this.id}`);
|
|
34
34
|
}
|
|
35
35
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import z from
|
|
2
|
-
import { idSchema, nameSchema } from
|
|
1
|
+
import z from 'zod';
|
|
2
|
+
import { idSchema, nameSchema } from '../../schemas.js';
|
|
3
3
|
export const userId = idSchema;
|
|
4
4
|
export const externalUserId = nameSchema;
|
|
5
5
|
export const userIdSchema = z
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { default as Users } from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
1
|
+
export { default as Users } from './users.client.js';
|
|
2
|
+
export * from './users.types.js';
|
|
3
|
+
export * from './users.schemas.js';
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { default as Users } from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
1
|
+
export { default as Users } from './users.client.js';
|
|
2
|
+
export * from './users.types.js';
|
|
3
|
+
export * from './users.schemas.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type HttpClient from
|
|
2
|
-
import type { CreateUserArgs, User, UserAttributes, UserWithServersAttributes } from
|
|
3
|
-
import type { BaseListArgs, Sort } from
|
|
1
|
+
import type HttpClient from '../../class/HttpClient.js';
|
|
2
|
+
import type { CreateUserArgs, User, UserAttributes, UserWithServersAttributes } from './users.types.js';
|
|
3
|
+
import type { BaseListArgs, Sort } from '../../types.js';
|
|
4
4
|
export default class UsersClient {
|
|
5
5
|
private httpClient;
|
|
6
6
|
constructor(httpClient: HttpClient);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"users.client.d.ts","sourceRoot":"","sources":["../../../src/application/users/users.client.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,UAAU,MAAM,2BAA2B,CAAC;AAExD,OAAO,KAAK,EACV,cAAc,EACd,IAAI,EACJ,cAAc,EAEd,yBAAyB,EAC1B,MAAM,kBAAkB,CAAC;AAC1B,OAAO,KAAK,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AAGzD,MAAM,CAAC,OAAO,OAAO,WAAW;IAClB,OAAO,CAAC,UAAU;gBAAV,UAAU,EAAE,UAAU;IAEpC,IAAI,CAAC,CAAC,SAAS,OAAO,GAAG,SAAS,EACtC,OAAO,GAAE;QACP,cAAc,CAAC,EAAE,CAAC,GAAG,SAAS,CAAC;QAC/B,MAAM,CAA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAwDvB,MAAM,CAAC,IAAI,EAAE,cAAc;CAM5B"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import z from
|
|
2
|
-
import { createUserSchema, listUsersFilterSchema } from
|
|
3
|
-
import buildQueryParams from
|
|
1
|
+
import z from 'zod';
|
|
2
|
+
import { createUserSchema, listUsersFilterSchema } from './users.schemas.js';
|
|
3
|
+
import buildQueryParams from '../../utils/buildQueryParams.js';
|
|
4
4
|
export default class UsersClient {
|
|
5
5
|
httpClient;
|
|
6
6
|
constructor(httpClient) {
|
|
@@ -14,7 +14,7 @@ export default class UsersClient {
|
|
|
14
14
|
sort: options.sort,
|
|
15
15
|
filter,
|
|
16
16
|
});
|
|
17
|
-
const res = await this.httpClient.request(
|
|
17
|
+
const res = await this.httpClient.request('GET', `/application/users?${queries}${options.includeServers ? '&include=servers' : ''}`);
|
|
18
18
|
return {
|
|
19
19
|
...res,
|
|
20
20
|
data: res.data.map((user) => ({
|
|
@@ -44,6 +44,6 @@ export default class UsersClient {
|
|
|
44
44
|
};
|
|
45
45
|
}
|
|
46
46
|
create(args) {
|
|
47
|
-
return this.httpClient.request(
|
|
47
|
+
return this.httpClient.request('POST', '/application/users', createUserSchema.parse(args));
|
|
48
48
|
}
|
|
49
49
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { BaseArgs, ListwithPagination } from
|
|
2
|
-
import type { ApplicationServer } from
|
|
1
|
+
import type { BaseArgs, ListwithPagination } from '../../types.js';
|
|
2
|
+
import type { ApplicationServer } from '../servers/servers.types.js';
|
|
3
3
|
export interface UserAttributes<T extends string | Date> {
|
|
4
4
|
id: number;
|
|
5
5
|
external_id: null | string;
|
|
@@ -10,18 +10,18 @@ export interface UserAttributes<T extends string | Date> {
|
|
|
10
10
|
last_name: string;
|
|
11
11
|
language: string;
|
|
12
12
|
root_admin: true;
|
|
13
|
-
|
|
13
|
+
'2fa': boolean;
|
|
14
14
|
created_at: T;
|
|
15
15
|
updated_at: T;
|
|
16
16
|
}
|
|
17
17
|
export interface User<T extends UserAttributes<string> | UserWithServersAttributes> {
|
|
18
|
-
object:
|
|
18
|
+
object: 'user';
|
|
19
19
|
attributes: T;
|
|
20
20
|
}
|
|
21
21
|
export interface UserWithServersAttributes extends UserAttributes<string> {
|
|
22
22
|
relationships: {
|
|
23
23
|
servers: {
|
|
24
|
-
object:
|
|
24
|
+
object: 'list';
|
|
25
25
|
data: ApplicationServer<string>[];
|
|
26
26
|
};
|
|
27
27
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { BaseArgs, method } from
|
|
1
|
+
import type { BaseArgs, method } from '../types.js';
|
|
2
2
|
export default class HttpClient {
|
|
3
3
|
private baseURL;
|
|
4
4
|
private apiKey;
|
|
5
5
|
constructor(baseURL: URL, apiKey: string);
|
|
6
|
-
request<T, U extends BaseArgs | undefined = undefined, V extends method = method>(method: V, path: string, body?: V extends
|
|
6
|
+
request<T, U extends BaseArgs | undefined = undefined, V extends method = method>(method: V, path: string, body?: V extends 'GET' ? null : V extends 'DELETE' ? null : U): Promise<T>;
|
|
7
7
|
}
|
|
8
8
|
//# sourceMappingURL=HttpClient.d.ts.map
|
package/dist/class/HttpClient.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PterodactylAPIError } from
|
|
1
|
+
import { PterodactylAPIError } from './APIError.js';
|
|
2
2
|
export default class HttpClient {
|
|
3
3
|
baseURL;
|
|
4
4
|
apiKey;
|
|
@@ -11,8 +11,8 @@ export default class HttpClient {
|
|
|
11
11
|
method,
|
|
12
12
|
headers: {
|
|
13
13
|
Authorization: `Bearer ${this.apiKey}`,
|
|
14
|
-
|
|
15
|
-
Accept:
|
|
14
|
+
'Content-Type': 'application/json',
|
|
15
|
+
Accept: 'application/json',
|
|
16
16
|
},
|
|
17
17
|
body: body ? JSON.stringify(body) : null,
|
|
18
18
|
});
|
package/dist/class.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ApplicationAPI } from
|
|
2
|
-
import { ClientAPI } from
|
|
3
|
-
import type { role } from
|
|
1
|
+
import { ApplicationAPI } from './application/index.js';
|
|
2
|
+
import { ClientAPI } from './client/index.js';
|
|
3
|
+
import type { role } from './types.js';
|
|
4
4
|
export default class PterodactylAPIClient<T extends role> {
|
|
5
5
|
private apiKey;
|
|
6
6
|
readonly panelUrl: URL;
|
|
@@ -11,7 +11,7 @@ export default class PterodactylAPIClient<T extends role> {
|
|
|
11
11
|
panelUrl: string;
|
|
12
12
|
role: T;
|
|
13
13
|
});
|
|
14
|
-
get admin(): T extends
|
|
14
|
+
get admin(): T extends 'admin' ? ApplicationAPI : never;
|
|
15
15
|
/**
|
|
16
16
|
* @deprecated Client is now typed, typescript will no longer throw errors if the role is admin
|
|
17
17
|
*/
|
package/dist/class.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ApplicationAPI } from
|
|
2
|
-
import { ClientAPI } from
|
|
3
|
-
import { clientSchema } from
|
|
1
|
+
import { ApplicationAPI } from './application/index.js';
|
|
2
|
+
import { ClientAPI } from './client/index.js';
|
|
3
|
+
import { clientSchema } from './schemas.js';
|
|
4
4
|
export default class PterodactylAPIClient {
|
|
5
5
|
apiKey;
|
|
6
6
|
panelUrl;
|
|
@@ -14,13 +14,13 @@ export default class PterodactylAPIClient {
|
|
|
14
14
|
this.apiKey = apiKey;
|
|
15
15
|
}
|
|
16
16
|
get admin() {
|
|
17
|
-
if (this.role ===
|
|
18
|
-
// @ts-expect-error
|
|
17
|
+
if (this.role === 'admin')
|
|
18
|
+
// @ts-expect-error Works well
|
|
19
19
|
return new ApplicationAPI({
|
|
20
20
|
panelUrl: this.panelUrl,
|
|
21
21
|
apiKey: this.apiKey,
|
|
22
22
|
});
|
|
23
|
-
// @ts-expect-error
|
|
23
|
+
// @ts-expect-error Works well
|
|
24
24
|
return;
|
|
25
25
|
}
|
|
26
26
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type HttpClient from
|
|
2
|
-
import type { EditAcountArgs } from
|
|
3
|
-
import type { A2FData, EnableA2fArgs, RecoveryTokens } from
|
|
1
|
+
import type HttpClient from '../../../class/HttpClient.js';
|
|
2
|
+
import type { EditAcountArgs } from '../account.types.js';
|
|
3
|
+
import type { A2FData, EnableA2fArgs, RecoveryTokens } from './a2f.types.js';
|
|
4
4
|
export default class A2fClient {
|
|
5
5
|
private httpClient;
|
|
6
6
|
constructor(httpClient: HttpClient);
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import z from
|
|
2
|
-
import { a2fSchema, passwordSchema } from
|
|
1
|
+
import z from 'zod';
|
|
2
|
+
import { a2fSchema, passwordSchema } from '../account.schemas.js';
|
|
3
3
|
export default class A2fClient {
|
|
4
4
|
httpClient;
|
|
5
5
|
constructor(httpClient) {
|
|
6
6
|
this.httpClient = httpClient;
|
|
7
7
|
}
|
|
8
8
|
enable(options) {
|
|
9
|
-
return this.httpClient.request(
|
|
9
|
+
return this.httpClient.request('POST', '/client/account/two-factor', a2fSchema.parse(options));
|
|
10
10
|
}
|
|
11
11
|
disable(options) {
|
|
12
|
-
return this.httpClient.request(
|
|
12
|
+
return this.httpClient.request('POST', '/client/account/two-factor/disable', passwordSchema.parse(options));
|
|
13
13
|
}
|
|
14
14
|
qrCode() {
|
|
15
|
-
return this.httpClient.request(
|
|
15
|
+
return this.httpClient.request('GET', '/client/account/two-factor');
|
|
16
16
|
}
|
|
17
17
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Tuple } from
|
|
2
|
-
import type { EditAcountArgs } from
|
|
1
|
+
import type { Tuple } from '../../../types.js';
|
|
2
|
+
import type { EditAcountArgs } from '../account.types.js';
|
|
3
3
|
export interface EnableA2fArgs extends EditAcountArgs {
|
|
4
4
|
code: string | number;
|
|
5
5
|
}
|
|
@@ -10,7 +10,7 @@ export interface A2FData {
|
|
|
10
10
|
};
|
|
11
11
|
}
|
|
12
12
|
export interface RecoveryTokens {
|
|
13
|
-
object:
|
|
13
|
+
object: 'recovery_tokens';
|
|
14
14
|
attributes: {
|
|
15
15
|
tokens: Tuple<string, 8>;
|
|
16
16
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import HttpClient from
|
|
2
|
-
import A2fClient from
|
|
3
|
-
import type { user } from
|
|
4
|
-
import ActivityClient from
|
|
5
|
-
import ApiKeyClient from
|
|
6
|
-
import EmailClient from
|
|
7
|
-
import PasswordClient from
|
|
8
|
-
import SshKeyClient from
|
|
1
|
+
import HttpClient from '../../class/HttpClient.js';
|
|
2
|
+
import A2fClient from './a2f/a2f.client.js';
|
|
3
|
+
import type { user } from './account.types.js';
|
|
4
|
+
import ActivityClient from './activity/activity.client.js';
|
|
5
|
+
import ApiKeyClient from './api-key/api-key.client.js';
|
|
6
|
+
import EmailClient from './email/email.client.js';
|
|
7
|
+
import PasswordClient from './password/password.client.js';
|
|
8
|
+
import SshKeyClient from './ssh-key/ssh-key.client.js';
|
|
9
9
|
export default class Account {
|
|
10
10
|
private httpClient;
|
|
11
11
|
a2f: A2fClient;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import HttpClient from
|
|
2
|
-
import A2fClient from
|
|
3
|
-
import ActivityClient from
|
|
4
|
-
import ApiKeyClient from
|
|
5
|
-
import EmailClient from
|
|
6
|
-
import PasswordClient from
|
|
7
|
-
import SshKeyClient from
|
|
1
|
+
import HttpClient from '../../class/HttpClient.js';
|
|
2
|
+
import A2fClient from './a2f/a2f.client.js';
|
|
3
|
+
import ActivityClient from './activity/activity.client.js';
|
|
4
|
+
import ApiKeyClient from './api-key/api-key.client.js';
|
|
5
|
+
import EmailClient from './email/email.client.js';
|
|
6
|
+
import PasswordClient from './password/password.client.js';
|
|
7
|
+
import SshKeyClient from './ssh-key/ssh-key.client.js';
|
|
8
8
|
export default class Account {
|
|
9
9
|
httpClient;
|
|
10
10
|
a2f;
|
|
@@ -23,6 +23,6 @@ export default class Account {
|
|
|
23
23
|
this.sshKey = new SshKeyClient(httpClient);
|
|
24
24
|
}
|
|
25
25
|
info() {
|
|
26
|
-
return this.httpClient.request(
|
|
26
|
+
return this.httpClient.request('GET', '/client/account');
|
|
27
27
|
}
|
|
28
28
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import z from
|
|
1
|
+
import z from 'zod';
|
|
2
2
|
export const passwordSchema = z.object({
|
|
3
3
|
password: z.string().min(8),
|
|
4
4
|
});
|
|
@@ -6,17 +6,17 @@ export const a2fSchema = passwordSchema.extend({
|
|
|
6
6
|
code: z.coerce.string().length(6),
|
|
7
7
|
});
|
|
8
8
|
export const accountActivityEvent = z.literal([
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
9
|
+
'user:api-key.create',
|
|
10
|
+
'user:api-key.delete',
|
|
11
|
+
'user:ssh-key.create',
|
|
12
|
+
'user:ssh-key.delete',
|
|
13
|
+
'user:account.email-changed',
|
|
14
|
+
'user:account.password-changed',
|
|
15
|
+
'user:two-factor.create',
|
|
16
|
+
'user:two-factor.delete',
|
|
17
|
+
'auth:success',
|
|
18
|
+
'auth:fail',
|
|
19
|
+
'auth:checkpoint',
|
|
20
20
|
]);
|
|
21
21
|
export const createApiKeySchema = z.object({
|
|
22
22
|
description: z.string(),
|
|
@@ -39,7 +39,7 @@ export const createSshKeySchema = z.object({
|
|
|
39
39
|
.string()
|
|
40
40
|
.min(50)
|
|
41
41
|
.max(5000)
|
|
42
|
-
.regex(SSH_KEY_REGEX,
|
|
42
|
+
.regex(SSH_KEY_REGEX, 'Invalid SSH public key format'),
|
|
43
43
|
});
|
|
44
44
|
export const deleteSshKeySchema = z.object({
|
|
45
45
|
fingerprint: z.string(),
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type { BaseArgs } from
|
|
1
|
+
import type { BaseArgs } from '../../types.js';
|
|
2
2
|
export interface EditAcountArgs extends BaseArgs {
|
|
3
3
|
password: string;
|
|
4
4
|
}
|
|
5
5
|
export interface user {
|
|
6
|
-
object:
|
|
6
|
+
object: 'user';
|
|
7
7
|
attributes: {
|
|
8
8
|
id: number;
|
|
9
9
|
admin: boolean;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import type HttpClient from
|
|
2
|
-
import type { BaseListArgs, Sort } from
|
|
3
|
-
import type { AuthEvent, UserActivityList, UserEvent } from
|
|
1
|
+
import type HttpClient from '../../../class/HttpClient.js';
|
|
2
|
+
import type { BaseListArgs, Sort } from '../../../types.js';
|
|
3
|
+
import type { AuthEvent, UserActivityList, UserEvent } from './activity.types.js';
|
|
4
4
|
export default class ActivityClient {
|
|
5
5
|
private httpClient;
|
|
6
6
|
constructor(httpClient: HttpClient);
|
|
7
|
-
list<T extends UserEvent | AuthEvent>({ page, per_page, filter, sort, }?: BaseListArgs & {
|
|
7
|
+
list<T extends UserEvent | AuthEvent>({ page, per_page, filter, sort, }?: (BaseListArgs & {
|
|
8
8
|
filter?: {
|
|
9
9
|
event?: T | undefined;
|
|
10
10
|
} | undefined;
|
|
11
11
|
sort?: {
|
|
12
12
|
timestamp?: Sort | undefined;
|
|
13
13
|
} | undefined;
|
|
14
|
-
} | undefined): Promise<UserActivityList<Date, T>>;
|
|
14
|
+
}) | undefined): Promise<UserActivityList<Date, T>>;
|
|
15
15
|
}
|
|
16
16
|
//# sourceMappingURL=activity.client.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"activity.client.d.ts","sourceRoot":"","sources":["../../../../src/client/account/activity/activity.client.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,UAAU,MAAM,8BAA8B,CAAC;AAC3D,OAAO,KAAK,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAG5D,OAAO,KAAK,EACV,SAAS,EACT,gBAAgB,EAChB,SAAS,EACV,MAAM,qBAAqB,CAAC;AAE7B,MAAM,CAAC,OAAO,OAAO,cAAc;IACrB,OAAO,CAAC,UAAU;gBAAV,UAAU,EAAE,UAAU;IAEpC,IAAI,CAAC,CAAC,SAAS,SAAS,GAAG,SAAS,EAAE,EAC1C,IAAI,EACJ,QAAQ,EACR,MAAM,EACN,IAAI,GACL,GACG,YAAY,GAAG;
|
|
1
|
+
{"version":3,"file":"activity.client.d.ts","sourceRoot":"","sources":["../../../../src/client/account/activity/activity.client.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,UAAU,MAAM,8BAA8B,CAAC;AAC3D,OAAO,KAAK,EAAE,YAAY,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAG5D,OAAO,KAAK,EACV,SAAS,EACT,gBAAgB,EAChB,SAAS,EACV,MAAM,qBAAqB,CAAC;AAE7B,MAAM,CAAC,OAAO,OAAO,cAAc;IACrB,OAAO,CAAC,UAAU;gBAAV,UAAU,EAAE,UAAU;IAEpC,IAAI,CAAC,CAAC,SAAS,SAAS,GAAG,SAAS,EAAE,EAC1C,IAAI,EACJ,QAAQ,EACR,MAAM,EACN,IAAI,GACL,GACG,CAAC,YAAY,GAAG;QACd,MAAM,CAAC,EACH;YACE,KAAK,CAAC,EAAE,CAAC,GAAG,SAAS,CAAC;SACvB,GACD,SAAS,CAAC;QACd,IAAI,CAAC,EACD;YACE,SAAS,CAAC,EAAE,IAAI,GAAG,SAAS,CAAC;SAC9B,GACD,SAAS,CAAC;KACf,CAAC,GACF,SAAc,GAAG,OAAO,CAAC,gBAAgB,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;CA8BxD"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import buildQueryParams from
|
|
2
|
-
import { accountActivityEvent } from
|
|
1
|
+
import buildQueryParams from '../../../utils/buildQueryParams.js';
|
|
2
|
+
import { accountActivityEvent } from '../account.schemas.js';
|
|
3
3
|
export default class ActivityClient {
|
|
4
4
|
httpClient;
|
|
5
5
|
constructor(httpClient) {
|
|
@@ -13,7 +13,7 @@ export default class ActivityClient {
|
|
|
13
13
|
filter: { event },
|
|
14
14
|
sort,
|
|
15
15
|
});
|
|
16
|
-
const res = await this.httpClient.request(
|
|
16
|
+
const res = await this.httpClient.request('GET', `/client/account/activity?${queries}`);
|
|
17
17
|
return {
|
|
18
18
|
...res,
|
|
19
19
|
data: res.data.map((activity) => ({
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import type { IP, ListwithPagination } from
|
|
1
|
+
import type { IP, ListwithPagination } from '../../../types.js';
|
|
2
2
|
export interface listActivityArgs {
|
|
3
3
|
page?: number | undefined;
|
|
4
4
|
per_page?: number | undefined;
|
|
5
5
|
event?: UserEvent | AuthEvent | undefined;
|
|
6
6
|
}
|
|
7
|
-
export type UserApiKeyEvent =
|
|
8
|
-
export type UserSshKeyEvent =
|
|
9
|
-
export type UserAccountEvent =
|
|
10
|
-
export type UserTwoFactorEvent =
|
|
7
|
+
export type UserApiKeyEvent = 'user:api-key.create' | 'user:api-key.delete';
|
|
8
|
+
export type UserSshKeyEvent = 'user:ssh-key.create' | 'user:ssh-key.delete';
|
|
9
|
+
export type UserAccountEvent = 'user:account.email-changed' | 'user:account.password-changed';
|
|
10
|
+
export type UserTwoFactorEvent = 'user:two-factor.create' | 'user:two-factor.delete';
|
|
11
11
|
export type UserEvent = UserApiKeyEvent | UserSshKeyEvent | UserAccountEvent | UserTwoFactorEvent;
|
|
12
|
-
export type AuthEvent =
|
|
12
|
+
export type AuthEvent = 'auth:success' | 'auth:fail' | 'auth:checkpoint';
|
|
13
13
|
export interface UserActivityList<U, T extends UserEvent | AuthEvent> extends ListwithPagination {
|
|
14
14
|
data: UserActivityEvent<U, T>[];
|
|
15
15
|
}
|
|
@@ -17,12 +17,12 @@ type UserActivityProperties<U extends UserEvent | AuthEvent> = (U extends UserAp
|
|
|
17
17
|
identifier: string;
|
|
18
18
|
} : never) & (U extends UserSshKeyEvent ? {
|
|
19
19
|
fingerprint: string;
|
|
20
|
-
} : never) & (U extends
|
|
20
|
+
} : never) & (U extends 'user:email-changed' ? {
|
|
21
21
|
old: string;
|
|
22
22
|
new: string;
|
|
23
23
|
} : never);
|
|
24
24
|
export interface UserActivityEvent<T, U extends UserEvent | AuthEvent = UserEvent | AuthEvent> {
|
|
25
|
-
object:
|
|
25
|
+
object: 'activity_log';
|
|
26
26
|
attributes: {
|
|
27
27
|
id: string;
|
|
28
28
|
batch: null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type HttpClient from
|
|
2
|
-
import type { CreateApiKeyArgs, DeleteApiKeyArgs } from
|
|
1
|
+
import type HttpClient from '../../../class/HttpClient.js';
|
|
2
|
+
import type { CreateApiKeyArgs, DeleteApiKeyArgs } from './api-key.types.js';
|
|
3
3
|
export default class ApiKeyClient {
|
|
4
4
|
private httpClient;
|
|
5
5
|
constructor(httpClient: HttpClient);
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { createApiKeySchema, deleteApiKeySchema } from
|
|
1
|
+
import { createApiKeySchema, deleteApiKeySchema } from '../account.schemas.js';
|
|
2
2
|
export default class ApiKeyClient {
|
|
3
3
|
httpClient;
|
|
4
4
|
constructor(httpClient) {
|
|
5
5
|
this.httpClient = httpClient;
|
|
6
6
|
}
|
|
7
7
|
async list() {
|
|
8
|
-
const res = await this.httpClient.request(
|
|
8
|
+
const res = await this.httpClient.request('GET', '/client/account/api-keys');
|
|
9
9
|
return {
|
|
10
10
|
...res,
|
|
11
11
|
data: res.data.map((apiKey) => ({
|
|
@@ -19,7 +19,7 @@ export default class ApiKeyClient {
|
|
|
19
19
|
};
|
|
20
20
|
}
|
|
21
21
|
async create(options) {
|
|
22
|
-
const res = await this.httpClient.request(
|
|
22
|
+
const res = await this.httpClient.request('POST', '/client/account/api-keys', createApiKeySchema.parse(options));
|
|
23
23
|
return {
|
|
24
24
|
...res,
|
|
25
25
|
api_key: `${res.attributes.identifier}${res.meta.secret_token}`,
|
|
@@ -27,6 +27,6 @@ export default class ApiKeyClient {
|
|
|
27
27
|
}
|
|
28
28
|
delete(options) {
|
|
29
29
|
const { identifier } = deleteApiKeySchema.parse(options);
|
|
30
|
-
return this.httpClient.request(
|
|
30
|
+
return this.httpClient.request('DELETE', `/client/account/api-keys/${identifier}`);
|
|
31
31
|
}
|
|
32
32
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type HttpClient from
|
|
2
|
-
import type { EditEmailArgs } from
|
|
1
|
+
import type HttpClient from '../../../class/HttpClient.js';
|
|
2
|
+
import type { EditEmailArgs } from './email.types.js';
|
|
3
3
|
export default class EmailClient {
|
|
4
4
|
private httpClient;
|
|
5
5
|
constructor(httpClient: HttpClient);
|