@remnawave/backend-contract 2.0.0-alpha.8 → 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/index.d.ts +1 -0
- package/build/backend/api/controllers/index.d.ts.map +1 -1
- package/build/backend/api/controllers/index.js +1 -0
- package/build/backend/api/controllers/infra-billing.d.ts +16 -0
- package/build/backend/api/controllers/infra-billing.d.ts.map +1 -0
- package/build/backend/api/controllers/infra-billing.js +18 -0
- 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 +22 -0
- package/build/backend/api/routes.d.ts.map +1 -1
- package/build/backend/api/routes.js +22 -0
- 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/config-profiles/create-config-profile.command.js +2 -2
- 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/index.d.ts +1 -0
- package/build/backend/commands/index.d.ts.map +1 -1
- package/build/backend/commands/index.js +1 -0
- 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 +123 -0
- package/build/backend/commands/infra-billing/create-infra-provider.command.d.ts.map +1 -0
- package/build/backend/commands/infra-billing/create-infra-provider.command.js +24 -0
- 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/delete-infra-provider-by-uuid.command.d.ts +33 -0
- package/build/backend/commands/infra-billing/delete-infra-provider-by-uuid.command.d.ts.map +1 -0
- package/build/backend/commands/infra-billing/delete-infra-provider-by-uuid.command.js +20 -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 +117 -0
- package/build/backend/commands/infra-billing/get-infra-provider-by-uuid.command.d.ts.map +1 -0
- package/build/backend/commands/infra-billing/get-infra-provider-by-uuid.command.js +19 -0
- package/build/backend/commands/infra-billing/get-infra-providers.command.d.ts +156 -0
- package/build/backend/commands/infra-billing/get-infra-providers.command.d.ts.map +1 -0
- package/build/backend/commands/infra-billing/get-infra-providers.command.js +19 -0
- package/build/backend/commands/infra-billing/index.d.ts +13 -0
- package/build/backend/commands/infra-billing/index.d.ts.map +1 -0
- package/build/backend/commands/infra-billing/index.js +28 -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 +126 -0
- package/build/backend/commands/infra-billing/update-infra-provider.command.d.ts.map +1 -0
- package/build/backend/commands/infra-billing/update-infra-provider.command.js +26 -0
- 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/create-internal-squad.command.js +2 -2
- 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 +166 -68
- package/build/backend/commands/nodes/actions/disable.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/actions/enable.command.d.ts +166 -68
- package/build/backend/commands/nodes/actions/enable.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/actions/reorder.command.d.ts +240 -92
- package/build/backend/commands/nodes/actions/reorder.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/create.command.d.ts +187 -74
- package/build/backend/commands/nodes/create.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/create.command.js +7 -4
- package/build/backend/commands/nodes/get-all.command.d.ts +166 -68
- package/build/backend/commands/nodes/get-all.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/get-one.command.d.ts +166 -68
- 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 +261 -98
- package/build/backend/commands/nodes/update.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/update.command.js +9 -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 +115 -0
- package/build/backend/constants/errors/errors.d.ts.map +1 -1
- package/build/backend/constants/errors/errors.js +115 -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 +5 -1
- package/build/backend/models/index.d.ts.map +1 -1
- package/build/backend/models/index.js +5 -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 +87 -0
- package/build/backend/models/infra-provider.schema.d.ts.map +1 -0
- package/build/backend/models/infra-provider.schema.js +41 -0
- package/build/backend/models/nodes.schema.d.ts +120 -46
- package/build/backend/models/nodes.schema.d.ts.map +1 -1
- package/build/backend/models/nodes.schema.js +8 -2
- package/build/frontend/api/controllers/auth.js +2 -0
- package/build/frontend/api/controllers/index.js +1 -0
- package/build/frontend/api/controllers/infra-billing.js +18 -0
- 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 +22 -0
- 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/config-profiles/create-config-profile.command.js +2 -2
- package/build/frontend/commands/hosts/create.command.js +13 -13
- package/build/frontend/commands/hosts/update.command.js +10 -11
- package/build/frontend/commands/index.js +1 -0
- 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 +24 -0
- 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/delete-infra-provider-by-uuid.command.js +20 -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/get-infra-provider-by-uuid.command.js +19 -0
- package/build/frontend/commands/infra-billing/get-infra-providers.command.js +19 -0
- package/build/frontend/commands/infra-billing/index.js +28 -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 +26 -0
- 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/create-internal-squad.command.js +2 -2
- package/build/frontend/commands/internal-squads/index.js +2 -1
- package/build/frontend/commands/nodes/create.command.js +7 -4
- package/build/frontend/commands/nodes/update.command.js +9 -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 +115 -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 +5 -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 +41 -0
- package/build/frontend/models/nodes.schema.js +8 -2
- 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
@@ -0,0 +1,153 @@
|
|
1
|
+
import { z } from 'zod';
|
2
|
+
export declare namespace GetNodesMetricsCommand {
|
3
|
+
const url: "/api/system/nodes/metrics";
|
4
|
+
const TSQ_url: "/api/system/nodes/metrics";
|
5
|
+
const endpointDetails: import("../../constants").EndpointDetails;
|
6
|
+
const ResponseSchema: z.ZodObject<{
|
7
|
+
response: z.ZodObject<{
|
8
|
+
nodes: z.ZodArray<z.ZodObject<{
|
9
|
+
nodeUuid: z.ZodString;
|
10
|
+
nodeName: z.ZodString;
|
11
|
+
countryEmoji: z.ZodString;
|
12
|
+
providerName: z.ZodString;
|
13
|
+
usersOnline: z.ZodNumber;
|
14
|
+
inboundsStats: z.ZodArray<z.ZodObject<{
|
15
|
+
tag: z.ZodString;
|
16
|
+
upload: z.ZodString;
|
17
|
+
download: z.ZodString;
|
18
|
+
}, "strip", z.ZodTypeAny, {
|
19
|
+
tag: string;
|
20
|
+
upload: string;
|
21
|
+
download: string;
|
22
|
+
}, {
|
23
|
+
tag: string;
|
24
|
+
upload: string;
|
25
|
+
download: string;
|
26
|
+
}>, "many">;
|
27
|
+
outboundsStats: z.ZodArray<z.ZodObject<{
|
28
|
+
tag: z.ZodString;
|
29
|
+
upload: z.ZodString;
|
30
|
+
download: z.ZodString;
|
31
|
+
}, "strip", z.ZodTypeAny, {
|
32
|
+
tag: string;
|
33
|
+
upload: string;
|
34
|
+
download: string;
|
35
|
+
}, {
|
36
|
+
tag: string;
|
37
|
+
upload: string;
|
38
|
+
download: string;
|
39
|
+
}>, "many">;
|
40
|
+
}, "strip", z.ZodTypeAny, {
|
41
|
+
nodeName: string;
|
42
|
+
nodeUuid: string;
|
43
|
+
usersOnline: number;
|
44
|
+
countryEmoji: string;
|
45
|
+
providerName: string;
|
46
|
+
inboundsStats: {
|
47
|
+
tag: string;
|
48
|
+
upload: string;
|
49
|
+
download: string;
|
50
|
+
}[];
|
51
|
+
outboundsStats: {
|
52
|
+
tag: string;
|
53
|
+
upload: string;
|
54
|
+
download: string;
|
55
|
+
}[];
|
56
|
+
}, {
|
57
|
+
nodeName: string;
|
58
|
+
nodeUuid: string;
|
59
|
+
usersOnline: number;
|
60
|
+
countryEmoji: string;
|
61
|
+
providerName: string;
|
62
|
+
inboundsStats: {
|
63
|
+
tag: string;
|
64
|
+
upload: string;
|
65
|
+
download: string;
|
66
|
+
}[];
|
67
|
+
outboundsStats: {
|
68
|
+
tag: string;
|
69
|
+
upload: string;
|
70
|
+
download: string;
|
71
|
+
}[];
|
72
|
+
}>, "many">;
|
73
|
+
}, "strip", z.ZodTypeAny, {
|
74
|
+
nodes: {
|
75
|
+
nodeName: string;
|
76
|
+
nodeUuid: string;
|
77
|
+
usersOnline: number;
|
78
|
+
countryEmoji: string;
|
79
|
+
providerName: string;
|
80
|
+
inboundsStats: {
|
81
|
+
tag: string;
|
82
|
+
upload: string;
|
83
|
+
download: string;
|
84
|
+
}[];
|
85
|
+
outboundsStats: {
|
86
|
+
tag: string;
|
87
|
+
upload: string;
|
88
|
+
download: string;
|
89
|
+
}[];
|
90
|
+
}[];
|
91
|
+
}, {
|
92
|
+
nodes: {
|
93
|
+
nodeName: string;
|
94
|
+
nodeUuid: string;
|
95
|
+
usersOnline: number;
|
96
|
+
countryEmoji: string;
|
97
|
+
providerName: string;
|
98
|
+
inboundsStats: {
|
99
|
+
tag: string;
|
100
|
+
upload: string;
|
101
|
+
download: string;
|
102
|
+
}[];
|
103
|
+
outboundsStats: {
|
104
|
+
tag: string;
|
105
|
+
upload: string;
|
106
|
+
download: string;
|
107
|
+
}[];
|
108
|
+
}[];
|
109
|
+
}>;
|
110
|
+
}, "strip", z.ZodTypeAny, {
|
111
|
+
response: {
|
112
|
+
nodes: {
|
113
|
+
nodeName: string;
|
114
|
+
nodeUuid: string;
|
115
|
+
usersOnline: number;
|
116
|
+
countryEmoji: string;
|
117
|
+
providerName: string;
|
118
|
+
inboundsStats: {
|
119
|
+
tag: string;
|
120
|
+
upload: string;
|
121
|
+
download: string;
|
122
|
+
}[];
|
123
|
+
outboundsStats: {
|
124
|
+
tag: string;
|
125
|
+
upload: string;
|
126
|
+
download: string;
|
127
|
+
}[];
|
128
|
+
}[];
|
129
|
+
};
|
130
|
+
}, {
|
131
|
+
response: {
|
132
|
+
nodes: {
|
133
|
+
nodeName: string;
|
134
|
+
nodeUuid: string;
|
135
|
+
usersOnline: number;
|
136
|
+
countryEmoji: string;
|
137
|
+
providerName: string;
|
138
|
+
inboundsStats: {
|
139
|
+
tag: string;
|
140
|
+
upload: string;
|
141
|
+
download: string;
|
142
|
+
}[];
|
143
|
+
outboundsStats: {
|
144
|
+
tag: string;
|
145
|
+
upload: string;
|
146
|
+
download: string;
|
147
|
+
}[];
|
148
|
+
}[];
|
149
|
+
};
|
150
|
+
}>;
|
151
|
+
type Response = z.infer<typeof ResponseSchema>;
|
152
|
+
}
|
153
|
+
//# sourceMappingURL=get-nodes-metrics.command.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"get-nodes-metrics.command.d.ts","sourceRoot":"","sources":["../../../../commands/system/get-nodes-metrics.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,sBAAsB,CAAC;IAC7B,MAAM,GAAG,6BAAsC,CAAC;IAChD,MAAM,OAAO,6BAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA0BzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
@@ -0,0 +1,33 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.GetNodesMetricsCommand = void 0;
|
4
|
+
const zod_1 = require("zod");
|
5
|
+
const constants_1 = require("../../constants");
|
6
|
+
const api_1 = require("../../api");
|
7
|
+
var GetNodesMetricsCommand;
|
8
|
+
(function (GetNodesMetricsCommand) {
|
9
|
+
GetNodesMetricsCommand.url = api_1.REST_API.SYSTEM.STATS.NODES_METRICS;
|
10
|
+
GetNodesMetricsCommand.TSQ_url = GetNodesMetricsCommand.url;
|
11
|
+
GetNodesMetricsCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.SYSTEM_ROUTES.STATS.NODES_METRICS, 'get', 'Get Nodes Metrics');
|
12
|
+
GetNodesMetricsCommand.ResponseSchema = zod_1.z.object({
|
13
|
+
response: zod_1.z.object({
|
14
|
+
nodes: zod_1.z.array(zod_1.z.object({
|
15
|
+
nodeUuid: zod_1.z.string(),
|
16
|
+
nodeName: zod_1.z.string(),
|
17
|
+
countryEmoji: zod_1.z.string(),
|
18
|
+
providerName: zod_1.z.string(),
|
19
|
+
usersOnline: zod_1.z.number(),
|
20
|
+
inboundsStats: zod_1.z.array(zod_1.z.object({
|
21
|
+
tag: zod_1.z.string(),
|
22
|
+
upload: zod_1.z.string(),
|
23
|
+
download: zod_1.z.string(),
|
24
|
+
})),
|
25
|
+
outboundsStats: zod_1.z.array(zod_1.z.object({
|
26
|
+
tag: zod_1.z.string(),
|
27
|
+
upload: zod_1.z.string(),
|
28
|
+
download: zod_1.z.string(),
|
29
|
+
})),
|
30
|
+
})),
|
31
|
+
}),
|
32
|
+
});
|
33
|
+
})(GetNodesMetricsCommand || (exports.GetNodesMetricsCommand = GetNodesMetricsCommand = {}));
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../commands/system/index.ts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAC;AAC9C,cAAc,wBAAwB,CAAC;AACvC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,qBAAqB,CAAC"}
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../commands/system/index.ts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAC;AAC9C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,wBAAwB,CAAC;AACvC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,qBAAqB,CAAC"}
|
@@ -15,6 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
15
15
|
};
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
17
17
|
__exportStar(require("./get-bandwidth-stats.command"), exports);
|
18
|
+
__exportStar(require("./get-nodes-metrics.command"), exports);
|
18
19
|
__exportStar(require("./get-nodes-statistics"), exports);
|
19
20
|
__exportStar(require("./get-remnawave-health.command"), exports);
|
20
21
|
__exportStar(require("./get-stats.command"), exports);
|
@@ -27,8 +27,8 @@ export declare namespace CreateUserCommand {
|
|
27
27
|
lastTrafficResetAt: z.ZodOptional<z.ZodEffects<z.ZodString, Date, string>>;
|
28
28
|
description: z.ZodOptional<z.ZodString>;
|
29
29
|
tag: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
30
|
-
telegramId: z.ZodOptional<z.ZodNumber
|
31
|
-
email: z.ZodOptional<z.ZodString
|
30
|
+
telegramId: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
31
|
+
email: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
32
32
|
hwidDeviceLimit: z.ZodOptional<z.ZodNumber>;
|
33
33
|
activeInternalSquads: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
34
34
|
}, "strip", z.ZodTypeAny, {
|
@@ -45,8 +45,8 @@ export declare namespace CreateUserCommand {
|
|
45
45
|
trojanPassword?: string | undefined;
|
46
46
|
vlessUuid?: string | undefined;
|
47
47
|
ssPassword?: string | undefined;
|
48
|
-
telegramId?: number | undefined;
|
49
|
-
email?: string | undefined;
|
48
|
+
telegramId?: number | null | undefined;
|
49
|
+
email?: string | null | undefined;
|
50
50
|
hwidDeviceLimit?: number | undefined;
|
51
51
|
activeInternalSquads?: string[] | undefined;
|
52
52
|
}, {
|
@@ -63,8 +63,8 @@ export declare namespace CreateUserCommand {
|
|
63
63
|
trojanPassword?: string | undefined;
|
64
64
|
vlessUuid?: string | undefined;
|
65
65
|
ssPassword?: string | undefined;
|
66
|
-
telegramId?: number | undefined;
|
67
|
-
email?: string | undefined;
|
66
|
+
telegramId?: number | null | undefined;
|
67
|
+
email?: string | null | undefined;
|
68
68
|
hwidDeviceLimit?: number | undefined;
|
69
69
|
activeInternalSquads?: string[] | undefined;
|
70
70
|
}>;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"create-user.command.d.ts","sourceRoot":"","sources":["../../../../commands/users/create-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":"create-user.command.d.ts","sourceRoot":"","sources":["../../../../commands/users/create-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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAwIxB,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"}
|
@@ -110,12 +110,10 @@ var CreateUserCommand;
|
|
110
110
|
.nullable())
|
111
111
|
.describe('Optional. User tag for categorization. Max 16 characters, uppercase letters, numbers and underscores only.'),
|
112
112
|
telegramId: zod_1.z
|
113
|
-
.optional(zod_1.z.number().int())
|
113
|
+
.optional(zod_1.z.number().int().nullable())
|
114
114
|
.describe('Optional. Telegram user ID for notifications. Must be an integer.'),
|
115
115
|
email: zod_1.z
|
116
|
-
.string()
|
117
|
-
.email('Invalid email format')
|
118
|
-
.optional()
|
116
|
+
.optional(zod_1.z.string().email('Invalid email format').nullable())
|
119
117
|
.describe('Optional. User email address. Must be a valid email format.'),
|
120
118
|
hwidDeviceLimit: zod_1.z.optional(zod_1.z
|
121
119
|
.number({ invalid_type_error: 'Device limit must be a number' })
|
@@ -33,30 +33,30 @@ export declare namespace GetUserUsageByRangeCommand {
|
|
33
33
|
date: Date;
|
34
34
|
nodeName: string;
|
35
35
|
userUuid: string;
|
36
|
-
total: number;
|
37
36
|
nodeUuid: string;
|
37
|
+
total: number;
|
38
38
|
}, {
|
39
39
|
date: string;
|
40
40
|
nodeName: string;
|
41
41
|
userUuid: string;
|
42
|
-
total: number;
|
43
42
|
nodeUuid: string;
|
43
|
+
total: number;
|
44
44
|
}>, "many">;
|
45
45
|
}, "strip", z.ZodTypeAny, {
|
46
46
|
response: {
|
47
47
|
date: Date;
|
48
48
|
nodeName: string;
|
49
49
|
userUuid: string;
|
50
|
-
total: number;
|
51
50
|
nodeUuid: string;
|
51
|
+
total: number;
|
52
52
|
}[];
|
53
53
|
}, {
|
54
54
|
response: {
|
55
55
|
date: string;
|
56
56
|
nodeName: string;
|
57
57
|
userUuid: string;
|
58
|
-
total: number;
|
59
58
|
nodeUuid: string;
|
59
|
+
total: number;
|
60
60
|
}[];
|
61
61
|
}>;
|
62
62
|
type Response = z.infer<typeof ResponseSchema>;
|
@@ -654,5 +654,120 @@ export declare const ERRORS: {
|
|
654
654
|
readonly message: "Get user accessible nodes error";
|
655
655
|
readonly httpCode: 500;
|
656
656
|
};
|
657
|
+
readonly GET_INFRA_PROVIDERS_ERROR: {
|
658
|
+
readonly code: "A126";
|
659
|
+
readonly message: "Get infra providers error";
|
660
|
+
readonly httpCode: 500;
|
661
|
+
};
|
662
|
+
readonly GET_INFRA_PROVIDER_BY_UUID_ERROR: {
|
663
|
+
readonly code: "A127";
|
664
|
+
readonly message: "Get infra provider by UUID error";
|
665
|
+
readonly httpCode: 500;
|
666
|
+
};
|
667
|
+
readonly INFRA_PROVIDER_NOT_FOUND: {
|
668
|
+
readonly code: "A128";
|
669
|
+
readonly message: "Infra provider not found";
|
670
|
+
readonly httpCode: 404;
|
671
|
+
};
|
672
|
+
readonly DELETE_INFRA_PROVIDER_BY_UUID_ERROR: {
|
673
|
+
readonly code: "A129";
|
674
|
+
readonly message: "Delete infra provider by UUID error";
|
675
|
+
readonly httpCode: 500;
|
676
|
+
};
|
677
|
+
readonly CREATE_INFRA_PROVIDER_ERROR: {
|
678
|
+
readonly code: "A130";
|
679
|
+
readonly message: "Create infra provider error";
|
680
|
+
readonly httpCode: 500;
|
681
|
+
};
|
682
|
+
readonly UPDATE_INFRA_PROVIDER_ERROR: {
|
683
|
+
readonly code: "A131";
|
684
|
+
readonly message: "Update infra provider error";
|
685
|
+
readonly httpCode: 500;
|
686
|
+
};
|
687
|
+
readonly CREATE_INFRA_BILLING_HISTORY_RECORD_ERROR: {
|
688
|
+
readonly code: "A132";
|
689
|
+
readonly message: "Create infra billing history record error";
|
690
|
+
readonly httpCode: 500;
|
691
|
+
};
|
692
|
+
readonly GET_INFRA_BILLING_HISTORY_RECORDS_ERROR: {
|
693
|
+
readonly code: "A133";
|
694
|
+
readonly message: "Get infra billing history records error";
|
695
|
+
readonly httpCode: 500;
|
696
|
+
};
|
697
|
+
readonly DELETE_INFRA_BILLING_HISTORY_RECORD_BY_UUID_ERROR: {
|
698
|
+
readonly code: "A134";
|
699
|
+
readonly message: "Delete infra billing history record by UUID error";
|
700
|
+
readonly httpCode: 500;
|
701
|
+
};
|
702
|
+
readonly GET_BILLING_NODES_ERROR: {
|
703
|
+
readonly code: "A135";
|
704
|
+
readonly message: "Get billing nodes error";
|
705
|
+
readonly httpCode: 500;
|
706
|
+
};
|
707
|
+
readonly UPDATE_INFRA_BILLING_NODE_ERROR: {
|
708
|
+
readonly code: "A136";
|
709
|
+
readonly message: "Update infra billing node error";
|
710
|
+
readonly httpCode: 500;
|
711
|
+
};
|
712
|
+
readonly CREATE_INFRA_BILLING_NODE_ERROR: {
|
713
|
+
readonly code: "A137";
|
714
|
+
readonly message: "Create infra billing node error";
|
715
|
+
readonly httpCode: 500;
|
716
|
+
};
|
717
|
+
readonly DELETE_INFRA_BILLING_NODE_BY_UUID_ERROR: {
|
718
|
+
readonly code: "A138";
|
719
|
+
readonly message: "Delete infra billing node by UUID error";
|
720
|
+
readonly httpCode: 500;
|
721
|
+
};
|
722
|
+
readonly GET_BILLING_NODES_FOR_NOTIFICATIONS_ERROR: {
|
723
|
+
readonly code: "A139";
|
724
|
+
readonly message: "Get billing nodes for notifications error";
|
725
|
+
readonly httpCode: 500;
|
726
|
+
};
|
727
|
+
readonly ADD_USERS_TO_INTERNAL_SQUAD_ERROR: {
|
728
|
+
readonly code: "A140";
|
729
|
+
readonly message: "Add users to internal squad error";
|
730
|
+
readonly httpCode: 500;
|
731
|
+
};
|
732
|
+
readonly INTERNAL_SQUAD_BULK_ACTIONS_ERROR: {
|
733
|
+
readonly code: "A141";
|
734
|
+
readonly message: "Internal squad bulk actions error";
|
735
|
+
readonly httpCode: 500;
|
736
|
+
};
|
737
|
+
readonly REMOVE_USERS_FROM_INTERNAL_SQUAD_ERROR: {
|
738
|
+
readonly code: "A142";
|
739
|
+
readonly message: "Remove users from internal squad error";
|
740
|
+
readonly httpCode: 500;
|
741
|
+
};
|
742
|
+
readonly DELETE_CONFIG_PROFILE_BY_UUID_ERROR: {
|
743
|
+
readonly code: "A143";
|
744
|
+
readonly message: "Delete config profile by UUID error";
|
745
|
+
readonly httpCode: 500;
|
746
|
+
};
|
747
|
+
readonly RESERVED_INTERNAL_SQUAD_NAME: {
|
748
|
+
readonly code: "A144";
|
749
|
+
readonly message: "This name is reserved by Remnawave. Please use a different name.";
|
750
|
+
readonly httpCode: 400;
|
751
|
+
};
|
752
|
+
readonly RESERVED_CONFIG_PROFILE_NAME: {
|
753
|
+
readonly code: "A145";
|
754
|
+
readonly message: "This name is reserved by Remnawave. Please use a different name.";
|
755
|
+
readonly httpCode: 400;
|
756
|
+
};
|
757
|
+
readonly UPDATE_CONFIG_PROFILE_ERROR: {
|
758
|
+
readonly code: "A146";
|
759
|
+
readonly message: "Update config profile error";
|
760
|
+
readonly httpCode: 500;
|
761
|
+
};
|
762
|
+
readonly OAUTH2_PROVIDER_NOT_FOUND: {
|
763
|
+
readonly code: "A147";
|
764
|
+
readonly message: "OAuth2 provider not found";
|
765
|
+
readonly httpCode: 404;
|
766
|
+
};
|
767
|
+
readonly OAUTH2_AUTHORIZE_ERROR: {
|
768
|
+
readonly code: "A148";
|
769
|
+
readonly message: "OAuth2 authorize error";
|
770
|
+
readonly httpCode: 500;
|
771
|
+
};
|
657
772
|
};
|
658
773
|
//# 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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAub3B,CAAC"}
|
@@ -625,4 +625,119 @@ exports.ERRORS = {
|
|
625
625
|
message: 'Get user accessible nodes error',
|
626
626
|
httpCode: 500,
|
627
627
|
},
|
628
|
+
GET_INFRA_PROVIDERS_ERROR: {
|
629
|
+
code: 'A126',
|
630
|
+
message: 'Get infra providers error',
|
631
|
+
httpCode: 500,
|
632
|
+
},
|
633
|
+
GET_INFRA_PROVIDER_BY_UUID_ERROR: {
|
634
|
+
code: 'A127',
|
635
|
+
message: 'Get infra provider by UUID error',
|
636
|
+
httpCode: 500,
|
637
|
+
},
|
638
|
+
INFRA_PROVIDER_NOT_FOUND: {
|
639
|
+
code: 'A128',
|
640
|
+
message: 'Infra provider not found',
|
641
|
+
httpCode: 404,
|
642
|
+
},
|
643
|
+
DELETE_INFRA_PROVIDER_BY_UUID_ERROR: {
|
644
|
+
code: 'A129',
|
645
|
+
message: 'Delete infra provider by UUID error',
|
646
|
+
httpCode: 500,
|
647
|
+
},
|
648
|
+
CREATE_INFRA_PROVIDER_ERROR: {
|
649
|
+
code: 'A130',
|
650
|
+
message: 'Create infra provider error',
|
651
|
+
httpCode: 500,
|
652
|
+
},
|
653
|
+
UPDATE_INFRA_PROVIDER_ERROR: {
|
654
|
+
code: 'A131',
|
655
|
+
message: 'Update infra provider error',
|
656
|
+
httpCode: 500,
|
657
|
+
},
|
658
|
+
CREATE_INFRA_BILLING_HISTORY_RECORD_ERROR: {
|
659
|
+
code: 'A132',
|
660
|
+
message: 'Create infra billing history record error',
|
661
|
+
httpCode: 500,
|
662
|
+
},
|
663
|
+
GET_INFRA_BILLING_HISTORY_RECORDS_ERROR: {
|
664
|
+
code: 'A133',
|
665
|
+
message: 'Get infra billing history records error',
|
666
|
+
httpCode: 500,
|
667
|
+
},
|
668
|
+
DELETE_INFRA_BILLING_HISTORY_RECORD_BY_UUID_ERROR: {
|
669
|
+
code: 'A134',
|
670
|
+
message: 'Delete infra billing history record by UUID error',
|
671
|
+
httpCode: 500,
|
672
|
+
},
|
673
|
+
GET_BILLING_NODES_ERROR: {
|
674
|
+
code: 'A135',
|
675
|
+
message: 'Get billing nodes error',
|
676
|
+
httpCode: 500,
|
677
|
+
},
|
678
|
+
UPDATE_INFRA_BILLING_NODE_ERROR: {
|
679
|
+
code: 'A136',
|
680
|
+
message: 'Update infra billing node error',
|
681
|
+
httpCode: 500,
|
682
|
+
},
|
683
|
+
CREATE_INFRA_BILLING_NODE_ERROR: {
|
684
|
+
code: 'A137',
|
685
|
+
message: 'Create infra billing node error',
|
686
|
+
httpCode: 500,
|
687
|
+
},
|
688
|
+
DELETE_INFRA_BILLING_NODE_BY_UUID_ERROR: {
|
689
|
+
code: 'A138',
|
690
|
+
message: 'Delete infra billing node by UUID error',
|
691
|
+
httpCode: 500,
|
692
|
+
},
|
693
|
+
GET_BILLING_NODES_FOR_NOTIFICATIONS_ERROR: {
|
694
|
+
code: 'A139',
|
695
|
+
message: 'Get billing nodes for notifications error',
|
696
|
+
httpCode: 500,
|
697
|
+
},
|
698
|
+
ADD_USERS_TO_INTERNAL_SQUAD_ERROR: {
|
699
|
+
code: 'A140',
|
700
|
+
message: 'Add users to internal squad error',
|
701
|
+
httpCode: 500,
|
702
|
+
},
|
703
|
+
INTERNAL_SQUAD_BULK_ACTIONS_ERROR: {
|
704
|
+
code: 'A141',
|
705
|
+
message: 'Internal squad bulk actions error',
|
706
|
+
httpCode: 500,
|
707
|
+
},
|
708
|
+
REMOVE_USERS_FROM_INTERNAL_SQUAD_ERROR: {
|
709
|
+
code: 'A142',
|
710
|
+
message: 'Remove users from internal squad error',
|
711
|
+
httpCode: 500,
|
712
|
+
},
|
713
|
+
DELETE_CONFIG_PROFILE_BY_UUID_ERROR: {
|
714
|
+
code: 'A143',
|
715
|
+
message: 'Delete config profile by UUID error',
|
716
|
+
httpCode: 500,
|
717
|
+
},
|
718
|
+
RESERVED_INTERNAL_SQUAD_NAME: {
|
719
|
+
code: 'A144',
|
720
|
+
message: 'This name is reserved by Remnawave. Please use a different name.',
|
721
|
+
httpCode: 400,
|
722
|
+
},
|
723
|
+
RESERVED_CONFIG_PROFILE_NAME: {
|
724
|
+
code: 'A145',
|
725
|
+
message: 'This name is reserved by Remnawave. Please use a different name.',
|
726
|
+
httpCode: 400,
|
727
|
+
},
|
728
|
+
UPDATE_CONFIG_PROFILE_ERROR: {
|
729
|
+
code: 'A146',
|
730
|
+
message: 'Update config profile error',
|
731
|
+
httpCode: 500,
|
732
|
+
},
|
733
|
+
OAUTH2_PROVIDER_NOT_FOUND: {
|
734
|
+
code: 'A147',
|
735
|
+
message: 'OAuth2 provider not found',
|
736
|
+
httpCode: 404,
|
737
|
+
},
|
738
|
+
OAUTH2_AUTHORIZE_ERROR: {
|
739
|
+
code: 'A148',
|
740
|
+
message: 'OAuth2 authorize error',
|
741
|
+
httpCode: 500,
|
742
|
+
},
|
628
743
|
};
|
@@ -36,13 +36,24 @@ export declare const EVENTS: {
|
|
36
36
|
readonly ERRORS: {
|
37
37
|
readonly BANDWIDTH_USAGE_THRESHOLD_REACHED_MAX_NOTIFICATIONS: "errors.bandwidth_usage_threshold_reached_max_notifications";
|
38
38
|
};
|
39
|
+
readonly CRM: {
|
40
|
+
readonly INFRA_BILLING_NODE_PAYMENT_IN_7_DAYS: "crm.infra_billing_node_payment_in_7_days";
|
41
|
+
readonly INFRA_BILLING_NODE_PAYMENT_IN_48HRS: "crm.infra_billing_node_payment_in_48hrs";
|
42
|
+
readonly INFRA_BILLING_NODE_PAYMENT_IN_24HRS: "crm.infra_billing_node_payment_in_24hrs";
|
43
|
+
readonly INFRA_BILLING_NODE_PAYMENT_DUE_TODAY: "crm.infra_billing_node_payment_due_today";
|
44
|
+
readonly INFRA_BILLING_NODE_PAYMENT_OVERDUE_24HRS: "crm.infra_billing_node_payment_overdue_24hrs";
|
45
|
+
readonly INFRA_BILLING_NODE_PAYMENT_OVERDUE_48HRS: "crm.infra_billing_node_payment_overdue_48hrs";
|
46
|
+
readonly INFRA_BILLING_NODE_PAYMENT_OVERDUE_7_DAYS: "crm.infra_billing_node_payment_overdue_7_days";
|
47
|
+
};
|
39
48
|
readonly CATCH_ALL_USER_EVENTS: "user.*";
|
40
49
|
readonly CATCH_ALL_NODE_EVENTS: "node.*";
|
41
50
|
readonly CATCH_ALL_SERVICE_EVENTS: "service.*";
|
42
51
|
readonly CATCH_ALL_ERRORS_EVENTS: "errors.*";
|
52
|
+
readonly CATCH_ALL_CRM_EVENTS: "crm.*";
|
43
53
|
};
|
44
54
|
export type TNodeEvents = (typeof EVENTS.NODE)[keyof typeof EVENTS.NODE];
|
45
55
|
export type TUserEvents = (typeof EVENTS.USER)[keyof typeof EVENTS.USER];
|
46
56
|
export type TServiceEvents = (typeof EVENTS.SERVICE)[keyof typeof EVENTS.SERVICE];
|
47
57
|
export type TErrorsEvents = (typeof EVENTS.ERRORS)[keyof typeof EVENTS.ERRORS];
|
58
|
+
export type TCRMEvents = (typeof EVENTS.CRM)[keyof typeof EVENTS.CRM];
|
48
59
|
//# sourceMappingURL=events.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../../constants/events/events.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM
|
1
|
+
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../../constants/events/events.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsDT,CAAC;AAEX,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,MAAM,CAAC,IAAI,CAAC,CAAC,MAAM,OAAO,MAAM,CAAC,IAAI,CAAC,CAAC;AACzE,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,MAAM,CAAC,IAAI,CAAC,CAAC,MAAM,OAAO,MAAM,CAAC,IAAI,CAAC,CAAC;AACzE,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,MAAM,CAAC,OAAO,CAAC,CAAC,MAAM,OAAO,MAAM,CAAC,OAAO,CAAC,CAAC;AAClF,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC,MAAM,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC;AAC/E,MAAM,MAAM,UAAU,GAAG,CAAC,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC,MAAM,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC"}
|
@@ -39,8 +39,18 @@ exports.EVENTS = {
|
|
39
39
|
ERRORS: {
|
40
40
|
BANDWIDTH_USAGE_THRESHOLD_REACHED_MAX_NOTIFICATIONS: 'errors.bandwidth_usage_threshold_reached_max_notifications',
|
41
41
|
},
|
42
|
+
CRM: {
|
43
|
+
INFRA_BILLING_NODE_PAYMENT_IN_7_DAYS: 'crm.infra_billing_node_payment_in_7_days',
|
44
|
+
INFRA_BILLING_NODE_PAYMENT_IN_48HRS: 'crm.infra_billing_node_payment_in_48hrs',
|
45
|
+
INFRA_BILLING_NODE_PAYMENT_IN_24HRS: 'crm.infra_billing_node_payment_in_24hrs',
|
46
|
+
INFRA_BILLING_NODE_PAYMENT_DUE_TODAY: 'crm.infra_billing_node_payment_due_today',
|
47
|
+
INFRA_BILLING_NODE_PAYMENT_OVERDUE_24HRS: 'crm.infra_billing_node_payment_overdue_24hrs',
|
48
|
+
INFRA_BILLING_NODE_PAYMENT_OVERDUE_48HRS: 'crm.infra_billing_node_payment_overdue_48hrs',
|
49
|
+
INFRA_BILLING_NODE_PAYMENT_OVERDUE_7_DAYS: 'crm.infra_billing_node_payment_overdue_7_days',
|
50
|
+
},
|
42
51
|
CATCH_ALL_USER_EVENTS: 'user.*',
|
43
52
|
CATCH_ALL_NODE_EVENTS: 'node.*',
|
44
53
|
CATCH_ALL_SERVICE_EVENTS: 'service.*',
|
45
54
|
CATCH_ALL_ERRORS_EVENTS: 'errors.*',
|
55
|
+
CATCH_ALL_CRM_EVENTS: 'crm.*',
|
46
56
|
};
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"headers.constants.d.ts","sourceRoot":"","sources":["../../../../constants/headers/headers.constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,4BAA4B,4BAA4B,CAAC;AAEtE,eAAO,MAAM,6BAA6B,YAAY,CAAC"}
|
@@ -0,0 +1,5 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.REMNAWAVE_CLIENT_TYPE_BROWSER = exports.REMNAWAVE_CLIENT_TYPE_HEADER = void 0;
|
4
|
+
exports.REMNAWAVE_CLIENT_TYPE_HEADER = 'X-Remnawave-Client-Type';
|
5
|
+
exports.REMNAWAVE_CLIENT_TYPE_BROWSER = 'browser';
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../constants/headers/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC"}
|
@@ -0,0 +1,17 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
+
if (k2 === undefined) k2 = k;
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
+
}
|
8
|
+
Object.defineProperty(o, k2, desc);
|
9
|
+
}) : (function(o, m, k, k2) {
|
10
|
+
if (k2 === undefined) k2 = k;
|
11
|
+
o[k2] = m[k];
|
12
|
+
}));
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
|
+
};
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
+
__exportStar(require("./headers.constants"), exports);
|
@@ -1,9 +1,12 @@
|
|
1
1
|
export * from './endpoint-details';
|
2
2
|
export * from './errors';
|
3
3
|
export * from './events';
|
4
|
+
export * from './headers';
|
4
5
|
export * from './hosts';
|
6
|
+
export * from './messaging';
|
5
7
|
export * from './metrics';
|
6
8
|
export * from './nodes';
|
9
|
+
export * from './oauth2';
|
7
10
|
export * from './roles';
|
8
11
|
export * from './subscription-template';
|
9
12
|
export * from './templates';
|