@remnawave/xtls-sdk 0.3.0 → 0.4.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/xray-protos/app/proxyman/command/command.d.ts +38 -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 +211 -1
- package/build/src/xray-protos/transport/internet/config.d.ts +11 -0
- package/build/src/xray-protos/transport/internet/config.d.ts.map +1 -1
- package/build/src/xray-protos/transport/internet/config.js +182 -9
- package/package.json +1 -1
|
@@ -34,6 +34,13 @@ export interface AlterInboundRequest {
|
|
|
34
34
|
export interface AlterInboundResponse {
|
|
35
35
|
$type: "xray.app.proxyman.command.AlterInboundResponse";
|
|
36
36
|
}
|
|
37
|
+
export interface ListInboundsRequest {
|
|
38
|
+
$type: "xray.app.proxyman.command.ListInboundsRequest";
|
|
39
|
+
}
|
|
40
|
+
export interface ListInboundsResponse {
|
|
41
|
+
$type: "xray.app.proxyman.command.ListInboundsResponse";
|
|
42
|
+
inbounds: InboundHandlerConfig[];
|
|
43
|
+
}
|
|
37
44
|
export interface GetInboundUserRequest {
|
|
38
45
|
$type: "xray.app.proxyman.command.GetInboundUserRequest";
|
|
39
46
|
tag: string;
|
|
@@ -69,6 +76,13 @@ export interface AlterOutboundRequest {
|
|
|
69
76
|
export interface AlterOutboundResponse {
|
|
70
77
|
$type: "xray.app.proxyman.command.AlterOutboundResponse";
|
|
71
78
|
}
|
|
79
|
+
export interface ListOutboundsRequest {
|
|
80
|
+
$type: "xray.app.proxyman.command.ListOutboundsRequest";
|
|
81
|
+
}
|
|
82
|
+
export interface ListOutboundsResponse {
|
|
83
|
+
$type: "xray.app.proxyman.command.ListOutboundsResponse";
|
|
84
|
+
outbounds: OutboundHandlerConfig[];
|
|
85
|
+
}
|
|
72
86
|
export interface Config {
|
|
73
87
|
$type: "xray.app.proxyman.command.Config";
|
|
74
88
|
}
|
|
@@ -80,6 +94,8 @@ export declare const RemoveInboundRequest: MessageFns<RemoveInboundRequest, "xra
|
|
|
80
94
|
export declare const RemoveInboundResponse: MessageFns<RemoveInboundResponse, "xray.app.proxyman.command.RemoveInboundResponse">;
|
|
81
95
|
export declare const AlterInboundRequest: MessageFns<AlterInboundRequest, "xray.app.proxyman.command.AlterInboundRequest">;
|
|
82
96
|
export declare const AlterInboundResponse: MessageFns<AlterInboundResponse, "xray.app.proxyman.command.AlterInboundResponse">;
|
|
97
|
+
export declare const ListInboundsRequest: MessageFns<ListInboundsRequest, "xray.app.proxyman.command.ListInboundsRequest">;
|
|
98
|
+
export declare const ListInboundsResponse: MessageFns<ListInboundsResponse, "xray.app.proxyman.command.ListInboundsResponse">;
|
|
83
99
|
export declare const GetInboundUserRequest: MessageFns<GetInboundUserRequest, "xray.app.proxyman.command.GetInboundUserRequest">;
|
|
84
100
|
export declare const GetInboundUserResponse: MessageFns<GetInboundUserResponse, "xray.app.proxyman.command.GetInboundUserResponse">;
|
|
85
101
|
export declare const GetInboundUsersCountResponse: MessageFns<GetInboundUsersCountResponse, "xray.app.proxyman.command.GetInboundUsersCountResponse">;
|
|
@@ -89,6 +105,8 @@ export declare const RemoveOutboundRequest: MessageFns<RemoveOutboundRequest, "x
|
|
|
89
105
|
export declare const RemoveOutboundResponse: MessageFns<RemoveOutboundResponse, "xray.app.proxyman.command.RemoveOutboundResponse">;
|
|
90
106
|
export declare const AlterOutboundRequest: MessageFns<AlterOutboundRequest, "xray.app.proxyman.command.AlterOutboundRequest">;
|
|
91
107
|
export declare const AlterOutboundResponse: MessageFns<AlterOutboundResponse, "xray.app.proxyman.command.AlterOutboundResponse">;
|
|
108
|
+
export declare const ListOutboundsRequest: MessageFns<ListOutboundsRequest, "xray.app.proxyman.command.ListOutboundsRequest">;
|
|
109
|
+
export declare const ListOutboundsResponse: MessageFns<ListOutboundsResponse, "xray.app.proxyman.command.ListOutboundsResponse">;
|
|
92
110
|
export declare const Config: MessageFns<Config, "xray.app.proxyman.command.Config">;
|
|
93
111
|
export type HandlerServiceDefinition = typeof HandlerServiceDefinition;
|
|
94
112
|
export declare const HandlerServiceDefinition: {
|
|
@@ -119,6 +137,14 @@ export declare const HandlerServiceDefinition: {
|
|
|
119
137
|
readonly responseStream: false;
|
|
120
138
|
readonly options: {};
|
|
121
139
|
};
|
|
140
|
+
readonly listInbounds: {
|
|
141
|
+
readonly name: "ListInbounds";
|
|
142
|
+
readonly requestType: MessageFns<ListInboundsRequest, "xray.app.proxyman.command.ListInboundsRequest">;
|
|
143
|
+
readonly requestStream: false;
|
|
144
|
+
readonly responseType: MessageFns<ListInboundsResponse, "xray.app.proxyman.command.ListInboundsResponse">;
|
|
145
|
+
readonly responseStream: false;
|
|
146
|
+
readonly options: {};
|
|
147
|
+
};
|
|
122
148
|
readonly getInboundUsers: {
|
|
123
149
|
readonly name: "GetInboundUsers";
|
|
124
150
|
readonly requestType: MessageFns<GetInboundUserRequest, "xray.app.proxyman.command.GetInboundUserRequest">;
|
|
@@ -159,27 +185,39 @@ export declare const HandlerServiceDefinition: {
|
|
|
159
185
|
readonly responseStream: false;
|
|
160
186
|
readonly options: {};
|
|
161
187
|
};
|
|
188
|
+
readonly listOutbounds: {
|
|
189
|
+
readonly name: "ListOutbounds";
|
|
190
|
+
readonly requestType: MessageFns<ListOutboundsRequest, "xray.app.proxyman.command.ListOutboundsRequest">;
|
|
191
|
+
readonly requestStream: false;
|
|
192
|
+
readonly responseType: MessageFns<ListOutboundsResponse, "xray.app.proxyman.command.ListOutboundsResponse">;
|
|
193
|
+
readonly responseStream: false;
|
|
194
|
+
readonly options: {};
|
|
195
|
+
};
|
|
162
196
|
};
|
|
163
197
|
};
|
|
164
198
|
export interface HandlerServiceImplementation<CallContextExt = {}> {
|
|
165
199
|
addInbound(request: AddInboundRequest, context: CallContext & CallContextExt): Promise<DeepPartial<AddInboundResponse>>;
|
|
166
200
|
removeInbound(request: RemoveInboundRequest, context: CallContext & CallContextExt): Promise<DeepPartial<RemoveInboundResponse>>;
|
|
167
201
|
alterInbound(request: AlterInboundRequest, context: CallContext & CallContextExt): Promise<DeepPartial<AlterInboundResponse>>;
|
|
202
|
+
listInbounds(request: ListInboundsRequest, context: CallContext & CallContextExt): Promise<DeepPartial<ListInboundsResponse>>;
|
|
168
203
|
getInboundUsers(request: GetInboundUserRequest, context: CallContext & CallContextExt): Promise<DeepPartial<GetInboundUserResponse>>;
|
|
169
204
|
getInboundUsersCount(request: GetInboundUserRequest, context: CallContext & CallContextExt): Promise<DeepPartial<GetInboundUsersCountResponse>>;
|
|
170
205
|
addOutbound(request: AddOutboundRequest, context: CallContext & CallContextExt): Promise<DeepPartial<AddOutboundResponse>>;
|
|
171
206
|
removeOutbound(request: RemoveOutboundRequest, context: CallContext & CallContextExt): Promise<DeepPartial<RemoveOutboundResponse>>;
|
|
172
207
|
alterOutbound(request: AlterOutboundRequest, context: CallContext & CallContextExt): Promise<DeepPartial<AlterOutboundResponse>>;
|
|
208
|
+
listOutbounds(request: ListOutboundsRequest, context: CallContext & CallContextExt): Promise<DeepPartial<ListOutboundsResponse>>;
|
|
173
209
|
}
|
|
174
210
|
export interface HandlerServiceClient<CallOptionsExt = {}> {
|
|
175
211
|
addInbound(request: DeepPartial<AddInboundRequest>, options?: CallOptions & CallOptionsExt): Promise<AddInboundResponse>;
|
|
176
212
|
removeInbound(request: DeepPartial<RemoveInboundRequest>, options?: CallOptions & CallOptionsExt): Promise<RemoveInboundResponse>;
|
|
177
213
|
alterInbound(request: DeepPartial<AlterInboundRequest>, options?: CallOptions & CallOptionsExt): Promise<AlterInboundResponse>;
|
|
214
|
+
listInbounds(request: DeepPartial<ListInboundsRequest>, options?: CallOptions & CallOptionsExt): Promise<ListInboundsResponse>;
|
|
178
215
|
getInboundUsers(request: DeepPartial<GetInboundUserRequest>, options?: CallOptions & CallOptionsExt): Promise<GetInboundUserResponse>;
|
|
179
216
|
getInboundUsersCount(request: DeepPartial<GetInboundUserRequest>, options?: CallOptions & CallOptionsExt): Promise<GetInboundUsersCountResponse>;
|
|
180
217
|
addOutbound(request: DeepPartial<AddOutboundRequest>, options?: CallOptions & CallOptionsExt): Promise<AddOutboundResponse>;
|
|
181
218
|
removeOutbound(request: DeepPartial<RemoveOutboundRequest>, options?: CallOptions & CallOptionsExt): Promise<RemoveOutboundResponse>;
|
|
182
219
|
alterOutbound(request: DeepPartial<AlterOutboundRequest>, options?: CallOptions & CallOptionsExt): Promise<AlterOutboundResponse>;
|
|
220
|
+
listOutbounds(request: DeepPartial<ListOutboundsRequest>, options?: CallOptions & CallOptionsExt): Promise<ListOutboundsResponse>;
|
|
183
221
|
}
|
|
184
222
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
185
223
|
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":"command.d.ts","sourceRoot":"","sources":["../../../../../../src/xray-protos/app/proxyman/command/command.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,WAAW,EAAE,MAAM,kBAAkB,CAAC;AACtE,OAAO,EAAE,IAAI,EAAE,MAAM,+BAA+B,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,MAAM,sCAAsC,CAAC;AACpE,OAAO,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAGnF,eAAO,MAAM,eAAe,8BAA8B,CAAC;AAE3D,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,4CAA4C,CAAC;IACpD,IAAI,EAAE,IAAI,GAAG,SAAS,CAAC;CACxB;AAED,MAAM,WAAW,mBAAmB;IAClC,KAAK,EAAE,+CAA+C,CAAC;IACvD,KAAK,EAAE,MAAM,CA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E,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"}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
// protoc v5.28.3
|
|
6
6
|
// source: app/proxyman/command/command.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.HandlerServiceDefinition = exports.Config = exports.AlterOutboundResponse = exports.AlterOutboundRequest = exports.RemoveOutboundResponse = exports.RemoveOutboundRequest = exports.AddOutboundResponse = exports.AddOutboundRequest = exports.GetInboundUsersCountResponse = exports.GetInboundUserResponse = exports.GetInboundUserRequest = exports.AlterInboundResponse = exports.AlterInboundRequest = exports.RemoveInboundResponse = exports.RemoveInboundRequest = exports.AddInboundResponse = exports.AddInboundRequest = exports.RemoveUserOperation = exports.AddUserOperation = exports.protobufPackage = void 0;
|
|
8
|
+
exports.HandlerServiceDefinition = exports.Config = exports.ListOutboundsResponse = exports.ListOutboundsRequest = exports.AlterOutboundResponse = exports.AlterOutboundRequest = exports.RemoveOutboundResponse = exports.RemoveOutboundRequest = exports.AddOutboundResponse = exports.AddOutboundRequest = exports.GetInboundUsersCountResponse = exports.GetInboundUserResponse = exports.GetInboundUserRequest = exports.ListInboundsResponse = exports.ListInboundsRequest = exports.AlterInboundResponse = exports.AlterInboundRequest = exports.RemoveInboundResponse = exports.RemoveInboundRequest = exports.AddInboundResponse = exports.AddInboundRequest = exports.RemoveUserOperation = exports.AddUserOperation = exports.protobufPackage = void 0;
|
|
9
9
|
/* eslint-disable */
|
|
10
10
|
const wire_1 = require("@bufbuild/protobuf/wire");
|
|
11
11
|
const user_1 = require("../../../common/protocol/user");
|
|
@@ -420,6 +420,103 @@ exports.AlterInboundResponse = {
|
|
|
420
420
|
},
|
|
421
421
|
};
|
|
422
422
|
typeRegistry_1.messageTypeRegistry.set(exports.AlterInboundResponse.$type, exports.AlterInboundResponse);
|
|
423
|
+
function createBaseListInboundsRequest() {
|
|
424
|
+
return { $type: "xray.app.proxyman.command.ListInboundsRequest" };
|
|
425
|
+
}
|
|
426
|
+
exports.ListInboundsRequest = {
|
|
427
|
+
$type: "xray.app.proxyman.command.ListInboundsRequest",
|
|
428
|
+
encode(_, writer = new wire_1.BinaryWriter()) {
|
|
429
|
+
return writer;
|
|
430
|
+
},
|
|
431
|
+
decode(input, length) {
|
|
432
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
433
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
434
|
+
const message = createBaseListInboundsRequest();
|
|
435
|
+
while (reader.pos < end) {
|
|
436
|
+
const tag = reader.uint32();
|
|
437
|
+
switch (tag >>> 3) {
|
|
438
|
+
}
|
|
439
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
440
|
+
break;
|
|
441
|
+
}
|
|
442
|
+
reader.skip(tag & 7);
|
|
443
|
+
}
|
|
444
|
+
return message;
|
|
445
|
+
},
|
|
446
|
+
fromJSON(_) {
|
|
447
|
+
return { $type: exports.ListInboundsRequest.$type };
|
|
448
|
+
},
|
|
449
|
+
toJSON(_) {
|
|
450
|
+
const obj = {};
|
|
451
|
+
return obj;
|
|
452
|
+
},
|
|
453
|
+
create(base) {
|
|
454
|
+
return exports.ListInboundsRequest.fromPartial(base ?? {});
|
|
455
|
+
},
|
|
456
|
+
fromPartial(_) {
|
|
457
|
+
const message = createBaseListInboundsRequest();
|
|
458
|
+
return message;
|
|
459
|
+
},
|
|
460
|
+
};
|
|
461
|
+
typeRegistry_1.messageTypeRegistry.set(exports.ListInboundsRequest.$type, exports.ListInboundsRequest);
|
|
462
|
+
function createBaseListInboundsResponse() {
|
|
463
|
+
return { $type: "xray.app.proxyman.command.ListInboundsResponse", inbounds: [] };
|
|
464
|
+
}
|
|
465
|
+
exports.ListInboundsResponse = {
|
|
466
|
+
$type: "xray.app.proxyman.command.ListInboundsResponse",
|
|
467
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
468
|
+
for (const v of message.inbounds) {
|
|
469
|
+
config_1.InboundHandlerConfig.encode(v, writer.uint32(10).fork()).join();
|
|
470
|
+
}
|
|
471
|
+
return writer;
|
|
472
|
+
},
|
|
473
|
+
decode(input, length) {
|
|
474
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
475
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
476
|
+
const message = createBaseListInboundsResponse();
|
|
477
|
+
while (reader.pos < end) {
|
|
478
|
+
const tag = reader.uint32();
|
|
479
|
+
switch (tag >>> 3) {
|
|
480
|
+
case 1: {
|
|
481
|
+
if (tag !== 10) {
|
|
482
|
+
break;
|
|
483
|
+
}
|
|
484
|
+
message.inbounds.push(config_1.InboundHandlerConfig.decode(reader, reader.uint32()));
|
|
485
|
+
continue;
|
|
486
|
+
}
|
|
487
|
+
}
|
|
488
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
489
|
+
break;
|
|
490
|
+
}
|
|
491
|
+
reader.skip(tag & 7);
|
|
492
|
+
}
|
|
493
|
+
return message;
|
|
494
|
+
},
|
|
495
|
+
fromJSON(object) {
|
|
496
|
+
return {
|
|
497
|
+
$type: exports.ListInboundsResponse.$type,
|
|
498
|
+
inbounds: globalThis.Array.isArray(object?.inbounds)
|
|
499
|
+
? object.inbounds.map((e) => config_1.InboundHandlerConfig.fromJSON(e))
|
|
500
|
+
: [],
|
|
501
|
+
};
|
|
502
|
+
},
|
|
503
|
+
toJSON(message) {
|
|
504
|
+
const obj = {};
|
|
505
|
+
if (message.inbounds?.length) {
|
|
506
|
+
obj.inbounds = message.inbounds.map((e) => config_1.InboundHandlerConfig.toJSON(e));
|
|
507
|
+
}
|
|
508
|
+
return obj;
|
|
509
|
+
},
|
|
510
|
+
create(base) {
|
|
511
|
+
return exports.ListInboundsResponse.fromPartial(base ?? {});
|
|
512
|
+
},
|
|
513
|
+
fromPartial(object) {
|
|
514
|
+
const message = createBaseListInboundsResponse();
|
|
515
|
+
message.inbounds = object.inbounds?.map((e) => config_1.InboundHandlerConfig.fromPartial(e)) || [];
|
|
516
|
+
return message;
|
|
517
|
+
},
|
|
518
|
+
};
|
|
519
|
+
typeRegistry_1.messageTypeRegistry.set(exports.ListInboundsResponse.$type, exports.ListInboundsResponse);
|
|
423
520
|
function createBaseGetInboundUserRequest() {
|
|
424
521
|
return { $type: "xray.app.proxyman.command.GetInboundUserRequest", tag: "", email: "" };
|
|
425
522
|
}
|
|
@@ -904,6 +1001,103 @@ exports.AlterOutboundResponse = {
|
|
|
904
1001
|
},
|
|
905
1002
|
};
|
|
906
1003
|
typeRegistry_1.messageTypeRegistry.set(exports.AlterOutboundResponse.$type, exports.AlterOutboundResponse);
|
|
1004
|
+
function createBaseListOutboundsRequest() {
|
|
1005
|
+
return { $type: "xray.app.proxyman.command.ListOutboundsRequest" };
|
|
1006
|
+
}
|
|
1007
|
+
exports.ListOutboundsRequest = {
|
|
1008
|
+
$type: "xray.app.proxyman.command.ListOutboundsRequest",
|
|
1009
|
+
encode(_, writer = new wire_1.BinaryWriter()) {
|
|
1010
|
+
return writer;
|
|
1011
|
+
},
|
|
1012
|
+
decode(input, length) {
|
|
1013
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1014
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1015
|
+
const message = createBaseListOutboundsRequest();
|
|
1016
|
+
while (reader.pos < end) {
|
|
1017
|
+
const tag = reader.uint32();
|
|
1018
|
+
switch (tag >>> 3) {
|
|
1019
|
+
}
|
|
1020
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1021
|
+
break;
|
|
1022
|
+
}
|
|
1023
|
+
reader.skip(tag & 7);
|
|
1024
|
+
}
|
|
1025
|
+
return message;
|
|
1026
|
+
},
|
|
1027
|
+
fromJSON(_) {
|
|
1028
|
+
return { $type: exports.ListOutboundsRequest.$type };
|
|
1029
|
+
},
|
|
1030
|
+
toJSON(_) {
|
|
1031
|
+
const obj = {};
|
|
1032
|
+
return obj;
|
|
1033
|
+
},
|
|
1034
|
+
create(base) {
|
|
1035
|
+
return exports.ListOutboundsRequest.fromPartial(base ?? {});
|
|
1036
|
+
},
|
|
1037
|
+
fromPartial(_) {
|
|
1038
|
+
const message = createBaseListOutboundsRequest();
|
|
1039
|
+
return message;
|
|
1040
|
+
},
|
|
1041
|
+
};
|
|
1042
|
+
typeRegistry_1.messageTypeRegistry.set(exports.ListOutboundsRequest.$type, exports.ListOutboundsRequest);
|
|
1043
|
+
function createBaseListOutboundsResponse() {
|
|
1044
|
+
return { $type: "xray.app.proxyman.command.ListOutboundsResponse", outbounds: [] };
|
|
1045
|
+
}
|
|
1046
|
+
exports.ListOutboundsResponse = {
|
|
1047
|
+
$type: "xray.app.proxyman.command.ListOutboundsResponse",
|
|
1048
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1049
|
+
for (const v of message.outbounds) {
|
|
1050
|
+
config_1.OutboundHandlerConfig.encode(v, writer.uint32(10).fork()).join();
|
|
1051
|
+
}
|
|
1052
|
+
return writer;
|
|
1053
|
+
},
|
|
1054
|
+
decode(input, length) {
|
|
1055
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1056
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1057
|
+
const message = createBaseListOutboundsResponse();
|
|
1058
|
+
while (reader.pos < end) {
|
|
1059
|
+
const tag = reader.uint32();
|
|
1060
|
+
switch (tag >>> 3) {
|
|
1061
|
+
case 1: {
|
|
1062
|
+
if (tag !== 10) {
|
|
1063
|
+
break;
|
|
1064
|
+
}
|
|
1065
|
+
message.outbounds.push(config_1.OutboundHandlerConfig.decode(reader, reader.uint32()));
|
|
1066
|
+
continue;
|
|
1067
|
+
}
|
|
1068
|
+
}
|
|
1069
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1070
|
+
break;
|
|
1071
|
+
}
|
|
1072
|
+
reader.skip(tag & 7);
|
|
1073
|
+
}
|
|
1074
|
+
return message;
|
|
1075
|
+
},
|
|
1076
|
+
fromJSON(object) {
|
|
1077
|
+
return {
|
|
1078
|
+
$type: exports.ListOutboundsResponse.$type,
|
|
1079
|
+
outbounds: globalThis.Array.isArray(object?.outbounds)
|
|
1080
|
+
? object.outbounds.map((e) => config_1.OutboundHandlerConfig.fromJSON(e))
|
|
1081
|
+
: [],
|
|
1082
|
+
};
|
|
1083
|
+
},
|
|
1084
|
+
toJSON(message) {
|
|
1085
|
+
const obj = {};
|
|
1086
|
+
if (message.outbounds?.length) {
|
|
1087
|
+
obj.outbounds = message.outbounds.map((e) => config_1.OutboundHandlerConfig.toJSON(e));
|
|
1088
|
+
}
|
|
1089
|
+
return obj;
|
|
1090
|
+
},
|
|
1091
|
+
create(base) {
|
|
1092
|
+
return exports.ListOutboundsResponse.fromPartial(base ?? {});
|
|
1093
|
+
},
|
|
1094
|
+
fromPartial(object) {
|
|
1095
|
+
const message = createBaseListOutboundsResponse();
|
|
1096
|
+
message.outbounds = object.outbounds?.map((e) => config_1.OutboundHandlerConfig.fromPartial(e)) || [];
|
|
1097
|
+
return message;
|
|
1098
|
+
},
|
|
1099
|
+
};
|
|
1100
|
+
typeRegistry_1.messageTypeRegistry.set(exports.ListOutboundsResponse.$type, exports.ListOutboundsResponse);
|
|
907
1101
|
function createBaseConfig() {
|
|
908
1102
|
return { $type: "xray.app.proxyman.command.Config" };
|
|
909
1103
|
}
|
|
@@ -971,6 +1165,14 @@ exports.HandlerServiceDefinition = {
|
|
|
971
1165
|
responseStream: false,
|
|
972
1166
|
options: {},
|
|
973
1167
|
},
|
|
1168
|
+
listInbounds: {
|
|
1169
|
+
name: "ListInbounds",
|
|
1170
|
+
requestType: exports.ListInboundsRequest,
|
|
1171
|
+
requestStream: false,
|
|
1172
|
+
responseType: exports.ListInboundsResponse,
|
|
1173
|
+
responseStream: false,
|
|
1174
|
+
options: {},
|
|
1175
|
+
},
|
|
974
1176
|
getInboundUsers: {
|
|
975
1177
|
name: "GetInboundUsers",
|
|
976
1178
|
requestType: exports.GetInboundUserRequest,
|
|
@@ -1011,6 +1213,14 @@ exports.HandlerServiceDefinition = {
|
|
|
1011
1213
|
responseStream: false,
|
|
1012
1214
|
options: {},
|
|
1013
1215
|
},
|
|
1216
|
+
listOutbounds: {
|
|
1217
|
+
name: "ListOutbounds",
|
|
1218
|
+
requestType: exports.ListOutboundsRequest,
|
|
1219
|
+
requestStream: false,
|
|
1220
|
+
responseType: exports.ListOutboundsResponse,
|
|
1221
|
+
responseStream: false,
|
|
1222
|
+
options: {},
|
|
1223
|
+
},
|
|
1014
1224
|
},
|
|
1015
1225
|
};
|
|
1016
1226
|
function longToNumber(int64) {
|
|
@@ -57,6 +57,8 @@ export interface ProxyConfig {
|
|
|
57
57
|
}
|
|
58
58
|
export interface CustomSockopt {
|
|
59
59
|
$type: "xray.transport.internet.CustomSockopt";
|
|
60
|
+
system: string;
|
|
61
|
+
network: string;
|
|
60
62
|
level: string;
|
|
61
63
|
opt: string;
|
|
62
64
|
value: string;
|
|
@@ -93,6 +95,7 @@ export interface SocketConfig {
|
|
|
93
95
|
tcpMptcp: boolean;
|
|
94
96
|
customSockopt: CustomSockopt[];
|
|
95
97
|
addressPortStrategy: AddressPortStrategy;
|
|
98
|
+
happyEyeballs: HappyEyeballsConfig | undefined;
|
|
96
99
|
}
|
|
97
100
|
export declare enum SocketConfig_TProxyMode {
|
|
98
101
|
/** Off - TProxy is off. */
|
|
@@ -105,11 +108,19 @@ export declare enum SocketConfig_TProxyMode {
|
|
|
105
108
|
}
|
|
106
109
|
export declare function socketConfig_TProxyModeFromJSON(object: any): SocketConfig_TProxyMode;
|
|
107
110
|
export declare function socketConfig_TProxyModeToJSON(object: SocketConfig_TProxyMode): string;
|
|
111
|
+
export interface HappyEyeballsConfig {
|
|
112
|
+
$type: "xray.transport.internet.HappyEyeballsConfig";
|
|
113
|
+
prioritizeIpv6: boolean;
|
|
114
|
+
interleave: number;
|
|
115
|
+
tryDelayMs: number;
|
|
116
|
+
maxConcurrentTry: number;
|
|
117
|
+
}
|
|
108
118
|
export declare const TransportConfig: MessageFns<TransportConfig, "xray.transport.internet.TransportConfig">;
|
|
109
119
|
export declare const StreamConfig: MessageFns<StreamConfig, "xray.transport.internet.StreamConfig">;
|
|
110
120
|
export declare const ProxyConfig: MessageFns<ProxyConfig, "xray.transport.internet.ProxyConfig">;
|
|
111
121
|
export declare const CustomSockopt: MessageFns<CustomSockopt, "xray.transport.internet.CustomSockopt">;
|
|
112
122
|
export declare const SocketConfig: MessageFns<SocketConfig, "xray.transport.internet.SocketConfig">;
|
|
123
|
+
export declare const HappyEyeballsConfig: MessageFns<HappyEyeballsConfig, "xray.transport.internet.HappyEyeballsConfig">;
|
|
113
124
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
114
125
|
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 {} ? {
|
|
115
126
|
[K in Exclude<keyof T, "$type">]?: DeepPartial<T[K]>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../../../src/xray-protos/transport/internet/config.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AAGjE,eAAO,MAAM,eAAe,4BAA4B,CAAC;AAEzD,oBAAY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,qCAAqC,CAAC;IAC7C,GAAG,EAAE,MAAM,CAAC;IACZ,mBAAmB,EAAE,OAAO,CAAC;CAC9B;AAED,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,uCAAuC,CAAC;IAC/C,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;CACd;AAED,gEAAgE;AAChE,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,sCAAsC,CAAC;IAC9C,6EAA6E;IAC7E,IAAI,EAAE,MAAM,CAAC;IACb,wCAAwC;IACxC,GAAG,EAAE,MAAM,CAAC;IACZ,mDAAmD;IACnD,MAAM,EAAE,uBAAuB,CAAC;IAChC;;;OAGG;IACH,0BAA0B,EAAE,OAAO,CAAC;IACpC,WAAW,EAAE,UAAU,CAAC;IACxB,QAAQ,EAAE,MAAM,CAAC;IACjB,mBAAmB,EAAE,OAAO,CAAC;IAC7B,cAAc,EAAE,cAAc,CAAC;IAC/B,WAAW,EAAE,MAAM,CAAC;IACpB,oBAAoB,EAAE,MAAM,CAAC;IAC7B,gBAAgB,EAAE,MAAM,CAAC;IACzB,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,OAAO,CAAC;IAChB,cAAc,EAAE,MAAM,CAAC;IACvB,cAAc,EAAE,MAAM,CAAC;IACvB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,OAAO,CAAC;IAClB,aAAa,EAAE,aAAa,EAAE,CAAC;IAC/B,mBAAmB,EAAE,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../../../src/xray-protos/transport/internet/config.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,EAAE,U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C,MAAM,CAAC,CAAC,GAAG,UAAU,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,GACtE,CAAC,SAAS,aAAa,CAAC,MAAM,CAAC,CAAC,GAAG,aAAa,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,GAChE,CAAC,SAAS,EAAE,GAAG;KAAG,CAAC,IAAI,OAAO,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CAAE,GACvE,OAAO,CAAC,CAAC,CAAC,CAAC;AAiBf,MAAM,WAAW,UAAU,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"}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
// protoc v5.28.3
|
|
6
6
|
// source: transport/internet/config.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.SocketConfig = exports.CustomSockopt = exports.ProxyConfig = exports.StreamConfig = exports.TransportConfig = exports.SocketConfig_TProxyMode = exports.AddressPortStrategy = exports.DomainStrategy = exports.protobufPackage = void 0;
|
|
8
|
+
exports.HappyEyeballsConfig = exports.SocketConfig = exports.CustomSockopt = exports.ProxyConfig = exports.StreamConfig = exports.TransportConfig = exports.SocketConfig_TProxyMode = exports.AddressPortStrategy = exports.DomainStrategy = exports.protobufPackage = void 0;
|
|
9
9
|
exports.domainStrategyFromJSON = domainStrategyFromJSON;
|
|
10
10
|
exports.domainStrategyToJSON = domainStrategyToJSON;
|
|
11
11
|
exports.addressPortStrategyFromJSON = addressPortStrategyFromJSON;
|
|
@@ -512,22 +512,36 @@ exports.ProxyConfig = {
|
|
|
512
512
|
};
|
|
513
513
|
typeRegistry_1.messageTypeRegistry.set(exports.ProxyConfig.$type, exports.ProxyConfig);
|
|
514
514
|
function createBaseCustomSockopt() {
|
|
515
|
-
return {
|
|
515
|
+
return {
|
|
516
|
+
$type: "xray.transport.internet.CustomSockopt",
|
|
517
|
+
system: "",
|
|
518
|
+
network: "",
|
|
519
|
+
level: "",
|
|
520
|
+
opt: "",
|
|
521
|
+
value: "",
|
|
522
|
+
type: "",
|
|
523
|
+
};
|
|
516
524
|
}
|
|
517
525
|
exports.CustomSockopt = {
|
|
518
526
|
$type: "xray.transport.internet.CustomSockopt",
|
|
519
527
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
528
|
+
if (message.system !== "") {
|
|
529
|
+
writer.uint32(10).string(message.system);
|
|
530
|
+
}
|
|
531
|
+
if (message.network !== "") {
|
|
532
|
+
writer.uint32(18).string(message.network);
|
|
533
|
+
}
|
|
520
534
|
if (message.level !== "") {
|
|
521
|
-
writer.uint32(
|
|
535
|
+
writer.uint32(26).string(message.level);
|
|
522
536
|
}
|
|
523
537
|
if (message.opt !== "") {
|
|
524
|
-
writer.uint32(
|
|
538
|
+
writer.uint32(34).string(message.opt);
|
|
525
539
|
}
|
|
526
540
|
if (message.value !== "") {
|
|
527
|
-
writer.uint32(
|
|
541
|
+
writer.uint32(42).string(message.value);
|
|
528
542
|
}
|
|
529
543
|
if (message.type !== "") {
|
|
530
|
-
writer.uint32(
|
|
544
|
+
writer.uint32(50).string(message.type);
|
|
531
545
|
}
|
|
532
546
|
return writer;
|
|
533
547
|
},
|
|
@@ -542,27 +556,41 @@ exports.CustomSockopt = {
|
|
|
542
556
|
if (tag !== 10) {
|
|
543
557
|
break;
|
|
544
558
|
}
|
|
545
|
-
message.
|
|
559
|
+
message.system = reader.string();
|
|
546
560
|
continue;
|
|
547
561
|
}
|
|
548
562
|
case 2: {
|
|
549
563
|
if (tag !== 18) {
|
|
550
564
|
break;
|
|
551
565
|
}
|
|
552
|
-
message.
|
|
566
|
+
message.network = reader.string();
|
|
553
567
|
continue;
|
|
554
568
|
}
|
|
555
569
|
case 3: {
|
|
556
570
|
if (tag !== 26) {
|
|
557
571
|
break;
|
|
558
572
|
}
|
|
559
|
-
message.
|
|
573
|
+
message.level = reader.string();
|
|
560
574
|
continue;
|
|
561
575
|
}
|
|
562
576
|
case 4: {
|
|
563
577
|
if (tag !== 34) {
|
|
564
578
|
break;
|
|
565
579
|
}
|
|
580
|
+
message.opt = reader.string();
|
|
581
|
+
continue;
|
|
582
|
+
}
|
|
583
|
+
case 5: {
|
|
584
|
+
if (tag !== 42) {
|
|
585
|
+
break;
|
|
586
|
+
}
|
|
587
|
+
message.value = reader.string();
|
|
588
|
+
continue;
|
|
589
|
+
}
|
|
590
|
+
case 6: {
|
|
591
|
+
if (tag !== 50) {
|
|
592
|
+
break;
|
|
593
|
+
}
|
|
566
594
|
message.type = reader.string();
|
|
567
595
|
continue;
|
|
568
596
|
}
|
|
@@ -577,6 +605,8 @@ exports.CustomSockopt = {
|
|
|
577
605
|
fromJSON(object) {
|
|
578
606
|
return {
|
|
579
607
|
$type: exports.CustomSockopt.$type,
|
|
608
|
+
system: isSet(object.system) ? globalThis.String(object.system) : "",
|
|
609
|
+
network: isSet(object.network) ? globalThis.String(object.network) : "",
|
|
580
610
|
level: isSet(object.level) ? globalThis.String(object.level) : "",
|
|
581
611
|
opt: isSet(object.opt) ? globalThis.String(object.opt) : "",
|
|
582
612
|
value: isSet(object.value) ? globalThis.String(object.value) : "",
|
|
@@ -585,6 +615,12 @@ exports.CustomSockopt = {
|
|
|
585
615
|
},
|
|
586
616
|
toJSON(message) {
|
|
587
617
|
const obj = {};
|
|
618
|
+
if (message.system !== "") {
|
|
619
|
+
obj.system = message.system;
|
|
620
|
+
}
|
|
621
|
+
if (message.network !== "") {
|
|
622
|
+
obj.network = message.network;
|
|
623
|
+
}
|
|
588
624
|
if (message.level !== "") {
|
|
589
625
|
obj.level = message.level;
|
|
590
626
|
}
|
|
@@ -604,6 +640,8 @@ exports.CustomSockopt = {
|
|
|
604
640
|
},
|
|
605
641
|
fromPartial(object) {
|
|
606
642
|
const message = createBaseCustomSockopt();
|
|
643
|
+
message.system = object.system ?? "";
|
|
644
|
+
message.network = object.network ?? "";
|
|
607
645
|
message.level = object.level ?? "";
|
|
608
646
|
message.opt = object.opt ?? "";
|
|
609
647
|
message.value = object.value ?? "";
|
|
@@ -636,6 +674,7 @@ function createBaseSocketConfig() {
|
|
|
636
674
|
tcpMptcp: false,
|
|
637
675
|
customSockopt: [],
|
|
638
676
|
addressPortStrategy: 0,
|
|
677
|
+
happyEyeballs: undefined,
|
|
639
678
|
};
|
|
640
679
|
}
|
|
641
680
|
exports.SocketConfig = {
|
|
@@ -704,6 +743,9 @@ exports.SocketConfig = {
|
|
|
704
743
|
if (message.addressPortStrategy !== 0) {
|
|
705
744
|
writer.uint32(168).int32(message.addressPortStrategy);
|
|
706
745
|
}
|
|
746
|
+
if (message.happyEyeballs !== undefined) {
|
|
747
|
+
exports.HappyEyeballsConfig.encode(message.happyEyeballs, writer.uint32(178).fork()).join();
|
|
748
|
+
}
|
|
707
749
|
return writer;
|
|
708
750
|
},
|
|
709
751
|
decode(input, length) {
|
|
@@ -860,6 +902,13 @@ exports.SocketConfig = {
|
|
|
860
902
|
message.addressPortStrategy = reader.int32();
|
|
861
903
|
continue;
|
|
862
904
|
}
|
|
905
|
+
case 22: {
|
|
906
|
+
if (tag !== 178) {
|
|
907
|
+
break;
|
|
908
|
+
}
|
|
909
|
+
message.happyEyeballs = exports.HappyEyeballsConfig.decode(reader, reader.uint32());
|
|
910
|
+
continue;
|
|
911
|
+
}
|
|
863
912
|
}
|
|
864
913
|
if ((tag & 7) === 4 || tag === 0) {
|
|
865
914
|
break;
|
|
@@ -898,6 +947,7 @@ exports.SocketConfig = {
|
|
|
898
947
|
addressPortStrategy: isSet(object.addressPortStrategy)
|
|
899
948
|
? addressPortStrategyFromJSON(object.addressPortStrategy)
|
|
900
949
|
: 0,
|
|
950
|
+
happyEyeballs: isSet(object.happyEyeballs) ? exports.HappyEyeballsConfig.fromJSON(object.happyEyeballs) : undefined,
|
|
901
951
|
};
|
|
902
952
|
},
|
|
903
953
|
toJSON(message) {
|
|
@@ -965,6 +1015,9 @@ exports.SocketConfig = {
|
|
|
965
1015
|
if (message.addressPortStrategy !== 0) {
|
|
966
1016
|
obj.addressPortStrategy = addressPortStrategyToJSON(message.addressPortStrategy);
|
|
967
1017
|
}
|
|
1018
|
+
if (message.happyEyeballs !== undefined) {
|
|
1019
|
+
obj.happyEyeballs = exports.HappyEyeballsConfig.toJSON(message.happyEyeballs);
|
|
1020
|
+
}
|
|
968
1021
|
return obj;
|
|
969
1022
|
},
|
|
970
1023
|
create(base) {
|
|
@@ -993,10 +1046,120 @@ exports.SocketConfig = {
|
|
|
993
1046
|
message.tcpMptcp = object.tcpMptcp ?? false;
|
|
994
1047
|
message.customSockopt = object.customSockopt?.map((e) => exports.CustomSockopt.fromPartial(e)) || [];
|
|
995
1048
|
message.addressPortStrategy = object.addressPortStrategy ?? 0;
|
|
1049
|
+
message.happyEyeballs = (object.happyEyeballs !== undefined && object.happyEyeballs !== null)
|
|
1050
|
+
? exports.HappyEyeballsConfig.fromPartial(object.happyEyeballs)
|
|
1051
|
+
: undefined;
|
|
996
1052
|
return message;
|
|
997
1053
|
},
|
|
998
1054
|
};
|
|
999
1055
|
typeRegistry_1.messageTypeRegistry.set(exports.SocketConfig.$type, exports.SocketConfig);
|
|
1056
|
+
function createBaseHappyEyeballsConfig() {
|
|
1057
|
+
return {
|
|
1058
|
+
$type: "xray.transport.internet.HappyEyeballsConfig",
|
|
1059
|
+
prioritizeIpv6: false,
|
|
1060
|
+
interleave: 0,
|
|
1061
|
+
tryDelayMs: 0,
|
|
1062
|
+
maxConcurrentTry: 0,
|
|
1063
|
+
};
|
|
1064
|
+
}
|
|
1065
|
+
exports.HappyEyeballsConfig = {
|
|
1066
|
+
$type: "xray.transport.internet.HappyEyeballsConfig",
|
|
1067
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1068
|
+
if (message.prioritizeIpv6 !== false) {
|
|
1069
|
+
writer.uint32(8).bool(message.prioritizeIpv6);
|
|
1070
|
+
}
|
|
1071
|
+
if (message.interleave !== 0) {
|
|
1072
|
+
writer.uint32(16).uint32(message.interleave);
|
|
1073
|
+
}
|
|
1074
|
+
if (message.tryDelayMs !== 0) {
|
|
1075
|
+
writer.uint32(24).uint64(message.tryDelayMs);
|
|
1076
|
+
}
|
|
1077
|
+
if (message.maxConcurrentTry !== 0) {
|
|
1078
|
+
writer.uint32(32).uint32(message.maxConcurrentTry);
|
|
1079
|
+
}
|
|
1080
|
+
return writer;
|
|
1081
|
+
},
|
|
1082
|
+
decode(input, length) {
|
|
1083
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1084
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
1085
|
+
const message = createBaseHappyEyeballsConfig();
|
|
1086
|
+
while (reader.pos < end) {
|
|
1087
|
+
const tag = reader.uint32();
|
|
1088
|
+
switch (tag >>> 3) {
|
|
1089
|
+
case 1: {
|
|
1090
|
+
if (tag !== 8) {
|
|
1091
|
+
break;
|
|
1092
|
+
}
|
|
1093
|
+
message.prioritizeIpv6 = reader.bool();
|
|
1094
|
+
continue;
|
|
1095
|
+
}
|
|
1096
|
+
case 2: {
|
|
1097
|
+
if (tag !== 16) {
|
|
1098
|
+
break;
|
|
1099
|
+
}
|
|
1100
|
+
message.interleave = reader.uint32();
|
|
1101
|
+
continue;
|
|
1102
|
+
}
|
|
1103
|
+
case 3: {
|
|
1104
|
+
if (tag !== 24) {
|
|
1105
|
+
break;
|
|
1106
|
+
}
|
|
1107
|
+
message.tryDelayMs = longToNumber(reader.uint64());
|
|
1108
|
+
continue;
|
|
1109
|
+
}
|
|
1110
|
+
case 4: {
|
|
1111
|
+
if (tag !== 32) {
|
|
1112
|
+
break;
|
|
1113
|
+
}
|
|
1114
|
+
message.maxConcurrentTry = reader.uint32();
|
|
1115
|
+
continue;
|
|
1116
|
+
}
|
|
1117
|
+
}
|
|
1118
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1119
|
+
break;
|
|
1120
|
+
}
|
|
1121
|
+
reader.skip(tag & 7);
|
|
1122
|
+
}
|
|
1123
|
+
return message;
|
|
1124
|
+
},
|
|
1125
|
+
fromJSON(object) {
|
|
1126
|
+
return {
|
|
1127
|
+
$type: exports.HappyEyeballsConfig.$type,
|
|
1128
|
+
prioritizeIpv6: isSet(object.prioritizeIpv6) ? globalThis.Boolean(object.prioritizeIpv6) : false,
|
|
1129
|
+
interleave: isSet(object.interleave) ? globalThis.Number(object.interleave) : 0,
|
|
1130
|
+
tryDelayMs: isSet(object.tryDelayMs) ? globalThis.Number(object.tryDelayMs) : 0,
|
|
1131
|
+
maxConcurrentTry: isSet(object.maxConcurrentTry) ? globalThis.Number(object.maxConcurrentTry) : 0,
|
|
1132
|
+
};
|
|
1133
|
+
},
|
|
1134
|
+
toJSON(message) {
|
|
1135
|
+
const obj = {};
|
|
1136
|
+
if (message.prioritizeIpv6 !== false) {
|
|
1137
|
+
obj.prioritizeIpv6 = message.prioritizeIpv6;
|
|
1138
|
+
}
|
|
1139
|
+
if (message.interleave !== 0) {
|
|
1140
|
+
obj.interleave = Math.round(message.interleave);
|
|
1141
|
+
}
|
|
1142
|
+
if (message.tryDelayMs !== 0) {
|
|
1143
|
+
obj.tryDelayMs = Math.round(message.tryDelayMs);
|
|
1144
|
+
}
|
|
1145
|
+
if (message.maxConcurrentTry !== 0) {
|
|
1146
|
+
obj.maxConcurrentTry = Math.round(message.maxConcurrentTry);
|
|
1147
|
+
}
|
|
1148
|
+
return obj;
|
|
1149
|
+
},
|
|
1150
|
+
create(base) {
|
|
1151
|
+
return exports.HappyEyeballsConfig.fromPartial(base ?? {});
|
|
1152
|
+
},
|
|
1153
|
+
fromPartial(object) {
|
|
1154
|
+
const message = createBaseHappyEyeballsConfig();
|
|
1155
|
+
message.prioritizeIpv6 = object.prioritizeIpv6 ?? false;
|
|
1156
|
+
message.interleave = object.interleave ?? 0;
|
|
1157
|
+
message.tryDelayMs = object.tryDelayMs ?? 0;
|
|
1158
|
+
message.maxConcurrentTry = object.maxConcurrentTry ?? 0;
|
|
1159
|
+
return message;
|
|
1160
|
+
},
|
|
1161
|
+
};
|
|
1162
|
+
typeRegistry_1.messageTypeRegistry.set(exports.HappyEyeballsConfig.$type, exports.HappyEyeballsConfig);
|
|
1000
1163
|
function bytesFromBase64(b64) {
|
|
1001
1164
|
if (globalThis.Buffer) {
|
|
1002
1165
|
return Uint8Array.from(globalThis.Buffer.from(b64, "base64"));
|
|
@@ -1022,6 +1185,16 @@ function base64FromBytes(arr) {
|
|
|
1022
1185
|
return globalThis.btoa(bin.join(""));
|
|
1023
1186
|
}
|
|
1024
1187
|
}
|
|
1188
|
+
function longToNumber(int64) {
|
|
1189
|
+
const num = globalThis.Number(int64.toString());
|
|
1190
|
+
if (num > globalThis.Number.MAX_SAFE_INTEGER) {
|
|
1191
|
+
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
1192
|
+
}
|
|
1193
|
+
if (num < globalThis.Number.MIN_SAFE_INTEGER) {
|
|
1194
|
+
throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
|
|
1195
|
+
}
|
|
1196
|
+
return num;
|
|
1197
|
+
}
|
|
1025
1198
|
function isSet(value) {
|
|
1026
1199
|
return value !== null && value !== undefined;
|
|
1027
1200
|
}
|