pterodactyl-api-client 3.3.0 → 3.3.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.
@@ -16,12 +16,12 @@ export declare const editApplicationServerConfigurationSchema: z.ZodObject<{
16
16
  allocation: z.ZodInt;
17
17
  oom_disabled: z.ZodOptional<z.ZodBoolean>;
18
18
  limits: z.ZodObject<{
19
- memory: z.ZodOptional<z.ZodInt>;
20
- swap: z.ZodOptional<z.ZodInt>;
21
- disk: z.ZodOptional<z.ZodInt>;
22
- io: z.ZodOptional<z.ZodInt>;
19
+ memory: z.ZodInt;
20
+ swap: z.ZodInt;
21
+ disk: z.ZodInt;
22
+ io: z.ZodInt;
23
23
  threads: z.ZodOptional<z.ZodString>;
24
- cpu: z.ZodOptional<z.ZodInt>;
24
+ cpu: z.ZodInt;
25
25
  }, z.z.core.$strip>;
26
26
  feature_limits: z.ZodOptional<z.ZodObject<{
27
27
  databases: z.ZodInt;
@@ -21,15 +21,15 @@ export const editApplicationServerConfigurationSchema = z.object({
21
21
  allocation: z.int().positive(),
22
22
  oom_disabled: z.boolean().optional(),
23
23
  limits: z.object({
24
- memory: z.int().positive().optional(),
25
- swap: z.int().min(-1).optional(),
26
- disk: z.int().positive().optional(),
27
- io: z.int().positive().min(10).max(1000).optional(),
24
+ memory: z.int().min(0),
25
+ swap: z.int().min(-1),
26
+ disk: z.int().min(0),
27
+ io: z.int().positive().min(10).max(1000),
28
28
  threads: z
29
29
  .string()
30
30
  .regex(/^[0-9-,]+$/)
31
31
  .optional(),
32
- cpu: z.int().positive().optional(),
32
+ cpu: z.int().min(0),
33
33
  }),
34
34
  feature_limits: z
35
35
  .object({
@@ -1 +1 @@
1
- {"version":3,"file":"servers.schemas.d.ts","sourceRoot":"","sources":["../../../src/application/servers/servers.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAGpB,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAmC7B,CAAC;AAEH,eAAO,MAAM,uBAAuB;;;;;;;mBAOlC,CAAC"}
1
+ {"version":3,"file":"servers.schemas.d.ts","sourceRoot":"","sources":["../../../src/application/servers/servers.schemas.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAQpB,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAmC7B,CAAC;AAEH,eAAO,MAAM,uBAAuB;;;;;;;mBAOlC,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import z from "zod";
2
- import { descriptionSchema, idSchema, nameSchema, uuidSchema } from "../../schemas.js";
2
+ import { descriptionSchema, idSchema, nameSchema, uuidSchema, } from "../../schemas.js";
3
3
  export const createServerSchema = z.object({
4
4
  external_id: nameSchema.optional(),
5
5
  name: nameSchema,
@@ -15,15 +15,15 @@ export const createServerSchema = z.object({
15
15
  skip_scripts: z.boolean().optional(),
16
16
  oom_disabled: z.boolean().optional(),
17
17
  limits: z.object({
18
- memory: z.int().positive(),
18
+ memory: z.int().min(0),
19
19
  swap: z.int().min(-1),
20
- disk: z.int().positive(),
20
+ disk: z.int().min(0),
21
21
  io: z.int().positive().min(10).max(1000),
22
22
  threads: z
23
23
  .string()
24
24
  .regex(/^[0-9-,]+$/)
25
25
  .optional(),
26
- cpu: z.int().positive(),
26
+ cpu: z.int().min(0),
27
27
  }),
28
28
  feature_limits: z.object({
29
29
  databases: z.int().min(0),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pterodactyl-api-client",
3
- "version": "3.3.0",
3
+ "version": "3.3.1",
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",