@riocrypto/common 1.0.2729 → 1.0.2731
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/events/admin-auth-signed-in-event.d.ts +9 -0
- package/build/events/admin-auth-signed-in-event.js +2 -0
- package/build/events/auth-api-key-created-event.d.ts +9 -0
- package/build/events/auth-api-key-created-event.js +2 -0
- package/build/events/auth-api-key-deleted-event.d.ts +9 -0
- package/build/events/auth-api-key-deleted-event.js +2 -0
- package/build/events/auth-password-reset-event.d.ts +9 -0
- package/build/events/auth-password-reset-event.js +2 -0
- package/build/events/auth-signed-in-event.d.ts +4 -0
- package/build/events/auth-two-factor-updated-event.d.ts +9 -0
- package/build/events/auth-two-factor-updated-event.js +2 -0
- package/build/events/auth-webauthn-credential-added-event.d.ts +9 -0
- package/build/events/auth-webauthn-credential-added-event.js +2 -0
- package/build/events/auth-webauthn-credential-deleted-event.d.ts +9 -0
- package/build/events/auth-webauthn-credential-deleted-event.js +2 -0
- package/build/events/security-signal-event.d.ts +14 -0
- package/build/events/security-signal-event.js +2 -0
- package/build/events/subjects.d.ts +9 -1
- package/build/events/subjects.js +8 -0
- package/build/index.d.ts +13 -0
- package/build/index.js +13 -0
- package/build/types/admin-auth-special-permission.d.ts +2 -1
- package/build/types/admin-auth-special-permission.js +1 -0
- package/build/types/auth-sign-in-method.d.ts +6 -0
- package/build/types/auth-sign-in-method.js +10 -0
- package/build/types/security-finding-severity.d.ts +7 -0
- package/build/types/security-finding-severity.js +11 -0
- package/build/types/security-finding-source.d.ts +6 -0
- package/build/types/security-finding-source.js +14 -0
- package/build/types/security-finding-status.d.ts +5 -0
- package/build/types/security-finding-status.js +9 -0
- package/build/types/security-signal-type.d.ts +6 -0
- package/build/types/security-signal-type.js +13 -0
- package/package.json +1 -1
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
import { Subjects } from "./subjects";
|
|
2
|
+
import { AuthSignInMethod } from "../types/auth-sign-in-method";
|
|
2
3
|
export interface AuthSignedInEvent {
|
|
3
4
|
subject: Subjects.AuthSignedIn;
|
|
4
5
|
data: {
|
|
5
6
|
id: string;
|
|
7
|
+
method?: AuthSignInMethod;
|
|
8
|
+
ip?: string;
|
|
9
|
+
requires2FAVerification?: boolean;
|
|
6
10
|
};
|
|
7
11
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Subjects } from "./subjects";
|
|
2
|
+
import { SecuritySignalType } from "../types/security-signal-type";
|
|
3
|
+
export interface SecuritySignalEvent {
|
|
4
|
+
subject: Subjects.SecuritySignal;
|
|
5
|
+
data: {
|
|
6
|
+
type: SecuritySignalType;
|
|
7
|
+
service: string;
|
|
8
|
+
ip: string;
|
|
9
|
+
authId?: string;
|
|
10
|
+
adminAuthId?: string;
|
|
11
|
+
count: number;
|
|
12
|
+
occurredAt: string;
|
|
13
|
+
};
|
|
14
|
+
}
|
|
@@ -244,5 +244,13 @@ export declare enum Subjects {
|
|
|
244
244
|
ComplianceSessionCompleted = "complianceSession:completed",
|
|
245
245
|
MainPricingProviderOffline = "mainPricingProvider:offline",
|
|
246
246
|
MalwareDetected = "malware:detected",
|
|
247
|
-
InformationRequestDocumentUploaded = "informationRequestDocument:uploaded"
|
|
247
|
+
InformationRequestDocumentUploaded = "informationRequestDocument:uploaded",
|
|
248
|
+
SecuritySignal = "security:signal",
|
|
249
|
+
AuthPasswordReset = "auth:passwordReset",
|
|
250
|
+
AuthApiKeyCreated = "auth:apiKeyCreated",
|
|
251
|
+
AuthApiKeyDeleted = "auth:apiKeyDeleted",
|
|
252
|
+
AuthWebauthnCredentialAdded = "auth:webauthnCredentialAdded",
|
|
253
|
+
AuthWebauthnCredentialDeleted = "auth:webauthnCredentialDeleted",
|
|
254
|
+
AuthTwoFactorUpdated = "auth:twoFactorUpdated",
|
|
255
|
+
AdminAuthSignedIn = "adminAuth:signedIn"
|
|
248
256
|
}
|
package/build/events/subjects.js
CHANGED
|
@@ -249,4 +249,12 @@ var Subjects;
|
|
|
249
249
|
Subjects["MainPricingProviderOffline"] = "mainPricingProvider:offline";
|
|
250
250
|
Subjects["MalwareDetected"] = "malware:detected";
|
|
251
251
|
Subjects["InformationRequestDocumentUploaded"] = "informationRequestDocument:uploaded";
|
|
252
|
+
Subjects["SecuritySignal"] = "security:signal";
|
|
253
|
+
Subjects["AuthPasswordReset"] = "auth:passwordReset";
|
|
254
|
+
Subjects["AuthApiKeyCreated"] = "auth:apiKeyCreated";
|
|
255
|
+
Subjects["AuthApiKeyDeleted"] = "auth:apiKeyDeleted";
|
|
256
|
+
Subjects["AuthWebauthnCredentialAdded"] = "auth:webauthnCredentialAdded";
|
|
257
|
+
Subjects["AuthWebauthnCredentialDeleted"] = "auth:webauthnCredentialDeleted";
|
|
258
|
+
Subjects["AuthTwoFactorUpdated"] = "auth:twoFactorUpdated";
|
|
259
|
+
Subjects["AdminAuthSignedIn"] = "adminAuth:signedIn";
|
|
252
260
|
})(Subjects = exports.Subjects || (exports.Subjects = {}));
|
package/build/index.d.ts
CHANGED
|
@@ -46,6 +46,14 @@ export * from "./events/base-listener";
|
|
|
46
46
|
export * from "./events/base-publisher";
|
|
47
47
|
export * from "./events/subjects";
|
|
48
48
|
export * from "./events/auth-signed-in-event";
|
|
49
|
+
export * from "./events/security-signal-event";
|
|
50
|
+
export * from "./events/auth-password-reset-event";
|
|
51
|
+
export * from "./events/auth-api-key-created-event";
|
|
52
|
+
export * from "./events/auth-api-key-deleted-event";
|
|
53
|
+
export * from "./events/auth-webauthn-credential-added-event";
|
|
54
|
+
export * from "./events/auth-webauthn-credential-deleted-event";
|
|
55
|
+
export * from "./events/auth-two-factor-updated-event";
|
|
56
|
+
export * from "./events/admin-auth-signed-in-event";
|
|
49
57
|
export * from "./events/quote-created-event";
|
|
50
58
|
export * from "./events/async-crypto-payout-completed-event";
|
|
51
59
|
export * from "./events/async-crypto-payment-completed-event";
|
|
@@ -530,6 +538,11 @@ export * from "./types/internal-support-chat-kind";
|
|
|
530
538
|
export * from "./types/internal-support-audit-type";
|
|
531
539
|
export * from "./types/internal-support-security-signal-type";
|
|
532
540
|
export * from "./types/internal-support-case-confidence";
|
|
541
|
+
export * from "./types/security-finding-severity";
|
|
542
|
+
export * from "./types/security-finding-status";
|
|
543
|
+
export * from "./types/security-finding-source";
|
|
544
|
+
export * from "./types/security-signal-type";
|
|
545
|
+
export * from "./types/auth-sign-in-method";
|
|
533
546
|
export * from "./types/position";
|
|
534
547
|
export * from "./types/residual";
|
|
535
548
|
export * from "./types/liquidity-sourcing-plan";
|
package/build/index.js
CHANGED
|
@@ -62,6 +62,14 @@ __exportStar(require("./events/base-listener"), exports);
|
|
|
62
62
|
__exportStar(require("./events/base-publisher"), exports);
|
|
63
63
|
__exportStar(require("./events/subjects"), exports);
|
|
64
64
|
__exportStar(require("./events/auth-signed-in-event"), exports);
|
|
65
|
+
__exportStar(require("./events/security-signal-event"), exports);
|
|
66
|
+
__exportStar(require("./events/auth-password-reset-event"), exports);
|
|
67
|
+
__exportStar(require("./events/auth-api-key-created-event"), exports);
|
|
68
|
+
__exportStar(require("./events/auth-api-key-deleted-event"), exports);
|
|
69
|
+
__exportStar(require("./events/auth-webauthn-credential-added-event"), exports);
|
|
70
|
+
__exportStar(require("./events/auth-webauthn-credential-deleted-event"), exports);
|
|
71
|
+
__exportStar(require("./events/auth-two-factor-updated-event"), exports);
|
|
72
|
+
__exportStar(require("./events/admin-auth-signed-in-event"), exports);
|
|
65
73
|
__exportStar(require("./events/quote-created-event"), exports);
|
|
66
74
|
__exportStar(require("./events/async-crypto-payout-completed-event"), exports);
|
|
67
75
|
__exportStar(require("./events/async-crypto-payment-completed-event"), exports);
|
|
@@ -546,6 +554,11 @@ __exportStar(require("./types/internal-support-chat-kind"), exports);
|
|
|
546
554
|
__exportStar(require("./types/internal-support-audit-type"), exports);
|
|
547
555
|
__exportStar(require("./types/internal-support-security-signal-type"), exports);
|
|
548
556
|
__exportStar(require("./types/internal-support-case-confidence"), exports);
|
|
557
|
+
__exportStar(require("./types/security-finding-severity"), exports);
|
|
558
|
+
__exportStar(require("./types/security-finding-status"), exports);
|
|
559
|
+
__exportStar(require("./types/security-finding-source"), exports);
|
|
560
|
+
__exportStar(require("./types/security-signal-type"), exports);
|
|
561
|
+
__exportStar(require("./types/auth-sign-in-method"), exports);
|
|
549
562
|
__exportStar(require("./types/position"), exports);
|
|
550
563
|
__exportStar(require("./types/residual"), exports);
|
|
551
564
|
__exportStar(require("./types/liquidity-sourcing-plan"), exports);
|
|
@@ -8,5 +8,6 @@ export declare enum AdminAuthSpecialPermission {
|
|
|
8
8
|
ModifyTeamMembers = "modifyTeamMembers",
|
|
9
9
|
ModifyOnboardingStatus = "modifyOnboardingStatus",
|
|
10
10
|
UseDexter = "useDexter",
|
|
11
|
-
UseInternalSupportBot = "useInternalSupportBot"
|
|
11
|
+
UseInternalSupportBot = "useInternalSupportBot",
|
|
12
|
+
UseSecurityBot = "useSecurityBot"
|
|
12
13
|
}
|
|
@@ -13,4 +13,5 @@ var AdminAuthSpecialPermission;
|
|
|
13
13
|
AdminAuthSpecialPermission["ModifyOnboardingStatus"] = "modifyOnboardingStatus";
|
|
14
14
|
AdminAuthSpecialPermission["UseDexter"] = "useDexter";
|
|
15
15
|
AdminAuthSpecialPermission["UseInternalSupportBot"] = "useInternalSupportBot";
|
|
16
|
+
AdminAuthSpecialPermission["UseSecurityBot"] = "useSecurityBot";
|
|
16
17
|
})(AdminAuthSpecialPermission = exports.AdminAuthSpecialPermission || (exports.AdminAuthSpecialPermission = {}));
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AuthSignInMethod = void 0;
|
|
4
|
+
var AuthSignInMethod;
|
|
5
|
+
(function (AuthSignInMethod) {
|
|
6
|
+
AuthSignInMethod["Phone"] = "phone";
|
|
7
|
+
AuthSignInMethod["Email"] = "email";
|
|
8
|
+
AuthSignInMethod["TwoFactor"] = "twoFactor";
|
|
9
|
+
AuthSignInMethod["WebAuthn"] = "webAuthn";
|
|
10
|
+
})(AuthSignInMethod = exports.AuthSignInMethod || (exports.AuthSignInMethod = {}));
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SecurityFindingSeverity = void 0;
|
|
4
|
+
var SecurityFindingSeverity;
|
|
5
|
+
(function (SecurityFindingSeverity) {
|
|
6
|
+
SecurityFindingSeverity["Info"] = "info";
|
|
7
|
+
SecurityFindingSeverity["Low"] = "low";
|
|
8
|
+
SecurityFindingSeverity["Medium"] = "medium";
|
|
9
|
+
SecurityFindingSeverity["High"] = "high";
|
|
10
|
+
SecurityFindingSeverity["Critical"] = "critical";
|
|
11
|
+
})(SecurityFindingSeverity = exports.SecurityFindingSeverity || (exports.SecurityFindingSeverity = {}));
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SecurityFindingSource = void 0;
|
|
4
|
+
var SecurityFindingSource;
|
|
5
|
+
(function (SecurityFindingSource) {
|
|
6
|
+
// A deterministic rule over events or a scheduled scan.
|
|
7
|
+
SecurityFindingSource["Rule"] = "rule";
|
|
8
|
+
// The model, during a scheduled or triggered sweep.
|
|
9
|
+
SecurityFindingSource["Sweep"] = "sweep";
|
|
10
|
+
// The model, enriching a finding that already existed.
|
|
11
|
+
SecurityFindingSource["Triage"] = "triage";
|
|
12
|
+
// An admin reported it by hand.
|
|
13
|
+
SecurityFindingSource["Human"] = "human";
|
|
14
|
+
})(SecurityFindingSource = exports.SecurityFindingSource || (exports.SecurityFindingSource = {}));
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SecurityFindingStatus = void 0;
|
|
4
|
+
var SecurityFindingStatus;
|
|
5
|
+
(function (SecurityFindingStatus) {
|
|
6
|
+
SecurityFindingStatus["Open"] = "open";
|
|
7
|
+
SecurityFindingStatus["Resolved"] = "resolved";
|
|
8
|
+
SecurityFindingStatus["FalsePositive"] = "falsePositive";
|
|
9
|
+
})(SecurityFindingStatus = exports.SecurityFindingStatus || (exports.SecurityFindingStatus = {}));
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SecuritySignalType = void 0;
|
|
4
|
+
// Raised by auth and auth-admin when a request looks like probing. Published
|
|
5
|
+
// on every occurrence so security-bot can apply its own windows; the source
|
|
6
|
+
// service keeps its own per-IP threshold for its Slack post.
|
|
7
|
+
var SecuritySignalType;
|
|
8
|
+
(function (SecuritySignalType) {
|
|
9
|
+
SecuritySignalType["FailedUserAuth"] = "failedUserAuth";
|
|
10
|
+
SecuritySignalType["ForgedJwt"] = "forgedJwt";
|
|
11
|
+
SecuritySignalType["FailedAdminAuth"] = "failedAdminAuth";
|
|
12
|
+
SecuritySignalType["ForgedAdminJwt"] = "forgedAdminJwt";
|
|
13
|
+
})(SecuritySignalType = exports.SecuritySignalType || (exports.SecuritySignalType = {}));
|