@company-semantics/contracts 0.90.0 → 0.91.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/chat/index.ts +0 -6
- package/src/chat/types.ts +0 -48
- package/src/index.ts +0 -7
- package/src/usage/types.ts +1 -11
package/package.json
CHANGED
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
|
@@ -169,12 +169,6 @@ export type {
|
|
|
169
169
|
ChatInvalidationEvent,
|
|
170
170
|
// SSE event unions
|
|
171
171
|
ChatSseEvent,
|
|
172
|
-
ChatUpdateEvent,
|
|
173
|
-
// Legacy types (deprecated, for migration)
|
|
174
|
-
LegacyChatCreatedEvent,
|
|
175
|
-
LegacyChatInvalidatedEvent,
|
|
176
|
-
LegacyChatListInvalidatedEvent,
|
|
177
|
-
LegacyChatSseEvent,
|
|
178
172
|
// Runtime profile types (PRD-00229)
|
|
179
173
|
ChatRuntimeProfile,
|
|
180
174
|
ChatRuntimeProfileInfo,
|
|
@@ -464,7 +458,6 @@ export type {
|
|
|
464
458
|
UsageByModel,
|
|
465
459
|
UsageByFeature,
|
|
466
460
|
UsageByUser,
|
|
467
|
-
OrgUsageResponse,
|
|
468
461
|
// Unified usage types (PRD-00276/277)
|
|
469
462
|
UnifiedUsageSummary,
|
|
470
463
|
UnifiedDailyUsage,
|
package/src/usage/types.ts
CHANGED
|
@@ -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)
|