@remnawave/xtls-sdk 0.6.2 → 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/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,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,E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AC,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
|
};
|