@company-semantics/contracts 0.61.1 → 0.62.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 -1
- package/src/chat/types.ts +5 -17
- package/src/index.ts +0 -1
package/package.json
CHANGED
package/src/chat/index.ts
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
|
|
@@ -108,13 +109,6 @@ export interface UpdateShareRequest {
|
|
|
108
109
|
// Chat Lifecycle Types
|
|
109
110
|
// =============================================================================
|
|
110
111
|
|
|
111
|
-
/**
|
|
112
|
-
* Chat status for lifecycle management.
|
|
113
|
-
* - active: Normal visible chat
|
|
114
|
-
* - archived: Hidden from main list, still searchable
|
|
115
|
-
*/
|
|
116
|
-
export type ChatStatus = 'active' | 'archived'
|
|
117
|
-
|
|
118
112
|
/**
|
|
119
113
|
* Title source - tracks how the title was set.
|
|
120
114
|
* - auto: Generated automatically by LLM
|
|
@@ -128,8 +122,6 @@ export type TitleSource = 'auto' | 'manual'
|
|
|
128
122
|
export interface ChatListFilters {
|
|
129
123
|
/** Search query - matches against title */
|
|
130
124
|
search?: string
|
|
131
|
-
/** Filter by status. Defaults to 'active' */
|
|
132
|
-
status?: ChatStatus | 'all'
|
|
133
125
|
/** Include pinned chats at top */
|
|
134
126
|
includePinned?: boolean
|
|
135
127
|
/** Pagination limit */
|
|
@@ -139,10 +131,9 @@ export interface ChatListFilters {
|
|
|
139
131
|
}
|
|
140
132
|
|
|
141
133
|
/**
|
|
142
|
-
* Extended chat summary with pin/
|
|
134
|
+
* Extended chat summary with pin/title status.
|
|
143
135
|
*/
|
|
144
136
|
export interface ChatSummaryExtended extends ChatSummary {
|
|
145
|
-
status: ChatStatus
|
|
146
137
|
/** If pinned, when it was pinned */
|
|
147
138
|
pinnedAt: string | null
|
|
148
139
|
/** How the title was set: 'auto' or 'manual' */
|
|
@@ -202,7 +193,7 @@ export type InvalidationReason = 'external-mutation' | 'bulk-operation' | 'sync-
|
|
|
202
193
|
/**
|
|
203
194
|
* Fields that can change on a chat, used in changed[] array.
|
|
204
195
|
*/
|
|
205
|
-
export type ChatChangedField = 'title' | 'titleSource' | '
|
|
196
|
+
export type ChatChangedField = 'title' | 'titleSource' | 'pinnedAt'
|
|
206
197
|
|
|
207
198
|
// =============================================================================
|
|
208
199
|
// Domain Events (past-tense facts, carry full state)
|
|
@@ -226,8 +217,6 @@ export interface ChatCreatedEvent extends BaseEvent {
|
|
|
226
217
|
title: string
|
|
227
218
|
/** How the title was set */
|
|
228
219
|
titleSource: TitleSource
|
|
229
|
-
/** Chat status */
|
|
230
|
-
status: ChatStatus
|
|
231
220
|
/** When pinned (null if not pinned) */
|
|
232
221
|
pinnedAt: string | null
|
|
233
222
|
/** Message count */
|
|
@@ -242,7 +231,7 @@ export interface ChatCreatedEvent extends BaseEvent {
|
|
|
242
231
|
}
|
|
243
232
|
|
|
244
233
|
/**
|
|
245
|
-
* Emitted when chat metadata changes (title, pin,
|
|
234
|
+
* Emitted when chat metadata changes (title, pin, etc.)
|
|
246
235
|
* Carries full current state - clients should replace local state entirely.
|
|
247
236
|
*/
|
|
248
237
|
export interface ChatUpdatedEvent extends BaseEvent {
|
|
@@ -252,7 +241,6 @@ export interface ChatUpdatedEvent extends BaseEvent {
|
|
|
252
241
|
title: string
|
|
253
242
|
titleSource: TitleSource | null
|
|
254
243
|
titleGeneratedAt: string | null
|
|
255
|
-
status: ChatStatus
|
|
256
244
|
pinnedAt: string | null
|
|
257
245
|
messageCount: number
|
|
258
246
|
createdAt: string
|