@fatehan/tsrp 1.3.24 → 1.3.26
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/dist/fatehan/activities/workflow.d.ts +24 -0
- package/dist/fatehan/activities/workflow.d.ts.map +1 -1
- package/dist/fatehan/activities/workflow.js +363 -1
- package/dist/fatehan/identities/authentication.d.ts +11 -0
- package/dist/fatehan/identities/authentication.d.ts.map +1 -1
- package/dist/fatehan/identities/authentication.js +169 -3
- package/dist/fatehan/identities/identities.d.ts +2 -1
- package/dist/fatehan/identities/identities.d.ts.map +1 -1
- package/dist/fatehan/identities/identities.js +11 -5
- package/dist/fatehan/models/models.d.ts +4 -0
- package/dist/fatehan/models/models.d.ts.map +1 -1
- package/dist/fatehan/models/models.js +33 -1
- package/dist/fatehan/services/api.d.ts +11 -0
- package/dist/fatehan/services/api.d.ts.map +1 -1
- package/dist/fatehan/services/api.js +189 -4
- package/package.json +2 -2
|
@@ -8,7 +8,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
8
8
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
9
9
|
};
|
|
10
10
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
-
exports.FilterScope = exports.FilterConditions = exports.AreaIndexResponse = exports.AreaIndexRequest = exports.MeResponse = exports.MeRequest = exports.DeviceShowResponse = exports.DeviceShowRequest = exports.DeviceResponse = exports.DeviceRequest_QueryFilterEntry = exports.DeviceRequest = exports.UserResponse = exports.UserRequest_QueryFilterEntry = exports.UserRequest = exports.ConfigResponse_AppDesignConfig = exports.ConfigResponse = exports.ConfigRequest = exports.IoResponse = exports.IoRequest = exports.AuthResponse = exports.AuthRequest = exports.protobufPackage = void 0;
|
|
11
|
+
exports.FilterScope = exports.FilterConditions = exports.AreaIndexResponse = exports.AreaIndexRequest = exports.MeResponse = exports.MeRequest = exports.DeviceShowResponse = exports.DeviceShowRequest = exports.DeviceResponse = exports.DeviceRequest_QueryFilterEntry = exports.DeviceRequest = exports.UserResponse = exports.UserRequest_QueryFilterEntry = exports.UserRequest = exports.ConfigResponse_AppSecConfig = exports.ConfigResponse_AppDesignConfig = exports.ConfigResponse = exports.ConfigRequest = exports.IoResponse = exports.IoRequest = exports.AuthResponse = exports.AuthRequest = exports.protobufPackage = void 0;
|
|
12
12
|
/* eslint-disable */
|
|
13
13
|
const wire_1 = require("@bufbuild/protobuf/wire");
|
|
14
14
|
const long_1 = __importDefault(require("long"));
|
|
@@ -316,7 +316,7 @@ exports.IoResponse = {
|
|
|
316
316
|
},
|
|
317
317
|
};
|
|
318
318
|
function createBaseConfigRequest() {
|
|
319
|
-
return { domain: undefined, partnerId: undefined };
|
|
319
|
+
return { domain: undefined, partnerId: undefined, includeSecurityConfig: false };
|
|
320
320
|
}
|
|
321
321
|
exports.ConfigRequest = {
|
|
322
322
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
@@ -326,6 +326,9 @@ exports.ConfigRequest = {
|
|
|
326
326
|
if (message.partnerId !== undefined) {
|
|
327
327
|
writer.uint32(16).uint64(message.partnerId.toString());
|
|
328
328
|
}
|
|
329
|
+
if (message.includeSecurityConfig !== false) {
|
|
330
|
+
writer.uint32(24).bool(message.includeSecurityConfig);
|
|
331
|
+
}
|
|
329
332
|
return writer;
|
|
330
333
|
},
|
|
331
334
|
decode(input, length) {
|
|
@@ -349,6 +352,13 @@ exports.ConfigRequest = {
|
|
|
349
352
|
message.partnerId = long_1.default.fromString(reader.uint64().toString(), true);
|
|
350
353
|
continue;
|
|
351
354
|
}
|
|
355
|
+
case 3: {
|
|
356
|
+
if (tag !== 24) {
|
|
357
|
+
break;
|
|
358
|
+
}
|
|
359
|
+
message.includeSecurityConfig = reader.bool();
|
|
360
|
+
continue;
|
|
361
|
+
}
|
|
352
362
|
}
|
|
353
363
|
if ((tag & 7) === 4 || tag === 0) {
|
|
354
364
|
break;
|
|
@@ -361,6 +371,9 @@ exports.ConfigRequest = {
|
|
|
361
371
|
return {
|
|
362
372
|
domain: isSet(object.domain) ? globalThis.String(object.domain) : undefined,
|
|
363
373
|
partnerId: isSet(object.partner_id) ? long_1.default.fromValue(object.partner_id) : undefined,
|
|
374
|
+
includeSecurityConfig: isSet(object.include_security_config)
|
|
375
|
+
? globalThis.Boolean(object.include_security_config)
|
|
376
|
+
: false,
|
|
364
377
|
};
|
|
365
378
|
},
|
|
366
379
|
toJSON(message) {
|
|
@@ -371,23 +384,27 @@ exports.ConfigRequest = {
|
|
|
371
384
|
if (message.partnerId !== undefined) {
|
|
372
385
|
obj.partner_id = (message.partnerId || long_1.default.UZERO).toString();
|
|
373
386
|
}
|
|
387
|
+
if (message.includeSecurityConfig !== false) {
|
|
388
|
+
obj.include_security_config = message.includeSecurityConfig;
|
|
389
|
+
}
|
|
374
390
|
return obj;
|
|
375
391
|
},
|
|
376
392
|
create(base) {
|
|
377
393
|
return exports.ConfigRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
378
394
|
},
|
|
379
395
|
fromPartial(object) {
|
|
380
|
-
var _a;
|
|
396
|
+
var _a, _b;
|
|
381
397
|
const message = createBaseConfigRequest();
|
|
382
398
|
message.domain = (_a = object.domain) !== null && _a !== void 0 ? _a : undefined;
|
|
383
399
|
message.partnerId = (object.partnerId !== undefined && object.partnerId !== null)
|
|
384
400
|
? long_1.default.fromValue(object.partnerId)
|
|
385
401
|
: undefined;
|
|
402
|
+
message.includeSecurityConfig = (_b = object.includeSecurityConfig) !== null && _b !== void 0 ? _b : false;
|
|
386
403
|
return message;
|
|
387
404
|
},
|
|
388
405
|
};
|
|
389
406
|
function createBaseConfigResponse() {
|
|
390
|
-
return { cost: 0, records: 0, list: [], appDesign: undefined };
|
|
407
|
+
return { cost: 0, records: 0, list: [], appDesign: undefined, appSec: undefined };
|
|
391
408
|
}
|
|
392
409
|
exports.ConfigResponse = {
|
|
393
410
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
@@ -403,6 +420,9 @@ exports.ConfigResponse = {
|
|
|
403
420
|
if (message.appDesign !== undefined) {
|
|
404
421
|
exports.ConfigResponse_AppDesignConfig.encode(message.appDesign, writer.uint32(34).fork()).join();
|
|
405
422
|
}
|
|
423
|
+
if (message.appSec !== undefined) {
|
|
424
|
+
exports.ConfigResponse_AppSecConfig.encode(message.appSec, writer.uint32(42).fork()).join();
|
|
425
|
+
}
|
|
406
426
|
return writer;
|
|
407
427
|
},
|
|
408
428
|
decode(input, length) {
|
|
@@ -440,6 +460,13 @@ exports.ConfigResponse = {
|
|
|
440
460
|
message.appDesign = exports.ConfigResponse_AppDesignConfig.decode(reader, reader.uint32());
|
|
441
461
|
continue;
|
|
442
462
|
}
|
|
463
|
+
case 5: {
|
|
464
|
+
if (tag !== 42) {
|
|
465
|
+
break;
|
|
466
|
+
}
|
|
467
|
+
message.appSec = exports.ConfigResponse_AppSecConfig.decode(reader, reader.uint32());
|
|
468
|
+
continue;
|
|
469
|
+
}
|
|
443
470
|
}
|
|
444
471
|
if ((tag & 7) === 4 || tag === 0) {
|
|
445
472
|
break;
|
|
@@ -454,6 +481,7 @@ exports.ConfigResponse = {
|
|
|
454
481
|
records: isSet(object.records) ? globalThis.Number(object.records) : 0,
|
|
455
482
|
list: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.list) ? object.list.map((e) => models_1.Config.fromJSON(e)) : [],
|
|
456
483
|
appDesign: isSet(object.appDesign) ? exports.ConfigResponse_AppDesignConfig.fromJSON(object.appDesign) : undefined,
|
|
484
|
+
appSec: isSet(object.appSec) ? exports.ConfigResponse_AppSecConfig.fromJSON(object.appSec) : undefined,
|
|
457
485
|
};
|
|
458
486
|
},
|
|
459
487
|
toJSON(message) {
|
|
@@ -471,6 +499,9 @@ exports.ConfigResponse = {
|
|
|
471
499
|
if (message.appDesign !== undefined) {
|
|
472
500
|
obj.appDesign = exports.ConfigResponse_AppDesignConfig.toJSON(message.appDesign);
|
|
473
501
|
}
|
|
502
|
+
if (message.appSec !== undefined) {
|
|
503
|
+
obj.appSec = exports.ConfigResponse_AppSecConfig.toJSON(message.appSec);
|
|
504
|
+
}
|
|
474
505
|
return obj;
|
|
475
506
|
},
|
|
476
507
|
create(base) {
|
|
@@ -485,6 +516,9 @@ exports.ConfigResponse = {
|
|
|
485
516
|
message.appDesign = (object.appDesign !== undefined && object.appDesign !== null)
|
|
486
517
|
? exports.ConfigResponse_AppDesignConfig.fromPartial(object.appDesign)
|
|
487
518
|
: undefined;
|
|
519
|
+
message.appSec = (object.appSec !== undefined && object.appSec !== null)
|
|
520
|
+
? exports.ConfigResponse_AppSecConfig.fromPartial(object.appSec)
|
|
521
|
+
: undefined;
|
|
488
522
|
return message;
|
|
489
523
|
},
|
|
490
524
|
};
|
|
@@ -720,6 +754,157 @@ exports.ConfigResponse_AppDesignConfig = {
|
|
|
720
754
|
return message;
|
|
721
755
|
},
|
|
722
756
|
};
|
|
757
|
+
function createBaseConfigResponse_AppSecConfig() {
|
|
758
|
+
return {
|
|
759
|
+
maxLogs: undefined,
|
|
760
|
+
maxSessions: undefined,
|
|
761
|
+
maxOtpTries: undefined,
|
|
762
|
+
minPasswordLength: undefined,
|
|
763
|
+
credentialExpirationDays: undefined,
|
|
764
|
+
forcedTwoStepVerification: false,
|
|
765
|
+
};
|
|
766
|
+
}
|
|
767
|
+
exports.ConfigResponse_AppSecConfig = {
|
|
768
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
769
|
+
if (message.maxLogs !== undefined) {
|
|
770
|
+
writer.uint32(8).sint64(message.maxLogs.toString());
|
|
771
|
+
}
|
|
772
|
+
if (message.maxSessions !== undefined) {
|
|
773
|
+
writer.uint32(16).sint64(message.maxSessions.toString());
|
|
774
|
+
}
|
|
775
|
+
if (message.maxOtpTries !== undefined) {
|
|
776
|
+
writer.uint32(24).sint64(message.maxOtpTries.toString());
|
|
777
|
+
}
|
|
778
|
+
if (message.minPasswordLength !== undefined) {
|
|
779
|
+
writer.uint32(32).sint64(message.minPasswordLength.toString());
|
|
780
|
+
}
|
|
781
|
+
if (message.credentialExpirationDays !== undefined) {
|
|
782
|
+
writer.uint32(40).sint64(message.credentialExpirationDays.toString());
|
|
783
|
+
}
|
|
784
|
+
if (message.forcedTwoStepVerification !== false) {
|
|
785
|
+
writer.uint32(48).bool(message.forcedTwoStepVerification);
|
|
786
|
+
}
|
|
787
|
+
return writer;
|
|
788
|
+
},
|
|
789
|
+
decode(input, length) {
|
|
790
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
791
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
792
|
+
const message = createBaseConfigResponse_AppSecConfig();
|
|
793
|
+
while (reader.pos < end) {
|
|
794
|
+
const tag = reader.uint32();
|
|
795
|
+
switch (tag >>> 3) {
|
|
796
|
+
case 1: {
|
|
797
|
+
if (tag !== 8) {
|
|
798
|
+
break;
|
|
799
|
+
}
|
|
800
|
+
message.maxLogs = long_1.default.fromString(reader.sint64().toString());
|
|
801
|
+
continue;
|
|
802
|
+
}
|
|
803
|
+
case 2: {
|
|
804
|
+
if (tag !== 16) {
|
|
805
|
+
break;
|
|
806
|
+
}
|
|
807
|
+
message.maxSessions = long_1.default.fromString(reader.sint64().toString());
|
|
808
|
+
continue;
|
|
809
|
+
}
|
|
810
|
+
case 3: {
|
|
811
|
+
if (tag !== 24) {
|
|
812
|
+
break;
|
|
813
|
+
}
|
|
814
|
+
message.maxOtpTries = long_1.default.fromString(reader.sint64().toString());
|
|
815
|
+
continue;
|
|
816
|
+
}
|
|
817
|
+
case 4: {
|
|
818
|
+
if (tag !== 32) {
|
|
819
|
+
break;
|
|
820
|
+
}
|
|
821
|
+
message.minPasswordLength = long_1.default.fromString(reader.sint64().toString());
|
|
822
|
+
continue;
|
|
823
|
+
}
|
|
824
|
+
case 5: {
|
|
825
|
+
if (tag !== 40) {
|
|
826
|
+
break;
|
|
827
|
+
}
|
|
828
|
+
message.credentialExpirationDays = long_1.default.fromString(reader.sint64().toString());
|
|
829
|
+
continue;
|
|
830
|
+
}
|
|
831
|
+
case 6: {
|
|
832
|
+
if (tag !== 48) {
|
|
833
|
+
break;
|
|
834
|
+
}
|
|
835
|
+
message.forcedTwoStepVerification = reader.bool();
|
|
836
|
+
continue;
|
|
837
|
+
}
|
|
838
|
+
}
|
|
839
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
840
|
+
break;
|
|
841
|
+
}
|
|
842
|
+
reader.skip(tag & 7);
|
|
843
|
+
}
|
|
844
|
+
return message;
|
|
845
|
+
},
|
|
846
|
+
fromJSON(object) {
|
|
847
|
+
return {
|
|
848
|
+
maxLogs: isSet(object.maxLogs) ? long_1.default.fromValue(object.maxLogs) : undefined,
|
|
849
|
+
maxSessions: isSet(object.maxSessions) ? long_1.default.fromValue(object.maxSessions) : undefined,
|
|
850
|
+
maxOtpTries: isSet(object.maxOtpTries) ? long_1.default.fromValue(object.maxOtpTries) : undefined,
|
|
851
|
+
minPasswordLength: isSet(object.minPasswordLength) ? long_1.default.fromValue(object.minPasswordLength) : undefined,
|
|
852
|
+
credentialExpirationDays: isSet(object.credentialExpirationDays)
|
|
853
|
+
? long_1.default.fromValue(object.credentialExpirationDays)
|
|
854
|
+
: undefined,
|
|
855
|
+
forcedTwoStepVerification: isSet(object.forcedTwoStepVerification)
|
|
856
|
+
? globalThis.Boolean(object.forcedTwoStepVerification)
|
|
857
|
+
: false,
|
|
858
|
+
};
|
|
859
|
+
},
|
|
860
|
+
toJSON(message) {
|
|
861
|
+
const obj = {};
|
|
862
|
+
if (message.maxLogs !== undefined) {
|
|
863
|
+
obj.maxLogs = (message.maxLogs || long_1.default.ZERO).toString();
|
|
864
|
+
}
|
|
865
|
+
if (message.maxSessions !== undefined) {
|
|
866
|
+
obj.maxSessions = (message.maxSessions || long_1.default.ZERO).toString();
|
|
867
|
+
}
|
|
868
|
+
if (message.maxOtpTries !== undefined) {
|
|
869
|
+
obj.maxOtpTries = (message.maxOtpTries || long_1.default.ZERO).toString();
|
|
870
|
+
}
|
|
871
|
+
if (message.minPasswordLength !== undefined) {
|
|
872
|
+
obj.minPasswordLength = (message.minPasswordLength || long_1.default.ZERO).toString();
|
|
873
|
+
}
|
|
874
|
+
if (message.credentialExpirationDays !== undefined) {
|
|
875
|
+
obj.credentialExpirationDays = (message.credentialExpirationDays || long_1.default.ZERO).toString();
|
|
876
|
+
}
|
|
877
|
+
if (message.forcedTwoStepVerification !== false) {
|
|
878
|
+
obj.forcedTwoStepVerification = message.forcedTwoStepVerification;
|
|
879
|
+
}
|
|
880
|
+
return obj;
|
|
881
|
+
},
|
|
882
|
+
create(base) {
|
|
883
|
+
return exports.ConfigResponse_AppSecConfig.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
884
|
+
},
|
|
885
|
+
fromPartial(object) {
|
|
886
|
+
var _a;
|
|
887
|
+
const message = createBaseConfigResponse_AppSecConfig();
|
|
888
|
+
message.maxLogs = (object.maxLogs !== undefined && object.maxLogs !== null)
|
|
889
|
+
? long_1.default.fromValue(object.maxLogs)
|
|
890
|
+
: undefined;
|
|
891
|
+
message.maxSessions = (object.maxSessions !== undefined && object.maxSessions !== null)
|
|
892
|
+
? long_1.default.fromValue(object.maxSessions)
|
|
893
|
+
: undefined;
|
|
894
|
+
message.maxOtpTries = (object.maxOtpTries !== undefined && object.maxOtpTries !== null)
|
|
895
|
+
? long_1.default.fromValue(object.maxOtpTries)
|
|
896
|
+
: undefined;
|
|
897
|
+
message.minPasswordLength = (object.minPasswordLength !== undefined && object.minPasswordLength !== null)
|
|
898
|
+
? long_1.default.fromValue(object.minPasswordLength)
|
|
899
|
+
: undefined;
|
|
900
|
+
message.credentialExpirationDays =
|
|
901
|
+
(object.credentialExpirationDays !== undefined && object.credentialExpirationDays !== null)
|
|
902
|
+
? long_1.default.fromValue(object.credentialExpirationDays)
|
|
903
|
+
: undefined;
|
|
904
|
+
message.forcedTwoStepVerification = (_a = object.forcedTwoStepVerification) !== null && _a !== void 0 ? _a : false;
|
|
905
|
+
return message;
|
|
906
|
+
},
|
|
907
|
+
};
|
|
723
908
|
function createBaseUserRequest() {
|
|
724
909
|
return {
|
|
725
910
|
disablePagination: false,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fatehan/tsrp",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.26",
|
|
4
4
|
"description": "fatehan main models",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@types/google-protobuf": "^3.15.12",
|
|
30
30
|
"@types/long": "^5.0.0",
|
|
31
|
-
"@types/node": "^24.
|
|
31
|
+
"@types/node": "^24.7.2",
|
|
32
32
|
"ts-node": "^10.9.2",
|
|
33
33
|
"ts-proto": "^2.7.7",
|
|
34
34
|
"typescript": "^5.9.3",
|