@company-semantics/contracts 0.61.0 → 0.61.2
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/types.ts +2 -1
- package/src/index.ts +27 -1
package/package.json
CHANGED
package/src/chat/types.ts
CHANGED
|
@@ -25,7 +25,8 @@ export type ChatVisibility = 'private' | 'public'
|
|
|
25
25
|
*/
|
|
26
26
|
export interface ChatSummary {
|
|
27
27
|
id: string
|
|
28
|
-
title
|
|
28
|
+
/** Title - null means intentionally untitled (title not yet generated) */
|
|
29
|
+
title: string | null
|
|
29
30
|
messageCount: number
|
|
30
31
|
createdAt: string
|
|
31
32
|
updatedAt: string
|
package/src/index.ts
CHANGED
|
@@ -149,8 +149,34 @@ export type {
|
|
|
149
149
|
SharedChatMessage,
|
|
150
150
|
CreateShareRequest,
|
|
151
151
|
UpdateShareRequest,
|
|
152
|
-
// Chat lifecycle
|
|
152
|
+
// Chat lifecycle types
|
|
153
|
+
ChatStatus,
|
|
154
|
+
TitleSource,
|
|
155
|
+
ChatListFilters,
|
|
156
|
+
ChatSummaryExtended,
|
|
157
|
+
TitleGenerationRequest,
|
|
158
|
+
TitleGenerationResponse,
|
|
159
|
+
// Event system types
|
|
160
|
+
BaseEvent,
|
|
161
|
+
InvalidationReason,
|
|
162
|
+
ChatChangedField,
|
|
163
|
+
// Domain events (carry full state)
|
|
153
164
|
ChatCreatedEvent,
|
|
165
|
+
ChatUpdatedEvent,
|
|
166
|
+
ChatDeletedEvent,
|
|
167
|
+
ChatDomainEvent,
|
|
168
|
+
// Invalidation events (staleness signals)
|
|
169
|
+
InvalidateChatEvent,
|
|
170
|
+
InvalidateChatListEvent,
|
|
171
|
+
ChatInvalidationEvent,
|
|
172
|
+
// SSE event unions
|
|
173
|
+
ChatSseEvent,
|
|
174
|
+
ChatUpdateEvent,
|
|
175
|
+
// Legacy types (deprecated, for migration)
|
|
176
|
+
LegacyChatCreatedEvent,
|
|
177
|
+
LegacyChatInvalidatedEvent,
|
|
178
|
+
LegacyChatListInvalidatedEvent,
|
|
179
|
+
LegacyChatSseEvent,
|
|
154
180
|
} from './chat/index'
|
|
155
181
|
|
|
156
182
|
// Organization domain types
|