@company-semantics/contracts 0.43.0 → 0.44.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/package.json +1 -1
- package/src/email/types.ts +8 -0
- package/src/index.ts +5 -0
package/package.json
CHANGED
package/src/email/types.ts
CHANGED
|
@@ -50,6 +50,14 @@ export interface EmailPayloads {
|
|
|
50
50
|
/** User agent of the request (for security context) */
|
|
51
51
|
userAgent?: string
|
|
52
52
|
}
|
|
53
|
+
'security.alert': {
|
|
54
|
+
/** Type of security alert */
|
|
55
|
+
alertType: 'excessive_otp_requests' | 'unusual_login_location'
|
|
56
|
+
/** Human-readable details about the alert */
|
|
57
|
+
details: string
|
|
58
|
+
/** ISO timestamp of when the alert was triggered */
|
|
59
|
+
timestamp: string
|
|
60
|
+
}
|
|
53
61
|
}
|
|
54
62
|
|
|
55
63
|
// =============================================================================
|
package/src/index.ts
CHANGED
|
@@ -109,6 +109,11 @@ export type { Compatibility, Deprecation } from './compatibility'
|
|
|
109
109
|
export type { ISODateString, NameSource, UserIdentity } from './identity/index'
|
|
110
110
|
export { extractFirstWord, resolveDisplayName, deriveFullName } from './identity/index'
|
|
111
111
|
|
|
112
|
+
// Avatar types and functions
|
|
113
|
+
// @see ADR-BE-063 for Slack avatar support design
|
|
114
|
+
export type { AvatarSource, ResolvedAvatar } from './identity/index'
|
|
115
|
+
export { generateInitials, resolveAvatar } from './identity/index'
|
|
116
|
+
|
|
112
117
|
// Auth domain types
|
|
113
118
|
export { OTPErrorCode } from './auth/index'
|
|
114
119
|
|