@remnawave/xtls-sdk 0.6.1 → 0.6.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/src/common/utils/decode-user/constants/account-types.d.ts.map +1 -1
- package/build/src/common/utils/decode-user/constants/account-types.js +1 -0
- package/build/src/xray-protos/proxy/vless/account.d.ts +6 -0
- package/build/src/xray-protos/proxy/vless/account.d.ts.map +1 -1
- package/build/src/xray-protos/proxy/vless/account.js +81 -2
- package/build/src/xray-protos/proxy/vless/inbound/config.d.ts +2 -1
- package/build/src/xray-protos/proxy/vless/inbound/config.d.ts.map +1 -1
- package/build/src/xray-protos/proxy/vless/inbound/config.js +26 -10
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"account-types.d.ts","sourceRoot":"","sources":["../../../../../../src/common/utils/decode-user/constants/account-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,6CAA6C,CAAC;AACvF,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,6CAA6C,CAAC;AACtF,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,kDAAkD,CAAC;AACjG,OAAO,EAAE,OAAO,IAAI,sBAAsB,EAAE,MAAM,uDAAuD,CAAC;AAC1G,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,4CAA4C,CAAC;AACrF,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,2CAA2C,CAAC;AAEnF,eAAO,MAAM,aAAa;;;;uCAII,aAAa,KAAG,IAAI,CAAC,aAAa,EAAE,OAAO,CAAC;;;;;uCAO5C,YAAY,KAAG,IAAI,CAAC,YAAY,EAAE,OAAO,CAAC;;;;;
|
|
1
|
+
{"version":3,"file":"account-types.d.ts","sourceRoot":"","sources":["../../../../../../src/common/utils/decode-user/constants/account-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,6CAA6C,CAAC;AACvF,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,6CAA6C,CAAC;AACtF,OAAO,EAAE,OAAO,IAAI,kBAAkB,EAAE,MAAM,kDAAkD,CAAC;AACjG,OAAO,EAAE,OAAO,IAAI,sBAAsB,EAAE,MAAM,uDAAuD,CAAC;AAC1G,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,4CAA4C,CAAC;AACrF,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,2CAA2C,CAAC;AAEnF,eAAO,MAAM,aAAa;;;;uCAII,aAAa,KAAG,IAAI,CAAC,aAAa,EAAE,OAAO,CAAC;;;;;uCAO5C,YAAY,KAAG,IAAI,CAAC,YAAY,EAAE,OAAO,CAAC;;;;;uCAa1C,kBAAkB,KAAG,IAAI,CAAC,kBAAkB,EAAE,OAAO,CAAC;;;;;uCAStD,sBAAsB,KAAG,IAAI,CAAC,sBAAsB,EAAE,OAAO,CAAC;;;;;uCAO9D,YAAY,KAAG,IAAI,CAAC,YAAY,EAAE,OAAO,CAAC;;;;;uCAQ1C,WAAW,KAAG,IAAI,CAAC,WAAW,EAAE,OAAO,CAAC;;CAK5D,CAAC"}
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
2
|
export declare const protobufPackage = "xray.proxy.vless";
|
|
3
|
+
export interface Reverse {
|
|
4
|
+
$type: "xray.proxy.vless.Reverse";
|
|
5
|
+
tag: string;
|
|
6
|
+
}
|
|
3
7
|
export interface Account {
|
|
4
8
|
$type: "xray.proxy.vless.Account";
|
|
5
9
|
/** ID of the account, in the form of a UUID, e.g., "66ad4540-b58c-4ad2-9926-ea63445a9b57". */
|
|
@@ -10,7 +14,9 @@ export interface Account {
|
|
|
10
14
|
xorMode: number;
|
|
11
15
|
seconds: number;
|
|
12
16
|
padding: string;
|
|
17
|
+
reverse: Reverse | undefined;
|
|
13
18
|
}
|
|
19
|
+
export declare const Reverse: MessageFns<Reverse, "xray.proxy.vless.Reverse">;
|
|
14
20
|
export declare const Account: MessageFns<Account, "xray.proxy.vless.Account">;
|
|
15
21
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
16
22
|
export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
@@ -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,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;
|
|
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,GAAG,EAAE,MAAM,CAAC;CACb;AAED,MAAM,WAAW,OAAO;IACtB,KAAK,EAAE,0BAA0B,CAAC;IAClC,8FAA8F;IAC9F,EAAE,EAAE,MAAM,CAAC;IACX,gDAAgD;IAChD,IAAI,EAAE,MAAM,CAAC;IACb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AAG,GAAG,CAAC,CAAC;IACzB,MAAM,CAAC,OAAO,EAAE,CAAC,GAAG,OAAO,CAAC;IAC5B,MAAM,CAAC,IAAI,CAAC,EAAE,WAAW,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;IACjC,WAAW,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;CACxC"}
|
|
@@ -5,13 +5,75 @@
|
|
|
5
5
|
// protoc v5.29.3
|
|
6
6
|
// source: proxy/vless/account.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.Account = exports.protobufPackage = void 0;
|
|
8
|
+
exports.Account = exports.Reverse = exports.protobufPackage = void 0;
|
|
9
9
|
/* eslint-disable */
|
|
10
10
|
const wire_1 = require("@bufbuild/protobuf/wire");
|
|
11
11
|
const typeRegistry_1 = require("../../typeRegistry");
|
|
12
12
|
exports.protobufPackage = "xray.proxy.vless";
|
|
13
|
+
function createBaseReverse() {
|
|
14
|
+
return { $type: "xray.proxy.vless.Reverse", tag: "" };
|
|
15
|
+
}
|
|
16
|
+
exports.Reverse = {
|
|
17
|
+
$type: "xray.proxy.vless.Reverse",
|
|
18
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
19
|
+
if (message.tag !== "") {
|
|
20
|
+
writer.uint32(10).string(message.tag);
|
|
21
|
+
}
|
|
22
|
+
return writer;
|
|
23
|
+
},
|
|
24
|
+
decode(input, length) {
|
|
25
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
26
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
27
|
+
const message = createBaseReverse();
|
|
28
|
+
while (reader.pos < end) {
|
|
29
|
+
const tag = reader.uint32();
|
|
30
|
+
switch (tag >>> 3) {
|
|
31
|
+
case 1: {
|
|
32
|
+
if (tag !== 10) {
|
|
33
|
+
break;
|
|
34
|
+
}
|
|
35
|
+
message.tag = reader.string();
|
|
36
|
+
continue;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
40
|
+
break;
|
|
41
|
+
}
|
|
42
|
+
reader.skip(tag & 7);
|
|
43
|
+
}
|
|
44
|
+
return message;
|
|
45
|
+
},
|
|
46
|
+
fromJSON(object) {
|
|
47
|
+
return { $type: exports.Reverse.$type, tag: isSet(object.tag) ? globalThis.String(object.tag) : "" };
|
|
48
|
+
},
|
|
49
|
+
toJSON(message) {
|
|
50
|
+
const obj = {};
|
|
51
|
+
if (message.tag !== "") {
|
|
52
|
+
obj.tag = message.tag;
|
|
53
|
+
}
|
|
54
|
+
return obj;
|
|
55
|
+
},
|
|
56
|
+
create(base) {
|
|
57
|
+
return exports.Reverse.fromPartial(base ?? {});
|
|
58
|
+
},
|
|
59
|
+
fromPartial(object) {
|
|
60
|
+
const message = createBaseReverse();
|
|
61
|
+
message.tag = object.tag ?? "";
|
|
62
|
+
return message;
|
|
63
|
+
},
|
|
64
|
+
};
|
|
65
|
+
typeRegistry_1.messageTypeRegistry.set(exports.Reverse.$type, exports.Reverse);
|
|
13
66
|
function createBaseAccount() {
|
|
14
|
-
return {
|
|
67
|
+
return {
|
|
68
|
+
$type: "xray.proxy.vless.Account",
|
|
69
|
+
id: "",
|
|
70
|
+
flow: "",
|
|
71
|
+
encryption: "",
|
|
72
|
+
xorMode: 0,
|
|
73
|
+
seconds: 0,
|
|
74
|
+
padding: "",
|
|
75
|
+
reverse: undefined,
|
|
76
|
+
};
|
|
15
77
|
}
|
|
16
78
|
exports.Account = {
|
|
17
79
|
$type: "xray.proxy.vless.Account",
|
|
@@ -34,6 +96,9 @@ exports.Account = {
|
|
|
34
96
|
if (message.padding !== "") {
|
|
35
97
|
writer.uint32(50).string(message.padding);
|
|
36
98
|
}
|
|
99
|
+
if (message.reverse !== undefined) {
|
|
100
|
+
exports.Reverse.encode(message.reverse, writer.uint32(58).fork()).join();
|
|
101
|
+
}
|
|
37
102
|
return writer;
|
|
38
103
|
},
|
|
39
104
|
decode(input, length) {
|
|
@@ -85,6 +150,13 @@ exports.Account = {
|
|
|
85
150
|
message.padding = reader.string();
|
|
86
151
|
continue;
|
|
87
152
|
}
|
|
153
|
+
case 7: {
|
|
154
|
+
if (tag !== 58) {
|
|
155
|
+
break;
|
|
156
|
+
}
|
|
157
|
+
message.reverse = exports.Reverse.decode(reader, reader.uint32());
|
|
158
|
+
continue;
|
|
159
|
+
}
|
|
88
160
|
}
|
|
89
161
|
if ((tag & 7) === 4 || tag === 0) {
|
|
90
162
|
break;
|
|
@@ -102,6 +174,7 @@ exports.Account = {
|
|
|
102
174
|
xorMode: isSet(object.xorMode) ? globalThis.Number(object.xorMode) : 0,
|
|
103
175
|
seconds: isSet(object.seconds) ? globalThis.Number(object.seconds) : 0,
|
|
104
176
|
padding: isSet(object.padding) ? globalThis.String(object.padding) : "",
|
|
177
|
+
reverse: isSet(object.reverse) ? exports.Reverse.fromJSON(object.reverse) : undefined,
|
|
105
178
|
};
|
|
106
179
|
},
|
|
107
180
|
toJSON(message) {
|
|
@@ -124,6 +197,9 @@ exports.Account = {
|
|
|
124
197
|
if (message.padding !== "") {
|
|
125
198
|
obj.padding = message.padding;
|
|
126
199
|
}
|
|
200
|
+
if (message.reverse !== undefined) {
|
|
201
|
+
obj.reverse = exports.Reverse.toJSON(message.reverse);
|
|
202
|
+
}
|
|
127
203
|
return obj;
|
|
128
204
|
},
|
|
129
205
|
create(base) {
|
|
@@ -137,6 +213,9 @@ exports.Account = {
|
|
|
137
213
|
message.xorMode = object.xorMode ?? 0;
|
|
138
214
|
message.seconds = object.seconds ?? 0;
|
|
139
215
|
message.padding = object.padding ?? "";
|
|
216
|
+
message.reverse = (object.reverse !== undefined && object.reverse !== null)
|
|
217
|
+
? exports.Reverse.fromPartial(object.reverse)
|
|
218
|
+
: undefined;
|
|
140
219
|
return message;
|
|
141
220
|
},
|
|
142
221
|
};
|
|
@@ -16,7 +16,8 @@ export interface Config {
|
|
|
16
16
|
fallbacks: Fallback[];
|
|
17
17
|
decryption: string;
|
|
18
18
|
xorMode: number;
|
|
19
|
-
|
|
19
|
+
secondsFrom: number;
|
|
20
|
+
secondsTo: number;
|
|
20
21
|
padding: string;
|
|
21
22
|
}
|
|
22
23
|
export declare const Fallback: MessageFns<Fallback, "xray.proxy.vless.inbound.Fallback">;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../../../../src/xray-protos/proxy/vless/inbound/config.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,EAAE,IAAI,EAAE,MAAM,+BAA+B,CAAC;AAGrD,eAAO,MAAM,eAAe,6BAA6B,CAAC;AAE1D,MAAM,WAAW,QAAQ;IACvB,KAAK,EAAE,mCAAmC,CAAC;IAC3C,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,MAAM;IACrB,KAAK,EAAE,iCAAiC,CAAC;IACzC,OAAO,EAAE,IAAI,EAAE,CAAC;IAChB,SAAS,EAAE,QAAQ,EAAE,CAAC;IACtB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../../../../src/xray-protos/proxy/vless/inbound/config.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,EAAE,IAAI,EAAE,MAAM,+BAA+B,CAAC;AAGrD,eAAO,MAAM,eAAe,6BAA6B,CAAC;AAE1D,MAAM,WAAW,QAAQ;IACvB,KAAK,EAAE,mCAAmC,CAAC;IAC3C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AU,CAAC,CAAC,EAAE,CAAC,SAAS,MAAM;IAC7C,QAAQ,CAAC,KAAK,EAAE,CAAC,CAAC;IAClB,MAAM,CAAC,OAAO,EAAE,CAAC,EAAE,MAAM,CAAC,EAAE,YAAY,GAAG,YAAY,CAAC;IACxD,MAAM,CAAC,KAAK,EAAE,YAAY,GAAG,UAAU,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,CAAC,CAAC;IAC7D,QAAQ,CAAC,MAAM,EAAE,GAAG,GAAG,CAAC,CAAC;IACzB,MAAM,CAAC,OAAO,EAAE,CAAC,GAAG,OAAO,CAAC;IAC5B,MAAM,CAAC,IAAI,CAAC,EAAE,WAAW,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;IACjC,WAAW,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;CACxC"}
|
|
@@ -149,7 +149,8 @@ function createBaseConfig() {
|
|
|
149
149
|
fallbacks: [],
|
|
150
150
|
decryption: "",
|
|
151
151
|
xorMode: 0,
|
|
152
|
-
|
|
152
|
+
secondsFrom: 0,
|
|
153
|
+
secondsTo: 0,
|
|
153
154
|
padding: "",
|
|
154
155
|
};
|
|
155
156
|
}
|
|
@@ -168,11 +169,14 @@ exports.Config = {
|
|
|
168
169
|
if (message.xorMode !== 0) {
|
|
169
170
|
writer.uint32(32).uint32(message.xorMode);
|
|
170
171
|
}
|
|
171
|
-
if (message.
|
|
172
|
-
writer.uint32(40).
|
|
172
|
+
if (message.secondsFrom !== 0) {
|
|
173
|
+
writer.uint32(40).int64(message.secondsFrom);
|
|
174
|
+
}
|
|
175
|
+
if (message.secondsTo !== 0) {
|
|
176
|
+
writer.uint32(48).int64(message.secondsTo);
|
|
173
177
|
}
|
|
174
178
|
if (message.padding !== "") {
|
|
175
|
-
writer.uint32(
|
|
179
|
+
writer.uint32(58).string(message.padding);
|
|
176
180
|
}
|
|
177
181
|
return writer;
|
|
178
182
|
},
|
|
@@ -215,11 +219,18 @@ exports.Config = {
|
|
|
215
219
|
if (tag !== 40) {
|
|
216
220
|
break;
|
|
217
221
|
}
|
|
218
|
-
message.
|
|
222
|
+
message.secondsFrom = longToNumber(reader.int64());
|
|
219
223
|
continue;
|
|
220
224
|
}
|
|
221
225
|
case 6: {
|
|
222
|
-
if (tag !==
|
|
226
|
+
if (tag !== 48) {
|
|
227
|
+
break;
|
|
228
|
+
}
|
|
229
|
+
message.secondsTo = longToNumber(reader.int64());
|
|
230
|
+
continue;
|
|
231
|
+
}
|
|
232
|
+
case 7: {
|
|
233
|
+
if (tag !== 58) {
|
|
223
234
|
break;
|
|
224
235
|
}
|
|
225
236
|
message.padding = reader.string();
|
|
@@ -242,7 +253,8 @@ exports.Config = {
|
|
|
242
253
|
: [],
|
|
243
254
|
decryption: isSet(object.decryption) ? globalThis.String(object.decryption) : "",
|
|
244
255
|
xorMode: isSet(object.xorMode) ? globalThis.Number(object.xorMode) : 0,
|
|
245
|
-
|
|
256
|
+
secondsFrom: isSet(object.secondsFrom) ? globalThis.Number(object.secondsFrom) : 0,
|
|
257
|
+
secondsTo: isSet(object.secondsTo) ? globalThis.Number(object.secondsTo) : 0,
|
|
246
258
|
padding: isSet(object.padding) ? globalThis.String(object.padding) : "",
|
|
247
259
|
};
|
|
248
260
|
},
|
|
@@ -260,8 +272,11 @@ exports.Config = {
|
|
|
260
272
|
if (message.xorMode !== 0) {
|
|
261
273
|
obj.xorMode = Math.round(message.xorMode);
|
|
262
274
|
}
|
|
263
|
-
if (message.
|
|
264
|
-
obj.
|
|
275
|
+
if (message.secondsFrom !== 0) {
|
|
276
|
+
obj.secondsFrom = Math.round(message.secondsFrom);
|
|
277
|
+
}
|
|
278
|
+
if (message.secondsTo !== 0) {
|
|
279
|
+
obj.secondsTo = Math.round(message.secondsTo);
|
|
265
280
|
}
|
|
266
281
|
if (message.padding !== "") {
|
|
267
282
|
obj.padding = message.padding;
|
|
@@ -277,7 +292,8 @@ exports.Config = {
|
|
|
277
292
|
message.fallbacks = object.fallbacks?.map((e) => exports.Fallback.fromPartial(e)) || [];
|
|
278
293
|
message.decryption = object.decryption ?? "";
|
|
279
294
|
message.xorMode = object.xorMode ?? 0;
|
|
280
|
-
message.
|
|
295
|
+
message.secondsFrom = object.secondsFrom ?? 0;
|
|
296
|
+
message.secondsTo = object.secondsTo ?? 0;
|
|
281
297
|
message.padding = object.padding ?? "";
|
|
282
298
|
return message;
|
|
283
299
|
},
|