@remnawave/backend-contract 0.6.5 → 0.6.6
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/build/backend/commands/hosts/update.command.d.ts +3 -3
- package/build/backend/commands/nodes/update.command.d.ts +3 -3
- package/build/backend/commands/users/actions/activate-all-inbounds.command.d.ts +3 -3
- package/build/backend/commands/users/actions/disable-user.command.d.ts +3 -3
- package/build/backend/commands/users/actions/enable-user.command.d.ts +3 -3
- package/build/backend/commands/users/actions/reset-user-traffic.command.d.ts +3 -3
- package/build/backend/commands/users/actions/revoke-user-subscription.command.d.ts +3 -3
- package/build/backend/commands/users/create-user.command.d.ts +3 -3
- package/build/backend/commands/users/get-all-users.command.d.ts +3 -3
- package/build/backend/commands/users/get-by/get-user-by-email.command.d.ts +3 -3
- package/build/backend/commands/users/get-by/get-user-by-short-uuid.command.d.ts +3 -3
- package/build/backend/commands/users/get-by/get-user-by-subscription-uuid.command.d.ts +3 -3
- package/build/backend/commands/users/get-by/get-user-by-tag.command.d.ts +3 -3
- package/build/backend/commands/users/get-by/get-user-by-telegram-id.command.d.ts +3 -3
- package/build/backend/commands/users/get-by/get-user-by-username.command.d.ts +3 -3
- package/build/backend/commands/users/get-user-by-uuid.command.d.ts +3 -3
- package/build/backend/commands/users/update-user.command.d.ts +6 -6
- package/build/backend/models/extented-users.schema.d.ts +3 -3
- package/package.json +1 -1
@@ -3,7 +3,7 @@ export declare namespace UpdateHostCommand {
|
|
3
3
|
const url: "/api/hosts/";
|
4
4
|
const TSQ_url: "/api/hosts/";
|
5
5
|
const endpointDetails: import("../../constants").EndpointDetails;
|
6
|
-
const RequestSchema: z.ZodObject<
|
6
|
+
const RequestSchema: z.ZodObject<Pick<{
|
7
7
|
uuid: z.ZodString;
|
8
8
|
inboundUuid: z.ZodString;
|
9
9
|
viewPosition: z.ZodNumber;
|
@@ -23,7 +23,7 @@ export declare namespace UpdateHostCommand {
|
|
23
23
|
readonly NONE: "NONE";
|
24
24
|
}>>;
|
25
25
|
xHttpExtraParams: z.ZodNullable<z.ZodUnknown>;
|
26
|
-
}, "uuid"
|
26
|
+
}, "uuid"> & {
|
27
27
|
inboundUuid: z.ZodOptional<z.ZodString>;
|
28
28
|
remark: z.ZodOptional<z.ZodString>;
|
29
29
|
address: z.ZodOptional<z.ZodString>;
|
@@ -58,7 +58,7 @@ export declare namespace UpdateHostCommand {
|
|
58
58
|
readonly NONE: "NONE";
|
59
59
|
}>>;
|
60
60
|
xHttpExtraParams: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
|
61
|
-
}
|
61
|
+
}, "strip", z.ZodTypeAny, {
|
62
62
|
uuid: string;
|
63
63
|
path?: string | undefined;
|
64
64
|
port?: number | undefined;
|
@@ -3,7 +3,7 @@ export declare namespace UpdateNodeCommand {
|
|
3
3
|
const url: "/api/nodes/";
|
4
4
|
const TSQ_url: "/api/nodes/";
|
5
5
|
const endpointDetails: import("../../constants").EndpointDetails;
|
6
|
-
const RequestSchema: z.ZodObject<
|
6
|
+
const RequestSchema: z.ZodObject<Pick<{
|
7
7
|
uuid: z.ZodString;
|
8
8
|
name: z.ZodString;
|
9
9
|
address: z.ZodString;
|
@@ -50,7 +50,7 @@ export declare namespace UpdateNodeCommand {
|
|
50
50
|
network: string | null;
|
51
51
|
security: string | null;
|
52
52
|
}>, "many">;
|
53
|
-
}, "uuid"
|
53
|
+
}, "uuid"> & {
|
54
54
|
name: z.ZodOptional<z.ZodString>;
|
55
55
|
address: z.ZodOptional<z.ZodString>;
|
56
56
|
port: z.ZodOptional<z.ZodNumber>;
|
@@ -61,7 +61,7 @@ export declare namespace UpdateNodeCommand {
|
|
61
61
|
excludedInbounds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
62
62
|
countryCode: z.ZodOptional<z.ZodString>;
|
63
63
|
consumptionMultiplier: z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>;
|
64
|
-
}
|
64
|
+
}, "strip", z.ZodTypeAny, {
|
65
65
|
uuid: string;
|
66
66
|
trafficLimitBytes?: number | undefined;
|
67
67
|
port?: number | undefined;
|
@@ -12,7 +12,7 @@ export declare namespace ActivateAllInboundsCommand {
|
|
12
12
|
}>;
|
13
13
|
type Request = z.infer<typeof RequestSchema>;
|
14
14
|
const ResponseSchema: z.ZodObject<{
|
15
|
-
response: z.ZodObject<
|
15
|
+
response: z.ZodObject<{
|
16
16
|
uuid: z.ZodString;
|
17
17
|
subscriptionUuid: z.ZodString;
|
18
18
|
shortUuid: z.ZodString;
|
@@ -67,7 +67,7 @@ export declare namespace ActivateAllInboundsCommand {
|
|
67
67
|
network: string | null;
|
68
68
|
security: string | null;
|
69
69
|
}>, "many">;
|
70
|
-
}
|
70
|
+
} & {
|
71
71
|
subscriptionUrl: z.ZodString;
|
72
72
|
lastConnectedNode: z.ZodNullable<z.ZodObject<{
|
73
73
|
connectedAt: z.ZodEffects<z.ZodString, Date, string>;
|
@@ -86,7 +86,7 @@ export declare namespace ActivateAllInboundsCommand {
|
|
86
86
|
}, {
|
87
87
|
cryptoLink: string;
|
88
88
|
}>;
|
89
|
-
}
|
89
|
+
}, "strip", z.ZodTypeAny, {
|
90
90
|
status: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
|
91
91
|
uuid: string;
|
92
92
|
createdAt: Date;
|
@@ -12,7 +12,7 @@ export declare namespace DisableUserCommand {
|
|
12
12
|
}>;
|
13
13
|
type Request = z.infer<typeof RequestSchema>;
|
14
14
|
const ResponseSchema: z.ZodObject<{
|
15
|
-
response: z.ZodObject<
|
15
|
+
response: z.ZodObject<{
|
16
16
|
uuid: z.ZodString;
|
17
17
|
subscriptionUuid: z.ZodString;
|
18
18
|
shortUuid: z.ZodString;
|
@@ -67,7 +67,7 @@ export declare namespace DisableUserCommand {
|
|
67
67
|
network: string | null;
|
68
68
|
security: string | null;
|
69
69
|
}>, "many">;
|
70
|
-
}
|
70
|
+
} & {
|
71
71
|
subscriptionUrl: z.ZodString;
|
72
72
|
lastConnectedNode: z.ZodNullable<z.ZodObject<{
|
73
73
|
connectedAt: z.ZodEffects<z.ZodString, Date, string>;
|
@@ -86,7 +86,7 @@ export declare namespace DisableUserCommand {
|
|
86
86
|
}, {
|
87
87
|
cryptoLink: string;
|
88
88
|
}>;
|
89
|
-
}
|
89
|
+
}, "strip", z.ZodTypeAny, {
|
90
90
|
status: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
|
91
91
|
uuid: string;
|
92
92
|
createdAt: Date;
|
@@ -12,7 +12,7 @@ export declare namespace EnableUserCommand {
|
|
12
12
|
}>;
|
13
13
|
type Request = z.infer<typeof RequestSchema>;
|
14
14
|
const ResponseSchema: z.ZodObject<{
|
15
|
-
response: z.ZodObject<
|
15
|
+
response: z.ZodObject<{
|
16
16
|
uuid: z.ZodString;
|
17
17
|
subscriptionUuid: z.ZodString;
|
18
18
|
shortUuid: z.ZodString;
|
@@ -67,7 +67,7 @@ export declare namespace EnableUserCommand {
|
|
67
67
|
network: string | null;
|
68
68
|
security: string | null;
|
69
69
|
}>, "many">;
|
70
|
-
}
|
70
|
+
} & {
|
71
71
|
subscriptionUrl: z.ZodString;
|
72
72
|
lastConnectedNode: z.ZodNullable<z.ZodObject<{
|
73
73
|
connectedAt: z.ZodEffects<z.ZodString, Date, string>;
|
@@ -86,7 +86,7 @@ export declare namespace EnableUserCommand {
|
|
86
86
|
}, {
|
87
87
|
cryptoLink: string;
|
88
88
|
}>;
|
89
|
-
}
|
89
|
+
}, "strip", z.ZodTypeAny, {
|
90
90
|
status: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
|
91
91
|
uuid: string;
|
92
92
|
createdAt: Date;
|
@@ -12,7 +12,7 @@ export declare namespace ResetUserTrafficCommand {
|
|
12
12
|
}>;
|
13
13
|
type Request = z.infer<typeof RequestSchema>;
|
14
14
|
const ResponseSchema: z.ZodObject<{
|
15
|
-
response: z.ZodObject<
|
15
|
+
response: z.ZodObject<{
|
16
16
|
uuid: z.ZodString;
|
17
17
|
subscriptionUuid: z.ZodString;
|
18
18
|
shortUuid: z.ZodString;
|
@@ -67,7 +67,7 @@ export declare namespace ResetUserTrafficCommand {
|
|
67
67
|
network: string | null;
|
68
68
|
security: string | null;
|
69
69
|
}>, "many">;
|
70
|
-
}
|
70
|
+
} & {
|
71
71
|
subscriptionUrl: z.ZodString;
|
72
72
|
lastConnectedNode: z.ZodNullable<z.ZodObject<{
|
73
73
|
connectedAt: z.ZodEffects<z.ZodString, Date, string>;
|
@@ -86,7 +86,7 @@ export declare namespace ResetUserTrafficCommand {
|
|
86
86
|
}, {
|
87
87
|
cryptoLink: string;
|
88
88
|
}>;
|
89
|
-
}
|
89
|
+
}, "strip", z.ZodTypeAny, {
|
90
90
|
status: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
|
91
91
|
uuid: string;
|
92
92
|
createdAt: Date;
|
@@ -12,7 +12,7 @@ export declare namespace RevokeUserSubscriptionCommand {
|
|
12
12
|
}>;
|
13
13
|
type Request = z.infer<typeof RequestSchema>;
|
14
14
|
const ResponseSchema: z.ZodObject<{
|
15
|
-
response: z.ZodObject<
|
15
|
+
response: z.ZodObject<{
|
16
16
|
uuid: z.ZodString;
|
17
17
|
subscriptionUuid: z.ZodString;
|
18
18
|
shortUuid: z.ZodString;
|
@@ -67,7 +67,7 @@ export declare namespace RevokeUserSubscriptionCommand {
|
|
67
67
|
network: string | null;
|
68
68
|
security: string | null;
|
69
69
|
}>, "many">;
|
70
|
-
}
|
70
|
+
} & {
|
71
71
|
subscriptionUrl: z.ZodString;
|
72
72
|
lastConnectedNode: z.ZodNullable<z.ZodObject<{
|
73
73
|
connectedAt: z.ZodEffects<z.ZodString, Date, string>;
|
@@ -86,7 +86,7 @@ export declare namespace RevokeUserSubscriptionCommand {
|
|
86
86
|
}, {
|
87
87
|
cryptoLink: string;
|
88
88
|
}>;
|
89
|
-
}
|
89
|
+
}, "strip", z.ZodTypeAny, {
|
90
90
|
status: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
|
91
91
|
uuid: string;
|
92
92
|
createdAt: Date;
|
@@ -76,7 +76,7 @@ export declare namespace CreateUserCommand {
|
|
76
76
|
}>;
|
77
77
|
type Request = z.infer<typeof RequestSchema>;
|
78
78
|
const ResponseSchema: z.ZodObject<{
|
79
|
-
response: z.ZodObject<
|
79
|
+
response: z.ZodObject<{
|
80
80
|
uuid: z.ZodString;
|
81
81
|
subscriptionUuid: z.ZodString;
|
82
82
|
shortUuid: z.ZodString;
|
@@ -131,7 +131,7 @@ export declare namespace CreateUserCommand {
|
|
131
131
|
network: string | null;
|
132
132
|
security: string | null;
|
133
133
|
}>, "many">;
|
134
|
-
}
|
134
|
+
} & {
|
135
135
|
subscriptionUrl: z.ZodString;
|
136
136
|
lastConnectedNode: z.ZodNullable<z.ZodObject<{
|
137
137
|
connectedAt: z.ZodEffects<z.ZodString, Date, string>;
|
@@ -150,7 +150,7 @@ export declare namespace CreateUserCommand {
|
|
150
150
|
}, {
|
151
151
|
cryptoLink: string;
|
152
152
|
}>;
|
153
|
-
}
|
153
|
+
}, "strip", z.ZodTypeAny, {
|
154
154
|
status: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
|
155
155
|
uuid: string;
|
156
156
|
createdAt: Date;
|
@@ -58,7 +58,7 @@ export declare namespace GetAllUsersCommand {
|
|
58
58
|
type RequestQuery = z.infer<typeof RequestQuerySchema>;
|
59
59
|
const ResponseSchema: z.ZodObject<{
|
60
60
|
response: z.ZodObject<{
|
61
|
-
users: z.ZodArray<z.ZodObject<
|
61
|
+
users: z.ZodArray<z.ZodObject<{
|
62
62
|
uuid: z.ZodString;
|
63
63
|
subscriptionUuid: z.ZodString;
|
64
64
|
shortUuid: z.ZodString;
|
@@ -113,7 +113,7 @@ export declare namespace GetAllUsersCommand {
|
|
113
113
|
network: string | null;
|
114
114
|
security: string | null;
|
115
115
|
}>, "many">;
|
116
|
-
}
|
116
|
+
} & {
|
117
117
|
subscriptionUrl: z.ZodString;
|
118
118
|
lastConnectedNode: z.ZodNullable<z.ZodObject<{
|
119
119
|
connectedAt: z.ZodEffects<z.ZodString, Date, string>;
|
@@ -132,7 +132,7 @@ export declare namespace GetAllUsersCommand {
|
|
132
132
|
}, {
|
133
133
|
cryptoLink: string;
|
134
134
|
}>;
|
135
|
-
}
|
135
|
+
}, "strip", z.ZodTypeAny, {
|
136
136
|
status: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
|
137
137
|
uuid: string;
|
138
138
|
createdAt: Date;
|
@@ -12,7 +12,7 @@ export declare namespace GetUserByEmailCommand {
|
|
12
12
|
}>;
|
13
13
|
type Request = z.infer<typeof RequestSchema>;
|
14
14
|
const ResponseSchema: z.ZodObject<{
|
15
|
-
response: z.ZodArray<z.ZodObject<
|
15
|
+
response: z.ZodArray<z.ZodObject<{
|
16
16
|
uuid: z.ZodString;
|
17
17
|
subscriptionUuid: z.ZodString;
|
18
18
|
shortUuid: z.ZodString;
|
@@ -67,7 +67,7 @@ export declare namespace GetUserByEmailCommand {
|
|
67
67
|
network: string | null;
|
68
68
|
security: string | null;
|
69
69
|
}>, "many">;
|
70
|
-
}
|
70
|
+
} & {
|
71
71
|
subscriptionUrl: z.ZodString;
|
72
72
|
lastConnectedNode: z.ZodNullable<z.ZodObject<{
|
73
73
|
connectedAt: z.ZodEffects<z.ZodString, Date, string>;
|
@@ -86,7 +86,7 @@ export declare namespace GetUserByEmailCommand {
|
|
86
86
|
}, {
|
87
87
|
cryptoLink: string;
|
88
88
|
}>;
|
89
|
-
}
|
89
|
+
}, "strip", z.ZodTypeAny, {
|
90
90
|
status: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
|
91
91
|
uuid: string;
|
92
92
|
createdAt: Date;
|
@@ -12,7 +12,7 @@ export declare namespace GetUserByShortUuidCommand {
|
|
12
12
|
}>;
|
13
13
|
type Request = z.infer<typeof RequestSchema>;
|
14
14
|
const ResponseSchema: z.ZodObject<{
|
15
|
-
response: z.ZodObject<
|
15
|
+
response: z.ZodObject<{
|
16
16
|
uuid: z.ZodString;
|
17
17
|
subscriptionUuid: z.ZodString;
|
18
18
|
shortUuid: z.ZodString;
|
@@ -67,7 +67,7 @@ export declare namespace GetUserByShortUuidCommand {
|
|
67
67
|
network: string | null;
|
68
68
|
security: string | null;
|
69
69
|
}>, "many">;
|
70
|
-
}
|
70
|
+
} & {
|
71
71
|
subscriptionUrl: z.ZodString;
|
72
72
|
lastConnectedNode: z.ZodNullable<z.ZodObject<{
|
73
73
|
connectedAt: z.ZodEffects<z.ZodString, Date, string>;
|
@@ -86,7 +86,7 @@ export declare namespace GetUserByShortUuidCommand {
|
|
86
86
|
}, {
|
87
87
|
cryptoLink: string;
|
88
88
|
}>;
|
89
|
-
}
|
89
|
+
}, "strip", z.ZodTypeAny, {
|
90
90
|
status: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
|
91
91
|
uuid: string;
|
92
92
|
createdAt: Date;
|
@@ -12,7 +12,7 @@ export declare namespace GetUserBySubscriptionUuidCommand {
|
|
12
12
|
}>;
|
13
13
|
type Request = z.infer<typeof RequestSchema>;
|
14
14
|
const ResponseSchema: z.ZodObject<{
|
15
|
-
response: z.ZodObject<
|
15
|
+
response: z.ZodObject<{
|
16
16
|
uuid: z.ZodString;
|
17
17
|
subscriptionUuid: z.ZodString;
|
18
18
|
shortUuid: z.ZodString;
|
@@ -67,7 +67,7 @@ export declare namespace GetUserBySubscriptionUuidCommand {
|
|
67
67
|
network: string | null;
|
68
68
|
security: string | null;
|
69
69
|
}>, "many">;
|
70
|
-
}
|
70
|
+
} & {
|
71
71
|
subscriptionUrl: z.ZodString;
|
72
72
|
lastConnectedNode: z.ZodNullable<z.ZodObject<{
|
73
73
|
connectedAt: z.ZodEffects<z.ZodString, Date, string>;
|
@@ -86,7 +86,7 @@ export declare namespace GetUserBySubscriptionUuidCommand {
|
|
86
86
|
}, {
|
87
87
|
cryptoLink: string;
|
88
88
|
}>;
|
89
|
-
}
|
89
|
+
}, "strip", z.ZodTypeAny, {
|
90
90
|
status: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
|
91
91
|
uuid: string;
|
92
92
|
createdAt: Date;
|
@@ -12,7 +12,7 @@ export declare namespace GetUserByTagCommand {
|
|
12
12
|
}>;
|
13
13
|
type Request = z.infer<typeof RequestSchema>;
|
14
14
|
const ResponseSchema: z.ZodObject<{
|
15
|
-
response: z.ZodArray<z.ZodObject<
|
15
|
+
response: z.ZodArray<z.ZodObject<{
|
16
16
|
uuid: z.ZodString;
|
17
17
|
subscriptionUuid: z.ZodString;
|
18
18
|
shortUuid: z.ZodString;
|
@@ -67,7 +67,7 @@ export declare namespace GetUserByTagCommand {
|
|
67
67
|
network: string | null;
|
68
68
|
security: string | null;
|
69
69
|
}>, "many">;
|
70
|
-
}
|
70
|
+
} & {
|
71
71
|
subscriptionUrl: z.ZodString;
|
72
72
|
lastConnectedNode: z.ZodNullable<z.ZodObject<{
|
73
73
|
connectedAt: z.ZodEffects<z.ZodString, Date, string>;
|
@@ -86,7 +86,7 @@ export declare namespace GetUserByTagCommand {
|
|
86
86
|
}, {
|
87
87
|
cryptoLink: string;
|
88
88
|
}>;
|
89
|
-
}
|
89
|
+
}, "strip", z.ZodTypeAny, {
|
90
90
|
status: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
|
91
91
|
uuid: string;
|
92
92
|
createdAt: Date;
|
@@ -12,7 +12,7 @@ export declare namespace GetUserByTelegramIdCommand {
|
|
12
12
|
}>;
|
13
13
|
type Request = z.infer<typeof RequestSchema>;
|
14
14
|
const ResponseSchema: z.ZodObject<{
|
15
|
-
response: z.ZodArray<z.ZodObject<
|
15
|
+
response: z.ZodArray<z.ZodObject<{
|
16
16
|
uuid: z.ZodString;
|
17
17
|
subscriptionUuid: z.ZodString;
|
18
18
|
shortUuid: z.ZodString;
|
@@ -67,7 +67,7 @@ export declare namespace GetUserByTelegramIdCommand {
|
|
67
67
|
network: string | null;
|
68
68
|
security: string | null;
|
69
69
|
}>, "many">;
|
70
|
-
}
|
70
|
+
} & {
|
71
71
|
subscriptionUrl: z.ZodString;
|
72
72
|
lastConnectedNode: z.ZodNullable<z.ZodObject<{
|
73
73
|
connectedAt: z.ZodEffects<z.ZodString, Date, string>;
|
@@ -86,7 +86,7 @@ export declare namespace GetUserByTelegramIdCommand {
|
|
86
86
|
}, {
|
87
87
|
cryptoLink: string;
|
88
88
|
}>;
|
89
|
-
}
|
89
|
+
}, "strip", z.ZodTypeAny, {
|
90
90
|
status: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
|
91
91
|
uuid: string;
|
92
92
|
createdAt: Date;
|
@@ -12,7 +12,7 @@ export declare namespace GetUserByUsernameCommand {
|
|
12
12
|
}>;
|
13
13
|
type Request = z.infer<typeof RequestSchema>;
|
14
14
|
const ResponseSchema: z.ZodObject<{
|
15
|
-
response: z.ZodObject<
|
15
|
+
response: z.ZodObject<{
|
16
16
|
uuid: z.ZodString;
|
17
17
|
subscriptionUuid: z.ZodString;
|
18
18
|
shortUuid: z.ZodString;
|
@@ -67,7 +67,7 @@ export declare namespace GetUserByUsernameCommand {
|
|
67
67
|
network: string | null;
|
68
68
|
security: string | null;
|
69
69
|
}>, "many">;
|
70
|
-
}
|
70
|
+
} & {
|
71
71
|
subscriptionUrl: z.ZodString;
|
72
72
|
lastConnectedNode: z.ZodNullable<z.ZodObject<{
|
73
73
|
connectedAt: z.ZodEffects<z.ZodString, Date, string>;
|
@@ -86,7 +86,7 @@ export declare namespace GetUserByUsernameCommand {
|
|
86
86
|
}, {
|
87
87
|
cryptoLink: string;
|
88
88
|
}>;
|
89
|
-
}
|
89
|
+
}, "strip", z.ZodTypeAny, {
|
90
90
|
status: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
|
91
91
|
uuid: string;
|
92
92
|
createdAt: Date;
|
@@ -12,7 +12,7 @@ export declare namespace GetUserByUuidCommand {
|
|
12
12
|
}>;
|
13
13
|
type Request = z.infer<typeof RequestSchema>;
|
14
14
|
const ResponseSchema: z.ZodObject<{
|
15
|
-
response: z.ZodObject<
|
15
|
+
response: z.ZodObject<{
|
16
16
|
uuid: z.ZodString;
|
17
17
|
subscriptionUuid: z.ZodString;
|
18
18
|
shortUuid: z.ZodString;
|
@@ -67,7 +67,7 @@ export declare namespace GetUserByUuidCommand {
|
|
67
67
|
network: string | null;
|
68
68
|
security: string | null;
|
69
69
|
}>, "many">;
|
70
|
-
}
|
70
|
+
} & {
|
71
71
|
subscriptionUrl: z.ZodString;
|
72
72
|
lastConnectedNode: z.ZodNullable<z.ZodObject<{
|
73
73
|
connectedAt: z.ZodEffects<z.ZodString, Date, string>;
|
@@ -86,7 +86,7 @@ export declare namespace GetUserByUuidCommand {
|
|
86
86
|
}, {
|
87
87
|
cryptoLink: string;
|
88
88
|
}>;
|
89
|
-
}
|
89
|
+
}, "strip", z.ZodTypeAny, {
|
90
90
|
status: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
|
91
91
|
uuid: string;
|
92
92
|
createdAt: Date;
|
@@ -3,7 +3,7 @@ export declare namespace UpdateUserCommand {
|
|
3
3
|
const url: "/api/users/";
|
4
4
|
const TSQ_url: "/api/users/";
|
5
5
|
const endpointDetails: import("../../constants").EndpointDetails;
|
6
|
-
const RequestSchema: z.ZodObject<
|
6
|
+
const RequestSchema: z.ZodObject<Pick<{
|
7
7
|
uuid: z.ZodString;
|
8
8
|
subscriptionUuid: z.ZodString;
|
9
9
|
shortUuid: z.ZodString;
|
@@ -58,7 +58,7 @@ export declare namespace UpdateUserCommand {
|
|
58
58
|
network: string | null;
|
59
59
|
security: string | null;
|
60
60
|
}>, "many">;
|
61
|
-
}, "uuid"
|
61
|
+
}, "uuid"> & {
|
62
62
|
status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<{
|
63
63
|
readonly ACTIVE: "ACTIVE";
|
64
64
|
readonly DISABLED: "DISABLED";
|
@@ -79,7 +79,7 @@ export declare namespace UpdateUserCommand {
|
|
79
79
|
telegramId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
80
80
|
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
81
81
|
hwidDeviceLimit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
82
|
-
}
|
82
|
+
}, "strip", z.ZodTypeAny, {
|
83
83
|
uuid: string;
|
84
84
|
status?: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE" | undefined;
|
85
85
|
tag?: string | null | undefined;
|
@@ -106,7 +106,7 @@ export declare namespace UpdateUserCommand {
|
|
106
106
|
}>;
|
107
107
|
type Request = z.infer<typeof RequestSchema>;
|
108
108
|
const ResponseSchema: z.ZodObject<{
|
109
|
-
response: z.ZodObject<
|
109
|
+
response: z.ZodObject<{
|
110
110
|
uuid: z.ZodString;
|
111
111
|
subscriptionUuid: z.ZodString;
|
112
112
|
shortUuid: z.ZodString;
|
@@ -161,7 +161,7 @@ export declare namespace UpdateUserCommand {
|
|
161
161
|
network: string | null;
|
162
162
|
security: string | null;
|
163
163
|
}>, "many">;
|
164
|
-
}
|
164
|
+
} & {
|
165
165
|
subscriptionUrl: z.ZodString;
|
166
166
|
lastConnectedNode: z.ZodNullable<z.ZodObject<{
|
167
167
|
connectedAt: z.ZodEffects<z.ZodString, Date, string>;
|
@@ -180,7 +180,7 @@ export declare namespace UpdateUserCommand {
|
|
180
180
|
}, {
|
181
181
|
cryptoLink: string;
|
182
182
|
}>;
|
183
|
-
}
|
183
|
+
}, "strip", z.ZodTypeAny, {
|
184
184
|
status: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
|
185
185
|
uuid: string;
|
186
186
|
createdAt: Date;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { z } from 'zod';
|
2
|
-
export declare const ExtendedUsersSchema: z.ZodObject<
|
2
|
+
export declare const ExtendedUsersSchema: z.ZodObject<{
|
3
3
|
uuid: z.ZodString;
|
4
4
|
subscriptionUuid: z.ZodString;
|
5
5
|
shortUuid: z.ZodString;
|
@@ -54,7 +54,7 @@ export declare const ExtendedUsersSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
54
54
|
network: string | null;
|
55
55
|
security: string | null;
|
56
56
|
}>, "many">;
|
57
|
-
}
|
57
|
+
} & {
|
58
58
|
subscriptionUrl: z.ZodString;
|
59
59
|
lastConnectedNode: z.ZodNullable<z.ZodObject<{
|
60
60
|
connectedAt: z.ZodEffects<z.ZodString, Date, string>;
|
@@ -73,7 +73,7 @@ export declare const ExtendedUsersSchema: z.ZodObject<z.objectUtil.extendShape<{
|
|
73
73
|
}, {
|
74
74
|
cryptoLink: string;
|
75
75
|
}>;
|
76
|
-
}
|
76
|
+
}, "strip", z.ZodTypeAny, {
|
77
77
|
status: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
|
78
78
|
uuid: string;
|
79
79
|
createdAt: Date;
|