@remnawave/backend-contract 0.7.26 → 2.0.0-alpha.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.
- package/build/backend/api/controllers/config-profiles.d.ts +11 -0
- package/build/backend/api/controllers/config-profiles.d.ts.map +1 -0
- package/build/backend/api/controllers/config-profiles.js +13 -0
- package/build/backend/api/controllers/index.d.ts +2 -2
- package/build/backend/api/controllers/index.d.ts.map +1 -1
- package/build/backend/api/controllers/index.js +2 -2
- package/build/backend/api/controllers/internal-squads.d.ts +9 -0
- package/build/backend/api/controllers/internal-squads.d.ts.map +1 -0
- package/build/backend/api/controllers/internal-squads.js +11 -0
- package/build/backend/api/controllers/users.d.ts +1 -2
- package/build/backend/api/controllers/users.d.ts.map +1 -1
- package/build/backend/api/controllers/users.js +1 -2
- package/build/backend/api/routes.d.ts +17 -16
- package/build/backend/api/routes.d.ts.map +1 -1
- package/build/backend/api/routes.js +17 -16
- package/build/backend/commands/config-profiles/create-config-profile.command.d.ts +154 -0
- package/build/backend/commands/config-profiles/create-config-profile.command.d.ts.map +1 -0
- package/build/backend/commands/config-profiles/create-config-profile.command.js +24 -0
- package/build/backend/commands/config-profiles/delete-config-profile.command.d.ts +33 -0
- package/build/backend/commands/config-profiles/delete-config-profile.command.d.ts.map +1 -0
- package/build/backend/commands/config-profiles/delete-config-profile.command.js +20 -0
- package/build/backend/commands/config-profiles/get-all-inbounds.command.d.ts +86 -0
- package/build/backend/commands/config-profiles/get-all-inbounds.command.d.ts.map +1 -0
- package/build/backend/commands/config-profiles/get-all-inbounds.command.js +19 -0
- package/build/backend/commands/config-profiles/get-config-profile-by-uuid.command.d.ts +147 -0
- package/build/backend/commands/config-profiles/get-config-profile-by-uuid.command.d.ts.map +1 -0
- package/build/backend/commands/config-profiles/get-config-profile-by-uuid.command.js +19 -0
- package/build/backend/commands/config-profiles/get-config-profiles.command.d.ts +194 -0
- package/build/backend/commands/config-profiles/get-config-profiles.command.d.ts.map +1 -0
- package/build/backend/commands/config-profiles/get-config-profiles.command.js +19 -0
- package/build/backend/commands/config-profiles/get-inbounds-by-profile-uuid.command.d.ts +94 -0
- package/build/backend/commands/config-profiles/get-inbounds-by-profile-uuid.command.d.ts.map +1 -0
- package/build/backend/commands/config-profiles/get-inbounds-by-profile-uuid.command.js +22 -0
- package/build/backend/commands/config-profiles/index.d.ts +8 -0
- package/build/backend/commands/config-profiles/index.d.ts.map +1 -0
- package/build/backend/commands/{inbounds/bulk → config-profiles}/index.js +7 -4
- package/build/backend/commands/config-profiles/update-config-profile.command.d.ts +154 -0
- package/build/backend/commands/config-profiles/update-config-profile.command.d.ts.map +1 -0
- package/build/backend/commands/config-profiles/update-config-profile.command.js +20 -0
- package/build/backend/commands/hosts/bulk/delete-many-hosts.command.d.ts +10 -10
- package/build/backend/commands/hosts/bulk/disable-many-hosts.command.d.ts +10 -10
- package/build/backend/commands/hosts/bulk/enable-many-hosts.command.d.ts +10 -10
- package/build/backend/commands/hosts/bulk/set-inbound-to-many-hosts.command.d.ts +16 -13
- package/build/backend/commands/hosts/bulk/set-inbound-to-many-hosts.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/bulk/set-inbound-to-many-hosts.command.js +2 -1
- package/build/backend/commands/hosts/bulk/set-port-to-many-hosts.command.d.ts +10 -10
- package/build/backend/commands/hosts/create.command.d.ts +18 -15
- package/build/backend/commands/hosts/create.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/create.command.js +6 -1
- package/build/backend/commands/hosts/get-all.command.d.ts +10 -10
- package/build/backend/commands/hosts/get-one.command.d.ts +10 -10
- package/build/backend/commands/hosts/reorder.command.d.ts +2 -2
- package/build/backend/commands/hosts/update.command.d.ts +20 -17
- package/build/backend/commands/hosts/update.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/update.command.js +7 -1
- package/build/backend/commands/index.d.ts +2 -2
- package/build/backend/commands/index.d.ts.map +1 -1
- package/build/backend/commands/index.js +2 -2
- package/build/backend/commands/internal-squads/create-internal-squad.command.d.ts +138 -0
- package/build/backend/commands/internal-squads/create-internal-squad.command.d.ts.map +1 -0
- package/build/backend/commands/internal-squads/create-internal-squad.command.js +24 -0
- package/build/backend/commands/internal-squads/delete-internal-squad.command.d.ts +33 -0
- package/build/backend/commands/internal-squads/delete-internal-squad.command.d.ts.map +1 -0
- package/build/backend/commands/internal-squads/delete-internal-squad.command.js +20 -0
- package/build/backend/commands/internal-squads/get-internal-squad-by-uuid..d.ts +135 -0
- package/build/backend/commands/internal-squads/get-internal-squad-by-uuid..d.ts.map +1 -0
- package/build/backend/commands/internal-squads/get-internal-squad-by-uuid..js +19 -0
- package/build/backend/commands/internal-squads/get-internal-squads.command.d.ts +178 -0
- package/build/backend/commands/internal-squads/get-internal-squads.command.d.ts.map +1 -0
- package/build/backend/commands/internal-squads/get-internal-squads.command.js +19 -0
- package/build/backend/commands/internal-squads/index.d.ts +6 -0
- package/build/backend/commands/internal-squads/index.d.ts.map +1 -0
- package/build/backend/commands/{xray → internal-squads}/index.js +5 -2
- package/build/backend/commands/internal-squads/update-internal-squad.command.d.ts +138 -0
- package/build/backend/commands/internal-squads/update-internal-squad.command.d.ts.map +1 -0
- package/build/backend/commands/internal-squads/update-internal-squad.command.js +20 -0
- package/build/backend/commands/nodes/actions/disable.command.d.ts +41 -22
- package/build/backend/commands/nodes/actions/disable.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/actions/enable.command.d.ts +41 -22
- package/build/backend/commands/nodes/actions/enable.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/actions/reorder.command.d.ts +50 -24
- package/build/backend/commands/nodes/actions/reorder.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/create.command.d.ts +53 -31
- package/build/backend/commands/nodes/create.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/create.command.js +4 -3
- package/build/backend/commands/nodes/get-all.command.d.ts +41 -22
- package/build/backend/commands/nodes/get-all.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/get-one.command.d.ts +41 -22
- package/build/backend/commands/nodes/get-one.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/stats/get-realtime-usage.command.d.ts +4 -4
- package/build/backend/commands/nodes/update.command.d.ts +62 -33
- package/build/backend/commands/nodes/update.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/update.command.js +4 -3
- package/build/backend/commands/users/actions/disable-user.command.d.ts +12 -38
- package/build/backend/commands/users/actions/disable-user.command.d.ts.map +1 -1
- package/build/backend/commands/users/actions/enable-user.command.d.ts +12 -38
- package/build/backend/commands/users/actions/enable-user.command.d.ts.map +1 -1
- package/build/backend/commands/users/actions/index.d.ts +0 -1
- package/build/backend/commands/users/actions/index.d.ts.map +1 -1
- package/build/backend/commands/users/actions/index.js +0 -1
- package/build/backend/commands/users/actions/reset-user-traffic.command.d.ts +12 -38
- package/build/backend/commands/users/actions/reset-user-traffic.command.d.ts.map +1 -1
- package/build/backend/commands/users/actions/revoke-user-subscription.command.d.ts +12 -38
- package/build/backend/commands/users/actions/revoke-user-subscription.command.d.ts.map +1 -1
- package/build/backend/commands/users/bulk/{bulk-update-users-inbounds.command.d.ts → bulk-update-users-squads.command.d.ts} +7 -7
- package/build/backend/commands/users/bulk/bulk-update-users-squads.command.d.ts.map +1 -0
- package/build/backend/commands/users/bulk/bulk-update-users-squads.command.js +23 -0
- package/build/backend/commands/users/bulk/index.d.ts +1 -1
- package/build/backend/commands/users/bulk/index.d.ts.map +1 -1
- package/build/backend/commands/users/bulk/index.js +1 -1
- package/build/backend/commands/users/create-user.command.d.ts +15 -47
- package/build/backend/commands/users/create-user.command.d.ts.map +1 -1
- package/build/backend/commands/users/create-user.command.js +5 -16
- package/build/backend/commands/users/get-all-users.command.d.ts +16 -50
- package/build/backend/commands/users/get-all-users.command.d.ts.map +1 -1
- package/build/backend/commands/users/get-by/get-user-by-email.command.d.ts +12 -38
- package/build/backend/commands/users/get-by/get-user-by-email.command.d.ts.map +1 -1
- package/build/backend/commands/users/get-by/get-user-by-short-uuid.command.d.ts +12 -38
- package/build/backend/commands/users/get-by/get-user-by-short-uuid.command.d.ts.map +1 -1
- package/build/backend/commands/users/get-by/get-user-by-tag.command.d.ts +12 -38
- package/build/backend/commands/users/get-by/get-user-by-tag.command.d.ts.map +1 -1
- package/build/backend/commands/users/get-by/get-user-by-telegram-id.command.d.ts +12 -38
- package/build/backend/commands/users/get-by/get-user-by-telegram-id.command.d.ts.map +1 -1
- package/build/backend/commands/users/get-by/get-user-by-username.command.d.ts +12 -38
- package/build/backend/commands/users/get-by/get-user-by-username.command.d.ts.map +1 -1
- package/build/backend/commands/users/get-by/index.d.ts +0 -1
- package/build/backend/commands/users/get-by/index.d.ts.map +1 -1
- package/build/backend/commands/users/get-by/index.js +0 -1
- package/build/backend/commands/users/get-user-by-uuid.command.d.ts +12 -38
- package/build/backend/commands/users/get-user-by-uuid.command.d.ts.map +1 -1
- package/build/backend/commands/users/update-user.command.d.ts +19 -55
- package/build/backend/commands/users/update-user.command.d.ts.map +1 -1
- package/build/backend/commands/users/update-user.command.js +5 -5
- package/build/backend/constants/errors/errors.d.ts +80 -0
- package/build/backend/constants/errors/errors.d.ts.map +1 -1
- package/build/backend/constants/errors/errors.js +80 -0
- package/build/backend/models/base-internal-squad.schema.d.ts +12 -0
- package/build/backend/models/base-internal-squad.schema.d.ts.map +1 -0
- package/build/backend/models/base-internal-squad.schema.js +8 -0
- package/build/backend/models/{inbounds.schema.d.ts → config-profile-inbounds.schema.d.ts} +8 -2
- package/build/backend/models/config-profile-inbounds.schema.d.ts.map +1 -0
- package/build/backend/models/{inbounds.schema.js → config-profile-inbounds.schema.js} +4 -2
- package/build/backend/models/config-profile.schema.d.ts +87 -0
- package/build/backend/models/config-profile.schema.d.ts.map +1 -0
- package/build/backend/models/config-profile.schema.js +24 -0
- package/build/backend/models/extented-users.schema.d.ts +8 -26
- package/build/backend/models/extented-users.schema.d.ts.map +1 -1
- package/build/backend/models/hosts.schema.d.ts +6 -6
- package/build/backend/models/hosts.schema.d.ts.map +1 -1
- package/build/backend/models/hosts.schema.js +2 -2
- package/build/backend/models/index.d.ts +4 -2
- package/build/backend/models/index.d.ts.map +1 -1
- package/build/backend/models/index.js +4 -2
- package/build/backend/models/internal-squad.schema.d.ts +79 -0
- package/build/backend/models/internal-squad.schema.d.ts.map +1 -0
- package/build/backend/models/internal-squad.schema.js +22 -0
- package/build/backend/models/nodes.schema.d.ts +25 -12
- package/build/backend/models/nodes.schema.d.ts.map +1 -1
- package/build/backend/models/nodes.schema.js +3 -2
- package/build/backend/models/users.schema.d.ts +8 -26
- package/build/backend/models/users.schema.d.ts.map +1 -1
- package/build/backend/models/users.schema.js +2 -3
- package/build/frontend/api/controllers/config-profiles.js +13 -0
- package/build/frontend/api/controllers/index.js +2 -2
- package/build/frontend/api/controllers/internal-squads.js +11 -0
- package/build/frontend/api/controllers/users.js +1 -2
- package/build/frontend/api/routes.js +17 -16
- package/build/frontend/commands/config-profiles/create-config-profile.command.js +24 -0
- package/build/frontend/commands/config-profiles/delete-config-profile.command.js +20 -0
- package/build/frontend/commands/config-profiles/get-all-inbounds.command.js +19 -0
- package/build/frontend/commands/config-profiles/get-config-profile-by-uuid.command.js +19 -0
- package/build/frontend/commands/config-profiles/get-config-profiles.command.js +19 -0
- package/build/frontend/commands/config-profiles/get-inbounds-by-profile-uuid.command.js +22 -0
- package/build/frontend/commands/{inbounds/bulk → config-profiles}/index.js +7 -4
- package/build/frontend/commands/config-profiles/update-config-profile.command.js +20 -0
- package/build/frontend/commands/hosts/bulk/set-inbound-to-many-hosts.command.js +2 -1
- package/build/frontend/commands/hosts/create.command.js +6 -1
- package/build/frontend/commands/hosts/update.command.js +7 -1
- package/build/frontend/commands/index.js +2 -2
- package/build/frontend/commands/internal-squads/create-internal-squad.command.js +24 -0
- package/build/frontend/commands/internal-squads/delete-internal-squad.command.js +20 -0
- package/build/frontend/commands/internal-squads/get-internal-squad-by-uuid..js +19 -0
- package/build/frontend/commands/internal-squads/get-internal-squads.command.js +19 -0
- package/build/{backend/commands/inbounds → frontend/commands/internal-squads}/index.js +5 -3
- package/build/frontend/commands/internal-squads/update-internal-squad.command.js +20 -0
- package/build/frontend/commands/nodes/create.command.js +4 -3
- package/build/frontend/commands/nodes/update.command.js +4 -3
- package/build/frontend/commands/users/actions/index.js +0 -1
- package/build/frontend/commands/users/bulk/bulk-update-users-squads.command.js +23 -0
- package/build/frontend/commands/users/bulk/index.js +1 -1
- package/build/frontend/commands/users/create-user.command.js +5 -16
- package/build/frontend/commands/users/get-by/index.js +0 -1
- package/build/frontend/commands/users/update-user.command.js +5 -5
- package/build/frontend/constants/errors/errors.js +80 -0
- package/build/frontend/models/base-internal-squad.schema.js +8 -0
- package/build/frontend/models/{inbounds.schema.js → config-profile-inbounds.schema.js} +4 -2
- package/build/frontend/models/config-profile.schema.js +24 -0
- package/build/frontend/models/hosts.schema.js +2 -2
- package/build/frontend/models/index.js +4 -2
- package/build/frontend/models/internal-squad.schema.js +22 -0
- package/build/frontend/models/nodes.schema.js +3 -2
- package/build/frontend/models/users.schema.js +2 -3
- package/package.json +1 -1
- package/build/backend/api/controllers/inbounds.d.ts +0 -12
- package/build/backend/api/controllers/inbounds.d.ts.map +0 -1
- package/build/backend/api/controllers/inbounds.js +0 -14
- package/build/backend/api/controllers/xray.d.ts +0 -6
- package/build/backend/api/controllers/xray.d.ts.map +0 -1
- package/build/backend/api/controllers/xray.js +0 -8
- package/build/backend/commands/inbounds/bulk/add-inbound-to-nodes.command.d.ts +0 -33
- package/build/backend/commands/inbounds/bulk/add-inbound-to-nodes.command.d.ts.map +0 -1
- package/build/backend/commands/inbounds/bulk/add-inbound-to-nodes.command.js +0 -24
- package/build/backend/commands/inbounds/bulk/add-inbound-to-users.command.d.ts +0 -33
- package/build/backend/commands/inbounds/bulk/add-inbound-to-users.command.d.ts.map +0 -1
- package/build/backend/commands/inbounds/bulk/add-inbound-to-users.command.js +0 -24
- package/build/backend/commands/inbounds/bulk/index.d.ts +0 -5
- package/build/backend/commands/inbounds/bulk/index.d.ts.map +0 -1
- package/build/backend/commands/inbounds/bulk/remove-inbound-from-nodes.command.d.ts +0 -33
- package/build/backend/commands/inbounds/bulk/remove-inbound-from-nodes.command.d.ts.map +0 -1
- package/build/backend/commands/inbounds/bulk/remove-inbound-from-nodes.command.js +0 -24
- package/build/backend/commands/inbounds/bulk/remove-inbound-from-users.command.d.ts +0 -33
- package/build/backend/commands/inbounds/bulk/remove-inbound-from-users.command.d.ts.map +0 -1
- package/build/backend/commands/inbounds/bulk/remove-inbound-from-users.command.js +0 -24
- package/build/backend/commands/inbounds/get-full-inbounds.command.d.ts +0 -115
- package/build/backend/commands/inbounds/get-full-inbounds.command.d.ts.map +0 -1
- package/build/backend/commands/inbounds/get-full-inbounds.command.js +0 -16
- package/build/backend/commands/inbounds/get-inbounds.command.d.ts +0 -50
- package/build/backend/commands/inbounds/get-inbounds.command.d.ts.map +0 -1
- package/build/backend/commands/inbounds/get-inbounds.command.js +0 -22
- package/build/backend/commands/inbounds/index.d.ts +0 -4
- package/build/backend/commands/inbounds/index.d.ts.map +0 -1
- package/build/backend/commands/users/actions/activate-all-inbounds.command.d.ts +0 -271
- package/build/backend/commands/users/actions/activate-all-inbounds.command.d.ts.map +0 -1
- package/build/backend/commands/users/actions/activate-all-inbounds.command.js +0 -19
- package/build/backend/commands/users/bulk/bulk-update-users-inbounds.command.d.ts.map +0 -1
- package/build/backend/commands/users/bulk/bulk-update-users-inbounds.command.js +0 -23
- package/build/backend/commands/users/get-by/get-user-by-subscription-uuid.command.d.ts +0 -271
- package/build/backend/commands/users/get-by/get-user-by-subscription-uuid.command.d.ts.map +0 -1
- package/build/backend/commands/users/get-by/get-user-by-subscription-uuid.command.js +0 -19
- package/build/backend/commands/xray/get-config.command.d.ts +0 -25
- package/build/backend/commands/xray/get-config.command.d.ts.map +0 -1
- package/build/backend/commands/xray/get-config.command.js +0 -17
- package/build/backend/commands/xray/index.d.ts +0 -3
- package/build/backend/commands/xray/index.d.ts.map +0 -1
- package/build/backend/commands/xray/update-config.command.d.ts +0 -27
- package/build/backend/commands/xray/update-config.command.d.ts.map +0 -1
- package/build/backend/commands/xray/update-config.command.js +0 -18
- package/build/backend/models/full-inbounds.schema.d.ts +0 -67
- package/build/backend/models/full-inbounds.schema.d.ts.map +0 -1
- package/build/backend/models/full-inbounds.schema.js +0 -21
- package/build/backend/models/inbounds.schema.d.ts.map +0 -1
- package/build/frontend/api/controllers/inbounds.js +0 -14
- package/build/frontend/api/controllers/xray.js +0 -8
- package/build/frontend/commands/inbounds/bulk/add-inbound-to-nodes.command.js +0 -24
- package/build/frontend/commands/inbounds/bulk/add-inbound-to-users.command.js +0 -24
- package/build/frontend/commands/inbounds/bulk/remove-inbound-from-nodes.command.js +0 -24
- package/build/frontend/commands/inbounds/bulk/remove-inbound-from-users.command.js +0 -24
- package/build/frontend/commands/inbounds/get-full-inbounds.command.js +0 -16
- package/build/frontend/commands/inbounds/get-inbounds.command.js +0 -22
- package/build/frontend/commands/inbounds/index.js +0 -19
- package/build/frontend/commands/users/actions/activate-all-inbounds.command.js +0 -19
- package/build/frontend/commands/users/bulk/bulk-update-users-inbounds.command.js +0 -23
- package/build/frontend/commands/users/get-by/get-user-by-subscription-uuid.command.js +0 -19
- package/build/frontend/commands/xray/get-config.command.js +0 -17
- package/build/frontend/commands/xray/index.js +0 -18
- package/build/frontend/commands/xray/update-config.command.js +0 -18
- package/build/frontend/models/full-inbounds.schema.js +0 -21
@@ -5,7 +5,6 @@ export declare namespace UpdateUserCommand {
|
|
5
5
|
const endpointDetails: import("../../constants").EndpointDetails;
|
6
6
|
const RequestSchema: z.ZodObject<Pick<{
|
7
7
|
uuid: z.ZodString;
|
8
|
-
subscriptionUuid: z.ZodString;
|
9
8
|
shortUuid: z.ZodString;
|
10
9
|
username: z.ZodString;
|
11
10
|
status: z.ZodDefault<z.ZodNativeEnum<{
|
@@ -41,24 +40,15 @@ export declare namespace UpdateUserCommand {
|
|
41
40
|
lastTriggeredThreshold: z.ZodDefault<z.ZodNumber>;
|
42
41
|
createdAt: z.ZodEffects<z.ZodString, Date, string>;
|
43
42
|
updatedAt: z.ZodEffects<z.ZodString, Date, string>;
|
44
|
-
|
43
|
+
activeInternalSquads: z.ZodArray<z.ZodObject<{
|
45
44
|
uuid: z.ZodString;
|
46
|
-
|
47
|
-
type: z.ZodString;
|
48
|
-
network: z.ZodNullable<z.ZodString>;
|
49
|
-
security: z.ZodNullable<z.ZodString>;
|
45
|
+
name: z.ZodString;
|
50
46
|
}, "strip", z.ZodTypeAny, {
|
51
|
-
type: string;
|
52
47
|
uuid: string;
|
53
|
-
|
54
|
-
network: string | null;
|
55
|
-
security: string | null;
|
48
|
+
name: string;
|
56
49
|
}, {
|
57
|
-
type: string;
|
58
50
|
uuid: string;
|
59
|
-
|
60
|
-
network: string | null;
|
61
|
-
security: string | null;
|
51
|
+
name: string;
|
62
52
|
}>, "many">;
|
63
53
|
}, "uuid"> & {
|
64
54
|
status: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<{
|
@@ -74,13 +64,13 @@ export declare namespace UpdateUserCommand {
|
|
74
64
|
readonly WEEK: "WEEK";
|
75
65
|
readonly MONTH: "MONTH";
|
76
66
|
}>>, "MONTH" | "NO_RESET" | "DAY" | "WEEK", "MONTH" | "NO_RESET" | "DAY" | "WEEK" | undefined>>;
|
77
|
-
activeUserInbounds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
78
67
|
expireAt: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodString, Date, string>, Date, string>>;
|
79
68
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
80
69
|
tag: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
81
70
|
telegramId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
82
71
|
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
83
72
|
hwidDeviceLimit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
73
|
+
activeInternalSquads: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
84
74
|
}, "strip", z.ZodTypeAny, {
|
85
75
|
uuid: string;
|
86
76
|
status?: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE" | undefined;
|
@@ -92,7 +82,7 @@ export declare namespace UpdateUserCommand {
|
|
92
82
|
telegramId?: number | null | undefined;
|
93
83
|
email?: string | null | undefined;
|
94
84
|
hwidDeviceLimit?: number | null | undefined;
|
95
|
-
|
85
|
+
activeInternalSquads?: string[] | undefined;
|
96
86
|
}, {
|
97
87
|
uuid: string;
|
98
88
|
status?: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE" | undefined;
|
@@ -104,13 +94,12 @@ export declare namespace UpdateUserCommand {
|
|
104
94
|
telegramId?: number | null | undefined;
|
105
95
|
email?: string | null | undefined;
|
106
96
|
hwidDeviceLimit?: number | null | undefined;
|
107
|
-
|
97
|
+
activeInternalSquads?: string[] | undefined;
|
108
98
|
}>;
|
109
99
|
type Request = z.infer<typeof RequestSchema>;
|
110
100
|
const ResponseSchema: z.ZodObject<{
|
111
101
|
response: z.ZodObject<{
|
112
102
|
uuid: z.ZodString;
|
113
|
-
subscriptionUuid: z.ZodString;
|
114
103
|
shortUuid: z.ZodString;
|
115
104
|
username: z.ZodString;
|
116
105
|
status: z.ZodDefault<z.ZodNativeEnum<{
|
@@ -146,24 +135,15 @@ export declare namespace UpdateUserCommand {
|
|
146
135
|
lastTriggeredThreshold: z.ZodDefault<z.ZodNumber>;
|
147
136
|
createdAt: z.ZodEffects<z.ZodString, Date, string>;
|
148
137
|
updatedAt: z.ZodEffects<z.ZodString, Date, string>;
|
149
|
-
|
138
|
+
activeInternalSquads: z.ZodArray<z.ZodObject<{
|
150
139
|
uuid: z.ZodString;
|
151
|
-
|
152
|
-
type: z.ZodString;
|
153
|
-
network: z.ZodNullable<z.ZodString>;
|
154
|
-
security: z.ZodNullable<z.ZodString>;
|
140
|
+
name: z.ZodString;
|
155
141
|
}, "strip", z.ZodTypeAny, {
|
156
|
-
type: string;
|
157
142
|
uuid: string;
|
158
|
-
|
159
|
-
network: string | null;
|
160
|
-
security: string | null;
|
143
|
+
name: string;
|
161
144
|
}, {
|
162
|
-
type: string;
|
163
145
|
uuid: string;
|
164
|
-
|
165
|
-
network: string | null;
|
166
|
-
security: string | null;
|
146
|
+
name: string;
|
167
147
|
}>, "many">;
|
168
148
|
} & {
|
169
149
|
subscriptionUrl: z.ZodString;
|
@@ -191,7 +171,6 @@ export declare namespace UpdateUserCommand {
|
|
191
171
|
updatedAt: Date;
|
192
172
|
username: string;
|
193
173
|
tag: string | null;
|
194
|
-
subscriptionUuid: string;
|
195
174
|
shortUuid: string;
|
196
175
|
usedTrafficBytes: number;
|
197
176
|
lifetimeUsedTrafficBytes: number;
|
@@ -212,12 +191,9 @@ export declare namespace UpdateUserCommand {
|
|
212
191
|
hwidDeviceLimit: number | null;
|
213
192
|
firstConnectedAt: Date | null;
|
214
193
|
lastTriggeredThreshold: number;
|
215
|
-
|
216
|
-
type: string;
|
194
|
+
activeInternalSquads: {
|
217
195
|
uuid: string;
|
218
|
-
|
219
|
-
network: string | null;
|
220
|
-
security: string | null;
|
196
|
+
name: string;
|
221
197
|
}[];
|
222
198
|
subscriptionUrl: string;
|
223
199
|
lastConnectedNode: {
|
@@ -233,7 +209,6 @@ export declare namespace UpdateUserCommand {
|
|
233
209
|
updatedAt: string;
|
234
210
|
username: string;
|
235
211
|
tag: string | null;
|
236
|
-
subscriptionUuid: string;
|
237
212
|
shortUuid: string;
|
238
213
|
usedTrafficBytes: number;
|
239
214
|
lifetimeUsedTrafficBytes: number;
|
@@ -251,12 +226,9 @@ export declare namespace UpdateUserCommand {
|
|
251
226
|
email: string | null;
|
252
227
|
hwidDeviceLimit: number | null;
|
253
228
|
firstConnectedAt: string | null;
|
254
|
-
|
255
|
-
type: string;
|
229
|
+
activeInternalSquads: {
|
256
230
|
uuid: string;
|
257
|
-
|
258
|
-
network: string | null;
|
259
|
-
security: string | null;
|
231
|
+
name: string;
|
260
232
|
}[];
|
261
233
|
subscriptionUrl: string;
|
262
234
|
lastConnectedNode: {
|
@@ -279,7 +251,6 @@ export declare namespace UpdateUserCommand {
|
|
279
251
|
updatedAt: Date;
|
280
252
|
username: string;
|
281
253
|
tag: string | null;
|
282
|
-
subscriptionUuid: string;
|
283
254
|
shortUuid: string;
|
284
255
|
usedTrafficBytes: number;
|
285
256
|
lifetimeUsedTrafficBytes: number;
|
@@ -300,12 +271,9 @@ export declare namespace UpdateUserCommand {
|
|
300
271
|
hwidDeviceLimit: number | null;
|
301
272
|
firstConnectedAt: Date | null;
|
302
273
|
lastTriggeredThreshold: number;
|
303
|
-
|
304
|
-
type: string;
|
274
|
+
activeInternalSquads: {
|
305
275
|
uuid: string;
|
306
|
-
|
307
|
-
network: string | null;
|
308
|
-
security: string | null;
|
276
|
+
name: string;
|
309
277
|
}[];
|
310
278
|
subscriptionUrl: string;
|
311
279
|
lastConnectedNode: {
|
@@ -323,7 +291,6 @@ export declare namespace UpdateUserCommand {
|
|
323
291
|
updatedAt: string;
|
324
292
|
username: string;
|
325
293
|
tag: string | null;
|
326
|
-
subscriptionUuid: string;
|
327
294
|
shortUuid: string;
|
328
295
|
usedTrafficBytes: number;
|
329
296
|
lifetimeUsedTrafficBytes: number;
|
@@ -341,12 +308,9 @@ export declare namespace UpdateUserCommand {
|
|
341
308
|
email: string | null;
|
342
309
|
hwidDeviceLimit: number | null;
|
343
310
|
firstConnectedAt: string | null;
|
344
|
-
|
345
|
-
type: string;
|
311
|
+
activeInternalSquads: {
|
346
312
|
uuid: string;
|
347
|
-
|
348
|
-
network: string | null;
|
349
|
-
security: string | null;
|
313
|
+
name: string;
|
350
314
|
}[];
|
351
315
|
subscriptionUrl: string;
|
352
316
|
lastConnectedNode: {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"update-user.command.d.ts","sourceRoot":"","sources":["../../../../commands/users/update-user.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,eAAwB,CAAC;IAClC,MAAM,OAAO,eAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,aAAa
|
1
|
+
{"version":3,"file":"update-user.command.d.ts","sourceRoot":"","sources":["../../../../commands/users/update-user.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,eAAwB,CAAC;IAClC,MAAM,OAAO,eAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAwDxB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
@@ -36,11 +36,6 @@ var UpdateUserCommand;
|
|
36
36
|
}
|
37
37
|
})
|
38
38
|
.optional(),
|
39
|
-
activeUserInbounds: zod_1.z
|
40
|
-
.array(zod_1.z.string().uuid(), {
|
41
|
-
invalid_type_error: 'Enabled inbounds must be an array of UUIDs',
|
42
|
-
})
|
43
|
-
.optional(),
|
44
39
|
expireAt: zod_1.z
|
45
40
|
.string()
|
46
41
|
.datetime({ local: true, offset: true, message: 'Invalid date format' })
|
@@ -59,6 +54,11 @@ var UpdateUserCommand;
|
|
59
54
|
telegramId: zod_1.z.optional(zod_1.z.number().int().nullable()),
|
60
55
|
email: zod_1.z.optional(zod_1.z.string().email('Invalid email format').nullable()),
|
61
56
|
hwidDeviceLimit: zod_1.z.optional(zod_1.z.number().int().min(0, 'Device limit must be non-negative').nullable()),
|
57
|
+
activeInternalSquads: zod_1.z
|
58
|
+
.array(zod_1.z.string().uuid(), {
|
59
|
+
invalid_type_error: 'Enabled internal squads must be an array of UUIDs',
|
60
|
+
})
|
61
|
+
.optional(),
|
62
62
|
});
|
63
63
|
UpdateUserCommand.ResponseSchema = zod_1.z.object({
|
64
64
|
response: models_1.ExtendedUsersSchema,
|
@@ -569,5 +569,85 @@ export declare const ERRORS: {
|
|
569
569
|
readonly message: "Vacuum table error";
|
570
570
|
readonly httpCode: 500;
|
571
571
|
};
|
572
|
+
readonly GET_CONFIG_PROFILES_ERROR: {
|
573
|
+
readonly code: "A109";
|
574
|
+
readonly message: "Get config profiles error";
|
575
|
+
readonly httpCode: 500;
|
576
|
+
};
|
577
|
+
readonly GET_CONFIG_PROFILE_BY_UUID_ERROR: {
|
578
|
+
readonly code: "A110";
|
579
|
+
readonly message: "Get config profile by UUID error";
|
580
|
+
readonly httpCode: 500;
|
581
|
+
};
|
582
|
+
readonly CONFIG_PROFILE_NOT_FOUND: {
|
583
|
+
readonly code: "A111";
|
584
|
+
readonly message: "Config profile not found";
|
585
|
+
readonly httpCode: 404;
|
586
|
+
};
|
587
|
+
readonly CREATE_CONFIG_PROFILE_ERROR: {
|
588
|
+
readonly code: "A112";
|
589
|
+
readonly message: "Create config profile error";
|
590
|
+
readonly httpCode: 500;
|
591
|
+
};
|
592
|
+
readonly INBOUNDS_WITH_SAME_TAG_ALREADY_EXISTS: {
|
593
|
+
readonly code: "A113";
|
594
|
+
readonly message: "Inbounds with same tag already exists in database. Inbound tags must be unique.";
|
595
|
+
readonly httpCode: 409;
|
596
|
+
};
|
597
|
+
readonly CONFIG_PROFILE_NAME_ALREADY_EXISTS: {
|
598
|
+
readonly code: "A114";
|
599
|
+
readonly message: "Config profile name already exists in database. Config profile names must be unique.";
|
600
|
+
readonly httpCode: 409;
|
601
|
+
};
|
602
|
+
readonly GET_INBOUNDS_BY_PROFILE_UUID_ERROR: {
|
603
|
+
readonly code: "A115";
|
604
|
+
readonly message: "Get inbounds by profile UUID error";
|
605
|
+
readonly httpCode: 500;
|
606
|
+
};
|
607
|
+
readonly GET_INTERNAL_SQUADS_ERROR: {
|
608
|
+
readonly code: "A116";
|
609
|
+
readonly message: "Get internal squads error";
|
610
|
+
readonly httpCode: 500;
|
611
|
+
};
|
612
|
+
readonly GET_INTERNAL_SQUAD_BY_UUID_ERROR: {
|
613
|
+
readonly code: "A117";
|
614
|
+
readonly message: "Get internal squad by UUID error";
|
615
|
+
readonly httpCode: 500;
|
616
|
+
};
|
617
|
+
readonly INTERNAL_SQUAD_NOT_FOUND: {
|
618
|
+
readonly code: "A118";
|
619
|
+
readonly message: "Internal squad not found";
|
620
|
+
readonly httpCode: 404;
|
621
|
+
};
|
622
|
+
readonly CREATE_INTERNAL_SQUAD_ERROR: {
|
623
|
+
readonly code: "A119";
|
624
|
+
readonly message: "Create internal squad error";
|
625
|
+
readonly httpCode: 500;
|
626
|
+
};
|
627
|
+
readonly INTERNAL_SQUAD_NAME_ALREADY_EXISTS: {
|
628
|
+
readonly code: "A120";
|
629
|
+
readonly message: "Internal squad name already exists";
|
630
|
+
readonly httpCode: 409;
|
631
|
+
};
|
632
|
+
readonly UPDATE_INTERNAL_SQUAD_ERROR: {
|
633
|
+
readonly code: "A121";
|
634
|
+
readonly message: "Update internal squad error";
|
635
|
+
readonly httpCode: 500;
|
636
|
+
};
|
637
|
+
readonly DELETE_INTERNAL_SQUAD_ERROR: {
|
638
|
+
readonly code: "A122";
|
639
|
+
readonly message: "Delete internal squad error";
|
640
|
+
readonly httpCode: 500;
|
641
|
+
};
|
642
|
+
readonly CREATE_USER_WITH_INTERNAL_SQUAD_ERROR: {
|
643
|
+
readonly code: "A123";
|
644
|
+
readonly message: "Create user with internal squad error";
|
645
|
+
readonly httpCode: 500;
|
646
|
+
};
|
647
|
+
readonly CONFIG_PROFILE_INBOUND_NOT_FOUND_IN_SPECIFIED_PROFILE: {
|
648
|
+
readonly code: "A124";
|
649
|
+
readonly message: "Config profile inbound not found in specified profile";
|
650
|
+
readonly httpCode: 404;
|
651
|
+
};
|
572
652
|
};
|
573
653
|
//# 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
|
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+T3B,CAAC"}
|
@@ -540,4 +540,84 @@ exports.ERRORS = {
|
|
540
540
|
message: 'Vacuum table error',
|
541
541
|
httpCode: 500,
|
542
542
|
},
|
543
|
+
GET_CONFIG_PROFILES_ERROR: {
|
544
|
+
code: 'A109',
|
545
|
+
message: 'Get config profiles error',
|
546
|
+
httpCode: 500,
|
547
|
+
},
|
548
|
+
GET_CONFIG_PROFILE_BY_UUID_ERROR: {
|
549
|
+
code: 'A110',
|
550
|
+
message: 'Get config profile by UUID error',
|
551
|
+
httpCode: 500,
|
552
|
+
},
|
553
|
+
CONFIG_PROFILE_NOT_FOUND: {
|
554
|
+
code: 'A111',
|
555
|
+
message: 'Config profile not found',
|
556
|
+
httpCode: 404,
|
557
|
+
},
|
558
|
+
CREATE_CONFIG_PROFILE_ERROR: {
|
559
|
+
code: 'A112',
|
560
|
+
message: 'Create config profile error',
|
561
|
+
httpCode: 500,
|
562
|
+
},
|
563
|
+
INBOUNDS_WITH_SAME_TAG_ALREADY_EXISTS: {
|
564
|
+
code: 'A113',
|
565
|
+
message: 'Inbounds with same tag already exists in database. Inbound tags must be unique.',
|
566
|
+
httpCode: 409,
|
567
|
+
},
|
568
|
+
CONFIG_PROFILE_NAME_ALREADY_EXISTS: {
|
569
|
+
code: 'A114',
|
570
|
+
message: 'Config profile name already exists in database. Config profile names must be unique.',
|
571
|
+
httpCode: 409,
|
572
|
+
},
|
573
|
+
GET_INBOUNDS_BY_PROFILE_UUID_ERROR: {
|
574
|
+
code: 'A115',
|
575
|
+
message: 'Get inbounds by profile UUID error',
|
576
|
+
httpCode: 500,
|
577
|
+
},
|
578
|
+
GET_INTERNAL_SQUADS_ERROR: {
|
579
|
+
code: 'A116',
|
580
|
+
message: 'Get internal squads error',
|
581
|
+
httpCode: 500,
|
582
|
+
},
|
583
|
+
GET_INTERNAL_SQUAD_BY_UUID_ERROR: {
|
584
|
+
code: 'A117',
|
585
|
+
message: 'Get internal squad by UUID error',
|
586
|
+
httpCode: 500,
|
587
|
+
},
|
588
|
+
INTERNAL_SQUAD_NOT_FOUND: {
|
589
|
+
code: 'A118',
|
590
|
+
message: 'Internal squad not found',
|
591
|
+
httpCode: 404,
|
592
|
+
},
|
593
|
+
CREATE_INTERNAL_SQUAD_ERROR: {
|
594
|
+
code: 'A119',
|
595
|
+
message: 'Create internal squad error',
|
596
|
+
httpCode: 500,
|
597
|
+
},
|
598
|
+
INTERNAL_SQUAD_NAME_ALREADY_EXISTS: {
|
599
|
+
code: 'A120',
|
600
|
+
message: 'Internal squad name already exists',
|
601
|
+
httpCode: 409,
|
602
|
+
},
|
603
|
+
UPDATE_INTERNAL_SQUAD_ERROR: {
|
604
|
+
code: 'A121',
|
605
|
+
message: 'Update internal squad error',
|
606
|
+
httpCode: 500,
|
607
|
+
},
|
608
|
+
DELETE_INTERNAL_SQUAD_ERROR: {
|
609
|
+
code: 'A122',
|
610
|
+
message: 'Delete internal squad error',
|
611
|
+
httpCode: 500,
|
612
|
+
},
|
613
|
+
CREATE_USER_WITH_INTERNAL_SQUAD_ERROR: {
|
614
|
+
code: 'A123',
|
615
|
+
message: 'Create user with internal squad error',
|
616
|
+
httpCode: 500,
|
617
|
+
},
|
618
|
+
CONFIG_PROFILE_INBOUND_NOT_FOUND_IN_SPECIFIED_PROFILE: {
|
619
|
+
code: 'A124',
|
620
|
+
message: 'Config profile inbound not found in specified profile',
|
621
|
+
httpCode: 404,
|
622
|
+
},
|
543
623
|
};
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import { z } from 'zod';
|
2
|
+
export declare const BaseInternalSquadSchema: z.ZodObject<{
|
3
|
+
uuid: z.ZodString;
|
4
|
+
name: z.ZodString;
|
5
|
+
}, "strip", z.ZodTypeAny, {
|
6
|
+
uuid: string;
|
7
|
+
name: string;
|
8
|
+
}, {
|
9
|
+
uuid: string;
|
10
|
+
name: string;
|
11
|
+
}>;
|
12
|
+
//# sourceMappingURL=base-internal-squad.schema.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"base-internal-squad.schema.d.ts","sourceRoot":"","sources":["../../../models/base-internal-squad.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,uBAAuB;;;;;;;;;EAGlC,CAAC"}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.BaseInternalSquadSchema = void 0;
|
4
|
+
const zod_1 = require("zod");
|
5
|
+
exports.BaseInternalSquadSchema = zod_1.z.object({
|
6
|
+
uuid: zod_1.z.string().uuid(),
|
7
|
+
name: zod_1.z.string(),
|
8
|
+
});
|
@@ -1,21 +1,27 @@
|
|
1
1
|
import { z } from 'zod';
|
2
|
-
export declare const
|
2
|
+
export declare const ConfigProfileInboundsSchema: z.ZodObject<{
|
3
3
|
uuid: z.ZodString;
|
4
|
+
profileUuid: z.ZodString;
|
4
5
|
tag: z.ZodString;
|
5
6
|
type: z.ZodString;
|
6
7
|
network: z.ZodNullable<z.ZodString>;
|
7
8
|
security: z.ZodNullable<z.ZodString>;
|
9
|
+
port: z.ZodNullable<z.ZodNumber>;
|
8
10
|
}, "strip", z.ZodTypeAny, {
|
9
11
|
type: string;
|
10
12
|
uuid: string;
|
13
|
+
profileUuid: string;
|
11
14
|
tag: string;
|
12
15
|
network: string | null;
|
13
16
|
security: string | null;
|
17
|
+
port: number | null;
|
14
18
|
}, {
|
15
19
|
type: string;
|
16
20
|
uuid: string;
|
21
|
+
profileUuid: string;
|
17
22
|
tag: string;
|
18
23
|
network: string | null;
|
19
24
|
security: string | null;
|
25
|
+
port: number | null;
|
20
26
|
}>;
|
21
|
-
//# sourceMappingURL=inbounds.schema.d.ts.map
|
27
|
+
//# sourceMappingURL=config-profile-inbounds.schema.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"config-profile-inbounds.schema.d.ts","sourceRoot":"","sources":["../../../models/config-profile-inbounds.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;EAQtC,CAAC"}
|
@@ -1,11 +1,13 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.
|
3
|
+
exports.ConfigProfileInboundsSchema = void 0;
|
4
4
|
const zod_1 = require("zod");
|
5
|
-
exports.
|
5
|
+
exports.ConfigProfileInboundsSchema = zod_1.z.object({
|
6
6
|
uuid: zod_1.z.string().uuid(),
|
7
|
+
profileUuid: zod_1.z.string().uuid(),
|
7
8
|
tag: zod_1.z.string(),
|
8
9
|
type: zod_1.z.string(),
|
9
10
|
network: zod_1.z.nullable(zod_1.z.string()),
|
10
11
|
security: zod_1.z.nullable(zod_1.z.string()),
|
12
|
+
port: zod_1.z.nullable(zod_1.z.number()),
|
11
13
|
});
|
@@ -0,0 +1,87 @@
|
|
1
|
+
import { z } from 'zod';
|
2
|
+
export declare const ConfigProfileSchema: z.ZodObject<{
|
3
|
+
uuid: z.ZodString;
|
4
|
+
name: z.ZodString;
|
5
|
+
config: z.ZodUnknown;
|
6
|
+
inbounds: z.ZodArray<z.ZodObject<{
|
7
|
+
uuid: z.ZodString;
|
8
|
+
profileUuid: z.ZodString;
|
9
|
+
tag: z.ZodString;
|
10
|
+
type: z.ZodString;
|
11
|
+
network: z.ZodNullable<z.ZodString>;
|
12
|
+
security: z.ZodNullable<z.ZodString>;
|
13
|
+
port: z.ZodNullable<z.ZodNumber>;
|
14
|
+
}, "strip", z.ZodTypeAny, {
|
15
|
+
type: string;
|
16
|
+
uuid: string;
|
17
|
+
profileUuid: string;
|
18
|
+
tag: string;
|
19
|
+
network: string | null;
|
20
|
+
security: string | null;
|
21
|
+
port: number | null;
|
22
|
+
}, {
|
23
|
+
type: string;
|
24
|
+
uuid: string;
|
25
|
+
profileUuid: string;
|
26
|
+
tag: string;
|
27
|
+
network: string | null;
|
28
|
+
security: string | null;
|
29
|
+
port: number | null;
|
30
|
+
}>, "many">;
|
31
|
+
nodes: z.ZodArray<z.ZodObject<{
|
32
|
+
uuid: z.ZodString;
|
33
|
+
name: z.ZodString;
|
34
|
+
countryCode: z.ZodString;
|
35
|
+
}, "strip", z.ZodTypeAny, {
|
36
|
+
uuid: string;
|
37
|
+
name: string;
|
38
|
+
countryCode: string;
|
39
|
+
}, {
|
40
|
+
uuid: string;
|
41
|
+
name: string;
|
42
|
+
countryCode: string;
|
43
|
+
}>, "many">;
|
44
|
+
createdAt: z.ZodEffects<z.ZodString, Date, string>;
|
45
|
+
updatedAt: z.ZodEffects<z.ZodString, Date, string>;
|
46
|
+
}, "strip", z.ZodTypeAny, {
|
47
|
+
inbounds: {
|
48
|
+
type: string;
|
49
|
+
uuid: string;
|
50
|
+
profileUuid: string;
|
51
|
+
tag: string;
|
52
|
+
network: string | null;
|
53
|
+
security: string | null;
|
54
|
+
port: number | null;
|
55
|
+
}[];
|
56
|
+
nodes: {
|
57
|
+
uuid: string;
|
58
|
+
name: string;
|
59
|
+
countryCode: string;
|
60
|
+
}[];
|
61
|
+
uuid: string;
|
62
|
+
createdAt: Date;
|
63
|
+
updatedAt: Date;
|
64
|
+
name: string;
|
65
|
+
config?: unknown;
|
66
|
+
}, {
|
67
|
+
inbounds: {
|
68
|
+
type: string;
|
69
|
+
uuid: string;
|
70
|
+
profileUuid: string;
|
71
|
+
tag: string;
|
72
|
+
network: string | null;
|
73
|
+
security: string | null;
|
74
|
+
port: number | null;
|
75
|
+
}[];
|
76
|
+
nodes: {
|
77
|
+
uuid: string;
|
78
|
+
name: string;
|
79
|
+
countryCode: string;
|
80
|
+
}[];
|
81
|
+
uuid: string;
|
82
|
+
createdAt: string;
|
83
|
+
updatedAt: string;
|
84
|
+
name: string;
|
85
|
+
config?: unknown;
|
86
|
+
}>;
|
87
|
+
//# sourceMappingURL=config-profile.schema.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"config-profile.schema.d.ts","sourceRoot":"","sources":["../../../models/config-profile.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqB9B,CAAC"}
|
@@ -0,0 +1,24 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.ConfigProfileSchema = void 0;
|
4
|
+
const zod_1 = require("zod");
|
5
|
+
const config_profile_inbounds_schema_1 = require("./config-profile-inbounds.schema");
|
6
|
+
exports.ConfigProfileSchema = zod_1.z.object({
|
7
|
+
uuid: zod_1.z.string().uuid(),
|
8
|
+
name: zod_1.z.string(),
|
9
|
+
config: zod_1.z.unknown(),
|
10
|
+
inbounds: zod_1.z.array(config_profile_inbounds_schema_1.ConfigProfileInboundsSchema),
|
11
|
+
nodes: zod_1.z.array(zod_1.z.object({
|
12
|
+
uuid: zod_1.z.string().uuid(),
|
13
|
+
name: zod_1.z.string(),
|
14
|
+
countryCode: zod_1.z.string(),
|
15
|
+
})),
|
16
|
+
createdAt: zod_1.z
|
17
|
+
.string()
|
18
|
+
.datetime()
|
19
|
+
.transform((str) => new Date(str)),
|
20
|
+
updatedAt: zod_1.z
|
21
|
+
.string()
|
22
|
+
.datetime()
|
23
|
+
.transform((str) => new Date(str)),
|
24
|
+
});
|
@@ -1,7 +1,6 @@
|
|
1
1
|
import { z } from 'zod';
|
2
2
|
export declare const ExtendedUsersSchema: z.ZodObject<{
|
3
3
|
uuid: z.ZodString;
|
4
|
-
subscriptionUuid: z.ZodString;
|
5
4
|
shortUuid: z.ZodString;
|
6
5
|
username: z.ZodString;
|
7
6
|
status: z.ZodDefault<z.ZodNativeEnum<{
|
@@ -37,24 +36,15 @@ export declare const ExtendedUsersSchema: z.ZodObject<{
|
|
37
36
|
lastTriggeredThreshold: z.ZodDefault<z.ZodNumber>;
|
38
37
|
createdAt: z.ZodEffects<z.ZodString, Date, string>;
|
39
38
|
updatedAt: z.ZodEffects<z.ZodString, Date, string>;
|
40
|
-
|
39
|
+
activeInternalSquads: z.ZodArray<z.ZodObject<{
|
41
40
|
uuid: z.ZodString;
|
42
|
-
|
43
|
-
type: z.ZodString;
|
44
|
-
network: z.ZodNullable<z.ZodString>;
|
45
|
-
security: z.ZodNullable<z.ZodString>;
|
41
|
+
name: z.ZodString;
|
46
42
|
}, "strip", z.ZodTypeAny, {
|
47
|
-
type: string;
|
48
43
|
uuid: string;
|
49
|
-
|
50
|
-
network: string | null;
|
51
|
-
security: string | null;
|
44
|
+
name: string;
|
52
45
|
}, {
|
53
|
-
type: string;
|
54
46
|
uuid: string;
|
55
|
-
|
56
|
-
network: string | null;
|
57
|
-
security: string | null;
|
47
|
+
name: string;
|
58
48
|
}>, "many">;
|
59
49
|
} & {
|
60
50
|
subscriptionUrl: z.ZodString;
|
@@ -82,7 +72,6 @@ export declare const ExtendedUsersSchema: z.ZodObject<{
|
|
82
72
|
updatedAt: Date;
|
83
73
|
username: string;
|
84
74
|
tag: string | null;
|
85
|
-
subscriptionUuid: string;
|
86
75
|
shortUuid: string;
|
87
76
|
usedTrafficBytes: number;
|
88
77
|
lifetimeUsedTrafficBytes: number;
|
@@ -103,12 +92,9 @@ export declare const ExtendedUsersSchema: z.ZodObject<{
|
|
103
92
|
hwidDeviceLimit: number | null;
|
104
93
|
firstConnectedAt: Date | null;
|
105
94
|
lastTriggeredThreshold: number;
|
106
|
-
|
107
|
-
type: string;
|
95
|
+
activeInternalSquads: {
|
108
96
|
uuid: string;
|
109
|
-
|
110
|
-
network: string | null;
|
111
|
-
security: string | null;
|
97
|
+
name: string;
|
112
98
|
}[];
|
113
99
|
subscriptionUrl: string;
|
114
100
|
lastConnectedNode: {
|
@@ -124,7 +110,6 @@ export declare const ExtendedUsersSchema: z.ZodObject<{
|
|
124
110
|
updatedAt: string;
|
125
111
|
username: string;
|
126
112
|
tag: string | null;
|
127
|
-
subscriptionUuid: string;
|
128
113
|
shortUuid: string;
|
129
114
|
usedTrafficBytes: number;
|
130
115
|
lifetimeUsedTrafficBytes: number;
|
@@ -142,12 +127,9 @@ export declare const ExtendedUsersSchema: z.ZodObject<{
|
|
142
127
|
email: string | null;
|
143
128
|
hwidDeviceLimit: number | null;
|
144
129
|
firstConnectedAt: string | null;
|
145
|
-
|
146
|
-
type: string;
|
130
|
+
activeInternalSquads: {
|
147
131
|
uuid: string;
|
148
|
-
|
149
|
-
network: string | null;
|
150
|
-
security: string | null;
|
132
|
+
name: string;
|
151
133
|
}[];
|
152
134
|
subscriptionUrl: string;
|
153
135
|
lastConnectedNode: {
|