@remnawave/backend-contract 2.2.31 → 2.2.33
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/nodes.d.ts +1 -0
- package/build/backend/api/controllers/nodes.d.ts.map +1 -1
- package/build/backend/api/controllers/nodes.js +1 -0
- package/build/backend/api/routes.d.ts +1 -0
- package/build/backend/api/routes.d.ts.map +1 -1
- package/build/backend/api/routes.js +1 -0
- package/build/backend/commands/external-squads/create-external-squad.command.d.ts +5 -0
- package/build/backend/commands/external-squads/create-external-squad.command.d.ts.map +1 -1
- package/build/backend/commands/external-squads/get-external-squad-by-uuid.command.d.ts +5 -0
- package/build/backend/commands/external-squads/get-external-squad-by-uuid.command.d.ts.map +1 -1
- package/build/backend/commands/external-squads/get-external-squads.command.d.ts +7 -0
- package/build/backend/commands/external-squads/get-external-squads.command.d.ts.map +1 -1
- package/build/backend/commands/external-squads/update-external-squad.command.d.ts +8 -0
- package/build/backend/commands/external-squads/update-external-squad.command.d.ts.map +1 -1
- package/build/backend/commands/external-squads/update-external-squad.command.js +1 -0
- package/build/backend/commands/nodes/actions/index.d.ts +1 -0
- package/build/backend/commands/nodes/actions/index.d.ts.map +1 -1
- package/build/backend/commands/nodes/actions/index.js +1 -0
- package/build/backend/commands/nodes/actions/reset-traffic.command.d.ts +33 -0
- package/build/backend/commands/nodes/actions/reset-traffic.command.d.ts.map +1 -0
- package/build/backend/commands/nodes/actions/reset-traffic.command.js +20 -0
- package/build/backend/constants/errors/errors.d.ts +5 -0
- package/build/backend/constants/errors/errors.d.ts.map +1 -1
- package/build/backend/constants/errors/errors.js +5 -0
- package/build/backend/models/external-squad.schema.d.ts +3 -0
- package/build/backend/models/external-squad.schema.d.ts.map +1 -1
- package/build/backend/models/external-squad.schema.js +1 -0
- package/build/backend/models/external-squads/external-squad-response-headers.schema.d.ts +3 -0
- package/build/backend/models/external-squads/external-squad-response-headers.schema.d.ts.map +1 -0
- package/build/backend/models/external-squads/external-squad-response-headers.schema.js +5 -0
- package/build/backend/models/external-squads/index.d.ts +1 -0
- package/build/backend/models/external-squads/index.d.ts.map +1 -1
- package/build/backend/models/external-squads/index.js +1 -0
- package/build/backend/models/remnawave-settings/oauth2-settings.schema.js +1 -1
- package/build/backend/models/remnawave-settings/passkey-settings.schema.js +2 -2
- package/build/frontend/api/controllers/nodes.js +1 -0
- package/build/frontend/api/routes.js +1 -0
- package/build/frontend/commands/external-squads/update-external-squad.command.js +1 -0
- package/build/frontend/commands/nodes/actions/index.js +1 -0
- package/build/frontend/commands/nodes/actions/reset-traffic.command.js +20 -0
- package/build/frontend/constants/errors/errors.js +5 -0
- package/build/frontend/models/external-squad.schema.js +1 -0
- package/build/frontend/models/external-squads/external-squad-response-headers.schema.js +5 -0
- package/build/frontend/models/external-squads/index.js +1 -0
- package/build/frontend/models/remnawave-settings/oauth2-settings.schema.js +1 -1
- package/build/frontend/models/remnawave-settings/passkey-settings.schema.js +2 -2
- package/package.json +1 -1
|
@@ -10,6 +10,7 @@ export declare const NODES_ROUTES: {
|
|
|
10
10
|
readonly ENABLE: (uuid: string) => string;
|
|
11
11
|
readonly DISABLE: (uuid: string) => string;
|
|
12
12
|
readonly RESTART: (uuid: string) => string;
|
|
13
|
+
readonly RESET_TRAFFIC: (uuid: string) => string;
|
|
13
14
|
readonly RESTART_ALL: "actions/restart-all";
|
|
14
15
|
readonly REORDER: "actions/reorder";
|
|
15
16
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nodes.d.ts","sourceRoot":"","sources":["../../../../api/controllers/nodes.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,EAAG,OAAgB,CAAC;AAEjD,eAAO,MAAM,kBAAkB,EAAG,SAAkB,CAAC;AAErD,eAAO,MAAM,YAAY;;;iCAGD,MAAM;;4BAEX,MAAM;;gCAGF,MAAM;iCACL,MAAM;iCACN,MAAM;;;;;;
|
|
1
|
+
{"version":3,"file":"nodes.d.ts","sourceRoot":"","sources":["../../../../api/controllers/nodes.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,EAAG,OAAgB,CAAC;AAEjD,eAAO,MAAM,kBAAkB,EAAG,SAAkB,CAAC;AAErD,eAAO,MAAM,YAAY;;;iCAGD,MAAM;;4BAEX,MAAM;;gCAGF,MAAM;iCACL,MAAM;iCACN,MAAM;uCACA,MAAM;;;;;;6CAQA,MAAM;;;CAGhC,CAAC"}
|
|
@@ -13,6 +13,7 @@ exports.NODES_ROUTES = {
|
|
|
13
13
|
ENABLE: (uuid) => `${uuid}/${exports.NODE_ACTIONS_ROUTE}/enable`,
|
|
14
14
|
DISABLE: (uuid) => `${uuid}/${exports.NODE_ACTIONS_ROUTE}/disable`,
|
|
15
15
|
RESTART: (uuid) => `${uuid}/${exports.NODE_ACTIONS_ROUTE}/restart`,
|
|
16
|
+
RESET_TRAFFIC: (uuid) => `${uuid}/${exports.NODE_ACTIONS_ROUTE}/reset-traffic`,
|
|
16
17
|
RESTART_ALL: `${exports.NODE_ACTIONS_ROUTE}/restart-all`,
|
|
17
18
|
REORDER: `${exports.NODE_ACTIONS_ROUTE}/reorder`,
|
|
18
19
|
},
|
|
@@ -42,6 +42,7 @@ export declare const REST_API: {
|
|
|
42
42
|
readonly DISABLE: (uuid: string) => string;
|
|
43
43
|
readonly RESTART: (uuid: string) => string;
|
|
44
44
|
readonly RESTART_ALL: "/api/nodes/actions/restart-all";
|
|
45
|
+
readonly RESET_TRAFFIC: (uuid: string) => string;
|
|
45
46
|
readonly REORDER: "/api/nodes/actions/reorder";
|
|
46
47
|
};
|
|
47
48
|
readonly STATS: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../../../api/routes.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,IAAI,EAAG,MAAe,CAAC;AACpC,eAAO,MAAM,YAAY,EAAG,UAAmB,CAAC;AAChD,eAAO,MAAM,WAAW,EAAG,SAAkB,CAAC;AAC9C,eAAO,MAAM,cAAc,EAAG,SAAkB,CAAC;AAEjD,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;gCAwBE,MAAM;;;;;;;;;qCAYD,MAAM;;gCAGX,MAAM;;oCAIF,MAAM;qCAIL,MAAM;qCAIN,MAAM
|
|
1
|
+
{"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../../../api/routes.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,IAAI,EAAG,MAAe,CAAC;AACpC,eAAO,MAAM,YAAY,EAAG,UAAmB,CAAC;AAChD,eAAO,MAAM,WAAW,EAAG,SAAkB,CAAC;AAC9C,eAAO,MAAM,cAAc,EAAG,SAAkB,CAAC;AAEjD,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;gCAwBE,MAAM;;;;;;;;;qCAYD,MAAM;;gCAGX,MAAM;;oCAIF,MAAM;qCAIL,MAAM;qCAIN,MAAM;;2CAKA,MAAM;;;;;iDASA,MAAM;;;;;;;;gCAWvB,MAAM;qCAGD,MAAM;0CAED,MAAM;sDAEM,MAAM;;qCAMvB,MAAM;oCAIP,MAAM;2CAIC,MAAM;iDAIA,MAAM;;;6CAOV,MAAM;0CAIT,MAAM;2DAIW,MAAM;+CAIlB,MAAM;oCAIjB,MAAM;gCAIV,MAAM;;;;;;;;;;;;;;;gDAmBU,MAAM;;;;;;;kCAWpB,MAAM;0CAEE,MAAM;uCAET,MAAM;;;;;;qCASR,MAAM;gCAEX,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6BAmCT,MAAM;;gCAKH,MAAM;;;;;;;;;;;mDAca,MAAM;;;;;;;;0CAWf,MAAM;kCAId,MAAM;6CAIK,MAAM;iDAIF,MAAM;;;;;;;qCAUlB,MAAM;gCAIX,MAAM;sDAIgB,MAAM;6DAIC,MAAM;;;;;;;qCAU9B,MAAM;gCAIX,MAAM;0CAII,MAAM;;uCAKT,MAAM;0CAEH,MAAM;;;;;;;yCASP,MAAM;8CAED,MAAM;;;;6CAMP,MAAM;;;gDAKH,MAAM;;;;;;;;;;;;;;;;qCAiBjB,MAAM;gCAIX,MAAM;;uCAKC,MAAM;0CAEH,MAAM;;;;;;;CAQ7B,CAAC"}
|
|
@@ -79,6 +79,7 @@ exports.REST_API = {
|
|
|
79
79
|
DISABLE: (uuid) => `${exports.ROOT}/${CONTROLLERS.NODES_CONTROLLER}/${CONTROLLERS.NODES_ROUTES.ACTIONS.DISABLE(uuid)}`,
|
|
80
80
|
RESTART: (uuid) => `${exports.ROOT}/${CONTROLLERS.NODES_CONTROLLER}/${CONTROLLERS.NODES_ROUTES.ACTIONS.RESTART(uuid)}`,
|
|
81
81
|
RESTART_ALL: `${exports.ROOT}/${CONTROLLERS.NODES_CONTROLLER}/${CONTROLLERS.NODES_ROUTES.ACTIONS.RESTART_ALL}`,
|
|
82
|
+
RESET_TRAFFIC: (uuid) => `${exports.ROOT}/${CONTROLLERS.NODES_CONTROLLER}/${CONTROLLERS.NODES_ROUTES.ACTIONS.RESET_TRAFFIC(uuid)}`,
|
|
82
83
|
REORDER: `${exports.ROOT}/${CONTROLLERS.NODES_CONTROLLER}/${CONTROLLERS.NODES_ROUTES.ACTIONS.REORDER}`,
|
|
83
84
|
},
|
|
84
85
|
STATS: {
|
|
@@ -83,6 +83,7 @@ export declare namespace CreateExternalSquadCommand {
|
|
|
83
83
|
serverDescription?: string | null | undefined;
|
|
84
84
|
vlessRouteId?: number | null | undefined;
|
|
85
85
|
}>>;
|
|
86
|
+
responseHeaders: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
86
87
|
createdAt: z.ZodEffects<z.ZodString, Date, string>;
|
|
87
88
|
updatedAt: z.ZodEffects<z.ZodString, Date, string>;
|
|
88
89
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -113,6 +114,7 @@ export declare namespace CreateExternalSquadCommand {
|
|
|
113
114
|
serverDescription?: string | null | undefined;
|
|
114
115
|
vlessRouteId?: number | null | undefined;
|
|
115
116
|
} | null;
|
|
117
|
+
responseHeaders: Record<string, string> | null;
|
|
116
118
|
}, {
|
|
117
119
|
uuid: string;
|
|
118
120
|
createdAt: string;
|
|
@@ -141,6 +143,7 @@ export declare namespace CreateExternalSquadCommand {
|
|
|
141
143
|
serverDescription?: string | null | undefined;
|
|
142
144
|
vlessRouteId?: number | null | undefined;
|
|
143
145
|
} | null;
|
|
146
|
+
responseHeaders: Record<string, string> | null;
|
|
144
147
|
}>;
|
|
145
148
|
}, "strip", z.ZodTypeAny, {
|
|
146
149
|
response: {
|
|
@@ -171,6 +174,7 @@ export declare namespace CreateExternalSquadCommand {
|
|
|
171
174
|
serverDescription?: string | null | undefined;
|
|
172
175
|
vlessRouteId?: number | null | undefined;
|
|
173
176
|
} | null;
|
|
177
|
+
responseHeaders: Record<string, string> | null;
|
|
174
178
|
};
|
|
175
179
|
}, {
|
|
176
180
|
response: {
|
|
@@ -201,6 +205,7 @@ export declare namespace CreateExternalSquadCommand {
|
|
|
201
205
|
serverDescription?: string | null | undefined;
|
|
202
206
|
vlessRouteId?: number | null | undefined;
|
|
203
207
|
} | null;
|
|
208
|
+
responseHeaders: Record<string, string> | null;
|
|
204
209
|
};
|
|
205
210
|
}>;
|
|
206
211
|
type Response = z.infer<typeof ResponseSchema>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-external-squad.command.d.ts","sourceRoot":"","sources":["../../../../commands/external-squads/create-external-squad.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,0BAA0B,CAAC;IACjC,MAAM,GAAG,yBAAkC,CAAC;IAC5C,MAAM,OAAO,yBAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;MASxB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"create-external-squad.command.d.ts","sourceRoot":"","sources":["../../../../commands/external-squads/create-external-squad.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,0BAA0B,CAAC;IACjC,MAAM,GAAG,yBAAkC,CAAC;IAC5C,MAAM,OAAO,yBAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;MASxB,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"}
|
|
@@ -83,6 +83,7 @@ export declare namespace GetExternalSquadByUuidCommand {
|
|
|
83
83
|
serverDescription?: string | null | undefined;
|
|
84
84
|
vlessRouteId?: number | null | undefined;
|
|
85
85
|
}>>;
|
|
86
|
+
responseHeaders: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
86
87
|
createdAt: z.ZodEffects<z.ZodString, Date, string>;
|
|
87
88
|
updatedAt: z.ZodEffects<z.ZodString, Date, string>;
|
|
88
89
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -113,6 +114,7 @@ export declare namespace GetExternalSquadByUuidCommand {
|
|
|
113
114
|
serverDescription?: string | null | undefined;
|
|
114
115
|
vlessRouteId?: number | null | undefined;
|
|
115
116
|
} | null;
|
|
117
|
+
responseHeaders: Record<string, string> | null;
|
|
116
118
|
}, {
|
|
117
119
|
uuid: string;
|
|
118
120
|
createdAt: string;
|
|
@@ -141,6 +143,7 @@ export declare namespace GetExternalSquadByUuidCommand {
|
|
|
141
143
|
serverDescription?: string | null | undefined;
|
|
142
144
|
vlessRouteId?: number | null | undefined;
|
|
143
145
|
} | null;
|
|
146
|
+
responseHeaders: Record<string, string> | null;
|
|
144
147
|
}>;
|
|
145
148
|
}, "strip", z.ZodTypeAny, {
|
|
146
149
|
response: {
|
|
@@ -171,6 +174,7 @@ export declare namespace GetExternalSquadByUuidCommand {
|
|
|
171
174
|
serverDescription?: string | null | undefined;
|
|
172
175
|
vlessRouteId?: number | null | undefined;
|
|
173
176
|
} | null;
|
|
177
|
+
responseHeaders: Record<string, string> | null;
|
|
174
178
|
};
|
|
175
179
|
}, {
|
|
176
180
|
response: {
|
|
@@ -201,6 +205,7 @@ export declare namespace GetExternalSquadByUuidCommand {
|
|
|
201
205
|
serverDescription?: string | null | undefined;
|
|
202
206
|
vlessRouteId?: number | null | undefined;
|
|
203
207
|
} | null;
|
|
208
|
+
responseHeaders: Record<string, string> | null;
|
|
204
209
|
};
|
|
205
210
|
}>;
|
|
206
211
|
type Response = z.infer<typeof ResponseSchema>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-external-squad-by-uuid.command.d.ts","sourceRoot":"","sources":["../../../../commands/external-squads/get-external-squad-by-uuid.command.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
|
|
1
|
+
{"version":3,"file":"get-external-squad-by-uuid.command.d.ts","sourceRoot":"","sources":["../../../../commands/external-squads/get-external-squad-by-uuid.command.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"}
|
|
@@ -77,6 +77,7 @@ export declare namespace GetExternalSquadsCommand {
|
|
|
77
77
|
serverDescription?: string | null | undefined;
|
|
78
78
|
vlessRouteId?: number | null | undefined;
|
|
79
79
|
}>>;
|
|
80
|
+
responseHeaders: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
80
81
|
createdAt: z.ZodEffects<z.ZodString, Date, string>;
|
|
81
82
|
updatedAt: z.ZodEffects<z.ZodString, Date, string>;
|
|
82
83
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -107,6 +108,7 @@ export declare namespace GetExternalSquadsCommand {
|
|
|
107
108
|
serverDescription?: string | null | undefined;
|
|
108
109
|
vlessRouteId?: number | null | undefined;
|
|
109
110
|
} | null;
|
|
111
|
+
responseHeaders: Record<string, string> | null;
|
|
110
112
|
}, {
|
|
111
113
|
uuid: string;
|
|
112
114
|
createdAt: string;
|
|
@@ -135,6 +137,7 @@ export declare namespace GetExternalSquadsCommand {
|
|
|
135
137
|
serverDescription?: string | null | undefined;
|
|
136
138
|
vlessRouteId?: number | null | undefined;
|
|
137
139
|
} | null;
|
|
140
|
+
responseHeaders: Record<string, string> | null;
|
|
138
141
|
}>, "many">;
|
|
139
142
|
}, "strip", z.ZodTypeAny, {
|
|
140
143
|
total: number;
|
|
@@ -166,6 +169,7 @@ export declare namespace GetExternalSquadsCommand {
|
|
|
166
169
|
serverDescription?: string | null | undefined;
|
|
167
170
|
vlessRouteId?: number | null | undefined;
|
|
168
171
|
} | null;
|
|
172
|
+
responseHeaders: Record<string, string> | null;
|
|
169
173
|
}[];
|
|
170
174
|
}, {
|
|
171
175
|
total: number;
|
|
@@ -197,6 +201,7 @@ export declare namespace GetExternalSquadsCommand {
|
|
|
197
201
|
serverDescription?: string | null | undefined;
|
|
198
202
|
vlessRouteId?: number | null | undefined;
|
|
199
203
|
} | null;
|
|
204
|
+
responseHeaders: Record<string, string> | null;
|
|
200
205
|
}[];
|
|
201
206
|
}>;
|
|
202
207
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -230,6 +235,7 @@ export declare namespace GetExternalSquadsCommand {
|
|
|
230
235
|
serverDescription?: string | null | undefined;
|
|
231
236
|
vlessRouteId?: number | null | undefined;
|
|
232
237
|
} | null;
|
|
238
|
+
responseHeaders: Record<string, string> | null;
|
|
233
239
|
}[];
|
|
234
240
|
};
|
|
235
241
|
}, {
|
|
@@ -263,6 +269,7 @@ export declare namespace GetExternalSquadsCommand {
|
|
|
263
269
|
serverDescription?: string | null | undefined;
|
|
264
270
|
vlessRouteId?: number | null | undefined;
|
|
265
271
|
} | null;
|
|
272
|
+
responseHeaders: Record<string, string> | null;
|
|
266
273
|
}[];
|
|
267
274
|
};
|
|
268
275
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-external-squads.command.d.ts","sourceRoot":"","sources":["../../../../commands/external-squads/get-external-squads.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,wBAAwB,CAAC;IAC/B,MAAM,GAAG,yBAA+B,CAAC;IACzC,MAAM,OAAO,yBAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"get-external-squads.command.d.ts","sourceRoot":"","sources":["../../../../commands/external-squads/get-external-squads.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,wBAAwB,CAAC;IAC/B,MAAM,GAAG,yBAA+B,CAAC;IACzC,MAAM,OAAO,yBAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAKzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
|
@@ -67,6 +67,7 @@ export declare namespace UpdateExternalSquadCommand {
|
|
|
67
67
|
serverDescription?: string | null | undefined;
|
|
68
68
|
vlessRouteId?: number | null | undefined;
|
|
69
69
|
}>>;
|
|
70
|
+
responseHeaders: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
|
|
70
71
|
}, "strip", z.ZodTypeAny, {
|
|
71
72
|
uuid: string;
|
|
72
73
|
name?: string | undefined;
|
|
@@ -90,6 +91,7 @@ export declare namespace UpdateExternalSquadCommand {
|
|
|
90
91
|
serverDescription?: string | null | undefined;
|
|
91
92
|
vlessRouteId?: number | null | undefined;
|
|
92
93
|
} | undefined;
|
|
94
|
+
responseHeaders?: Record<string, string> | null | undefined;
|
|
93
95
|
}, {
|
|
94
96
|
uuid: string;
|
|
95
97
|
name?: string | undefined;
|
|
@@ -113,6 +115,7 @@ export declare namespace UpdateExternalSquadCommand {
|
|
|
113
115
|
serverDescription?: string | null | undefined;
|
|
114
116
|
vlessRouteId?: number | null | undefined;
|
|
115
117
|
} | undefined;
|
|
118
|
+
responseHeaders?: Record<string, string> | null | undefined;
|
|
116
119
|
}>;
|
|
117
120
|
type Request = z.infer<typeof RequestSchema>;
|
|
118
121
|
const ResponseSchema: z.ZodObject<{
|
|
@@ -187,6 +190,7 @@ export declare namespace UpdateExternalSquadCommand {
|
|
|
187
190
|
serverDescription?: string | null | undefined;
|
|
188
191
|
vlessRouteId?: number | null | undefined;
|
|
189
192
|
}>>;
|
|
193
|
+
responseHeaders: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
190
194
|
createdAt: z.ZodEffects<z.ZodString, Date, string>;
|
|
191
195
|
updatedAt: z.ZodEffects<z.ZodString, Date, string>;
|
|
192
196
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -217,6 +221,7 @@ export declare namespace UpdateExternalSquadCommand {
|
|
|
217
221
|
serverDescription?: string | null | undefined;
|
|
218
222
|
vlessRouteId?: number | null | undefined;
|
|
219
223
|
} | null;
|
|
224
|
+
responseHeaders: Record<string, string> | null;
|
|
220
225
|
}, {
|
|
221
226
|
uuid: string;
|
|
222
227
|
createdAt: string;
|
|
@@ -245,6 +250,7 @@ export declare namespace UpdateExternalSquadCommand {
|
|
|
245
250
|
serverDescription?: string | null | undefined;
|
|
246
251
|
vlessRouteId?: number | null | undefined;
|
|
247
252
|
} | null;
|
|
253
|
+
responseHeaders: Record<string, string> | null;
|
|
248
254
|
}>;
|
|
249
255
|
}, "strip", z.ZodTypeAny, {
|
|
250
256
|
response: {
|
|
@@ -275,6 +281,7 @@ export declare namespace UpdateExternalSquadCommand {
|
|
|
275
281
|
serverDescription?: string | null | undefined;
|
|
276
282
|
vlessRouteId?: number | null | undefined;
|
|
277
283
|
} | null;
|
|
284
|
+
responseHeaders: Record<string, string> | null;
|
|
278
285
|
};
|
|
279
286
|
}, {
|
|
280
287
|
response: {
|
|
@@ -305,6 +312,7 @@ export declare namespace UpdateExternalSquadCommand {
|
|
|
305
312
|
serverDescription?: string | null | undefined;
|
|
306
313
|
vlessRouteId?: number | null | undefined;
|
|
307
314
|
} | null;
|
|
315
|
+
responseHeaders: Record<string, string> | null;
|
|
308
316
|
};
|
|
309
317
|
}>;
|
|
310
318
|
type Response = z.infer<typeof ResponseSchema>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-external-squad.command.d.ts","sourceRoot":"","sources":["../../../../commands/external-squads/update-external-squad.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"update-external-squad.command.d.ts","sourceRoot":"","sources":["../../../../commands/external-squads/update-external-squad.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAWxB,yBAAiB,0BAA0B,CAAC;IACjC,MAAM,GAAG,yBAAkC,CAAC;IAC5C,MAAM,OAAO,yBAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAsBxB,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"}
|
|
@@ -26,6 +26,7 @@ var UpdateExternalSquadCommand;
|
|
|
26
26
|
.optional(),
|
|
27
27
|
subscriptionSettings: models_1.ExternalSquadSubscriptionSettingsSchema.optional(),
|
|
28
28
|
hostOverrides: models_1.ExternalSquadHostOverridesSchema.optional(),
|
|
29
|
+
responseHeaders: models_1.ExternalSquadResponseHeadersSchema.optional(),
|
|
29
30
|
});
|
|
30
31
|
UpdateExternalSquadCommand.ResponseSchema = zod_1.z.object({
|
|
31
32
|
response: models_1.ExternalSquadSchema,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../commands/nodes/actions/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../commands/nodes/actions/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC"}
|
|
@@ -17,5 +17,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./disable.command"), exports);
|
|
18
18
|
__exportStar(require("./enable.command"), exports);
|
|
19
19
|
__exportStar(require("./reorder.command"), exports);
|
|
20
|
+
__exportStar(require("./reset-traffic.command"), exports);
|
|
20
21
|
__exportStar(require("./restart-all.command"), exports);
|
|
21
22
|
__exportStar(require("./restart.command"), exports);
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare namespace ResetNodeTrafficCommand {
|
|
3
|
+
const url: (uuid: string) => string;
|
|
4
|
+
const TSQ_url: string;
|
|
5
|
+
const endpointDetails: import("../../../constants").EndpointDetails;
|
|
6
|
+
const RequestSchema: z.ZodObject<{
|
|
7
|
+
uuid: z.ZodString;
|
|
8
|
+
}, "strip", z.ZodTypeAny, {
|
|
9
|
+
uuid: string;
|
|
10
|
+
}, {
|
|
11
|
+
uuid: string;
|
|
12
|
+
}>;
|
|
13
|
+
type Request = z.infer<typeof RequestSchema>;
|
|
14
|
+
const ResponseSchema: z.ZodObject<{
|
|
15
|
+
response: z.ZodObject<{
|
|
16
|
+
eventSent: z.ZodBoolean;
|
|
17
|
+
}, "strip", z.ZodTypeAny, {
|
|
18
|
+
eventSent: boolean;
|
|
19
|
+
}, {
|
|
20
|
+
eventSent: boolean;
|
|
21
|
+
}>;
|
|
22
|
+
}, "strip", z.ZodTypeAny, {
|
|
23
|
+
response: {
|
|
24
|
+
eventSent: boolean;
|
|
25
|
+
};
|
|
26
|
+
}, {
|
|
27
|
+
response: {
|
|
28
|
+
eventSent: boolean;
|
|
29
|
+
};
|
|
30
|
+
}>;
|
|
31
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
32
|
+
}
|
|
33
|
+
//# sourceMappingURL=reset-traffic.command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reset-traffic.command.d.ts","sourceRoot":"","sources":["../../../../../commands/nodes/actions/reset-traffic.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,uBAAuB,CAAC;IAC9B,MAAM,GAAG,0BAAuC,CAAC;IACjD,MAAM,OAAO,QAAe,CAAC;IAE7B,MAAM,eAAe,8CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,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"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ResetNodeTrafficCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const constants_1 = require("../../../constants");
|
|
6
|
+
const api_1 = require("../../../api");
|
|
7
|
+
var ResetNodeTrafficCommand;
|
|
8
|
+
(function (ResetNodeTrafficCommand) {
|
|
9
|
+
ResetNodeTrafficCommand.url = api_1.REST_API.NODES.ACTIONS.RESET_TRAFFIC;
|
|
10
|
+
ResetNodeTrafficCommand.TSQ_url = ResetNodeTrafficCommand.url(':uuid');
|
|
11
|
+
ResetNodeTrafficCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.NODES_ROUTES.ACTIONS.RESET_TRAFFIC(':uuid'), 'post', 'Reset Node Traffic');
|
|
12
|
+
ResetNodeTrafficCommand.RequestSchema = zod_1.z.object({
|
|
13
|
+
uuid: zod_1.z.string().uuid(),
|
|
14
|
+
});
|
|
15
|
+
ResetNodeTrafficCommand.ResponseSchema = zod_1.z.object({
|
|
16
|
+
response: zod_1.z.object({
|
|
17
|
+
eventSent: zod_1.z.boolean(),
|
|
18
|
+
}),
|
|
19
|
+
});
|
|
20
|
+
})(ResetNodeTrafficCommand || (exports.ResetNodeTrafficCommand = ResetNodeTrafficCommand = {}));
|
|
@@ -1039,5 +1039,10 @@ export declare const ERRORS: {
|
|
|
1039
1039
|
readonly message: "Get computed config profile by UUID error";
|
|
1040
1040
|
readonly httpCode: 500;
|
|
1041
1041
|
};
|
|
1042
|
+
readonly RESET_NODE_TRAFFIC_ERROR: {
|
|
1043
|
+
readonly code: "A201";
|
|
1044
|
+
readonly message: "Reset node traffic error";
|
|
1045
|
+
readonly httpCode: 500;
|
|
1046
|
+
};
|
|
1042
1047
|
};
|
|
1043
1048
|
//# sourceMappingURL=errors.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../../constants/errors/errors.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAwJY,MAAM;;;;;;;;;;wCAUN,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCA4IN,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCA0rBN,MAAM
|
|
1
|
+
{"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../../constants/errors/errors.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAwJY,MAAM;;;;;;;;;;wCAUN,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCA4IN,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCA0rBN,MAAM;;;;;;;;;;;;;;;;CAgB3B,CAAC"}
|
|
@@ -70,6 +70,7 @@ export declare const ExternalSquadSchema: z.ZodObject<{
|
|
|
70
70
|
serverDescription?: string | null | undefined;
|
|
71
71
|
vlessRouteId?: number | null | undefined;
|
|
72
72
|
}>>;
|
|
73
|
+
responseHeaders: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
73
74
|
createdAt: z.ZodEffects<z.ZodString, Date, string>;
|
|
74
75
|
updatedAt: z.ZodEffects<z.ZodString, Date, string>;
|
|
75
76
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -100,6 +101,7 @@ export declare const ExternalSquadSchema: z.ZodObject<{
|
|
|
100
101
|
serverDescription?: string | null | undefined;
|
|
101
102
|
vlessRouteId?: number | null | undefined;
|
|
102
103
|
} | null;
|
|
104
|
+
responseHeaders: Record<string, string> | null;
|
|
103
105
|
}, {
|
|
104
106
|
uuid: string;
|
|
105
107
|
createdAt: string;
|
|
@@ -128,5 +130,6 @@ export declare const ExternalSquadSchema: z.ZodObject<{
|
|
|
128
130
|
serverDescription?: string | null | undefined;
|
|
129
131
|
vlessRouteId?: number | null | undefined;
|
|
130
132
|
} | null;
|
|
133
|
+
responseHeaders: Record<string, string> | null;
|
|
131
134
|
}>;
|
|
132
135
|
//# sourceMappingURL=external-squad.schema.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"external-squad.schema.d.ts","sourceRoot":"","sources":["../../../models/external-squad.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"external-squad.schema.d.ts","sourceRoot":"","sources":["../../../models/external-squad.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AASxB,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA0B9B,CAAC"}
|
|
@@ -16,6 +16,7 @@ exports.ExternalSquadSchema = zod_1.z.object({
|
|
|
16
16
|
})),
|
|
17
17
|
subscriptionSettings: zod_1.z.nullable(external_squads_1.ExternalSquadSubscriptionSettingsSchema),
|
|
18
18
|
hostOverrides: zod_1.z.nullable(external_squads_1.ExternalSquadHostOverridesSchema),
|
|
19
|
+
responseHeaders: external_squads_1.ExternalSquadResponseHeadersSchema,
|
|
19
20
|
createdAt: zod_1.z
|
|
20
21
|
.string()
|
|
21
22
|
.datetime()
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"external-squad-response-headers.schema.d.ts","sourceRoot":"","sources":["../../../../models/external-squads/external-squad-response-headers.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,kCAAkC,sDAA+C,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ExternalSquadResponseHeadersSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.ExternalSquadResponseHeadersSchema = zod_1.z.nullable(zod_1.z.record(zod_1.z.string(), zod_1.z.string()));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../models/external-squads/index.ts"],"names":[],"mappings":"AAAA,cAAc,wCAAwC,CAAC;AACvD,cAAc,+CAA+C,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../models/external-squads/index.ts"],"names":[],"mappings":"AAAA,cAAc,wCAAwC,CAAC;AACvD,cAAc,0CAA0C,CAAC;AACzD,cAAc,+CAA+C,CAAC"}
|
|
@@ -15,4 +15,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./external-squad-host-overrides.schema"), exports);
|
|
18
|
+
__exportStar(require("./external-squad-response-headers.schema"), exports);
|
|
18
19
|
__exportStar(require("./external-squad-subscription-settings.schema"), exports);
|
|
@@ -23,7 +23,7 @@ exports.Oauth2SettingsSchema = zod_1.default.object({
|
|
|
23
23
|
}
|
|
24
24
|
return false;
|
|
25
25
|
}, {
|
|
26
|
-
message: 'Must be a valid fully qualified domain name (FQDN), e.g. "
|
|
26
|
+
message: 'Must be a valid fully qualified domain name (FQDN), e.g. "docs.rw"',
|
|
27
27
|
})),
|
|
28
28
|
allowedEmails: zod_1.default.array(zod_1.default.string()),
|
|
29
29
|
}),
|
|
@@ -17,7 +17,7 @@ exports.PasskeySettingsSchema = zod_1.default.object({
|
|
|
17
17
|
}
|
|
18
18
|
return false;
|
|
19
19
|
}, {
|
|
20
|
-
message: 'Must be a valid fully qualified domain name (FQDN), e.g. "
|
|
20
|
+
message: 'Must be a valid fully qualified domain name (FQDN), e.g. "docs.rw"',
|
|
21
21
|
})),
|
|
22
22
|
origin: zod_1.default.nullable(zod_1.default.string().refine((value) => {
|
|
23
23
|
if (/^http:\/\/localhost:\d+$/.test(value)) {
|
|
@@ -28,6 +28,6 @@ exports.PasskeySettingsSchema = zod_1.default.object({
|
|
|
28
28
|
}
|
|
29
29
|
return false;
|
|
30
30
|
}, {
|
|
31
|
-
message: 'Must be a valid plain URL, e.g. "https://
|
|
31
|
+
message: 'Must be a valid plain URL, e.g. "https://docs.rw".',
|
|
32
32
|
})),
|
|
33
33
|
});
|
|
@@ -13,6 +13,7 @@ exports.NODES_ROUTES = {
|
|
|
13
13
|
ENABLE: (uuid) => `${uuid}/${exports.NODE_ACTIONS_ROUTE}/enable`,
|
|
14
14
|
DISABLE: (uuid) => `${uuid}/${exports.NODE_ACTIONS_ROUTE}/disable`,
|
|
15
15
|
RESTART: (uuid) => `${uuid}/${exports.NODE_ACTIONS_ROUTE}/restart`,
|
|
16
|
+
RESET_TRAFFIC: (uuid) => `${uuid}/${exports.NODE_ACTIONS_ROUTE}/reset-traffic`,
|
|
16
17
|
RESTART_ALL: `${exports.NODE_ACTIONS_ROUTE}/restart-all`,
|
|
17
18
|
REORDER: `${exports.NODE_ACTIONS_ROUTE}/reorder`,
|
|
18
19
|
},
|
|
@@ -79,6 +79,7 @@ exports.REST_API = {
|
|
|
79
79
|
DISABLE: (uuid) => `${exports.ROOT}/${CONTROLLERS.NODES_CONTROLLER}/${CONTROLLERS.NODES_ROUTES.ACTIONS.DISABLE(uuid)}`,
|
|
80
80
|
RESTART: (uuid) => `${exports.ROOT}/${CONTROLLERS.NODES_CONTROLLER}/${CONTROLLERS.NODES_ROUTES.ACTIONS.RESTART(uuid)}`,
|
|
81
81
|
RESTART_ALL: `${exports.ROOT}/${CONTROLLERS.NODES_CONTROLLER}/${CONTROLLERS.NODES_ROUTES.ACTIONS.RESTART_ALL}`,
|
|
82
|
+
RESET_TRAFFIC: (uuid) => `${exports.ROOT}/${CONTROLLERS.NODES_CONTROLLER}/${CONTROLLERS.NODES_ROUTES.ACTIONS.RESET_TRAFFIC(uuid)}`,
|
|
82
83
|
REORDER: `${exports.ROOT}/${CONTROLLERS.NODES_CONTROLLER}/${CONTROLLERS.NODES_ROUTES.ACTIONS.REORDER}`,
|
|
83
84
|
},
|
|
84
85
|
STATS: {
|
|
@@ -26,6 +26,7 @@ var UpdateExternalSquadCommand;
|
|
|
26
26
|
.optional(),
|
|
27
27
|
subscriptionSettings: models_1.ExternalSquadSubscriptionSettingsSchema.optional(),
|
|
28
28
|
hostOverrides: models_1.ExternalSquadHostOverridesSchema.optional(),
|
|
29
|
+
responseHeaders: models_1.ExternalSquadResponseHeadersSchema.optional(),
|
|
29
30
|
});
|
|
30
31
|
UpdateExternalSquadCommand.ResponseSchema = zod_1.z.object({
|
|
31
32
|
response: models_1.ExternalSquadSchema,
|
|
@@ -17,5 +17,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./disable.command"), exports);
|
|
18
18
|
__exportStar(require("./enable.command"), exports);
|
|
19
19
|
__exportStar(require("./reorder.command"), exports);
|
|
20
|
+
__exportStar(require("./reset-traffic.command"), exports);
|
|
20
21
|
__exportStar(require("./restart-all.command"), exports);
|
|
21
22
|
__exportStar(require("./restart.command"), exports);
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ResetNodeTrafficCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const constants_1 = require("../../../constants");
|
|
6
|
+
const api_1 = require("../../../api");
|
|
7
|
+
var ResetNodeTrafficCommand;
|
|
8
|
+
(function (ResetNodeTrafficCommand) {
|
|
9
|
+
ResetNodeTrafficCommand.url = api_1.REST_API.NODES.ACTIONS.RESET_TRAFFIC;
|
|
10
|
+
ResetNodeTrafficCommand.TSQ_url = ResetNodeTrafficCommand.url(':uuid');
|
|
11
|
+
ResetNodeTrafficCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.NODES_ROUTES.ACTIONS.RESET_TRAFFIC(':uuid'), 'post', 'Reset Node Traffic');
|
|
12
|
+
ResetNodeTrafficCommand.RequestSchema = zod_1.z.object({
|
|
13
|
+
uuid: zod_1.z.string().uuid(),
|
|
14
|
+
});
|
|
15
|
+
ResetNodeTrafficCommand.ResponseSchema = zod_1.z.object({
|
|
16
|
+
response: zod_1.z.object({
|
|
17
|
+
eventSent: zod_1.z.boolean(),
|
|
18
|
+
}),
|
|
19
|
+
});
|
|
20
|
+
})(ResetNodeTrafficCommand || (exports.ResetNodeTrafficCommand = ResetNodeTrafficCommand = {}));
|
|
@@ -16,6 +16,7 @@ exports.ExternalSquadSchema = zod_1.z.object({
|
|
|
16
16
|
})),
|
|
17
17
|
subscriptionSettings: zod_1.z.nullable(external_squads_1.ExternalSquadSubscriptionSettingsSchema),
|
|
18
18
|
hostOverrides: zod_1.z.nullable(external_squads_1.ExternalSquadHostOverridesSchema),
|
|
19
|
+
responseHeaders: external_squads_1.ExternalSquadResponseHeadersSchema,
|
|
19
20
|
createdAt: zod_1.z
|
|
20
21
|
.string()
|
|
21
22
|
.datetime()
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ExternalSquadResponseHeadersSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.ExternalSquadResponseHeadersSchema = zod_1.z.nullable(zod_1.z.record(zod_1.z.string(), zod_1.z.string()));
|
|
@@ -15,4 +15,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./external-squad-host-overrides.schema"), exports);
|
|
18
|
+
__exportStar(require("./external-squad-response-headers.schema"), exports);
|
|
18
19
|
__exportStar(require("./external-squad-subscription-settings.schema"), exports);
|
|
@@ -23,7 +23,7 @@ exports.Oauth2SettingsSchema = zod_1.default.object({
|
|
|
23
23
|
}
|
|
24
24
|
return false;
|
|
25
25
|
}, {
|
|
26
|
-
message: 'Must be a valid fully qualified domain name (FQDN), e.g. "
|
|
26
|
+
message: 'Must be a valid fully qualified domain name (FQDN), e.g. "docs.rw"',
|
|
27
27
|
})),
|
|
28
28
|
allowedEmails: zod_1.default.array(zod_1.default.string()),
|
|
29
29
|
}),
|
|
@@ -17,7 +17,7 @@ exports.PasskeySettingsSchema = zod_1.default.object({
|
|
|
17
17
|
}
|
|
18
18
|
return false;
|
|
19
19
|
}, {
|
|
20
|
-
message: 'Must be a valid fully qualified domain name (FQDN), e.g. "
|
|
20
|
+
message: 'Must be a valid fully qualified domain name (FQDN), e.g. "docs.rw"',
|
|
21
21
|
})),
|
|
22
22
|
origin: zod_1.default.nullable(zod_1.default.string().refine((value) => {
|
|
23
23
|
if (/^http:\/\/localhost:\d+$/.test(value)) {
|
|
@@ -28,6 +28,6 @@ exports.PasskeySettingsSchema = zod_1.default.object({
|
|
|
28
28
|
}
|
|
29
29
|
return false;
|
|
30
30
|
}, {
|
|
31
|
-
message: 'Must be a valid plain URL, e.g. "https://
|
|
31
|
+
message: 'Must be a valid plain URL, e.g. "https://docs.rw".',
|
|
32
32
|
})),
|
|
33
33
|
});
|