@remnawave/backend-contract 0.5.5 → 0.5.7

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 (21) hide show
  1. package/build/backend/api/controllers/users.d.ts.map +1 -1
  2. package/build/backend/api/controllers/users.js +5 -5
  3. package/build/backend/commands/hosts/update.command.d.ts +3 -3
  4. package/build/backend/commands/nodes/update.command.d.ts +3 -3
  5. package/build/backend/commands/users/actions/activate-all-inbounds.command.d.ts +3 -3
  6. package/build/backend/commands/users/actions/disable-user.command.d.ts +3 -3
  7. package/build/backend/commands/users/actions/enable-user.command.d.ts +3 -3
  8. package/build/backend/commands/users/actions/reset-user-traffic.command.d.ts +3 -3
  9. package/build/backend/commands/users/actions/revoke-user-subscription.command.d.ts +3 -3
  10. package/build/backend/commands/users/create-user.command.d.ts +3 -3
  11. package/build/backend/commands/users/get-all-users.command.d.ts +3 -3
  12. package/build/backend/commands/users/get-by/get-user-by-email.command.d.ts +3 -3
  13. package/build/backend/commands/users/get-by/get-user-by-short-uuid.command.d.ts +3 -3
  14. package/build/backend/commands/users/get-by/get-user-by-subscription-uuid.command.d.ts +3 -3
  15. package/build/backend/commands/users/get-by/get-user-by-telegram-id.command.d.ts +3 -3
  16. package/build/backend/commands/users/get-by/get-user-by-username.command.d.ts +3 -3
  17. package/build/backend/commands/users/get-user-by-uuid.command.d.ts +3 -3
  18. package/build/backend/commands/users/update-user.command.d.ts +6 -6
  19. package/build/backend/models/extented-users.schema.d.ts +3 -3
  20. package/build/frontend/api/controllers/users.js +5 -5
  21. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"users.d.ts","sourceRoot":"","sources":["../../../../api/controllers/users.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,EAAG,OAAgB,CAAC;AAEjD,eAAO,MAAM,mBAAmB,EAAG,SAAkB,CAAC;AAEtD,eAAO,MAAM,YAAY;;;;4BAIN,MAAM;iCACD,MAAM;;gCAEP,MAAM;iCACL,MAAM;uCACA,MAAM;+CACE,MAAM;6CAER,MAAM;;;yCAGV,MAAM;sCACT,MAAM;uDACW,MAAM;2CAElB,MAAM;gCACjB,MAAM;;;;;;;;;;;;;;;4CAiBM,MAAM;;CAE/B,CAAC"}
1
+ {"version":3,"file":"users.d.ts","sourceRoot":"","sources":["../../../../api/controllers/users.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,EAAG,OAAgB,CAAC;AAEjD,eAAO,MAAM,mBAAmB,EAAG,SAAkB,CAAC;AAEtD,eAAO,MAAM,YAAY;;;;4BAIN,MAAM;iCACD,MAAM;;gCAEP,MAAM;iCACL,MAAM;uCACA,MAAM;+CACE,MAAM;6CAER,MAAM;;;yCAGV,MAAM;sCACT,MAAM;uDACW,MAAM;2CAClB,MAAM;gCACjB,MAAM;;;;;;;;;;;;;;;4CAiBM,MAAM;;CAE/B,CAAC"}
@@ -17,11 +17,11 @@ exports.USERS_ROUTES = {
17
17
  REVOKE_SUBSCRIPTION: (uuid) => `${uuid}/${exports.USERS_ACTIONS_ROUTE}/revoke`,
18
18
  },
19
19
  GET_BY: {
20
- SHORT_UUID: (shortUuid) => `/by-short-uuid/${shortUuid}`,
21
- USERNAME: (username) => `/by-username/${username}`,
22
- SUBSCRIPTION_UUID: (subscriptionUuid) => `/by-subscription-uuid/${subscriptionUuid}`,
23
- TELEGRAM_ID: (telegramId) => `/by-telegram-id/${telegramId}`,
24
- EMAIL: (email) => `/by-email/${email}`,
20
+ SHORT_UUID: (shortUuid) => `by-short-uuid/${shortUuid}`,
21
+ USERNAME: (username) => `by-username/${username}`,
22
+ SUBSCRIPTION_UUID: (subscriptionUuid) => `by-subscription-uuid/${subscriptionUuid}`,
23
+ TELEGRAM_ID: (telegramId) => `by-telegram-id/${telegramId}`,
24
+ EMAIL: (email) => `by-email/${email}`,
25
25
  },
26
26
  BULK: {
27
27
  DELETE_BY_STATUS: 'bulk/delete-by-status',
@@ -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<z.objectUtil.extendShape<Pick<{
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
- }>, "strip", z.ZodTypeAny, {
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<z.objectUtil.extendShape<Pick<{
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
- }>, "strip", z.ZodTypeAny, {
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<z.objectUtil.extendShape<{
15
+ response: z.ZodObject<{
16
16
  uuid: z.ZodString;
17
17
  subscriptionUuid: z.ZodString;
18
18
  shortUuid: z.ZodString;
@@ -66,7 +66,7 @@ export declare namespace ActivateAllInboundsCommand {
66
66
  network: string | null;
67
67
  security: string | null;
68
68
  }>, "many">;
69
- }, {
69
+ } & {
70
70
  subscriptionUrl: z.ZodString;
71
71
  lastConnectedNode: z.ZodNullable<z.ZodObject<{
72
72
  connectedAt: z.ZodEffects<z.ZodString, Date, string>;
@@ -85,7 +85,7 @@ export declare namespace ActivateAllInboundsCommand {
85
85
  }, {
86
86
  cryptoLink: string;
87
87
  }>;
88
- }>, "strip", z.ZodTypeAny, {
88
+ }, "strip", z.ZodTypeAny, {
89
89
  status: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
90
90
  uuid: string;
91
91
  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<z.objectUtil.extendShape<{
15
+ response: z.ZodObject<{
16
16
  uuid: z.ZodString;
17
17
  subscriptionUuid: z.ZodString;
18
18
  shortUuid: z.ZodString;
@@ -66,7 +66,7 @@ export declare namespace DisableUserCommand {
66
66
  network: string | null;
67
67
  security: string | null;
68
68
  }>, "many">;
69
- }, {
69
+ } & {
70
70
  subscriptionUrl: z.ZodString;
71
71
  lastConnectedNode: z.ZodNullable<z.ZodObject<{
72
72
  connectedAt: z.ZodEffects<z.ZodString, Date, string>;
@@ -85,7 +85,7 @@ export declare namespace DisableUserCommand {
85
85
  }, {
86
86
  cryptoLink: string;
87
87
  }>;
88
- }>, "strip", z.ZodTypeAny, {
88
+ }, "strip", z.ZodTypeAny, {
89
89
  status: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
90
90
  uuid: string;
91
91
  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<z.objectUtil.extendShape<{
15
+ response: z.ZodObject<{
16
16
  uuid: z.ZodString;
17
17
  subscriptionUuid: z.ZodString;
18
18
  shortUuid: z.ZodString;
@@ -66,7 +66,7 @@ export declare namespace EnableUserCommand {
66
66
  network: string | null;
67
67
  security: string | null;
68
68
  }>, "many">;
69
- }, {
69
+ } & {
70
70
  subscriptionUrl: z.ZodString;
71
71
  lastConnectedNode: z.ZodNullable<z.ZodObject<{
72
72
  connectedAt: z.ZodEffects<z.ZodString, Date, string>;
@@ -85,7 +85,7 @@ export declare namespace EnableUserCommand {
85
85
  }, {
86
86
  cryptoLink: string;
87
87
  }>;
88
- }>, "strip", z.ZodTypeAny, {
88
+ }, "strip", z.ZodTypeAny, {
89
89
  status: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
90
90
  uuid: string;
91
91
  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<z.objectUtil.extendShape<{
15
+ response: z.ZodObject<{
16
16
  uuid: z.ZodString;
17
17
  subscriptionUuid: z.ZodString;
18
18
  shortUuid: z.ZodString;
@@ -66,7 +66,7 @@ export declare namespace ResetUserTrafficCommand {
66
66
  network: string | null;
67
67
  security: string | null;
68
68
  }>, "many">;
69
- }, {
69
+ } & {
70
70
  subscriptionUrl: z.ZodString;
71
71
  lastConnectedNode: z.ZodNullable<z.ZodObject<{
72
72
  connectedAt: z.ZodEffects<z.ZodString, Date, string>;
@@ -85,7 +85,7 @@ export declare namespace ResetUserTrafficCommand {
85
85
  }, {
86
86
  cryptoLink: string;
87
87
  }>;
88
- }>, "strip", z.ZodTypeAny, {
88
+ }, "strip", z.ZodTypeAny, {
89
89
  status: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
90
90
  uuid: string;
91
91
  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<z.objectUtil.extendShape<{
15
+ response: z.ZodObject<{
16
16
  uuid: z.ZodString;
17
17
  subscriptionUuid: z.ZodString;
18
18
  shortUuid: z.ZodString;
@@ -66,7 +66,7 @@ export declare namespace RevokeUserSubscriptionCommand {
66
66
  network: string | null;
67
67
  security: string | null;
68
68
  }>, "many">;
69
- }, {
69
+ } & {
70
70
  subscriptionUrl: z.ZodString;
71
71
  lastConnectedNode: z.ZodNullable<z.ZodObject<{
72
72
  connectedAt: z.ZodEffects<z.ZodString, Date, string>;
@@ -85,7 +85,7 @@ export declare namespace RevokeUserSubscriptionCommand {
85
85
  }, {
86
86
  cryptoLink: string;
87
87
  }>;
88
- }>, "strip", z.ZodTypeAny, {
88
+ }, "strip", z.ZodTypeAny, {
89
89
  status: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
90
90
  uuid: string;
91
91
  createdAt: Date;
@@ -73,7 +73,7 @@ export declare namespace CreateUserCommand {
73
73
  }>;
74
74
  type Request = z.infer<typeof RequestSchema>;
75
75
  const ResponseSchema: z.ZodObject<{
76
- response: z.ZodObject<z.objectUtil.extendShape<{
76
+ response: z.ZodObject<{
77
77
  uuid: z.ZodString;
78
78
  subscriptionUuid: z.ZodString;
79
79
  shortUuid: z.ZodString;
@@ -127,7 +127,7 @@ export declare namespace CreateUserCommand {
127
127
  network: string | null;
128
128
  security: string | null;
129
129
  }>, "many">;
130
- }, {
130
+ } & {
131
131
  subscriptionUrl: z.ZodString;
132
132
  lastConnectedNode: z.ZodNullable<z.ZodObject<{
133
133
  connectedAt: z.ZodEffects<z.ZodString, Date, string>;
@@ -146,7 +146,7 @@ export declare namespace CreateUserCommand {
146
146
  }, {
147
147
  cryptoLink: string;
148
148
  }>;
149
- }>, "strip", z.ZodTypeAny, {
149
+ }, "strip", z.ZodTypeAny, {
150
150
  status: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
151
151
  uuid: string;
152
152
  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<z.objectUtil.extendShape<{
61
+ users: z.ZodArray<z.ZodObject<{
62
62
  uuid: z.ZodString;
63
63
  subscriptionUuid: z.ZodString;
64
64
  shortUuid: z.ZodString;
@@ -112,7 +112,7 @@ export declare namespace GetAllUsersCommand {
112
112
  network: string | null;
113
113
  security: string | null;
114
114
  }>, "many">;
115
- }, {
115
+ } & {
116
116
  subscriptionUrl: z.ZodString;
117
117
  lastConnectedNode: z.ZodNullable<z.ZodObject<{
118
118
  connectedAt: z.ZodEffects<z.ZodString, Date, string>;
@@ -131,7 +131,7 @@ export declare namespace GetAllUsersCommand {
131
131
  }, {
132
132
  cryptoLink: string;
133
133
  }>;
134
- }>, "strip", z.ZodTypeAny, {
134
+ }, "strip", z.ZodTypeAny, {
135
135
  status: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
136
136
  uuid: string;
137
137
  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<z.objectUtil.extendShape<{
15
+ response: z.ZodArray<z.ZodObject<{
16
16
  uuid: z.ZodString;
17
17
  subscriptionUuid: z.ZodString;
18
18
  shortUuid: z.ZodString;
@@ -66,7 +66,7 @@ export declare namespace GetUserByEmailCommand {
66
66
  network: string | null;
67
67
  security: string | null;
68
68
  }>, "many">;
69
- }, {
69
+ } & {
70
70
  subscriptionUrl: z.ZodString;
71
71
  lastConnectedNode: z.ZodNullable<z.ZodObject<{
72
72
  connectedAt: z.ZodEffects<z.ZodString, Date, string>;
@@ -85,7 +85,7 @@ export declare namespace GetUserByEmailCommand {
85
85
  }, {
86
86
  cryptoLink: string;
87
87
  }>;
88
- }>, "strip", z.ZodTypeAny, {
88
+ }, "strip", z.ZodTypeAny, {
89
89
  status: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
90
90
  uuid: string;
91
91
  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<z.objectUtil.extendShape<{
15
+ response: z.ZodObject<{
16
16
  uuid: z.ZodString;
17
17
  subscriptionUuid: z.ZodString;
18
18
  shortUuid: z.ZodString;
@@ -66,7 +66,7 @@ export declare namespace GetUserByShortUuidCommand {
66
66
  network: string | null;
67
67
  security: string | null;
68
68
  }>, "many">;
69
- }, {
69
+ } & {
70
70
  subscriptionUrl: z.ZodString;
71
71
  lastConnectedNode: z.ZodNullable<z.ZodObject<{
72
72
  connectedAt: z.ZodEffects<z.ZodString, Date, string>;
@@ -85,7 +85,7 @@ export declare namespace GetUserByShortUuidCommand {
85
85
  }, {
86
86
  cryptoLink: string;
87
87
  }>;
88
- }>, "strip", z.ZodTypeAny, {
88
+ }, "strip", z.ZodTypeAny, {
89
89
  status: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
90
90
  uuid: string;
91
91
  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<z.objectUtil.extendShape<{
15
+ response: z.ZodObject<{
16
16
  uuid: z.ZodString;
17
17
  subscriptionUuid: z.ZodString;
18
18
  shortUuid: z.ZodString;
@@ -66,7 +66,7 @@ export declare namespace GetUserBySubscriptionUuidCommand {
66
66
  network: string | null;
67
67
  security: string | null;
68
68
  }>, "many">;
69
- }, {
69
+ } & {
70
70
  subscriptionUrl: z.ZodString;
71
71
  lastConnectedNode: z.ZodNullable<z.ZodObject<{
72
72
  connectedAt: z.ZodEffects<z.ZodString, Date, string>;
@@ -85,7 +85,7 @@ export declare namespace GetUserBySubscriptionUuidCommand {
85
85
  }, {
86
86
  cryptoLink: string;
87
87
  }>;
88
- }>, "strip", z.ZodTypeAny, {
88
+ }, "strip", z.ZodTypeAny, {
89
89
  status: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
90
90
  uuid: string;
91
91
  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<z.objectUtil.extendShape<{
15
+ response: z.ZodArray<z.ZodObject<{
16
16
  uuid: z.ZodString;
17
17
  subscriptionUuid: z.ZodString;
18
18
  shortUuid: z.ZodString;
@@ -66,7 +66,7 @@ export declare namespace GetUserByTelegramIdCommand {
66
66
  network: string | null;
67
67
  security: string | null;
68
68
  }>, "many">;
69
- }, {
69
+ } & {
70
70
  subscriptionUrl: z.ZodString;
71
71
  lastConnectedNode: z.ZodNullable<z.ZodObject<{
72
72
  connectedAt: z.ZodEffects<z.ZodString, Date, string>;
@@ -85,7 +85,7 @@ export declare namespace GetUserByTelegramIdCommand {
85
85
  }, {
86
86
  cryptoLink: string;
87
87
  }>;
88
- }>, "strip", z.ZodTypeAny, {
88
+ }, "strip", z.ZodTypeAny, {
89
89
  status: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
90
90
  uuid: string;
91
91
  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<z.objectUtil.extendShape<{
15
+ response: z.ZodObject<{
16
16
  uuid: z.ZodString;
17
17
  subscriptionUuid: z.ZodString;
18
18
  shortUuid: z.ZodString;
@@ -66,7 +66,7 @@ export declare namespace GetUserByUsernameCommand {
66
66
  network: string | null;
67
67
  security: string | null;
68
68
  }>, "many">;
69
- }, {
69
+ } & {
70
70
  subscriptionUrl: z.ZodString;
71
71
  lastConnectedNode: z.ZodNullable<z.ZodObject<{
72
72
  connectedAt: z.ZodEffects<z.ZodString, Date, string>;
@@ -85,7 +85,7 @@ export declare namespace GetUserByUsernameCommand {
85
85
  }, {
86
86
  cryptoLink: string;
87
87
  }>;
88
- }>, "strip", z.ZodTypeAny, {
88
+ }, "strip", z.ZodTypeAny, {
89
89
  status: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
90
90
  uuid: string;
91
91
  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<z.objectUtil.extendShape<{
15
+ response: z.ZodObject<{
16
16
  uuid: z.ZodString;
17
17
  subscriptionUuid: z.ZodString;
18
18
  shortUuid: z.ZodString;
@@ -66,7 +66,7 @@ export declare namespace GetUserByUuidCommand {
66
66
  network: string | null;
67
67
  security: string | null;
68
68
  }>, "many">;
69
- }, {
69
+ } & {
70
70
  subscriptionUrl: z.ZodString;
71
71
  lastConnectedNode: z.ZodNullable<z.ZodObject<{
72
72
  connectedAt: z.ZodEffects<z.ZodString, Date, string>;
@@ -85,7 +85,7 @@ export declare namespace GetUserByUuidCommand {
85
85
  }, {
86
86
  cryptoLink: string;
87
87
  }>;
88
- }>, "strip", z.ZodTypeAny, {
88
+ }, "strip", z.ZodTypeAny, {
89
89
  status: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
90
90
  uuid: string;
91
91
  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<z.objectUtil.extendShape<Pick<{
6
+ const RequestSchema: z.ZodObject<Pick<{
7
7
  uuid: z.ZodString;
8
8
  subscriptionUuid: z.ZodString;
9
9
  shortUuid: z.ZodString;
@@ -57,7 +57,7 @@ export declare namespace UpdateUserCommand {
57
57
  network: string | null;
58
58
  security: string | null;
59
59
  }>, "many">;
60
- }, "uuid">, {
60
+ }, "uuid"> & {
61
61
  status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<{
62
62
  readonly ACTIVE: "ACTIVE";
63
63
  readonly DISABLED: "DISABLED";
@@ -77,7 +77,7 @@ export declare namespace UpdateUserCommand {
77
77
  telegramId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
78
78
  email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
79
79
  hwidDeviceLimit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
80
- }>, "strip", z.ZodTypeAny, {
80
+ }, "strip", z.ZodTypeAny, {
81
81
  uuid: string;
82
82
  status?: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE" | undefined;
83
83
  trafficLimitBytes?: number | undefined;
@@ -102,7 +102,7 @@ export declare namespace UpdateUserCommand {
102
102
  }>;
103
103
  type Request = z.infer<typeof RequestSchema>;
104
104
  const ResponseSchema: z.ZodObject<{
105
- response: z.ZodObject<z.objectUtil.extendShape<{
105
+ response: z.ZodObject<{
106
106
  uuid: z.ZodString;
107
107
  subscriptionUuid: z.ZodString;
108
108
  shortUuid: z.ZodString;
@@ -156,7 +156,7 @@ export declare namespace UpdateUserCommand {
156
156
  network: string | null;
157
157
  security: string | null;
158
158
  }>, "many">;
159
- }, {
159
+ } & {
160
160
  subscriptionUrl: z.ZodString;
161
161
  lastConnectedNode: z.ZodNullable<z.ZodObject<{
162
162
  connectedAt: z.ZodEffects<z.ZodString, Date, string>;
@@ -175,7 +175,7 @@ export declare namespace UpdateUserCommand {
175
175
  }, {
176
176
  cryptoLink: string;
177
177
  }>;
178
- }>, "strip", z.ZodTypeAny, {
178
+ }, "strip", z.ZodTypeAny, {
179
179
  status: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
180
180
  uuid: string;
181
181
  createdAt: Date;
@@ -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
  createdAt: Date;
@@ -17,11 +17,11 @@ exports.USERS_ROUTES = {
17
17
  REVOKE_SUBSCRIPTION: (uuid) => `${uuid}/${exports.USERS_ACTIONS_ROUTE}/revoke`,
18
18
  },
19
19
  GET_BY: {
20
- SHORT_UUID: (shortUuid) => `/by-short-uuid/${shortUuid}`,
21
- USERNAME: (username) => `/by-username/${username}`,
22
- SUBSCRIPTION_UUID: (subscriptionUuid) => `/by-subscription-uuid/${subscriptionUuid}`,
23
- TELEGRAM_ID: (telegramId) => `/by-telegram-id/${telegramId}`,
24
- EMAIL: (email) => `/by-email/${email}`,
20
+ SHORT_UUID: (shortUuid) => `by-short-uuid/${shortUuid}`,
21
+ USERNAME: (username) => `by-username/${username}`,
22
+ SUBSCRIPTION_UUID: (subscriptionUuid) => `by-subscription-uuid/${subscriptionUuid}`,
23
+ TELEGRAM_ID: (telegramId) => `by-telegram-id/${telegramId}`,
24
+ EMAIL: (email) => `by-email/${email}`,
25
25
  },
26
26
  BULK: {
27
27
  DELETE_BY_STATUS: 'bulk/delete-by-status',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remnawave/backend-contract",
3
- "version": "0.5.5",
3
+ "version": "0.5.7",
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.",