@riocrypto/common 1.0.2728 → 1.0.2730

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.
Files changed (44) hide show
  1. package/build/events/admin-auth-signed-in-event.d.ts +9 -0
  2. package/build/events/admin-auth-signed-in-event.js +2 -0
  3. package/build/events/auth-api-key-created-event.d.ts +9 -0
  4. package/build/events/auth-api-key-created-event.js +2 -0
  5. package/build/events/auth-api-key-deleted-event.d.ts +9 -0
  6. package/build/events/auth-api-key-deleted-event.js +2 -0
  7. package/build/events/auth-password-reset-event.d.ts +9 -0
  8. package/build/events/auth-password-reset-event.js +2 -0
  9. package/build/events/auth-signed-in-event.d.ts +4 -0
  10. package/build/events/auth-two-factor-updated-event.d.ts +9 -0
  11. package/build/events/auth-two-factor-updated-event.js +2 -0
  12. package/build/events/auth-webauthn-credential-added-event.d.ts +9 -0
  13. package/build/events/auth-webauthn-credential-added-event.js +2 -0
  14. package/build/events/auth-webauthn-credential-deleted-event.d.ts +9 -0
  15. package/build/events/auth-webauthn-credential-deleted-event.js +2 -0
  16. package/build/events/security-signal-event.d.ts +14 -0
  17. package/build/events/security-signal-event.js +2 -0
  18. package/build/events/subjects.d.ts +9 -1
  19. package/build/events/subjects.js +8 -0
  20. package/build/index.d.ts +18 -0
  21. package/build/index.js +18 -0
  22. package/build/types/admin-auth-special-permission.d.ts +3 -1
  23. package/build/types/admin-auth-special-permission.js +2 -0
  24. package/build/types/auth-sign-in-method.d.ts +6 -0
  25. package/build/types/auth-sign-in-method.js +10 -0
  26. package/build/types/internal-support-audit-type.d.ts +10 -0
  27. package/build/types/internal-support-audit-type.js +14 -0
  28. package/build/types/internal-support-case-confidence.d.ts +1 -0
  29. package/build/types/internal-support-case-confidence.js +2 -0
  30. package/build/types/internal-support-chat-kind.d.ts +6 -0
  31. package/build/types/internal-support-chat-kind.js +10 -0
  32. package/build/types/internal-support-security-signal-type.d.ts +11 -0
  33. package/build/types/internal-support-security-signal-type.js +24 -0
  34. package/build/types/internal-support-session-status.d.ts +5 -0
  35. package/build/types/internal-support-session-status.js +9 -0
  36. package/build/types/security-finding-severity.d.ts +7 -0
  37. package/build/types/security-finding-severity.js +11 -0
  38. package/build/types/security-finding-source.d.ts +6 -0
  39. package/build/types/security-finding-source.js +14 -0
  40. package/build/types/security-finding-status.d.ts +5 -0
  41. package/build/types/security-finding-status.js +9 -0
  42. package/build/types/security-signal-type.d.ts +6 -0
  43. package/build/types/security-signal-type.js +13 -0
  44. package/package.json +1 -1
@@ -0,0 +1,9 @@
1
+ import { Subjects } from "./subjects";
2
+ export interface AdminAuthSignedInEvent {
3
+ subject: Subjects.AdminAuthSignedIn;
4
+ data: {
5
+ adminAuthId: string;
6
+ ip?: string;
7
+ requires2FAVerification?: boolean;
8
+ };
9
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,9 @@
1
+ import { Subjects } from "./subjects";
2
+ export interface AuthApiKeyCreatedEvent {
3
+ subject: Subjects.AuthApiKeyCreated;
4
+ data: {
5
+ authId: string;
6
+ apiKeyId: string;
7
+ ip?: string;
8
+ };
9
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,9 @@
1
+ import { Subjects } from "./subjects";
2
+ export interface AuthApiKeyDeletedEvent {
3
+ subject: Subjects.AuthApiKeyDeleted;
4
+ data: {
5
+ authId: string;
6
+ apiKeyId: string;
7
+ ip?: string;
8
+ };
9
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,9 @@
1
+ import { Subjects } from "./subjects";
2
+ export interface AuthPasswordResetEvent {
3
+ subject: Subjects.AuthPasswordReset;
4
+ data: {
5
+ authId: string;
6
+ channel: "phone" | "email";
7
+ ip?: string;
8
+ };
9
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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,9 @@
1
+ import { Subjects } from "./subjects";
2
+ export interface AuthTwoFactorUpdatedEvent {
3
+ subject: Subjects.AuthTwoFactorUpdated;
4
+ data: {
5
+ authId: string;
6
+ action: "authenticatorRegistered" | "authenticatorRemoved";
7
+ ip?: string;
8
+ };
9
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,9 @@
1
+ import { Subjects } from "./subjects";
2
+ export interface AuthWebauthnCredentialAddedEvent {
3
+ subject: Subjects.AuthWebauthnCredentialAdded;
4
+ data: {
5
+ authId: string;
6
+ credentialId: string;
7
+ ip?: string;
8
+ };
9
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,9 @@
1
+ import { Subjects } from "./subjects";
2
+ export interface AuthWebauthnCredentialDeletedEvent {
3
+ subject: Subjects.AuthWebauthnCredentialDeleted;
4
+ data: {
5
+ authId: string;
6
+ credentialId: string;
7
+ ip?: string;
8
+ };
9
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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
  }
@@ -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";
@@ -525,6 +533,16 @@ export * from "./types/compliance-rule-set";
525
533
  export * from "./types/compliance-session";
526
534
  export * from "./types/compliance-session-status";
527
535
  export * from "./types/compliance-user-cache";
536
+ export * from "./types/internal-support-session-status";
537
+ export * from "./types/internal-support-chat-kind";
538
+ export * from "./types/internal-support-audit-type";
539
+ export * from "./types/internal-support-security-signal-type";
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";
528
546
  export * from "./types/position";
529
547
  export * from "./types/residual";
530
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);
@@ -541,6 +549,16 @@ __exportStar(require("./types/compliance-rule-set"), exports);
541
549
  __exportStar(require("./types/compliance-session"), exports);
542
550
  __exportStar(require("./types/compliance-session-status"), exports);
543
551
  __exportStar(require("./types/compliance-user-cache"), exports);
552
+ __exportStar(require("./types/internal-support-session-status"), exports);
553
+ __exportStar(require("./types/internal-support-chat-kind"), exports);
554
+ __exportStar(require("./types/internal-support-audit-type"), exports);
555
+ __exportStar(require("./types/internal-support-security-signal-type"), exports);
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);
544
562
  __exportStar(require("./types/position"), exports);
545
563
  __exportStar(require("./types/residual"), exports);
546
564
  __exportStar(require("./types/liquidity-sourcing-plan"), exports);
@@ -7,5 +7,7 @@ export declare enum AdminAuthSpecialPermission {
7
7
  ModifyCryptoAddresses = "modifyCryptoAddresses",
8
8
  ModifyTeamMembers = "modifyTeamMembers",
9
9
  ModifyOnboardingStatus = "modifyOnboardingStatus",
10
- UseDexter = "useDexter"
10
+ UseDexter = "useDexter",
11
+ UseInternalSupportBot = "useInternalSupportBot",
12
+ UseSecurityBot = "useSecurityBot"
11
13
  }
@@ -12,4 +12,6 @@ var AdminAuthSpecialPermission;
12
12
  AdminAuthSpecialPermission["ModifyTeamMembers"] = "modifyTeamMembers";
13
13
  AdminAuthSpecialPermission["ModifyOnboardingStatus"] = "modifyOnboardingStatus";
14
14
  AdminAuthSpecialPermission["UseDexter"] = "useDexter";
15
+ AdminAuthSpecialPermission["UseInternalSupportBot"] = "useInternalSupportBot";
16
+ AdminAuthSpecialPermission["UseSecurityBot"] = "useSecurityBot";
15
17
  })(AdminAuthSpecialPermission = exports.AdminAuthSpecialPermission || (exports.AdminAuthSpecialPermission = {}));
@@ -0,0 +1,6 @@
1
+ export declare enum AuthSignInMethod {
2
+ Phone = "phone",
3
+ Email = "email",
4
+ TwoFactor = "twoFactor",
5
+ WebAuthn = "webAuthn"
6
+ }
@@ -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,10 @@
1
+ export declare enum InternalSupportAuditType {
2
+ SessionCreated = "sessionCreated",
3
+ Question = "question",
4
+ ToolCall = "toolCall",
5
+ ToolResult = "toolResult",
6
+ ToolError = "toolError",
7
+ Answer = "answer",
8
+ Error = "error",
9
+ Stopped = "stopped"
10
+ }
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.InternalSupportAuditType = void 0;
4
+ var InternalSupportAuditType;
5
+ (function (InternalSupportAuditType) {
6
+ InternalSupportAuditType["SessionCreated"] = "sessionCreated";
7
+ InternalSupportAuditType["Question"] = "question";
8
+ InternalSupportAuditType["ToolCall"] = "toolCall";
9
+ InternalSupportAuditType["ToolResult"] = "toolResult";
10
+ InternalSupportAuditType["ToolError"] = "toolError";
11
+ InternalSupportAuditType["Answer"] = "answer";
12
+ InternalSupportAuditType["Error"] = "error";
13
+ InternalSupportAuditType["Stopped"] = "stopped";
14
+ })(InternalSupportAuditType = exports.InternalSupportAuditType || (exports.InternalSupportAuditType = {}));
@@ -0,0 +1 @@
1
+ export type InternalSupportCaseConfidence = "low" | "medium" | "high";
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,6 @@
1
+ export declare enum InternalSupportChatKind {
2
+ User = "user",
3
+ Assistant = "assistant",
4
+ Tool = "tool",
5
+ System = "system"
6
+ }
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.InternalSupportChatKind = void 0;
4
+ var InternalSupportChatKind;
5
+ (function (InternalSupportChatKind) {
6
+ InternalSupportChatKind["User"] = "user";
7
+ InternalSupportChatKind["Assistant"] = "assistant";
8
+ InternalSupportChatKind["Tool"] = "tool";
9
+ InternalSupportChatKind["System"] = "system";
10
+ })(InternalSupportChatKind = exports.InternalSupportChatKind || (exports.InternalSupportChatKind = {}));
@@ -0,0 +1,11 @@
1
+ export declare enum InternalSupportSecuritySignalType {
2
+ ProbingQuestion = "probingQuestion",
3
+ ToolRefused = "toolRefused",
4
+ OutputGuardRedaction = "outputGuardRedaction",
5
+ HeavyRedaction = "heavyRedaction",
6
+ InjectionMarker = "injectionMarker",
7
+ ScopeProbe = "scopeProbe",
8
+ RateLimited = "rateLimited",
9
+ BulkLookup = "bulkLookup",
10
+ DailyCapReached = "dailyCapReached"
11
+ }
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.InternalSupportSecuritySignalType = void 0;
4
+ var InternalSupportSecuritySignalType;
5
+ (function (InternalSupportSecuritySignalType) {
6
+ // The question itself asked for secrets, credentials or bulk PII.
7
+ InternalSupportSecuritySignalType["ProbingQuestion"] = "probingQuestion";
8
+ // A tool refused a repo, path, namespace or collection outside policy.
9
+ InternalSupportSecuritySignalType["ToolRefused"] = "toolRefused";
10
+ // The final answer contained something the output guard had to mask.
11
+ InternalSupportSecuritySignalType["OutputGuardRedaction"] = "outputGuardRedaction";
12
+ // A single tool result needed an unusual number of redactions.
13
+ InternalSupportSecuritySignalType["HeavyRedaction"] = "heavyRedaction";
14
+ // Raw tool output contained instruction-like text aimed at the model.
15
+ InternalSupportSecuritySignalType["InjectionMarker"] = "injectionMarker";
16
+ // Someone asked for data they are not entitled to (other admins' sessions).
17
+ InternalSupportSecuritySignalType["ScopeProbe"] = "scopeProbe";
18
+ // The request rate limiter fired.
19
+ InternalSupportSecuritySignalType["RateLimited"] = "rateLimited";
20
+ // Many distinct users or orders resolved by one admin in a short time.
21
+ InternalSupportSecuritySignalType["BulkLookup"] = "bulkLookup";
22
+ // A daily question or token cap was reached.
23
+ InternalSupportSecuritySignalType["DailyCapReached"] = "dailyCapReached";
24
+ })(InternalSupportSecuritySignalType = exports.InternalSupportSecuritySignalType || (exports.InternalSupportSecuritySignalType = {}));
@@ -0,0 +1,5 @@
1
+ export declare enum InternalSupportSessionStatus {
2
+ Idle = "idle",
3
+ Thinking = "thinking",
4
+ Failed = "failed"
5
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.InternalSupportSessionStatus = void 0;
4
+ var InternalSupportSessionStatus;
5
+ (function (InternalSupportSessionStatus) {
6
+ InternalSupportSessionStatus["Idle"] = "idle";
7
+ InternalSupportSessionStatus["Thinking"] = "thinking";
8
+ InternalSupportSessionStatus["Failed"] = "failed";
9
+ })(InternalSupportSessionStatus = exports.InternalSupportSessionStatus || (exports.InternalSupportSessionStatus = {}));
@@ -0,0 +1,7 @@
1
+ export declare enum SecurityFindingSeverity {
2
+ Info = "info",
3
+ Low = "low",
4
+ Medium = "medium",
5
+ High = "high",
6
+ Critical = "critical"
7
+ }
@@ -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,6 @@
1
+ export declare enum SecurityFindingSource {
2
+ Rule = "rule",
3
+ Sweep = "sweep",
4
+ Triage = "triage",
5
+ Human = "human"
6
+ }
@@ -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,5 @@
1
+ export declare enum SecurityFindingStatus {
2
+ Open = "open",
3
+ Resolved = "resolved",
4
+ FalsePositive = "falsePositive"
5
+ }
@@ -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,6 @@
1
+ export declare enum SecuritySignalType {
2
+ FailedUserAuth = "failedUserAuth",
3
+ ForgedJwt = "forgedJwt",
4
+ FailedAdminAuth = "failedAdminAuth",
5
+ ForgedAdminJwt = "forgedAdminJwt"
6
+ }
@@ -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 = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.2728",
3
+ "version": "1.0.2730",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",