@remnawave/backend-contract 2.0.0-alpha.27 → 2.0.0-alpha.3
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 +0 -1
- package/build/backend/api/controllers/index.d.ts.map +1 -1
- package/build/backend/api/controllers/index.js +0 -1
- package/build/backend/api/controllers/internal-squads.d.ts +0 -4
- package/build/backend/api/controllers/internal-squads.d.ts.map +1 -1
- package/build/backend/api/controllers/internal-squads.js +0 -5
- package/build/backend/api/controllers/users.d.ts +0 -1
- package/build/backend/api/controllers/users.d.ts.map +1 -1
- package/build/backend/api/controllers/users.js +0 -1
- package/build/backend/api/routes.d.ts +0 -19
- package/build/backend/api/routes.d.ts.map +1 -1
- package/build/backend/api/routes.js +0 -19
- 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 +10 -26
- 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 +10 -26
- 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 +10 -26
- 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 +10 -26
- 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 +10 -26
- 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 +19 -47
- 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 +10 -26
- package/build/backend/commands/hosts/get-all.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/get-one.command.d.ts +10 -26
- package/build/backend/commands/hosts/get-one.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/reorder.command.d.ts +2 -10
- package/build/backend/commands/hosts/reorder.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/update.command.d.ts +21 -57
- package/build/backend/commands/hosts/update.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/update.command.js +11 -10
- package/build/backend/commands/index.d.ts +0 -1
- package/build/backend/commands/index.d.ts.map +1 -1
- package/build/backend/commands/index.js +0 -1
- 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 +1 -2
- package/build/backend/commands/internal-squads/index.d.ts.map +1 -1
- package/build/backend/commands/internal-squads/index.js +1 -2
- package/build/backend/commands/nodes/actions/disable.command.d.ts +64 -157
- package/build/backend/commands/nodes/actions/disable.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/actions/enable.command.d.ts +64 -157
- package/build/backend/commands/nodes/actions/enable.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/actions/reorder.command.d.ts +88 -230
- package/build/backend/commands/nodes/actions/reorder.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/create.command.d.ts +70 -178
- package/build/backend/commands/nodes/create.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/create.command.js +4 -7
- package/build/backend/commands/nodes/get-all.command.d.ts +64 -157
- package/build/backend/commands/nodes/get-all.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/get-one.command.d.ts +64 -157
- 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 +94 -251
- package/build/backend/commands/nodes/update.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/update.command.js +4 -9
- package/build/backend/commands/users/get-user-usage-by-range.command.d.ts +4 -4
- package/build/backend/commands/users/index.d.ts +0 -1
- package/build/backend/commands/users/index.d.ts.map +1 -1
- package/build/backend/commands/users/index.js +0 -1
- package/build/backend/constants/errors/errors.d.ts +0 -95
- package/build/backend/constants/errors/errors.d.ts.map +1 -1
- package/build/backend/constants/errors/errors.js +0 -95
- package/build/backend/constants/events/events.d.ts +0 -11
- package/build/backend/constants/events/events.d.ts.map +1 -1
- package/build/backend/constants/events/events.js +0 -10
- 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 +0 -1
- package/build/backend/models/{extended-users.schema.d.ts → extented-users.schema.d.ts} +1 -1
- package/build/backend/models/{extended-users.schema.d.ts.map → extented-users.schema.d.ts.map} +1 -1
- package/build/backend/models/hosts.schema.d.ts +6 -18
- package/build/backend/models/hosts.schema.d.ts.map +1 -1
- package/build/backend/models/hosts.schema.js +2 -4
- package/build/backend/models/index.d.ts +1 -5
- package/build/backend/models/index.d.ts.map +1 -1
- package/build/backend/models/index.js +1 -5
- package/build/backend/models/nodes.schema.d.ts +44 -115
- package/build/backend/models/nodes.schema.d.ts.map +1 -1
- package/build/backend/models/nodes.schema.js +2 -7
- package/build/frontend/api/controllers/index.js +0 -1
- package/build/frontend/api/controllers/internal-squads.js +0 -5
- package/build/frontend/api/controllers/users.js +0 -1
- package/build/frontend/api/routes.js +0 -19
- 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 +11 -10
- package/build/frontend/commands/index.js +0 -1
- package/build/frontend/commands/internal-squads/create-internal-squad.command.js +2 -2
- package/build/frontend/commands/internal-squads/index.js +1 -2
- package/build/frontend/commands/nodes/create.command.js +4 -7
- package/build/frontend/commands/nodes/update.command.js +4 -9
- package/build/frontend/commands/users/index.js +0 -1
- package/build/frontend/constants/errors/errors.js +0 -95
- package/build/frontend/constants/events/events.js +0 -10
- package/build/frontend/constants/templates/template-keys.js +0 -1
- package/build/frontend/models/hosts.schema.js +2 -4
- package/build/frontend/models/index.js +1 -5
- package/build/frontend/models/nodes.schema.js +2 -7
- package/package.json +1 -1
- package/build/backend/api/controllers/infra-billing.d.ts +0 -16
- package/build/backend/api/controllers/infra-billing.d.ts.map +0 -1
- package/build/backend/api/controllers/infra-billing.js +0 -18
- package/build/backend/commands/infra-billing/create-bill-record.command.d.ts +0 -125
- package/build/backend/commands/infra-billing/create-bill-record.command.d.ts.map +0 -1
- package/build/backend/commands/infra-billing/create-bill-record.command.js +0 -30
- package/build/backend/commands/infra-billing/create-billing-node.command.d.ts +0 -465
- package/build/backend/commands/infra-billing/create-billing-node.command.d.ts.map +0 -1
- package/build/backend/commands/infra-billing/create-billing-node.command.js +0 -38
- package/build/backend/commands/infra-billing/create-infra-provider.command.d.ts +0 -123
- package/build/backend/commands/infra-billing/create-infra-provider.command.d.ts.map +0 -1
- package/build/backend/commands/infra-billing/create-infra-provider.command.js +0 -24
- package/build/backend/commands/infra-billing/delete-bill-record-by-uuid.command.d.ts +0 -119
- package/build/backend/commands/infra-billing/delete-bill-record-by-uuid.command.d.ts.map +0 -1
- package/build/backend/commands/infra-billing/delete-bill-record-by-uuid.command.js +0 -22
- package/build/backend/commands/infra-billing/delete-billing-node-by-uuid.command.d.ts +0 -459
- package/build/backend/commands/infra-billing/delete-billing-node-by-uuid.command.d.ts.map +0 -1
- package/build/backend/commands/infra-billing/delete-billing-node-by-uuid.command.js +0 -29
- package/build/backend/commands/infra-billing/delete-infra-provider-by-uuid.command.d.ts +0 -33
- package/build/backend/commands/infra-billing/delete-infra-provider-by-uuid.command.d.ts.map +0 -1
- package/build/backend/commands/infra-billing/delete-infra-provider-by-uuid.command.js +0 -20
- package/build/backend/commands/infra-billing/get-bill-records.command.d.ts +0 -122
- package/build/backend/commands/infra-billing/get-bill-records.command.d.ts.map +0 -1
- package/build/backend/commands/infra-billing/get-bill-records.command.js +0 -31
- package/build/backend/commands/infra-billing/get-billing-nodes.command.d.ts +0 -451
- package/build/backend/commands/infra-billing/get-billing-nodes.command.d.ts.map +0 -1
- package/build/backend/commands/infra-billing/get-billing-nodes.command.js +0 -26
- package/build/backend/commands/infra-billing/get-infra-provider-by-uuid.command.d.ts +0 -117
- package/build/backend/commands/infra-billing/get-infra-provider-by-uuid.command.d.ts.map +0 -1
- package/build/backend/commands/infra-billing/get-infra-provider-by-uuid.command.js +0 -19
- package/build/backend/commands/infra-billing/get-infra-providers.command.d.ts +0 -156
- package/build/backend/commands/infra-billing/get-infra-providers.command.d.ts.map +0 -1
- package/build/backend/commands/infra-billing/get-infra-providers.command.js +0 -19
- package/build/backend/commands/infra-billing/index.d.ts +0 -13
- package/build/backend/commands/infra-billing/index.d.ts.map +0 -1
- package/build/backend/commands/infra-billing/index.js +0 -28
- package/build/backend/commands/infra-billing/update-billing-node.command.d.ts +0 -462
- package/build/backend/commands/infra-billing/update-billing-node.command.d.ts.map +0 -1
- package/build/backend/commands/infra-billing/update-billing-node.command.js +0 -35
- package/build/backend/commands/infra-billing/update-infra-provider.command.d.ts +0 -126
- package/build/backend/commands/infra-billing/update-infra-provider.command.d.ts.map +0 -1
- package/build/backend/commands/infra-billing/update-infra-provider.command.js +0 -26
- package/build/backend/commands/internal-squads/bulk-actions/add-users-to-internal-squad.command.d.ts +0 -33
- package/build/backend/commands/internal-squads/bulk-actions/add-users-to-internal-squad.command.d.ts.map +0 -1
- package/build/backend/commands/internal-squads/bulk-actions/add-users-to-internal-squad.command.js +0 -20
- package/build/backend/commands/internal-squads/bulk-actions/delete-users-from-internal-squad.command.d.ts +0 -33
- package/build/backend/commands/internal-squads/bulk-actions/delete-users-from-internal-squad.command.d.ts.map +0 -1
- package/build/backend/commands/internal-squads/bulk-actions/delete-users-from-internal-squad.command.js +0 -20
- package/build/backend/commands/internal-squads/bulk-actions/index.d.ts +0 -3
- package/build/backend/commands/internal-squads/bulk-actions/index.d.ts.map +0 -1
- package/build/backend/commands/internal-squads/bulk-actions/index.js +0 -18
- package/build/backend/commands/internal-squads/get-internal-squad-by-uuid.d.ts.map +0 -1
- package/build/backend/commands/users/get-user-accessible-nodes.command.d.ts +0 -114
- package/build/backend/commands/users/get-user-accessible-nodes.command.d.ts.map +0 -1
- package/build/backend/commands/users/get-user-accessible-nodes.command.js +0 -31
- package/build/backend/models/infra-billing-available-node.schema.d.ts +0 -116
- package/build/backend/models/infra-billing-available-node.schema.d.ts.map +0 -1
- package/build/backend/models/infra-billing-available-node.schema.js +0 -9
- package/build/backend/models/infra-billing-history-record.schema.d.ts +0 -44
- package/build/backend/models/infra-billing-history-record.schema.d.ts.map +0 -1
- package/build/backend/models/infra-billing-history-record.schema.js +0 -19
- package/build/backend/models/infra-billing-node.schema.d.ts +0 -179
- package/build/backend/models/infra-billing-node.schema.d.ts.map +0 -1
- package/build/backend/models/infra-billing-node.schema.js +0 -34
- package/build/backend/models/infra-provider.schema.d.ts +0 -87
- package/build/backend/models/infra-provider.schema.d.ts.map +0 -1
- package/build/backend/models/infra-provider.schema.js +0 -41
- package/build/frontend/api/controllers/infra-billing.js +0 -18
- package/build/frontend/commands/infra-billing/create-bill-record.command.js +0 -30
- package/build/frontend/commands/infra-billing/create-billing-node.command.js +0 -38
- package/build/frontend/commands/infra-billing/create-infra-provider.command.js +0 -24
- package/build/frontend/commands/infra-billing/delete-bill-record-by-uuid.command.js +0 -22
- package/build/frontend/commands/infra-billing/delete-billing-node-by-uuid.command.js +0 -29
- package/build/frontend/commands/infra-billing/delete-infra-provider-by-uuid.command.js +0 -20
- package/build/frontend/commands/infra-billing/get-bill-records.command.js +0 -31
- package/build/frontend/commands/infra-billing/get-billing-nodes.command.js +0 -26
- package/build/frontend/commands/infra-billing/get-infra-provider-by-uuid.command.js +0 -19
- package/build/frontend/commands/infra-billing/get-infra-providers.command.js +0 -19
- package/build/frontend/commands/infra-billing/index.js +0 -28
- package/build/frontend/commands/infra-billing/update-billing-node.command.js +0 -35
- package/build/frontend/commands/infra-billing/update-infra-provider.command.js +0 -26
- package/build/frontend/commands/internal-squads/bulk-actions/add-users-to-internal-squad.command.js +0 -20
- package/build/frontend/commands/internal-squads/bulk-actions/delete-users-from-internal-squad.command.js +0 -20
- package/build/frontend/commands/internal-squads/bulk-actions/index.js +0 -18
- package/build/frontend/commands/users/get-user-accessible-nodes.command.js +0 -31
- package/build/frontend/models/infra-billing-available-node.schema.js +0 -9
- package/build/frontend/models/infra-billing-history-record.schema.js +0 -19
- package/build/frontend/models/infra-billing-node.schema.js +0 -34
- package/build/frontend/models/infra-provider.schema.js +0 -41
- /package/build/backend/commands/internal-squads/{get-internal-squad-by-uuid.js → get-internal-squad-by-uuid..js} +0 -0
- /package/build/backend/models/{extended-users.schema.js → extented-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/{extended-users.schema.js → extented-users.schema.js} +0 -0
@@ -4,16 +4,8 @@ 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
|
-
|
9
|
-
configProfileInboundUuid: z.ZodString;
|
10
|
-
}, "strip", z.ZodTypeAny, {
|
11
|
-
configProfileUuid: string;
|
12
|
-
configProfileInboundUuid: string;
|
13
|
-
}, {
|
14
|
-
configProfileUuid: string;
|
15
|
-
configProfileInboundUuid: string;
|
16
|
-
}>;
|
7
|
+
configProfileUuid: z.ZodOptional<z.ZodString>;
|
8
|
+
configProfileInboundUuid: z.ZodOptional<z.ZodString>;
|
17
9
|
remark: z.ZodString;
|
18
10
|
address: z.ZodString;
|
19
11
|
port: z.ZodNumber;
|
@@ -39,6 +31,7 @@ export declare namespace CreateHostCommand {
|
|
39
31
|
readonly RANDOM: "random";
|
40
32
|
readonly RANDOMIZED: "randomized";
|
41
33
|
}>>>;
|
34
|
+
allowInsecure: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
42
35
|
isDisabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
43
36
|
securityLayer: z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<{
|
44
37
|
readonly DEFAULT: "DEFAULT";
|
@@ -46,15 +39,10 @@ export declare namespace CreateHostCommand {
|
|
46
39
|
readonly NONE: "NONE";
|
47
40
|
}>>>;
|
48
41
|
xHttpExtraParams: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
|
49
|
-
serverDescription: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
50
42
|
}, "strip", z.ZodTypeAny, {
|
51
43
|
port: number;
|
52
44
|
remark: string;
|
53
45
|
address: string;
|
54
|
-
inbound: {
|
55
|
-
configProfileUuid: string;
|
56
|
-
configProfileInboundUuid: string;
|
57
|
-
};
|
58
46
|
path?: string | undefined;
|
59
47
|
sni?: string | undefined;
|
60
48
|
host?: string | undefined;
|
@@ -63,15 +51,13 @@ export declare namespace CreateHostCommand {
|
|
63
51
|
isDisabled?: boolean | undefined;
|
64
52
|
securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
|
65
53
|
xHttpExtraParams?: unknown;
|
66
|
-
|
54
|
+
configProfileUuid?: string | undefined;
|
55
|
+
configProfileInboundUuid?: string | undefined;
|
56
|
+
allowInsecure?: boolean | undefined;
|
67
57
|
}, {
|
68
58
|
port: number;
|
69
59
|
remark: string;
|
70
60
|
address: string;
|
71
|
-
inbound: {
|
72
|
-
configProfileUuid: string;
|
73
|
-
configProfileInboundUuid: string;
|
74
|
-
};
|
75
61
|
path?: string | undefined;
|
76
62
|
sni?: string | undefined;
|
77
63
|
host?: string | undefined;
|
@@ -80,7 +66,9 @@ export declare namespace CreateHostCommand {
|
|
80
66
|
isDisabled?: boolean | undefined;
|
81
67
|
securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
|
82
68
|
xHttpExtraParams?: unknown;
|
83
|
-
|
69
|
+
configProfileUuid?: string | undefined;
|
70
|
+
configProfileInboundUuid?: string | undefined;
|
71
|
+
allowInsecure?: boolean | undefined;
|
84
72
|
}>;
|
85
73
|
type Request = z.infer<typeof RequestSchema>;
|
86
74
|
const ResponseSchema: z.ZodObject<{
|
@@ -102,16 +90,8 @@ export declare namespace CreateHostCommand {
|
|
102
90
|
readonly NONE: "NONE";
|
103
91
|
}>>;
|
104
92
|
xHttpExtraParams: z.ZodNullable<z.ZodUnknown>;
|
105
|
-
|
106
|
-
|
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
|
-
}>;
|
93
|
+
configProfileUuid: z.ZodNullable<z.ZodString>;
|
94
|
+
configProfileInboundUuid: z.ZodNullable<z.ZodString>;
|
115
95
|
}, "strip", z.ZodTypeAny, {
|
116
96
|
path: string | null;
|
117
97
|
uuid: string;
|
@@ -125,10 +105,8 @@ export declare namespace CreateHostCommand {
|
|
125
105
|
fingerprint: string | null;
|
126
106
|
isDisabled: boolean;
|
127
107
|
securityLayer: "DEFAULT" | "TLS" | "NONE";
|
128
|
-
|
129
|
-
|
130
|
-
configProfileInboundUuid: string | null;
|
131
|
-
};
|
108
|
+
configProfileUuid: string | null;
|
109
|
+
configProfileInboundUuid: string | null;
|
132
110
|
xHttpExtraParams?: unknown;
|
133
111
|
}, {
|
134
112
|
path: string | null;
|
@@ -141,10 +119,8 @@ export declare namespace CreateHostCommand {
|
|
141
119
|
host: string | null;
|
142
120
|
alpn: string | null;
|
143
121
|
fingerprint: string | null;
|
144
|
-
|
145
|
-
|
146
|
-
configProfileInboundUuid: string | null;
|
147
|
-
};
|
122
|
+
configProfileUuid: string | null;
|
123
|
+
configProfileInboundUuid: string | null;
|
148
124
|
isDisabled?: boolean | undefined;
|
149
125
|
securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
|
150
126
|
xHttpExtraParams?: unknown;
|
@@ -163,10 +139,8 @@ export declare namespace CreateHostCommand {
|
|
163
139
|
fingerprint: string | null;
|
164
140
|
isDisabled: boolean;
|
165
141
|
securityLayer: "DEFAULT" | "TLS" | "NONE";
|
166
|
-
|
167
|
-
|
168
|
-
configProfileInboundUuid: string | null;
|
169
|
-
};
|
142
|
+
configProfileUuid: string | null;
|
143
|
+
configProfileInboundUuid: string | null;
|
170
144
|
xHttpExtraParams?: unknown;
|
171
145
|
};
|
172
146
|
}, {
|
@@ -181,10 +155,8 @@ export declare namespace CreateHostCommand {
|
|
181
155
|
host: string | null;
|
182
156
|
alpn: string | null;
|
183
157
|
fingerprint: string | null;
|
184
|
-
|
185
|
-
|
186
|
-
configProfileInboundUuid: string | null;
|
187
|
-
};
|
158
|
+
configProfileUuid: string | null;
|
159
|
+
configProfileInboundUuid: string | null;
|
188
160
|
isDisabled?: boolean | undefined;
|
189
161
|
securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
|
190
162
|
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAsCxB,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"}
|
@@ -11,16 +11,21 @@ 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
|
-
|
16
|
-
|
17
|
-
})
|
14
|
+
configProfileUuid: zod_1.z
|
15
|
+
.string({
|
16
|
+
invalid_type_error: 'Config Profile UUID must be a string',
|
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(),
|
18
26
|
remark: zod_1.z
|
19
27
|
.string({
|
20
28
|
invalid_type_error: 'Remark must be a string',
|
21
|
-
})
|
22
|
-
.min(1, {
|
23
|
-
message: 'Remark must be at least 1 character',
|
24
29
|
})
|
25
30
|
.max(40, {
|
26
31
|
message: 'Remark must be less than 40 characters',
|
@@ -38,15 +43,10 @@ var CreateHostCommand;
|
|
38
43
|
host: zod_1.z.string().optional(),
|
39
44
|
alpn: zod_1.z.optional(zod_1.z.nativeEnum(constants_1.ALPN).nullable()),
|
40
45
|
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)),
|
41
47
|
isDisabled: zod_1.z.optional(zod_1.z.boolean().default(false)),
|
42
48
|
securityLayer: zod_1.z.optional(zod_1.z.nativeEnum(constants_1.SECURITY_LAYERS).default(constants_1.SECURITY_LAYERS.DEFAULT)),
|
43
49
|
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,16 +22,8 @@ export declare namespace GetAllHostsCommand {
|
|
22
22
|
readonly NONE: "NONE";
|
23
23
|
}>>;
|
24
24
|
xHttpExtraParams: z.ZodNullable<z.ZodUnknown>;
|
25
|
-
|
26
|
-
|
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
|
-
}>;
|
25
|
+
configProfileUuid: z.ZodNullable<z.ZodString>;
|
26
|
+
configProfileInboundUuid: z.ZodNullable<z.ZodString>;
|
35
27
|
}, "strip", z.ZodTypeAny, {
|
36
28
|
path: string | null;
|
37
29
|
uuid: string;
|
@@ -45,10 +37,8 @@ export declare namespace GetAllHostsCommand {
|
|
45
37
|
fingerprint: string | null;
|
46
38
|
isDisabled: boolean;
|
47
39
|
securityLayer: "DEFAULT" | "TLS" | "NONE";
|
48
|
-
|
49
|
-
|
50
|
-
configProfileInboundUuid: string | null;
|
51
|
-
};
|
40
|
+
configProfileUuid: string | null;
|
41
|
+
configProfileInboundUuid: string | null;
|
52
42
|
xHttpExtraParams?: unknown;
|
53
43
|
}, {
|
54
44
|
path: string | null;
|
@@ -61,10 +51,8 @@ export declare namespace GetAllHostsCommand {
|
|
61
51
|
host: string | null;
|
62
52
|
alpn: string | null;
|
63
53
|
fingerprint: string | null;
|
64
|
-
|
65
|
-
|
66
|
-
configProfileInboundUuid: string | null;
|
67
|
-
};
|
54
|
+
configProfileUuid: string | null;
|
55
|
+
configProfileInboundUuid: string | null;
|
68
56
|
isDisabled?: boolean | undefined;
|
69
57
|
securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
|
70
58
|
xHttpExtraParams?: unknown;
|
@@ -83,10 +71,8 @@ export declare namespace GetAllHostsCommand {
|
|
83
71
|
fingerprint: string | null;
|
84
72
|
isDisabled: boolean;
|
85
73
|
securityLayer: "DEFAULT" | "TLS" | "NONE";
|
86
|
-
|
87
|
-
|
88
|
-
configProfileInboundUuid: string | null;
|
89
|
-
};
|
74
|
+
configProfileUuid: string | null;
|
75
|
+
configProfileInboundUuid: string | null;
|
90
76
|
xHttpExtraParams?: unknown;
|
91
77
|
}[];
|
92
78
|
}, {
|
@@ -101,10 +87,8 @@ export declare namespace GetAllHostsCommand {
|
|
101
87
|
host: string | null;
|
102
88
|
alpn: string | null;
|
103
89
|
fingerprint: string | null;
|
104
|
-
|
105
|
-
|
106
|
-
configProfileInboundUuid: string | null;
|
107
|
-
};
|
90
|
+
configProfileUuid: string | null;
|
91
|
+
configProfileInboundUuid: string | null;
|
108
92
|
isDisabled?: boolean | undefined;
|
109
93
|
securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
|
110
94
|
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,16 +30,8 @@ export declare namespace GetOneHostCommand {
|
|
30
30
|
readonly NONE: "NONE";
|
31
31
|
}>>;
|
32
32
|
xHttpExtraParams: z.ZodNullable<z.ZodUnknown>;
|
33
|
-
|
34
|
-
|
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
|
-
}>;
|
33
|
+
configProfileUuid: z.ZodNullable<z.ZodString>;
|
34
|
+
configProfileInboundUuid: z.ZodNullable<z.ZodString>;
|
43
35
|
}, "strip", z.ZodTypeAny, {
|
44
36
|
path: string | null;
|
45
37
|
uuid: string;
|
@@ -53,10 +45,8 @@ export declare namespace GetOneHostCommand {
|
|
53
45
|
fingerprint: string | null;
|
54
46
|
isDisabled: boolean;
|
55
47
|
securityLayer: "DEFAULT" | "TLS" | "NONE";
|
56
|
-
|
57
|
-
|
58
|
-
configProfileInboundUuid: string | null;
|
59
|
-
};
|
48
|
+
configProfileUuid: string | null;
|
49
|
+
configProfileInboundUuid: string | null;
|
60
50
|
xHttpExtraParams?: unknown;
|
61
51
|
}, {
|
62
52
|
path: string | null;
|
@@ -69,10 +59,8 @@ export declare namespace GetOneHostCommand {
|
|
69
59
|
host: string | null;
|
70
60
|
alpn: string | null;
|
71
61
|
fingerprint: string | null;
|
72
|
-
|
73
|
-
|
74
|
-
configProfileInboundUuid: string | null;
|
75
|
-
};
|
62
|
+
configProfileUuid: string | null;
|
63
|
+
configProfileInboundUuid: string | null;
|
76
64
|
isDisabled?: boolean | undefined;
|
77
65
|
securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
|
78
66
|
xHttpExtraParams?: unknown;
|
@@ -91,10 +79,8 @@ export declare namespace GetOneHostCommand {
|
|
91
79
|
fingerprint: string | null;
|
92
80
|
isDisabled: boolean;
|
93
81
|
securityLayer: "DEFAULT" | "TLS" | "NONE";
|
94
|
-
|
95
|
-
|
96
|
-
configProfileInboundUuid: string | null;
|
97
|
-
};
|
82
|
+
configProfileUuid: string | null;
|
83
|
+
configProfileInboundUuid: string | null;
|
98
84
|
xHttpExtraParams?: unknown;
|
99
85
|
};
|
100
86
|
}, {
|
@@ -109,10 +95,8 @@ export declare namespace GetOneHostCommand {
|
|
109
95
|
host: string | null;
|
110
96
|
alpn: string | null;
|
111
97
|
fingerprint: string | null;
|
112
|
-
|
113
|
-
|
114
|
-
configProfileInboundUuid: string | null;
|
115
|
-
};
|
98
|
+
configProfileUuid: string | null;
|
99
|
+
configProfileInboundUuid: string | null;
|
116
100
|
isDisabled?: boolean | undefined;
|
117
101
|
securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
|
118
102
|
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,16 +22,8 @@ export declare namespace ReorderHostCommand {
|
|
22
22
|
readonly NONE: "NONE";
|
23
23
|
}>>;
|
24
24
|
xHttpExtraParams: z.ZodNullable<z.ZodUnknown>;
|
25
|
-
|
26
|
-
|
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
|
-
}>;
|
25
|
+
configProfileUuid: z.ZodNullable<z.ZodString>;
|
26
|
+
configProfileInboundUuid: z.ZodNullable<z.ZodString>;
|
35
27
|
}, "uuid" | "viewPosition">, "strip", z.ZodTypeAny, {
|
36
28
|
uuid: string;
|
37
29
|
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,27 +21,11 @@ export declare namespace UpdateHostCommand {
|
|
21
21
|
readonly NONE: "NONE";
|
22
22
|
}>>;
|
23
23
|
xHttpExtraParams: z.ZodNullable<z.ZodUnknown>;
|
24
|
-
|
25
|
-
|
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
|
-
}>;
|
24
|
+
configProfileUuid: z.ZodNullable<z.ZodString>;
|
25
|
+
configProfileInboundUuid: z.ZodNullable<z.ZodString>;
|
34
26
|
}, "uuid"> & {
|
35
|
-
|
36
|
-
|
37
|
-
configProfileInboundUuid: z.ZodString;
|
38
|
-
}, "strip", z.ZodTypeAny, {
|
39
|
-
configProfileUuid: string;
|
40
|
-
configProfileInboundUuid: string;
|
41
|
-
}, {
|
42
|
-
configProfileUuid: string;
|
43
|
-
configProfileInboundUuid: string;
|
44
|
-
}>>;
|
27
|
+
configProfileUuid: z.ZodOptional<z.ZodString>;
|
28
|
+
configProfileInboundUuid: z.ZodOptional<z.ZodString>;
|
45
29
|
remark: z.ZodOptional<z.ZodString>;
|
46
30
|
address: z.ZodOptional<z.ZodString>;
|
47
31
|
port: z.ZodOptional<z.ZodNumber>;
|
@@ -67,6 +51,7 @@ export declare namespace UpdateHostCommand {
|
|
67
51
|
readonly RANDOM: "random";
|
68
52
|
readonly RANDOMIZED: "randomized";
|
69
53
|
}>>>;
|
54
|
+
allowInsecure: z.ZodOptional<z.ZodBoolean>;
|
70
55
|
isDisabled: z.ZodOptional<z.ZodBoolean>;
|
71
56
|
securityLayer: z.ZodOptional<z.ZodNativeEnum<{
|
72
57
|
readonly DEFAULT: "DEFAULT";
|
@@ -74,7 +59,6 @@ export declare namespace UpdateHostCommand {
|
|
74
59
|
readonly NONE: "NONE";
|
75
60
|
}>>;
|
76
61
|
xHttpExtraParams: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
|
77
|
-
serverDescription: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
78
62
|
}, "strip", z.ZodTypeAny, {
|
79
63
|
uuid: string;
|
80
64
|
path?: string | undefined;
|
@@ -88,11 +72,9 @@ export declare namespace UpdateHostCommand {
|
|
88
72
|
isDisabled?: boolean | undefined;
|
89
73
|
securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
|
90
74
|
xHttpExtraParams?: unknown;
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
} | undefined;
|
95
|
-
serverDescription?: string | null | undefined;
|
75
|
+
configProfileUuid?: string | undefined;
|
76
|
+
configProfileInboundUuid?: string | undefined;
|
77
|
+
allowInsecure?: boolean | undefined;
|
96
78
|
}, {
|
97
79
|
uuid: string;
|
98
80
|
path?: string | undefined;
|
@@ -106,11 +88,9 @@ export declare namespace UpdateHostCommand {
|
|
106
88
|
isDisabled?: boolean | undefined;
|
107
89
|
securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
|
108
90
|
xHttpExtraParams?: unknown;
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
} | undefined;
|
113
|
-
serverDescription?: string | null | undefined;
|
91
|
+
configProfileUuid?: string | undefined;
|
92
|
+
configProfileInboundUuid?: string | undefined;
|
93
|
+
allowInsecure?: boolean | undefined;
|
114
94
|
}>;
|
115
95
|
type Request = z.infer<typeof RequestSchema>;
|
116
96
|
const ResponseSchema: z.ZodObject<{
|
@@ -132,16 +112,8 @@ export declare namespace UpdateHostCommand {
|
|
132
112
|
readonly NONE: "NONE";
|
133
113
|
}>>;
|
134
114
|
xHttpExtraParams: z.ZodNullable<z.ZodUnknown>;
|
135
|
-
|
136
|
-
|
137
|
-
configProfileInboundUuid: z.ZodNullable<z.ZodString>;
|
138
|
-
}, "strip", z.ZodTypeAny, {
|
139
|
-
configProfileUuid: string | null;
|
140
|
-
configProfileInboundUuid: string | null;
|
141
|
-
}, {
|
142
|
-
configProfileUuid: string | null;
|
143
|
-
configProfileInboundUuid: string | null;
|
144
|
-
}>;
|
115
|
+
configProfileUuid: z.ZodNullable<z.ZodString>;
|
116
|
+
configProfileInboundUuid: z.ZodNullable<z.ZodString>;
|
145
117
|
}, "strip", z.ZodTypeAny, {
|
146
118
|
path: string | null;
|
147
119
|
uuid: string;
|
@@ -155,10 +127,8 @@ export declare namespace UpdateHostCommand {
|
|
155
127
|
fingerprint: string | null;
|
156
128
|
isDisabled: boolean;
|
157
129
|
securityLayer: "DEFAULT" | "TLS" | "NONE";
|
158
|
-
|
159
|
-
|
160
|
-
configProfileInboundUuid: string | null;
|
161
|
-
};
|
130
|
+
configProfileUuid: string | null;
|
131
|
+
configProfileInboundUuid: string | null;
|
162
132
|
xHttpExtraParams?: unknown;
|
163
133
|
}, {
|
164
134
|
path: string | null;
|
@@ -171,10 +141,8 @@ export declare namespace UpdateHostCommand {
|
|
171
141
|
host: string | null;
|
172
142
|
alpn: string | null;
|
173
143
|
fingerprint: string | null;
|
174
|
-
|
175
|
-
|
176
|
-
configProfileInboundUuid: string | null;
|
177
|
-
};
|
144
|
+
configProfileUuid: string | null;
|
145
|
+
configProfileInboundUuid: string | null;
|
178
146
|
isDisabled?: boolean | undefined;
|
179
147
|
securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
|
180
148
|
xHttpExtraParams?: unknown;
|
@@ -193,10 +161,8 @@ export declare namespace UpdateHostCommand {
|
|
193
161
|
fingerprint: string | null;
|
194
162
|
isDisabled: boolean;
|
195
163
|
securityLayer: "DEFAULT" | "TLS" | "NONE";
|
196
|
-
|
197
|
-
|
198
|
-
configProfileInboundUuid: string | null;
|
199
|
-
};
|
164
|
+
configProfileUuid: string | null;
|
165
|
+
configProfileInboundUuid: string | null;
|
200
166
|
xHttpExtraParams?: unknown;
|
201
167
|
};
|
202
168
|
}, {
|
@@ -211,10 +177,8 @@ export declare namespace UpdateHostCommand {
|
|
211
177
|
host: string | null;
|
212
178
|
alpn: string | null;
|
213
179
|
fingerprint: string | null;
|
214
|
-
|
215
|
-
|
216
|
-
configProfileInboundUuid: string | null;
|
217
|
-
};
|
180
|
+
configProfileUuid: string | null;
|
181
|
+
configProfileInboundUuid: string | null;
|
218
182
|
isDisabled?: boolean | undefined;
|
219
183
|
securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
|
220
184
|
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA2CxB,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,11 +13,17 @@ var UpdateHostCommand;
|
|
13
13
|
UpdateHostCommand.RequestSchema = models_1.HostsSchema.pick({
|
14
14
|
uuid: true,
|
15
15
|
}).extend({
|
16
|
-
|
17
|
-
.
|
18
|
-
|
19
|
-
configProfileInboundUuid: zod_1.z.string().uuid(),
|
16
|
+
configProfileUuid: zod_1.z
|
17
|
+
.string({
|
18
|
+
invalid_type_error: 'Config Profile UUID must be a string',
|
20
19
|
})
|
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')
|
21
27
|
.optional(),
|
22
28
|
remark: zod_1.z
|
23
29
|
.string({
|
@@ -43,15 +49,10 @@ var UpdateHostCommand;
|
|
43
49
|
host: zod_1.z.optional(zod_1.z.string()),
|
44
50
|
alpn: zod_1.z.optional(zod_1.z.nativeEnum(constants_1.ALPN).nullable()),
|
45
51
|
fingerprint: zod_1.z.optional(zod_1.z.nativeEnum(constants_1.FINGERPRINTS).nullable()),
|
52
|
+
allowInsecure: zod_1.z.optional(zod_1.z.boolean()),
|
46
53
|
isDisabled: zod_1.z.optional(zod_1.z.boolean()),
|
47
54
|
securityLayer: zod_1.z.optional(zod_1.z.nativeEnum(constants_1.SECURITY_LAYERS)),
|
48
55
|
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()),
|
55
56
|
});
|
56
57
|
UpdateHostCommand.ResponseSchema = zod_1.z.object({
|
57
58
|
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,
|
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"}
|
@@ -19,7 +19,6 @@ __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);
|
23
22
|
__exportStar(require("./internal-squads"), exports);
|
24
23
|
__exportStar(require("./keygen"), exports);
|
25
24
|
__exportStar(require("./nodes"), exports);
|
@@ -13,8 +13,8 @@ var CreateInternalSquadCommand;
|
|
13
13
|
CreateInternalSquadCommand.RequestSchema = zod_1.z.object({
|
14
14
|
name: zod_1.z
|
15
15
|
.string()
|
16
|
-
.min(
|
17
|
-
.max(
|
16
|
+
.min(6, 'Name must be at least 6 characters')
|
17
|
+
.max(16, 'Name must be less than 16 characters')
|
18
18
|
.regex(/^[A-Za-z0-9_-]+$/, 'Name can only contain letters, numbers, underscores and dashes'),
|
19
19
|
inbounds: zod_1.z.array(zod_1.z.string().uuid()),
|
20
20
|
});
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"get-internal-squad-by-uuid..d.ts","sourceRoot":"","sources":["../../../../commands/internal-squads/get-internal-squad-by-uuid..ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,6BAA6B,CAAC;IACpC,MAAM,GAAG,0BAAuC,CAAC;IACjD,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"}
|
@@ -1,7 +1,6 @@
|
|
1
|
-
export * from './bulk-actions';
|
2
1
|
export * from './create-internal-squad.command';
|
3
2
|
export * from './delete-internal-squad.command';
|
4
|
-
export * from './get-internal-squad-by-uuid';
|
3
|
+
export * from './get-internal-squad-by-uuid.';
|
5
4
|
export * from './get-internal-squads.command';
|
6
5
|
export * from './update-internal-squad.command';
|
7
6
|
//# sourceMappingURL=index.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../commands/internal-squads/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../commands/internal-squads/index.ts"],"names":[],"mappings":"AAAA,cAAc,iCAAiC,CAAC;AAChD,cAAc,iCAAiC,CAAC;AAChD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,iCAAiC,CAAC"}
|
@@ -14,9 +14,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
15
15
|
};
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
17
|
-
__exportStar(require("./bulk-actions"), exports);
|
18
17
|
__exportStar(require("./create-internal-squad.command"), exports);
|
19
18
|
__exportStar(require("./delete-internal-squad.command"), exports);
|
20
|
-
__exportStar(require("./get-internal-squad-by-uuid"), exports);
|
19
|
+
__exportStar(require("./get-internal-squad-by-uuid."), exports);
|
21
20
|
__exportStar(require("./get-internal-squads.command"), exports);
|
22
21
|
__exportStar(require("./update-internal-squad.command"), exports);
|