@remnawave/backend-contract 0.0.44 → 0.0.45
Sign up to get free protection for your applications and to get access to all the features.
@@ -20,15 +20,15 @@ exports.UsersSchema = zod_1.z.object({
|
|
20
20
|
})
|
21
21
|
.default(constants_1.RESET_PERIODS_VALUES[0]),
|
22
22
|
subLastUserAgent: zod_1.z.nullable(zod_1.z.string()),
|
23
|
-
subLastOpenedAt: zod_1.z.nullable(zod_1.z.
|
24
|
-
expireAt: zod_1.z.
|
25
|
-
onlineAt: zod_1.z.
|
26
|
-
subRevokedAt: zod_1.z.
|
27
|
-
lastTrafficResetAt: zod_1.z.
|
23
|
+
subLastOpenedAt: zod_1.z.nullable(zod_1.z.nullable(zod_1.z.string().datetime({ offset: true }))),
|
24
|
+
expireAt: zod_1.z.nullable(zod_1.z.string().datetime({ offset: true })),
|
25
|
+
onlineAt: zod_1.z.nullable(zod_1.z.string().datetime({ offset: true })),
|
26
|
+
subRevokedAt: zod_1.z.nullable(zod_1.z.string().datetime({ offset: true })),
|
27
|
+
lastTrafficResetAt: zod_1.z.nullable(zod_1.z.string().datetime({ offset: true })),
|
28
28
|
trojanPassword: zod_1.z.string(),
|
29
29
|
vlessUuid: zod_1.z.string().uuid(),
|
30
30
|
ssPassword: zod_1.z.string(),
|
31
|
-
createdAt: zod_1.z.
|
32
|
-
updatedAt: zod_1.z.
|
31
|
+
createdAt: zod_1.z.string().datetime({ offset: true }),
|
32
|
+
updatedAt: zod_1.z.string().datetime({ offset: true }),
|
33
33
|
activeUserInbounds: zod_1.z.array(inbounds_schema_1.InboundsSchema),
|
34
34
|
});
|
package/models/users.schema.ts
CHANGED
@@ -20,19 +20,19 @@ export const UsersSchema = z.object({
|
|
20
20
|
})
|
21
21
|
.default(RESET_PERIODS_VALUES[0]),
|
22
22
|
subLastUserAgent: z.nullable(z.string()),
|
23
|
-
subLastOpenedAt: z.nullable(z.
|
23
|
+
subLastOpenedAt: z.nullable(z.nullable(z.string().datetime({ offset: true }))),
|
24
24
|
|
25
|
-
expireAt: z.
|
26
|
-
onlineAt: z.
|
27
|
-
subRevokedAt: z.
|
28
|
-
lastTrafficResetAt: z.
|
25
|
+
expireAt: z.nullable(z.string().datetime({ offset: true })),
|
26
|
+
onlineAt: z.nullable(z.string().datetime({ offset: true })),
|
27
|
+
subRevokedAt: z.nullable(z.string().datetime({ offset: true })),
|
28
|
+
lastTrafficResetAt: z.nullable(z.string().datetime({ offset: true })),
|
29
29
|
|
30
30
|
trojanPassword: z.string(),
|
31
31
|
vlessUuid: z.string().uuid(),
|
32
32
|
ssPassword: z.string(),
|
33
33
|
|
34
|
-
createdAt: z.
|
35
|
-
updatedAt: z.
|
34
|
+
createdAt: z.string().datetime({ offset: true }),
|
35
|
+
updatedAt: z.string().datetime({ offset: true }),
|
36
36
|
|
37
37
|
activeUserInbounds: z.array(InboundsSchema),
|
38
38
|
});
|