@remnawave/xtls-sdk 0.6.0 → 0.6.2
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/handler/handler.service.d.ts +6 -0
- package/build/src/handler/handler.service.d.ts.map +1 -1
- package/build/src/handler/handler.service.js +7 -0
- package/build/src/router/router.service.d.ts +6 -0
- package/build/src/router/router.service.d.ts.map +1 -1
- package/build/src/router/router.service.js +7 -0
- package/build/src/stats/stats.service.d.ts +6 -0
- package/build/src/stats/stats.service.d.ts.map +1 -1
- package/build/src/stats/stats.service.js +7 -0
- 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,4 +1,5 @@
|
|
|
1
1
|
import { Channel } from 'nice-grpc';
|
|
2
|
+
import { HandlerServiceClient } from '../xray-protos/app/proxyman/command/command';
|
|
2
3
|
import { ISdkResponse } from '../common/types/sdk-response';
|
|
3
4
|
import { AddUserResponseModel, GetInboundUsersResponseModel } from './models';
|
|
4
5
|
import { IAddHttpUser, IAddShadowsocks2022User, IAddShadowsocksUser, IAddSocksUser, IAddTrojanUser, IAddVlessUser } from './interfaces';
|
|
@@ -105,5 +106,10 @@ export declare class HandlerService {
|
|
|
105
106
|
* - On failure: An object with `isOk: false` and error details from HANDLER_ERRORS
|
|
106
107
|
*/
|
|
107
108
|
getInboundUsersCount(tag: string): Promise<ISdkResponse<number>>;
|
|
109
|
+
/**
|
|
110
|
+
* Gets the raw gRPC client for direct access to all handler service methods
|
|
111
|
+
* @returns The underlying HandlerServiceClient instance
|
|
112
|
+
*/
|
|
113
|
+
get rawClient(): HandlerServiceClient;
|
|
108
114
|
}
|
|
109
115
|
//# sourceMappingURL=handler.service.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"handler.service.d.ts","sourceRoot":"","sources":["../../../src/handler/handler.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,OAAO,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"handler.service.d.ts","sourceRoot":"","sources":["../../../src/handler/handler.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,OAAO,EAAE,MAAM,WAAW,CAAC;AAClD,OAAO,EAEH,oBAAoB,EAGvB,MAAM,6CAA6C,CAAC;AAGrD,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAE5D,OAAO,EAAE,oBAAoB,EAAE,4BAA4B,EAAE,MAAM,UAAU,CAAC;AAC9E,OAAO,EACH,YAAY,EACZ,uBAAuB,EACvB,mBAAmB,EACnB,aAAa,EACb,cAAc,EACd,aAAa,EAChB,MAAM,cAAc,CAAC;AAOtB,OAAO,EAAE,uBAAuB,EAAE,MAAM,iDAAiD,CAAC;AAE1F;;GAEG;AACH,qBAAa,cAAc;IAGX,OAAO,CAAC,QAAQ,CAAC,OAAO;IAFpC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAuB;gBAEjB,OAAO,EAAE,OAAO;IAI7C;;;;;;;;;;;;;;;;;;;;OAoBG;IACU,eAAe,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC,4BAA4B,CAAC,CAAC;IAoB9F;;;;;;;OAOG;IACU,aAAa,CAAC,IAAI,EAAE,cAAc,GAAG,OAAO,CAAC,YAAY,CAAC,oBAAoB,CAAC,CAAC;IAuC7F;;;;;;;OAOG;IACU,YAAY,CAAC,IAAI,EAAE,aAAa,GAAG,OAAO,CAAC,YAAY,CAAC,oBAAoB,CAAC,CAAC;IAyC3F;;;;;;;OAOG;IACU,kBAAkB,CAC3B,IAAI,EAAE,mBAAmB,GAC1B,OAAO,CAAC,YAAY,CAAC,oBAAoB,CAAC,CAAC;IAyC9C;;;;;;;OAOG;IACU,sBAAsB,CAC/B,IAAI,EAAE,uBAAuB,GAC9B,OAAO,CAAC,YAAY,CAAC,oBAAoB,CAAC,CAAC;IAuC9C;;;;;;;OAOG;IACU,YAAY,CAAC,IAAI,EAAE,aAAa,GAAG,OAAO,CAAC,YAAY,CAAC,oBAAoB,CAAC,CAAC;IAwC3F;;;;;;;OAOG;IACU,WAAW,CAAC,IAAI,EAAE,YAAY,GAAG,OAAO,CAAC,YAAY,CAAC,oBAAoB,CAAC,CAAC;IAwCzF;;;;;;;;OAQG;IACU,UAAU,CACnB,GAAG,EAAE,MAAM,EACX,QAAQ,EAAE,MAAM,GACjB,OAAO,CAAC,YAAY,CAAC,uBAAuB,CAAC,CAAC;IA+BjD;;;;;;;OAOG;IACU,oBAAoB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC;IAmB7E;;;OAGG;IACH,IAAW,SAAS,IAAI,oBAAoB,CAE3C;CACJ"}
|
|
@@ -399,5 +399,12 @@ class HandlerService {
|
|
|
399
399
|
};
|
|
400
400
|
}
|
|
401
401
|
}
|
|
402
|
+
/**
|
|
403
|
+
* Gets the raw gRPC client for direct access to all handler service methods
|
|
404
|
+
* @returns The underlying HandlerServiceClient instance
|
|
405
|
+
*/
|
|
406
|
+
get rawClient() {
|
|
407
|
+
return this.client;
|
|
408
|
+
}
|
|
402
409
|
}
|
|
403
410
|
exports.HandlerService = HandlerService;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Channel } from 'nice-grpc';
|
|
2
|
+
import { RoutingServiceClient } from '../xray-protos/app/router/command/command';
|
|
2
3
|
import { ISdkResponse } from '../common/types/sdk-response';
|
|
3
4
|
import { IAddSourceIpRule, IRemoveRuleByRuleTag } from './interfaces';
|
|
4
5
|
import { AddSourceIpRuleResponseModel } from './models';
|
|
@@ -32,5 +33,10 @@ export declare class RouterService {
|
|
|
32
33
|
* @returns Promise resolving to response indicating success or failure
|
|
33
34
|
*/
|
|
34
35
|
removeRuleByRuleTag(dto: IRemoveRuleByRuleTag): Promise<ISdkResponse<RemoveRuleByRuleTagResponseModel>>;
|
|
36
|
+
/**
|
|
37
|
+
* Gets the raw gRPC client for direct access to all routing service methods
|
|
38
|
+
* @returns The underlying RoutingServiceClient instance
|
|
39
|
+
*/
|
|
40
|
+
get rawClient(): RoutingServiceClient;
|
|
35
41
|
}
|
|
36
42
|
//# sourceMappingURL=router.service.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"router.service.d.ts","sourceRoot":"","sources":["../../../src/router/router.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,OAAO,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"router.service.d.ts","sourceRoot":"","sources":["../../../src/router/router.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,OAAO,EAAE,MAAM,WAAW,CAAC;AAClD,OAAO,EAEH,oBAAoB,EACvB,MAAM,2CAA2C,CAAC;AAEnD,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAE5D,OAAO,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AACtE,OAAO,EAAE,4BAA4B,EAAE,MAAM,UAAU,CAAC;AAExD,OAAO,EAAE,gCAAgC,EAAE,MAAM,kCAAkC,CAAC;AAGpF;;;GAGG;AACH,qBAAa,aAAa;IAOV,OAAO,CAAC,QAAQ,CAAC,OAAO;IANpC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAuB;IAE9C;;;OAGG;gBAC0B,OAAO,EAAE,OAAO;IAI7C;;;;;;;;OAQG;IACU,YAAY,CACrB,GAAG,EAAE,gBAAgB,GACtB,OAAO,CAAC,YAAY,CAAC,4BAA4B,CAAC,CAAC;IA2CtD;;;;;OAKG;IACU,mBAAmB,CAC5B,GAAG,EAAE,oBAAoB,GAC1B,OAAO,CAAC,YAAY,CAAC,gCAAgC,CAAC,CAAC;IAsB1D;;;OAGG;IACH,IAAW,SAAS,IAAI,oBAAoB,CAE3C;CACJ"}
|
|
@@ -102,5 +102,12 @@ class RouterService {
|
|
|
102
102
|
};
|
|
103
103
|
}
|
|
104
104
|
}
|
|
105
|
+
/**
|
|
106
|
+
* Gets the raw gRPC client for direct access to all routing service methods
|
|
107
|
+
* @returns The underlying RoutingServiceClient instance
|
|
108
|
+
*/
|
|
109
|
+
get rawClient() {
|
|
110
|
+
return this.client;
|
|
111
|
+
}
|
|
105
112
|
}
|
|
106
113
|
exports.RouterService = RouterService;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Channel } from 'nice-grpc';
|
|
2
|
+
import { StatsServiceClient } from '../xray-protos/app/stats/command/command';
|
|
2
3
|
import { ISdkResponse } from '../common/types';
|
|
3
4
|
import { GetAllUsersStatsResponseModel, GetUserStatsResponseModel, GetSysStatsResponseModel, GetUserOnlineStatusResponseModel, GetAllInboundsStatsResponseModel, GetInboundStatsResponseModel, GetAllOutboundsStatsResponseModel, GetOutboundStatsResponseModel } from './models';
|
|
4
5
|
/**
|
|
@@ -223,5 +224,10 @@ export declare class StatsService {
|
|
|
223
224
|
* ```
|
|
224
225
|
*/
|
|
225
226
|
getOutboundStats(outbound: string, reset?: boolean): Promise<ISdkResponse<GetOutboundStatsResponseModel>>;
|
|
227
|
+
/**
|
|
228
|
+
* Gets the raw gRPC client for direct access to all stats service methods
|
|
229
|
+
* @returns The underlying StatsServiceClient instance
|
|
230
|
+
*/
|
|
231
|
+
get rawClient(): StatsServiceClient;
|
|
226
232
|
}
|
|
227
233
|
//# sourceMappingURL=stats.service.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stats.service.d.ts","sourceRoot":"","sources":["../../../src/stats/stats.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAgB,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"stats.service.d.ts","sourceRoot":"","sources":["../../../src/stats/stats.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAgB,MAAM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AAC,4BAA4B,CAAC,CAAC;IAuBtD;;;;;;;;;;;;;;;;;;;OAmBG;IACU,oBAAoB,CAC7B,KAAK,GAAE,OAAe,GACvB,OAAO,CAAC,YAAY,CAAC,iCAAiC,CAAC,CAAC;IAuB3D;;;;;;;;;;;;;;;;;;;;OAoBG;IACU,gBAAgB,CACzB,QAAQ,EAAE,MAAM,EAChB,KAAK,GAAE,OAAe,GACvB,OAAO,CAAC,YAAY,CAAC,6BAA6B,CAAC,CAAC;IAuBvD;;;OAGG;IACH,IAAW,SAAS,IAAI,kBAAkB,CAEzC;CACJ"}
|
|
@@ -395,5 +395,12 @@ class StatsService {
|
|
|
395
395
|
};
|
|
396
396
|
}
|
|
397
397
|
}
|
|
398
|
+
/**
|
|
399
|
+
* Gets the raw gRPC client for direct access to all stats service methods
|
|
400
|
+
* @returns The underlying StatsServiceClient instance
|
|
401
|
+
*/
|
|
402
|
+
get rawClient() {
|
|
403
|
+
return this.client;
|
|
404
|
+
}
|
|
398
405
|
}
|
|
399
406
|
exports.StatsService = StatsService;
|
|
@@ -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,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,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;CACjB;AAMD,eAAO,MAAM,QAAQ,EAAE,UAAU,CAAC,QAAQ,EAAE,mCAAmC,CAy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ACxC"}
|
|
@@ -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
|
},
|