@remnawave/backend-contract 2.0.0-alpha.28 → 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 -31
- 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 -31
- 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 -31
- 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 -31
- 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 -31
- 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 -52
- 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 -31
- package/build/backend/commands/hosts/get-all.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/get-one.command.d.ts +10 -31
- package/build/backend/commands/hosts/get-one.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/reorder.command.d.ts +2 -11
- package/build/backend/commands/hosts/reorder.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/update.command.d.ts +21 -63
- 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 -21
- package/build/backend/models/hosts.schema.d.ts.map +1 -1
- package/build/backend/models/hosts.schema.js +2 -5
- 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 -5
- 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,17 +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
|
-
}>;
|
115
|
-
serverDescription: z.ZodNullable<z.ZodString>;
|
93
|
+
configProfileUuid: z.ZodNullable<z.ZodString>;
|
94
|
+
configProfileInboundUuid: z.ZodNullable<z.ZodString>;
|
116
95
|
}, "strip", z.ZodTypeAny, {
|
117
96
|
path: string | null;
|
118
97
|
uuid: string;
|
@@ -126,11 +105,8 @@ export declare namespace CreateHostCommand {
|
|
126
105
|
fingerprint: string | null;
|
127
106
|
isDisabled: boolean;
|
128
107
|
securityLayer: "DEFAULT" | "TLS" | "NONE";
|
129
|
-
|
130
|
-
|
131
|
-
configProfileInboundUuid: string | null;
|
132
|
-
};
|
133
|
-
serverDescription: string | null;
|
108
|
+
configProfileUuid: string | null;
|
109
|
+
configProfileInboundUuid: string | null;
|
134
110
|
xHttpExtraParams?: unknown;
|
135
111
|
}, {
|
136
112
|
path: string | null;
|
@@ -143,11 +119,8 @@ export declare namespace CreateHostCommand {
|
|
143
119
|
host: string | null;
|
144
120
|
alpn: string | null;
|
145
121
|
fingerprint: string | null;
|
146
|
-
|
147
|
-
|
148
|
-
configProfileInboundUuid: string | null;
|
149
|
-
};
|
150
|
-
serverDescription: string | null;
|
122
|
+
configProfileUuid: string | null;
|
123
|
+
configProfileInboundUuid: string | null;
|
151
124
|
isDisabled?: boolean | undefined;
|
152
125
|
securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
|
153
126
|
xHttpExtraParams?: unknown;
|
@@ -166,11 +139,8 @@ export declare namespace CreateHostCommand {
|
|
166
139
|
fingerprint: string | null;
|
167
140
|
isDisabled: boolean;
|
168
141
|
securityLayer: "DEFAULT" | "TLS" | "NONE";
|
169
|
-
|
170
|
-
|
171
|
-
configProfileInboundUuid: string | null;
|
172
|
-
};
|
173
|
-
serverDescription: string | null;
|
142
|
+
configProfileUuid: string | null;
|
143
|
+
configProfileInboundUuid: string | null;
|
174
144
|
xHttpExtraParams?: unknown;
|
175
145
|
};
|
176
146
|
}, {
|
@@ -185,11 +155,8 @@ export declare namespace CreateHostCommand {
|
|
185
155
|
host: string | null;
|
186
156
|
alpn: string | null;
|
187
157
|
fingerprint: string | null;
|
188
|
-
|
189
|
-
|
190
|
-
configProfileInboundUuid: string | null;
|
191
|
-
};
|
192
|
-
serverDescription: string | null;
|
158
|
+
configProfileUuid: string | null;
|
159
|
+
configProfileInboundUuid: string | null;
|
193
160
|
isDisabled?: boolean | undefined;
|
194
161
|
securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
|
195
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,17 +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
|
-
}>;
|
35
|
-
serverDescription: z.ZodNullable<z.ZodString>;
|
25
|
+
configProfileUuid: z.ZodNullable<z.ZodString>;
|
26
|
+
configProfileInboundUuid: z.ZodNullable<z.ZodString>;
|
36
27
|
}, "strip", z.ZodTypeAny, {
|
37
28
|
path: string | null;
|
38
29
|
uuid: string;
|
@@ -46,11 +37,8 @@ export declare namespace GetAllHostsCommand {
|
|
46
37
|
fingerprint: string | null;
|
47
38
|
isDisabled: boolean;
|
48
39
|
securityLayer: "DEFAULT" | "TLS" | "NONE";
|
49
|
-
|
50
|
-
|
51
|
-
configProfileInboundUuid: string | null;
|
52
|
-
};
|
53
|
-
serverDescription: string | null;
|
40
|
+
configProfileUuid: string | null;
|
41
|
+
configProfileInboundUuid: string | null;
|
54
42
|
xHttpExtraParams?: unknown;
|
55
43
|
}, {
|
56
44
|
path: string | null;
|
@@ -63,11 +51,8 @@ export declare namespace GetAllHostsCommand {
|
|
63
51
|
host: string | null;
|
64
52
|
alpn: string | null;
|
65
53
|
fingerprint: string | null;
|
66
|
-
|
67
|
-
|
68
|
-
configProfileInboundUuid: string | null;
|
69
|
-
};
|
70
|
-
serverDescription: string | null;
|
54
|
+
configProfileUuid: string | null;
|
55
|
+
configProfileInboundUuid: string | null;
|
71
56
|
isDisabled?: boolean | undefined;
|
72
57
|
securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
|
73
58
|
xHttpExtraParams?: unknown;
|
@@ -86,11 +71,8 @@ export declare namespace GetAllHostsCommand {
|
|
86
71
|
fingerprint: string | null;
|
87
72
|
isDisabled: boolean;
|
88
73
|
securityLayer: "DEFAULT" | "TLS" | "NONE";
|
89
|
-
|
90
|
-
|
91
|
-
configProfileInboundUuid: string | null;
|
92
|
-
};
|
93
|
-
serverDescription: string | null;
|
74
|
+
configProfileUuid: string | null;
|
75
|
+
configProfileInboundUuid: string | null;
|
94
76
|
xHttpExtraParams?: unknown;
|
95
77
|
}[];
|
96
78
|
}, {
|
@@ -105,11 +87,8 @@ export declare namespace GetAllHostsCommand {
|
|
105
87
|
host: string | null;
|
106
88
|
alpn: string | null;
|
107
89
|
fingerprint: string | null;
|
108
|
-
|
109
|
-
|
110
|
-
configProfileInboundUuid: string | null;
|
111
|
-
};
|
112
|
-
serverDescription: string | null;
|
90
|
+
configProfileUuid: string | null;
|
91
|
+
configProfileInboundUuid: string | null;
|
113
92
|
isDisabled?: boolean | undefined;
|
114
93
|
securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
|
115
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,17 +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
|
-
}>;
|
43
|
-
serverDescription: z.ZodNullable<z.ZodString>;
|
33
|
+
configProfileUuid: z.ZodNullable<z.ZodString>;
|
34
|
+
configProfileInboundUuid: z.ZodNullable<z.ZodString>;
|
44
35
|
}, "strip", z.ZodTypeAny, {
|
45
36
|
path: string | null;
|
46
37
|
uuid: string;
|
@@ -54,11 +45,8 @@ export declare namespace GetOneHostCommand {
|
|
54
45
|
fingerprint: string | null;
|
55
46
|
isDisabled: boolean;
|
56
47
|
securityLayer: "DEFAULT" | "TLS" | "NONE";
|
57
|
-
|
58
|
-
|
59
|
-
configProfileInboundUuid: string | null;
|
60
|
-
};
|
61
|
-
serverDescription: string | null;
|
48
|
+
configProfileUuid: string | null;
|
49
|
+
configProfileInboundUuid: string | null;
|
62
50
|
xHttpExtraParams?: unknown;
|
63
51
|
}, {
|
64
52
|
path: string | null;
|
@@ -71,11 +59,8 @@ export declare namespace GetOneHostCommand {
|
|
71
59
|
host: string | null;
|
72
60
|
alpn: string | null;
|
73
61
|
fingerprint: string | null;
|
74
|
-
|
75
|
-
|
76
|
-
configProfileInboundUuid: string | null;
|
77
|
-
};
|
78
|
-
serverDescription: string | null;
|
62
|
+
configProfileUuid: string | null;
|
63
|
+
configProfileInboundUuid: string | null;
|
79
64
|
isDisabled?: boolean | undefined;
|
80
65
|
securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
|
81
66
|
xHttpExtraParams?: unknown;
|
@@ -94,11 +79,8 @@ export declare namespace GetOneHostCommand {
|
|
94
79
|
fingerprint: string | null;
|
95
80
|
isDisabled: boolean;
|
96
81
|
securityLayer: "DEFAULT" | "TLS" | "NONE";
|
97
|
-
|
98
|
-
|
99
|
-
configProfileInboundUuid: string | null;
|
100
|
-
};
|
101
|
-
serverDescription: string | null;
|
82
|
+
configProfileUuid: string | null;
|
83
|
+
configProfileInboundUuid: string | null;
|
102
84
|
xHttpExtraParams?: unknown;
|
103
85
|
};
|
104
86
|
}, {
|
@@ -113,11 +95,8 @@ export declare namespace GetOneHostCommand {
|
|
113
95
|
host: string | null;
|
114
96
|
alpn: string | null;
|
115
97
|
fingerprint: string | null;
|
116
|
-
|
117
|
-
|
118
|
-
configProfileInboundUuid: string | null;
|
119
|
-
};
|
120
|
-
serverDescription: string | null;
|
98
|
+
configProfileUuid: string | null;
|
99
|
+
configProfileInboundUuid: string | null;
|
121
100
|
isDisabled?: boolean | undefined;
|
122
101
|
securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
|
123
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,17 +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
|
-
}>;
|
35
|
-
serverDescription: z.ZodNullable<z.ZodString>;
|
25
|
+
configProfileUuid: z.ZodNullable<z.ZodString>;
|
26
|
+
configProfileInboundUuid: z.ZodNullable<z.ZodString>;
|
36
27
|
}, "uuid" | "viewPosition">, "strip", z.ZodTypeAny, {
|
37
28
|
uuid: string;
|
38
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,28 +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
|
-
}>;
|
34
|
-
serverDescription: z.ZodNullable<z.ZodString>;
|
24
|
+
configProfileUuid: z.ZodNullable<z.ZodString>;
|
25
|
+
configProfileInboundUuid: z.ZodNullable<z.ZodString>;
|
35
26
|
}, "uuid"> & {
|
36
|
-
|
37
|
-
|
38
|
-
configProfileInboundUuid: z.ZodString;
|
39
|
-
}, "strip", z.ZodTypeAny, {
|
40
|
-
configProfileUuid: string;
|
41
|
-
configProfileInboundUuid: string;
|
42
|
-
}, {
|
43
|
-
configProfileUuid: string;
|
44
|
-
configProfileInboundUuid: string;
|
45
|
-
}>>;
|
27
|
+
configProfileUuid: z.ZodOptional<z.ZodString>;
|
28
|
+
configProfileInboundUuid: z.ZodOptional<z.ZodString>;
|
46
29
|
remark: z.ZodOptional<z.ZodString>;
|
47
30
|
address: z.ZodOptional<z.ZodString>;
|
48
31
|
port: z.ZodOptional<z.ZodNumber>;
|
@@ -68,6 +51,7 @@ export declare namespace UpdateHostCommand {
|
|
68
51
|
readonly RANDOM: "random";
|
69
52
|
readonly RANDOMIZED: "randomized";
|
70
53
|
}>>>;
|
54
|
+
allowInsecure: z.ZodOptional<z.ZodBoolean>;
|
71
55
|
isDisabled: z.ZodOptional<z.ZodBoolean>;
|
72
56
|
securityLayer: z.ZodOptional<z.ZodNativeEnum<{
|
73
57
|
readonly DEFAULT: "DEFAULT";
|
@@ -75,7 +59,6 @@ export declare namespace UpdateHostCommand {
|
|
75
59
|
readonly NONE: "NONE";
|
76
60
|
}>>;
|
77
61
|
xHttpExtraParams: z.ZodOptional<z.ZodNullable<z.ZodUnknown>>;
|
78
|
-
serverDescription: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
79
62
|
}, "strip", z.ZodTypeAny, {
|
80
63
|
uuid: string;
|
81
64
|
path?: string | undefined;
|
@@ -89,11 +72,9 @@ export declare namespace UpdateHostCommand {
|
|
89
72
|
isDisabled?: boolean | undefined;
|
90
73
|
securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
|
91
74
|
xHttpExtraParams?: unknown;
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
} | undefined;
|
96
|
-
serverDescription?: string | null | undefined;
|
75
|
+
configProfileUuid?: string | undefined;
|
76
|
+
configProfileInboundUuid?: string | undefined;
|
77
|
+
allowInsecure?: boolean | undefined;
|
97
78
|
}, {
|
98
79
|
uuid: string;
|
99
80
|
path?: string | undefined;
|
@@ -107,11 +88,9 @@ export declare namespace UpdateHostCommand {
|
|
107
88
|
isDisabled?: boolean | undefined;
|
108
89
|
securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
|
109
90
|
xHttpExtraParams?: unknown;
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
} | undefined;
|
114
|
-
serverDescription?: string | null | undefined;
|
91
|
+
configProfileUuid?: string | undefined;
|
92
|
+
configProfileInboundUuid?: string | undefined;
|
93
|
+
allowInsecure?: boolean | undefined;
|
115
94
|
}>;
|
116
95
|
type Request = z.infer<typeof RequestSchema>;
|
117
96
|
const ResponseSchema: z.ZodObject<{
|
@@ -133,17 +112,8 @@ export declare namespace UpdateHostCommand {
|
|
133
112
|
readonly NONE: "NONE";
|
134
113
|
}>>;
|
135
114
|
xHttpExtraParams: z.ZodNullable<z.ZodUnknown>;
|
136
|
-
|
137
|
-
|
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>;
|
115
|
+
configProfileUuid: z.ZodNullable<z.ZodString>;
|
116
|
+
configProfileInboundUuid: z.ZodNullable<z.ZodString>;
|
147
117
|
}, "strip", z.ZodTypeAny, {
|
148
118
|
path: string | null;
|
149
119
|
uuid: string;
|
@@ -157,11 +127,8 @@ export declare namespace UpdateHostCommand {
|
|
157
127
|
fingerprint: string | null;
|
158
128
|
isDisabled: boolean;
|
159
129
|
securityLayer: "DEFAULT" | "TLS" | "NONE";
|
160
|
-
|
161
|
-
|
162
|
-
configProfileInboundUuid: string | null;
|
163
|
-
};
|
164
|
-
serverDescription: string | null;
|
130
|
+
configProfileUuid: string | null;
|
131
|
+
configProfileInboundUuid: string | null;
|
165
132
|
xHttpExtraParams?: unknown;
|
166
133
|
}, {
|
167
134
|
path: string | null;
|
@@ -174,11 +141,8 @@ export declare namespace UpdateHostCommand {
|
|
174
141
|
host: string | null;
|
175
142
|
alpn: string | null;
|
176
143
|
fingerprint: string | null;
|
177
|
-
|
178
|
-
|
179
|
-
configProfileInboundUuid: string | null;
|
180
|
-
};
|
181
|
-
serverDescription: string | null;
|
144
|
+
configProfileUuid: string | null;
|
145
|
+
configProfileInboundUuid: string | null;
|
182
146
|
isDisabled?: boolean | undefined;
|
183
147
|
securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
|
184
148
|
xHttpExtraParams?: unknown;
|
@@ -197,11 +161,8 @@ export declare namespace UpdateHostCommand {
|
|
197
161
|
fingerprint: string | null;
|
198
162
|
isDisabled: boolean;
|
199
163
|
securityLayer: "DEFAULT" | "TLS" | "NONE";
|
200
|
-
|
201
|
-
|
202
|
-
configProfileInboundUuid: string | null;
|
203
|
-
};
|
204
|
-
serverDescription: string | null;
|
164
|
+
configProfileUuid: string | null;
|
165
|
+
configProfileInboundUuid: string | null;
|
205
166
|
xHttpExtraParams?: unknown;
|
206
167
|
};
|
207
168
|
}, {
|
@@ -216,11 +177,8 @@ export declare namespace UpdateHostCommand {
|
|
216
177
|
host: string | null;
|
217
178
|
alpn: string | null;
|
218
179
|
fingerprint: string | null;
|
219
|
-
|
220
|
-
|
221
|
-
configProfileInboundUuid: string | null;
|
222
|
-
};
|
223
|
-
serverDescription: string | null;
|
180
|
+
configProfileUuid: string | null;
|
181
|
+
configProfileInboundUuid: string | null;
|
224
182
|
isDisabled?: boolean | undefined;
|
225
183
|
securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
|
226
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"}
|