@remnawave/backend-contract 0.4.3 → 0.4.4

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.
Files changed (22) hide show
  1. package/build/backend/commands/hosts/update.command.d.ts +3 -3
  2. package/build/backend/commands/nodes/update.command.d.ts +3 -3
  3. package/build/backend/commands/users/activate-all-inbounds.command.d.ts +3 -3
  4. package/build/backend/commands/users/create-user.command.d.ts +3 -3
  5. package/build/backend/commands/users/disable-user.command.d.ts +3 -3
  6. package/build/backend/commands/users/enable-user.command.d.ts +3 -3
  7. package/build/backend/commands/users/get-all-users-v2.command.d.ts +3 -3
  8. package/build/backend/commands/users/get-user-by-email.command.d.ts +3 -3
  9. package/build/backend/commands/users/get-user-by-short-uuid.command.d.ts +3 -3
  10. package/build/backend/commands/users/get-user-by-subscription-uuid.command.d.ts +3 -3
  11. package/build/backend/commands/users/get-user-by-telegram-id.command.d.ts +3 -3
  12. package/build/backend/commands/users/get-user-by-username.command.d.ts +3 -3
  13. package/build/backend/commands/users/get-user-by-uuid.command.d.ts +3 -3
  14. package/build/backend/commands/users/reset-user-traffic.command.d.ts +3 -3
  15. package/build/backend/commands/users/revoke-user-subscription.command.d.ts +3 -3
  16. package/build/backend/commands/users/update-user.command.d.ts +6 -6
  17. package/build/backend/constants/errors/errors.d.ts +5 -0
  18. package/build/backend/constants/errors/errors.d.ts.map +1 -1
  19. package/build/backend/constants/errors/errors.js +5 -0
  20. package/build/backend/models/extented-users.schema.d.ts +3 -3
  21. package/build/frontend/constants/errors/errors.js +5 -0
  22. package/package.json +1 -1
@@ -2,7 +2,7 @@ import { z } from 'zod';
2
2
  export declare namespace UpdateHostCommand {
3
3
  const url: "/api/hosts/update";
4
4
  const TSQ_url: "/api/hosts/update";
5
- const RequestSchema: z.ZodObject<z.objectUtil.extendShape<Pick<{
5
+ const RequestSchema: z.ZodObject<Pick<{
6
6
  uuid: z.ZodString;
7
7
  inboundUuid: z.ZodString;
8
8
  viewPosition: z.ZodNumber;
@@ -22,7 +22,7 @@ export declare namespace UpdateHostCommand {
22
22
  readonly NONE: "NONE";
23
23
  }>>;
24
24
  xHttpExtraParams: z.ZodNullable<z.ZodUnknown>;
25
- }, "uuid">, {
25
+ }, "uuid"> & {
26
26
  inboundUuid: z.ZodOptional<z.ZodString>;
27
27
  remark: z.ZodOptional<z.ZodString>;
28
28
  address: z.ZodOptional<z.ZodString>;
@@ -57,7 +57,7 @@ export declare namespace UpdateHostCommand {
57
57
  readonly NONE: "NONE";
58
58
  }>>;
59
59
  xHttpExtraParams: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
60
- }>, "strip", z.ZodTypeAny, {
60
+ }, "strip", z.ZodTypeAny, {
61
61
  uuid: string;
62
62
  path?: string | undefined;
63
63
  port?: number | undefined;
@@ -2,7 +2,7 @@ import { z } from 'zod';
2
2
  export declare namespace UpdateNodeCommand {
3
3
  const url: "/api/nodes/update";
4
4
  const TSQ_url: "/api/nodes/update";
5
- const RequestSchema: z.ZodObject<z.objectUtil.extendShape<Pick<{
5
+ const RequestSchema: z.ZodObject<Pick<{
6
6
  uuid: z.ZodString;
7
7
  name: z.ZodString;
8
8
  address: z.ZodString;
@@ -49,7 +49,7 @@ export declare namespace UpdateNodeCommand {
49
49
  network: string | null;
50
50
  security: string | null;
51
51
  }>, "many">;
52
- }, "uuid">, {
52
+ }, "uuid"> & {
53
53
  name: z.ZodOptional<z.ZodString>;
54
54
  address: z.ZodOptional<z.ZodString>;
55
55
  port: z.ZodOptional<z.ZodNumber>;
@@ -60,7 +60,7 @@ export declare namespace UpdateNodeCommand {
60
60
  excludedInbounds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
61
61
  countryCode: z.ZodOptional<z.ZodString>;
62
62
  consumptionMultiplier: z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>;
63
- }>, "strip", z.ZodTypeAny, {
63
+ }, "strip", z.ZodTypeAny, {
64
64
  uuid: string;
65
65
  trafficLimitBytes?: number | undefined;
66
66
  port?: number | undefined;
@@ -11,7 +11,7 @@ export declare namespace ActivateAllInboundsCommand {
11
11
  }>;
12
12
  type Request = z.infer<typeof RequestSchema>;
13
13
  const ResponseSchema: z.ZodObject<{
14
- response: z.ZodObject<z.objectUtil.extendShape<{
14
+ response: z.ZodObject<{
15
15
  uuid: z.ZodString;
16
16
  subscriptionUuid: z.ZodString;
17
17
  shortUuid: z.ZodString;
@@ -65,7 +65,7 @@ export declare namespace ActivateAllInboundsCommand {
65
65
  network: string | null;
66
66
  security: string | null;
67
67
  }>, "many">;
68
- }, {
68
+ } & {
69
69
  subscriptionUrl: z.ZodString;
70
70
  lastConnectedNode: z.ZodNullable<z.ZodObject<{
71
71
  connectedAt: z.ZodEffects<z.ZodString, Date, string>;
@@ -84,7 +84,7 @@ export declare namespace ActivateAllInboundsCommand {
84
84
  }, {
85
85
  cryptoLink: string;
86
86
  }>;
87
- }>, "strip", z.ZodTypeAny, {
87
+ }, "strip", z.ZodTypeAny, {
88
88
  status: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
89
89
  uuid: string;
90
90
  username: string;
@@ -72,7 +72,7 @@ export declare namespace CreateUserCommand {
72
72
  }>;
73
73
  type Request = z.infer<typeof RequestSchema>;
74
74
  const ResponseSchema: z.ZodObject<{
75
- response: z.ZodObject<z.objectUtil.extendShape<{
75
+ response: z.ZodObject<{
76
76
  uuid: z.ZodString;
77
77
  subscriptionUuid: z.ZodString;
78
78
  shortUuid: z.ZodString;
@@ -126,7 +126,7 @@ export declare namespace CreateUserCommand {
126
126
  network: string | null;
127
127
  security: string | null;
128
128
  }>, "many">;
129
- }, {
129
+ } & {
130
130
  subscriptionUrl: z.ZodString;
131
131
  lastConnectedNode: z.ZodNullable<z.ZodObject<{
132
132
  connectedAt: z.ZodEffects<z.ZodString, Date, string>;
@@ -145,7 +145,7 @@ export declare namespace CreateUserCommand {
145
145
  }, {
146
146
  cryptoLink: string;
147
147
  }>;
148
- }>, "strip", z.ZodTypeAny, {
148
+ }, "strip", z.ZodTypeAny, {
149
149
  status: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
150
150
  uuid: string;
151
151
  username: string;
@@ -11,7 +11,7 @@ export declare namespace DisableUserCommand {
11
11
  }>;
12
12
  type Request = z.infer<typeof RequestSchema>;
13
13
  const ResponseSchema: z.ZodObject<{
14
- response: z.ZodObject<z.objectUtil.extendShape<{
14
+ response: z.ZodObject<{
15
15
  uuid: z.ZodString;
16
16
  subscriptionUuid: z.ZodString;
17
17
  shortUuid: z.ZodString;
@@ -65,7 +65,7 @@ export declare namespace DisableUserCommand {
65
65
  network: string | null;
66
66
  security: string | null;
67
67
  }>, "many">;
68
- }, {
68
+ } & {
69
69
  subscriptionUrl: z.ZodString;
70
70
  lastConnectedNode: z.ZodNullable<z.ZodObject<{
71
71
  connectedAt: z.ZodEffects<z.ZodString, Date, string>;
@@ -84,7 +84,7 @@ export declare namespace DisableUserCommand {
84
84
  }, {
85
85
  cryptoLink: string;
86
86
  }>;
87
- }>, "strip", z.ZodTypeAny, {
87
+ }, "strip", z.ZodTypeAny, {
88
88
  status: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
89
89
  uuid: string;
90
90
  username: string;
@@ -11,7 +11,7 @@ export declare namespace EnableUserCommand {
11
11
  }>;
12
12
  type Request = z.infer<typeof RequestSchema>;
13
13
  const ResponseSchema: z.ZodObject<{
14
- response: z.ZodObject<z.objectUtil.extendShape<{
14
+ response: z.ZodObject<{
15
15
  uuid: z.ZodString;
16
16
  subscriptionUuid: z.ZodString;
17
17
  shortUuid: z.ZodString;
@@ -65,7 +65,7 @@ export declare namespace EnableUserCommand {
65
65
  network: string | null;
66
66
  security: string | null;
67
67
  }>, "many">;
68
- }, {
68
+ } & {
69
69
  subscriptionUrl: z.ZodString;
70
70
  lastConnectedNode: z.ZodNullable<z.ZodObject<{
71
71
  connectedAt: z.ZodEffects<z.ZodString, Date, string>;
@@ -84,7 +84,7 @@ export declare namespace EnableUserCommand {
84
84
  }, {
85
85
  cryptoLink: string;
86
86
  }>;
87
- }>, "strip", z.ZodTypeAny, {
87
+ }, "strip", z.ZodTypeAny, {
88
88
  status: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
89
89
  uuid: string;
90
90
  username: string;
@@ -57,7 +57,7 @@ export declare namespace GetAllUsersV2Command {
57
57
  type RequestQuery = z.infer<typeof RequestQuerySchema>;
58
58
  const ResponseSchema: z.ZodObject<{
59
59
  response: z.ZodObject<{
60
- users: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
60
+ users: z.ZodArray<z.ZodObject<{
61
61
  uuid: z.ZodString;
62
62
  subscriptionUuid: z.ZodString;
63
63
  shortUuid: z.ZodString;
@@ -111,7 +111,7 @@ export declare namespace GetAllUsersV2Command {
111
111
  network: string | null;
112
112
  security: string | null;
113
113
  }>, "many">;
114
- }, {
114
+ } & {
115
115
  subscriptionUrl: z.ZodString;
116
116
  lastConnectedNode: z.ZodNullable<z.ZodObject<{
117
117
  connectedAt: z.ZodEffects<z.ZodString, Date, string>;
@@ -130,7 +130,7 @@ export declare namespace GetAllUsersV2Command {
130
130
  }, {
131
131
  cryptoLink: string;
132
132
  }>;
133
- }>, "strip", z.ZodTypeAny, {
133
+ }, "strip", z.ZodTypeAny, {
134
134
  status: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
135
135
  uuid: string;
136
136
  username: string;
@@ -11,7 +11,7 @@ export declare namespace GetUserByEmailCommand {
11
11
  }>;
12
12
  type Request = z.infer<typeof RequestSchema>;
13
13
  const ResponseSchema: z.ZodObject<{
14
- response: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
14
+ response: z.ZodArray<z.ZodObject<{
15
15
  uuid: z.ZodString;
16
16
  subscriptionUuid: z.ZodString;
17
17
  shortUuid: z.ZodString;
@@ -65,7 +65,7 @@ export declare namespace GetUserByEmailCommand {
65
65
  network: string | null;
66
66
  security: string | null;
67
67
  }>, "many">;
68
- }, {
68
+ } & {
69
69
  subscriptionUrl: z.ZodString;
70
70
  lastConnectedNode: z.ZodNullable<z.ZodObject<{
71
71
  connectedAt: z.ZodEffects<z.ZodString, Date, string>;
@@ -84,7 +84,7 @@ export declare namespace GetUserByEmailCommand {
84
84
  }, {
85
85
  cryptoLink: string;
86
86
  }>;
87
- }>, "strip", z.ZodTypeAny, {
87
+ }, "strip", z.ZodTypeAny, {
88
88
  status: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
89
89
  uuid: string;
90
90
  username: string;
@@ -11,7 +11,7 @@ export declare namespace GetUserByShortUuidCommand {
11
11
  }>;
12
12
  type Request = z.infer<typeof RequestSchema>;
13
13
  const ResponseSchema: z.ZodObject<{
14
- response: z.ZodObject<z.objectUtil.extendShape<{
14
+ response: z.ZodObject<{
15
15
  uuid: z.ZodString;
16
16
  subscriptionUuid: z.ZodString;
17
17
  shortUuid: z.ZodString;
@@ -65,7 +65,7 @@ export declare namespace GetUserByShortUuidCommand {
65
65
  network: string | null;
66
66
  security: string | null;
67
67
  }>, "many">;
68
- }, {
68
+ } & {
69
69
  subscriptionUrl: z.ZodString;
70
70
  lastConnectedNode: z.ZodNullable<z.ZodObject<{
71
71
  connectedAt: z.ZodEffects<z.ZodString, Date, string>;
@@ -84,7 +84,7 @@ export declare namespace GetUserByShortUuidCommand {
84
84
  }, {
85
85
  cryptoLink: string;
86
86
  }>;
87
- }>, "strip", z.ZodTypeAny, {
87
+ }, "strip", z.ZodTypeAny, {
88
88
  status: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
89
89
  uuid: string;
90
90
  username: string;
@@ -11,7 +11,7 @@ export declare namespace GetUserBySubscriptionUuidCommand {
11
11
  }>;
12
12
  type Request = z.infer<typeof RequestSchema>;
13
13
  const ResponseSchema: z.ZodObject<{
14
- response: z.ZodObject<z.objectUtil.extendShape<{
14
+ response: z.ZodObject<{
15
15
  uuid: z.ZodString;
16
16
  subscriptionUuid: z.ZodString;
17
17
  shortUuid: z.ZodString;
@@ -65,7 +65,7 @@ export declare namespace GetUserBySubscriptionUuidCommand {
65
65
  network: string | null;
66
66
  security: string | null;
67
67
  }>, "many">;
68
- }, {
68
+ } & {
69
69
  subscriptionUrl: z.ZodString;
70
70
  lastConnectedNode: z.ZodNullable<z.ZodObject<{
71
71
  connectedAt: z.ZodEffects<z.ZodString, Date, string>;
@@ -84,7 +84,7 @@ export declare namespace GetUserBySubscriptionUuidCommand {
84
84
  }, {
85
85
  cryptoLink: string;
86
86
  }>;
87
- }>, "strip", z.ZodTypeAny, {
87
+ }, "strip", z.ZodTypeAny, {
88
88
  status: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
89
89
  uuid: string;
90
90
  username: string;
@@ -11,7 +11,7 @@ export declare namespace GetUserByTelegramIdCommand {
11
11
  }>;
12
12
  type Request = z.infer<typeof RequestSchema>;
13
13
  const ResponseSchema: z.ZodObject<{
14
- response: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
14
+ response: z.ZodArray<z.ZodObject<{
15
15
  uuid: z.ZodString;
16
16
  subscriptionUuid: z.ZodString;
17
17
  shortUuid: z.ZodString;
@@ -65,7 +65,7 @@ export declare namespace GetUserByTelegramIdCommand {
65
65
  network: string | null;
66
66
  security: string | null;
67
67
  }>, "many">;
68
- }, {
68
+ } & {
69
69
  subscriptionUrl: z.ZodString;
70
70
  lastConnectedNode: z.ZodNullable<z.ZodObject<{
71
71
  connectedAt: z.ZodEffects<z.ZodString, Date, string>;
@@ -84,7 +84,7 @@ export declare namespace GetUserByTelegramIdCommand {
84
84
  }, {
85
85
  cryptoLink: string;
86
86
  }>;
87
- }>, "strip", z.ZodTypeAny, {
87
+ }, "strip", z.ZodTypeAny, {
88
88
  status: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
89
89
  uuid: string;
90
90
  username: string;
@@ -11,7 +11,7 @@ export declare namespace GetUserByUsernameCommand {
11
11
  }>;
12
12
  type Request = z.infer<typeof RequestSchema>;
13
13
  const ResponseSchema: z.ZodObject<{
14
- response: z.ZodObject<z.objectUtil.extendShape<{
14
+ response: z.ZodObject<{
15
15
  uuid: z.ZodString;
16
16
  subscriptionUuid: z.ZodString;
17
17
  shortUuid: z.ZodString;
@@ -65,7 +65,7 @@ export declare namespace GetUserByUsernameCommand {
65
65
  network: string | null;
66
66
  security: string | null;
67
67
  }>, "many">;
68
- }, {
68
+ } & {
69
69
  subscriptionUrl: z.ZodString;
70
70
  lastConnectedNode: z.ZodNullable<z.ZodObject<{
71
71
  connectedAt: z.ZodEffects<z.ZodString, Date, string>;
@@ -84,7 +84,7 @@ export declare namespace GetUserByUsernameCommand {
84
84
  }, {
85
85
  cryptoLink: string;
86
86
  }>;
87
- }>, "strip", z.ZodTypeAny, {
87
+ }, "strip", z.ZodTypeAny, {
88
88
  status: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
89
89
  uuid: string;
90
90
  username: string;
@@ -11,7 +11,7 @@ export declare namespace GetUserByUuidCommand {
11
11
  }>;
12
12
  type Request = z.infer<typeof RequestSchema>;
13
13
  const ResponseSchema: z.ZodObject<{
14
- response: z.ZodObject<z.objectUtil.extendShape<{
14
+ response: z.ZodObject<{
15
15
  uuid: z.ZodString;
16
16
  subscriptionUuid: z.ZodString;
17
17
  shortUuid: z.ZodString;
@@ -65,7 +65,7 @@ export declare namespace GetUserByUuidCommand {
65
65
  network: string | null;
66
66
  security: string | null;
67
67
  }>, "many">;
68
- }, {
68
+ } & {
69
69
  subscriptionUrl: z.ZodString;
70
70
  lastConnectedNode: z.ZodNullable<z.ZodObject<{
71
71
  connectedAt: z.ZodEffects<z.ZodString, Date, string>;
@@ -84,7 +84,7 @@ export declare namespace GetUserByUuidCommand {
84
84
  }, {
85
85
  cryptoLink: string;
86
86
  }>;
87
- }>, "strip", z.ZodTypeAny, {
87
+ }, "strip", z.ZodTypeAny, {
88
88
  status: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
89
89
  uuid: string;
90
90
  username: string;
@@ -11,7 +11,7 @@ export declare namespace ResetUserTrafficCommand {
11
11
  }>;
12
12
  type Request = z.infer<typeof RequestSchema>;
13
13
  const ResponseSchema: z.ZodObject<{
14
- response: z.ZodObject<z.objectUtil.extendShape<{
14
+ response: z.ZodObject<{
15
15
  uuid: z.ZodString;
16
16
  subscriptionUuid: z.ZodString;
17
17
  shortUuid: z.ZodString;
@@ -65,7 +65,7 @@ export declare namespace ResetUserTrafficCommand {
65
65
  network: string | null;
66
66
  security: string | null;
67
67
  }>, "many">;
68
- }, {
68
+ } & {
69
69
  subscriptionUrl: z.ZodString;
70
70
  lastConnectedNode: z.ZodNullable<z.ZodObject<{
71
71
  connectedAt: z.ZodEffects<z.ZodString, Date, string>;
@@ -84,7 +84,7 @@ export declare namespace ResetUserTrafficCommand {
84
84
  }, {
85
85
  cryptoLink: string;
86
86
  }>;
87
- }>, "strip", z.ZodTypeAny, {
87
+ }, "strip", z.ZodTypeAny, {
88
88
  status: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
89
89
  uuid: string;
90
90
  username: string;
@@ -11,7 +11,7 @@ export declare namespace RevokeUserSubscriptionCommand {
11
11
  }>;
12
12
  type Request = z.infer<typeof RequestSchema>;
13
13
  const ResponseSchema: z.ZodObject<{
14
- response: z.ZodObject<z.objectUtil.extendShape<{
14
+ response: z.ZodObject<{
15
15
  uuid: z.ZodString;
16
16
  subscriptionUuid: z.ZodString;
17
17
  shortUuid: z.ZodString;
@@ -65,7 +65,7 @@ export declare namespace RevokeUserSubscriptionCommand {
65
65
  network: string | null;
66
66
  security: string | null;
67
67
  }>, "many">;
68
- }, {
68
+ } & {
69
69
  subscriptionUrl: z.ZodString;
70
70
  lastConnectedNode: z.ZodNullable<z.ZodObject<{
71
71
  connectedAt: z.ZodEffects<z.ZodString, Date, string>;
@@ -84,7 +84,7 @@ export declare namespace RevokeUserSubscriptionCommand {
84
84
  }, {
85
85
  cryptoLink: string;
86
86
  }>;
87
- }>, "strip", z.ZodTypeAny, {
87
+ }, "strip", z.ZodTypeAny, {
88
88
  status: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
89
89
  uuid: string;
90
90
  username: string;
@@ -2,7 +2,7 @@ import { z } from 'zod';
2
2
  export declare namespace UpdateUserCommand {
3
3
  const url: "/api/users/update";
4
4
  const TSQ_url: "/api/users/update";
5
- const RequestSchema: z.ZodObject<z.objectUtil.extendShape<Pick<{
5
+ const RequestSchema: z.ZodObject<Pick<{
6
6
  uuid: z.ZodString;
7
7
  subscriptionUuid: z.ZodString;
8
8
  shortUuid: z.ZodString;
@@ -56,7 +56,7 @@ export declare namespace UpdateUserCommand {
56
56
  network: string | null;
57
57
  security: string | null;
58
58
  }>, "many">;
59
- }, "uuid">, {
59
+ }, "uuid"> & {
60
60
  status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<{
61
61
  readonly ACTIVE: "ACTIVE";
62
62
  readonly DISABLED: "DISABLED";
@@ -76,7 +76,7 @@ export declare namespace UpdateUserCommand {
76
76
  telegramId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
77
77
  email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
78
78
  hwidDeviceLimit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
79
- }>, "strip", z.ZodTypeAny, {
79
+ }, "strip", z.ZodTypeAny, {
80
80
  uuid: string;
81
81
  status?: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE" | undefined;
82
82
  email?: string | null | undefined;
@@ -101,7 +101,7 @@ export declare namespace UpdateUserCommand {
101
101
  }>;
102
102
  type Request = z.infer<typeof RequestSchema>;
103
103
  const ResponseSchema: z.ZodObject<{
104
- response: z.ZodObject<z.objectUtil.extendShape<{
104
+ response: z.ZodObject<{
105
105
  uuid: z.ZodString;
106
106
  subscriptionUuid: z.ZodString;
107
107
  shortUuid: z.ZodString;
@@ -155,7 +155,7 @@ export declare namespace UpdateUserCommand {
155
155
  network: string | null;
156
156
  security: string | null;
157
157
  }>, "many">;
158
- }, {
158
+ } & {
159
159
  subscriptionUrl: z.ZodString;
160
160
  lastConnectedNode: z.ZodNullable<z.ZodObject<{
161
161
  connectedAt: z.ZodEffects<z.ZodString, Date, string>;
@@ -174,7 +174,7 @@ export declare namespace UpdateUserCommand {
174
174
  }, {
175
175
  cryptoLink: string;
176
176
  }>;
177
- }>, "strip", z.ZodTypeAny, {
177
+ }, "strip", z.ZodTypeAny, {
178
178
  status: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
179
179
  uuid: string;
180
180
  username: string;
@@ -534,5 +534,10 @@ export declare const ERRORS: {
534
534
  readonly message: "Delete hwid user device error";
535
535
  readonly httpCode: 500;
536
536
  };
537
+ readonly UPSERT_HWID_USER_DEVICE_ERROR: {
538
+ readonly code: "A102";
539
+ readonly message: "Upsert hwid user device error";
540
+ readonly httpCode: 500;
541
+ };
537
542
  };
538
543
  //# sourceMappingURL=errors.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../../constants/errors/errors.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAwJY,MAAM;;;;;;;;;;wCAUN,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCA4IN,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2M3B,CAAC"}
1
+ {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../../constants/errors/errors.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAwJY,MAAM;;;;;;;;;;wCAUN,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCA4IN,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgN3B,CAAC"}
@@ -505,4 +505,9 @@ exports.ERRORS = {
505
505
  message: 'Delete hwid user device error',
506
506
  httpCode: 500,
507
507
  },
508
+ UPSERT_HWID_USER_DEVICE_ERROR: {
509
+ code: 'A102',
510
+ message: 'Upsert hwid user device error',
511
+ httpCode: 500,
512
+ },
508
513
  };
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- export declare const ExtendedUsersSchema: z.ZodObject<z.objectUtil.extendShape<{
2
+ export declare const ExtendedUsersSchema: z.ZodObject<{
3
3
  uuid: z.ZodString;
4
4
  subscriptionUuid: z.ZodString;
5
5
  shortUuid: z.ZodString;
@@ -53,7 +53,7 @@ export declare const ExtendedUsersSchema: z.ZodObject<z.objectUtil.extendShape<{
53
53
  network: string | null;
54
54
  security: string | null;
55
55
  }>, "many">;
56
- }, {
56
+ } & {
57
57
  subscriptionUrl: z.ZodString;
58
58
  lastConnectedNode: z.ZodNullable<z.ZodObject<{
59
59
  connectedAt: z.ZodEffects<z.ZodString, Date, string>;
@@ -72,7 +72,7 @@ export declare const ExtendedUsersSchema: z.ZodObject<z.objectUtil.extendShape<{
72
72
  }, {
73
73
  cryptoLink: string;
74
74
  }>;
75
- }>, "strip", z.ZodTypeAny, {
75
+ }, "strip", z.ZodTypeAny, {
76
76
  status: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
77
77
  uuid: string;
78
78
  username: string;
@@ -505,4 +505,9 @@ exports.ERRORS = {
505
505
  message: 'Delete hwid user device error',
506
506
  httpCode: 500,
507
507
  },
508
+ UPSERT_HWID_USER_DEVICE_ERROR: {
509
+ code: 'A102',
510
+ message: 'Upsert hwid user device error',
511
+ httpCode: 500,
512
+ },
508
513
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remnawave/backend-contract",
3
- "version": "0.4.3",
3
+ "version": "0.4.4",
4
4
  "public": true,
5
5
  "license": "AGPL-3.0-only",
6
6
  "description": "A contract library for Remnawave Backend. It can be used in backend and frontend.",