@remnawave/backend-contract 2.0.0-alpha.9 → 2.0.0
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/auth.d.ts +2 -0
- package/build/backend/api/controllers/auth.d.ts.map +1 -1
- package/build/backend/api/controllers/auth.js +2 -0
- package/build/backend/api/controllers/infra-billing.d.ts +1 -1
- package/build/backend/api/controllers/infra-billing.d.ts.map +1 -1
- package/build/backend/api/controllers/infra-billing.js +1 -5
- package/build/backend/api/controllers/internal-squads.d.ts +4 -0
- package/build/backend/api/controllers/internal-squads.d.ts.map +1 -1
- package/build/backend/api/controllers/internal-squads.js +5 -0
- package/build/backend/api/controllers/subscription.d.ts +1 -0
- package/build/backend/api/controllers/subscription.d.ts.map +1 -1
- package/build/backend/api/controllers/subscription.js +1 -0
- package/build/backend/api/controllers/system.d.ts +1 -0
- package/build/backend/api/controllers/system.d.ts.map +1 -1
- package/build/backend/api/controllers/system.js +1 -0
- package/build/backend/api/routes.d.ts +9 -1
- package/build/backend/api/routes.d.ts.map +1 -1
- package/build/backend/api/routes.js +9 -1
- package/build/backend/commands/api-tokens/create.command.d.ts +0 -3
- package/build/backend/commands/api-tokens/create.command.d.ts.map +1 -1
- package/build/backend/commands/api-tokens/create.command.js +0 -1
- package/build/backend/commands/api-tokens/find.command.d.ts +0 -7
- package/build/backend/commands/api-tokens/find.command.d.ts.map +1 -1
- package/build/backend/commands/auth/get-status.command.d.ts +23 -0
- package/build/backend/commands/auth/get-status.command.d.ts.map +1 -1
- package/build/backend/commands/auth/get-status.command.js +3 -0
- package/build/backend/commands/auth/oauth2/authorize.command.d.ts +36 -0
- package/build/backend/commands/auth/oauth2/authorize.command.d.ts.map +1 -0
- package/build/backend/commands/auth/oauth2/authorize.command.js +20 -0
- package/build/backend/commands/auth/oauth2/callback.command.d.ts +43 -0
- package/build/backend/commands/auth/oauth2/callback.command.d.ts.map +1 -0
- package/build/backend/commands/auth/oauth2/callback.command.js +22 -0
- package/build/backend/commands/auth/oauth2/index.d.ts +2 -0
- package/build/backend/commands/auth/oauth2/index.d.ts.map +1 -1
- package/build/backend/commands/auth/oauth2/index.js +2 -0
- package/build/backend/commands/hosts/bulk/delete-many-hosts.command.d.ts +31 -10
- package/build/backend/commands/hosts/bulk/delete-many-hosts.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/bulk/disable-many-hosts.command.d.ts +31 -10
- package/build/backend/commands/hosts/bulk/disable-many-hosts.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/bulk/enable-many-hosts.command.d.ts +31 -10
- package/build/backend/commands/hosts/bulk/enable-many-hosts.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/bulk/set-inbound-to-many-hosts.command.d.ts +31 -10
- package/build/backend/commands/hosts/bulk/set-inbound-to-many-hosts.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/bulk/set-port-to-many-hosts.command.d.ts +31 -10
- package/build/backend/commands/hosts/bulk/set-port-to-many-hosts.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/create.command.d.ts +52 -19
- package/build/backend/commands/hosts/create.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/create.command.js +13 -13
- package/build/backend/commands/hosts/get-all.command.d.ts +31 -10
- package/build/backend/commands/hosts/get-all.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/get-one.command.d.ts +31 -10
- package/build/backend/commands/hosts/get-one.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/reorder.command.d.ts +11 -2
- package/build/backend/commands/hosts/reorder.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/update.command.d.ts +63 -21
- package/build/backend/commands/hosts/update.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/update.command.js +10 -11
- package/build/backend/commands/infra-billing/create-bill-record.command.d.ts +125 -0
- package/build/backend/commands/infra-billing/create-bill-record.command.d.ts.map +1 -0
- package/build/backend/commands/infra-billing/create-bill-record.command.js +30 -0
- package/build/backend/commands/infra-billing/create-billing-node.command.d.ts +467 -0
- package/build/backend/commands/infra-billing/create-billing-node.command.d.ts.map +1 -0
- package/build/backend/commands/infra-billing/create-billing-node.command.js +38 -0
- package/build/backend/commands/infra-billing/create-infra-provider.command.d.ts +59 -0
- package/build/backend/commands/infra-billing/create-infra-provider.command.d.ts.map +1 -1
- package/build/backend/commands/infra-billing/create-infra-provider.command.js +1 -1
- package/build/backend/commands/infra-billing/delete-bill-record-by-uuid.command.d.ts +119 -0
- package/build/backend/commands/infra-billing/delete-bill-record-by-uuid.command.d.ts.map +1 -0
- package/build/backend/commands/infra-billing/delete-bill-record-by-uuid.command.js +22 -0
- package/build/backend/commands/infra-billing/delete-billing-node-by-uuid.command.d.ts +461 -0
- package/build/backend/commands/infra-billing/delete-billing-node-by-uuid.command.d.ts.map +1 -0
- package/build/backend/commands/infra-billing/delete-billing-node-by-uuid.command.js +29 -0
- package/build/backend/commands/infra-billing/get-bill-records.command.d.ts +122 -0
- package/build/backend/commands/infra-billing/get-bill-records.command.d.ts.map +1 -0
- package/build/backend/commands/infra-billing/get-bill-records.command.js +31 -0
- package/build/backend/commands/infra-billing/get-billing-nodes.command.d.ts +453 -0
- package/build/backend/commands/infra-billing/get-billing-nodes.command.d.ts.map +1 -0
- package/build/backend/commands/infra-billing/get-billing-nodes.command.js +26 -0
- package/build/backend/commands/infra-billing/get-infra-provider-by-uuid.command.d.ts +59 -0
- package/build/backend/commands/infra-billing/get-infra-provider-by-uuid.command.d.ts.map +1 -1
- package/build/backend/commands/infra-billing/get-infra-providers.command.d.ts +77 -0
- package/build/backend/commands/infra-billing/get-infra-providers.command.d.ts.map +1 -1
- package/build/backend/commands/infra-billing/index.d.ts +7 -0
- package/build/backend/commands/infra-billing/index.d.ts.map +1 -1
- package/build/backend/commands/infra-billing/index.js +7 -0
- package/build/backend/commands/infra-billing/update-billing-node.command.d.ts +464 -0
- package/build/backend/commands/infra-billing/update-billing-node.command.d.ts.map +1 -0
- package/build/backend/commands/infra-billing/update-billing-node.command.js +35 -0
- package/build/backend/commands/infra-billing/update-infra-provider.command.d.ts +59 -0
- package/build/backend/commands/infra-billing/update-infra-provider.command.d.ts.map +1 -1
- package/build/backend/commands/infra-billing/update-infra-provider.command.js +1 -1
- package/build/backend/commands/internal-squads/bulk-actions/add-users-to-internal-squad.command.d.ts +33 -0
- package/build/backend/commands/internal-squads/bulk-actions/add-users-to-internal-squad.command.d.ts.map +1 -0
- package/build/backend/commands/internal-squads/bulk-actions/add-users-to-internal-squad.command.js +20 -0
- package/build/backend/commands/internal-squads/bulk-actions/delete-users-from-internal-squad.command.d.ts +33 -0
- package/build/backend/commands/internal-squads/bulk-actions/delete-users-from-internal-squad.command.d.ts.map +1 -0
- package/build/backend/commands/internal-squads/bulk-actions/delete-users-from-internal-squad.command.js +20 -0
- package/build/backend/commands/internal-squads/bulk-actions/index.d.ts +3 -0
- package/build/backend/commands/internal-squads/bulk-actions/index.d.ts.map +1 -0
- package/build/backend/commands/internal-squads/bulk-actions/index.js +18 -0
- package/build/backend/commands/internal-squads/{get-internal-squad-by-uuid..d.ts → get-internal-squad-by-uuid.d.ts} +1 -1
- package/build/backend/commands/internal-squads/get-internal-squad-by-uuid.d.ts.map +1 -0
- package/build/backend/commands/internal-squads/index.d.ts +2 -1
- package/build/backend/commands/internal-squads/index.d.ts.map +1 -1
- package/build/backend/commands/internal-squads/index.js +2 -1
- package/build/backend/commands/nodes/actions/disable.command.d.ts +140 -101
- package/build/backend/commands/nodes/actions/disable.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/actions/enable.command.d.ts +140 -101
- package/build/backend/commands/nodes/actions/enable.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/actions/reorder.command.d.ts +194 -128
- package/build/backend/commands/nodes/actions/reorder.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/create.command.d.ts +158 -107
- package/build/backend/commands/nodes/create.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/create.command.js +6 -4
- package/build/backend/commands/nodes/get-all.command.d.ts +140 -101
- package/build/backend/commands/nodes/get-all.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/get-one.command.d.ts +140 -101
- package/build/backend/commands/nodes/get-one.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/stats/get-node-user-usage-by-range.command.d.ts +4 -4
- package/build/backend/commands/nodes/stats/get-nodes-usage-by-range.command.d.ts +4 -4
- package/build/backend/commands/nodes/update.command.d.ts +212 -134
- package/build/backend/commands/nodes/update.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/update.command.js +8 -4
- package/build/backend/commands/subscription/get-raw-subscription-by-short-uuid.command.d.ts +354 -0
- package/build/backend/commands/subscription/get-raw-subscription-by-short-uuid.command.d.ts.map +1 -0
- package/build/backend/commands/subscription/get-raw-subscription-by-short-uuid.command.js +67 -0
- package/build/backend/commands/subscription/get-subscription-info-by-short-uuid.command.d.ts +4 -4
- package/build/backend/commands/subscription/index.d.ts +1 -0
- package/build/backend/commands/subscription/index.d.ts.map +1 -1
- package/build/backend/commands/subscription/index.js +1 -0
- package/build/backend/commands/subscriptions/get-all-subscriptions.command.d.ts +6 -6
- package/build/backend/commands/subscriptions/get-by/get-subscription-by-username.command.d.ts +4 -4
- package/build/backend/commands/system/get-nodes-metrics.command.d.ts +153 -0
- package/build/backend/commands/system/get-nodes-metrics.command.d.ts.map +1 -0
- package/build/backend/commands/system/get-nodes-metrics.command.js +33 -0
- package/build/backend/commands/system/index.d.ts +1 -0
- package/build/backend/commands/system/index.d.ts.map +1 -1
- package/build/backend/commands/system/index.js +1 -0
- package/build/backend/commands/users/create-user.command.d.ts +6 -6
- package/build/backend/commands/users/create-user.command.d.ts.map +1 -1
- package/build/backend/commands/users/create-user.command.js +2 -4
- package/build/backend/commands/users/get-user-usage-by-range.command.d.ts +4 -4
- package/build/backend/constants/errors/errors.d.ts +85 -0
- package/build/backend/constants/errors/errors.d.ts.map +1 -1
- package/build/backend/constants/errors/errors.js +85 -0
- package/build/backend/constants/events/events.d.ts +11 -0
- package/build/backend/constants/events/events.d.ts.map +1 -1
- package/build/backend/constants/events/events.js +10 -0
- package/build/backend/constants/headers/headers.constants.d.ts +3 -0
- package/build/backend/constants/headers/headers.constants.d.ts.map +1 -0
- package/build/backend/constants/headers/headers.constants.js +5 -0
- package/build/backend/constants/headers/index.d.ts +2 -0
- package/build/backend/constants/headers/index.d.ts.map +1 -0
- package/build/backend/constants/headers/index.js +17 -0
- package/build/backend/constants/index.d.ts +3 -0
- package/build/backend/constants/index.d.ts.map +1 -1
- package/build/backend/constants/index.js +3 -0
- package/build/backend/constants/messaging/index.d.ts +2 -0
- package/build/backend/constants/messaging/index.d.ts.map +1 -0
- package/build/backend/constants/messaging/index.js +17 -0
- package/build/backend/constants/messaging/messaging.constants.d.ts +13 -0
- package/build/backend/constants/messaging/messaging.constants.d.ts.map +1 -0
- package/build/backend/constants/messaging/messaging.constants.js +19 -0
- package/build/backend/constants/metrics/metric-names.constant.d.ts +17 -0
- package/build/backend/constants/metrics/metric-names.constant.d.ts.map +1 -1
- package/build/backend/constants/metrics/metric-names.constant.js +17 -0
- package/build/backend/constants/oauth2/index.d.ts +2 -0
- package/build/backend/constants/oauth2/index.d.ts.map +1 -0
- package/build/backend/constants/oauth2/index.js +17 -0
- package/build/backend/constants/oauth2/providers.contants.d.ts +9 -0
- package/build/backend/constants/oauth2/providers.contants.d.ts.map +1 -0
- package/build/backend/constants/oauth2/providers.contants.js +9 -0
- package/build/backend/constants/templates/template-keys.d.ts +1 -1
- package/build/backend/constants/templates/template-keys.d.ts.map +1 -1
- package/build/backend/constants/templates/template-keys.js +1 -0
- package/build/backend/models/api-tokens.schema.d.ts +0 -3
- package/build/backend/models/api-tokens.schema.d.ts.map +1 -1
- package/build/backend/models/api-tokens.schema.js +0 -1
- package/build/backend/models/{extented-users.schema.d.ts → extended-users.schema.d.ts} +1 -1
- package/build/backend/models/{extented-users.schema.d.ts.map → extended-users.schema.d.ts.map} +1 -1
- package/build/backend/models/hosts.schema.d.ts +21 -6
- package/build/backend/models/hosts.schema.d.ts.map +1 -1
- package/build/backend/models/hosts.schema.js +5 -2
- package/build/backend/models/index.d.ts +4 -1
- package/build/backend/models/index.d.ts.map +1 -1
- package/build/backend/models/index.js +4 -1
- package/build/backend/models/infra-billing-available-node.schema.d.ts +117 -0
- package/build/backend/models/infra-billing-available-node.schema.d.ts.map +1 -0
- package/build/backend/models/infra-billing-available-node.schema.js +9 -0
- package/build/backend/models/infra-billing-history-record.schema.d.ts +44 -0
- package/build/backend/models/infra-billing-history-record.schema.d.ts.map +1 -0
- package/build/backend/models/infra-billing-history-record.schema.js +19 -0
- package/build/backend/models/infra-billing-node.schema.d.ts +180 -0
- package/build/backend/models/infra-billing-node.schema.d.ts.map +1 -0
- package/build/backend/models/infra-billing-node.schema.js +34 -0
- package/build/backend/models/infra-provider.schema.d.ts +63 -0
- package/build/backend/models/infra-provider.schema.d.ts.map +1 -1
- package/build/backend/models/infra-provider.schema.js +24 -1
- package/build/backend/models/nodes.schema.d.ts +96 -63
- package/build/backend/models/nodes.schema.d.ts.map +1 -1
- package/build/backend/models/nodes.schema.js +6 -3
- package/build/frontend/api/controllers/auth.js +2 -0
- package/build/frontend/api/controllers/infra-billing.js +1 -5
- package/build/frontend/api/controllers/internal-squads.js +5 -0
- package/build/frontend/api/controllers/subscription.js +1 -0
- package/build/frontend/api/controllers/system.js +1 -0
- package/build/frontend/api/routes.js +9 -1
- package/build/frontend/commands/api-tokens/create.command.js +0 -1
- package/build/frontend/commands/auth/get-status.command.js +3 -0
- package/build/frontend/commands/auth/oauth2/authorize.command.js +20 -0
- package/build/frontend/commands/auth/oauth2/callback.command.js +22 -0
- package/build/frontend/commands/auth/oauth2/index.js +2 -0
- package/build/frontend/commands/hosts/create.command.js +13 -13
- package/build/frontend/commands/hosts/update.command.js +10 -11
- package/build/frontend/commands/infra-billing/create-bill-record.command.js +30 -0
- package/build/frontend/commands/infra-billing/create-billing-node.command.js +38 -0
- package/build/frontend/commands/infra-billing/create-infra-provider.command.js +1 -1
- package/build/frontend/commands/infra-billing/delete-bill-record-by-uuid.command.js +22 -0
- package/build/frontend/commands/infra-billing/delete-billing-node-by-uuid.command.js +29 -0
- package/build/frontend/commands/infra-billing/get-bill-records.command.js +31 -0
- package/build/frontend/commands/infra-billing/get-billing-nodes.command.js +26 -0
- package/build/frontend/commands/infra-billing/index.js +7 -0
- package/build/frontend/commands/infra-billing/update-billing-node.command.js +35 -0
- package/build/frontend/commands/infra-billing/update-infra-provider.command.js +1 -1
- package/build/frontend/commands/internal-squads/bulk-actions/add-users-to-internal-squad.command.js +20 -0
- package/build/frontend/commands/internal-squads/bulk-actions/delete-users-from-internal-squad.command.js +20 -0
- package/build/frontend/commands/internal-squads/bulk-actions/index.js +18 -0
- package/build/frontend/commands/internal-squads/index.js +2 -1
- package/build/frontend/commands/nodes/create.command.js +6 -4
- package/build/frontend/commands/nodes/update.command.js +8 -4
- package/build/frontend/commands/subscription/get-raw-subscription-by-short-uuid.command.js +67 -0
- package/build/frontend/commands/subscription/index.js +1 -0
- package/build/frontend/commands/system/get-nodes-metrics.command.js +33 -0
- package/build/frontend/commands/system/index.js +1 -0
- package/build/frontend/commands/users/create-user.command.js +2 -4
- package/build/frontend/constants/errors/errors.js +85 -0
- package/build/frontend/constants/events/events.js +10 -0
- package/build/frontend/constants/headers/headers.constants.js +5 -0
- package/build/frontend/constants/headers/index.js +17 -0
- package/build/frontend/constants/index.js +3 -0
- package/build/frontend/constants/messaging/index.js +17 -0
- package/build/frontend/constants/messaging/messaging.constants.js +19 -0
- package/build/frontend/constants/metrics/metric-names.constant.js +17 -0
- package/build/frontend/constants/oauth2/index.js +17 -0
- package/build/frontend/constants/oauth2/providers.contants.js +9 -0
- package/build/frontend/constants/templates/template-keys.js +1 -0
- package/build/frontend/models/api-tokens.schema.js +0 -1
- package/build/frontend/models/hosts.schema.js +5 -2
- package/build/frontend/models/index.js +4 -1
- package/build/frontend/models/infra-billing-available-node.schema.js +9 -0
- package/build/frontend/models/infra-billing-history-record.schema.js +19 -0
- package/build/frontend/models/infra-billing-node.schema.js +34 -0
- package/build/frontend/models/infra-provider.schema.js +24 -1
- package/build/frontend/models/nodes.schema.js +6 -3
- package/package.json +2 -2
- package/build/backend/commands/internal-squads/get-internal-squad-by-uuid..d.ts.map +0 -1
- /package/build/backend/commands/internal-squads/{get-internal-squad-by-uuid..js → get-internal-squad-by-uuid.js} +0 -0
- /package/build/backend/models/{extented-users.schema.js → extended-users.schema.js} +0 -0
- /package/build/frontend/commands/internal-squads/{get-internal-squad-by-uuid..js → get-internal-squad-by-uuid.js} +0 -0
- /package/build/frontend/models/{extented-users.schema.js → extended-users.schema.js} +0 -0
@@ -13,25 +13,39 @@ export declare namespace CreateNodeCommand {
|
|
13
13
|
trafficResetDay: z.ZodOptional<z.ZodNumber>;
|
14
14
|
countryCode: z.ZodDefault<z.ZodString>;
|
15
15
|
consumptionMultiplier: z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>;
|
16
|
-
|
17
|
-
|
16
|
+
configProfile: z.ZodObject<{
|
17
|
+
activeConfigProfileUuid: z.ZodString;
|
18
|
+
activeInbounds: z.ZodArray<z.ZodString, "many">;
|
19
|
+
}, "strip", z.ZodTypeAny, {
|
20
|
+
activeConfigProfileUuid: string;
|
21
|
+
activeInbounds: string[];
|
22
|
+
}, {
|
23
|
+
activeConfigProfileUuid: string;
|
24
|
+
activeInbounds: string[];
|
25
|
+
}>;
|
18
26
|
providerUuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
19
27
|
}, "strip", z.ZodTypeAny, {
|
20
28
|
name: string;
|
21
29
|
countryCode: string;
|
22
30
|
address: string;
|
23
31
|
isTrafficTrackingActive: boolean;
|
32
|
+
configProfile: {
|
33
|
+
activeConfigProfileUuid: string;
|
34
|
+
activeInbounds: string[];
|
35
|
+
};
|
24
36
|
port?: number | undefined;
|
25
37
|
trafficLimitBytes?: number | undefined;
|
26
38
|
trafficResetDay?: number | undefined;
|
27
39
|
notifyPercent?: number | undefined;
|
28
40
|
consumptionMultiplier?: number | undefined;
|
29
|
-
activeConfigProfileUuid?: string | undefined;
|
30
|
-
activeInbounds?: string[] | undefined;
|
31
41
|
providerUuid?: string | null | undefined;
|
32
42
|
}, {
|
33
43
|
name: string;
|
34
44
|
address: string;
|
45
|
+
configProfile: {
|
46
|
+
activeConfigProfileUuid: string;
|
47
|
+
activeInbounds: string[];
|
48
|
+
};
|
35
49
|
port?: number | undefined;
|
36
50
|
countryCode?: string | undefined;
|
37
51
|
trafficLimitBytes?: number | undefined;
|
@@ -39,8 +53,6 @@ export declare namespace CreateNodeCommand {
|
|
39
53
|
trafficResetDay?: number | undefined;
|
40
54
|
notifyPercent?: number | undefined;
|
41
55
|
consumptionMultiplier?: number | undefined;
|
42
|
-
activeConfigProfileUuid?: string | undefined;
|
43
|
-
activeInbounds?: string[] | undefined;
|
44
56
|
providerUuid?: string | null | undefined;
|
45
57
|
}>;
|
46
58
|
type Request = z.infer<typeof RequestSchema>;
|
@@ -58,6 +70,7 @@ export declare namespace CreateNodeCommand {
|
|
58
70
|
lastStatusChange: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
|
59
71
|
lastStatusMessage: z.ZodNullable<z.ZodString>;
|
60
72
|
xrayVersion: z.ZodNullable<z.ZodString>;
|
73
|
+
nodeVersion: z.ZodNullable<z.ZodString>;
|
61
74
|
xrayUptime: z.ZodString;
|
62
75
|
isTrafficTrackingActive: z.ZodBoolean;
|
63
76
|
trafficResetDay: z.ZodNullable<z.ZodNumber>;
|
@@ -73,35 +86,61 @@ export declare namespace CreateNodeCommand {
|
|
73
86
|
totalRam: z.ZodNullable<z.ZodString>;
|
74
87
|
createdAt: z.ZodEffects<z.ZodString, Date, string>;
|
75
88
|
updatedAt: z.ZodEffects<z.ZodString, Date, string>;
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
89
|
+
configProfile: z.ZodObject<{
|
90
|
+
activeConfigProfileUuid: z.ZodNullable<z.ZodString>;
|
91
|
+
activeInbounds: z.ZodArray<z.ZodObject<{
|
92
|
+
uuid: z.ZodString;
|
93
|
+
profileUuid: z.ZodString;
|
94
|
+
tag: z.ZodString;
|
95
|
+
type: z.ZodString;
|
96
|
+
network: z.ZodNullable<z.ZodString>;
|
97
|
+
security: z.ZodNullable<z.ZodString>;
|
98
|
+
port: z.ZodNullable<z.ZodNumber>;
|
99
|
+
rawInbound: z.ZodNullable<z.ZodUnknown>;
|
100
|
+
}, "strip", z.ZodTypeAny, {
|
101
|
+
type: string;
|
102
|
+
uuid: string;
|
103
|
+
profileUuid: string;
|
104
|
+
tag: string;
|
105
|
+
network: string | null;
|
106
|
+
security: string | null;
|
107
|
+
port: number | null;
|
108
|
+
rawInbound?: unknown;
|
109
|
+
}, {
|
110
|
+
type: string;
|
111
|
+
uuid: string;
|
112
|
+
profileUuid: string;
|
113
|
+
tag: string;
|
114
|
+
network: string | null;
|
115
|
+
security: string | null;
|
116
|
+
port: number | null;
|
117
|
+
rawInbound?: unknown;
|
118
|
+
}>, "many">;
|
86
119
|
}, "strip", z.ZodTypeAny, {
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
120
|
+
activeConfigProfileUuid: string | null;
|
121
|
+
activeInbounds: {
|
122
|
+
type: string;
|
123
|
+
uuid: string;
|
124
|
+
profileUuid: string;
|
125
|
+
tag: string;
|
126
|
+
network: string | null;
|
127
|
+
security: string | null;
|
128
|
+
port: number | null;
|
129
|
+
rawInbound?: unknown;
|
130
|
+
}[];
|
95
131
|
}, {
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
132
|
+
activeConfigProfileUuid: string | null;
|
133
|
+
activeInbounds: {
|
134
|
+
type: string;
|
135
|
+
uuid: string;
|
136
|
+
profileUuid: string;
|
137
|
+
tag: string;
|
138
|
+
network: string | null;
|
139
|
+
security: string | null;
|
140
|
+
port: number | null;
|
141
|
+
rawInbound?: unknown;
|
142
|
+
}[];
|
143
|
+
}>;
|
105
144
|
providerUuid: z.ZodNullable<z.ZodString>;
|
106
145
|
provider: z.ZodNullable<z.ZodObject<{
|
107
146
|
uuid: z.ZodString;
|
@@ -129,6 +168,14 @@ export declare namespace CreateNodeCommand {
|
|
129
168
|
uuid: string;
|
130
169
|
createdAt: Date;
|
131
170
|
updatedAt: Date;
|
171
|
+
provider: {
|
172
|
+
uuid: string;
|
173
|
+
createdAt: Date;
|
174
|
+
updatedAt: Date;
|
175
|
+
name: string;
|
176
|
+
faviconLink: string | null;
|
177
|
+
loginUrl: string | null;
|
178
|
+
} | null;
|
132
179
|
name: string;
|
133
180
|
port: number | null;
|
134
181
|
countryCode: string;
|
@@ -143,6 +190,7 @@ export declare namespace CreateNodeCommand {
|
|
143
190
|
lastStatusChange: Date | null;
|
144
191
|
lastStatusMessage: string | null;
|
145
192
|
xrayVersion: string | null;
|
193
|
+
nodeVersion: string | null;
|
146
194
|
xrayUptime: string;
|
147
195
|
isTrafficTrackingActive: boolean;
|
148
196
|
trafficResetDay: number | null;
|
@@ -153,30 +201,32 @@ export declare namespace CreateNodeCommand {
|
|
153
201
|
cpuCount: number | null;
|
154
202
|
cpuModel: string | null;
|
155
203
|
totalRam: string | null;
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
204
|
+
configProfile: {
|
205
|
+
activeConfigProfileUuid: string | null;
|
206
|
+
activeInbounds: {
|
207
|
+
type: string;
|
208
|
+
uuid: string;
|
209
|
+
profileUuid: string;
|
210
|
+
tag: string;
|
211
|
+
network: string | null;
|
212
|
+
security: string | null;
|
213
|
+
port: number | null;
|
214
|
+
rawInbound?: unknown;
|
215
|
+
}[];
|
216
|
+
};
|
167
217
|
providerUuid: string | null;
|
218
|
+
}, {
|
219
|
+
uuid: string;
|
220
|
+
createdAt: string;
|
221
|
+
updatedAt: string;
|
168
222
|
provider: {
|
169
223
|
uuid: string;
|
170
|
-
createdAt:
|
171
|
-
updatedAt:
|
224
|
+
createdAt: string;
|
225
|
+
updatedAt: string;
|
172
226
|
name: string;
|
173
227
|
faviconLink: string | null;
|
174
228
|
loginUrl: string | null;
|
175
229
|
} | null;
|
176
|
-
}, {
|
177
|
-
uuid: string;
|
178
|
-
createdAt: string;
|
179
|
-
updatedAt: string;
|
180
230
|
name: string;
|
181
231
|
port: number | null;
|
182
232
|
countryCode: string;
|
@@ -191,6 +241,7 @@ export declare namespace CreateNodeCommand {
|
|
191
241
|
lastStatusChange: string | null;
|
192
242
|
lastStatusMessage: string | null;
|
193
243
|
xrayVersion: string | null;
|
244
|
+
nodeVersion: string | null;
|
194
245
|
xrayUptime: string;
|
195
246
|
isTrafficTrackingActive: boolean;
|
196
247
|
trafficResetDay: number | null;
|
@@ -201,32 +252,34 @@ export declare namespace CreateNodeCommand {
|
|
201
252
|
cpuCount: number | null;
|
202
253
|
cpuModel: string | null;
|
203
254
|
totalRam: string | null;
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
255
|
+
configProfile: {
|
256
|
+
activeConfigProfileUuid: string | null;
|
257
|
+
activeInbounds: {
|
258
|
+
type: string;
|
259
|
+
uuid: string;
|
260
|
+
profileUuid: string;
|
261
|
+
tag: string;
|
262
|
+
network: string | null;
|
263
|
+
security: string | null;
|
264
|
+
port: number | null;
|
265
|
+
rawInbound?: unknown;
|
266
|
+
}[];
|
267
|
+
};
|
215
268
|
providerUuid: string | null;
|
216
|
-
provider: {
|
217
|
-
uuid: string;
|
218
|
-
createdAt: string;
|
219
|
-
updatedAt: string;
|
220
|
-
name: string;
|
221
|
-
faviconLink: string | null;
|
222
|
-
loginUrl: string | null;
|
223
|
-
} | null;
|
224
269
|
}>;
|
225
270
|
}, "strip", z.ZodTypeAny, {
|
226
271
|
response: {
|
227
272
|
uuid: string;
|
228
273
|
createdAt: Date;
|
229
274
|
updatedAt: Date;
|
275
|
+
provider: {
|
276
|
+
uuid: string;
|
277
|
+
createdAt: Date;
|
278
|
+
updatedAt: Date;
|
279
|
+
name: string;
|
280
|
+
faviconLink: string | null;
|
281
|
+
loginUrl: string | null;
|
282
|
+
} | null;
|
230
283
|
name: string;
|
231
284
|
port: number | null;
|
232
285
|
countryCode: string;
|
@@ -241,6 +294,7 @@ export declare namespace CreateNodeCommand {
|
|
241
294
|
lastStatusChange: Date | null;
|
242
295
|
lastStatusMessage: string | null;
|
243
296
|
xrayVersion: string | null;
|
297
|
+
nodeVersion: string | null;
|
244
298
|
xrayUptime: string;
|
245
299
|
isTrafficTrackingActive: boolean;
|
246
300
|
trafficResetDay: number | null;
|
@@ -251,32 +305,34 @@ export declare namespace CreateNodeCommand {
|
|
251
305
|
cpuCount: number | null;
|
252
306
|
cpuModel: string | null;
|
253
307
|
totalRam: string | null;
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
308
|
+
configProfile: {
|
309
|
+
activeConfigProfileUuid: string | null;
|
310
|
+
activeInbounds: {
|
311
|
+
type: string;
|
312
|
+
uuid: string;
|
313
|
+
profileUuid: string;
|
314
|
+
tag: string;
|
315
|
+
network: string | null;
|
316
|
+
security: string | null;
|
317
|
+
port: number | null;
|
318
|
+
rawInbound?: unknown;
|
319
|
+
}[];
|
320
|
+
};
|
265
321
|
providerUuid: string | null;
|
266
|
-
provider: {
|
267
|
-
uuid: string;
|
268
|
-
createdAt: Date;
|
269
|
-
updatedAt: Date;
|
270
|
-
name: string;
|
271
|
-
faviconLink: string | null;
|
272
|
-
loginUrl: string | null;
|
273
|
-
} | null;
|
274
322
|
};
|
275
323
|
}, {
|
276
324
|
response: {
|
277
325
|
uuid: string;
|
278
326
|
createdAt: string;
|
279
327
|
updatedAt: string;
|
328
|
+
provider: {
|
329
|
+
uuid: string;
|
330
|
+
createdAt: string;
|
331
|
+
updatedAt: string;
|
332
|
+
name: string;
|
333
|
+
faviconLink: string | null;
|
334
|
+
loginUrl: string | null;
|
335
|
+
} | null;
|
280
336
|
name: string;
|
281
337
|
port: number | null;
|
282
338
|
countryCode: string;
|
@@ -291,6 +347,7 @@ export declare namespace CreateNodeCommand {
|
|
291
347
|
lastStatusChange: string | null;
|
292
348
|
lastStatusMessage: string | null;
|
293
349
|
xrayVersion: string | null;
|
350
|
+
nodeVersion: string | null;
|
294
351
|
xrayUptime: string;
|
295
352
|
isTrafficTrackingActive: boolean;
|
296
353
|
trafficResetDay: number | null;
|
@@ -301,26 +358,20 @@ export declare namespace CreateNodeCommand {
|
|
301
358
|
cpuCount: number | null;
|
302
359
|
cpuModel: string | null;
|
303
360
|
totalRam: string | null;
|
304
|
-
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
|
314
|
-
|
361
|
+
configProfile: {
|
362
|
+
activeConfigProfileUuid: string | null;
|
363
|
+
activeInbounds: {
|
364
|
+
type: string;
|
365
|
+
uuid: string;
|
366
|
+
profileUuid: string;
|
367
|
+
tag: string;
|
368
|
+
network: string | null;
|
369
|
+
security: string | null;
|
370
|
+
port: number | null;
|
371
|
+
rawInbound?: unknown;
|
372
|
+
}[];
|
373
|
+
};
|
315
374
|
providerUuid: string | null;
|
316
|
-
provider: {
|
317
|
-
uuid: string;
|
318
|
-
createdAt: string;
|
319
|
-
updatedAt: string;
|
320
|
-
name: string;
|
321
|
-
faviconLink: string | null;
|
322
|
-
loginUrl: string | null;
|
323
|
-
} | null;
|
324
375
|
};
|
325
376
|
}>;
|
326
377
|
type Response = z.infer<typeof ResponseSchema>;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"create.command.d.ts","sourceRoot":"","sources":["../../../../commands/nodes/create.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,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":"create.command.d.ts","sourceRoot":"","sources":["../../../../commands/nodes/create.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,eAAwB,CAAC;IAClC,MAAM,OAAO,eAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA0CxB,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"}
|
@@ -35,10 +35,12 @@ var CreateNodeCommand;
|
|
35
35
|
.number()
|
36
36
|
.min(0.1, 'Consumption multiplier must be greater than 0')
|
37
37
|
.transform((n) => Number(n.toFixed(1)))),
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
38
|
+
configProfile: zod_1.z.object({
|
39
|
+
activeConfigProfileUuid: zod_1.z.string().uuid(),
|
40
|
+
activeInbounds: zod_1.z.array(zod_1.z.string().uuid(), {
|
41
|
+
invalid_type_error: 'Config profile inbound UUID must be an array of UUIDs',
|
42
|
+
}),
|
43
|
+
}),
|
42
44
|
providerUuid: zod_1.z.optional(zod_1.z.nullable(zod_1.z.string().uuid())),
|
43
45
|
});
|
44
46
|
CreateNodeCommand.ResponseSchema = zod_1.z.object({
|