@remnawave/xtls-sdk 0.4.1 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/src/common/utils/decode-user/constants/account-types.d.ts.map +1 -1
- package/build/src/common/utils/decode-user/constants/account-types.js +3 -0
- package/build/src/handler/models/get-inbound-users/get-inbound-users.response.model.d.ts.map +1 -1
- package/build/src/stats/models/get-all-inbounds-stats/get-all-inbounds-stats.response.model.d.ts.map +1 -1
- package/build/src/stats/models/get-all-inbounds-stats/get-all-inbounds-stats.response.model.js +8 -8
- package/build/src/stats/models/get-all-outbounds-stats/get-all-outbounds-stats.response.model.d.ts.map +1 -1
- package/build/src/stats/models/get-all-outbounds-stats/get-all-outbounds-stats.response.model.js +8 -8
- package/build/src/stats/models/get-all-users-stats/get-all-users-stats.response.model.d.ts.map +1 -1
- package/build/src/stats/models/get-all-users-stats/get-all-users-stats.response.model.js +8 -8
- package/build/src/stats/models/get-inbound-stats/get-inbound-stats.response.model.d.ts.map +1 -1
- package/build/src/stats/models/get-inbound-stats/get-inbound-stats.response.model.js +8 -8
- package/build/src/stats/models/get-outbound-stats/get-outbound-stats.response.model.d.ts.map +1 -1
- package/build/src/stats/models/get-outbound-stats/get-outbound-stats.response.model.js +8 -8
- package/build/src/stats/models/get-user-stats/get-user-stats.response.model.d.ts.map +1 -1
- package/build/src/stats/models/get-user-stats/get-user-stats.response.model.js +8 -8
- package/build/src/xray-protos/app/commander/config.js +1 -1
- package/build/src/xray-protos/app/dispatcher/config.js +1 -1
- package/build/src/xray-protos/app/log/command/config.js +1 -1
- package/build/src/xray-protos/app/log/config.js +1 -1
- package/build/src/xray-protos/app/metrics/config.js +1 -1
- package/build/src/xray-protos/app/policy/config.js +1 -1
- package/build/src/xray-protos/app/proxyman/command/command.d.ts +1 -0
- package/build/src/xray-protos/app/proxyman/command/command.d.ts.map +1 -1
- package/build/src/xray-protos/app/proxyman/command/command.js +24 -7
- package/build/src/xray-protos/app/proxyman/config.d.ts +2 -1
- package/build/src/xray-protos/app/proxyman/config.d.ts.map +1 -1
- package/build/src/xray-protos/app/proxyman/config.js +17 -1
- package/build/src/xray-protos/app/reverse/config.js +1 -1
- package/build/src/xray-protos/app/router/command/command.d.ts +3 -0
- package/build/src/xray-protos/app/router/command/command.d.ts.map +1 -1
- package/build/src/xray-protos/app/router/command/command.js +49 -1
- package/build/src/xray-protos/app/router/config.d.ts +3 -1
- package/build/src/xray-protos/app/router/config.d.ts.map +1 -1
- package/build/src/xray-protos/app/router/config.js +50 -12
- package/build/src/xray-protos/app/stats/command/command.js +1 -1
- package/build/src/xray-protos/app/stats/config.js +1 -1
- package/build/src/xray-protos/app/version/config.d.ts +24 -0
- package/build/src/xray-protos/app/version/config.d.ts.map +1 -0
- package/build/src/xray-protos/app/version/config.js +101 -0
- package/build/src/xray-protos/common/log/log.js +1 -1
- package/build/src/xray-protos/common/net/address.js +1 -1
- package/build/src/xray-protos/common/net/destination.js +1 -1
- package/build/src/xray-protos/common/net/network.js +1 -1
- package/build/src/xray-protos/common/net/port.js +1 -1
- package/build/src/xray-protos/common/protocol/headers.js +1 -1
- package/build/src/xray-protos/common/protocol/server_spec.js +1 -1
- package/build/src/xray-protos/common/protocol/user.js +1 -1
- package/build/src/xray-protos/common/serial/typed_message.js +1 -1
- package/build/src/xray-protos/core/config.js +1 -1
- package/build/src/xray-protos/proxy/blackhole/config.js +1 -1
- package/build/src/xray-protos/proxy/dns/config.js +1 -1
- package/build/src/xray-protos/proxy/dokodemo/config.d.ts +9 -0
- package/build/src/xray-protos/proxy/dokodemo/config.d.ts.map +1 -1
- package/build/src/xray-protos/proxy/dokodemo/config.js +111 -2
- package/build/src/xray-protos/proxy/freedom/config.d.ts +5 -17
- package/build/src/xray-protos/proxy/freedom/config.d.ts.map +1 -1
- package/build/src/xray-protos/proxy/freedom/config.js +53 -91
- package/build/src/xray-protos/proxy/http/config.js +1 -1
- package/build/src/xray-protos/proxy/loopback/config.js +1 -1
- package/build/src/xray-protos/proxy/shadowsocks/config.js +1 -1
- package/build/src/xray-protos/proxy/shadowsocks_2022/config.js +1 -1
- package/build/src/xray-protos/proxy/socks/config.js +1 -1
- package/build/src/xray-protos/proxy/trojan/config.js +1 -1
- package/build/src/xray-protos/proxy/vless/account.d.ts +3 -1
- package/build/src/xray-protos/proxy/vless/account.d.ts.map +1 -1
- package/build/src/xray-protos/proxy/vless/account.js +47 -2
- package/build/src/xray-protos/proxy/vless/encoding/addons.js +1 -1
- package/build/src/xray-protos/proxy/vless/inbound/config.d.ts +4 -5
- package/build/src/xray-protos/proxy/vless/inbound/config.d.ts.map +1 -1
- package/build/src/xray-protos/proxy/vless/inbound/config.js +64 -11
- package/build/src/xray-protos/proxy/vless/outbound/config.js +1 -1
- package/build/src/xray-protos/proxy/vmess/account.js +1 -1
- package/build/src/xray-protos/proxy/vmess/inbound/config.js +1 -1
- package/build/src/xray-protos/proxy/vmess/outbound/config.js +1 -1
- package/build/src/xray-protos/proxy/wireguard/config.js +1 -1
- package/build/src/xray-protos/transport/internet/config.js +1 -1
- package/build/src/xray-protos/typeRegistry.js +1 -1
- package/package.json +1 -1
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
4
|
// protoc-gen-ts_proto v2.2.7
|
|
5
|
-
// protoc v5.
|
|
5
|
+
// protoc v5.29.3
|
|
6
6
|
// source: proxy/dokodemo/config.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.Config = exports.protobufPackage = void 0;
|
|
8
|
+
exports.Config_PortMapEntry = exports.Config = exports.protobufPackage = void 0;
|
|
9
9
|
/* eslint-disable */
|
|
10
10
|
const wire_1 = require("@bufbuild/protobuf/wire");
|
|
11
11
|
const address_1 = require("../../common/net/address");
|
|
@@ -17,6 +17,7 @@ function createBaseConfig() {
|
|
|
17
17
|
$type: "xray.proxy.dokodemo.Config",
|
|
18
18
|
address: undefined,
|
|
19
19
|
port: 0,
|
|
20
|
+
portMap: {},
|
|
20
21
|
networks: [],
|
|
21
22
|
followRedirect: false,
|
|
22
23
|
userLevel: 0,
|
|
@@ -31,6 +32,9 @@ exports.Config = {
|
|
|
31
32
|
if (message.port !== 0) {
|
|
32
33
|
writer.uint32(16).uint32(message.port);
|
|
33
34
|
}
|
|
35
|
+
Object.entries(message.portMap).forEach(([key, value]) => {
|
|
36
|
+
exports.Config_PortMapEntry.encode({ $type: "xray.proxy.dokodemo.Config.PortMapEntry", key: key, value }, writer.uint32(26).fork()).join();
|
|
37
|
+
});
|
|
34
38
|
writer.uint32(58).fork();
|
|
35
39
|
for (const v of message.networks) {
|
|
36
40
|
writer.int32(v);
|
|
@@ -65,6 +69,16 @@ exports.Config = {
|
|
|
65
69
|
message.port = reader.uint32();
|
|
66
70
|
continue;
|
|
67
71
|
}
|
|
72
|
+
case 3: {
|
|
73
|
+
if (tag !== 26) {
|
|
74
|
+
break;
|
|
75
|
+
}
|
|
76
|
+
const entry3 = exports.Config_PortMapEntry.decode(reader, reader.uint32());
|
|
77
|
+
if (entry3.value !== undefined) {
|
|
78
|
+
message.portMap[entry3.key] = entry3.value;
|
|
79
|
+
}
|
|
80
|
+
continue;
|
|
81
|
+
}
|
|
68
82
|
case 7: {
|
|
69
83
|
if (tag === 56) {
|
|
70
84
|
message.networks.push(reader.int32());
|
|
@@ -106,6 +120,12 @@ exports.Config = {
|
|
|
106
120
|
$type: exports.Config.$type,
|
|
107
121
|
address: isSet(object.address) ? address_1.IPOrDomain.fromJSON(object.address) : undefined,
|
|
108
122
|
port: isSet(object.port) ? globalThis.Number(object.port) : 0,
|
|
123
|
+
portMap: isObject(object.portMap)
|
|
124
|
+
? Object.entries(object.portMap).reduce((acc, [key, value]) => {
|
|
125
|
+
acc[key] = String(value);
|
|
126
|
+
return acc;
|
|
127
|
+
}, {})
|
|
128
|
+
: {},
|
|
109
129
|
networks: globalThis.Array.isArray(object?.networks) ? object.networks.map((e) => (0, network_1.networkFromJSON)(e)) : [],
|
|
110
130
|
followRedirect: isSet(object.followRedirect) ? globalThis.Boolean(object.followRedirect) : false,
|
|
111
131
|
userLevel: isSet(object.userLevel) ? globalThis.Number(object.userLevel) : 0,
|
|
@@ -119,6 +139,15 @@ exports.Config = {
|
|
|
119
139
|
if (message.port !== 0) {
|
|
120
140
|
obj.port = Math.round(message.port);
|
|
121
141
|
}
|
|
142
|
+
if (message.portMap) {
|
|
143
|
+
const entries = Object.entries(message.portMap);
|
|
144
|
+
if (entries.length > 0) {
|
|
145
|
+
obj.portMap = {};
|
|
146
|
+
entries.forEach(([k, v]) => {
|
|
147
|
+
obj.portMap[k] = v;
|
|
148
|
+
});
|
|
149
|
+
}
|
|
150
|
+
}
|
|
122
151
|
if (message.networks?.length) {
|
|
123
152
|
obj.networks = message.networks.map((e) => (0, network_1.networkToJSON)(e));
|
|
124
153
|
}
|
|
@@ -139,6 +168,12 @@ exports.Config = {
|
|
|
139
168
|
? address_1.IPOrDomain.fromPartial(object.address)
|
|
140
169
|
: undefined;
|
|
141
170
|
message.port = object.port ?? 0;
|
|
171
|
+
message.portMap = Object.entries(object.portMap ?? {}).reduce((acc, [key, value]) => {
|
|
172
|
+
if (value !== undefined) {
|
|
173
|
+
acc[key] = globalThis.String(value);
|
|
174
|
+
}
|
|
175
|
+
return acc;
|
|
176
|
+
}, {});
|
|
142
177
|
message.networks = object.networks?.map((e) => e) || [];
|
|
143
178
|
message.followRedirect = object.followRedirect ?? false;
|
|
144
179
|
message.userLevel = object.userLevel ?? 0;
|
|
@@ -146,6 +181,80 @@ exports.Config = {
|
|
|
146
181
|
},
|
|
147
182
|
};
|
|
148
183
|
typeRegistry_1.messageTypeRegistry.set(exports.Config.$type, exports.Config);
|
|
184
|
+
function createBaseConfig_PortMapEntry() {
|
|
185
|
+
return { $type: "xray.proxy.dokodemo.Config.PortMapEntry", key: "", value: "" };
|
|
186
|
+
}
|
|
187
|
+
exports.Config_PortMapEntry = {
|
|
188
|
+
$type: "xray.proxy.dokodemo.Config.PortMapEntry",
|
|
189
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
190
|
+
if (message.key !== "") {
|
|
191
|
+
writer.uint32(10).string(message.key);
|
|
192
|
+
}
|
|
193
|
+
if (message.value !== "") {
|
|
194
|
+
writer.uint32(18).string(message.value);
|
|
195
|
+
}
|
|
196
|
+
return writer;
|
|
197
|
+
},
|
|
198
|
+
decode(input, length) {
|
|
199
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
200
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
201
|
+
const message = createBaseConfig_PortMapEntry();
|
|
202
|
+
while (reader.pos < end) {
|
|
203
|
+
const tag = reader.uint32();
|
|
204
|
+
switch (tag >>> 3) {
|
|
205
|
+
case 1: {
|
|
206
|
+
if (tag !== 10) {
|
|
207
|
+
break;
|
|
208
|
+
}
|
|
209
|
+
message.key = reader.string();
|
|
210
|
+
continue;
|
|
211
|
+
}
|
|
212
|
+
case 2: {
|
|
213
|
+
if (tag !== 18) {
|
|
214
|
+
break;
|
|
215
|
+
}
|
|
216
|
+
message.value = reader.string();
|
|
217
|
+
continue;
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
221
|
+
break;
|
|
222
|
+
}
|
|
223
|
+
reader.skip(tag & 7);
|
|
224
|
+
}
|
|
225
|
+
return message;
|
|
226
|
+
},
|
|
227
|
+
fromJSON(object) {
|
|
228
|
+
return {
|
|
229
|
+
$type: exports.Config_PortMapEntry.$type,
|
|
230
|
+
key: isSet(object.key) ? globalThis.String(object.key) : "",
|
|
231
|
+
value: isSet(object.value) ? globalThis.String(object.value) : "",
|
|
232
|
+
};
|
|
233
|
+
},
|
|
234
|
+
toJSON(message) {
|
|
235
|
+
const obj = {};
|
|
236
|
+
if (message.key !== "") {
|
|
237
|
+
obj.key = message.key;
|
|
238
|
+
}
|
|
239
|
+
if (message.value !== "") {
|
|
240
|
+
obj.value = message.value;
|
|
241
|
+
}
|
|
242
|
+
return obj;
|
|
243
|
+
},
|
|
244
|
+
create(base) {
|
|
245
|
+
return exports.Config_PortMapEntry.fromPartial(base ?? {});
|
|
246
|
+
},
|
|
247
|
+
fromPartial(object) {
|
|
248
|
+
const message = createBaseConfig_PortMapEntry();
|
|
249
|
+
message.key = object.key ?? "";
|
|
250
|
+
message.value = object.value ?? "";
|
|
251
|
+
return message;
|
|
252
|
+
},
|
|
253
|
+
};
|
|
254
|
+
typeRegistry_1.messageTypeRegistry.set(exports.Config_PortMapEntry.$type, exports.Config_PortMapEntry);
|
|
255
|
+
function isObject(value) {
|
|
256
|
+
return typeof value === "object" && value !== null;
|
|
257
|
+
}
|
|
149
258
|
function isSet(value) {
|
|
150
259
|
return value !== null && value !== undefined;
|
|
151
260
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
2
|
import { ServerEndpoint } from "../../common/protocol/server_spec";
|
|
3
|
+
import { DomainStrategy } from "../../transport/internet/config";
|
|
3
4
|
export declare const protobufPackage = "xray.proxy.freedom";
|
|
4
5
|
export interface DestinationOverride {
|
|
5
6
|
$type: "xray.proxy.freedom.DestinationOverride";
|
|
@@ -13,6 +14,8 @@ export interface Fragment {
|
|
|
13
14
|
lengthMax: number;
|
|
14
15
|
intervalMin: number;
|
|
15
16
|
intervalMax: number;
|
|
17
|
+
maxSplitMin: number;
|
|
18
|
+
maxSplitMax: number;
|
|
16
19
|
}
|
|
17
20
|
export interface Noise {
|
|
18
21
|
$type: "xray.proxy.freedom.Noise";
|
|
@@ -21,32 +24,17 @@ export interface Noise {
|
|
|
21
24
|
delayMin: number;
|
|
22
25
|
delayMax: number;
|
|
23
26
|
packet: Uint8Array;
|
|
27
|
+
applyTo: string;
|
|
24
28
|
}
|
|
25
29
|
export interface Config {
|
|
26
30
|
$type: "xray.proxy.freedom.Config";
|
|
27
|
-
domainStrategy:
|
|
31
|
+
domainStrategy: DomainStrategy;
|
|
28
32
|
destinationOverride: DestinationOverride | undefined;
|
|
29
33
|
userLevel: number;
|
|
30
34
|
fragment: Fragment | undefined;
|
|
31
35
|
proxyProtocol: number;
|
|
32
36
|
noises: Noise[];
|
|
33
37
|
}
|
|
34
|
-
export declare enum Config_DomainStrategy {
|
|
35
|
-
AS_IS = 0,
|
|
36
|
-
USE_IP = 1,
|
|
37
|
-
USE_IP4 = 2,
|
|
38
|
-
USE_IP6 = 3,
|
|
39
|
-
USE_IP46 = 4,
|
|
40
|
-
USE_IP64 = 5,
|
|
41
|
-
FORCE_IP = 6,
|
|
42
|
-
FORCE_IP4 = 7,
|
|
43
|
-
FORCE_IP6 = 8,
|
|
44
|
-
FORCE_IP46 = 9,
|
|
45
|
-
FORCE_IP64 = 10,
|
|
46
|
-
UNRECOGNIZED = -1
|
|
47
|
-
}
|
|
48
|
-
export declare function config_DomainStrategyFromJSON(object: any): Config_DomainStrategy;
|
|
49
|
-
export declare function config_DomainStrategyToJSON(object: Config_DomainStrategy): string;
|
|
50
38
|
export declare const DestinationOverride: MessageFns<DestinationOverride, "xray.proxy.freedom.DestinationOverride">;
|
|
51
39
|
export declare const Fragment: MessageFns<Fragment, "xray.proxy.freedom.Fragment">;
|
|
52
40
|
export declare const Noise: MessageFns<Noise, "xray.proxy.freedom.Noise">;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../../../src/xray-protos/proxy/freedom/config.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../../../src/xray-protos/proxy/freedom/config.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,YAAY,EAAE,YAAY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C,CAAC,CAAC,GAAG,CAAC,CAAC;IACjC,WAAW,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;CACxC"}
|
|
@@ -2,102 +2,16 @@
|
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
4
|
// protoc-gen-ts_proto v2.2.7
|
|
5
|
-
// protoc v5.
|
|
5
|
+
// protoc v5.29.3
|
|
6
6
|
// source: proxy/freedom/config.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.Config = exports.Noise = exports.Fragment = exports.DestinationOverride = exports.
|
|
9
|
-
exports.config_DomainStrategyFromJSON = config_DomainStrategyFromJSON;
|
|
10
|
-
exports.config_DomainStrategyToJSON = config_DomainStrategyToJSON;
|
|
8
|
+
exports.Config = exports.Noise = exports.Fragment = exports.DestinationOverride = exports.protobufPackage = void 0;
|
|
11
9
|
/* eslint-disable */
|
|
12
10
|
const wire_1 = require("@bufbuild/protobuf/wire");
|
|
13
11
|
const server_spec_1 = require("../../common/protocol/server_spec");
|
|
12
|
+
const config_1 = require("../../transport/internet/config");
|
|
14
13
|
const typeRegistry_1 = require("../../typeRegistry");
|
|
15
14
|
exports.protobufPackage = "xray.proxy.freedom";
|
|
16
|
-
var Config_DomainStrategy;
|
|
17
|
-
(function (Config_DomainStrategy) {
|
|
18
|
-
Config_DomainStrategy[Config_DomainStrategy["AS_IS"] = 0] = "AS_IS";
|
|
19
|
-
Config_DomainStrategy[Config_DomainStrategy["USE_IP"] = 1] = "USE_IP";
|
|
20
|
-
Config_DomainStrategy[Config_DomainStrategy["USE_IP4"] = 2] = "USE_IP4";
|
|
21
|
-
Config_DomainStrategy[Config_DomainStrategy["USE_IP6"] = 3] = "USE_IP6";
|
|
22
|
-
Config_DomainStrategy[Config_DomainStrategy["USE_IP46"] = 4] = "USE_IP46";
|
|
23
|
-
Config_DomainStrategy[Config_DomainStrategy["USE_IP64"] = 5] = "USE_IP64";
|
|
24
|
-
Config_DomainStrategy[Config_DomainStrategy["FORCE_IP"] = 6] = "FORCE_IP";
|
|
25
|
-
Config_DomainStrategy[Config_DomainStrategy["FORCE_IP4"] = 7] = "FORCE_IP4";
|
|
26
|
-
Config_DomainStrategy[Config_DomainStrategy["FORCE_IP6"] = 8] = "FORCE_IP6";
|
|
27
|
-
Config_DomainStrategy[Config_DomainStrategy["FORCE_IP46"] = 9] = "FORCE_IP46";
|
|
28
|
-
Config_DomainStrategy[Config_DomainStrategy["FORCE_IP64"] = 10] = "FORCE_IP64";
|
|
29
|
-
Config_DomainStrategy[Config_DomainStrategy["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
30
|
-
})(Config_DomainStrategy || (exports.Config_DomainStrategy = Config_DomainStrategy = {}));
|
|
31
|
-
function config_DomainStrategyFromJSON(object) {
|
|
32
|
-
switch (object) {
|
|
33
|
-
case 0:
|
|
34
|
-
case "AS_IS":
|
|
35
|
-
return Config_DomainStrategy.AS_IS;
|
|
36
|
-
case 1:
|
|
37
|
-
case "USE_IP":
|
|
38
|
-
return Config_DomainStrategy.USE_IP;
|
|
39
|
-
case 2:
|
|
40
|
-
case "USE_IP4":
|
|
41
|
-
return Config_DomainStrategy.USE_IP4;
|
|
42
|
-
case 3:
|
|
43
|
-
case "USE_IP6":
|
|
44
|
-
return Config_DomainStrategy.USE_IP6;
|
|
45
|
-
case 4:
|
|
46
|
-
case "USE_IP46":
|
|
47
|
-
return Config_DomainStrategy.USE_IP46;
|
|
48
|
-
case 5:
|
|
49
|
-
case "USE_IP64":
|
|
50
|
-
return Config_DomainStrategy.USE_IP64;
|
|
51
|
-
case 6:
|
|
52
|
-
case "FORCE_IP":
|
|
53
|
-
return Config_DomainStrategy.FORCE_IP;
|
|
54
|
-
case 7:
|
|
55
|
-
case "FORCE_IP4":
|
|
56
|
-
return Config_DomainStrategy.FORCE_IP4;
|
|
57
|
-
case 8:
|
|
58
|
-
case "FORCE_IP6":
|
|
59
|
-
return Config_DomainStrategy.FORCE_IP6;
|
|
60
|
-
case 9:
|
|
61
|
-
case "FORCE_IP46":
|
|
62
|
-
return Config_DomainStrategy.FORCE_IP46;
|
|
63
|
-
case 10:
|
|
64
|
-
case "FORCE_IP64":
|
|
65
|
-
return Config_DomainStrategy.FORCE_IP64;
|
|
66
|
-
case -1:
|
|
67
|
-
case "UNRECOGNIZED":
|
|
68
|
-
default:
|
|
69
|
-
return Config_DomainStrategy.UNRECOGNIZED;
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
function config_DomainStrategyToJSON(object) {
|
|
73
|
-
switch (object) {
|
|
74
|
-
case Config_DomainStrategy.AS_IS:
|
|
75
|
-
return "AS_IS";
|
|
76
|
-
case Config_DomainStrategy.USE_IP:
|
|
77
|
-
return "USE_IP";
|
|
78
|
-
case Config_DomainStrategy.USE_IP4:
|
|
79
|
-
return "USE_IP4";
|
|
80
|
-
case Config_DomainStrategy.USE_IP6:
|
|
81
|
-
return "USE_IP6";
|
|
82
|
-
case Config_DomainStrategy.USE_IP46:
|
|
83
|
-
return "USE_IP46";
|
|
84
|
-
case Config_DomainStrategy.USE_IP64:
|
|
85
|
-
return "USE_IP64";
|
|
86
|
-
case Config_DomainStrategy.FORCE_IP:
|
|
87
|
-
return "FORCE_IP";
|
|
88
|
-
case Config_DomainStrategy.FORCE_IP4:
|
|
89
|
-
return "FORCE_IP4";
|
|
90
|
-
case Config_DomainStrategy.FORCE_IP6:
|
|
91
|
-
return "FORCE_IP6";
|
|
92
|
-
case Config_DomainStrategy.FORCE_IP46:
|
|
93
|
-
return "FORCE_IP46";
|
|
94
|
-
case Config_DomainStrategy.FORCE_IP64:
|
|
95
|
-
return "FORCE_IP64";
|
|
96
|
-
case Config_DomainStrategy.UNRECOGNIZED:
|
|
97
|
-
default:
|
|
98
|
-
return "UNRECOGNIZED";
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
15
|
function createBaseDestinationOverride() {
|
|
102
16
|
return { $type: "xray.proxy.freedom.DestinationOverride", server: undefined };
|
|
103
17
|
}
|
|
@@ -165,6 +79,8 @@ function createBaseFragment() {
|
|
|
165
79
|
lengthMax: 0,
|
|
166
80
|
intervalMin: 0,
|
|
167
81
|
intervalMax: 0,
|
|
82
|
+
maxSplitMin: 0,
|
|
83
|
+
maxSplitMax: 0,
|
|
168
84
|
};
|
|
169
85
|
}
|
|
170
86
|
exports.Fragment = {
|
|
@@ -188,6 +104,12 @@ exports.Fragment = {
|
|
|
188
104
|
if (message.intervalMax !== 0) {
|
|
189
105
|
writer.uint32(48).uint64(message.intervalMax);
|
|
190
106
|
}
|
|
107
|
+
if (message.maxSplitMin !== 0) {
|
|
108
|
+
writer.uint32(56).uint64(message.maxSplitMin);
|
|
109
|
+
}
|
|
110
|
+
if (message.maxSplitMax !== 0) {
|
|
111
|
+
writer.uint32(64).uint64(message.maxSplitMax);
|
|
112
|
+
}
|
|
191
113
|
return writer;
|
|
192
114
|
},
|
|
193
115
|
decode(input, length) {
|
|
@@ -239,6 +161,20 @@ exports.Fragment = {
|
|
|
239
161
|
message.intervalMax = longToNumber(reader.uint64());
|
|
240
162
|
continue;
|
|
241
163
|
}
|
|
164
|
+
case 7: {
|
|
165
|
+
if (tag !== 56) {
|
|
166
|
+
break;
|
|
167
|
+
}
|
|
168
|
+
message.maxSplitMin = longToNumber(reader.uint64());
|
|
169
|
+
continue;
|
|
170
|
+
}
|
|
171
|
+
case 8: {
|
|
172
|
+
if (tag !== 64) {
|
|
173
|
+
break;
|
|
174
|
+
}
|
|
175
|
+
message.maxSplitMax = longToNumber(reader.uint64());
|
|
176
|
+
continue;
|
|
177
|
+
}
|
|
242
178
|
}
|
|
243
179
|
if ((tag & 7) === 4 || tag === 0) {
|
|
244
180
|
break;
|
|
@@ -256,6 +192,8 @@ exports.Fragment = {
|
|
|
256
192
|
lengthMax: isSet(object.lengthMax) ? globalThis.Number(object.lengthMax) : 0,
|
|
257
193
|
intervalMin: isSet(object.intervalMin) ? globalThis.Number(object.intervalMin) : 0,
|
|
258
194
|
intervalMax: isSet(object.intervalMax) ? globalThis.Number(object.intervalMax) : 0,
|
|
195
|
+
maxSplitMin: isSet(object.maxSplitMin) ? globalThis.Number(object.maxSplitMin) : 0,
|
|
196
|
+
maxSplitMax: isSet(object.maxSplitMax) ? globalThis.Number(object.maxSplitMax) : 0,
|
|
259
197
|
};
|
|
260
198
|
},
|
|
261
199
|
toJSON(message) {
|
|
@@ -278,6 +216,12 @@ exports.Fragment = {
|
|
|
278
216
|
if (message.intervalMax !== 0) {
|
|
279
217
|
obj.intervalMax = Math.round(message.intervalMax);
|
|
280
218
|
}
|
|
219
|
+
if (message.maxSplitMin !== 0) {
|
|
220
|
+
obj.maxSplitMin = Math.round(message.maxSplitMin);
|
|
221
|
+
}
|
|
222
|
+
if (message.maxSplitMax !== 0) {
|
|
223
|
+
obj.maxSplitMax = Math.round(message.maxSplitMax);
|
|
224
|
+
}
|
|
281
225
|
return obj;
|
|
282
226
|
},
|
|
283
227
|
create(base) {
|
|
@@ -291,6 +235,8 @@ exports.Fragment = {
|
|
|
291
235
|
message.lengthMax = object.lengthMax ?? 0;
|
|
292
236
|
message.intervalMin = object.intervalMin ?? 0;
|
|
293
237
|
message.intervalMax = object.intervalMax ?? 0;
|
|
238
|
+
message.maxSplitMin = object.maxSplitMin ?? 0;
|
|
239
|
+
message.maxSplitMax = object.maxSplitMax ?? 0;
|
|
294
240
|
return message;
|
|
295
241
|
},
|
|
296
242
|
};
|
|
@@ -303,6 +249,7 @@ function createBaseNoise() {
|
|
|
303
249
|
delayMin: 0,
|
|
304
250
|
delayMax: 0,
|
|
305
251
|
packet: new Uint8Array(0),
|
|
252
|
+
applyTo: "",
|
|
306
253
|
};
|
|
307
254
|
}
|
|
308
255
|
exports.Noise = {
|
|
@@ -323,6 +270,9 @@ exports.Noise = {
|
|
|
323
270
|
if (message.packet.length !== 0) {
|
|
324
271
|
writer.uint32(42).bytes(message.packet);
|
|
325
272
|
}
|
|
273
|
+
if (message.applyTo !== "") {
|
|
274
|
+
writer.uint32(50).string(message.applyTo);
|
|
275
|
+
}
|
|
326
276
|
return writer;
|
|
327
277
|
},
|
|
328
278
|
decode(input, length) {
|
|
@@ -367,6 +317,13 @@ exports.Noise = {
|
|
|
367
317
|
message.packet = reader.bytes();
|
|
368
318
|
continue;
|
|
369
319
|
}
|
|
320
|
+
case 6: {
|
|
321
|
+
if (tag !== 50) {
|
|
322
|
+
break;
|
|
323
|
+
}
|
|
324
|
+
message.applyTo = reader.string();
|
|
325
|
+
continue;
|
|
326
|
+
}
|
|
370
327
|
}
|
|
371
328
|
if ((tag & 7) === 4 || tag === 0) {
|
|
372
329
|
break;
|
|
@@ -383,6 +340,7 @@ exports.Noise = {
|
|
|
383
340
|
delayMin: isSet(object.delayMin) ? globalThis.Number(object.delayMin) : 0,
|
|
384
341
|
delayMax: isSet(object.delayMax) ? globalThis.Number(object.delayMax) : 0,
|
|
385
342
|
packet: isSet(object.packet) ? bytesFromBase64(object.packet) : new Uint8Array(0),
|
|
343
|
+
applyTo: isSet(object.applyTo) ? globalThis.String(object.applyTo) : "",
|
|
386
344
|
};
|
|
387
345
|
},
|
|
388
346
|
toJSON(message) {
|
|
@@ -402,6 +360,9 @@ exports.Noise = {
|
|
|
402
360
|
if (message.packet.length !== 0) {
|
|
403
361
|
obj.packet = base64FromBytes(message.packet);
|
|
404
362
|
}
|
|
363
|
+
if (message.applyTo !== "") {
|
|
364
|
+
obj.applyTo = message.applyTo;
|
|
365
|
+
}
|
|
405
366
|
return obj;
|
|
406
367
|
},
|
|
407
368
|
create(base) {
|
|
@@ -414,6 +375,7 @@ exports.Noise = {
|
|
|
414
375
|
message.delayMin = object.delayMin ?? 0;
|
|
415
376
|
message.delayMax = object.delayMax ?? 0;
|
|
416
377
|
message.packet = object.packet ?? new Uint8Array(0);
|
|
378
|
+
message.applyTo = object.applyTo ?? "";
|
|
417
379
|
return message;
|
|
418
380
|
},
|
|
419
381
|
};
|
|
@@ -512,7 +474,7 @@ exports.Config = {
|
|
|
512
474
|
fromJSON(object) {
|
|
513
475
|
return {
|
|
514
476
|
$type: exports.Config.$type,
|
|
515
|
-
domainStrategy: isSet(object.domainStrategy) ?
|
|
477
|
+
domainStrategy: isSet(object.domainStrategy) ? (0, config_1.domainStrategyFromJSON)(object.domainStrategy) : 0,
|
|
516
478
|
destinationOverride: isSet(object.destinationOverride)
|
|
517
479
|
? exports.DestinationOverride.fromJSON(object.destinationOverride)
|
|
518
480
|
: undefined,
|
|
@@ -525,7 +487,7 @@ exports.Config = {
|
|
|
525
487
|
toJSON(message) {
|
|
526
488
|
const obj = {};
|
|
527
489
|
if (message.domainStrategy !== 0) {
|
|
528
|
-
obj.domainStrategy =
|
|
490
|
+
obj.domainStrategy = (0, config_1.domainStrategyToJSON)(message.domainStrategy);
|
|
529
491
|
}
|
|
530
492
|
if (message.destinationOverride !== undefined) {
|
|
531
493
|
obj.destinationOverride = exports.DestinationOverride.toJSON(message.destinationOverride);
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
4
|
// protoc-gen-ts_proto v2.2.7
|
|
5
|
-
// protoc v5.
|
|
5
|
+
// protoc v5.29.3
|
|
6
6
|
// source: proxy/http/config.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
8
|
exports.ClientConfig = exports.Header = exports.ServerConfig_AccountsEntry = exports.ServerConfig = exports.Account = exports.protobufPackage = void 0;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
4
|
// protoc-gen-ts_proto v2.2.7
|
|
5
|
-
// protoc v5.
|
|
5
|
+
// protoc v5.29.3
|
|
6
6
|
// source: proxy/loopback/config.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
8
|
exports.Config = exports.protobufPackage = void 0;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
4
|
// protoc-gen-ts_proto v2.2.7
|
|
5
|
-
// protoc v5.
|
|
5
|
+
// protoc v5.29.3
|
|
6
6
|
// source: proxy/shadowsocks/config.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
8
|
exports.ClientConfig = exports.ServerConfig = exports.Account = exports.CipherType = exports.protobufPackage = void 0;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
4
|
// protoc-gen-ts_proto v2.2.7
|
|
5
|
-
// protoc v5.
|
|
5
|
+
// protoc v5.29.3
|
|
6
6
|
// source: proxy/shadowsocks_2022/config.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
8
|
exports.ClientConfig = exports.Account = exports.RelayServerConfig = exports.RelayDestination = exports.MultiUserServerConfig = exports.ServerConfig = exports.protobufPackage = void 0;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
4
|
// protoc-gen-ts_proto v2.2.7
|
|
5
|
-
// protoc v5.
|
|
5
|
+
// protoc v5.29.3
|
|
6
6
|
// source: proxy/socks/config.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
8
|
exports.ClientConfig = exports.ServerConfig_AccountsEntry = exports.ServerConfig = exports.Account = exports.AuthType = exports.protobufPackage = void 0;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
4
|
// protoc-gen-ts_proto v2.2.7
|
|
5
|
-
// protoc v5.
|
|
5
|
+
// protoc v5.29.3
|
|
6
6
|
// source: proxy/trojan/config.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
8
|
exports.ServerConfig = exports.ClientConfig = exports.Fallback = exports.Account = exports.protobufPackage = void 0;
|
|
@@ -6,8 +6,10 @@ export interface Account {
|
|
|
6
6
|
id: string;
|
|
7
7
|
/** Flow settings. May be "xtls-rprx-vision". */
|
|
8
8
|
flow: string;
|
|
9
|
-
/** Encryption settings. Only applies to client side, and only accepts "none" for now. */
|
|
10
9
|
encryption: string;
|
|
10
|
+
xorMode: number;
|
|
11
|
+
seconds: number;
|
|
12
|
+
padding: string;
|
|
11
13
|
}
|
|
12
14
|
export declare const Account: MessageFns<Account, "xray.proxy.vless.Account">;
|
|
13
15
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../../../../../src/xray-protos/proxy/vless/account.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAGrE,eAAO,MAAM,eAAe,qBAAqB,CAAC;AAElD,MAAM,WAAW,OAAO;IACtB,KAAK,EAAE,0BAA0B,CAAC;IAClC,8FAA8F;IAC9F,EAAE,EAAE,MAAM,CAAC;IACX,gDAAgD;IAChD,IAAI,EAAE,MAAM,CAAC;IACb,
|
|
1
|
+
{"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../../../../../src/xray-protos/proxy/vless/account.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAGrE,eAAO,MAAM,eAAe,qBAAqB,CAAC;AAElD,MAAM,WAAW,OAAO;IACtB,KAAK,EAAE,0BAA0B,CAAC;IAClC,8FAA8F;IAC9F,EAAE,EAAE,MAAM,CAAC;IACX,gDAAgD;IAChD,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,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C,MAAM,EAAE,WAAW,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;CACxC"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
4
|
// protoc-gen-ts_proto v2.2.7
|
|
5
|
-
// protoc v5.
|
|
5
|
+
// protoc v5.29.3
|
|
6
6
|
// source: proxy/vless/account.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
8
|
exports.Account = exports.protobufPackage = void 0;
|
|
@@ -11,7 +11,7 @@ const wire_1 = require("@bufbuild/protobuf/wire");
|
|
|
11
11
|
const typeRegistry_1 = require("../../typeRegistry");
|
|
12
12
|
exports.protobufPackage = "xray.proxy.vless";
|
|
13
13
|
function createBaseAccount() {
|
|
14
|
-
return { $type: "xray.proxy.vless.Account", id: "", flow: "", encryption: "" };
|
|
14
|
+
return { $type: "xray.proxy.vless.Account", id: "", flow: "", encryption: "", xorMode: 0, seconds: 0, padding: "" };
|
|
15
15
|
}
|
|
16
16
|
exports.Account = {
|
|
17
17
|
$type: "xray.proxy.vless.Account",
|
|
@@ -25,6 +25,15 @@ exports.Account = {
|
|
|
25
25
|
if (message.encryption !== "") {
|
|
26
26
|
writer.uint32(26).string(message.encryption);
|
|
27
27
|
}
|
|
28
|
+
if (message.xorMode !== 0) {
|
|
29
|
+
writer.uint32(32).uint32(message.xorMode);
|
|
30
|
+
}
|
|
31
|
+
if (message.seconds !== 0) {
|
|
32
|
+
writer.uint32(40).uint32(message.seconds);
|
|
33
|
+
}
|
|
34
|
+
if (message.padding !== "") {
|
|
35
|
+
writer.uint32(50).string(message.padding);
|
|
36
|
+
}
|
|
28
37
|
return writer;
|
|
29
38
|
},
|
|
30
39
|
decode(input, length) {
|
|
@@ -55,6 +64,27 @@ exports.Account = {
|
|
|
55
64
|
message.encryption = reader.string();
|
|
56
65
|
continue;
|
|
57
66
|
}
|
|
67
|
+
case 4: {
|
|
68
|
+
if (tag !== 32) {
|
|
69
|
+
break;
|
|
70
|
+
}
|
|
71
|
+
message.xorMode = reader.uint32();
|
|
72
|
+
continue;
|
|
73
|
+
}
|
|
74
|
+
case 5: {
|
|
75
|
+
if (tag !== 40) {
|
|
76
|
+
break;
|
|
77
|
+
}
|
|
78
|
+
message.seconds = reader.uint32();
|
|
79
|
+
continue;
|
|
80
|
+
}
|
|
81
|
+
case 6: {
|
|
82
|
+
if (tag !== 50) {
|
|
83
|
+
break;
|
|
84
|
+
}
|
|
85
|
+
message.padding = reader.string();
|
|
86
|
+
continue;
|
|
87
|
+
}
|
|
58
88
|
}
|
|
59
89
|
if ((tag & 7) === 4 || tag === 0) {
|
|
60
90
|
break;
|
|
@@ -69,6 +99,9 @@ exports.Account = {
|
|
|
69
99
|
id: isSet(object.id) ? globalThis.String(object.id) : "",
|
|
70
100
|
flow: isSet(object.flow) ? globalThis.String(object.flow) : "",
|
|
71
101
|
encryption: isSet(object.encryption) ? globalThis.String(object.encryption) : "",
|
|
102
|
+
xorMode: isSet(object.xorMode) ? globalThis.Number(object.xorMode) : 0,
|
|
103
|
+
seconds: isSet(object.seconds) ? globalThis.Number(object.seconds) : 0,
|
|
104
|
+
padding: isSet(object.padding) ? globalThis.String(object.padding) : "",
|
|
72
105
|
};
|
|
73
106
|
},
|
|
74
107
|
toJSON(message) {
|
|
@@ -82,6 +115,15 @@ exports.Account = {
|
|
|
82
115
|
if (message.encryption !== "") {
|
|
83
116
|
obj.encryption = message.encryption;
|
|
84
117
|
}
|
|
118
|
+
if (message.xorMode !== 0) {
|
|
119
|
+
obj.xorMode = Math.round(message.xorMode);
|
|
120
|
+
}
|
|
121
|
+
if (message.seconds !== 0) {
|
|
122
|
+
obj.seconds = Math.round(message.seconds);
|
|
123
|
+
}
|
|
124
|
+
if (message.padding !== "") {
|
|
125
|
+
obj.padding = message.padding;
|
|
126
|
+
}
|
|
85
127
|
return obj;
|
|
86
128
|
},
|
|
87
129
|
create(base) {
|
|
@@ -92,6 +134,9 @@ exports.Account = {
|
|
|
92
134
|
message.id = object.id ?? "";
|
|
93
135
|
message.flow = object.flow ?? "";
|
|
94
136
|
message.encryption = object.encryption ?? "";
|
|
137
|
+
message.xorMode = object.xorMode ?? 0;
|
|
138
|
+
message.seconds = object.seconds ?? 0;
|
|
139
|
+
message.padding = object.padding ?? "";
|
|
95
140
|
return message;
|
|
96
141
|
},
|
|
97
142
|
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
4
|
// protoc-gen-ts_proto v2.2.7
|
|
5
|
-
// protoc v5.
|
|
5
|
+
// protoc v5.29.3
|
|
6
6
|
// source: proxy/vless/encoding/addons.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
8
|
exports.Addons = exports.protobufPackage = void 0;
|