@company-semantics/contracts 0.90.0 → 0.92.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.90.0",
3
+ "version": "0.92.0",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",
@@ -40,6 +40,10 @@
40
40
  "types": "./src/ralph/index.ts",
41
41
  "default": "./src/ralph/index.ts"
42
42
  },
43
+ "./auth": {
44
+ "types": "./src/auth/index.ts",
45
+ "default": "./src/auth/index.ts"
46
+ },
43
47
  "./chat": {
44
48
  "types": "./src/chat/index.ts",
45
49
  "default": "./src/chat/index.ts"
package/src/auth/index.ts CHANGED
@@ -22,4 +22,4 @@ export type AuthStartMode = "otp" | "sso" | "hybrid";
22
22
  export type AuthStartResponse =
23
23
  | { mode: "otp"; devOtp?: string }
24
24
  | { mode: "sso"; providers: string[]; redirectUrl: string }
25
- | { mode: "hybrid"; providers: string[]; recommendedProvider?: string; otpAllowed: true; devOtp?: string };
25
+ | { mode: "hybrid"; providers: string[]; redirectUrl: string; recommendedProvider?: string; otpAllowed: true; devOtp?: string };
package/src/chat/index.ts CHANGED
@@ -38,12 +38,6 @@ export type {
38
38
  ChatInvalidationEvent,
39
39
  // SSE event unions
40
40
  ChatSseEvent,
41
- ChatUpdateEvent,
42
- // Legacy types (deprecated, for migration)
43
- LegacyChatCreatedEvent,
44
- LegacyChatInvalidatedEvent,
45
- LegacyChatListInvalidatedEvent,
46
- LegacyChatSseEvent,
47
41
  } from './types'
48
42
 
49
43
  // Runtime profile types and constants
package/src/chat/types.ts CHANGED
@@ -304,51 +304,3 @@ export type ChatInvalidationEvent = InvalidateChatEvent | InvalidateChatListEven
304
304
  */
305
305
  export type ChatSseEvent = ChatDomainEvent | ChatInvalidationEvent
306
306
 
307
- /**
308
- * Convenience alias for backwards compat.
309
- */
310
- export type ChatUpdateEvent = ChatSseEvent
311
-
312
- // =============================================================================
313
- // Legacy Event Types (deprecated, for migration period only)
314
- // =============================================================================
315
-
316
- /**
317
- * @deprecated Use ChatCreatedEvent with v:1 instead.
318
- * Legacy event shape without v field or data wrapper.
319
- */
320
- export interface LegacyChatCreatedEvent {
321
- type: 'chat.created'
322
- chatId: string
323
- interactionId?: string
324
- title?: string
325
- timestamp: string
326
- }
327
-
328
- /**
329
- * @deprecated Use InvalidateChatEvent instead.
330
- * Legacy invalidation event without v field.
331
- */
332
- export interface LegacyChatInvalidatedEvent {
333
- type: 'chat.invalidated'
334
- chatId: string
335
- timestamp: string
336
- }
337
-
338
- /**
339
- * @deprecated Use InvalidateChatListEvent instead.
340
- * Legacy list invalidation event without v field.
341
- */
342
- export interface LegacyChatListInvalidatedEvent {
343
- type: 'chat.list.invalidated'
344
- timestamp: string
345
- }
346
-
347
- /**
348
- * @deprecated Use ChatSseEvent instead.
349
- * Legacy SSE event union for migration period.
350
- */
351
- export type LegacyChatSseEvent =
352
- | LegacyChatInvalidatedEvent
353
- | LegacyChatListInvalidatedEvent
354
- | LegacyChatCreatedEvent
package/src/index.ts CHANGED
@@ -121,6 +121,7 @@ export type { AvatarSource, ResolvedAvatar } from './identity/index'
121
121
  export { generateInitials, resolveAvatar } from './identity/index'
122
122
 
123
123
  // Auth domain types
124
+ export type { AuthStartMode, AuthStartResponse } from './auth/index'
124
125
  export { OTPErrorCode } from './auth/index'
125
126
 
126
127
  // Email domain types
@@ -169,12 +170,6 @@ export type {
169
170
  ChatInvalidationEvent,
170
171
  // SSE event unions
171
172
  ChatSseEvent,
172
- ChatUpdateEvent,
173
- // Legacy types (deprecated, for migration)
174
- LegacyChatCreatedEvent,
175
- LegacyChatInvalidatedEvent,
176
- LegacyChatListInvalidatedEvent,
177
- LegacyChatSseEvent,
178
173
  // Runtime profile types (PRD-00229)
179
174
  ChatRuntimeProfile,
180
175
  ChatRuntimeProfileInfo,
@@ -464,7 +459,6 @@ export type {
464
459
  UsageByModel,
465
460
  UsageByFeature,
466
461
  UsageByUser,
467
- OrgUsageResponse,
468
462
  // Unified usage types (PRD-00276/277)
469
463
  UnifiedUsageSummary,
470
464
  UnifiedDailyUsage,
@@ -4,7 +4,7 @@
4
4
  * See PRD-00166 for design rationale and invariants.
5
5
  */
6
6
 
7
- export type AiFeature = 'chat' | 'chat_title' | 'ingest_summarize' | 'ingest_embedding';
7
+ export type AiFeature = 'chat' | 'chat_title' | 'ingest_summarize' | 'ingest_embedding' | 'strategy_extraction';
8
8
 
9
9
  export interface UsageSummary {
10
10
  totalTokens: number;
@@ -46,16 +46,6 @@ export interface UsageByUser {
46
46
  requestCount: number;
47
47
  }
48
48
 
49
- /**
50
- * @deprecated Use UnifiedUsageResponse instead. Will be removed in v1.0.
51
- */
52
- export interface OrgUsageResponse {
53
- summary: UsageSummary;
54
- daily: DailyUsage[];
55
- byModel: UsageByModel[];
56
- byFeature: UsageByFeature[];
57
- topUsers: UsageByUser[];
58
- }
59
49
 
60
50
  // ---------------------------------------------------------------------------
61
51
  // Unified Usage Response (PRD-00276/277)