@company-semantics/contracts 0.32.0 → 0.33.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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@company-semantics/contracts",
3
- "version": "0.32.0",
3
+ "version": "0.33.0",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Auth domain contracts
3
+ *
4
+ * Shared types for authentication flows across Company Semantics codebases.
5
+ */
6
+
7
+ /**
8
+ * OTP verification error codes.
9
+ *
10
+ * Returned by the backend in the `errorCode` field of OTP verification errors.
11
+ * Frontend uses these to provide specific user messaging (e.g., expired vs invalid).
12
+ */
13
+ export enum OTPErrorCode {
14
+ InvalidCode = 'invalid_code',
15
+ Expired = 'expired',
16
+ AlreadyUsed = 'already_used',
17
+ NotFound = 'not_found',
18
+ }
package/src/index.ts CHANGED
@@ -109,6 +109,9 @@ export type { Compatibility, Deprecation } from './compatibility'
109
109
  export type { ISODateString, UserIdentity } from './identity/index'
110
110
  export { deriveFullName, resolveDisplayName } from './identity/index'
111
111
 
112
+ // Auth domain types
113
+ export { OTPErrorCode } from './auth/index'
114
+
112
115
  // MCP tool discovery types
113
116
  // @see company-semantics-backend/src/interfaces/mcp/ for implementation
114
117
  export type {