@remnawave/backend-contract 2.0.0-alpha.3 → 2.0.0-alpha.30
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/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/users.d.ts +1 -0
- package/build/backend/api/controllers/users.d.ts.map +1 -1
- package/build/backend/api/controllers/users.js +1 -0
- package/build/backend/api/routes.d.ts +19 -0
- package/build/backend/api/routes.d.ts.map +1 -1
- package/build/backend/api/routes.js +19 -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 +162 -64
- package/build/backend/commands/nodes/actions/disable.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/actions/enable.command.d.ts +162 -64
- package/build/backend/commands/nodes/actions/enable.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/actions/reorder.command.d.ts +236 -88
- package/build/backend/commands/nodes/actions/reorder.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/create.command.d.ts +183 -70
- 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 +162 -64
- package/build/backend/commands/nodes/get-all.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/get-one.command.d.ts +162 -64
- 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 +257 -94
- 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/users/get-user-accessible-nodes.command.d.ts +114 -0
- package/build/backend/commands/users/get-user-accessible-nodes.command.d.ts.map +1 -0
- package/build/backend/commands/users/get-user-accessible-nodes.command.js +31 -0
- package/build/backend/commands/users/get-user-usage-by-range.command.d.ts +4 -4
- package/build/backend/commands/users/index.d.ts +1 -0
- package/build/backend/commands/users/index.d.ts.map +1 -1
- package/build/backend/commands/users/index.js +1 -0
- package/build/backend/constants/errors/errors.d.ts +95 -0
- package/build/backend/constants/errors/errors.d.ts.map +1 -1
- package/build/backend/constants/errors/errors.js +95 -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.contants.d.ts +3 -0
- package/build/backend/constants/headers/headers.contants.d.ts.map +1 -0
- package/build/backend/constants/headers/headers.contants.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 +1 -0
- package/build/backend/constants/index.d.ts.map +1 -1
- package/build/backend/constants/index.js +1 -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/{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 +118 -44
- 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/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/users.js +1 -0
- package/build/frontend/api/routes.js +19 -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/users/get-user-accessible-nodes.command.js +31 -0
- package/build/frontend/commands/users/index.js +1 -0
- package/build/frontend/constants/errors/errors.js +95 -0
- package/build/frontend/constants/events/events.js +10 -0
- package/build/frontend/constants/headers/headers.contants.js +5 -0
- package/build/frontend/constants/headers/index.js +17 -0
- package/build/frontend/constants/index.js +1 -0
- package/build/frontend/constants/templates/template-keys.js +1 -0
- 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 +1 -1
- 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
@@ -4,8 +4,16 @@ export declare namespace CreateHostCommand {
|
|
4
4
|
const TSQ_url: "/api/hosts/";
|
5
5
|
const endpointDetails: import("../../constants").EndpointDetails;
|
6
6
|
const RequestSchema: z.ZodObject<{
|
7
|
-
|
8
|
-
|
7
|
+
inbound: z.ZodObject<{
|
8
|
+
configProfileUuid: z.ZodString;
|
9
|
+
configProfileInboundUuid: z.ZodString;
|
10
|
+
}, "strip", z.ZodTypeAny, {
|
11
|
+
configProfileUuid: string;
|
12
|
+
configProfileInboundUuid: string;
|
13
|
+
}, {
|
14
|
+
configProfileUuid: string;
|
15
|
+
configProfileInboundUuid: string;
|
16
|
+
}>;
|
9
17
|
remark: z.ZodString;
|
10
18
|
address: z.ZodString;
|
11
19
|
port: z.ZodNumber;
|
@@ -31,7 +39,6 @@ export declare namespace CreateHostCommand {
|
|
31
39
|
readonly RANDOM: "random";
|
32
40
|
readonly RANDOMIZED: "randomized";
|
33
41
|
}>>>;
|
34
|
-
allowInsecure: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
35
42
|
isDisabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
36
43
|
securityLayer: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<{
|
37
44
|
readonly DEFAULT: "DEFAULT";
|
@@ -39,10 +46,15 @@ export declare namespace CreateHostCommand {
|
|
39
46
|
readonly NONE: "NONE";
|
40
47
|
}>>>;
|
41
48
|
xHttpExtraParams: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
|
49
|
+
serverDescription: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
42
50
|
}, "strip", z.ZodTypeAny, {
|
43
51
|
port: number;
|
44
52
|
remark: string;
|
45
53
|
address: string;
|
54
|
+
inbound: {
|
55
|
+
configProfileUuid: string;
|
56
|
+
configProfileInboundUuid: string;
|
57
|
+
};
|
46
58
|
path?: string | undefined;
|
47
59
|
sni?: string | undefined;
|
48
60
|
host?: string | undefined;
|
@@ -51,13 +63,15 @@ export declare namespace CreateHostCommand {
|
|
51
63
|
isDisabled?: boolean | undefined;
|
52
64
|
securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
|
53
65
|
xHttpExtraParams?: unknown;
|
54
|
-
|
55
|
-
configProfileInboundUuid?: string | undefined;
|
56
|
-
allowInsecure?: boolean | undefined;
|
66
|
+
serverDescription?: string | null | undefined;
|
57
67
|
}, {
|
58
68
|
port: number;
|
59
69
|
remark: string;
|
60
70
|
address: string;
|
71
|
+
inbound: {
|
72
|
+
configProfileUuid: string;
|
73
|
+
configProfileInboundUuid: string;
|
74
|
+
};
|
61
75
|
path?: string | undefined;
|
62
76
|
sni?: string | undefined;
|
63
77
|
host?: string | undefined;
|
@@ -66,9 +80,7 @@ export declare namespace CreateHostCommand {
|
|
66
80
|
isDisabled?: boolean | undefined;
|
67
81
|
securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
|
68
82
|
xHttpExtraParams?: unknown;
|
69
|
-
|
70
|
-
configProfileInboundUuid?: string | undefined;
|
71
|
-
allowInsecure?: boolean | undefined;
|
83
|
+
serverDescription?: string | null | undefined;
|
72
84
|
}>;
|
73
85
|
type Request = z.infer<typeof RequestSchema>;
|
74
86
|
const ResponseSchema: z.ZodObject<{
|
@@ -90,8 +102,17 @@ export declare namespace CreateHostCommand {
|
|
90
102
|
readonly NONE: "NONE";
|
91
103
|
}>>;
|
92
104
|
xHttpExtraParams: z.ZodNullable<z.ZodUnknown>;
|
93
|
-
|
94
|
-
|
105
|
+
inbound: z.ZodObject<{
|
106
|
+
configProfileUuid: z.ZodNullable<z.ZodString>;
|
107
|
+
configProfileInboundUuid: z.ZodNullable<z.ZodString>;
|
108
|
+
}, "strip", z.ZodTypeAny, {
|
109
|
+
configProfileUuid: string | null;
|
110
|
+
configProfileInboundUuid: string | null;
|
111
|
+
}, {
|
112
|
+
configProfileUuid: string | null;
|
113
|
+
configProfileInboundUuid: string | null;
|
114
|
+
}>;
|
115
|
+
serverDescription: z.ZodNullable<z.ZodString>;
|
95
116
|
}, "strip", z.ZodTypeAny, {
|
96
117
|
path: string | null;
|
97
118
|
uuid: string;
|
@@ -105,8 +126,11 @@ export declare namespace CreateHostCommand {
|
|
105
126
|
fingerprint: string | null;
|
106
127
|
isDisabled: boolean;
|
107
128
|
securityLayer: "DEFAULT" | "TLS" | "NONE";
|
108
|
-
|
109
|
-
|
129
|
+
inbound: {
|
130
|
+
configProfileUuid: string | null;
|
131
|
+
configProfileInboundUuid: string | null;
|
132
|
+
};
|
133
|
+
serverDescription: string | null;
|
110
134
|
xHttpExtraParams?: unknown;
|
111
135
|
}, {
|
112
136
|
path: string | null;
|
@@ -119,8 +143,11 @@ export declare namespace CreateHostCommand {
|
|
119
143
|
host: string | null;
|
120
144
|
alpn: string | null;
|
121
145
|
fingerprint: string | null;
|
122
|
-
|
123
|
-
|
146
|
+
inbound: {
|
147
|
+
configProfileUuid: string | null;
|
148
|
+
configProfileInboundUuid: string | null;
|
149
|
+
};
|
150
|
+
serverDescription: string | null;
|
124
151
|
isDisabled?: boolean | undefined;
|
125
152
|
securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
|
126
153
|
xHttpExtraParams?: unknown;
|
@@ -139,8 +166,11 @@ export declare namespace CreateHostCommand {
|
|
139
166
|
fingerprint: string | null;
|
140
167
|
isDisabled: boolean;
|
141
168
|
securityLayer: "DEFAULT" | "TLS" | "NONE";
|
142
|
-
|
143
|
-
|
169
|
+
inbound: {
|
170
|
+
configProfileUuid: string | null;
|
171
|
+
configProfileInboundUuid: string | null;
|
172
|
+
};
|
173
|
+
serverDescription: string | null;
|
144
174
|
xHttpExtraParams?: unknown;
|
145
175
|
};
|
146
176
|
}, {
|
@@ -155,8 +185,11 @@ export declare namespace CreateHostCommand {
|
|
155
185
|
host: string | null;
|
156
186
|
alpn: string | null;
|
157
187
|
fingerprint: string | null;
|
158
|
-
|
159
|
-
|
188
|
+
inbound: {
|
189
|
+
configProfileUuid: string | null;
|
190
|
+
configProfileInboundUuid: string | null;
|
191
|
+
};
|
192
|
+
serverDescription: string | null;
|
160
193
|
isDisabled?: boolean | undefined;
|
161
194
|
securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
|
162
195
|
xHttpExtraParams?: unknown;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"create.command.d.ts","sourceRoot":"","sources":["../../../../commands/hosts/create.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.command.d.ts","sourceRoot":"","sources":["../../../../commands/hosts/create.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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAwCxB,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"}
|
@@ -11,21 +11,16 @@ var CreateHostCommand;
|
|
11
11
|
CreateHostCommand.TSQ_url = CreateHostCommand.url;
|
12
12
|
CreateHostCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.HOSTS_ROUTES.CREATE, 'post', 'Create a new host');
|
13
13
|
CreateHostCommand.RequestSchema = zod_1.z.object({
|
14
|
-
|
15
|
-
.string(
|
16
|
-
|
17
|
-
})
|
18
|
-
.uuid('Config Profile UUID must be a valid UUID')
|
19
|
-
.optional(),
|
20
|
-
configProfileInboundUuid: zod_1.z
|
21
|
-
.string({
|
22
|
-
invalid_type_error: 'Inbound UUID must be a string',
|
23
|
-
})
|
24
|
-
.uuid('Inbound UUID must be a valid UUID')
|
25
|
-
.optional(),
|
14
|
+
inbound: zod_1.z.object({
|
15
|
+
configProfileUuid: zod_1.z.string().uuid(),
|
16
|
+
configProfileInboundUuid: zod_1.z.string().uuid(),
|
17
|
+
}),
|
26
18
|
remark: zod_1.z
|
27
19
|
.string({
|
28
20
|
invalid_type_error: 'Remark must be a string',
|
21
|
+
})
|
22
|
+
.min(1, {
|
23
|
+
message: 'Remark must be at least 1 character',
|
29
24
|
})
|
30
25
|
.max(40, {
|
31
26
|
message: 'Remark must be less than 40 characters',
|
@@ -43,10 +38,15 @@ var CreateHostCommand;
|
|
43
38
|
host: zod_1.z.string().optional(),
|
44
39
|
alpn: zod_1.z.optional(zod_1.z.nativeEnum(constants_1.ALPN).nullable()),
|
45
40
|
fingerprint: zod_1.z.optional(zod_1.z.nativeEnum(constants_1.FINGERPRINTS).nullable()),
|
46
|
-
allowInsecure: zod_1.z.optional(zod_1.z.boolean().default(false)),
|
47
41
|
isDisabled: zod_1.z.optional(zod_1.z.boolean().default(false)),
|
48
42
|
securityLayer: zod_1.z.optional(zod_1.z.nativeEnum(constants_1.SECURITY_LAYERS).default(constants_1.SECURITY_LAYERS.DEFAULT)),
|
49
43
|
xHttpExtraParams: zod_1.z.optional(zod_1.z.nullable(zod_1.z.unknown())),
|
44
|
+
serverDescription: zod_1.z.optional(zod_1.z
|
45
|
+
.string()
|
46
|
+
.max(30, {
|
47
|
+
message: 'Server description must be less than 30 characters',
|
48
|
+
})
|
49
|
+
.nullable()),
|
50
50
|
});
|
51
51
|
CreateHostCommand.ResponseSchema = zod_1.z.object({
|
52
52
|
response: models_1.HostsSchema,
|
@@ -22,8 +22,17 @@ export declare namespace GetAllHostsCommand {
|
|
22
22
|
readonly NONE: "NONE";
|
23
23
|
}>>;
|
24
24
|
xHttpExtraParams: z.ZodNullable<z.ZodUnknown>;
|
25
|
-
|
26
|
-
|
25
|
+
inbound: z.ZodObject<{
|
26
|
+
configProfileUuid: z.ZodNullable<z.ZodString>;
|
27
|
+
configProfileInboundUuid: z.ZodNullable<z.ZodString>;
|
28
|
+
}, "strip", z.ZodTypeAny, {
|
29
|
+
configProfileUuid: string | null;
|
30
|
+
configProfileInboundUuid: string | null;
|
31
|
+
}, {
|
32
|
+
configProfileUuid: string | null;
|
33
|
+
configProfileInboundUuid: string | null;
|
34
|
+
}>;
|
35
|
+
serverDescription: z.ZodNullable<z.ZodString>;
|
27
36
|
}, "strip", z.ZodTypeAny, {
|
28
37
|
path: string | null;
|
29
38
|
uuid: string;
|
@@ -37,8 +46,11 @@ export declare namespace GetAllHostsCommand {
|
|
37
46
|
fingerprint: string | null;
|
38
47
|
isDisabled: boolean;
|
39
48
|
securityLayer: "DEFAULT" | "TLS" | "NONE";
|
40
|
-
|
41
|
-
|
49
|
+
inbound: {
|
50
|
+
configProfileUuid: string | null;
|
51
|
+
configProfileInboundUuid: string | null;
|
52
|
+
};
|
53
|
+
serverDescription: string | null;
|
42
54
|
xHttpExtraParams?: unknown;
|
43
55
|
}, {
|
44
56
|
path: string | null;
|
@@ -51,8 +63,11 @@ export declare namespace GetAllHostsCommand {
|
|
51
63
|
host: string | null;
|
52
64
|
alpn: string | null;
|
53
65
|
fingerprint: string | null;
|
54
|
-
|
55
|
-
|
66
|
+
inbound: {
|
67
|
+
configProfileUuid: string | null;
|
68
|
+
configProfileInboundUuid: string | null;
|
69
|
+
};
|
70
|
+
serverDescription: string | null;
|
56
71
|
isDisabled?: boolean | undefined;
|
57
72
|
securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
|
58
73
|
xHttpExtraParams?: unknown;
|
@@ -71,8 +86,11 @@ export declare namespace GetAllHostsCommand {
|
|
71
86
|
fingerprint: string | null;
|
72
87
|
isDisabled: boolean;
|
73
88
|
securityLayer: "DEFAULT" | "TLS" | "NONE";
|
74
|
-
|
75
|
-
|
89
|
+
inbound: {
|
90
|
+
configProfileUuid: string | null;
|
91
|
+
configProfileInboundUuid: string | null;
|
92
|
+
};
|
93
|
+
serverDescription: string | null;
|
76
94
|
xHttpExtraParams?: unknown;
|
77
95
|
}[];
|
78
96
|
}, {
|
@@ -87,8 +105,11 @@ export declare namespace GetAllHostsCommand {
|
|
87
105
|
host: string | null;
|
88
106
|
alpn: string | null;
|
89
107
|
fingerprint: string | null;
|
90
|
-
|
91
|
-
|
108
|
+
inbound: {
|
109
|
+
configProfileUuid: string | null;
|
110
|
+
configProfileInboundUuid: string | null;
|
111
|
+
};
|
112
|
+
serverDescription: string | null;
|
92
113
|
isDisabled?: boolean | undefined;
|
93
114
|
securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
|
94
115
|
xHttpExtraParams?: unknown;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"get-all.command.d.ts","sourceRoot":"","sources":["../../../../commands/hosts/get-all.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,kBAAkB,CAAC;IACzB,MAAM,GAAG,eAAqB,CAAC;IAC/B,MAAM,OAAO,eAAM,CAAC;IAEpB,MAAM,eAAe,2CAA+D,CAAC;IAErF,MAAM,cAAc
|
1
|
+
{"version":3,"file":"get-all.command.d.ts","sourceRoot":"","sources":["../../../../commands/hosts/get-all.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,kBAAkB,CAAC;IACzB,MAAM,GAAG,eAAqB,CAAC;IAC/B,MAAM,OAAO,eAAM,CAAC;IAEpB,MAAM,eAAe,2CAA+D,CAAC;IAErF,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
@@ -30,8 +30,17 @@ export declare namespace GetOneHostCommand {
|
|
30
30
|
readonly NONE: "NONE";
|
31
31
|
}>>;
|
32
32
|
xHttpExtraParams: z.ZodNullable<z.ZodUnknown>;
|
33
|
-
|
34
|
-
|
33
|
+
inbound: z.ZodObject<{
|
34
|
+
configProfileUuid: z.ZodNullable<z.ZodString>;
|
35
|
+
configProfileInboundUuid: z.ZodNullable<z.ZodString>;
|
36
|
+
}, "strip", z.ZodTypeAny, {
|
37
|
+
configProfileUuid: string | null;
|
38
|
+
configProfileInboundUuid: string | null;
|
39
|
+
}, {
|
40
|
+
configProfileUuid: string | null;
|
41
|
+
configProfileInboundUuid: string | null;
|
42
|
+
}>;
|
43
|
+
serverDescription: z.ZodNullable<z.ZodString>;
|
35
44
|
}, "strip", z.ZodTypeAny, {
|
36
45
|
path: string | null;
|
37
46
|
uuid: string;
|
@@ -45,8 +54,11 @@ export declare namespace GetOneHostCommand {
|
|
45
54
|
fingerprint: string | null;
|
46
55
|
isDisabled: boolean;
|
47
56
|
securityLayer: "DEFAULT" | "TLS" | "NONE";
|
48
|
-
|
49
|
-
|
57
|
+
inbound: {
|
58
|
+
configProfileUuid: string | null;
|
59
|
+
configProfileInboundUuid: string | null;
|
60
|
+
};
|
61
|
+
serverDescription: string | null;
|
50
62
|
xHttpExtraParams?: unknown;
|
51
63
|
}, {
|
52
64
|
path: string | null;
|
@@ -59,8 +71,11 @@ export declare namespace GetOneHostCommand {
|
|
59
71
|
host: string | null;
|
60
72
|
alpn: string | null;
|
61
73
|
fingerprint: string | null;
|
62
|
-
|
63
|
-
|
74
|
+
inbound: {
|
75
|
+
configProfileUuid: string | null;
|
76
|
+
configProfileInboundUuid: string | null;
|
77
|
+
};
|
78
|
+
serverDescription: string | null;
|
64
79
|
isDisabled?: boolean | undefined;
|
65
80
|
securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
|
66
81
|
xHttpExtraParams?: unknown;
|
@@ -79,8 +94,11 @@ export declare namespace GetOneHostCommand {
|
|
79
94
|
fingerprint: string | null;
|
80
95
|
isDisabled: boolean;
|
81
96
|
securityLayer: "DEFAULT" | "TLS" | "NONE";
|
82
|
-
|
83
|
-
|
97
|
+
inbound: {
|
98
|
+
configProfileUuid: string | null;
|
99
|
+
configProfileInboundUuid: string | null;
|
100
|
+
};
|
101
|
+
serverDescription: string | null;
|
84
102
|
xHttpExtraParams?: unknown;
|
85
103
|
};
|
86
104
|
}, {
|
@@ -95,8 +113,11 @@ export declare namespace GetOneHostCommand {
|
|
95
113
|
host: string | null;
|
96
114
|
alpn: string | null;
|
97
115
|
fingerprint: string | null;
|
98
|
-
|
99
|
-
|
116
|
+
inbound: {
|
117
|
+
configProfileUuid: string | null;
|
118
|
+
configProfileInboundUuid: string | null;
|
119
|
+
};
|
120
|
+
serverDescription: string | null;
|
100
121
|
isDisabled?: boolean | undefined;
|
101
122
|
securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
|
102
123
|
xHttpExtraParams?: unknown;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"get-one.command.d.ts","sourceRoot":"","sources":["../../../../commands/hosts/get-one.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,0BAA6B,CAAC;IACvC,MAAM,OAAO,QAAe,CAAC;IAE7B,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc
|
1
|
+
{"version":3,"file":"get-one.command.d.ts","sourceRoot":"","sources":["../../../../commands/hosts/get-one.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,0BAA6B,CAAC;IACvC,MAAM,OAAO,QAAe,CAAC;IAE7B,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;MAExB,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"}
|
@@ -22,8 +22,17 @@ export declare namespace ReorderHostCommand {
|
|
22
22
|
readonly NONE: "NONE";
|
23
23
|
}>>;
|
24
24
|
xHttpExtraParams: z.ZodNullable<z.ZodUnknown>;
|
25
|
-
|
26
|
-
|
25
|
+
inbound: z.ZodObject<{
|
26
|
+
configProfileUuid: z.ZodNullable<z.ZodString>;
|
27
|
+
configProfileInboundUuid: z.ZodNullable<z.ZodString>;
|
28
|
+
}, "strip", z.ZodTypeAny, {
|
29
|
+
configProfileUuid: string | null;
|
30
|
+
configProfileInboundUuid: string | null;
|
31
|
+
}, {
|
32
|
+
configProfileUuid: string | null;
|
33
|
+
configProfileInboundUuid: string | null;
|
34
|
+
}>;
|
35
|
+
serverDescription: z.ZodNullable<z.ZodString>;
|
27
36
|
}, "uuid" | "viewPosition">, "strip", z.ZodTypeAny, {
|
28
37
|
uuid: string;
|
29
38
|
viewPosition: number;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"reorder.command.d.ts","sourceRoot":"","sources":["../../../../commands/hosts/reorder.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,kBAAkB,CAAC;IACzB,MAAM,GAAG,8BAAiC,CAAC;IAC3C,MAAM,OAAO,8BAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,aAAa
|
1
|
+
{"version":3,"file":"reorder.command.d.ts","sourceRoot":"","sources":["../../../../commands/hosts/reorder.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,kBAAkB,CAAC;IACzB,MAAM,GAAG,8BAAiC,CAAC;IAC3C,MAAM,OAAO,8BAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAOxB,CAAC;IACH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;MAIzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
@@ -21,11 +21,28 @@ export declare namespace UpdateHostCommand {
|
|
21
21
|
readonly NONE: "NONE";
|
22
22
|
}>>;
|
23
23
|
xHttpExtraParams: z.ZodNullable<z.ZodUnknown>;
|
24
|
-
|
25
|
-
|
24
|
+
inbound: z.ZodObject<{
|
25
|
+
configProfileUuid: z.ZodNullable<z.ZodString>;
|
26
|
+
configProfileInboundUuid: z.ZodNullable<z.ZodString>;
|
27
|
+
}, "strip", z.ZodTypeAny, {
|
28
|
+
configProfileUuid: string | null;
|
29
|
+
configProfileInboundUuid: string | null;
|
30
|
+
}, {
|
31
|
+
configProfileUuid: string | null;
|
32
|
+
configProfileInboundUuid: string | null;
|
33
|
+
}>;
|
34
|
+
serverDescription: z.ZodNullable<z.ZodString>;
|
26
35
|
}, "uuid"> & {
|
27
|
-
|
28
|
-
|
36
|
+
inbound: z.ZodOptional<z.ZodObject<{
|
37
|
+
configProfileUuid: z.ZodString;
|
38
|
+
configProfileInboundUuid: z.ZodString;
|
39
|
+
}, "strip", z.ZodTypeAny, {
|
40
|
+
configProfileUuid: string;
|
41
|
+
configProfileInboundUuid: string;
|
42
|
+
}, {
|
43
|
+
configProfileUuid: string;
|
44
|
+
configProfileInboundUuid: string;
|
45
|
+
}>>;
|
29
46
|
remark: z.ZodOptional<z.ZodString>;
|
30
47
|
address: z.ZodOptional<z.ZodString>;
|
31
48
|
port: z.ZodOptional<z.ZodNumber>;
|
@@ -51,7 +68,6 @@ export declare namespace UpdateHostCommand {
|
|
51
68
|
readonly RANDOM: "random";
|
52
69
|
readonly RANDOMIZED: "randomized";
|
53
70
|
}>>>;
|
54
|
-
allowInsecure: z.ZodOptional<z.ZodBoolean>;
|
55
71
|
isDisabled: z.ZodOptional<z.ZodBoolean>;
|
56
72
|
securityLayer: z.ZodOptional<z.ZodNativeEnum<{
|
57
73
|
readonly DEFAULT: "DEFAULT";
|
@@ -59,6 +75,7 @@ export declare namespace UpdateHostCommand {
|
|
59
75
|
readonly NONE: "NONE";
|
60
76
|
}>>;
|
61
77
|
xHttpExtraParams: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
|
78
|
+
serverDescription: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
62
79
|
}, "strip", z.ZodTypeAny, {
|
63
80
|
uuid: string;
|
64
81
|
path?: string | undefined;
|
@@ -72,9 +89,11 @@ export declare namespace UpdateHostCommand {
|
|
72
89
|
isDisabled?: boolean | undefined;
|
73
90
|
securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
|
74
91
|
xHttpExtraParams?: unknown;
|
75
|
-
|
76
|
-
|
77
|
-
|
92
|
+
inbound?: {
|
93
|
+
configProfileUuid: string;
|
94
|
+
configProfileInboundUuid: string;
|
95
|
+
} | undefined;
|
96
|
+
serverDescription?: string | null | undefined;
|
78
97
|
}, {
|
79
98
|
uuid: string;
|
80
99
|
path?: string | undefined;
|
@@ -88,9 +107,11 @@ export declare namespace UpdateHostCommand {
|
|
88
107
|
isDisabled?: boolean | undefined;
|
89
108
|
securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
|
90
109
|
xHttpExtraParams?: unknown;
|
91
|
-
|
92
|
-
|
93
|
-
|
110
|
+
inbound?: {
|
111
|
+
configProfileUuid: string;
|
112
|
+
configProfileInboundUuid: string;
|
113
|
+
} | undefined;
|
114
|
+
serverDescription?: string | null | undefined;
|
94
115
|
}>;
|
95
116
|
type Request = z.infer<typeof RequestSchema>;
|
96
117
|
const ResponseSchema: z.ZodObject<{
|
@@ -112,8 +133,17 @@ export declare namespace UpdateHostCommand {
|
|
112
133
|
readonly NONE: "NONE";
|
113
134
|
}>>;
|
114
135
|
xHttpExtraParams: z.ZodNullable<z.ZodUnknown>;
|
115
|
-
|
116
|
-
|
136
|
+
inbound: z.ZodObject<{
|
137
|
+
configProfileUuid: z.ZodNullable<z.ZodString>;
|
138
|
+
configProfileInboundUuid: z.ZodNullable<z.ZodString>;
|
139
|
+
}, "strip", z.ZodTypeAny, {
|
140
|
+
configProfileUuid: string | null;
|
141
|
+
configProfileInboundUuid: string | null;
|
142
|
+
}, {
|
143
|
+
configProfileUuid: string | null;
|
144
|
+
configProfileInboundUuid: string | null;
|
145
|
+
}>;
|
146
|
+
serverDescription: z.ZodNullable<z.ZodString>;
|
117
147
|
}, "strip", z.ZodTypeAny, {
|
118
148
|
path: string | null;
|
119
149
|
uuid: string;
|
@@ -127,8 +157,11 @@ export declare namespace UpdateHostCommand {
|
|
127
157
|
fingerprint: string | null;
|
128
158
|
isDisabled: boolean;
|
129
159
|
securityLayer: "DEFAULT" | "TLS" | "NONE";
|
130
|
-
|
131
|
-
|
160
|
+
inbound: {
|
161
|
+
configProfileUuid: string | null;
|
162
|
+
configProfileInboundUuid: string | null;
|
163
|
+
};
|
164
|
+
serverDescription: string | null;
|
132
165
|
xHttpExtraParams?: unknown;
|
133
166
|
}, {
|
134
167
|
path: string | null;
|
@@ -141,8 +174,11 @@ export declare namespace UpdateHostCommand {
|
|
141
174
|
host: string | null;
|
142
175
|
alpn: string | null;
|
143
176
|
fingerprint: string | null;
|
144
|
-
|
145
|
-
|
177
|
+
inbound: {
|
178
|
+
configProfileUuid: string | null;
|
179
|
+
configProfileInboundUuid: string | null;
|
180
|
+
};
|
181
|
+
serverDescription: string | null;
|
146
182
|
isDisabled?: boolean | undefined;
|
147
183
|
securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
|
148
184
|
xHttpExtraParams?: unknown;
|
@@ -161,8 +197,11 @@ export declare namespace UpdateHostCommand {
|
|
161
197
|
fingerprint: string | null;
|
162
198
|
isDisabled: boolean;
|
163
199
|
securityLayer: "DEFAULT" | "TLS" | "NONE";
|
164
|
-
|
165
|
-
|
200
|
+
inbound: {
|
201
|
+
configProfileUuid: string | null;
|
202
|
+
configProfileInboundUuid: string | null;
|
203
|
+
};
|
204
|
+
serverDescription: string | null;
|
166
205
|
xHttpExtraParams?: unknown;
|
167
206
|
};
|
168
207
|
}, {
|
@@ -177,8 +216,11 @@ export declare namespace UpdateHostCommand {
|
|
177
216
|
host: string | null;
|
178
217
|
alpn: string | null;
|
179
218
|
fingerprint: string | null;
|
180
|
-
|
181
|
-
|
219
|
+
inbound: {
|
220
|
+
configProfileUuid: string | null;
|
221
|
+
configProfileInboundUuid: string | null;
|
222
|
+
};
|
223
|
+
serverDescription: string | null;
|
182
224
|
isDisabled?: boolean | undefined;
|
183
225
|
securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
|
184
226
|
xHttpExtraParams?: unknown;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"update.command.d.ts","sourceRoot":"","sources":["../../../../commands/hosts/update.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.command.d.ts","sourceRoot":"","sources":["../../../../commands/hosts/update.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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA4CxB,CAAC;IACH,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"}
|
@@ -13,17 +13,11 @@ var UpdateHostCommand;
|
|
13
13
|
UpdateHostCommand.RequestSchema = models_1.HostsSchema.pick({
|
14
14
|
uuid: true,
|
15
15
|
}).extend({
|
16
|
-
|
17
|
-
.
|
18
|
-
|
16
|
+
inbound: zod_1.z
|
17
|
+
.object({
|
18
|
+
configProfileUuid: zod_1.z.string().uuid(),
|
19
|
+
configProfileInboundUuid: zod_1.z.string().uuid(),
|
19
20
|
})
|
20
|
-
.uuid('Config Profile UUID must be a valid UUID')
|
21
|
-
.optional(),
|
22
|
-
configProfileInboundUuid: zod_1.z
|
23
|
-
.string({
|
24
|
-
invalid_type_error: 'Inbound UUID must be a string',
|
25
|
-
})
|
26
|
-
.uuid('Inbound UUID must be a valid UUID')
|
27
21
|
.optional(),
|
28
22
|
remark: zod_1.z
|
29
23
|
.string({
|
@@ -49,10 +43,15 @@ var UpdateHostCommand;
|
|
49
43
|
host: zod_1.z.optional(zod_1.z.string()),
|
50
44
|
alpn: zod_1.z.optional(zod_1.z.nativeEnum(constants_1.ALPN).nullable()),
|
51
45
|
fingerprint: zod_1.z.optional(zod_1.z.nativeEnum(constants_1.FINGERPRINTS).nullable()),
|
52
|
-
allowInsecure: zod_1.z.optional(zod_1.z.boolean()),
|
53
46
|
isDisabled: zod_1.z.optional(zod_1.z.boolean()),
|
54
47
|
securityLayer: zod_1.z.optional(zod_1.z.nativeEnum(constants_1.SECURITY_LAYERS)),
|
55
48
|
xHttpExtraParams: zod_1.z.optional(zod_1.z.nullable(zod_1.z.unknown())),
|
49
|
+
serverDescription: zod_1.z.optional(zod_1.z
|
50
|
+
.string()
|
51
|
+
.max(30, {
|
52
|
+
message: 'Server description must be less than 30 characters',
|
53
|
+
})
|
54
|
+
.nullable()),
|
56
55
|
});
|
57
56
|
UpdateHostCommand.ResponseSchema = zod_1.z.object({
|
58
57
|
response: models_1.HostsSchema,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../commands/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,mBAAmB,CAAC;AAClC,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,mBAAmB,CAAC;AAClC,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,iBAAiB,CAAC;AAChC,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC"}
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../commands/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,mBAAmB,CAAC;AAClC,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,iBAAiB,CAAC;AAChC,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC"}
|
@@ -19,6 +19,7 @@ __exportStar(require("./auth"), exports);
|
|
19
19
|
__exportStar(require("./config-profiles"), exports);
|
20
20
|
__exportStar(require("./hosts"), exports);
|
21
21
|
__exportStar(require("./hwid"), exports);
|
22
|
+
__exportStar(require("./infra-billing"), exports);
|
22
23
|
__exportStar(require("./internal-squads"), exports);
|
23
24
|
__exportStar(require("./keygen"), exports);
|
24
25
|
__exportStar(require("./nodes"), exports);
|